Commit 2fb02671 by 杨北旺

Merge branch 'v3.22.0' of 192.168.3.233:saas/mini-program/zhwy into v3.22.0

2 parents deac6af3 27d052dd
import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 3
let index = 2
/**
*
......
......@@ -25,7 +25,7 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.setData(options)
},
async getQuestionnaireDetail(options) {
const res = await wx.p.router.intercept()
......
......@@ -50,7 +50,7 @@
}
.nav-bar .back .icon {
width: 16rpx;
width: 28rpx;
height: 28rpx;
}
......
......@@ -52,7 +52,7 @@ Page({
}
console.log('登陆信息:', data)
if (options.url) {
return this.jumpPage(options.url)
return this.jumpPage(options)
}
// 默认跳转到首页
wx.p.router.goHome()
......@@ -83,12 +83,13 @@ Page({
this.login()
}
},
jumpPage(val) {
console.log(val);
const targetPath = decodeURIComponent(val),
jumpPage(options) {
console.log(options);
const targetPath = decodeURIComponent(options.url),
{ url, events } = this.setRouteData(targetPath),
routeName = this.tabList.findIndex(e => `/${e.pagePath}` == `${url}.html`) > -1 ? 'switchTab' : 'redirectTo'
events.notIntercept = true
events.merchantId = options.merchantId || ''
wx.p.router[routeName](url, events)
},
setRouteData(targetPath) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!