门第商品不允许售后
parent
3cb4dc104c
commit
219ff8a170
|
|
@ -2,8 +2,8 @@
|
||||||
<view class="pt-24rpx">
|
<view class="pt-24rpx">
|
||||||
<u-navbar :custom-back="goJump">
|
<u-navbar :custom-back="goJump">
|
||||||
<view slot="right" class="flex items-center">
|
<view slot="right" class="flex items-center">
|
||||||
<!-- #ifndef MP-WEIXIN -->
|
<!-- #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>
|
<u-icon name="kefu-ermai" color="#000" size="48"></u-icon>
|
||||||
</view>
|
</view>
|
||||||
<!-- #endif -->
|
<!-- #endif -->
|
||||||
|
|
@ -82,7 +82,7 @@
|
||||||
<view class="">
|
<view class="">
|
||||||
<view class="flex-1">¥{{ item.sell_price }}</view>
|
<view class="flex-1">¥{{ item.sell_price }}</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex items-center" v-if="item.vip_price>0">
|
<view class="flex items-center" v-if="item.vip_price > 0">
|
||||||
<view class="">¥{{ item.vip_price }}</view>
|
<view class="">¥{{ item.vip_price }}</view>
|
||||||
<image class="w-58rpx h-58rpx ml-10rpx" src="/static/svg/svip.svg" mode=""></image>
|
<image class="w-58rpx h-58rpx ml-10rpx" src="/static/svg/svip.svg" mode=""></image>
|
||||||
</view>
|
</view>
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
<view class="flex mt-20rpx justify-end">
|
<view v-if="enableService" class="flex mt-20rpx justify-end">
|
||||||
<!-- 申请售后 -->
|
<!-- 申请售后 -->
|
||||||
<view
|
<view
|
||||||
v-if="item.can_after_sale"
|
v-if="item.can_after_sale"
|
||||||
|
|
@ -222,24 +222,27 @@ export default {
|
||||||
cancelShow: false,
|
cancelShow: false,
|
||||||
receiptShow: false,
|
receiptShow: false,
|
||||||
isFirstLoading: true,
|
isFirstLoading: true,
|
||||||
|
|
||||||
|
// 是否允许售后
|
||||||
|
enableService: true,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
onLoad({ id }) {
|
onLoad({ id }) {
|
||||||
this.id = id;
|
this.id = id;
|
||||||
setTimeout(()=>{
|
setTimeout(() => {
|
||||||
if(!this.isLogin){
|
if (!this.isLogin) {
|
||||||
this.$u.route({
|
this.$u.route({
|
||||||
type:'redirectTo',
|
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{
|
} else {
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
}
|
}
|
||||||
},300)
|
}, 300);
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
if(this.isLogin){
|
if (this.isLogin) {
|
||||||
this.getDetail();
|
this.getDetail();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
|
|
@ -256,15 +259,15 @@ export default {
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
//判断是否有页面栈,如果没有返回首页,否则返回上一页
|
//判断是否有页面栈,如果没有返回首页,否则返回上一页
|
||||||
goJump(){
|
goJump() {
|
||||||
const pages = getCurrentPages()
|
const pages = getCurrentPages();
|
||||||
const prevPage = pages[pages.length - 2]
|
const prevPage = pages[pages.length - 2];
|
||||||
if(prevPage){
|
if (prevPage) {
|
||||||
uni.navigateBack({})
|
uni.navigateBack({});
|
||||||
}else{
|
} else {
|
||||||
uni.switchTab({
|
uni.switchTab({
|
||||||
url:'/pages/index/index'
|
url: '/pages/index/index',
|
||||||
})
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
//复制
|
//复制
|
||||||
|
|
@ -285,6 +288,7 @@ export default {
|
||||||
async getDetail() {
|
async getDetail() {
|
||||||
const resData = await this.$api.get(`/v1/order/orders/${this.id}`);
|
const resData = await this.$api.get(`/v1/order/orders/${this.id}`);
|
||||||
this.detail = resData;
|
this.detail = resData;
|
||||||
|
this.enableService = !this.detail.store_id
|
||||||
this.isFirstLoading = false;
|
this.isFirstLoading = false;
|
||||||
},
|
},
|
||||||
//取消订单
|
//取消订单
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue