Commit f067b37e by 前端

修复不选产品还能成功跳转问题

1 parent 557282c3
...@@ -128,10 +128,9 @@ Component({ ...@@ -128,10 +128,9 @@ Component({
// 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); console.log(selectScene, 999);
if (selectScene) { if (!selectScene) return false
params.businessScenario = selectScene[0].title; params.businessScenario = selectScene[0].title;
params.productItems = selectScene[1].join(","); 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 + ')'
......
...@@ -304,7 +304,7 @@ Component({ ...@@ -304,7 +304,7 @@ Component({
title: "请至少选择一个产品", title: "请至少选择一个产品",
icon: "none", icon: "none",
}); });
return; return false;
} }
return [businessItem, productItems] return [businessItem, productItems]
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!