|
|
@@ -1,9 +1,9 @@
|
|
|
<template>
|
|
|
<view class="page">
|
|
|
- <view class="card u-border-bottom">
|
|
|
- <text>{{vuex_orderInfo.store.shopName}}</text>
|
|
|
+ <view class="card u-border-bottom ">
|
|
|
+ <text >{{shop.name}}</text>
|
|
|
<view class="">
|
|
|
- <view class="cuIcon cu-btn sm btn-icon">
|
|
|
+ <view @click="$util.callPhone(shop.personTel)" class="cuIcon cu-btn sm btn-icon">
|
|
|
<u-icon name="phone-fill" color="#FF9447"></u-icon>
|
|
|
</view>
|
|
|
<view class="cuIcon cu-btn sm btn-icon margin-left-30">
|
|
|
@@ -11,24 +11,24 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="card" style="flex-direction: column;">
|
|
|
+ <view class="section">
|
|
|
+
|
|
|
+ </view>
|
|
|
+ <view class="card section" style="flex-direction: column;">
|
|
|
<view class="center text-bold margin-50" style="font-size: 66rpx;">
|
|
|
- <text>2874</text>
|
|
|
+ <text>{{order.verifyNum}}</text>
|
|
|
</view>
|
|
|
- <view class="cu-steps steps-arrow ">
|
|
|
- <view class="cu-item" :class="index>0?'text-default':'text-base'" v-for="(item,index) in stepList" :key="index">
|
|
|
+ <view class="cu-steps steps-arrow margin-bottom-50">
|
|
|
+ <view class="cu-item" :class="index>stepIndex?'text-default':'text-base'" v-for="(item,index) in stepList" :key="index">
|
|
|
<text style="font-size: 80rpx;margin-bottom: 20rpx;margin-right: 10rpx;" :class="'cuIcon-' + item.icon"></text>
|
|
|
<text >{{item.name}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
- <view class="center text-gray margin-50">
|
|
|
- <text>您前面还有4单待制作</text>
|
|
|
- </view>
|
|
|
- <u-read-more ref="uReadMore" close-text="展开更多" show-height="500" color="#999">
|
|
|
- <view v-for="(item,index) in vuex_orderInfo.cart" :key="index" class="cart">
|
|
|
+ <u-read-more ref="uReadMore" close-text="展开更多" show-height="300" color="#999">
|
|
|
+ <view v-for="(item,index) in cart" :key="index" class="cart">
|
|
|
<view class="flex" style="width: 70%;">
|
|
|
<image :src="item.image" mode=""></image>
|
|
|
- <view class="item-content " style="justify-content: flex-start;text-align: left;">
|
|
|
+ <view class="item-content " >
|
|
|
<text class="text-cut-1">{{item.name}}</text>
|
|
|
<text class="text-cut-1">{{item.propertyStr ? item.propertyStr : item.name}}</text>
|
|
|
</view>
|
|
|
@@ -44,6 +44,21 @@
|
|
|
</u-read-more>
|
|
|
</view>
|
|
|
|
|
|
+ <view class="card text-df ">
|
|
|
+ <text class="text-gray">金额总计</text>
|
|
|
+ <view class="">
|
|
|
+ <text class="text-price">{{order.totalPrice / 100}}</text>
|
|
|
+ </view>
|
|
|
+ </view>
|
|
|
+ <view class="card text-df" v-if="$isNotEmpty(order.packingPrice)&&order.packingPrice != -1">
|
|
|
+ <text class="text-gray">包装费</text>
|
|
|
+ <text class="text-price">{{order.packingPrice / 100}}</text>
|
|
|
+ </view>
|
|
|
+ <view class="card text-df" v-if="$isNotEmpty(order.sendingPrice)&&order.sendingPrice != -1">
|
|
|
+ <text class="text-gray">配送费</text>
|
|
|
+ <text class="text-price">{{order.sendingPrice / 100}}</text>
|
|
|
+ </view>
|
|
|
+
|
|
|
|
|
|
|
|
|
</view>
|
|
|
@@ -54,19 +69,51 @@ export default {
|
|
|
name: '',
|
|
|
data() {
|
|
|
return {
|
|
|
+ id:'',
|
|
|
+ order:{},
|
|
|
+ shop:{},
|
|
|
+ cart:[],
|
|
|
+ //订单流程
|
|
|
stepList:[{
|
|
|
name:'待付款',
|
|
|
- icon:'recharge'
|
|
|
+ icon:'rechargefill'
|
|
|
},
|
|
|
{
|
|
|
name:'制作中',
|
|
|
- icon:'time'
|
|
|
+ icon:'timefill'
|
|
|
},
|
|
|
{
|
|
|
name:'已完成',
|
|
|
- icon:'roundcheck'
|
|
|
- }]
|
|
|
+ icon:'roundcheckfill'
|
|
|
+ }],
|
|
|
};
|
|
|
+ },
|
|
|
+ onLoad(options) {
|
|
|
+ this.id=options.id || '1442319466162036738'
|
|
|
+ this.fetchDetail()
|
|
|
+ },
|
|
|
+ computed:{
|
|
|
+ stepIndex:{
|
|
|
+ get(){
|
|
|
+ if (this.order.orderStatus == '待付款') {
|
|
|
+ return 0
|
|
|
+ }else{
|
|
|
+ return 2
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ methods:{
|
|
|
+ fetchDetail(){
|
|
|
+ let params={
|
|
|
+ id:this.id
|
|
|
+ }
|
|
|
+ this.$api.order.detail(params).then(res=>{
|
|
|
+ this.order=res.data || {}
|
|
|
+ this.shop=this.order.shop || {}
|
|
|
+ this.cart=JSON.parse(this.order.goodsPreview)
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
@@ -98,31 +145,29 @@ export default {
|
|
|
border-bottom: 1rpx solid #f1f1f1;
|
|
|
display: flex;
|
|
|
background-color: #FFFFFF;
|
|
|
+ padding: 15rpx 0;
|
|
|
|
|
|
image {
|
|
|
- width: 120rpx;
|
|
|
- height: 120rpx;
|
|
|
+ width: 100rpx;
|
|
|
+ height: 100rpx;
|
|
|
+ border-radius: 8rpx;
|
|
|
}
|
|
|
|
|
|
.item-content {
|
|
|
- background-color: #007AFF;
|
|
|
- width: calc(100% - 120rpx);
|
|
|
+ width: calc(100% - 100rpx);
|
|
|
+ margin-left: -40rpx;
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
justify-content: space-between;
|
|
|
- justify-content: flex-start;
|
|
|
- align-items: flex-start;
|
|
|
|
|
|
text:first-child {
|
|
|
- font-size: 32rpx;
|
|
|
- padding-top: 10rpx;
|
|
|
+ font-size: 30rpx;
|
|
|
}
|
|
|
|
|
|
text:last-child {
|
|
|
- font-size: 26rpx;
|
|
|
+ font-size: 24rpx;
|
|
|
color: #999;
|
|
|
font-weight: 400;
|
|
|
- padding-bottom: 10rpx;
|
|
|
}
|
|
|
}
|
|
|
|