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 39c202e2
authored
Dec 21, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
订阅模块 页面显示开发完成
1 parent
bc9c2442
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
176 additions
and
83 deletions
components/proDetail/proDetail.js
components/proDetail/proDetail.scss
components/proDetail/proDetail.wxml
pages/tab/index/constant/systemData.js
pages/tab/index/index.js
components/proDetail/proDetail.js
View file @
39c202e
// packagesList/pages/productDetail/components/proDetail/proDetail.js
// packagesList/pages/productDetail/components/proDetail/proDetail.js
import
{
senceData
,
productData
}
from
"~/pages/tab/index/constant/senceData"
import
{
senceData
,
productData
}
from
'~/pages/tab/index/constant/senceData'
const
norTabList
=
[
'项目亮点'
,
'合作案例'
,
'合作方式'
,
'适配产品'
]
Component
({
Component
({
externalClasses
:
[
'custom-class'
],
externalClasses
:
[
'custom-class'
],
/**
/**
...
@@ -36,7 +37,8 @@ Component({
...
@@ -36,7 +37,8 @@ Component({
prodItemVideo
:
''
,
//选中的场景下的video的第一个
prodItemVideo
:
''
,
//选中的场景下的video的第一个
tabAct
:
0
,
tabAct
:
0
,
scrollTop
:
0
,
scrollTop
:
0
,
showCard
:
false
showCard
:
false
,
tabList
:
[]
},
},
/**
/**
...
@@ -47,16 +49,21 @@ Component({
...
@@ -47,16 +49,21 @@ Component({
let
{
activeNavIdx
,
actNum
}
=
this
.
data
let
{
activeNavIdx
,
actNum
}
=
this
.
data
//console.log(actNum)
//console.log(actNum)
//console.log(activeNavIdx)
//console.log(activeNavIdx)
const
spcList
=
[
99
]
// 订阅模块需要特殊处理
console
.
log
(
productData
,
'productData'
)
const
senceList
=
productData
[
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
const
senceList
=
productData
[
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
console
.
log
(
senceList
)
for
(
let
i
=
0
;
i
<
senceList
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
senceList
.
length
;
i
++
)
{
let
item
=
senceList
[
i
]
let
item
=
senceList
[
i
]
let
proIdList
=
item
?.
productList
.
map
(
k
=>
k
.
id
)
let
proIdList
=
item
?.
productList
.
map
(
k
=>
k
.
id
)
if
(
proIdList
.
includes
(
activeNavIdx
))
{
if
(
proIdList
.
includes
(
activeNavIdx
))
{
//console.log(item, 'item----')
//console.log(item, 'item----')
//console.log(item.productList.find(k => k.id == activeNavIdx))
//console.log(item.productList.find(k => k.id == activeNavIdx))
let
proInfo
=
item
.
productList
.
find
(
k
=>
k
.
id
==
activeNavIdx
)
this
.
setData
({
this
.
setData
({
proInfo
:
item
.
productList
.
find
(
k
=>
k
.
id
==
activeNavIdx
),
proInfo
,
productImgs
:
item
.
productImgs
,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
item
.
productImgs
,
tabList
:
spcList
.
includes
(
actNum
)
?
proInfo
.
tabList
:
norTabList
,
prodItemVideo
:
item
.
videoList
.
length
?
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
prodItemVideo
:
item
.
videoList
.
length
?
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
})
})
//console.log(this.data.prodItemVideo, 'prodItemVideo--------')
//console.log(this.data.prodItemVideo, 'prodItemVideo--------')
...
@@ -65,44 +72,43 @@ Component({
...
@@ -65,44 +72,43 @@ Component({
}
}
},
},
getImgHeight
()
{
getImgHeight
()
{
let
query
=
wx
.
createSelectorQuery
().
in
(
this
)
;
let
query
=
wx
.
createSelectorQuery
().
in
(
this
)
let
heightArr
=
[]
;
let
heightArr
=
[]
let
imgTopArr
=
[]
;
let
imgTopArr
=
[]
let
s
=
0
;
let
s
=
0
let
top
;
let
top
let
{
scrollTop
}
=
this
.
data
let
{
scrollTop
}
=
this
.
data
let
_this
=
this
;
let
_this
=
this
query
query
.
selectAll
(
".img-item"
)
.
selectAll
(
'.img-item'
)
.
boundingClientRect
(
(
react
)
=>
{
.
boundingClientRect
(
react
=>
{
react
.
forEach
((
item
,
index
)
=>
{
react
.
forEach
((
item
,
index
)
=>
{
//44 tab的高度
//44 tab的高度
// console.log('item',item)
// console.log('item',item)
s
=
item
.
top
-
44
+
scrollTop
;
s
=
item
.
top
-
44
+
scrollTop
imgTopArr
.
push
(
s
)
;
imgTopArr
.
push
(
s
)
})
;
})
_this
.
setData
({
_this
.
setData
({
imgTopArr
,
imgTopArr
})
;
})
})
})
.
exec
()
;
.
exec
()
// setTimeout(() => {
// setTimeout(() => {
// console.log('imgTopArr',this.data.imgTopArr)
// console.log('imgTopArr',this.data.imgTopArr)
// },500)
// },500)
},
},
onClickTab
(
event
)
{
onClickTab
(
event
)
{
// console.log('event: ', event);
// console.log('event: ', event);
let
{
index
}
=
event
.
detail
;
let
{
index
}
=
event
.
detail
// console.log('index: ', index);
// console.log('index: ', index);
this
.
setData
({
this
.
setData
({
tabAct
:
index
,
tabAct
:
index
})
;
})
let
{
imgTopArr
}
=
this
.
data
let
{
imgTopArr
}
=
this
.
data
wx
.
pageScrollTo
({
wx
.
pageScrollTo
({
scrollTop
:
imgTopArr
[
index
]
+
5
scrollTop
:
imgTopArr
[
index
]
+
5
})
;
})
},
},
pageSroll
(
e
)
{
pageSroll
(
e
)
{
let
{
imgTopArr
}
=
this
.
data
let
{
imgTopArr
}
=
this
.
data
...
@@ -111,15 +117,15 @@ Component({
...
@@ -111,15 +117,15 @@ Component({
if
(
imgTopArr
[
0
]
>
e
.
scrollTop
)
{
if
(
imgTopArr
[
0
]
>
e
.
scrollTop
)
{
idx
=
0
idx
=
0
}
else
if
(
imgTopArr
[
imgTopArr
.
length
-
1
]
>
e
.
scrollTop
&&
imgTopArr
[
0
]
<
e
.
scrollTop
)
{
}
else
if
(
imgTopArr
[
imgTopArr
.
length
-
1
]
>
e
.
scrollTop
&&
imgTopArr
[
0
]
<
e
.
scrollTop
)
{
idx
=
imgTopArr
.
findIndex
(
(
item
)
=>
item
>
e
.
scrollTop
)
-
1
idx
=
imgTopArr
.
findIndex
(
item
=>
item
>
e
.
scrollTop
)
-
1
}
else
{
}
else
{
idx
=
imgTopArr
.
length
-
1
idx
=
imgTopArr
.
length
-
1
}
}
this
.
setData
({
this
.
setData
({
tabAct
:
idx
,
tabAct
:
idx
,
scrollTop
:
e
.
scrollTop
scrollTop
:
e
.
scrollTop
})
;
})
})
;
})
},
},
selectCard
()
{
selectCard
()
{
//console.log(this.data.showCard)
//console.log(this.data.showCard)
...
...
components/proDetail/proDetail.scss
View file @
39c202e
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
page
{
page
{
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.view-prod
{
.view-prod
{
.frame
{
.frame
{
margin
:
16rpx
32rpx
;
margin
:
16rpx
32rpx
;
...
@@ -10,6 +11,7 @@ page {
...
@@ -10,6 +11,7 @@ page {
border-radius
:
16rpx
;
border-radius
:
16rpx
;
box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
}
.title-wrap
{
.title-wrap
{
margin-bottom
:
32rpx
;
margin-bottom
:
32rpx
;
margin-left
:
32rpx
;
margin-left
:
32rpx
;
...
@@ -17,6 +19,7 @@ page {
...
@@ -17,6 +19,7 @@ page {
display
:
flex
;
display
:
flex
;
height
:
104rpx
;
height
:
104rpx
;
align-items
:
center
;
align-items
:
center
;
.title
{
.title
{
width
:
564rpx
;
width
:
564rpx
;
height
:
48rpx
;
height
:
48rpx
;
...
@@ -25,42 +28,50 @@ page {
...
@@ -25,42 +28,50 @@ page {
color
:
#323436
;
color
:
#323436
;
// line-height: 48rpx;
// line-height: 48rpx;
}
}
.check
{
.check
{
margin-left
:
30rpx
;
margin-left
:
30rpx
;
margin-right
:
6rpx
;
margin-right
:
6rpx
;
width
:
28rpx
;
width
:
28rpx
;
height
:
28rpx
;
height
:
28rpx
;
}
}
.num
{
.num
{
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#5a6066
;
color
:
#5a6066
;
}
}
}
}
.no-video
{
.no-video
{
margin
:
16rpx
auto
32rpx
;
margin
:
16rpx
auto
32rpx
;
display
:
block
;
display
:
block
;
width
:
686rpx
;
width
:
686rpx
;
height
:
386rpx
;
height
:
386rpx
;
border-radius
:
16rpx
;
border-radius
:
16rpx
;
}
}
.tab-wrap
{
.tab-wrap
{
position
:
sticky
;
position
:
sticky
;
top
:
0
;
top
:
0
;
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
z-index
:
1
;
z-index
:
1
;
.tabs-index--van-tabs
{
top
:
-1px
.tabs-index--van-tabs
{
top
:
-1px
}
}
.van-tab
{
.van-tab
{
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#5a6066
;
color
:
#5a6066
;
}
}
.van-tab--active
{
.van-tab--active
{
font-weight
:
600
;
font-weight
:
600
;
font-size
:
28rpx
;
font-size
:
28rpx
;
color
:
#3666fe
;
color
:
#3666fe
;
}
frame
}
.van-tabs__line
{
frame
.van-tabs__line
{
width
:
112rpx
!
important
;
width
:
112rpx
!
important
;
height
:
4rpx
!
important
;
height
:
4rpx
!
important
;
}
}
...
@@ -68,12 +79,14 @@ page {
...
@@ -68,12 +79,14 @@ page {
.prod-detail
{
.prod-detail
{
.occupancy
{
.occupancy
{
height
:
120rpx
;
height
:
120rpx
;
}
}
.img-item
{
.img-item
{
position
:
relative
;
position
:
relative
;
}
}
.phone
{
.phone
{
position
:
absolute
;
position
:
absolute
;
top
:
60rpx
;
top
:
60rpx
;
...
@@ -83,20 +96,23 @@ page {
...
@@ -83,20 +96,23 @@ page {
color
:
#6C6C6C
;
color
:
#6C6C6C
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
.icon
{
.icon
{
width
:
40rpx
;
width
:
40rpx
;
height
:
40rpx
;
height
:
40rpx
;
margin-right
:
6rpx
;
margin-right
:
6rpx
;
}
}
}
}
.check-act
{
.check-act
{
position
:
absolute
;
position
:
absolute
;
bottom
:
94rpx
;
bottom
:
94rpx
;
right
:
60rpx
;
right
:
60rpx
;
font-size
:
24rpx
;
font-size
:
24rpx
;
color
:
#3666FE
;
color
:
#3666FE
;
text-decoration
:underline
;
text-decoration
:
underline
;
}
}
.more-btn
{
.more-btn
{
position
:
absolute
;
position
:
absolute
;
left
:
50%
;
left
:
50%
;
...
@@ -193,6 +209,7 @@ page {
...
@@ -193,6 +209,7 @@ page {
width
:
100%
;
width
:
100%
;
height
:
864rpx
;
height
:
864rpx
;
}
}
// // 流程图四
// // 流程图四
.img-item30
{
.img-item30
{
width
:
100%
;
width
:
100%
;
...
@@ -209,12 +226,58 @@ page {
...
@@ -209,12 +226,58 @@ page {
height
:
490rpx
;
height
:
490rpx
;
}
}
.img-item33
{
.img-item46
{
width
:
100%
;
height
:
1684rpx
;
}
.img-item47
{
width
:
100%
;
height
:
3688rpx
;
}
// .img-item48 {
// width: 100%;
// height: 4004rpx;
// }
.img-item48
{
width
:
100%
;
height
:
472rpx
;
}
.img-item49
{
width
:
100%
;
height
:
4594rpx
;
}
.img-item50
{
width
:
100%
;
height
:
1650rpx
;
}
.img-item51
{
width
:
100%
;
width
:
100%
;
height
:
2002rpx
;
height
:
552rpx
;
}
.img-item52
{
width
:
100%
;
height
:
3534rpx
;
}
.img-item53
{
width
:
100%
;
height
:
1130rpx
;
}
.img-item54
{
width
:
100%
;
height
:
428rpx
;
}
}
}
}
}
}
/* 用户授权 */
/* 用户授权 */
.user-profile
{
.user-profile
{
position
:
fixed
;
position
:
fixed
;
...
@@ -228,6 +291,7 @@ page {
...
@@ -228,6 +291,7 @@ page {
.pro-head
{
.pro-head
{
position
:
relative
;
position
:
relative
;
.select-card
{
.select-card
{
position
:
absolute
;
position
:
absolute
;
right
:
0
;
right
:
0
;
...
@@ -235,7 +299,7 @@ page {
...
@@ -235,7 +299,7 @@ page {
width
:
142rpx
;
width
:
142rpx
;
height
:
68rpx
;
height
:
68rpx
;
background
:
#FFFFFF
;
background
:
#FFFFFF
;
box-shadow
:
0
6rpx
16rpx
0
rgba
(
175
,
175
,
219
,
0
.65
);
box-shadow
:
0
6rpx
16rpx
0
rgba
(
175
,
175
,
219
,
0
.65
);
border-radius
:
34rpx
0
0
34rpx
;
border-radius
:
34rpx
0
0
34rpx
;
z-index
:
2
;
z-index
:
2
;
display
:
flex
;
display
:
flex
;
...
@@ -245,6 +309,7 @@ page {
...
@@ -245,6 +309,7 @@ page {
font-weight
:
600
;
font-weight
:
600
;
font-size
:
26rpx
;
font-size
:
26rpx
;
color
:
#57578A
;
color
:
#57578A
;
.icon-card
{
.icon-card
{
width
:
48rpx
;
width
:
48rpx
;
height
:
48rpx
;
height
:
48rpx
;
...
...
components/proDetail/proDetail.wxml
View file @
39c202e
<!--
packagesList/pages/productDetail/components/proDetail/proDetail.wxml
-->
<!--
packagesList/pages/productDetail/components/proDetail/proDetail.wxml
-->
<view class="view-prod custom-class">
<view class="view-prod custom-class">
<view class="pro-head">
<view class="pro-head">
<view class="select-card" bindtap="selectCard">
<view class="select-card" bindtap="selectCard">
<glsx-image custom-class="icon-card" src="home/icon-card.png"></glsx-image
>
<glsx-image custom-class="icon-card" src="home/icon-card.png" /
>
<view>{{showCard ? '视频' : '名片'}}</view>
<view>{{showCard ? '视频' : '名片'}}</view>
</view>
</view>
<!-- 有视频 -->
<!-- 有视频 -->
<block wx:if="{{!showCard}}">
<block wx:if="{{!showCard}}">
<video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}"
></video
>
<video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}"
/
>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
<view class="title">{{prodItemVideo.name}}</view>
...
@@ -16,38 +16,33 @@
...
@@ -16,38 +16,33 @@
<view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
<view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
</view>
</view>
</block>
</block>
<!-- 无视频 -->
<!-- 无视频 -->
<user-info wx:if="{{showCard}}" class="card-info" cardInfo="{{cardInfo}}"
></user-info
>
<user-info wx:if="{{showCard}}" class="card-info" cardInfo="{{cardInfo}}"
/
>
</view>
</view>
<!-- <image class="no-video" wx:if="{{actNum == 2}}" src="{{IMG_URL}}index/poster/no-video.png?v={{img_version}}" /> -->
<!-- <image class="no-video" wx:if="{{actNum == 2}}" src="{{IMG_URL}}index/poster/no-video.png?v={{img_version}}" /> -->
<view class="tab-wrap">
<view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
<van-tab
title="项目亮点"></van-tab
>
<van-tab
wx:for="{{tabList}}" title="{{item}}" wx:key="idnex" /
>
<
van-tab title="合作案例"></van-tab
>
<
!-- <van-tab title="合作案例" /
>
<van-tab title="合作方式"
></van-tab
>
<van-tab title="合作方式"
/
>
<van-tab title="适配产品"
></van-tab
>
<van-tab title="适配产品"
/> --
>
</van-tabs>
</van-tabs>
</view>
</view>
<view class="prod-detail">
<view class="prod-detail">
<block wx:for="{{productImgs}}" wx:key="index">
<block wx:for="{{productImgs}}" wx:key="index">
<image w
x:if="{{ index < 3}}" webp class="img-item img-item{{index}} img-item{{actNum}}{{index}}" src="{{
item}}?v={{img_version}}">
<image w
ebp wx:if="{{ index < 3}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" src="{{item.url?item.url:
item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<!-- <image src="{{IMGURL}}share-phone.png?v={{img_version}}" class="icon"></image> -->
<glsx-image webp src="index/phone.png" class="icon"
></glsx-image
>
<glsx-image webp src="index/phone.png" class="icon"
/
>
请联系我
请联系我
<view style="color:#3666fe">
<view style="color:#3666fe">{{sharephone}}</view>
{{sharephone}}
</view>
</view>
</view>
</block>
</block>
<!-- 查看活动那个详情 1.3才有 -->
<!-- 查看活动那个详情 1.3才有 -->
<block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}">
<block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}">
<view class="check-act" bindtap="checkActive">
<view class="check-act" bindtap="checkActive">点击查看活动页面</view>
点击查看活动页面
</view>
<!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> -->
<!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> -->
</block>
</block>
<!-- 获取更多详情 -->
<!-- 获取更多详情 -->
...
@@ -57,8 +52,7 @@
...
@@ -57,8 +52,7 @@
</button>
</button>
</block>
</block>
</image>
</image>
<image wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item img-item{{index}} img-item{{actNum}}{{index}}" src="{{item}}?v={{img_version}}">
<image webp wx:if="{{ index >= 3 && !showLeftFlag}}" webp class="img-item {{item.className?item.className:''}} img-item{{index}} img-item{{actNum}}{{index}}" src="{{item.url?item.url:item}}?v={{img_version}}" />
</image>
</block>
</block>
<view class="occupancy" wx:if="{{!isShare}}">
<view class="occupancy" wx:if="{{!isShare}}">
<!-- padding底部 占位元素 -->
<!-- padding底部 占位元素 -->
...
...
pages/tab/index/constant/systemData.js
View file @
39c202e
...
@@ -5,7 +5,8 @@ const subscriptionBannerUrl = IMG_URL2 + 'banner/banner4.webp'
...
@@ -5,7 +5,8 @@ const subscriptionBannerUrl = IMG_URL2 + 'banner/banner4.webp'
const
productImgs0
=
[
`
${
IMG_URL
}
index/productImgs/product00.webp`
,
`
${
IMG_URL
}
index/productImgs/product01.webp`
,
`
${
IMG_URL
}
index/productImgs/product02.webp`
,
`
${
IMG_URL
}
index/productImgs/product03.webp`
]
const
productImgs0
=
[
`
${
IMG_URL
}
index/productImgs/product00.webp`
,
`
${
IMG_URL
}
index/productImgs/product01.webp`
,
`
${
IMG_URL
}
index/productImgs/product02.webp`
,
`
${
IMG_URL
}
index/productImgs/product03.webp`
]
// 车损升级
// 车损升级
const
sceneImgs5
=
[
`
${
IMG_URL
}
index/scene/scene00.png`
,
`
${
IMG_URL
}
index/scene/scene01.png`
,
`
${
IMG_URL
}
index/scene/scene02.png`
,
`
${
IMG_URL
}
index/scene/scene03.png`
]
const
tabList
=
[
'项目亮点'
,
'合作案例'
,
'合作方式'
]
const
sceneImgs5
=
[
`
${
IMG_URL
}
index/productImgs/scene00.png`
,
`
${
IMG_URL
}
index/productImgs/scene01.png`
,
`
${
IMG_URL
}
index/productImgs/scene02.png`
,
`
${
IMG_URL
}
index/productImgs/scene03.png`
]
const
videoList0
=
[
const
videoList0
=
[
{
{
videoUrl
:
`
${
IMG_URL2
}
video/digital_card_30s.mp4`
,
videoUrl
:
`
${
IMG_URL2
}
video/digital_card_30s.mp4`
,
...
@@ -36,29 +37,11 @@ const videoList0 = [
...
@@ -36,29 +37,11 @@ const videoList0 = [
// view: 1485
// view: 1485
// }
// }
]
]
// const posterList0 = [
// {
// src: `${IMG_URL}index/poster/poster3-0.webp`,
// name: '劲爆来袭'
// },
// {
// src: `${IMG_URL}index/poster/poster3-1.webp`,
// name: '疯狂让利'
// },
// {
// src: `${IMG_URL}index/poster/poster3-2.webp`,
// name: '娱乐系统'
// },
// {
// src: `${IMG_URL}index/poster/poster3-3.webp`,
// name: 'AR实景导航'
// }
// ]
const
subscriptionSystemData
=
[
const
subscriptionSystemData
=
[
{
{
name
:
'客户沉淀'
,
name
:
'客户沉淀'
,
//场景详情图片
//场景详情图片
sceneImgs
:
sceneImgs5
,
//
sceneImgs: sceneImgs5,
// 产品详情图片
// 产品详情图片
productImgs
:
productImgs0
,
productImgs
:
productImgs0
,
productList
:
[
productList
:
[
...
@@ -77,10 +60,25 @@ const subscriptionSystemData = [
...
@@ -77,10 +60,25 @@ const subscriptionSystemData = [
productCode
:
'PC011'
,
productCode
:
'PC011'
,
productName
:
'私域用户活跃代运营'
,
productName
:
'私域用户活跃代运营'
,
category
:
'代运营'
,
category
:
'代运营'
,
prodImg
:
`
${
IMG_URL2
}
/prod2/prod4-0.webp`
prodImg
:
`
${
IMG_URL2
}
/prod2/prod4-0.webp`
,
sceneImgs
:
[
{
url
:
`
${
IMG_URL
}
index/productImgs/product46.webp`
,
className
:
'img-item46'
},
},
{
{
id
:
0
,
url
:
`
${
IMG_URL
}
index/productImgs/product47.webp`
,
className
:
'img-item47'
},
{
url
:
`
${
IMG_URL
}
index/productImgs/product48.webp`
,
className
:
'img-item48'
}
],
tabList
},
{
id
:
1
,
img
:
'product-img1'
,
img
:
'product-img1'
,
proName
:
'定保/续保数字化招揽'
,
proName
:
'定保/续保数字化招揽'
,
price
:
'100'
,
price
:
'100'
,
...
@@ -94,7 +92,22 @@ const subscriptionSystemData = [
...
@@ -94,7 +92,22 @@ const subscriptionSystemData = [
productCode
:
'PC012'
,
productCode
:
'PC012'
,
productName
:
'定保/续保数字化招揽'
,
productName
:
'定保/续保数字化招揽'
,
category
:
'招揽'
,
category
:
'招揽'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-1.webp`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-1.webp`
,
sceneImgs
:
[
{
url
:
`
${
IMG_URL
}
index/productImgs/product49.webp`
,
className
:
'img-item49'
},
{
url
:
`
${
IMG_URL
}
index/productImgs/product50.webp`
,
className
:
'img-item50'
},
{
url
:
`
${
IMG_URL
}
index/productImgs/product51.webp`
,
className
:
'img-item51'
}
],
tabList
}
}
],
],
videoList
:
videoList0
videoList
:
videoList0
...
@@ -108,7 +121,7 @@ const subscriptionSystemData = [
...
@@ -108,7 +121,7 @@ const subscriptionSystemData = [
productImgs
:
productImgs0
,
productImgs
:
productImgs0
,
productList
:
[
productList
:
[
{
{
id
:
0
,
id
:
2
,
img
:
'product-img1'
,
img
:
'product-img1'
,
proName
:
'事故车救援服务'
,
proName
:
'事故车救援服务'
,
price
:
'100'
,
price
:
'100'
,
...
@@ -122,7 +135,22 @@ const subscriptionSystemData = [
...
@@ -122,7 +135,22 @@ const subscriptionSystemData = [
productCode
:
'PC001'
,
productCode
:
'PC001'
,
productName
:
'事故车救援服务'
,
productName
:
'事故车救援服务'
,
category
:
'救援'
,
category
:
'救援'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-2.webp`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-2.webp`
,
sceneImgs
:
[
{
url
:
`
${
IMG_URL
}
index/productImgs/product52.webp`
,
className
:
'img-item52'
},
{
url
:
`
${
IMG_URL
}
index/productImgs/product53.webp`
,
className
:
'img-item53'
},
{
url
:
`
${
IMG_URL
}
index/productImgs/product54.webp`
,
className
:
'img-item54'
}
],
tabList
}
}
],
],
videoList
:
videoList0
videoList
:
videoList0
...
...
pages/tab/index/index.js
View file @
39c202e
...
@@ -129,7 +129,7 @@ Page({
...
@@ -129,7 +129,7 @@ Page({
const
{
cardInfo
}
=
this
.
data
const
{
cardInfo
}
=
this
.
data
let
obj
=
{
let
obj
=
{
// || 99
// || 99
actNum
:
detail
.
scenIndex
,
//选中的场景 没有就是订阅系统的
actNum
:
isNaN
(
detail
.
scenIndex
)
?
99
:
detail
.
scenIndex
,
//选中的场景 没有就是订阅系统的
activeNavIdx
:
detail
.
id
,
//选中的产品,
activeNavIdx
:
detail
.
id
,
//选中的产品,
cardInfo
,
cardInfo
,
hasPhoneNumber
:
this
.
data
.
hasPhoneNumber
hasPhoneNumber
:
this
.
data
.
hasPhoneNumber
...
...
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