Commit 1234c2c2 by chenwq

开通店面,clueId丢失问题

1 parent f28bc688
...@@ -60,7 +60,8 @@ Page({ ...@@ -60,7 +60,8 @@ Page({
this.submitBusinessForm(subCompData) this.submitBusinessForm(subCompData)
}, },
submitBusinessForm(subCompData) { submitBusinessForm(subCompData) {
let { carObj, clueId,selectProdArr } = subCompData let { carObj, selectProdArr } = subCompData
let { clueId } = this.data
let selectProdArrStr = '' let selectProdArrStr = ''
selectProdArr.forEach((item,index)=>{selectProdArrStr+=`${item.productName}${selectProdArr.length-1 == index?'':';'}`}) selectProdArr.forEach((item,index)=>{selectProdArrStr+=`${item.productName}${selectProdArr.length-1 == index?'':';'}`})
...@@ -78,6 +79,7 @@ Page({ ...@@ -78,6 +79,7 @@ Page({
clueId, clueId,
intentProducts:selectProdArrStr intentProducts:selectProdArrStr
} }
// return wx.$api.showToast('申请成功') // return wx.$api.showToast('申请成功')
applyApi applyApi
.merchantApply(params) .merchantApply(params)
...@@ -86,11 +88,9 @@ Page({ ...@@ -86,11 +88,9 @@ Page({
if (result) { if (result) {
wx.$api.showToast('申请成功') wx.$api.showToast('申请成功')
setTimeout(() => { setTimeout(() => {
wx.$router.back() wx.$router.back(page => {
// wx.$router.back(page => { page && page.getClueInit && page.getClueInit()
// let node = page.selectComponent('#indexclue') })
// node && node.getClueInit()
// })
}, 1000) }, 1000)
} }
}) })
...@@ -132,10 +132,6 @@ Page({ ...@@ -132,10 +132,6 @@ Page({
wx.$api.showToast('申请成功') wx.$api.showToast('申请成功')
setTimeout(() => { setTimeout(() => {
wx.$router.back() wx.$router.back()
// wx.$router.back(page => {
// let node = page.selectComponent('#indexclue')
// node && node.getClueInit()
// })
}, 1000) }, 1000)
} }
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!