门第商品不允许售后
parent
3cb4dc104c
commit
219ff8a170
|
|
@ -3,7 +3,7 @@
|
|||
<u-navbar :custom-back="goJump">
|
||||
<view slot="right" class="flex items-center">
|
||||
<!-- #ifndef MP-WEIXIN -->
|
||||
<view class="px-18rpx relative" @tap="$u.route(`/pages/web_view/index?url=${service}`)">
|
||||
<view class="px-18rpx relative">
|
||||
<u-icon name="kefu-ermai" color="#000" size="48"></u-icon>
|
||||
</view>
|
||||
<!-- #endif -->
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="flex mt-20rpx justify-end">
|
||||
<view v-if="enableService" class="flex mt-20rpx justify-end">
|
||||
<!-- 申请售后 -->
|
||||
<view
|
||||
v-if="item.can_after_sale"
|
||||
|
|
@ -222,6 +222,9 @@ export default {
|
|||
cancelShow: false,
|
||||
receiptShow: false,
|
||||
isFirstLoading: true,
|
||||
|
||||
// 是否允许售后
|
||||
enableService: true,
|
||||
};
|
||||
},
|
||||
onLoad({ id }) {
|
||||
|
|
@ -230,12 +233,12 @@ export default {
|
|||
if (!this.isLogin) {
|
||||
this.$u.route({
|
||||
type: 'redirectTo',
|
||||
url:`/pages/login/index?redirec=${encodeURIComponent(`/pages/order_details/index?id=${id}`)}`
|
||||
})
|
||||
url: `/pages/login/index?redirec=${encodeURIComponent(`/pages/order_details/index?id=${id}`)}`,
|
||||
});
|
||||
} else {
|
||||
this.getDetail();
|
||||
}
|
||||
},300)
|
||||
}, 300);
|
||||
},
|
||||
onShow() {
|
||||
if (this.isLogin) {
|
||||
|
|
@ -257,14 +260,14 @@ export default {
|
|||
methods: {
|
||||
//判断是否有页面栈,如果没有返回首页,否则返回上一页
|
||||
goJump() {
|
||||
const pages = getCurrentPages()
|
||||
const prevPage = pages[pages.length - 2]
|
||||
const pages = getCurrentPages();
|
||||
const prevPage = pages[pages.length - 2];
|
||||
if (prevPage) {
|
||||
uni.navigateBack({})
|
||||
uni.navigateBack({});
|
||||
} else {
|
||||
uni.switchTab({
|
||||
url:'/pages/index/index'
|
||||
})
|
||||
url: '/pages/index/index',
|
||||
});
|
||||
}
|
||||
},
|
||||
//复制
|
||||
|
|
@ -285,6 +288,7 @@ export default {
|
|||
async getDetail() {
|
||||
const resData = await this.$api.get(`/v1/order/orders/${this.id}`);
|
||||
this.detail = resData;
|
||||
this.enableService = !this.detail.store_id
|
||||
this.isFirstLoading = false;
|
||||
},
|
||||
//取消订单
|
||||
|
|
|
|||
Loading…
Reference in New Issue