Commit c7c934ed authored by Xuguangxing's avatar Xuguangxing

fix

parent c231bb74
...@@ -317,7 +317,7 @@ export default { ...@@ -317,7 +317,7 @@ export default {
this.swiperCurrent = index; this.swiperCurrent = index;
}, },
// ka渠道逻辑 // ka渠道逻辑
goVccOrDetail(res) { async goVccOrDetail(res) {
if (!res) { if (!res) {
this.currentPopupType = ''; this.currentPopupType = '';
this.currentPopupName = ''; this.currentPopupName = '';
...@@ -332,6 +332,29 @@ export default { ...@@ -332,6 +332,29 @@ export default {
this.checkLogin(); this.checkLogin();
return; return;
} }
const [checkStatus] = await goods.checkGroupBuyCreateOrder({
activityHundredGroupId: this.groupId || '',
skuNo: this.detailParam.skuNo
});
if (!checkStatus.verifyResult) {
// 校验是否允许开团或者参团
this.$dialog({
message: checkStatus.failedReason || '',
showCancelButton: false,
confirmButtonText: '查看其他商品',
onConfirm: () => {
// todo 跳转到小程序
this.$router.replace({
path: '/groupBuy/list',
query: {
activityId: this.detailParam.activityId
}
});
}
});
this.$toast(checkStatus.failedReason);
return;
}
if (res == 1 || res == 2) { if (res == 1 || res == 2) {
localStorage.remove('groupBuyGroupId'); // 开团或者自己做团长的时候需要移除groupBuyGroupId,再去调下单 localStorage.remove('groupBuyGroupId'); // 开团或者自己做团长的时候需要移除groupBuyGroupId,再去调下单
} }
...@@ -463,7 +486,7 @@ export default { ...@@ -463,7 +486,7 @@ export default {
this.show = false; this.show = false;
this.$router.push({ name: 'addressManage' }); this.$router.push({ name: 'addressManage' });
}, },
async toOrder() { toOrder() {
if (!this.hasLogin) { if (!this.hasLogin) {
this.checkLogin(); this.checkLogin();
return; return;
...@@ -472,15 +495,6 @@ export default { ...@@ -472,15 +495,6 @@ export default {
this.$toast('库存不足!'); this.$toast('库存不足!');
return; return;
} }
const [checkStatus] = await goods.checkGroupBuyCreateOrder({
activityHundredGroupId: this.groupId || '',
skuNo: this.detailParam.skuNo
});
if (!checkStatus.verifyResult) {
// 校验是否允许开团或者参团
this.$toast(checkStatus.failedReason);
return;
}
this.show = false; this.show = false;
const order = { const order = {
groupId: this.groupId || '', // 唐峰确认订单页加 groupId: this.groupId || '', // 唐峰确认订单页加
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment