Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
mini-program
/
ai-card
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 0b7e862b
authored
Oct 28, 2022
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
页面跳转
1 parent
5edb9006
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
23 additions
and
2 deletions
pages/activityApplication/activityApplication.js
pages/activityApplication/activityApplication.wxml
pages/activityApplication/activityApplication.js
View file @
0b7e862
...
@@ -43,6 +43,8 @@ Page({
...
@@ -43,6 +43,8 @@ Page({
url
:
"digital_icon"
,
url
:
"digital_icon"
,
nameZh
:
"数字无忧权益卡"
,
nameZh
:
"数字无忧权益卡"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
0
,
activeNavIdx
:
0
,
},
},
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
...
@@ -55,6 +57,8 @@ Page({
...
@@ -55,6 +57,8 @@ Page({
url
:
"solar_icon"
,
url
:
"solar_icon"
,
nameZh
:
"汽车太阳膜"
,
nameZh
:
"汽车太阳膜"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
1
,
activeNavIdx
:
0
,
},
},
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
...
@@ -67,12 +71,16 @@ Page({
...
@@ -67,12 +71,16 @@ Page({
url
:
"protect_icon"
,
url
:
"protect_icon"
,
nameZh
:
"漆面保护膜"
,
nameZh
:
"漆面保护膜"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
2
,
activeNavIdx
:
0
,
},
},
{
{
name
:
"changingFilm"
,
name
:
"changingFilm"
,
url
:
"change_icon"
,
url
:
"change_icon"
,
nameZh
:
"改色膜"
,
nameZh
:
"改色膜"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
2
,
activeNavIdx
:
1
,
},
},
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
...
@@ -85,30 +93,40 @@ Page({
...
@@ -85,30 +93,40 @@ Page({
url
:
"beauty_icon"
,
url
:
"beauty_icon"
,
nameZh
:
"数字化美容"
,
nameZh
:
"数字化美容"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
3
,
activeNavIdx
:
0
,
},
},
{
{
name
:
"seatVentilate"
,
name
:
"seatVentilate"
,
url
:
"seat_icon"
,
url
:
"seat_icon"
,
nameZh
:
"座椅通风"
,
nameZh
:
"座椅通风"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
3
,
activeNavIdx
:
1
,
},
},
{
{
name
:
"arNavigation"
,
name
:
"arNavigation"
,
url
:
"ar_icon"
,
url
:
"ar_icon"
,
nameZh
:
"AR实景导航"
,
nameZh
:
"AR实景导航"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
3
,
activeNavIdx
:
2
,
},
},
{
{
name
:
"ambientLighting"
,
name
:
"ambientLighting"
,
url
:
"light_icon"
,
url
:
"light_icon"
,
nameZh
:
"氛围灯"
,
nameZh
:
"氛围灯"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
3
,
activeNavIdx
:
3
,
},
},
{
{
name
:
"navigationArround"
,
name
:
"navigationArround"
,
url
:
"arround_icon"
,
url
:
"arround_icon"
,
nameZh
:
"360全景导航"
,
nameZh
:
"360全景导航"
,
isSelect
:
false
,
isSelect
:
false
,
actNum
:
3
,
activeNavIdx
:
4
,
},
},
{
{
nameZh
:
"其他"
,
nameZh
:
"其他"
,
...
@@ -203,7 +221,10 @@ Page({
...
@@ -203,7 +221,10 @@ Page({
// 跳转产品详情页
// 跳转产品详情页
goPage
(
e
)
{
goPage
(
e
)
{
wx
.
$router
.
go
(
e
.
currentTarget
.
dataset
.
item
);
let
actNum
=
e
.
currentTarget
.
dataset
.
item
.
actNum
let
activeNavIdx
=
e
.
currentTarget
.
dataset
.
item
.
activeNavIdx
console
.
log
(
actNum
,
activeNavIdx
,
'000'
);
wx
.
$router
.
go
(
'scene'
,
actNum
,
activeNavIdx
);
},
},
// 展开收起
// 展开收起
...
...
pages/activityApplication/activityApplication.wxml
View file @
0b7e862
...
@@ -28,7 +28,7 @@
...
@@ -28,7 +28,7 @@
<text class="tip-text">{{sceneTip[selectItemName]}}</text>
<text class="tip-text">{{sceneTip[selectItemName]}}</text>
</view>
</view>
<block wx:for="{{productList[selectItemName]}}" wx:key="index">
<block wx:for="{{productList[selectItemName]}}" wx:key="index">
<image wx:if="{{item.name}}" class="product-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}" bindtap="goPage" data-item="{{item
.name
}}"></image>
<image wx:if="{{item.name}}" class="product-img" mode="widthFix" webp src="{{IMGURL}}application/{{item.url}}.png?v={{img_version}}" bindtap="goPage" data-item="{{item}}"></image>
</block>
</block>
</view>
</view>
</view>
</view>
...
...
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