Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit aff00ff2
authored
Dec 05, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix:处理标题场景信息
1 parent
4fdae7f3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
28 deletions
pages/viewProd/index.js
pages/viewProdBanner/index.js
pages/viewProd/index.js
View file @
aff00ff
...
...
@@ -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'),
...
...
pages/viewProdBanner/index.js
View file @
aff00ff
...
...
@@ -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.productN
ame)
//
},100)
setTimeout
(()
=>
{
// wx.setNavigationBarTitle({
// title: item.productName,
// });
utils
.
setNavigationBarTitle
(
senceData
[
actNum
].
n
ame
)
},
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)
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment