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 3b35e93e
authored
Dec 01, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:场景调整
1 parent
6edc52b1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
14 deletions
pages/tab/index/constant/data.js
pages/viewProdBanner/index.js
pages/tab/index/constant/data.js
View file @
3b35e93
...
@@ -129,7 +129,7 @@ var senceData = [
...
@@ -129,7 +129,7 @@ var senceData = [
msg
:
"1.2次新车膨胀金活动"
,
msg
:
"1.2次新车膨胀金活动"
,
"sceneCode"
:
"SC003"
,
"sceneCode"
:
"SC003"
,
tabname
:
'膨胀金活动'
,
tabname
:
'膨胀金活动'
,
banner
:
`
${
IMG_URL
}
index/banner/banner
2
.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner
3
.png`
,
scrollText
:
'膨胀金活动详情'
,
scrollText
:
'膨胀金活动详情'
,
sceneImgs
:[
sceneImgs
:[
`
${
IMG_URL
}
index/scene/scene20.png`
,
`
${
IMG_URL
}
index/scene/scene20.png`
,
...
@@ -184,7 +184,7 @@ var senceData = [
...
@@ -184,7 +184,7 @@ var senceData = [
msg
:
"1.3售后直播众筹活动"
,
msg
:
"1.3售后直播众筹活动"
,
"sceneCode"
:
"SC004"
,
"sceneCode"
:
"SC004"
,
tabname
:
'众筹活动'
,
tabname
:
'众筹活动'
,
banner
:
`
${
IMG_URL
}
index/banner/banner
3
.png`
,
banner
:
`
${
IMG_URL
}
index/banner/banner
2
.png`
,
scrollText
:
'众筹活动详情'
,
scrollText
:
'众筹活动详情'
,
sceneImgs
:[
sceneImgs
:[
`
${
IMG_URL
}
index/scene/scene30.png`
,
`
${
IMG_URL
}
index/scene/scene30.png`
,
...
...
pages/viewProdBanner/index.js
View file @
3b35e93
...
@@ -61,12 +61,12 @@ Page({
...
@@ -61,12 +61,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(item.productName)
},
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 = {
...
@@ -102,12 +102,12 @@ Page({
...
@@ -102,12 +102,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(item.productName)
},100)
//
},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