This commit is contained in:
Gdpao
2020-08-04 19:46:42 +08:00
26 changed files with 559 additions and 185 deletions

View File

@@ -25,7 +25,8 @@
</view>
</view>
<view class="order-btn" v-if="[1, 2, 3, 4, 8].indexOf(order.view_type) >= 0">
<view class="cancel" v-if="order.view_type == 3 || order.view_type == 2" @click="applyRefund">申请退款</view>
<!-- @click="toOtherPage('RefundOrder')" -->
<view class="cancel" v-if="order.view_type == 3 || order.view_type == 2">申请退款</view>
<view class="cancel" v-if="order.view_type == 3" @click="toOtherPage('Logistics')">查看物流</view>
<view class="logistics" v-if="order.view_type == 3" @click="confirmReceive">确认收货</view>
<view class="comment" v-if="order.view_type == 4" @click="toOtherPage('Comment')">立即评价</view>
@@ -66,6 +67,18 @@ export default {
case 4:
state = '待评价';
break;
case 5:
state = '交易成功';
break;
case 6:
state = '待退款';
break;
case 7:
state = '已退款';
break;
case 9:
state = '拼团中';
break;
default:
break;
}
@@ -81,19 +94,6 @@ export default {
this.$u.toast(res.message);
})
},
applyRefund() {
let params = {
order_id: this.order.order_id,
// goods_id: goods_id,
// refund_amount: refund_amount,
}
this.$u.api.refundOrder(params).then(res => {
this.$u.toast(res.message);
if(res.errCode == 0) {
}
})
},
confirmReceive() {
this.$u.api.confirmReceive({
order_id: this.order.order_id,

View File

@@ -97,7 +97,11 @@ export default {
box-sizing: border-box;
padding: 0 30rpx;
display: flex;
justify-content: space-between;
&:not(:nth-child(3n)) {
> view {
margin-right: 20rpx;
}
}
}
}
</style>

View File

@@ -20,7 +20,7 @@
<text>{{ info.goods_price }}</text>
</view>
</view>
<image class="img" :src="info.pintuan_image"></image>
<image class="img" :src="info.pintuan_image" @click="toDetailsPage"></image>
</view>
</view>
</template>

View File

@@ -1,5 +1,5 @@
<template>
<view class="shop-item">
<view class="shop-item" @click="toClassifyPage">
<image :src="info.goodscn_pic"></image>
<text class="">{{ info.gc_name }}</text>
</view>
@@ -9,6 +9,14 @@ export default {
name:"shopItem",
props: {
info: Object,
},
methods: {
toClassifyPage() {
this.$u.route('pageC/classify/goods', {
cid: this.info.gc_id,
cname: this.info.gc_name,
});
}
}
}
</script>