Commit ef9b7a3c by 胡悦

Merge branch 'huyue_v3.3.0' of http://192.168.3.233:8090/saas/mini-program/ai-card into huyue_v3.3.0

2 parents 51ac2e2b 18aefbaf
......@@ -127,10 +127,18 @@ Component({
} else {
// return [params, this.data.tabIndex, this.data.applyForm.applyType];
let selectScene = this.selectComponent("#sceneBox").getSceneItems();
console.log(selectScene, 999);
if (!selectScene) return false
params.businessScenario = selectScene[0].title;
params.productItems = selectScene[1].join(",");
if (selectScene && !selectScene[2]) {
wx.hideLoading();
wx.showToast({
title: "请至少选择一个产品",
icon: "none",
});
return false
}
if (selectScene) {
params.businessScenario = selectScene[0].title;
params.productItems = selectScene[1].join(",");
}
let applyType = this.data.tabIndex == 0 ? '增值转化' : '系统订阅';
let ccoperationType = this.data.selectApply == 1 ? '门店' : '代理商';
params.merchantName = params.merchantName + '(' + applyType + '-' + ccoperationType + ')'
......
......@@ -298,15 +298,15 @@ Component({
return item.id == this.data.sceneNum;
});
}
if (!selectFlag) {
wx.hideLoading();
wx.showToast({
title: "请至少选择一个产品",
icon: "none",
});
return false;
}
return [businessItem, productItems]
// if (!selectFlag) {
// wx.hideLoading();
// wx.showToast({
// title: "请至少选择一个产品",
// icon: "none",
// });
// return false;
// }
return [businessItem, productItems, selectFlag]
}
}
})
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!