77 lines
1.7 KiB
Vue
77 lines
1.7 KiB
Vue
<template>
|
|
<view>
|
|
<view class="content">
|
|
<view class="h2">价格明细</view>
|
|
<view>
|
|
<up-transition :show="show">
|
|
<view class="flex">
|
|
<text>商品总价:</text>
|
|
<text>¥{{goodList.total}}</text>
|
|
</view>
|
|
<!-- <view class="flex">
|
|
<text>纸卷:</text>
|
|
<text>¥{{goodList.wrapperPrice}}</text>
|
|
</view> -->
|
|
<view class="flex">
|
|
<text>运费:</text>
|
|
<text>¥{{goodList.freight}}</text>
|
|
</view>
|
|
<view class="flex">
|
|
<text>优惠劵:</text>
|
|
<text class="text1">减¥{{goodList.couponDiscount}}</text>
|
|
</view>
|
|
<view class="flex">
|
|
<text>蚕宝豆抵扣:</text>
|
|
<text class="text1">减¥{{goodList.pointsDiscount}}</text>
|
|
</view>
|
|
</up-transition>
|
|
</view>
|
|
<view class="flex">
|
|
<view style="display: flex;align-items: center;" @click="show=!show">
|
|
<text>实付款:</text>
|
|
<up-icon name="arrow-up" color="#999999" size="20"></up-icon>
|
|
</view>
|
|
<view>
|
|
<text class="text1">¥</text>
|
|
<text class="text1" style="font-size: 40rpx;">{{goodList.actual}}</text>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { onShow } from '@dcloudio/uni-app';
|
|
import { ref } from 'vue'
|
|
const show = ref(false)
|
|
const goodList = ref({})
|
|
|
|
onShow(() => {
|
|
goodList.value = JSON.parse(uni.getStorageSync('orderGoods'))
|
|
})
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.flex {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: space-between;
|
|
padding: 10rpx 20rpx;
|
|
|
|
.text1 {
|
|
color: red;
|
|
}
|
|
}
|
|
|
|
.h2 {
|
|
font-size: 34rpx;
|
|
font-weight: bold;
|
|
color: #000000;
|
|
padding: 10rpx 20rpx;
|
|
}
|
|
|
|
.content {
|
|
margin-top: 20rpx;
|
|
color: #999999;
|
|
}
|
|
</style> |