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 913b05cf
authored
Dec 22, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加埋点
1 parent
3c2811d5
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
49 additions
and
12 deletions
components/proDetail/proDetail.js
components/proDetail/proDetail.wxml
packagesList/pages/productDetail/productDetail.js
packagesList/pages/scenarioDetail/scenarioDetail.js
pages/tab/index/index.js
utils/data.js
components/proDetail/proDetail.js
View file @
913b05c
...
...
@@ -141,7 +141,6 @@ Component({
})
},
selectCard
()
{
//console.log(this.data.showCard)
this
.
setData
({
showCard
:
!
this
.
data
.
showCard
})
...
...
components/proDetail/proDetail.wxml
View file @
913b05c
<!-- packagesList/pages/productDetail/components/proDetail/proDetail.wxml -->
<view class="view-prod custom-class">
<view class="pro-head">
<view class="select-card" bindtap="selectCard">
<glsx-image custom-class="icon-card" src="home/icon-card.png"></glsx-image>
<view>{{showCard ? '视频' : '名片'}}</view>
</view>
<!-- 有视频 -->
<block wx:if="{{!showCard}}">
<video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}" />
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
<image class="check" wx:if="{{actNum != 2}}" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
</view>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
<image class="check" wx:if="{{actNum != 2}}" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num" wx:if="{{actNum != 2}}">{{prodItemVideo.view}}</view>
</view>
</block>
<user-info wx:if="{{showCard}}" class="card-info" cardInfo="{{cardInfo}}"></user-info>
</view>
<view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
...
...
packagesList/pages/productDetail/productDetail.js
View file @
913b05c
...
...
@@ -12,6 +12,7 @@ import {
// import USERAPI from '~/api/usersApi/index'
import
utils
from
'~/utils/util'
import
{
entmicroApi
}
from
"~/api/api"
import
{
trackData
}
from
'../../../utils/data'
Page
({
...
...
@@ -38,6 +39,13 @@ Page({
sharephone
:
''
,
//主要微信用户,服务商
cardInfo
:
{},
hasPhoneNumber
:
false
,
// 是否有授权手机号码
trackList
:
[
[
trackData
.
EQUITYCARD
],
[
trackData
.
SOLARFILM
],
[
trackData
.
PAINTPROTECT
,
trackData
.
CHANGEFILM
],
[
trackData
.
CARBEAUTY
,
trackData
.
SEATVENTILATE
,
trackData
.
ARNAVIGATION
,
trackData
.
LIGHT
,
trackData
.
NAVIGATIONARROUND
,
trackData
.
LOSSPGASE
],
[]
]
},
// 计算属性
computed
:
{
...
...
@@ -79,7 +87,7 @@ Page({
cardInfo
,
hasPhoneNumber
:
options
.
hasPhoneNumber
})
wx
.
$Track
.
sendTrack
(
this
.
data
.
trackList
[
actNum
][
activeNavIdx
])
// console.log(this.data.senceData, 'senceData-----')
const
senceList
=
productData
[
this
.
data
.
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
for
(
let
i
=
0
;
i
<
senceList
.
length
;
i
++
)
{
...
...
packagesList/pages/scenarioDetail/scenarioDetail.js
View file @
913b05c
...
...
@@ -4,6 +4,7 @@ import { IMG_URL } from "~/utils/constantData.js";
import
{
senceData
,
productData
}
from
"~/pages/tab/index/constant/senceData"
// import USERAPI from '~/api/usersApi/index'
import
utils
from
'~/utils/util'
import
{
trackData
}
from
'../../../utils/data'
// import {getActiveApi} from "~/api/viewprod"
Page
({
...
...
@@ -28,7 +29,8 @@ Page({
hasUserInfo
:
false
,
prodItemVideo
:
''
,
//选中的场景下的video的第一个
activeUrl
:
''
,
// 1.3场景才有的活动配置
sharephone
:
''
//主要微信用户,服务商
sharephone
:
''
,
//主要微信用户,服务商
trackList
:
[
trackData
.
CARDETAIL
,
trackData
.
FINEDETAIL
,
trackData
.
CUSTOMEDETAIL
,
trackData
.
CROWDDETAIL
,
trackData
.
EXPANDETAIL
]
},
// 计算属性
computed
:
{
...
...
@@ -61,7 +63,7 @@ Page({
activeNavIdx
,
//选中的产品
sharephone
:
phone
//联系电话 (登陆的用户)
})
wx
.
$Track
.
sendTrack
(
this
.
data
.
trackList
[
this
.
data
.
actNum
])
// console.log(this.data.senceData, 'senceData-----')
const
senceList
=
productData
[
this
.
data
.
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
var
proInfo
=
{}
...
...
pages/tab/index/index.js
View file @
913b05c
...
...
@@ -62,7 +62,7 @@ Page({
productData
,
activityList
:
[],
subscriptionBannerUrl
:
Object
.
freeze
(
subscriptionBannerUrl
),
subscriptionSystemData
:
Object
.
freeze
(
subscriptionSystemData
)
subscriptionSystemData
:
Object
.
freeze
(
subscriptionSystemData
)
,
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
},
...
...
@@ -211,12 +211,12 @@ Page({
})
this
.
setData
({
productData
:
this
.
addAll
(
productData
)
// productData: productData
})
},
addAll
(
data
)
{
for
(
let
i
in
data
)
{
console
.
log
(
data
[
i
])
let
arr
=
[],
m
=
[],
n
=
[]
...
...
@@ -231,6 +231,7 @@ Page({
videoList
:
m
,
posterList
:
n
}
console
.
log
(
allData
,
'--------'
)
data
[
i
].
unshift
(
allData
)
}
return
data
...
...
utils/data.js
View file @
913b05c
...
...
@@ -98,6 +98,26 @@ const trackData = {
EXPANSIONGOLD
:
{
pageKey
:
24
,
pageName
:
"膨胀金活动"
},
CARDETAIL
:
{
pageKey
:
25
,
pageName
:
"车损升级场景详情页"
},
FINEDETAIL
:
{
pageKey
:
26
,
pageName
:
"精品升级场景详情页"
},
CUSTOMEDETAIL
:
{
pageKey
:
27
,
pageName
:
"客户线上化场景详情页"
},
CROWDDETAIL
:
{
pageKey
:
28
,
pageName
:
"众筹活动场景详情页"
},
EXPANDETAIL
:
{
pageKey
:
29
,
pageName
:
"膨胀金活动场景详情页"
}
};
...
...
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