Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
business-assistant
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 0d321a00
authored
Nov 23, 2022
by
luyt
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
feat:添加预览图片弹框
1 parent
9aff21e9
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
625 additions
and
188 deletions
app.wxss
pages/tab/index/components/indexProduct/indexProduct.js
pages/tab/index/components/indexProduct/indexProduct.json
pages/tab/index/components/indexProduct/indexProduct.scss
pages/tab/index/components/indexProduct/indexProduct.wxml
pages/tab/index/components/poster-item/index.js
pages/tab/index/components/poster-item/index.json
pages/tab/index/components/poster-item/index.scss
pages/tab/index/components/poster-item/index.wxml
pages/tab/index/components/video-item/index.js
pages/tab/index/components/video-item/index.json
pages/tab/index/components/video-item/index.scss
pages/tab/index/components/video-item/index.wxml
pages/tab/index/constant/data.js
pages/tab/index/index.js
pages/tab/index/index.wxml
app.wxss
View file @
0d321a0
...
@@ -23,6 +23,11 @@ page {
...
@@ -23,6 +23,11 @@ page {
--btnColor: #3666FE;
--btnColor: #3666FE;
--borderRadius: 8rpx;
--borderRadius: 8rpx;
--margin: 32rpx;
--margin: 32rpx;
/* vant 样式覆盖 */
--tabs-bottom-bar-color:#3666FE;
--sidebar-selected-border-color:#3666FE;
--tree-select-nav-background-color:#f6f6f6;
}
}
image {
image {
...
...
pages/tab/index/components/indexProduct/indexProduct.js
View file @
0d321a0
// pages/tab/index/components/indexProduct/indexProduct.js
// pages/tab/index/components/indexProduct/indexProduct.js
import
{
IMG_URL
}
from
'~/utils/constantData.js'
const
videoBaseUrl
=
'https://img02.glsx.com.cn/weapp/resource/miniprogram/ai-card/'
Component
({
Component
({
/**
/**
* 组件的属性列表
* 组件的属性列表
...
@@ -15,12 +19,73 @@ Component({
...
@@ -15,12 +19,73 @@ Component({
*/
*/
data
:
{
data
:
{
refresherFlag
:
true
,
refresherFlag
:
true
,
IMG_URL
,
// 头部tab
tabActive
:
0
,
items
:[
{
text
:
'全部'
,
type
:
'all'
},
{
text
:
'全部'
,
type
:
'all'
},
],
mainActiveIndex
:
0
,
contentHeight
:
0
,
// 视频海报
videoActive
:
1
},
},
lifetimes
:{
ready
(){
// console.log('lifetimes',this)
let
contentTop
let
that
=
this
;
const
query
=
this
.
createSelectorQuery
()
query
.
select
(
'#pro-cont'
).
boundingClientRect
(
function
(
res
){
// console.log('top',res.top)
contentTop
=
res
.
top
//屏幕
const
windowHeight
=
wx
.
getSystemInfoSync
().
windowHeight
// console.log('windowHeight: ', windowHeight, contentTop);
const
contentHeight
=
windowHeight
-
contentTop
// console.log('contentHeight: ', contentHeight);
that
.
setData
({
contentHeight
})
})
query
.
exec
()
}
},
/**
/**
* 组件的方法列表
* 组件的方法列表
*/
*/
methods
:
{
methods
:
{
//视频 海报切换
onclickVideoTab
(
event
){
// console.log('event: ', event);
let
videoActive
=
+
event
.
currentTarget
.
dataset
.
num
console
.
log
(
'videoActive: '
,
videoActive
);
this
.
setData
({
videoActive
})
},
onClickNav
({
detail
=
{}
})
{
this
.
setData
({
mainActiveIndex
:
detail
.
index
||
0
,
});
},
// 头部tab回调
onTabChange
(
event
){
console
.
log
(
'event: '
,
event
);
},
// 选车场景切换
// 选车场景切换
selectCar
(
e
)
{
selectCar
(
e
)
{
// console.log('e: ', e)
// console.log('e: ', e)
...
...
pages/tab/index/components/indexProduct/indexProduct.json
View file @
0d321a0
{
{
"component"
:
true
,
"component"
:
true
,
"usingComponents"
:
{
"usingComponents"
:
{
"product"
:
"../product/product"
"van-tab"
:
"@vant/weapp/tab/index"
,
}
"van-tabs"
:
"@vant/weapp/tabs/index"
,
"van-notice-bar"
:
"@vant/weapp/notice-bar/index"
,
"van-tree-select"
:
"@vant/weapp/tree-select/index"
,
"video-item"
:
"../video-item/index"
,
"poster-item"
:
"../poster-item/index"
,
"van-overlay"
:
"@vant/weapp/overlay/index"
},
"styleIsolation"
:
"shared"
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/indexProduct/indexProduct.scss
View file @
0d321a0
/* pages/tab/index/components/indexProduct/indexProduct.wxss */
/
/ /
* pages/tab/index/components/indexProduct/indexProduct.wxss */
.content-scroll
{
//
.content-scroll{
height
:
100vh
;
//
height: 100vh;
// height: calc(100% - 80rpx);
//
// height: calc(100% - 80rpx);
}
//
}
.content-product
{
//
.content-product {
.scene
{
//
.scene {
// margin-top: 32rpx;
//
// margin-top: 32rpx;
// margin-left: 20rpx;
//
// margin-left: 20rpx;
// margin-right: 20rpx;
//
// margin-right: 20rpx;
// margin-bottom: 10rpx;
//
// margin-bottom: 10rpx;
margin
:
32rpx
32rpx
0
;
//
margin: 32rpx 32rpx 0;
.scene-wrap
{
//
.scene-wrap {
display
:
flex
;
//
display: flex;
}
//
}
.item-wrap
{
//
.item-wrap {
margin-right
:
16rpx
;
//
margin-right: 16rpx;
margin-bottom
:
40rpx
;
//
margin-bottom: 40rpx;
position
:
relative
;
//
position: relative;
width
:
172rpx
;
//
width: 172rpx;
height
:
180rpx
;
//
height: 180rpx;
border-radius
:
8rpx
;
//
border-radius: 8rpx;
border
:
1px
solid
#f7f8fc
;
//
border: 1px solid #f7f8fc;
box-sizing
:
border-box
;
//
box-sizing: border-box;
}
//
}
.item
{
//
.item {
position
:
relative
;
//
position: relative;
// padding-top: 10px;
//
// padding-top: 10px;
width
:
172rpx
;
//
width: 172rpx;
height
:
180rpx
;
//
height: 180rpx;
background
:
#f7f8fc
;
//
background: #f7f8fc;
border-radius
:
8rpx
;
//
border-radius: 8rpx;
box-sizing
:
border-box
;
//
box-sizing: border-box;
// border: 1px solid #f7f8fc;
//
// border: 1px solid #f7f8fc;
}
//
}
.open-img
{
//
.open-img {
position
:
absolute
;
//
position: absolute;
top
:
0
;
//
top: 0;
right
:
0
;
//
right: 0;
width
:
78rpx
;
//
width: 78rpx;
height
:
78rpx
;
//
height: 78rpx;
box-sizing
:
border-box
;
//
box-sizing: border-box;
}
//
}
.act
{
//
.act {
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
//
// background-image: url("https://img02.glsx.com.cn/weapp/resource/saas/business-assistant/index/act.png");
// background-size: 100% 100%;
//
// background-size: 100% 100%;
border
:
1px
solid
var
(
--
btnColor
);
//
border: 1px solid var(--btnColor);
// box-shadow: 0 2rpx 4rpx 0 rgba(180, 186, 204, 0.4);
//
// box-shadow: 0 2rpx 4rpx 0 rgba(180, 186, 204, 0.4);
background-image
:
linear-gradient
(
145deg
,
#f0f7ff
0%
,
#ffffff
73%
);
//
background-image: linear-gradient(145deg, #f0f7ff 0%, #ffffff 73%);
box-shadow
:
0
4rpx
8rpx
0
rgba
(
180
,
186
,
204
,
0
.32
)
,
//
box-shadow: 0 4rpx 8rpx 0 rgba(180, 186, 204, 0.32),
0
8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.4
);
//
0 8rpx 20rpx 0 rgba(180, 186, 204, 0.4);
&
:
:
after
{
// &::after {
position
:
absolute
;
// position: absolute;
left
:
50%
;
// left: 50%;
bottom
:
-7px
;
// bottom: -7px;
display
:
block
;
// display: block;
content
:
""
;
// content: "";
width
:
6px
;
// width: 6px;
height
:
6px
;
// height: 6px;
border-bottom
:
1px
solid
var
(
--
btnColor
);
// border-bottom: 1px solid var(--btnColor);
border-right
:
1px
solid
var
(
--
btnColor
);
// border-right: 1px solid var(--btnColor);
transform
:
rotate
(
45deg
)
translateX
(
-50%
);
// transform: rotate(45deg) translateX(-50%);
background-color
:
#fff
;
// background-color: #fff;
}
// }
// // .open-img{
// // display: none;
// // }
// .item {
// background: transparent;
// }
// }
// .img {
// padding-top: 10px;
// display: block;
// margin: 0 auto 2px;
// width: 28px;
// height: 28px;
// }
// .open-img{
// .name {
// display: none;
// margin-bottom: 2px;
// }
// font-weight: 500;
// font-size: 12px;
// color: #323436;
// text-align: center;
// }
.item
{
// .msg {
background
:
transparent
;
// font-weight: 500;
// font-size: 18rpx;
// color: #323436;
// text-align: center;
// }
// }
// }
.page-pro
{
.pro-head
{
.van-tabs__line
{
width
:
40rpx
!
important
;
height
:
8rpx
;
background
:
#3666fe
;
border-radius
:
4rpx
;
}
.van-ellipsis
{
overflow
:
visible
;
text-overflow
:
auto
;
}
.van-tab--active
{
.van-ellipsis
{
font-weight
:
600
;
font-size
:
40rpx
;
color
:
#323436
;
overflow
:
visible
;
text-overflow
:
auto
;
}
}
}
}
.pro-banner
{
.img
{
padding-top
:
10px
;
display
:
block
;
display
:
block
;
margin
:
0
auto
2px
;
margin
:
8rpx
auto
20rpx
;
width
:
28px
;
width
:
710rpx
;
height
:
28px
;
height
:
254rpx
;
border-radius
:
20rpx
;
}
}
}
.name
{
.dy-notice
{
margin-bottom
:
2px
;
margin-left
:
20rpx
;
font-weight
:
500
;
margin-right
:
20rpx
;
font-size
:
12px
;
margin-bottom
:
40rpx
;
color
:
#323436
;
padding
:
0
;
text-align
:
center
;
color
:
#8a8c90
;
font-size
:
24rpx
;
background
:
#f2f3f7
;
border-radius
:
22rpx
;
height
:
44rpx
;
}
.pro-cont
{
.van-tree-select__nav
{
width
:
116rpx
;
flex
:
0
;
}
}
.van-sidebar-item
{
.msg
{
position
:
relative
;
font-weight
:
500
;
padding
:
0
;
font-size
:
18rpx
;
width
:
116rpx
;
color
:
#323436
;
height
:
88rpx
;
line-height
:
88rpx
;
text-align
:
center
;
text-align
:
center
;
border-left
:
0
;
}
.
van-sidebar-item--selected
:
:
before
{
position
:
absolute
;
top
:
50%
;
left
:
0
;
width
:
6rpx
;
height
:
40rpx
;
border-radius
:
0
4rpx
4rpx
0
;
background-color
:
#3666fe
;
-webkit-transform
:
translateY
(
-50%
);
transform
:
translateY
(
-50%
);
content
:
""
;
}
.van-sidebar-item--selected
{
}
.tab-cont
{
padding-left
:
32rpx
;
padding-right
:
32rpx
;
box-sizing
:
border-box
;
}
.tab-pro
{
.title
{
margin-bottom
:
16rpx
;
font-weight
:
500
;
font-size
:
28rpx
;
color
:
#323436
;
}
.list
{
}
.pro
{
margin-right
:
20rpx
;
margin-bottom
:
20rpx
;
display
:
inline-block
;
width
:
176rpx
;
height
:
172rpx
;
background
:
#ffffff
;
border
:
2rpx
solid
#ffffff
;
box-shadow
:
0
8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
border-radius
:
8rpx
;
.pro-img
{
margin
:
0
auto
;
width
:
176rpx
;
height
:
120rpx
;
}
.pro-name
{
// text-align: center;
height
:
52rpx
;
line-height
:
52rpx
;
font-size
:
24rpx
;
color
:
#323436
;
}
}
}
.tab-video
{
.tab-video-wrap
{
display
:
flex
;
margin-bottom
:
16rpx
;
margin-top
:
12rpx
;
.video
{
margin-right
:
40rpx
;
font-size
:
28rpx
;
color
:
#8a8c90
;
}
.act
{
font-weight
:
500
;
color
:
#323436
;
}
}
.video-cont
{
.empty
{
width
:
512rpx
;
height
:
512rpx
;
}
}
.poster-cont
{
.empty
{
width
:
512rpx
;
height
:
512rpx
;
}
}
}
}
}
}
}
}
pages/tab/index/components/indexProduct/indexProduct.wxml
View file @
0d321a0
<!--pages/tab/index/components/indexProduct/indexProduct.wxml-->
<view class="page-wrapper page-pro">
<!-- class="content-scroll" -->
<view class="pro-head">
<!-- style="height: calc(100vh - {{headerHeight/2}}px)" -->
<van-tabs active="{{ tabActive }}" bind:change="onTabChange">
<!-- <scroll-view
<van-tab wx:for="{{senceData}}" wx:key="index" title="{{item.tabname}}">
scroll-y="true"
<image class="pro-banner" src="{{item.banner}}" mode="aspectFit|aspectFill|widthFix" lazy-load="false" binderror="" bindload="" />
refresher-enabled="{{true}}"
</van-tab>
refresher-triggered="{{refresherFlag}}"
</van-tabs>
bindrefresherrefresh="refresherrefreshFn"> -->
</view>
<view
<view>
class="content-product"
<van-notice-bar custom-class="dy-notice" left-icon="{{IMG_URL}}index/ad.png" speed="{{30}}" text="在代码阅读过程中人们说脏话的频率是衡量代码质量的唯一标准。" />
hover-class="none"
</view>
hover-stop-propagation="false">
<view class="pro-cont" id="pro-cont">
<view class="scene">
<van-tree-select items="{{ items }}" height="{{contentHeight}}" main-active-index="{{ mainActiveIndex }}" bind:click-nav="onClickNav">
<!-- wx:if="{{item.sceneStatus == 1}}" -->
<view class="tab-cont" slot="content">
<scroll-view scroll-x="{{true}}">
<!-- 产品 -->
<view class="scene-wrap">
<view class="tab-pro">
<view
<view class="title">特色产品</view>
class="item-wrap {{actNum== index ? 'act':''}}"
<view class="list">
data-num="{{index}}"
<view class="pro">
data-scenestatus="{{item.sceneStatus}}"
<image class="pro-img" src="{{IMG_URL}}index/prod2/prod0-0.png" />
bindtap="selectCar"
<view class="pro-name">数字无忧权益卡</view>
wx:for="{{senceData}}"
</view>
wx:key="name">
</view>
<view class="item">
</view>
<!-- <image class="open-img" wx:if="{{item.sceneStatus == 1}}" src="{{IMG_URL}}/output/openedIcon.png" /> -->
<!-- 视频 海报 -->
<image webp class="img" src="{{item.src}}" />
<view class="tab-video">
<view class="name">{{item.name}}</view>
<view class="tab-video-wrap">
<view class="msg">{{item.msg}}</view>
<view class="video {{videoActive == 0?'act':''}}" data-num="0" bindtap="onclickVideoTab">
</view>
案例视频
</view>
<view class="video {{videoActive == 1?'act':''}}" data-num="1" bindtap="onclickVideoTab">
营销海报
</view>
</view>
<view class="video-cont" wx:if="{{videoActive == 0}}">
<video-item></video-item>
<!-- 无 -->
<image wx:if="{{false}}" class="empty" src="{{IMG_URL}}index/no-video.png?v={{img_version}}" />
</view>
<view class="poster-cont" wx:else>
<poster-item></poster-item>
<!-- 无 -->
<image wx:if="{{false}}" class="empty" src="{{IMG_URL}}index/no-video.png?v={{img_version}}" />
</view>
</view>
</view>
</view>
</view>
</scroll-view>
</view>
<!-- stickyTop="{{headerHeight}}" -->
<product
img_version="{{img_version}}"
isShow="{{false}}"
stickyTop="{{headerHeight}}"
actNum="{{actNum}}"
senceData="{{senceData}}"
origin="home"
bindsharehandle="sharehandle" />
</view>
<!-- </scroll-view> -->
\ No newline at end of file
\ No newline at end of file
</van-tree-select>
</view>
</view>
<!-- 图片预览弹窗 -->
<van-overlay show="{{ true }}">
<view class="wrapper">123</view>
</van-overlay>
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/poster-item/index.js
0 → 100644
View file @
0d321a0
import
{
IMG_URL
}
from
'~/utils/constantData.js'
Component
({
/**
* 组件的属性列表
*/
properties
:
{
item
:
Object
},
/**
* 组件的初始数据
*/
data
:
{
IMG_URL
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/poster-item/index.json
0 → 100644
View file @
0d321a0
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/poster-item/index.scss
0 → 100644
View file @
0d321a0
/* pages/tab/index/components/poster-item/index.wxss */
.poster-item
{
display
:
inline-block
;
margin-right
:
18rpx
;
margin-bottom
:
20rpx
;
&
:nth-child
(
even
)
{
margin-right
:
0
;
}
.img
{
width
:
276rpx
;
height
:
492rpx
;
border-radius
:
12rpx
12rpx
0
0
;
}
.msg
{
width
:
276rpx
;
height
:
60rpx
;
line-height
:
60rpx
;
background
:
#ebf0fe
;
border-radius
:
0
0
12rpx
12rpx
;
font-size
:
24rpx
;
color
:
#3666fe
;
text-align
:
center
;
}
}
pages/tab/index/components/poster-item/index.wxml
0 → 100644
View file @
0d321a0
<!-- pages/tab/index/components/poster-item/index.wxml -->
<view class="poster-item">
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" />
<view class="msg">生成专属海报</view>
</view>
<view class="poster-item">
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" />
<view class="msg">生成专属海报</view>
</view>
<view class="poster-item">
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" />
<view class="msg">生成专属海报</view>
</view>
pages/tab/index/components/video-item/index.js
0 → 100644
View file @
0d321a0
// pages/tab/index/components/video-item/index.js
import
{
IMG_URL
}
from
'~/utils/constantData.js'
Component
({
/**
* 组件的属性列表
*/
properties
:
{
item
:
Object
},
/**
* 组件的初始数据
*/
data
:
{
IMG_URL
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/index/components/video-item/index.json
0 → 100644
View file @
0d321a0
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/video-item/index.scss
0 → 100644
View file @
0d321a0
/* pages/tab/index/components/video-item/index.wxss */
.video-item
{
position
:
relative
;
display
:
inline-block
;
margin-right
:
18rpx
;
margin-bottom
:
20rpx
;
width
:
276rpx
;
height
:
316rpx
;
background
:
#FFFFFF
;
// border: 2rpx solid #FFFFFF;
box-shadow
:
0
8rpx
20rpx
0
rgba
(
180
,
186
,
204
,
0
.32
);
border-radius
:
12rpx
;
&
:nth-child
(
even
)
{
margin-right
:
0
;
}
.play
{
position
:
absolute
;
top
:
107rpx
;
left
:
19rpx
;
width
:
42rpx
;
height
:
42rpx
;
}
.img
{
width
:
276rpx
;
height
:
168rpx
;
}
.name
{
margin-top
:
12rpx
;
margin-bottom
:
12rpx
;
margin-left
:
16rpx
;
margin-right
:
16rpx
;
height
:
80rpx
;
font-weight
:
500
;
font-size
:
26rpx
;
color
:
#323436
;
}
.detail
{
display
:
flex
;
margin-left
:
16rpx
;
margin-right
:
16rpx
;
}
.avtor
{
width
:
32rpx
;
height
:
32rpx
;
border-radius
:
50%
;
}
.location
{
margin-left
:
8rpx
;
margin-right
:
8rpx
;
width
:
132rpx
;
overflow
:hidden
;
text-overflow
:
ellipsis
;
font-size
:
22rpx
;
color
:
#5A6066
;
}
.check
{
width
:
28rpx
;
height
:
28rpx
;
}
.num
{
font-size
:
20rpx
;
color
:
#5A6066
;
}
}
pages/tab/index/components/video-item/index.wxml
0 → 100644
View file @
0d321a0
<!-- pages/tab/index/components/video-item/index.wxml -->
<view class="video-item">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
<view class="detail">
<image class="avtor" src="{{IMG_URL}}index/poster/avtor.png?v={{img_version}}" />
<view class="location">嘀加智慧</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">12345</view>
</view>
</view>
<view class="video-item">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
<view class="detail">
<image class="avtor" src="{{IMG_URL}}index/poster/avtor.png?v={{img_version}}" />
<view class="location">嘀加智慧</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">12345</view>
</view>
</view>
<view class="video-item">
<image class="play" src="{{IMG_URL}}index/poster/play.png?v={{img_version}}" />
<image class="img" src="{{IMG_URL}}index/poster/poster0-0.png?v={{img_version}}" alt="" />
<view class="name">30秒告诉你数字无忧卡是什么</view>
<view class="detail">
<image class="avtor" src="{{IMG_URL}}index/poster/avtor.png?v={{img_version}}" />
<view class="location">嘀加智慧</view>
<image class="check" src="{{IMG_URL}}index/poster/check.png?v={{img_version}}" />
<view class="num">12345</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
pages/tab/index/constant/data.js
View file @
0d321a0
...
@@ -9,6 +9,8 @@ var senceData = [
...
@@ -9,6 +9,8 @@ var senceData = [
// name: "新车洽谈场景",
// name: "新车洽谈场景",
msg
:
"1.0新车权益升级"
,
msg
:
"1.0新车权益升级"
,
"sceneCode"
:
"SC001"
,
"sceneCode"
:
"SC001"
,
tabname
:
'车损升级'
,
banner
:
`
${
IMG_URL
}
index/banner/banner0.png`
,
productList
:
[
productList
:
[
{
{
img
:
'product-img1'
,
img
:
'product-img1'
,
...
@@ -31,22 +33,26 @@ var senceData = [
...
@@ -31,22 +33,26 @@ var senceData = [
{
{
videoUrl
:
'digital_card_30s'
,
videoUrl
:
'digital_card_30s'
,
posterUrl
:
'digital_card_30s_bitmap'
,
posterUrl
:
'digital_card_30s_bitmap'
,
name
:
'数字无忧卡服务30秒'
name
:
'数字无忧卡服务30秒'
,
view
:
1004
},
},
{
{
videoUrl
:
'digital_card_money3'
,
videoUrl
:
'digital_card_money3'
,
posterUrl
:
'digital_card_money3_bitmap'
,
posterUrl
:
'digital_card_money3_bitmap'
,
name
:
'数字无忧卡3道钱'
name
:
'数字无忧卡3道钱'
,
view
:
1563
},
},
{
{
videoUrl
:
'digital_card'
,
videoUrl
:
'digital_card'
,
posterUrl
:
'digital_card_bitmap'
,
posterUrl
:
'digital_card_bitmap'
,
name
:
'数字无忧卡服务'
name
:
'数字无忧卡服务'
,
view
:
1320
},
},
{
{
videoUrl
:
'digital_card_reason6'
,
videoUrl
:
'digital_card_reason6'
,
posterUrl
:
'digital_card_reason6_bitmap'
,
posterUrl
:
'digital_card_reason6_bitmap'
,
name
:
'数字无忧卡6大理由'
name
:
'数字无忧卡6大理由'
,
view
:
1485
}
}
]
]
},
},
...
@@ -59,6 +65,8 @@ var senceData = [
...
@@ -59,6 +65,8 @@ var senceData = [
// name: "新车交付场景",
// name: "新车交付场景",
msg
:
"1.1新车精品升级"
,
msg
:
"1.1新车精品升级"
,
"sceneCode"
:
"SC002"
,
"sceneCode"
:
"SC002"
,
tabname
:
'精品升级'
,
banner
:
`
${
IMG_URL
}
index/banner/banner1.png`
,
productList
:
[
productList
:
[
{
{
img
:
'product-img2'
,
img
:
'product-img2'
,
...
@@ -80,7 +88,8 @@ var senceData = [
...
@@ -80,7 +88,8 @@ var senceData = [
{
{
videoUrl
:
'solar'
,
videoUrl
:
'solar'
,
posterUrl
:
'solar_bitmap'
,
posterUrl
:
'solar_bitmap'
,
name
:
'太阳膜转化售中案例-门店新增产值12w每月'
name
:
'太阳膜转化售中案例-门店新增产值12w每月'
,
view
:
1178
}
}
]
]
},
},
...
@@ -93,6 +102,8 @@ var senceData = [
...
@@ -93,6 +102,8 @@ var senceData = [
// name: "0-12个月",
// name: "0-12个月",
msg
:
"1.2次新车膨胀金活动"
,
msg
:
"1.2次新车膨胀金活动"
,
"sceneCode"
:
"SC003"
,
"sceneCode"
:
"SC003"
,
tabname
:
'膨胀金活动'
,
banner
:
`
${
IMG_URL
}
index/banner/banner2.png`
,
productList
:
[
productList
:
[
{
{
img
:
'product-img3'
,
img
:
'product-img3'
,
...
@@ -135,6 +146,8 @@ var senceData = [
...
@@ -135,6 +146,8 @@ var senceData = [
// name: "12个月以上",
// name: "12个月以上",
msg
:
"1.3售后直播众筹活动"
,
msg
:
"1.3售后直播众筹活动"
,
"sceneCode"
:
"SC004"
,
"sceneCode"
:
"SC004"
,
tabname
:
'众筹活动'
,
banner
:
`
${
IMG_URL
}
index/banner/banner3.png`
,
productList
:
[
productList
:
[
{
{
img
:
'product-img5'
,
img
:
'product-img5'
,
...
@@ -216,53 +229,57 @@ var senceData = [
...
@@ -216,53 +229,57 @@ var senceData = [
{
{
videoUrl
:
'seat'
,
videoUrl
:
'seat'
,
posterUrl
:
'seat_bitmap'
,
posterUrl
:
'seat_bitmap'
,
name
:
'座椅通风系统-新增产值20w'
name
:
'座椅通风系统-新增产值20w'
,
view
:
1365
},
},
{
{
videoUrl
:
'AR'
,
videoUrl
:
'AR'
,
posterUrl
:
'AR_bitmap'
,
posterUrl
:
'AR_bitmap'
,
name
:
'单品AR导航-新增产值20w+'
name
:
'单品AR导航-新增产值20w+'
,
view
:
1172
},
},
{
{
videoUrl
:
'light'
,
videoUrl
:
'light'
,
posterUrl
:
'light_bitmap'
,
posterUrl
:
'light_bitmap'
,
name
:
'单品类氛围灯-新增产值27w'
name
:
'单品类氛围灯-新增产值27w'
,
view
:
1006
},
},
{
{
videoUrl
:
'360_AR'
,
videoUrl
:
'360_AR'
,
posterUrl
:
'360_AR_bitmap'
,
posterUrl
:
'360_AR_bitmap'
,
name
:
'360全景导航-新增产值57w+'
name
:
'360全景导航-新增产值57w+'
,
}
view
:
1891
]
},
{
name
:
'3年以上'
,
img
:
'scene_talk.png'
,
active
:
'icon-car11'
,
playImg
:
'img1'
,
src
:
`
${
IMG_URL
}
index/car1.png`
,
// name: "新车洽谈场景",
msg
:
"3.1新能源0元购"
,
"sceneCode"
:
"SC001"
,
productList
:
[
{
img
:
'product-img9'
,
proName
:
'新能源0元换购'
,
price
:
'100'
,
// profit: '92.4万',
profit
:
'1200000'
,
type
:
'service'
,
productType
:
'benefitCard'
,
path
:
'equity'
,
sale
:
100
,
//销量
varType
:
0
,
flow
:
10000
,
"productCode"
:
"PC010"
,
"productName"
:
"新能源0元换购"
,
"category"
:
"置换类"
,
}
}
]
]
},
},
// {
// name: '3年以上',
// img: 'scene_talk.png',
// active: 'icon-car11',
// playImg: 'img1',
// src: `${IMG_URL}index/car1.png`,
// // name: "新车洽谈场景",
// msg: "3.1新能源0元购",
// "sceneCode":"SC001",
// productList: [
// {
// img: 'product-img9',
// proName: '新能源0元换购',
// price: '100',
// // profit: '92.4万',
// profit: '1200000',
// type: 'service',
// productType: 'benefitCard',
// path: 'equity',
// sale:100 ,//销量
// varType: 0,
// flow:10000,
// "productCode" : "PC010",
// "productName" : "新能源0元换购",
// "category":"置换类",
// }
// ]
// },
]
]
//获取当前场景下的全部 产品分类
//获取当前场景下的全部 产品分类
...
...
pages/tab/index/index.js
View file @
0d321a0
...
@@ -52,9 +52,8 @@ Page({
...
@@ -52,9 +52,8 @@ Page({
videoTitle
:
''
,
videoTitle
:
''
,
headerHeight
:
0
,
headerHeight
:
0
,
unreadClueCount
:
0
,
unreadClueCount
:
0
,
img_version
:
0.1
img_version
:
0.1
,
},
},
//引导图
//引导图
guideFn
()
{
guideFn
()
{
if
(
this
.
data
.
guideSrcIndex
===
5
)
{
if
(
this
.
data
.
guideSrcIndex
===
5
)
{
...
@@ -73,9 +72,10 @@ Page({
...
@@ -73,9 +72,10 @@ Page({
// navbar高度设置
// navbar高度设置
navbarReady
(
e
)
{
navbarReady
(
e
)
{
let
{
height
,
statusBarHeight
}
=
e
.
detail
let
{
height
,
statusBarHeight
}
=
e
.
detail
// console.log('height, statusBarHeight: ', height, statusBarHeight);
this
.
setData
({
this
.
setData
({
// tabBarStyle
: height / 2 + statusBarHeight,
headerHeight
:
height
/
2
+
statusBarHeight
,
headerHeight
:
height
/
2
+
statusBarHeight
+
88
*
2
//
headerHeight: height / 2 + statusBarHeight + 88 * 2
})
})
// console.log(e)
// console.log(e)
// console.log(this.data.headerHeight)
// console.log(this.data.headerHeight)
...
...
pages/tab/index/index.wxml
View file @
0d321a0
<wxs src="./index.wxs" module="filterUtils" />
<wxs src="./index.wxs" module="filterUtils" />
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">拓客户</navigation-bar>
<navigation-bar bindnavbarReady="navbarReady" navStyle="{{navStyle}}">
<tab
tab="{{navList}}"
itemWidth="{{'35%'}}"
index="{{tabIndx}}"
tabHeight
unreadClueCount="{{unreadClueCount}}"
bindclick="changeTabIndx"
class="tabContainer" />
</navigation-bar>
<view class="reclaim" style="{{tabIndx == 1 ? 'background: #fff;' : ''}}">
<view class="reclaim" style="{{tabIndx == 1 ? 'background: #fff;' : ''}}">
<!-- 头部 -->
<!-- 头部 -->
<view class="header-wrap" style="height:{{headerHeight}}rpx; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header-wrap" style="height:{{headerHeight}}px; background-image: url('{{IMG_URL}}index/head.png')">
<view class="header">
<!-- <view class="header"> -->
<tab
tab="{{navList}}"
<!-- <view class="right" data-type="shop" bindtap="gotoApply">
itemWidth="{{'35%'}}"
index="{{tabIndx}}"
tabHeight
unreadClueCount="{{unreadClueCount}}"
bindclick="changeTabIndx"
class="tabContainer" />
<view class="right" data-type="shop" bindtap="gotoApply">
<image webp class="img" src="{{IMG_URL}}index/apply.png" />
<image webp class="img" src="{{IMG_URL}}index/apply.png" />
<view class="apply">申请业务</view>
<view class="apply">申请业务</view>
</view>
</view> -->
</view>
<!-- </view> -->
</view>
</view>
<!-- 托客户内容 -->
<!-- 托客户内容 -->
<indexProduct
<indexProduct
...
@@ -103,5 +106,6 @@
...
@@ -103,5 +106,6 @@
<!-- -->
<!-- -->
<crowdfund-poster wx:show="{{!guideShow}}" item="{{posterItem}}" />
<crowdfund-poster wx:show="{{!guideShow}}" item="{{posterItem}}" />
<!-- 全屏视频组件 -->
<!-- 全屏视频组件 -->
<FullscreenVideo id="videocomp" src="{{videoSrc}}" title="{{videoTitle}}" />
<!-- <FullscreenVideo id="videocomp" src="{{videoSrc}}" title="{{videoTitle}}" /> -->
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