wangfukang 2 days ago
parent
commit
793914d42e
  1. 10
      package1/group/groupBuySingle.vue
  2. 40
      package1/order/orderDetail.vue

10
package1/group/groupBuySingle.vue

@ -671,10 +671,12 @@
} catch(e) {
this.shopItem = JSON.parse(option.item);
}
this.shopRecommend = this.shopItem.products
for(let i=0;i<this.shopRecommend.length;i++){
this.shopRecommend[i].categoryId = '1'
this.shopRecommend[i].isChecked = false
if(this.shopItem.products){
this.shopRecommend = this.shopItem.products
for(let i=0;i<this.shopRecommend.length;i++){
this.shopRecommend[i].categoryId = '1'
this.shopRecommend[i].isChecked = false
}
}
} else {
try {

40
package1/order/orderDetail.vue

@ -560,6 +560,7 @@
refundTypeStatus:4,
shopTime:'',
peisongTime:'',
shopItem:{},
orderId:'',
payData:{},
orderDetail:{
@ -639,26 +640,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');
@ -881,6 +873,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
@ -895,6 +896,7 @@
return
}
}).catch((res) => {})
uni.hideLoading();
},
goAssignWorker() {
let shopAreaId = this.orderDetail.getAreaId || '';

Loading…
Cancel
Save