|
|
|
@ -564,6 +564,7 @@ |
|
|
|
refundTypeStatus:4, |
|
|
|
shopTime:'', |
|
|
|
peisongTime:'', |
|
|
|
shopItem:{}, |
|
|
|
orderId:'', |
|
|
|
payData:{}, |
|
|
|
orderDetail:{ |
|
|
|
@ -643,26 +644,17 @@ |
|
|
|
}, |
|
|
|
onShareAppMessage(res) { |
|
|
|
let that = this |
|
|
|
that.tui.request("/app/shop/getShopInfoById", "POST", {id:that.orderDetail.shopId,regionId:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res1) => { |
|
|
|
if (res1.code == 200) { |
|
|
|
let groupId = that.orderDetail.groupInfo.id; |
|
|
|
let targetMembers = that.orderDetail.groupInfo.targetMembers; |
|
|
|
let shopItemStr = encodeURIComponent(JSON.stringify(res1.result.shop)); |
|
|
|
let isFTF = that.orderDetail.orderType == 3 ? 1 : 0; |
|
|
|
let path = `/package1/group/groupBuySingle?type=shop&item=${shopItemStr}&groupId=${groupId}&targetMembers=${targetMembers}&isFaceToFace=${isFTF}`; |
|
|
|
|
|
|
|
return { |
|
|
|
title: '快来一起拼单吧!', |
|
|
|
path: path, |
|
|
|
imageUrl:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/62c9aa038b2541ad9c400a76ddae7ef8.png' |
|
|
|
} |
|
|
|
} else { |
|
|
|
that.tui.toast(res.message); |
|
|
|
return; |
|
|
|
} |
|
|
|
uni.hideLoading(); |
|
|
|
}).catch((res1) => {}); |
|
|
|
let groupId = that.orderDetail.groupInfo.id; |
|
|
|
let targetMembers = that.orderDetail.groupInfo.targetMembers; |
|
|
|
let shopItemStr = encodeURIComponent(JSON.stringify(that.shopItem)); |
|
|
|
let isFTF = that.orderDetail.orderType == 3 ? 1 : 0; |
|
|
|
let path = `/package1/group/groupBuySingle?type=shop&item=${shopItemStr}&groupId=${groupId}&targetMembers=${targetMembers}&isFaceToFace=${isFTF}`; |
|
|
|
|
|
|
|
return { |
|
|
|
title: '快来一起拼单吧!', |
|
|
|
path: path, |
|
|
|
imageUrl:'https://jewel-shop.oss-cn-beijing.aliyuncs.com/62c9aa038b2541ad9c400a76ddae7ef8.png' |
|
|
|
} |
|
|
|
}, |
|
|
|
onUnload() { |
|
|
|
uni.$off('updateDeliveryWorker'); |
|
|
|
@ -895,6 +887,15 @@ |
|
|
|
//还没有拼团成功拼团状态 0:拼团中 1:拼团成功 2:拼团失败 3:面对面团(不公开) |
|
|
|
if(that.orderDetail.groupInfo.status != 1 && that.orderDetail.groupInfo.status != 2){ |
|
|
|
that.pintuan = true; |
|
|
|
that.tui.request("/app/shop/getShopInfoById", "POST", {id:that.orderDetail.shopId,regionId:JSON.parse(uni.getStorageSync('area')).id}, false, true).then((res1) => { |
|
|
|
if (res1.code == 200) { |
|
|
|
that.shopItem = res1.result.shop |
|
|
|
} else { |
|
|
|
that.tui.toast(res1.message); |
|
|
|
return; |
|
|
|
} |
|
|
|
|
|
|
|
}).catch((res1) => {}); |
|
|
|
} |
|
|
|
} |
|
|
|
that.orderDetail.userCouponNum = 0 |
|
|
|
@ -909,6 +910,7 @@ |
|
|
|
return |
|
|
|
} |
|
|
|
}).catch((res) => {}) |
|
|
|
uni.hideLoading(); |
|
|
|
}, |
|
|
|
goAssignWorker() { |
|
|
|
let shopAreaId = this.orderDetail.getAreaId || ''; |
|
|
|
|