Commit 35dd7bc7 by chenwq

开通业务跳转

1 parent ea8c348e
......@@ -72,18 +72,18 @@ Page({
handleJump() {
// clearTimeout(this.data.time)
// this.data.time = new setTimeout(() => {
// wx.$router.go('pages.output')
// }, 3000)
this.data.time = new setTimeout(() => {
wx.$router.go('pages.output', { page: 'client', refresh: true })
}, 2000)
// wx.$api.showToast('申请成功')
setTimeout(() => {
wx.$router.back(page => {
let node = page.selectComponent('#indexclue')
// console.log(node)
node.getClueInit && node.getClueInit()
// page.getClueInit && page.getClueInit()
})
}, 1000)
// setTimeout(() => {
// wx.$router.back(page => {
// let node = page.selectComponent('#client')
// // console.log(node)
// node.getMerchantRange && node.getMerchantRange()
// // page.getClueInit && page.getClueInit()
// })
// }, 1000)
},
handleConfirm() {
......
......@@ -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!