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 41aa1341
authored
Dec 24, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交
1 parent
a52aa1db
Show whitespace changes
Inline
Side-by-side
Showing
14 changed files
with
158 additions
and
38 deletions
app.js
components/PhoneNumber/PhoneNumber.wxml
components/proDetail/proDetail.js
components/proDetail/proDetail.scss
components/proDetail/proDetail.wxml
packagesList/pages/activityDetail/activityDetail.js
packagesList/pages/activityDetail/activityDetail.wxml
packagesList/pages/productDetail/productDetail.js
packagesList/pages/scenarioDetail/scenarioDetail.wxml
pages/tab/index/constant/senceData.js
pages/tab/index/index.js
pages/tab/index/index.wxml
project.private.config.json
utils/data.js
app.js
View file @
41aa134
...
@@ -73,15 +73,15 @@ App({
...
@@ -73,15 +73,15 @@ App({
merchant
:
res
.
merchantId
,
merchant
:
res
.
merchantId
,
cardId
:
res
.
cardId
cardId
:
res
.
cardId
})
})
const
userInfo
=
wx
.
$storage
.
get
(
'aicard_user_info'
)
//
const userInfo = wx.$storage.get('aicard_user_info')
if
(
!
userInfo
)
{
//
if (!userInfo) {
_this
.
getUserInfo
(
openId
,
returnResponse
).
then
(
result
=>
{
_this
.
getUserInfo
(
openId
,
returnResponse
).
then
(
result
=>
{
// wx.$Track.sendTrack(trackData.COMPANY, wechatInfo)
// wx.$Track.sendTrack(trackData.COMPANY, wechatInfo)
resolve
(
result
)
resolve
(
result
)
})
})
}
else
{
//
} else {
resolve
(
userInfo
)
//
resolve(userInfo)
}
//
}
})
})
}
else
{
}
else
{
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
// 其他的分享进来的页面走这里,在进页面的onshow中需对wx.$trackData先赋值
...
...
components/PhoneNumber/PhoneNumber.wxml
View file @
41aa134
<view class="fixBottom custom-class">
<view class="fixBottom custom-class">
<view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn">
<view wx:if="{{type == 'home'}}" class="isFullSucreen home-btn">
<!-- <view class="isFullSucreen"> -->
<!-- <view class="isFullSucreen"> -->
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请
1
</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
<!-- </view> -->
<!-- </view> -->
</view>
</view>
...
@@ -21,12 +21,12 @@
...
@@ -21,12 +21,12 @@
</button>
</button>
</block>
</block>
</view>
</view>
<view wx:if="{{type == 'scenario'}}" class="isFullSucreen
video-btn
">
<view wx:if="{{type == 'scenario'}}" class="isFullSucreen
product_full
">
<button class="forward-box forward_box" open-type="share">
<button class="forward-box forward_box" open-type="share">
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<image class="icon-forward" webp src="{{IMGURL}}home/icon-forward.png"></image>
<view class="forward-text" bindtap="forward">转发</view>
<view class="forward-text" bindtap="forward">转发</view>
</button>
</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请
1
</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
</view>
<view wx:if="{{type == 'video'}}" class="isFullSucreen video-btn">
<view wx:if="{{type == 'video'}}" class="isFullSucreen video-btn">
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
<view class="btn-text" bindtap="forward">转发</view>
<view class="btn-text" bindtap="forward">转发</view>
</button>
</button>
</view>
</view>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请
1
</button>
<button wx:if="{{hasPhone}}" class="phoneNumber" bindtap="jump">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
<button wx:else class="phoneNumber" open-type="getPhoneNumber" bindgetphonenumber="getPhoneNumber">合作申请</button>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
components/proDetail/proDetail.js
View file @
41aa134
// 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
1
}
from
'~/pages/tab/index/constant/senceData'
const
norTabList
=
[
'项目亮点'
,
'合作案例'
,
'合作方式'
,
'适配产品'
]
const
norTabList
=
[
'项目亮点'
,
'合作案例'
,
'合作方式'
,
'适配产品'
]
Component
({
Component
({
externalClasses
:
[
'custom-class'
],
externalClasses
:
[
'custom-class'
],
...
@@ -29,6 +29,10 @@ Component({
...
@@ -29,6 +29,10 @@ Component({
activeUrl
:
{
activeUrl
:
{
type
:
String
,
type
:
String
,
value
:
''
value
:
''
},
detailType
:
{
type
:
String
,
value
:
'pro'
}
}
},
},
...
@@ -37,7 +41,7 @@ Component({
...
@@ -37,7 +41,7 @@ Component({
*/
*/
data
:
{
data
:
{
IMG_URL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
IMG_URL
:
'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/'
,
productData
,
productData
:
productData1
,
proInfo
:
{},
proInfo
:
{},
prodItemVideo
:
''
,
//选中的场景下的video的第一个
prodItemVideo
:
''
,
//选中的场景下的video的第一个
tabAct
:
0
,
tabAct
:
0
,
...
@@ -55,8 +59,8 @@ Component({
...
@@ -55,8 +59,8 @@ Component({
//console.log(actNum)
//console.log(actNum)
//console.log(activeNavIdx)
//console.log(activeNavIdx)
const
spcList
=
[
99
]
// 订阅模块需要特殊处理
const
spcList
=
[
99
]
// 订阅模块需要特殊处理
console
.
log
(
productData
,
'productData'
)
console
.
log
(
productData
1
,
'productData'
)
const
senceList
=
productData
[
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
const
senceList
=
productData
1
[
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
console
.
log
(
senceList
)
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
]
...
...
components/proDetail/proDetail.scss
View file @
41aa134
...
@@ -85,6 +85,7 @@ page {
...
@@ -85,6 +85,7 @@ page {
.img-item
{
.img-item
{
position
:
relative
;
position
:
relative
;
width
:
100%
;
}
}
.phone
{
.phone
{
...
@@ -280,6 +281,24 @@ page {
...
@@ -280,6 +281,24 @@ page {
width
:
100%
;
width
:
100%
;
height
:
428rpx
;
height
:
428rpx
;
}
}
.img-item40
{
height
:
1564rpx
;
}
.img-item41
{
height
:
1224rpx
;
}
.img-item42
{
height
:
1148rpx
;
}
.img-item43
{
height
:
3504rpx
;
}
.img-item44
{
height
:
2220rpx
;
}
.img-item45
{
height
:
1092rpx
;
}
}
}
}
}
...
...
components/proDetail/proDetail.wxml
View file @
41aa134
<!-- 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"
wx:if="{{detailType == 'pro'}}"
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"></glsx-image>
<view>{{showCard ? '视频' : '名片'}}</view>
<view>{{showCard ? '视频' : '名片'}}</view>
</view>
</view>
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
<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="{{
detailType == 'pro' &&
showCard}}" class="card-info" cardInfo="{{cardInfo}}"></user-info>
</view>
</view>
<view class="tab-wrap">
<view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
...
@@ -32,8 +32,8 @@
...
@@ -32,8 +32,8 @@
<!-- && 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 webp src="index/phone.png" class="icon" />
请联系我
请联系我
-->
<view style="color:#3666fe">{{sharephone}}</view>
<view style="color:#3666fe">{{sharephone}}</view>
</view>
</view>
</block>
</block>
...
...
packagesList/pages/activityDetail/activityDetail.js
View file @
41aa134
...
@@ -14,17 +14,17 @@ Page({
...
@@ -14,17 +14,17 @@ Page({
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// wx.$util.getMockConfig().then(({businessParams, businessappId}) => {
// console.log(businessParams, businessappId)
// console.log(businessParams, businessappId)
wx
.
navigateToMiniProgram
({
wx
.
navigateToMiniProgram
({
appId
:
'wx
1cf40dc91c28a7fd
'
,
appId
:
'wx
e10067a63c1856ac
'
,
path
:
'pages/crowdfunding/index/index'
,
path
:
'pages/crowdfunding/index/index'
,
extraData
:
{
extraData
:
{
id
:
this
.
data
.
activityInfo
.
id
id
:
this
.
data
.
activityInfo
.
id
},
},
envVersion
:
'trial'
,
envVersion
:
'trial'
,
success
(
res
)
{
success
(
res
)
{
console
.
log
(
res
,
storeParams
)
// 打开成功
// 打开成功
}
}
})
})
// })
},
},
/**
/**
...
...
packagesList/pages/activityDetail/activityDetail.wxml
View file @
41aa134
<!--packagesList/pages/activityDetail/activityDetail.wxml-->
<!--packagesList/pages/activityDetail/activityDetail.wxml-->
<view class="activity-detail">
<view class="activity-detail">
<swiper class="swiper" autoplay circular="true" current="{{current}}" interval="5000">
<swiper class="swiper" autoplay circular="true" current="{{current}}" interval="5000">
<swiper-item class="swiper-item">
<swiper-item class="swiper-item"
wx:if="{{activityInfo.videoUrl}}"
>
<video class="swiper-img"
src="{{IMGURL}}video/solar.mp4?v={{img_version
}}"></video>
<video class="swiper-img"
src="{{activityInfo.videoUrl}}" poster="{{activityInfo.videoImage
}}"></video>
</swiper-item>
</swiper-item>
<swiper-item class="swiper-item">
<swiper-item class="swiper-item"
wx:for="{{activityInfo.imageUrlArr}}" wx:key="index"
>
<image class="swiper-img" webp src="{{
IMGURL}}video/solar_bitmap.png?v={{img_version
}}"></image>
<image class="swiper-img" webp src="{{
item
}}"></image>
</swiper-item>
</swiper-item>
</swiper>
</swiper>
<view class="activity-introduction">
<view class="activity-introduction">
...
@@ -15,11 +15,11 @@
...
@@ -15,11 +15,11 @@
</view>
</view>
<view class="activity-title">活动举办方</view>
<view class="activity-title">活动举办方</view>
<view class="activity-info">
<view class="activity-info">
<view class="activity-item">
<view class="activity-item"
wx:if="{{activityInfo.sponsorName}}"
>
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<view class="text">{{activityInfo.sponsorName}}</view>
<view class="text">{{activityInfo.sponsorName}}</view>
</view>
</view>
<view class="activity-item">
<view class="activity-item"
wx:if="{{activityInfo.address}}"
>
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-address.png"></glsx-image>
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-address.png"></glsx-image>
<view class="text">{{activityInfo.address}}</view>
<view class="text">{{activityInfo.address}}</view>
</view>
</view>
...
...
packagesList/pages/productDetail/productDetail.js
View file @
41aa134
...
@@ -46,6 +46,10 @@ Page({
...
@@ -46,6 +46,10 @@ Page({
[
trackData
.
PAINTPROTECT
,
trackData
.
CHANGEFILM
],
[
trackData
.
PAINTPROTECT
,
trackData
.
CHANGEFILM
],
[
trackData
.
CARBEAUTY
,
trackData
.
SEATVENTILATE
,
trackData
.
ARNAVIGATION
,
trackData
.
LIGHT
,
trackData
.
NAVIGATIONARROUND
,
trackData
.
LOSSPGASE
],
[
trackData
.
CARBEAUTY
,
trackData
.
SEATVENTILATE
,
trackData
.
ARNAVIGATION
,
trackData
.
LIGHT
,
trackData
.
NAVIGATIONARROUND
,
trackData
.
LOSSPGASE
],
[]
[]
],
systemTrackList
:
[
[
trackData
.
SYSUSER
,
trackData
.
SYSNUMBER
],
[
trackData
.
SYSCAR
]
]
]
},
},
// 计算属性
// 计算属性
...
@@ -75,10 +79,10 @@ Page({
...
@@ -75,10 +79,10 @@ Page({
//接受跳转的路由参数(小程序页面跳转)
//接受跳转的路由参数(小程序页面跳转)
onRoute
(
options
)
{
onRoute
(
options
)
{
//
console.log( options);
console
.
log
(
options
);
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
let
{
actNum
=
0
,
activeNavIdx
=
0
,
phone
,
hasPhoneNumber
actNum
=
0
,
activeNavIdx
=
0
,
phone
,
hasPhoneNumber
,
name
,
leftMenuIndex
=
0
}
=
options
}
=
options
console
.
log
(
options
)
console
.
log
(
options
)
this
.
setData
({
this
.
setData
({
...
@@ -87,7 +91,12 @@ Page({
...
@@ -87,7 +91,12 @@ Page({
sharephone
:
phone
,
//联系电话 (登陆的用户)
sharephone
:
phone
,
//联系电话 (登陆的用户)
hasPhoneNumber
:
hasPhoneNumber
hasPhoneNumber
:
hasPhoneNumber
})
})
if
(
name
==
'增值转化'
)
{
wx
.
$Track
.
sendTrack
(
this
.
data
.
trackList
[
actNum
][
activeNavIdx
])
wx
.
$Track
.
sendTrack
(
this
.
data
.
trackList
[
actNum
][
activeNavIdx
])
}
else
if
(
name
==
'系统订阅'
)
{
wx
.
$Track
.
sendTrack
(
this
.
data
.
systemTrackList
[
leftMenuIndex
][
activeNavIdx
])
}
},
},
onPageScroll
:
(
function
()
{
onPageScroll
:
(
function
()
{
let
timer
=
null
;
let
timer
=
null
;
...
...
packagesList/pages/scenarioDetail/scenarioDetail.wxml
View file @
41aa134
<!--packagesList/pages/scenarioDetail/scenarioDetail.wxml-->
<!--packagesList/pages/scenarioDetail/scenarioDetail.wxml-->
<pro-detail id="pro-detail" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}" cardInfo="{{cardInfo}}"></pro-detail>
<pro-detail id="pro-detail"
detailType="{{'scen'}}"
actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}" cardInfo="{{cardInfo}}"></pro-detail>
<phone-number custom-class="pro_phone_number" type="scenario" hasPhoneNumber="{{hasPhoneNumber}}" bind:updatePhoneNumber="updatePhoneNumber"></phone-number>
<phone-number custom-class="pro_phone_number" type="scenario" hasPhoneNumber="{{hasPhoneNumber}}" bind:updatePhoneNumber="updatePhoneNumber"></phone-number>
pages/tab/index/constant/senceData.js
View file @
41aa134
...
@@ -424,6 +424,33 @@ const scenario_3 = [
...
@@ -424,6 +424,33 @@ const scenario_3 = [
posterList
:
posterList3
posterList
:
posterList3
}
}
]
]
// 膨胀金
const
productImgs4
=
[
`
${
IMG_URL
}
index/productImgs/product40.webp`
,
`
${
IMG_URL
}
index/productImgs/product41.webp`
,
`
${
IMG_URL
}
index/productImgs/product42.webp`
,
`
${
IMG_URL
}
index/productImgs/product43.webp`
,
`
${
IMG_URL
}
index/productImgs/product44.webp`
,
`
${
IMG_URL
}
index/productImgs/product45.webp`
]
const
videoList4
=
[
{
videoUrl
:
`
${
videoBaseUrl
}
video/solar.mp4`
,
posterUrl
:
`
${
IMG_URL
}
index/poster/solar_bitmap.png`
,
name
:
'太阳膜转化售中案例-门店新增产值12w每月'
,
manufacturer
:
'嘀加智慧'
,
view
:
1178
}
]
const
scenario_4
=
[
{
name
:
'服务类'
,
productList
:
[
{
id
:
0
,
proName
:
'膨胀金'
,
prodImg
:
`
${
IMG_URL
}
index/prod2/prod4-0.png`
}
],
productImgs
:
productImgs4
,
videoList
:
videoList4
}
]
const
senceData
=
[
const
senceData
=
[
{
{
id
:
0
,
id
:
0
,
...
@@ -452,7 +479,7 @@ const senceData = [
...
@@ -452,7 +479,7 @@ const senceData = [
{
{
id
:
4
,
id
:
4
,
tabname
:
'膨胀金活动'
,
tabname
:
'膨胀金活动'
,
banner
:
`
${
IMG_URL
}
index/banner/banner
4
.png`
banner
:
`
${
IMG_URL
}
index/banner/banner
6
.png`
}
}
]
]
const
productData
=
{
const
productData
=
{
...
@@ -460,10 +487,20 @@ const productData = {
...
@@ -460,10 +487,20 @@ const productData = {
1
:
scenario_1
,
1
:
scenario_1
,
2
:
scenario_2
,
2
:
scenario_2
,
3
:
scenario_3
,
3
:
scenario_3
,
4
:
scenario_4
,
// 99: subscriptionSystemData
// 99: subscriptionSystemData
}
}
const
productData1
=
{
0
:
scenario_0
,
1
:
scenario_1
,
2
:
scenario_2
,
3
:
scenario_3
,
4
:
scenario_4
,
99
:
subscriptionSystemData
}
module
.
exports
=
{
module
.
exports
=
{
senceData
,
senceData
,
productData
productData
,
productData1
}
}
pages/tab/index/index.js
View file @
41aa134
...
@@ -63,7 +63,8 @@ Page({
...
@@ -63,7 +63,8 @@ Page({
activityList
:
[],
activityList
:
[],
subscriptionBannerUrl
:
Object
.
freeze
(
subscriptionBannerUrl
),
subscriptionBannerUrl
:
Object
.
freeze
(
subscriptionBannerUrl
),
subscriptionSystemData
:
Object
.
freeze
(
subscriptionSystemData
),
subscriptionSystemData
:
Object
.
freeze
(
subscriptionSystemData
),
showCooperate
:
false
showCooperate
:
false
,
leftMenuIndex
:
0
// 系统订阅左侧坐标
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
// bannerUrl:'https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/banner/banner0.png'
},
},
...
@@ -108,13 +109,19 @@ Page({
...
@@ -108,13 +109,19 @@ Page({
this
.
setData
({
this
.
setData
({
hasPhoneNumber
:
true
hasPhoneNumber
:
true
})
})
// entmicroApi.checkCooperate({
this
.
checkCooperate
()
// phone: wx.$storage.get('aicard_user_info').phone
// }).then(res => {
// })
}
}
},
},
// 获取跳转门店助手、生意助手判断
checkCooperate
()
{
const
{
phone
}
=
wx
.
$storage
.
get
(
'aicard_user_info'
)
entmicroApi
.
checkCooperate
({
phone
}).
then
(
res
=>
{
console
.
log
(
res
)
this
.
setData
({
showCooperate
:
res
})
})
},
// 合作申请
// 合作申请
toApplication
()
{
toApplication
()
{
console
.
log
(
'合作申请'
)
console
.
log
(
'合作申请'
)
...
@@ -128,6 +135,8 @@ Page({
...
@@ -128,6 +135,8 @@ Page({
},
},
proClick
(
e
)
{
proClick
(
e
)
{
console
.
log
(
e
)
const
{
name
}
=
e
.
target
.
dataset
let
{
detail
}
=
e
let
{
detail
}
=
e
//登录的用户手机号
//登录的用户手机号
console
.
log
(
detail
)
console
.
log
(
detail
)
...
@@ -135,11 +144,15 @@ Page({
...
@@ -135,11 +144,15 @@ Page({
// const { cardInfo } = this.data
// const { cardInfo } = this.data
let
obj
=
{
let
obj
=
{
// || 99
// || 99
name
,
actNum
:
isNaN
(
detail
.
scenIndex
)
?
99
:
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
}
}
if
(
name
==
'系统订阅'
)
{
obj
.
menuIndex
=
this
.
data
.
leftMenuIndex
}
wx
.
$router
.
go
(
'/packagesList/pages/productDetail/productDetail'
,
obj
)
wx
.
$router
.
go
(
'/packagesList/pages/productDetail/productDetail'
,
obj
)
},
},
// 跳转视频详情
// 跳转视频详情
...
@@ -169,6 +182,7 @@ Page({
...
@@ -169,6 +182,7 @@ Page({
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
,
{
hasPhoneNumber
,
id
})
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
,
{
hasPhoneNumber
,
id
})
},
},
// 场景跳转
// 场景跳转
senceClick
(
e
)
{
senceClick
(
e
)
{
const
{
hasPhoneNumber
}
=
this
.
data
const
{
hasPhoneNumber
}
=
this
.
data
...
@@ -201,9 +215,11 @@ Page({
...
@@ -201,9 +215,11 @@ Page({
.
login
()
.
login
()
.
then
(({
data
})
=>
{
.
then
(({
data
})
=>
{
if
(
data
&&
data
.
phone
)
{
if
(
data
&&
data
.
phone
)
{
console
.
log
(
data
)
this
.
setData
({
this
.
setData
({
hasPhoneNumber
:
true
hasPhoneNumber
:
true
})
})
this
.
checkCooperate
()
}
}
this
.
getCardDetail
()
this
.
getCardDetail
()
this
.
getActivityRecord
()
this
.
getActivityRecord
()
...
@@ -267,6 +283,7 @@ Page({
...
@@ -267,6 +283,7 @@ Page({
this
.
setData
({
this
.
setData
({
hasPhoneNumber
:
!!
(
userInfo
&&
userInfo
.
phone
)
hasPhoneNumber
:
!!
(
userInfo
&&
userInfo
.
phone
)
})
})
this
.
checkCooperate
()
const
options
=
wx
.
getEnterOptionsSync
()
const
options
=
wx
.
getEnterOptionsSync
()
wx
.
$trackData
=
options
.
query
wx
.
$trackData
=
options
.
query
if
(
wx
.
$trackData
.
merchant
)
{
if
(
wx
.
$trackData
.
merchant
)
{
...
@@ -474,5 +491,13 @@ Page({
...
@@ -474,5 +491,13 @@ Page({
}
}
)
)
})
})
},
/** 系统订阅 */
sysMenuClick
(
e
)
{
console
.
log
(
e
)
this
.
setData
({
leftMenuIndex
:
e
.
detail
.
id
})
}
}
})
})
pages/tab/index/index.wxml
View file @
41aa134
...
@@ -20,13 +20,13 @@
...
@@ -20,13 +20,13 @@
<view class="main-content">
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<!-- 增值转化 -->
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}"
data-name="增值转化"
bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen" />
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<activity-info slot="swiper"></activity-info>
<activity-info slot="swiper"></activity-info>
</scenario> -->
</scenario> -->
</block>
</block>
<block wx:if="{{curTabIndex == 1}}">
<block wx:if="{{curTabIndex == 1}}">
<gl-subscription list="{{subscriptionSystemData}}" menuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind
activityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick" bindcurrentScen="getCurrentScen
" />
<gl-subscription list="{{subscriptionSystemData}}" menuClick="sysMenuClick" bannerUrl="{{subscriptionBannerUrl}}" bind
:proClick="proClick" data-name="系统订阅" bind:videoClick="videoClick
" />
</block>
</block>
<block wx-if="{{curTabIndex == 2}}">
<block wx-if="{{curTabIndex == 2}}">
<company-introduce autoplay="{{autoplay}}" />
<company-introduce autoplay="{{autoplay}}" />
...
...
project.private.config.json
View file @
41aa134
...
@@ -60,6 +60,20 @@
...
@@ -60,6 +60,20 @@
"query"
:
""
,
"query"
:
""
,
"launchMode"
:
"default"
,
"launchMode"
:
"default"
,
"scene"
:
null
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D3856"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"pages/productDetail/changingFilm/changingFilm"
,
"query"
:
"scene=sceneId%253D857"
,
"launchMode"
:
"default"
,
"scene"
:
null
}
}
]
]
}
}
...
...
utils/data.js
View file @
41aa134
...
@@ -162,6 +162,18 @@ const trackData = {
...
@@ -162,6 +162,18 @@ const trackData = {
CROWDVIDEO5
:
{
CROWDVIDEO5
:
{
pageKey
:
41
,
pageKey
:
41
,
pageName
:
"智能香氛系统-新增产值57w+"
pageName
:
"智能香氛系统-新增产值57w+"
},
SYSUSER
:
{
pageKey
:
42
,
pageName
:
"私域用户活跃代运营"
},
SYSNUMBER
:
{
pageKey
:
43
,
pageName
:
"定保/续保数字化招揽"
},
SYSCAR
:
{
pageKey
:
44
,
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