Commit 5a35aeee by 李伟康

修改banner

1 parent 128e6c21
import { preReleaseAppId } from '~/config' import { preReleaseAppId } from '~/config'
const target = ['ip', 'dev', 'uat', 'prod', 'preRelease'] const target = ['ip', 'dev', 'uat', 'prod', 'preRelease']
let index = 1 let index = 2
/** /**
* *
......
// packageIndex/pages/bannerJumpPage/bannerJumpPage.js // packageIndex/pages/bannerJumpPage/bannerJumpPagoptions.js
Page({ Page({
/** /**
...@@ -13,22 +13,20 @@ Page({ ...@@ -13,22 +13,20 @@ Page({
* 生命周期函数--监听页面加载 * 生命周期函数--监听页面加载
*/ */
onLoad(options) { onLoad(options) {
let {
}, titleList
} = this.data
onRoute(e) { if (options && options.title) {
let { titleList } = this.data
if (e && e.title) {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: e.title title: options.title
}) })
} else { } else {
wx.setNavigationBarTitle({ wx.setNavigationBarTitle({
title: titleList[e.bannerType - 1] title: titleList[options.bannerType - 1]
}) })
} }
this.setData({ this.setData({
infoData: e || {} infoData: options || {}
}) })
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!