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 ef09fa2c
authored
Dec 19, 2022
by
胡悦
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
提交场景,产品详情、加载中、接口联调
1 parent
1f1dd645
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
379 additions
and
76 deletions
api/entmicroApi.js
app.json
app.wxss
packagesList/pages/productDetail/components/proDetail/proDetail.js → components/proDetail/proDetail.js
packagesList/pages/productDetail/components/proDetail/proDetail.json → components/proDetail/proDetail.json
packagesList/pages/productDetail/components/proDetail/proDetail.scss → components/proDetail/proDetail.scss
packagesList/pages/productDetail/components/proDetail/proDetail.wxml → components/proDetail/proDetail.wxml
package-lock.json
package.json
packagesList/pages/activityDetail/activityDetail.js
packagesList/pages/activityDetail/activityDetail.wxml
packagesList/pages/productDetail/productDetail.js
packagesList/pages/productDetail/productDetail.json
packagesList/pages/productDetail/productDetail.scss
packagesList/pages/productDetail/productDetail.wxml
packagesList/pages/scenarioDetail/scenarioDetail.js
packagesList/pages/scenarioDetail/scenarioDetail.json
packagesList/pages/scenarioDetail/scenarioDetail.scss
packagesList/pages/scenarioDetail/scenarioDetail.wxml
pages/tab/index/index.js
pages/tab/index/index.scss
pages/tab/index/index.wxml
project.private.config.json
api/entmicroApi.js
View file @
ef09fa2
...
...
@@ -32,5 +32,13 @@ module.exports = {
method
:
`entmicro.api.business.activityRecord.list`
,
...
data
},
true
)
},
// 根据id查询
getActivityDetail
(
data
)
{
return
api
.
post
({
method
:
`entmicro.api.business.activityRecord.detail`
,
...
data
})
}
}
\ No newline at end of file
app.json
View file @
ef09fa2
...
...
@@ -21,7 +21,8 @@
"pages/activityApply/activityApply"
,
"pages/applySuccess/applySuccess"
,
"pages/videoDetal/videoDetal"
,
"pages/productDetail/productDetail"
"pages/productDetail/productDetail"
,
"pages/scenarioDetail/scenarioDetail"
]
}
],
...
...
app.wxss
View file @
ef09fa2
@import "/style/common.wxss";
page {
/* vant 样式覆盖 */
--tabs-bottom-bar-color:#5850FF;
--sidebar-selected-border-color:#5850FF;
--tree-select-nav-background-color:#f6f6f6;
}
.box-center{
position: absolute;
top: 50%;
...
...
packagesList/pages/productDetail/
components/proDetail/proDetail.js
→
components/proDetail/proDetail.js
View file @
ef09fa2
...
...
@@ -18,6 +18,10 @@ Component({
activeNavIdx
:
{
type
:
Number
,
value
:
0
},
cardInfo
:
{
type
:
Object
,
value
:
{}
}
},
...
...
@@ -30,7 +34,8 @@ Component({
proInfo
:
{},
prodItemVideo
:
''
,
//选中的场景下的video的第一个
tabAct
:
0
,
scrollTop
:
0
scrollTop
:
0
,
showCard
:
false
},
/**
...
...
@@ -115,5 +120,11 @@ Component({
});
});
},
selectCard
()
{
console
.
log
(
this
.
data
.
showCard
)
this
.
setData
({
showCard
:
!
this
.
data
.
showCard
})
}
}
})
packagesList/pages/productDetail/
components/proDetail/proDetail.json
→
components/proDetail/proDetail.json
View file @
ef09fa2
...
...
@@ -2,6 +2,7 @@
"component"
:
true
,
"usingComponents"
:
{
"van-tab"
:
"@vant/weapp/tab/index"
,
"van-tabs"
:
"@vant/weapp/tabs/index"
"van-tabs"
:
"@vant/weapp/tabs/index"
,
"user-info"
:
"../UserInfo/UserInfo"
}
}
\ No newline at end of file
packagesList/pages/productDetail/
components/proDetail/proDetail.scss
→
components/proDetail/proDetail.scss
View file @
ef09fa2
...
...
@@ -15,6 +15,7 @@ page {
margin-left
:
32rpx
;
margin-right
:
32rpx
;
display
:
flex
;
height
:
104rpx
;
align-items
:
center
;
.title
{
width
:
564rpx
;
...
...
@@ -223,4 +224,31 @@ page {
bottom
:
0
;
z-index
:
3
;
background-color
:
transparent
;
}
\ No newline at end of file
}
.pro-head
{
position
:
relative
;
.select-card
{
position
:
absolute
;
right
:
0
;
top
:
26rpx
;
width
:
142rpx
;
height
:
68rpx
;
background
:
#FFFFFF
;
box-shadow
:
0
6rpx
16rpx
0
rgba
(
175
,
175
,
219
,
0
.65
);
border-radius
:
34rpx
0
0
34rpx
;
z-index
:
2
;
display
:
flex
;
align-items
:
center
;
padding
:
12rpx
;
box-sizing
:
border-box
;
font-weight
:
600
;
font-size
:
26rpx
;
color
:
#57578A
;
.icon-card
{
width
:
48rpx
;
height
:
48rpx
;
margin-right
:
8rpx
;
}
}
}
packagesList/pages/productDetail/
components/proDetail/proDetail.wxml
→
components/proDetail/proDetail.wxml
View file @
ef09fa2
<!--packagesList/pages/productDetail/components/proDetail/proDetail.wxml-->
<view class="view-prod">
<!-- 有视频 -->
<block >
<video class="frame" wx:if="{{actNum != 2}}" src="{{prodItemVideo.videoUrl}}"></video>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
<!-- <glsx-image class="check" src="index/poster/check.png" /> -->
<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>
<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}}"></video>
<image class="no-video" wx:if="{{actNum == 2}}" src="{{prodItemVideo.posterUrl}}?v={{img_version}}" />
<view class="title-wrap">
<view class="title">{{prodItemVideo.name}}</view>
<!-- <glsx-image class="check" src="index/poster/check.png" /> -->
<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>
<!-- <image class="no-video" wx:if="{{actNum == 2}}" src="{{IMG_URL}}index/poster/no-video.png?v={{img_version}}" /> -->
<view class="tab-wrap">
<van-tabs sticky bind:click="onClickTab" active="{{tabAct}}">
...
...
package-lock.json
View file @
ef09fa2
...
...
@@ -10,9 +10,9 @@
"integrity"
:
"sha512-hFJ48SCSvRgcwT/9TcxwNnNnWSpy2BpaBfwQwVdU6uwgFH+2OqGL435VQN7EDpIMH8YjHbiM84hueTyxAzIPqQ=="
},
"glsx-applet-component"
:
{
"version"
:
"1.0.2
2
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.2
2
.tgz"
,
"integrity"
:
"sha512-
zI2MPI3/xA4OLMA3z0WyILfjXIN2XSs2rtAGN2j1jbLH3tRcE6BL1LqPNv7xc2jFmPBNrrf+kywBBVJhoPOf4Q
=="
"version"
:
"1.0.2
4
"
,
"resolved"
:
"https://registry.npmjs.org/glsx-applet-component/-/glsx-applet-component-1.0.2
4
.tgz"
,
"integrity"
:
"sha512-
F0dyfOVMkSrp+EU7xzZRTqTIwz7104VzY3MmjiM6WyhzoIfPc3jwcX25PRYAmqycCGLe+k1Mvkh4pbvX6zza6g
=="
}
}
}
package.json
View file @
ef09fa2
...
...
@@ -5,7 +5,7 @@
"main"
:
"app.js"
,
"dependencies"
:
{
"@vant/weapp"
:
"^1.10.9"
,
"glsx-applet-component"
:
"^1.0.2
2
"
"glsx-applet-component"
:
"^1.0.2
4
"
},
"devDependencies"
:
{},
"scripts"
:
{
...
...
packagesList/pages/activityDetail/activityDetail.js
View file @
ef09fa2
// packagesList/pages/activityDetail/activityDetail.js
import
{
entmicroApi
}
from
"../../../api/api"
;
Page
({
/**
* 页面的初始数据
*/
data
:
{
activityInfo
:
{}
},
toActivity
(){
...
...
@@ -19,12 +21,23 @@ Page({
console
.
log
(
options
)
wx
.
$router
.
getData
(
res
=>
{
console
.
log
(
res
)
this
.
getActivityDetail
(
res
.
id
)
this
.
setData
({
hasPhoneNumber
:
res
})
})
},
getActivityDetail
(
id
)
{
entmicroApi
.
getActivityDetail
({
id
}).
then
(
res
=>
{
res
.
beginTime
=
new
Date
(
res
.
beginTime
).
format
(
'yyyy年MM月dd日'
)
res
.
endTime
=
new
Date
(
res
.
endTime
).
format
(
'yyyy年MM月dd日'
)
this
.
setData
({
activityInfo
:
res
})
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
...
...
packagesList/pages/activityDetail/activityDetail.wxml
View file @
ef09fa2
...
...
@@ -2,7 +2,7 @@
<view class="activity-detail">
<swiper class="swiper" autoplay circular="true" current="{{current}}" interval="5000">
<swiper-item class="swiper-item">
<video class="swiper-img" src="{{IMGURL}}video/solar.mp4?v={{img_version}}"></video>
<video class="swiper-img"
src="{{IMGURL}}video/solar.mp4?v={{img_version}}"></video>
</swiper-item>
<swiper-item class="swiper-item">
<image class="swiper-img" webp src="{{IMGURL}}video/solar_bitmap.png?v={{img_version}}"></image>
...
...
@@ -11,22 +11,21 @@
<view class="activity-introduction">
<view class="activity-title">活动介绍</view>
<view class="activity-content">
座椅加热是利用座椅内的电加热丝对座椅内部加热,并通过热传播将能量传递给乘坐者,改善冬天时座椅因长时间停放后座椅过凉造成的乘坐不舒适感。
目前市面上大部分高档汽车已经配备了座椅加热功能,加热座椅仍然是一种“品位”和“舒适”的标志,受到消费者追捧。
{{activityInfo.activityEvent}}
</view>
<view class="activity-title">活动举办方</view>
<view class="activity-info">
<view class="activity-item">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-company.png"></glsx-image>
<view class="text">
兰州鑫通汽车销售有限公司
</view>
<view class="text">
{{activityInfo.merchantName}}
</view>
</view>
<view class="activity-item">
<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-
address
.png"></glsx-image>
<view class="text">兰州鑫通汽车销售有限公司</view>
</view>
<view class="activity-item">
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-
company
.png"></glsx-image>
<view class="text">
兰州鑫通汽车销售有限公司
</view>
<glsx-image custom-class="activity-icon" webp src="image/activity/icon-
time
.png"></glsx-image>
<view class="text">
{{activityInfo.beginTime + ' - ' + activityInfo.endTime}}
</view>
</view>
</view>
<view class="activity-btn" bindtap="toActivity">查看活动详情页面</view>
...
...
packagesList/pages/productDetail/productDetail.js
View file @
ef09fa2
...
...
@@ -28,7 +28,8 @@ Page({
hasUserInfo
:
false
,
prodItemVideo
:
''
,
//选中的场景下的video的第一个
activeUrl
:
''
,
// 1.3场景才有的活动配置
sharephone
:
''
//主要微信用户,服务商
sharephone
:
''
,
//主要微信用户,服务商
cardInfo
:
{}
},
// 计算属性
computed
:
{
...
...
@@ -54,12 +55,13 @@ Page({
//接受跳转的路由参数(小程序页面跳转)
onRoute
(
options
)
{
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
actNum
=
0
,
activeNavIdx
=
0
,
phone
}
=
options
let
{
actNum
=
0
,
activeNavIdx
=
0
,
phone
,
cardInfo
}
=
options
console
.
log
(
options
)
this
.
setData
({
actNum
,
//选中的场景下标
activeNavIdx
,
//选中的产品
sharephone
:
phone
//联系电话 (登陆的用户)
sharephone
:
phone
,
//联系电话 (登陆的用户)
cardInfo
})
// console.log(this.data.senceData, 'senceData-----')
...
...
packagesList/pages/productDetail/productDetail.json
View file @
ef09fa2
{
"usingComponents"
:
{
"pro-detail"
:
"./components/proDetail/proDetail"
"pro-detail"
:
".
./../..
/components/proDetail/proDetail"
}
}
\ No newline at end of file
packagesList/pages/productDetail/productDetail.scss
View file @
ef09fa2
/* packagesList/pages/productDetail/productDetail.wxss */
\ No newline at end of file
/* packagesList/pages/productDetail/productDetail.wxss */
.card-info
{
position
:
fixed
;
top
:
0
;
z-index
:
0
;
width
:
100%
;
}
\ No newline at end of file
packagesList/pages/productDetail/productDetail.wxml
View file @
ef09fa2
<!--packagesList/pages/productDetail/productDetail.wxml-->
<pro-detail id="pro-detail" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}"></pro-detail>
<pro-detail id="pro-detail" actNum="{{actNum}}"
cardInfo="{{cardInfo}}"
activeNavIdx="{{activeNavIdx}}"></pro-detail>
packagesList/pages/scenarioDetail/scenarioDetail.js
0 → 100644
View file @
ef09fa2
// packagesList/pages/productDetail/productDetail.js
import
{
behavior
as
computedBehavior
}
from
'~/utils/lib/miniprogram-computed'
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 {getActiveApi} from "~/api/viewprod"
Page
({
/**
* 页面的初始数据
*/
noPageAuth
:
true
,
behaviors
:
[
computedBehavior
],
data
:
{
IMG_URL
,
senceData
,
productData
,
proInfo
:
{},
isShare
:
false
,
//是否是分享出去的
actNum
:
0
,
tabAct
:
0
,
showLeft
:
false
,
//更多按钮显示的内容
scrollTop
:
0
,
img_version
:
'0.1.0'
,
// 是否授权昵称
hasUserInfo
:
false
,
prodItemVideo
:
''
,
//选中的场景下的video的第一个
activeUrl
:
''
,
// 1.3场景才有的活动配置
sharephone
:
''
//主要微信用户,服务商
},
// 计算属性
computed
:
{
showLeftFlag
(
data
)
{
// 1.分享出去
// 2.点击可以改变状态
return
data
.
isShare
&&
!
data
.
showLeft
},
prodItemVideo
(
data
)
{
let
{
senceData
,
actNum
,
activeNavIdx
}
=
data
// if(actNum == 2){
// return senceData[actNum]?.noVideoPicture[0]
// }
// return senceData[actNum]?.videoList[activeNavIdx]
},
// 授权昵称弹框显示
authNcknameShow
(
data
){
return
data
.
isShare
&&
!
data
.
hasUserInfo
}
},
//接受跳转的路由参数(小程序页面跳转)
onRoute
(
options
)
{
if
(
!
options
||
utils
.
isEmptyObj
(
options
))
return
let
{
actNum
=
0
,
activeNavIdx
=
0
,
phone
}
=
options
this
.
setData
({
actNum
,
//选中的场景下标
activeNavIdx
,
//选中的产品
sharephone
:
phone
//联系电话 (登陆的用户)
})
// console.log(this.data.senceData, 'senceData-----')
const
senceList
=
productData
[
this
.
data
.
actNum
].
filter
(
item
=>
item
.
name
!=
'全部'
)
var
proInfo
=
{}
for
(
let
i
=
0
;
i
<
senceList
.
length
;
i
++
)
{
let
proIdList
=
senceList
[
i
]?.
productList
.
map
(
k
=>
k
.
id
)
if
(
proIdList
.
includes
(
activeNavIdx
))
{
proInfo
=
senceList
[
i
].
productList
.
find
(
k
=>
k
.
id
==
activeNavIdx
)
break
}
}
this
.
setData
({
proInfo
})
// console.log(this.data.proInfo, '---------proInfo')
// 设置转发标题
let
userInfoObj
=
wx
.
$storage
.
get
(
"userInfo"
)
// #服务商账号#取该分享者商户的联系人字段,无则取商户简称,无则取商户全称
let
name
=
userInfoObj
.
merchantName
this
.
shareTitle
=
`
${
name
}
给你分享一个活动
${
proInfo
.
productName
}
,戳我参与~`
//分享数据
let
item
=
proInfo
// console.log('title2',item.productName)
setTimeout
(()
=>
{
utils
.
setNavigationBarTitle
(
item
.
productName
)
},
100
)
//分享人openId
let
wx_user_info
=
wx
.
$storage
.
get
(
'wx_user_info'
),
shareOpenId
=
wx_user_info
.
openId
||
''
this
.
shareQuery
=
`sceneCode=
${
senceData
[
actNum
].
sceneCode
}
&productCode=
${
item
?.
productCode
}
&
isShare
=
$
{
true
}
&
productDesc
=
$
{
item
?.
productName
}
&
category
=
$
{
item
?.
category
}
&
actNum
=
$
{
actNum
}
&
activeNavIdx
=
$
{
activeNavIdx
}
&
sharephone
=
$
{
phone
}
`
this.shareTrackData = {
sceneCode: senceData[actNum]?.sceneCode,
productCode: item?.productCode,
productName: item?.productName,
category: item?.category,
productDesc: item?.productName,
shareOpenId:shareOpenId
}
},
onPageScroll: (function () {
let timer = null;
return function (e) {
// console.log(e)
// console.log("在滚动");
// 监听页面的滚动开始和结束
clearTimeout(timer);
timer = setTimeout(() => {
let proDetail = this.selectComponent("#pro-detail")
proDetail.pageSroll(e)
}, 100);
};
})(),
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
}
})
\ No newline at end of file
packagesList/pages/scenarioDetail/scenarioDetail.json
0 → 100644
View file @
ef09fa2
{
"usingComponents"
:
{
"pro-detail"
:
"../../../components/proDetail/proDetail"
}
}
\ No newline at end of file
packagesList/pages/scenarioDetail/scenarioDetail.scss
0 → 100644
View file @
ef09fa2
/* packagesList/pages/scenarioDetail/scenarioDetail.wxss */
\ No newline at end of file
packagesList/pages/scenarioDetail/scenarioDetail.wxml
0 → 100644
View file @
ef09fa2
<!--packagesList/pages/scenarioDetail/scenarioDetail.wxml-->
<pro-detail id="pro-detail" actNum="{{actNum}}" activeNavIdx="{{activeNavIdx}}"></pro-detail>
pages/tab/index/index.js
View file @
ef09fa2
...
...
@@ -113,14 +113,12 @@ Page({
let
{
detail
}
=
e
//登录的用户手机号
// let userInfo = wx.$storage.get("userInfo")
const
{
cardInfo
}
=
this
.
data
let
obj
=
{
// actNum: tabActive, //选中的场景
// activeNavIdx: 0, //选中的产品
actNum
:
detail
.
scenIndex
,
//选中的场景
activeNavIdx
:
detail
.
id
//选中的产品
// phone: userInfo.phone
activeNavIdx
:
detail
.
id
,
//选中的产品,
cardInfo
}
wx
.
$router
.
go
(
"/packagesList/pages/productDetail/productDetail"
,
obj
)
},
// 跳转视频详情
...
...
@@ -138,8 +136,16 @@ Page({
// 跳转活动页
activityClick
(
e
)
{
const
{
hasPhoneNumber
}
=
this
.
data
const
id
=
e
.
detail
console
.
log
(
e
)
wx
.
$router
.
go
(
'/packagesList/pages/activityDetail/activityDetail'
,
{
hasPhoneNumber
,
id
})
},
// 场景跳转
senceClick
(
e
)
{
const
{
hasPhoneNumber
}
=
this
.
data
console
.
log
(
e
)
wx
.
$router
.
go
(
'/packagesList/pages/
activityDetail/activity
Detail'
,
{
hasPhoneNumber
})
wx
.
$router
.
go
(
'/packagesList/pages/
scenarioDetail/scenario
Detail'
,
{
hasPhoneNumber
})
},
// 获取全部活动列表
...
...
pages/tab/index/index.scss
View file @
ef09fa2
...
...
@@ -83,4 +83,18 @@ page {
width
:
128rpx
;
height
:
128rpx
;
}
/** end */
\ No newline at end of file
/** end */
.loadding
{
height
:
100vh
;
font-weight
:
500
;
font-size
:
48rpx
;
color
:
#2D2D33
;
text-align
:
center
;
margin-top
:
340rpx
;
&
-img
{
width
:
432rpx
;
height
:
300rpx
;
margin-bottom
:
50rpx
;
}
}
\ No newline at end of file
pages/tab/index/index.wxml
View file @
ef09fa2
<!-- pages/tab/index/index.wxml -->
<view class="main-box">
<user-info shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}"></user-info>
<view class="main-bottom">
<!-- tab介绍 -->
<view class="tab-list">
<block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png?v={{img_version}}"></image>
<image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png?v={{img_version}}"></image>
<view class="tab-text">{{item.name}}</view>
</view>
</block>
</view>
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick">
</gl-scenario>
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<view class="loadding" wx:if="{{!cardInfo}}">
<glsx-image custom-class="loadding-img" src="home/loadding.webp"></glsx-image>
<view>努力加载中</view>
</view>
<block wx:if="{{!!cardInfo}}">
<view class="main-box">
<user-info shareDisabled="{{shareDisabled}}" cardInfo="{{cardInfo}}"></user-info>
<view class="main-bottom">
<!-- tab介绍 -->
<view class="tab-list">
<block wx:for="{{tabList}}" wx:key="index">
<view class="tab-item {{curTabIndex === index ? 'tab-item-active' : '' }}" data-name="{{item}}" data-index="{{index}}" bindtap="introduce">
<image wx:if="{{curTabIndex !== index}}" class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon1}}.png?v={{img_version}}"></image>
<image wx:else class="tab-img" mode="widthFix" webp src="{{IMGURL}}home/{{item.icon}}.png?v={{img_version}}"></image>
<view class="tab-text">{{item.name}}</view>
</view>
</block>
</view>
<view class="main-content">
<block wx:if="{{curTabIndex == 0}}">
<!-- 增值转化 -->
<gl-scenario productData="{{productData}}" senceData="{{senceData}}" activityList="{{activityList}}" bindactivityClick="activityClick" bind:proClick="proClick" bind:videoClick="videoClick" bind:senceClick="senceClick">
</gl-scenario>
<!-- <scenario productData="{{productData}}" senceData="{{senceData}}">
<activity-info slot="swiper"></activity-info>
</scenario> -->
</block>
<block wx:if="{{curTabIndex == 1}}">系统订阅</block>
<block wx-if="{{curTabIndex == 2}}">
<company-introduce autoplay="{{autoplay}}"></company-introduce>
</block>
</block>
<block wx:if="{{curTabIndex == 1}}">系统订阅</block>
<block wx-if="{{curTabIndex == 2}}">
<company-introduce autoplay="{{autoplay}}"></company-introduce>
</block>
</view>
</view>
<!-- 服务咨询 -->
<view class="floating-box">
<image class="floating-icon" style="margin-bottom: 10rpx;" webp bindtap="toStoreMiniProgram" src="{{IMGURL}}home/icon-store.png?v={{img_version}}"></image>
<image class="floating-icon" bindtap="toBusinessMiniProgram" webp src="{{IMGURL}}home/icon-business.png?v={{img_version}}"></image>
<image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}"></image>
</view>
</view>
<!-- 服务咨询 -->
<view class="floating-box">
<image class="floating-icon" style="margin-bottom: 10rpx;" webp bindtap="toStoreMiniProgram" src="{{IMGURL}}home/icon-store.png?v={{img_version}}"></image>
<image class="floating-icon" bindtap="toBusinessMiniProgram" webp src="{{IMGURL}}home/icon-business.png?v={{img_version}}"></image>
<image class="floating-icon" bindtap="handleOpen" webp src="{{IMGURL}}home/custom.png?v={{img_version}}"></image>
</view>
</view>
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
<!-- 客服咨询 -->
<customer wx:if="{{showCustomer}}" bindcloseQR="closeQR"></customer>
\ No newline at end of file
<phone-number type="{{'home'}}" bindtoApplication="toApplication" hasPhoneNumber="{{hasPhoneNumber}}"></phone-number>
<!-- 客服咨询 -->
<customer wx:if="{{showCustomer}}" bindcloseQR="closeQR"></customer>
</block>
\ No newline at end of file
project.private.config.json
View file @
ef09fa2
...
...
@@ -36,7 +36,7 @@
{
"name"
:
""
,
"pathName"
:
"pages/tab/index/index"
,
"query"
:
"scene=sceneId%3D
3996
"
,
"query"
:
"scene=sceneId%3D
857
"
,
"launchMode"
:
"default"
,
"scene"
:
null
},
...
...
@@ -53,6 +53,13 @@
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
},
{
"name"
:
""
,
"pathName"
:
"packagesList/pages/productDetail/productDetail"
,
"query"
:
""
,
"launchMode"
:
"default"
,
"scene"
:
null
}
]
}
...
...
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