|
|
@ -272,14 +272,19 @@ |
|
|
return { |
|
|
return { |
|
|
pintuan:false, |
|
|
pintuan:false, |
|
|
menuButtonInfo: {}, |
|
|
menuButtonInfo: {}, |
|
|
|
|
|
orderId:'', |
|
|
|
|
|
orderDetail:{}, |
|
|
codeImg:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/3a4e68eb14d7417cbb4f15fa85907c64.jpg' |
|
|
codeImg:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/3a4e68eb14d7417cbb4f15fa85907c64.jpg' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
components: { |
|
|
components: { |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onLoad() { |
|
|
onLoad(option) { |
|
|
|
|
|
if (option.id) { |
|
|
|
|
|
this.orderId = option.id |
|
|
|
|
|
this.getOrderDetail(this.orderId) |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
onShow() { |
|
|
onShow() { |
|
|
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() |
|
|
this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() |
|
|
@ -288,6 +293,23 @@ |
|
|
openCode(){ |
|
|
openCode(){ |
|
|
this.$refs.imgPopup.open() |
|
|
this.$refs.imgPopup.open() |
|
|
}, |
|
|
}, |
|
|
|
|
|
getOrderDetail(id){ |
|
|
|
|
|
let that = this |
|
|
|
|
|
that.tui.request("/mall/order/detail/"+id, "GET", {}, false, true).then((res) => { |
|
|
|
|
|
if (res.code == 200) { |
|
|
|
|
|
that.orderDetail = res.result; |
|
|
|
|
|
if(that.orderDetail.groupInfo){ |
|
|
|
|
|
//还没有拼团成功拼团状态 0:拼团中 1:拼团成功 2:拼团失败 3:面对面团(不公开) |
|
|
|
|
|
if(that.orderDetail.groupInfo.status != 1){ |
|
|
|
|
|
that.pintuan = true; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
} else { |
|
|
|
|
|
that.tui.toast(res.message) |
|
|
|
|
|
return |
|
|
|
|
|
} |
|
|
|
|
|
}).catch((res) => {}) |
|
|
|
|
|
}, |
|
|
back() { |
|
|
back() { |
|
|
uni.navigateBack() |
|
|
uni.navigateBack() |
|
|
} |
|
|
} |
|
|
|