Commit aff00ff2 by luyt

fix:处理标题场景信息

1 parent 4fdae7f3
...@@ -51,7 +51,6 @@ Page({ ...@@ -51,7 +51,6 @@ Page({
*/ */
onLoad(options) { onLoad(options) {
this.getActiveApiFn() this.getActiveApiFn()
utils.setNavigationBarTitle("产品详情")
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { actNum, activeNavIdx, isShare,phone } = options let { actNum, activeNavIdx, isShare,phone } = options
...@@ -66,13 +65,13 @@ Page({ ...@@ -66,13 +65,13 @@ Page({
let senceItem = senceData[actNum] let senceItem = senceData[actNum]
let item = senceData[actNum]?.productList[activeNavIdx] let item = senceData[actNum]?.productList[activeNavIdx]
console.log('title',item.productName) console.log('title',item.productName)
// setTimeout(() => { setTimeout(() => {
// // wx.setNavigationBarTitle({ // wx.setNavigationBarTitle({
// // title: " "+item.productName, // title: " "+item.productName,
// // }); // });
// utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(item.productName)
// },100) },100)
let wx_user_info = wx.$storage.get('wx_user_info'), let wx_user_info = wx.$storage.get('wx_user_info'),
shareOpenId = wx_user_info.openId || '' shareOpenId = wx_user_info.openId || ''
...@@ -114,14 +113,13 @@ Page({ ...@@ -114,14 +113,13 @@ Page({
//分享数据 //分享数据
let item = senceData[actNum]?.productList[activeNavIdx] let item = senceData[actNum]?.productList[activeNavIdx]
console.log('title2',item.productName) console.log('title2',item.productName)
// setTimeout(() => { setTimeout(() => {
// // wx.setNavigationBarTitle({ // wx.setNavigationBarTitle({
// // title: " "+item.productName, // title: " "+item.productName,
// // }); // });
// utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(item.productName)
// },100) },100)
// utils.setNavigationBarTitle("产品详情")
//分享人openId //分享人openId
let wx_user_info = wx.$storage.get('wx_user_info'), let wx_user_info = wx.$storage.get('wx_user_info'),
......
...@@ -48,7 +48,6 @@ Page({ ...@@ -48,7 +48,6 @@ Page({
* 分享出去,或扫码进来 * 分享出去,或扫码进来
*/ */
onLoad(options) { onLoad(options) {
utils.setNavigationBarTitle("场景详情")
if (!options || utils.isEmptyObj(options)) return if (!options || utils.isEmptyObj(options)) return
let { actNum, activeNavIdx, isShare,phone } = options let { actNum, activeNavIdx, isShare,phone } = options
...@@ -63,12 +62,12 @@ Page({ ...@@ -63,12 +62,12 @@ Page({
let senceItem = senceData[actNum] let senceItem = senceData[actNum]
let item = senceData[actNum]?.productList[activeNavIdx] let item = senceData[actNum]?.productList[activeNavIdx]
console.log('title',item.productName) console.log('title',item.productName)
// setTimeout(() => { setTimeout(() => {
// // wx.setNavigationBarTitle({ // wx.setNavigationBarTitle({
// // title: item.productName, // title: item.productName,
// // }); // });
// utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(senceData[actNum].name)
// },100) },100)
this.shareQuery = `sceneCode=${senceItem?.sceneCode}&productCode=${item?.productCode}&isShare=${true}&productDesc=${item?.productName}&category=${item?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&phone=${phone}` this.shareQuery = `sceneCode=${senceItem?.sceneCode}&productCode=${item?.productCode}&isShare=${true}&productDesc=${item?.productName}&category=${item?.category}&actNum=${actNum}&activeNavIdx=${activeNavIdx}&phone=${phone}`
this.shareTrackData = { this.shareTrackData = {
...@@ -104,13 +103,12 @@ Page({ ...@@ -104,13 +103,12 @@ Page({
//分享数据 //分享数据
let item = senceData[actNum]?.productList[activeNavIdx] let item = senceData[actNum]?.productList[activeNavIdx]
console.log('title2',item.productName) console.log('title2',item.productName)
// setTimeout(() => { setTimeout(() => {
// // wx.setNavigationBarTitle({ // wx.setNavigationBarTitle({
// // title: item.productName, // title: item.productName,
// // }); // });
// utils.setNavigationBarTitle(item.productName) utils.setNavigationBarTitle(senceData[actNum].name)
// },100) },100)
// utils.setNavigationBarTitle("场景详情")
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!