Commit 18aefbaf by 前端

bug修复

1 parent 6a955ab4
...@@ -127,10 +127,18 @@ Component({ ...@@ -127,10 +127,18 @@ Component({
} else { } else {
// return [params, this.data.tabIndex, this.data.applyForm.applyType]; // return [params, this.data.tabIndex, this.data.applyForm.applyType];
let selectScene = this.selectComponent("#sceneBox").getSceneItems(); let selectScene = this.selectComponent("#sceneBox").getSceneItems();
console.log(selectScene, 999); if (selectScene && !selectScene[2]) {
if (!selectScene) return false wx.hideLoading();
params.businessScenario = selectScene[0].title; wx.showToast({
params.productItems = selectScene[1].join(","); title: "请至少选择一个产品",
icon: "none",
});
return false
}
if (selectScene) {
params.businessScenario = selectScene[0].title;
params.productItems = selectScene[1].join(",");
}
let applyType = this.data.tabIndex == 0 ? '增值转化' : '系统订阅'; let applyType = this.data.tabIndex == 0 ? '增值转化' : '系统订阅';
let ccoperationType = this.data.selectApply == 1 ? '门店' : '代理商'; let ccoperationType = this.data.selectApply == 1 ? '门店' : '代理商';
params.merchantName = params.merchantName + '(' + applyType + '-' + ccoperationType + ')' params.merchantName = params.merchantName + '(' + applyType + '-' + ccoperationType + ')'
......
...@@ -298,15 +298,15 @@ Component({ ...@@ -298,15 +298,15 @@ Component({
return item.id == this.data.sceneNum; return item.id == this.data.sceneNum;
}); });
} }
if (!selectFlag) { // if (!selectFlag) {
wx.hideLoading(); // wx.hideLoading();
wx.showToast({ // wx.showToast({
title: "请至少选择一个产品", // title: "请至少选择一个产品",
icon: "none", // icon: "none",
}); // });
return false; // return false;
} // }
return [businessItem, productItems] return [businessItem, productItems, selectFlag]
} }
} }
}) })
\ No newline at end of file \ 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!