Commit 1234c2c2 by chenwq

开通店面,clueId丢失问题

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