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