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 f77de2ae
authored
Feb 23, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
二月份版本需求
1 parent
c45f00d8
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
222 additions
and
102 deletions
api/environment.js
components/proDetail/proDetail.js
components/proDetail/proDetail.scss
components/proDetail/proDetail.wxml
components/recordApply/recordApply.js
components/recordApply/recordApply.scss
components/recordTable/recordTable.scss
components/recordTable/recordTable.wxml
components/scene/scene.js
components/scene/scene.scss
packagesList/pages/accessRecord/accessRecord.js
packagesList/pages/accessRecord/accessRecord.json
packagesList/pages/accessRecord/accessRecord.scss
packagesList/pages/measure/constant/data.js
packagesList/pages/measure/measure/measure.js
packagesList/pages/measure/measure/measure.wxml
packagesList/pages/productDetail/productDetail.js
pages/tab/index/constant/senceData.js
pages/tab/index/constant/systemData.js
pages/tab/index/index.js
pages/tab/index/index.wxml
api/environment.js
View file @
f77de2a
...
...
@@ -14,7 +14,7 @@ const target = ["ip", "dev", "uat", "beta", "prod"];
3预发布
4生产
*/
const
index
=
1
;
const
index
=
2
;
const
secretKey
=
{
ip
:
{},
dev
:
{
...
...
components/proDetail/proDetail.js
View file @
f77de2a
// packagesList/pages/productDetail/components/proDetail/proDetail.js
import
{
senceData
,
productData1
}
from
'~/pages/tab/index/constant/senceData'
const
norTabList
=
[
'
项目亮点'
,
'合作案例'
,
'合作方式'
,
'适配产品
'
]
const
norTabList
=
[
'
海报案例'
,
'测算营销'
,
'产品介绍'
,
'项目亮点
'
]
import
{
componentsMixin
}
from
"../../mixins/index"
;
Component
({
externalClasses
:
[
'custom-class'
],
...
...
@@ -15,6 +15,9 @@ Component({
value
:
-
1
,
observer
(
n
)
{
this
.
getInfo
()
if
(
n
==
3
)
{
this
.
setVideoCtx
()
}
this
.
getImgHeight
()
}
},
...
...
@@ -43,22 +46,42 @@ Component({
*/
data
:
{
IMG_URL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
videoBaseUrl
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/'
,
productData
:
productData1
,
proInfo
:
{},
prodItemVideo
:
''
,
//选中的场景下的video的第一个
tabAct
:
0
,
scrollTop
:
0
,
showCard
:
false
,
tabList
:
[]
tabList
:
[],
imgTopArr
:
[]
},
lifetimes
:
{
attached
()
{
setTimeout
(()
=>
{
this
.
getImgHeight
()
},
400
)
},
},
/**
* 组件的方法列表
*/
methods
:
{
setVideoCtx
()
{
this
.
setData
({
videoCtx
:
wx
.
createVideoContext
(
'video'
,
this
),
crowdVideoCtx
:
wx
.
createVideoContext
(
'crowd-video'
,
this
)
})
},
handleVideoPlay
(
e
)
{
let
{
attr
}
=
e
.
currentTarget
.
dataset
this
.
data
[
attr
]
&&
this
.
data
[
attr
].
pause
()
},
getInfo
()
{
let
{
activeNavIdx
,
actNum
}
=
this
.
data
const
spcList
=
[
99
,
4
]
// 订阅模块需要特殊处理
const
spcList
=
[
99
]
// 订阅模块需要特殊处理
const
senceList
=
productData1
[
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
for
(
let
i
=
0
;
i
<
senceList
.
length
;
i
++
)
{
let
item
=
senceList
[
i
]
...
...
@@ -67,7 +90,8 @@ Component({
let
proInfo
=
item
.
productList
.
find
(
k
=>
k
.
id
==
activeNavIdx
)
this
.
setData
({
proInfo
,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
item
.
productImgs
,
// productImgs: spcList.includes(actNum) ? proInfo.sceneImgs : item.productImgs,
productImgs
:
spcList
.
includes
(
actNum
)
?
proInfo
.
sceneImgs
:
(
proInfo
.
productImgs
?
proInfo
.
productImgs
:
item
.
productImgs
),
tabList
:
spcList
.
includes
(
actNum
)
?
proInfo
.
tabList
:
norTabList
,
prodItemVideo
:
item
.
videoList
.
length
?
spcList
.
includes
(
actNum
)
?
item
.
videoList
[
proInfo
.
currentIndex
]
:
item
.
videoList
[
activeNavIdx
]
:
item
.
noVideoPicture
[
0
]
})
...
...
@@ -85,7 +109,7 @@ Component({
let
_this
=
this
query
.
selectAll
(
'.img-item'
)
.
selectAll
(
'.img-item
s
'
)
.
boundingClientRect
(
react
=>
{
react
.
forEach
((
item
,
index
)
=>
{
s
=
item
.
top
-
44
+
scrollTop
...
...
@@ -104,6 +128,7 @@ Component({
},
onClickTab
(
event
)
{
console
.
log
(
event
,
'--'
);
let
{
index
}
=
event
.
detail
this
.
setData
({
tabAct
:
index
...
...
components/proDetail/proDetail.scss
View file @
f77de2a
...
...
@@ -80,6 +80,7 @@ page {
.prod-detail
{
.img-items
{
width
:
100%
;
position
:
relative
;
}
.occupancy
{
...
...
@@ -109,13 +110,25 @@ page {
}
.check-act
{
width
:
100%
;
text-align
:
center
;
position
:
absolute
;
bottom
:
94rpx
;
right
:
60rpx
;
font-size
:
24rpx
;
// bottom: 94rpx;
// right: 60rpx;
// font-size: 24rpx;
bottom
:
64rpx
;
right
:
0
;
font-weight
:
600
;
font-size
:
28rpx
;
color
:
#3666FE
;
text-decoration
:
underline
;
}
.crowd-video
{
width
:
calc
(
100%
-
64rpx
);
position
:
absolute
;
top
:
264rpx
;
margin
:
0
32rpx
;
}
.more-btn
{
position
:
absolute
;
...
...
components/proDetail/proDetail.wxml
View file @
f77de2a
...
...
@@ -7,7 +7,8 @@
</view>
<!-- 有视频 -->
<block wx:if="{{!showCard}}">
<video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" />
<!-- <video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" /> -->
<video class="frame" id="video" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" bindplay="handleVideoPlay" data-attr="crowdVideoCtx"/>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
...
...
@@ -27,7 +28,8 @@
</view>
<view class="prod-detail">
<block wx:for="{{productImgs}}" wx:key="index">
<image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" webp src="{{item.url?item.url:item}}?v={{img_version}}">
<!-- <image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" webp src="{{item.url?item.url:item}}?v={{img_version}}"> -->
<image webp wx:if="{{ index < 3}}" mode="widthFix" class="img-items" src="{{item.url?item.url:item}}?v={{img_version}}">
<block wx:if="{{ index == 0}}">
<!-- && phone -->
<view class="phone" bindtap="phoneCall" data-phone="{{phone}}">
...
...
@@ -38,7 +40,8 @@
</view>
</block>
<!-- 查看活动那个详情 1.3才有 -->
<block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}">
<!-- <block wx:if="{{ index == 1 && actNum == 3 && activeUrl}}"> -->
<block wx:if="{{ index == 0 && actNum == 3 && activeUrl}}">
<view class="check-act" bindtap="checkActive">点击查看活动页面</view>
<!-- <button class="check-act" type="default" plain="true" bindtap="checkActive">查看活动详情</button> -->
</block>
...
...
@@ -49,7 +52,14 @@
</button>
</block>
</image>
<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}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}" />
<!-- <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}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}" /> -->
<image webp wx:if="{{ index >= 3 && !showLeftFlag}}" mode="widthFix" webp class="img-items {{item.className?item.className:''}}" src="{{item.url?item.url:item}}?v={{img_version}}" bindlongpress="handleLongPress" data-actnum="{{actNum}}" data-index="{{index}}">
<!-- 众筹-视频 -->
<block wx:if="{{ index == 3 && actNum == 3 }}">
<!-- <video class="crowd-video" src="{{videoBaseUrl}}video/crowd-detail.mp4" /> -->
<video class="crowd-video" id="crowd-video" bindplay="handleVideoPlay" data-attr="videoCtx" src="{{videoBaseUrl}}video/crowd-detail.mp4" />
</block>
</image>
</block>
<view class="occupancy" wx:if="{{!isShare}}">
<!-- padding底部 占位元素 -->
...
...
components/recordApply/recordApply.js
View file @
f77de2a
...
...
@@ -92,7 +92,8 @@ Component({
},
// 打电话
callApply
(
e
)
{
const
phoneNumber
=
e
.
currentTarget
.
dataset
.
contactPhone
console
.
log
(
e
);
const
phoneNumber
=
e
.
currentTarget
.
dataset
.
phone
wx
.
makePhoneCall
({
phoneNumber
:
phoneNumber
,
});
...
...
components/recordApply/recordApply.scss
View file @
f77de2a
...
...
@@ -2,11 +2,6 @@
.apply-wrap
{
padding
:
24rpx
;
.content
{
height
:
calc
(
100%
-
160rpx
);
overflow
:
scroll
;
}
.apply-item
{
box-sizing
:
border-box
;
background
:
#fff
;
...
...
@@ -88,16 +83,18 @@
&
-left
{
position
:
relative
;
.popover-main
{
position
:
absolute
;
top
:
-50rpx
;
left
:
0
;
background
:
#4C4C4C
;
height
:
50rpx
;
width
:
200rpx
;
height
:
50rpx
;
width
:
200rpx
;
.popover-item
{
height
:
50rpx
;
line-height
:
50rpx
;
line-height
:
50rpx
;
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
24rpx
;
...
...
components/recordTable/recordTable.scss
View file @
f77de2a
...
...
@@ -43,7 +43,7 @@ color: #5850FF;
}
.item_name
{
min-width
:
2
0
0rpx
;
min-width
:
2
2
0rpx
;
height
:
90rpx
;
display
:
flex
;
align-items
:
center
;
...
...
@@ -60,4 +60,10 @@ color: #6C737A;
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#414141
;
}
.type-color
{
font-family
:
PingFangSC-Regular
;
font-weight
:
400
;
font-size
:
22rpx
;
color
:
#2CCA74
;
}
\ No newline at end of file
components/recordTable/recordTable.wxml
View file @
f77de2a
<!--components/recordTable/recordTable.wxml-->
<view class='table'>
<!-- 左侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{tabList}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item}}</view>
<view wx:for="{{tableData}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_price'>
<block wx:if="{{item == '访客'}}">{{litem.nickName}}</block>
<block wx:if="{{item == '联系电话'}}">{{litem.phone}}</block>
<block wx:if="{{item == '最后访问时间'}}">{{litem.lastTime}}</block>
</view>
<!-- 左侧表格滚动 -->
<view class="table_right_scroll_box">
<view class="flex_direction_column_item" wx:for="{{tabList}}" wx:for-index="index" wx:key="index">
<view class='item_name'>{{item}}</view>
<view wx:for="{{tableData}}" wx:for-item="litem" wx:for-index="lindex" wx:key="lindex" class='item_name item_price'>
<block wx:if="{{item == '访客'}}">{{litem.nickName}}<text class="type-color">@{{litem.type == 1 ? '微信' : ''}}</text></block>
<block wx:if="{{item == '联系电话'}}">{{litem.phone}}</block>
<block wx:if="{{item == '最后访问时间'}}">{{litem.lastTime}}</block>
</view>
</view>
<!-- 右侧固定 -->
<view class='table_left_column'>
<view class='item_name'>操作</view>
<view class='left_col_item' wx:for="{{tableData.length}}" wx:for-index="index" wx:key="index" data-id="{{index}}" bindtap="selectRecord">访问记录</view>
</view>
</view>
<Popup show="{{popShow}}" list="{{recordList}}" bindclosePop="closePop"></Popup>
<!-- 右侧固定 -->
<view class='table_left_column'>
<view class='item_name'>操作</view>
<view class='left_col_item' wx:for="{{tableData.length}}" wx:for-index="index" wx:key="index" data-id="{{index}}" bindtap="selectRecord">访问记录</view>
</view>
</view>
<Popup show="{{popShow}}" list="{{recordList}}" bindclosePop="closePop"></Popup>
\ No newline at end of file
components/scene/scene.js
View file @
f77de2a
...
...
@@ -33,7 +33,7 @@ Component({
id
:
"2"
,
name
:
"scene3"
,
title
:
"次新车二次转化"
,
url
:
"car
2
"
,
url
:
"car
7
"
,
},
{
id
:
"3"
,
...
...
components/scene/scene.scss
View file @
f77de2a
...
...
@@ -67,7 +67,7 @@
.product-item-title
{
font-family
:
PingFangSC-Medium
;
font-weight
:
600
;
font-size
:
2
4
rpx
;
font-size
:
2
3
rpx
;
color
:
#323436
;
letter-spacing
:
0
;
text-align
:
center
;
...
...
packagesList/pages/accessRecord/accessRecord.js
View file @
f77de2a
...
...
@@ -14,11 +14,11 @@ Page({
recordData
:
[],
recordPageData
:
{
pageNum
:
1
,
pageSize
:
20
,
pageSize
:
15
,
},
applyPageData
:
{
pageNum
:
1
,
pageSize
:
2
0
,
pageSize
:
1
0
,
}
},
// tab切换
...
...
@@ -51,7 +51,8 @@ Page({
if
(
res
&&
res
.
code
==
0
)
{
let
data
=
this
.
data
.
recordData
.
concat
(
res
.
data
.
data
)
this
.
setData
({
recordData
:
data
recordData
:
data
,
recordDataNum
:
res
.
data
.
count
})
}
else
{
wx
.
showToast
({
...
...
@@ -76,7 +77,8 @@ Page({
if
(
res
&&
res
.
code
==
0
)
{
let
data
=
this
.
data
.
applyData
.
concat
(
res
.
data
.
data
)
this
.
setData
({
applyData
:
data
applyData
:
data
,
applyDataNum
:
res
.
data
.
count
})
}
else
{
wx
.
showToast
({
...
...
@@ -139,16 +141,32 @@ Page({
* 页面上拉触底事件的处理函数
*/
onReachBottom
()
{
console
.
log
(
111
);
if
(
this
.
data
.
tabIndex
==
0
)
{
const
size
=
this
.
data
.
recordPageData
.
pageNum
*
this
.
data
.
recordPageData
.
pageSize
if
(
this
.
data
.
recordData
.
length
<=
size
)
return
if
(
this
.
data
.
recordData
.
length
>=
this
.
data
.
recordDataNum
)
{
if
(
this
.
data
.
recordData
.
length
==
this
.
data
.
recordDataNum
)
{
wx
.
showToast
({
title
:
'已经到最底了'
,
icon
:
'none'
})
}
return
}
this
.
setData
({
[
'recordPageData.pageNum'
]:
this
.
data
.
recordPageData
.
pageNum
+
1
})
this
.
getCarRecord
()
}
else
{
const
size
=
this
.
data
.
applyPageData
.
pageNum
*
this
.
data
.
applyPageData
.
pageSize
if
(
this
.
data
.
applyData
.
length
<=
size
)
return
console
.
log
(
this
.
data
.
applyDataNum
,
this
.
data
.
applyData
.
length
);
if
(
this
.
data
.
applyData
.
length
>=
this
.
data
.
applyDataNum
)
{
if
(
this
.
data
.
applyData
.
length
==
this
.
data
.
applyDataNum
)
{
wx
.
showToast
({
title
:
'已经到最底了'
,
icon
:
'none'
})
}
return
}
this
.
setData
({
[
'applyPageData.pageNum'
]:
this
.
data
.
applyPageData
.
pageNum
+
1
})
...
...
packagesList/pages/accessRecord/accessRecord.json
View file @
f77de2a
...
...
@@ -3,5 +3,5 @@
"RecordTable"
:
"../../../components/recordTable/recordTable"
,
"RecordApply"
:
"../../../components/recordApply/recordApply"
},
"navigationBarTitleText"
:
"名片
访问记录
"
"navigationBarTitleText"
:
"名片
线索
"
}
\ No newline at end of file
packagesList/pages/accessRecord/accessRecord.scss
View file @
f77de2a
/* packagesList/pages/accessRecord/accessRecord.wxss */
.main-content
{
background
:
#F5F5F7
;
height
:
100vh
;
}
.page-top
{
display
:
flex
;
...
...
packagesList/pages/measure/constant/data.js
View file @
f77de2a
var
measureList
=
Object
.
freeze
([
{
name
:
'新车交付场景'
,
tips
:
'膜升级驻店'
,
// name: '新车交付场景',
name
:
'膜升级驻店'
,
// tips: '精品升级',
iconName
:
'icon2'
,
product
:
[
{
name
:
'太阳膜升级'
,
parentName
:
'
新车交付场景
'
,
tips
:
'精品升级'
,
value
:
'1-0'
,
parentName
:
'
膜升级驻店
'
,
//
tips: '精品升级',
//
value: '1-0',
typeIndex
:
'1.1'
,
isCheck
:
false
,
rate
:
'0.55'
,
...
...
@@ -20,15 +21,15 @@ var measureList = Object.freeze([
]
},
{
name
:
'
0-6月
'
,
name
:
'
次新车二次转化
'
,
iconName
:
'icon3'
,
tips
:
'次新车二次转化
'
,
// tips: '膨胀金活动
',
product
:
[
{
name
:
'膨胀金活动-车衣'
,
parentName
:
'
0-6月
'
,
tips
:
'膨胀金活动'
,
value
:
'2-0'
,
parentName
:
'
次新车二次转化
'
,
//
tips: '膨胀金活动',
//
value: '2-0',
typeIndex
:
'1.2'
,
isCheck
:
false
,
rate
:
'0.09'
,
...
...
@@ -39,9 +40,9 @@ var measureList = Object.freeze([
},
{
name
:
'膨胀金活动-改色膜'
,
parentName
:
'
0-6月
'
,
tips
:
'膨胀金活动'
,
value
:
'2-1'
,
parentName
:
'
次新车二次转化
'
,
//
tips: '膨胀金活动',
//
value: '2-1',
typeIndex
:
'1.2'
,
isCheck
:
false
,
rate
:
'0.06'
,
...
...
@@ -53,16 +54,16 @@ var measureList = Object.freeze([
]
},
{
name
:
'
6个月以上
'
,
name
:
'
售后众筹
'
,
iconName
:
'icon4'
,
tips
:
'售后众筹
'
,
// tips: '众筹活动
',
product
:
[
{
name
:
'360全景导航'
,
parentName
:
'
6个月以上
'
,
tips
:
'众筹活动'
,
parentName
:
'
售后众筹
'
,
//
tips: '众筹活动',
typeIndex
:
'1.3'
,
value
:
'3-0'
,
//
value: '3-0',
isCheck
:
false
,
rate
:
'0.015'
,
averagePrice
:
2680
,
...
...
@@ -72,9 +73,9 @@ var measureList = Object.freeze([
},
{
name
:
'AR导航'
,
parentName
:
'
6个月以上
'
,
tips
:
'众筹活动'
,
value
:
'3-1'
,
parentName
:
'
售后众筹
'
,
//
tips: '众筹活动',
//
value: '3-1',
typeIndex
:
'1.3'
,
isCheck
:
false
,
rate
:
'0.015'
,
...
...
@@ -85,9 +86,9 @@ var measureList = Object.freeze([
},
{
name
:
'氛围灯'
,
parentName
:
'
6个月以上
'
,
tips
:
'众筹活动'
,
value
:
'3-2'
,
parentName
:
'
售后众筹
'
,
//
tips: '众筹活动',
//
value: '3-2',
typeIndex
:
'1.3'
,
isCheck
:
false
,
rate
:
'0.015'
,
...
...
@@ -98,9 +99,9 @@ var measureList = Object.freeze([
},
{
name
:
'座椅通风'
,
parentName
:
'
6个月以上
'
,
tips
:
'众筹活动'
,
value
:
'3-3'
,
parentName
:
'
售后众筹
'
,
//
tips: '众筹活动',
//
value: '3-3',
typeIndex
:
'1.3'
,
isCheck
:
false
,
rate
:
'0.01'
,
...
...
@@ -111,9 +112,9 @@ var measureList = Object.freeze([
},
{
name
:
'智能香薰'
,
parentName
:
'
6个月以上
'
,
tips
:
'众筹活动'
,
value
:
'3-4'
,
parentName
:
'
售后众筹
'
,
//
tips: '众筹活动',
//
value: '3-4',
typeIndex
:
'1.3'
,
isCheck
:
false
,
rate
:
'0.015'
,
...
...
@@ -125,15 +126,15 @@ var measureList = Object.freeze([
]
},
{
name
:
'
新车洽谈场景
'
,
tips
:
'车损险
升级'
,
name
:
'
车损险升级
'
,
// tips: '车损
升级',
iconName
:
'icon1'
,
product
:
[
{
name
:
'车损升级'
,
parentName
:
'
新车洽谈场景
'
,
tips
:
'车损升级'
,
value
:
'0-0'
,
parentName
:
'
车损险升级
'
,
//
tips: '车损升级',
//
value: '0-0',
typeIndex
:
'1.0'
,
isCheck
:
false
,
rate
:
'0.5'
,
...
...
@@ -143,7 +144,7 @@ var measureList = Object.freeze([
serviceDividendRatio
:
'0.23'
}
]
}
}
,
])
export
default
{
...
...
packagesList/pages/measure/measure/measure.js
View file @
f77de2a
...
...
@@ -49,11 +49,16 @@ Page({
},
// 选择产品
checkProduct
(
e
)
{
const
value
=
e
.
target
.
dataset
.
value
const
index
=
+
value
.
split
(
'-'
)[
0
]
const
productIndex
=
+
value
.
split
(
'-'
)[
1
]
const
name
=
`measureList[
${
index
}
].product[
${
productIndex
}
].isCheck`
const
val
=
this
.
data
.
measureList
[
index
].
product
[
productIndex
].
isCheck
// const value = e.target.dataset.value
// const index = +value.split('-')[0]
// const productIndex = +value.split('-')[1]
// const name = `measureList[${index}].product[${productIndex}].isCheck`
// const val = this.data.measureList[index].product[productIndex].isCheck
// !val ? checkMap.set(value, !val) : checkMap.delete(value)
const
{
pidx
,
idx
}
=
e
.
currentTarget
.
dataset
const
value
=
pidx
+
'-'
+
idx
const
name
=
`measureList[
${
pidx
}
].product[
${
idx
}
].isCheck`
const
val
=
this
.
data
.
measureList
[
pidx
].
product
[
idx
].
isCheck
!
val
?
checkMap
.
set
(
value
,
!
val
)
:
checkMap
.
delete
(
value
)
this
.
setData
({
[
name
]:
!
val
,
...
...
packagesList/pages/measure/measure/measure.wxml
View file @
f77de2a
...
...
@@ -19,7 +19,8 @@
<view wx:if="{{i.tips}}" class="title-tip">{{i.tips}}</view>
</view>
<view class="product-list">
<view class="product-item {{j.isCheck ? 'active':''}}" wx:for="{{i.product}}" wx:for-item="j" wx:key="index" data-value="{{j.value}}" bindtap="checkProduct">
<!-- <view class="product-item {{j.isCheck ? 'active':''}}" wx:for="{{i.product}}" wx:for-item="j" wx:key="index" data-value="{{j.value}}" bindtap="checkProduct"> -->
<view class="product-item {{j.isCheck ? 'active':''}}" wx:for="{{i.product}}" wx:for-item="j" wx:for-index="jIdx" wx:key="index" data-pidx="{{index}}" data-idx="{{jIdx}}" data-value="{{j.value}}" bindtap="checkProduct">
<image hidden="{{!j.isCheck}}" class="iconCheck" webp src="{{IMGURL}}measure/icon-check.png?v={{img_version}}"></image>
{{j.name}}</view>
</view>
...
...
packagesList/pages/productDetail/productDetail.js
View file @
f77de2a
...
...
@@ -26,7 +26,8 @@ Page({
productData
,
proInfo
:
{},
isShare
:
false
,
//是否是分享出去的
actNum
:
0
,
actNum
:
-
1
,
activeNavIdx
:
0
,
tabAct
:
0
,
showLeft
:
false
,
//更多按钮显示的内容
scrollTop
:
0
,
...
...
pages/tab/index/constant/senceData.js
View file @
f77de2a
...
...
@@ -19,7 +19,8 @@ import { subscriptionSystemData } from './systemData'
*/
// 车损升级
const
sceneImgs0
=
[
`
${
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
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
productImgs0
=
[
`
${
IMG_URL
}
index/newProImgs/pro00.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro01.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro02.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro03.webp`
]
const
videoList0
=
[
{
videoUrl
:
`
${
videoBaseUrl
}
video/digital_card_30s.mp4`
,
...
...
@@ -102,7 +103,8 @@ const scenario_0 = [
// 精品升级
const
sceneImgs1
=
[
`
${
IMG_URL
}
index/scene/scene10.png`
,
`
${
IMG_URL
}
index/scene/scene11.png`
,
`
${
IMG_URL
}
index/scene/scene12.png`
,
`
${
IMG_URL
}
index/scene/scene13.png`
]
const
productImgs1
=
[
`
${
IMG_URL
}
index/productImgs/product10.webp`
,
`
${
IMG_URL
}
index/productImgs/product11.webp`
,
`
${
IMG_URL
}
index/productImgs/product12.webp`
,
`
${
IMG_URL
}
index/productImgs/product13.webp`
]
// const productImgs1 = [`${IMG_URL}index/productImgs/product10.webp`, `${IMG_URL}index/productImgs/product11.webp`, `${IMG_URL}index/productImgs/product12.webp`, `${IMG_URL}index/productImgs/product13.webp`]
const
productImgs1
=
[
`
${
IMG_URL
}
index/newProImgs/pro10.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro11.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro12.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro13.webp`
]
const
videoList1
=
[
{
videoUrl
:
`
${
videoBaseUrl
}
video/solar.mp4`
,
...
...
@@ -136,6 +138,7 @@ const scenario_1 = [
sceneImgs
:
sceneImgs1
,
productImgs
:
productImgs1
,
"sceneCode"
:
"SC002"
,
sceneid
:
1
,
productList
:
[
{
id
:
0
,
...
...
@@ -162,7 +165,8 @@ const scenario_1 = [
// 客户线上化
const
sceneImgs2
=
[
`
${
IMG_URL
}
index/scene/scene20.png`
,
`
${
IMG_URL
}
index/scene/scene21.png`
,
`
${
IMG_URL
}
index/scene/scene22.png`
,
`
${
IMG_URL
}
index/scene/scene23.png`
]
const
productImgs2
=
[
`
${
IMG_URL
}
index/productImgs/product20.webp`
,
`
${
IMG_URL
}
index/productImgs/product21.webp`
,
`
${
IMG_URL
}
index/productImgs/product22.webp`
,
`
${
IMG_URL
}
index/productImgs/product23.webp`
]
// const productImgs2 = [`${IMG_URL}index/productImgs/product20.webp`, `${IMG_URL}index/productImgs/product21.webp`, `${IMG_URL}index/productImgs/product22.webp`, `${IMG_URL}index/productImgs/product23.webp`]
const
productImgs2
=
[
`
${
IMG_URL
}
index/newProImgs/pro20.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro21.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro22.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro23.webp`
]
const
posterList2
=
[
{
src
:
`
${
IMG_URL
}
index/poster/poster3-0.webp`
,
...
...
@@ -188,6 +192,7 @@ const scenario_2 = [
sceneImgs
:
sceneImgs2
,
productImgs
:
productImgs2
,
"sceneCode"
:
"SC003"
,
sceneid
:
2
,
productList
:
[
{
id
:
0
,
...
...
@@ -238,7 +243,8 @@ const scenario_2 = [
// 众筹活动
const
sceneImgs3
=
[
`
${
IMG_URL
}
index/scene/scene30.png`
,
`
${
IMG_URL
}
index/scene/scene31.png`
,
`
${
IMG_URL
}
index/scene/scene32.png`
,
`
${
IMG_URL
}
index/scene/scene33.png`
]
const
productImgs3
=
[
`
${
IMG_URL
}
index/productImgs/product30.webp`
,
`
${
IMG_URL
}
index/productImgs/product31.webp`
,
`
${
IMG_URL
}
index/productImgs/product32.webp`
,
`
${
IMG_URL
}
index/productImgs/product33.webp`
]
// const productImgs3 = [`${IMG_URL}index/productImgs/product30.webp`, `${IMG_URL}index/productImgs/product31.webp`, `${IMG_URL}index/productImgs/product32.webp`, `${IMG_URL}index/productImgs/product33.webp`]
const
productImgs3
=
[
`
${
IMG_URL
}
index/newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro33.webp`
]
const
videoList3
=
[
{
videoUrl
:
`
${
videoBaseUrl
}
video/car_beauty.mp4`
,
...
...
@@ -305,6 +311,7 @@ const scenario_3 = [
{
name
:
'美容类'
,
"sceneCode"
:
"SC004"
,
sceneid
:
3
,
productList
:
[
{
id
:
0
,
...
...
@@ -331,6 +338,8 @@ const scenario_3 = [
},
{
name
:
'轻改类'
,
"sceneCode"
:
"SC004"
,
sceneid
:
0
,
productList
:
[
{
id
:
1
,
...
...
@@ -347,7 +356,8 @@ const scenario_3 = [
productCode
:
'PC006'
,
productName
:
'座椅通风'
,
category
:
'轻改类'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-3.png`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-3.png`
,
productImgs
:
[
`
${
IMG_URL
}
index/newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32-car.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro33.webp`
]
},
{
id
:
2
,
...
...
@@ -364,7 +374,8 @@ const scenario_3 = [
productCode
:
'PC007'
,
productName
:
'AR导航'
,
category
:
'轻改类'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-0.png`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-0.png`
,
productImgs
:
[
`
${
IMG_URL
}
index/newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32-AR.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro33.webp`
]
},
{
id
:
3
,
...
...
@@ -381,7 +392,8 @@ const scenario_3 = [
productCode
:
'PC008'
,
productName
:
'氛围灯'
,
category
:
'轻改类'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-2.png`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-2.png`
,
productImgs
:
[
`
${
IMG_URL
}
index/newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32-lamp.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro33.webp`
]
},
{
id
:
4
,
...
...
@@ -398,7 +410,8 @@ const scenario_3 = [
productCode
:
'PC009'
,
productName
:
'360全景导航'
,
category
:
'轻改类'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-1.png`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-1.png`
,
productImgs
:
[
`
${
IMG_URL
}
index/newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32-360.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro33.webp`
]
},
{
id
:
5
,
...
...
@@ -415,7 +428,8 @@ const scenario_3 = [
productCode
:
'PC009'
,
productName
:
'智能香氛系统'
,
category
:
'轻改类'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-5.png`
prodImg
:
`
${
IMG_URL
}
index/prod2/prod3-5.png`
,
productImgs
:
[
`
${
IMG_URL
}
index/newProImgs/pro30.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro31.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro32-xt.webp`
,
`
${
IMG_URL
}
index/newProImgs/pro33.webp`
]
}
],
sceneImgs
:
sceneImgs3
,
...
...
pages/tab/index/constant/systemData.js
View file @
f77de2a
...
...
@@ -53,9 +53,11 @@ const subscriptionSystemData = [
// sceneImgs: sceneImgs5,
// 产品详情图片
productImgs
:
productImgs0
,
sceneid
:
0
,
productList
:
[
{
id
:
0
,
sceneid
:
0
,
currentIndex
:
0
,
img
:
'product-img1'
,
proName
:
'客户活跃代运营'
,
...
...
@@ -89,6 +91,7 @@ const subscriptionSystemData = [
},
{
id
:
1
,
sceneid
:
0
,
currentIndex
:
1
,
img
:
'product-img1'
,
proName
:
'定保数字化招揽'
,
...
...
@@ -128,11 +131,13 @@ const subscriptionSystemData = [
name
:
'客户活跃'
,
//场景详情图片
sceneImgs
:
sceneImgs5
,
sceneid
:
1
,
// 产品详情图片
productImgs
:
productImgs0
,
productList
:
[
{
id
:
2
,
sceneid
:
1
,
currentIndex
:
0
,
img
:
'product-img1'
,
proName
:
'事故车救援服务'
,
...
...
@@ -170,6 +175,7 @@ const subscriptionSystemData = [
},
{
name
:
'膨胀金活动'
,
sceneid
:
2
,
//场景详情图片
sceneImgs
:
sceneImgs4
,
// 产品详情图片
...
...
@@ -177,6 +183,7 @@ const subscriptionSystemData = [
productList
:
[
{
id
:
3
,
sceneid
:
2
,
currentIndex
:
0
,
proName
:
'膨胀金'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-0.png`
,
...
...
@@ -189,6 +196,7 @@ const subscriptionSystemData = [
},
{
name
:
'数字化转型案例'
,
sceneid
:
3
,
videoList
:
videoList0
.
concat
(
videoList1
).
concat
(
videoList4
)
}
]
...
...
pages/tab/index/index.js
View file @
f77de2a
...
...
@@ -106,6 +106,16 @@ Page({
// 更新手机号
updatePhoneNumber
(
e
)
{
console
.
log
(
e
);
const
{
phone
}
=
wx
.
$storage
.
get
(
'aicard_user_info'
)
console
.
log
(
this
.
data
.
cardInfo
.
staffPhone
,
phone
);
if
(
this
.
data
.
cardInfo
.
staffPhone
===
phone
)
{
// wx.$storage.set('isStaff', 'true')
this
.
setData
({
isStaff
:
true
,
phoneNumber
:
phone
})
}
if
(
e
.
detail
)
{
this
.
setData
({
hasPhoneNumber
:
true
...
...
@@ -283,6 +293,15 @@ Page({
wx
.
$Track
.
sendTrack
(
this
.
data
.
secondTab
[
0
])
}
}
console
.
log
(
this
.
data
.
isStaff
,
this
.
data
.
cardInfo
);
if
(
!
this
.
data
.
isStaff
&&
this
.
data
.
cardInfo
)
{
if
(
this
.
data
.
cardInfo
.
staffPhone
===
this
.
data
.
phoneNumber
)
{
// wx.$storage.set('isStaff', 'true')
this
.
setData
({
isStaff
:
true
})
}
}
},
/**
...
...
pages/tab/index/index.wxml
View file @
f77de2a
...
...
@@ -45,7 +45,7 @@
<image wx:if="{{showCooperate}}" class="floating-icon" bindtap="toBusinessMiniProgram" webp src="{{IMGURL}}home/icon-business.png?v={{img_version}}" />
<image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}" />
</view>
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}" />
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}"
bindupdatePhoneNumber="updatePhoneNumber"
/>
<!-- 客服咨询 -->
<customer wx:if="{{showCustomer}}" qrCode="{{cardInfo.qrCode}}" bindcloseQR="closeQR" />
</block>
\ No newline at end of file
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