Compare commits

..

No commits in common. "1ff0ee1ed01629fd6533d575b10fa06ba9fd2b3e" and "c280d65a7a1c97377fbf86ed73f9ade9cfde943c" have entirely different histories.

4 changed files with 14 additions and 76 deletions

View File

@ -58,10 +58,6 @@
.pr{ .pr{
position: relative; position: relative;
} }
.pa{
position: absolute;
}
.fc { .fc {
text-align: center; text-align: center;

View File

@ -12,7 +12,7 @@
</view> </view>
</view> </view>
<view class="flex1 flex column md"> <view class="flex1 flex column md">
<view class="fz28 fb fcm l-h-18">{{ orderStatusDisplay }}</view> <view class="fz28 fb fcm l-h-18">{{order.shipment_status}}</view>
<view class="priceBox fz36 fb"> <view class="priceBox fz36 fb">
¥{{Number(order.transport_price) + Number(order.pack_price) + Number(order.total_price) | formatPrice}} ¥{{Number(order.transport_price) + Number(order.pack_price) + Number(order.total_price) | formatPrice}}
</view> </view>
@ -20,18 +20,12 @@
</view> </view>
</view> </view>
<view class="m-t-24 flex mr"> <view class="m-t-24 flex mr">
<view v-if="showPayButton" class="nullBut bg-m fci rad8 fz28 flex mac mc m-l-24"> <view class="numberBut bg-m fci rad8 fz28 fb flex mac mc" :key="foodSn">
立即支付
</view>
<view v-if="showPickupNumber" class="numberBut bg-m fci rad8 fz28 fb flex mac mc m-l-24">
{{ foodSn }} {{ foodSn }}
</view> </view>
<view v-if="showAfterSaleButton" class="nullBut border fcb rad8 fz28 flex mac mc m-l-24"> <view class="nullBut border fcb rad8 fz28 flex mac mc m-l-24" style="">
申请售后 申请售后
</view> </view>
<view v-if="showRefundDetailsButton" class="nullBut border fcb rad8 fz28 flex mac mc m-l-24">
退款详情
</view>
</view> </view>
</view> </view>
</template> </template>
@ -49,7 +43,7 @@
intervalId: null, // ID intervalId: null, // ID
} }
}, },
created() { onReady() {
this.intervalId = setInterval(() => { this.intervalId = setInterval(() => {
this.foodSn = this.foodSn === '取餐号' ? this.order.food_sn : '取餐号' this.foodSn = this.foodSn === '取餐号' ? this.order.food_sn : '取餐号'
}, 1200) }, 1200)
@ -58,60 +52,6 @@
// //
clearInterval(this.intervalId); clearInterval(this.intervalId);
}, },
computed: {
// ""
showPayButton() {
return this.order.main_status === '未付款';
},
// ""
showPickupNumber() {
return this.order.main_status === '已付款' && this.order.refund_status === '未申请';
},
// ""
showAfterSaleButton() {
return this.order.main_status === '已付款' && this.order.refund_status === '未申请';
},
// "退"
showRefundDetailsButton() {
return this.order.refund_status !== '未申请' && this.order.main_status !== '已完成';
},
//
orderStatusDisplay() {
if (this.order.main_status === '未付款') {
return '待支付';
}
if (this.order.main_status === '已付款' && this.order.refund_status === '未申请') {
return this.order.shipment_status;
}
switch (this.order.refund_status) {
case '申请中':
return '申请中';
case '已同意':
return '商家同意退款';
case '主动退':
return '商家退单';
case '拒绝退':
return '商家拒绝退款';
default:
return '';
}
},
// 退
refundStatusDisplay() {
switch (this.order.refund_status) {
case '申请中':
return '申请中';
case '已同意':
return '商家同意退款';
case '主动退':
return '商家退单';
case '拒绝退':
return '商家拒绝退款';
default:
return '';
}
},
},
props: { props: {
order: { order: {
type: Object, type: Object,

View File

@ -47,7 +47,8 @@
<script> <script>
import { import {
checkUserInfo checkUserInfo,
wxLogin
} from '@/utils/index.js' } from '@/utils/index.js'
export default { export default {
@ -68,7 +69,7 @@
return this.$store.state.orderList.filter(item => item.main_status === '已付款') return this.$store.state.orderList.filter(item => item.main_status === '已付款')
} }
}, },
created() { onShow() {
//token //token
this.checkUserInfo() this.checkUserInfo()
// tabber // tabber
@ -76,7 +77,9 @@
}, },
methods: { methods: {
// //
checkUserInfo, checkUserInfo() {
return checkUserInfo(this.$store)
}
} }
} }
</script> </script>

View File

@ -71,13 +71,12 @@
orderList_unpaid() { orderList_unpaid() {
return this.$store.state.orderList.filter(item => item.main_status === '未付款') return this.$store.state.orderList.filter(item => item.main_status === '未付款')
}, },
// 退 // 退
orderList_paid() { orderList_paid() {
return this.$store.state.orderList.filter(item => { return this.$store.state.orderList.filter(item => item.main_status === '已付款' && item.refund_status ===
return item.main_status === '已付款' && item.refund_status === '未申请'; '未申请')
})
}, },
// 退 退 退 // 退 退
orderList_refund() { orderList_refund() {
return this.$store.state.orderList.filter(item => item.refund_status !== '未申请') return this.$store.state.orderList.filter(item => item.refund_status !== '未申请')
}, },