Commit aff00ff2 by luyt

fix:处理标题场景信息

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