Commit 35dd7bc7 by chenwq

开通业务跳转

1 parent ea8c348e
...@@ -72,18 +72,18 @@ Page({ ...@@ -72,18 +72,18 @@ Page({
handleJump() { handleJump() {
// clearTimeout(this.data.time) // clearTimeout(this.data.time)
// this.data.time = new setTimeout(() => { this.data.time = new setTimeout(() => {
// wx.$router.go('pages.output') wx.$router.go('pages.output', { page: 'client', refresh: true })
// }, 3000) }, 2000)
// wx.$api.showToast('申请成功') // wx.$api.showToast('申请成功')
setTimeout(() => { // setTimeout(() => {
wx.$router.back(page => { // wx.$router.back(page => {
let node = page.selectComponent('#indexclue') // let node = page.selectComponent('#client')
// console.log(node) // // console.log(node)
node.getClueInit && node.getClueInit() // node.getMerchantRange && node.getMerchantRange()
// page.getClueInit && page.getClueInit() // // page.getClueInit && page.getClueInit()
}) // })
}, 1000) // }, 1000)
}, },
handleConfirm() { handleConfirm() {
......
...@@ -106,6 +106,15 @@ Page({ ...@@ -106,6 +106,15 @@ Page({
}) })
} }
}, },
onRoute(options) {
if (!options || wx.$util.isEmptyObj(options)) return
let { page = 'client', refresh = true } = options
if(page == 'client' && refresh) {
let clientModule = this.selectComponent('#client')
clientModule.getClientApi && clientModule.clientRefresh()
}
},
/** /**
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!