coupon goods 8.13

This commit is contained in:
2020-08-13 17:05:02 +08:00
parent f1fbeb65a1
commit e224cffc1c
7 changed files with 245 additions and 12 deletions

View File

@@ -24,7 +24,7 @@
</view>
</view>
</view>
<view class="order-btn" v-if="[1, 2, 3, 4, 8].indexOf(order.view_type) >= 0">
<view class="order-btn" v-if="[1, 2, 3, 4, 8, 11].indexOf(order.view_type) >= 0">
<!-- || order.view_type == 2 -->
<view class="cancel" v-if="(order.view_type == 3) && order.is_refund == 1" @click="toOtherPage('RefundOrder')">申请退款</view>
<view class="cancel" v-if="order.view_type == 3" @click="toOtherPage('Logistics')">查看物流</view>
@@ -56,6 +56,7 @@ export default {
methods: {
viewState() {
let state;
// console.log(this.order.view_type);
switch (this.order.view_type) {
case 1:
state = '待支付';
@@ -84,6 +85,9 @@ export default {
case 10:
state = '已取消';
break;
case 11:
state = '已拒绝';
break;
default:
break;
}