Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-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 5c1dcefb
authored
Oct 13, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
活动首页开发
1 parent
21d9f6eb
Show whitespace changes
Inline
Side-by-side
Showing
32 changed files
with
1524 additions
and
4 deletions
pages/tab/index/components/activeBox/activeBox.js
pages/tab/index/components/activeBox/activeBox.json
pages/tab/index/components/activeBox/activeBox.scss
pages/tab/index/components/activeBox/activeBox.wxml
pages/tab/index/components/activityCalender/activityCalender.js
pages/tab/index/components/activityCalender/activityCalender.json
pages/tab/index/components/activityCalender/activityCalender.scss
pages/tab/index/components/activityCalender/activityCalender.wxml
pages/tab/index/components/activityDiagnosis/activityDiagnosis.js
pages/tab/index/components/activityDiagnosis/activityDiagnosis.json
pages/tab/index/components/activityDiagnosis/activityDiagnosis.scss
pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxml
pages/tab/index/components/activityOverview/activityOverview.js
pages/tab/index/components/activityOverview/activityOverview.json
pages/tab/index/components/activityOverview/activityOverview.scss
pages/tab/index/components/activityOverview/activityOverview.wxml
pages/tab/index/components/activityTop/activityTop.js
pages/tab/index/components/activityTop/activityTop.json
pages/tab/index/components/activityTop/activityTop.scss
pages/tab/index/components/activityTop/activityTop.wxml
pages/tab/index/components/bookingOrder/bookingOrder.js
pages/tab/index/components/bookingOrder/bookingOrder.json
pages/tab/index/components/bookingOrder/bookingOrder.scss
pages/tab/index/components/bookingOrder/bookingOrder.wxml
pages/tab/index/components/invertAnalyse/invertAnalyse.js
pages/tab/index/components/invertAnalyse/invertAnalyse.json
pages/tab/index/components/invertAnalyse/invertAnalyse.scss
pages/tab/index/components/invertAnalyse/invertAnalyse.wxml
pages/tab/index/index.js
pages/tab/index/index.json
pages/tab/index/index.scss
pages/tab/index/index.wxml
pages/tab/index/components/activeBox/activeBox.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/activeBox/activeBox.js
import
{
imgUrlMixin
}
from
'~/mixins/index'
Component
({
/**
* 组件的属性列表
*/
behaviors
:
[
imgUrlMixin
],
properties
:
{
activeList
:
{
type
:
Array
,
value
:
[],
observer
(
newVal
)
{
if
(
newVal
)
{
this
.
setData
({
activeList
:
newVal
})
}
}
}
},
/**
* 组件的初始数据
*/
data
:
{
activityOverviewList
:
[
'shareData'
,
'browseData'
,
'visitorData'
,
'orderData'
],
backStyle
:
[
'background-image: linear-gradient(180deg, #FFFFFF 72%, #FFEDEF 100%);margin: 0 16rpx 16rpx 0;'
,
'background-image: linear-gradient(179deg, #FFFFFF 76%, #FFF8E6 100%);'
,
'background-image: linear-gradient(180deg, #FFFFFF 72%, #EBF1FF 100%);margin: 0 16rpx 0 0;'
,
'background-image: linear-gradient(180deg, #FFFFFF 72%, #EBFEFF 100%);'
]
},
/**
* 组件的方法列表
*/
methods
:
{
// 图片加载完成
imageLoaded
(
event
)
{
if
(
event
.
detail
.
width
)
{
this
.
setData
({
imageLoaded
:
true
})
}
},
// 展开收起
collapseClick
(
e
)
{
let
{
key
,
flag
}
=
e
.
currentTarget
.
dataset
this
.
properties
.
activeList
.
forEach
((
val
,
ind
)
=>
{
if
(
key
==
ind
)
{
val
.
isCollapse
=
!
flag
}
})
this
.
setData
({
activeList
:
this
.
properties
.
activeList
})
}
}
})
pages/tab/index/components/activeBox/activeBox.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{
"activity-top"
:
"../activityTop/activityTop"
,
"activity-overview"
:
"../activityOverview/activityOverview"
,
"activity-calender"
:
"../activityCalender/activityCalender"
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activeBox/activeBox.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/activeBox/activeBox.wxss */
.content
{
padding
:
0
22rpx
2rpx
24rpx
;
.content-item
{
width
:
100%
;
box-sizing
:
border-box
;
position
:
relative
;
display
:
inline-block
;
margin
:
32rpx
0
8rpx
0
;
.item-bg
{
width
:
100%
;
height
:
100%
;
border-radius
:
24rpx
;
overflow
:
hidden
;
position
:
absolute
;
box-shadow
:
0
10rpx
20rpx
0
rgba
(
204
,
133
,
122
,
0
.16
);
z-index
:
-1
;
left
:
0
;
top
:
0
;
right
:
0
;
image
{
object-fit
:
cover
;
background-size
:
100%
auto
;
}
}
.item-box
{
box-sizing
:
border-box
;
padding
:
24rpx
;
width
:
100%
;
height
:
100%
;
.hot
{
color
:
#FE5662
;
}
.active-btn
{
display
:
flex
;
margin
:
24rpx
0
32rpx
0
;
justify-content
:
center
;
.btn
{
color
:
#EB4E4E
;
flex
:
1
;
height
:
64rpx
;
text-align
:
center
;
line-height
:
64rpx
;
border-radius
:
14rpx
;
background
:
rgba
(
255
,
255
,
255
,
0
.16
);
border
:
2rpx
solid
#EB4E4E
;
margin-right
:
16rpx
;
}
.btn
:last-child
{
margin-right
:
0
;
}
.primary
{
color
:
#ffffff
;
height
:
68rpx
;
border
:
none
;
background-image
:
linear-gradient
(
270deg
,
#FF3E7F
0%
,
#FE624B
100%
);
}
}
.task-box
{
margin-top
:
24rpx
;
padding
:
32rpx
24rpx
;
border-radius
:
24rpx
;
background
:
#ffffff
;
// transition: all 0.1s linear;
will-change
:
height
;
}
.box-content
{
display
:
block
;
padding-bottom
:
40rpx
;
}
.hidden
{
height
:
80rpx
;
padding
:
0
;
background
:
transparent
;
transition
:
height
.3
;
.box-content
{
display
:
none
;
}
}
.collapse
{
text-align
:
center
;
color
:
#4466F0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
26rpx
;
position
:
absolute
;
bottom
:
40rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
.btn
{
display
:
flex
;
flex-flow
:
row
;
}
.gg-chevron-down
{
box-sizing
:
border-box
;
position
:
relative
;
display
:
block
;
transform
:
scale
(
var
(
--
ggs
,
1
));
width
:
24rpx
;
height
:
24rpx
;
border
:
2rpx
solid
transparent
;
border-radius
:
100rpx
}
.
gg-chevron-down
:
:
after
{
content
:
""
;
display
:
block
;
box-sizing
:
border-box
;
position
:
absolute
;
width
:
12rpx
;
height
:
12rpx
;
border-bottom
:
2rpx
solid
;
border-right
:
2rpx
solid
;
transform
:
rotate
(
45deg
);
left
:
8rpx
;
top
:
0
;
}
.gg-chevron-up
{
box-sizing
:
border-box
;
position
:
relative
;
display
:
block
;
transform
:
scale
(
var
(
--
ggs
,
1
));
width
:
24rpx
;
height
:
24rpx
;
border
:
2rpx
solid
transparent
;
border-radius
:
100rpx
}
.
gg-chevron-up
:
:
after
{
content
:
""
;
display
:
block
;
box-sizing
:
border-box
;
position
:
absolute
;
width
:
12rpx
;
height
:
12rpx
;
border-top
:
2rpx
solid
;
border-right
:
2rpx
solid
;
transform
:
rotate
(
-45deg
);
left
:
8rpx
;
bottom
:
0
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activeBox/activeBox.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/activeBox/activeBox.wxml-->
<view class="content">
<block wx:for="{{activeList}}" wx:key="index">
<view class="content-item">
<view class="item-bg">
<image webp src="{{IMGURL}}index_active_bg.png?v={{img_version}}" bindload="imageLoaded"></image>
</view>
<view class="item-box" wx:if="{{imageLoaded}}">
<!-- 活动top信息 -->
<activity-top data="{{item}}">
<image webp src="{{IMGURL}}hot-icon.png?v={{img_version}}"></image>
<view class="hot">火爆进行中</view>
</activity-top>
<!-- 活动操作按钮 -->
<view class="active-btn">
<view class="btn">活动战报</view>
<view class="btn">分享活动</view>
<view class="btn primary">查看详情</view>
</view>
<!-- 活动概览 -->
<activity-overview data="{{item}}" activityOverviewList="{{activityOverviewList}}" backStyle="{{backStyle}}" textType="{{1}}"></activity-overview>
<!-- 任务日历 -->
<view class="task-box {{item.isCollapse ? 'hidden' : ''}}">
<view class="box-content">
<activity-calender data="{{item}}" isCollapse="{{item.isCollapse}}"></activity-calender>
</view>
</view>
<!-- 展开/收起 -->
<view class="collapse" bindtap="collapseClick" data-flag="{{item.isCollapse}}" data-key="{{index}}">
<text>{{item.isCollapse ? '展开' : '收起'}}</text><text class="{{item.isCollapse ? 'gg-chevron-down' : 'gg-chevron-up'}}"></text>
</view>
</view>
</view>
</block>
</view>
pages/tab/index/components/activityCalender/activityCalender.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/activityCalender/activityCalender.js
import
{
imgUrlMixin
}
from
'~/mixins/index'
Component
({
/**
* 组件的属性列表
*/
behaviors
:
[
imgUrlMixin
],
properties
:
{
data
:
{
type
:
Object
,
value
:
{},
observer
(
newVal
)
{
let
d
=
new
Date
()
let
nowDate
=
d
.
getFullYear
()
+
"-"
+
(
d
.
getMonth
()
+
1
).
toString
().
padStart
(
2
,
"0"
)
+
"-"
+
d
.
getDate
().
toString
().
padStart
(
2
,
"0"
)
let
item
=
newVal
item
.
newtaskCalenderList
=
this
.
calenderFilter
(
item
.
taskCalenderList
||
[],
7
)
item
.
calenderActiveIndex
=
0
item
.
newtaskCalenderList
.
forEach
((
v
,
index
)
=>
{
v
.
forEach
(
k
=>
{
if
(
nowDate
==
k
.
time
)
item
.
calenderActiveIndex
=
index
})
})
console
.
log
(
item
)
this
.
setData
({
data
:
item
})
}
},
isCollapse
:
{
type
:
Boolean
,
value
:
false
}
},
/**
* 组件的初始数据
*/
data
:
{
taskTypeList
:
[
'share_task_icon'
,
'overview_task_icon'
,
'reward_task_icon'
],
},
/**
* 组件的方法列表
*/
methods
:
{
// 任务日历数据处理
calenderFilter
(
arr
,
length
)
{
var
_arr
=
[]
while
(
arr
.
length
)
{
_arr
.
push
(
arr
.
splice
(
0
,
length
))
}
return
_arr
},
// 任务时间大于7天切换
changeTaskCalender
(
e
)
{
let
data
=
this
.
properties
.
data
if
(
data
)
data
.
calenderActiveIndex
=
e
.
detail
.
current
this
.
setData
({
data
})
}
}
})
pages/tab/index/components/activityCalender/activityCalender.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityCalender/activityCalender.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/activityCalender/activityCalender.wxss */
.title
{
padding-left
:
8rpx
;
font-size
:
32rpx
;
color
:
#1B233D
;
font-weight
:
600
;
text
{
font-size
:
28rpx
;
color
:
#2D2D33
;
font-weight
:
400
;
}
}
.calender-box
{
padding
:
32rpx
0
;
position
:
relative
;
.swiper
{
height
:
112rpx
;
.swiper_item
{
display
:
flex
;
.time-box
{
width
:
100%
;
height
:
100%
;
flex
:
1
;
display
:
flex
;
flex-flow
:
column
;
justify-content
:
center
;
align-items
:
center
;
background
:
#F7F8FA
;
border-radius
:
6px
;
margin
:
0
4rpx
;
image
{
width
:
48rpx
;
height
:
48rpx
;
margin-bottom
:
10rpx
;
}
.task-time
{
font-size
:
18rpx
;
color
:
#1B233D
;
}
}
.completed
{
background-image
:
linear-gradient
(
180deg
,
#FFD84B
28%
,
#FFB33E
76%
);
.task-time
{
color
:
#FFFFFF
;
}
}
}
}
.swiper-dots
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
position
:
absolute
;
width
:
100%
;
bottom
:
24rpx
;
left
:
0
;
.dots
{
width
:
16rpx
;
height
:
6rpx
;
margin
:
0
4rpx
;
border-radius
:
3rpx
;
background
:
#E1E4EB
;
transition
:
all
.5s
;
}
.dots.active
{
width
:
24rpx
;
background-image
:
linear-gradient
(
-60deg
,
#556AF5
0%
,
#7197FF
100%
);
}
}
}
.calender-box.p-b-54
{
padding-bottom
:
54rpx
;
}
.task-show-box
{
.task-item
{
padding
:
24rpx
0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
margin-bottom
:
7rpx
;
border-bottom
:
1px
solid
#F0F1F5
;
.left
{
display
:
flex
;
image
{
width
:
80rpx
;
height
:
80rpx
;
margin-right
:
20rpx
;
flex-shrink
:
0
;
}
.task-message
{
display
:
flex
;
flex-flow
:
column
;
justify-content
:
space-around
;
.task-title
{
font-family
:
PingFangSC-Medium
;
display
:
flex
;
align-items
:
center
;
flex-wrap
:
nowrap
;
font-size
:
28rpx
;
font-weight
:
500
;
color
:
#1B233D
;
image
{
width
:
28rpx
;
height
:
28rpx
;
margin
:
0
;
flex-shrink
:
0
;
}
.integral-num
{
font-family
:
PingFangSC-Medium
;
flex-shrink
:
0
;
font-size
:
24rpx
;
font-weight
:
500
;
color
:
#FE5662
;
}
}
.task-content
{
font-size
:
22rpx
;
color
:
#9299AD
;
}
}
}
.task-btn
{
margin-left
:
32rpx
;
.btn
{
text-align
:
center
;
line-height
:
48rpx
;
width
:
116rpx
;
height
:
48rpx
;
background
:
#FEF1F4
;
border
:
2rpx
solid
rgba
(
254
,
86
,
98
,
0
.40
);
border-radius
:
12rpx
;
font-size
:
24rpx
;
color
:
#FE5662
;
}
.primary
{
border
:
none
;
width
:
120rpx
;
background-image
:
linear-gradient
(
270deg
,
#FF3E7F
0%
,
#FE624B
100%
);
border-radius
:
6px
;
color
:
#FFFFFF
;
}
}
}
.task-item
:last-child
{
border
:
none
;
margin
:
0
;
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityCalender/activityCalender.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/activityCalender/activityCalender.wxml-->
<wxs module="fn">
module.exports = {
split: function(e){
return e.split('-')[1] + '月' + e.split('-')[2] + '日';
}
}
</wxs>
<block wx:if="{{!isCollapse}}">
<view class="title">任务日历<text> · {{data.taskNum}}</text></view>
<view class="calender-box {{data.newtaskCalenderList.length > 1 ? 'p-b-54' : ''}}">
<swiper class="swiper" current="{{data.calenderActiveIndex}}" bindchange="changeTaskCalender" data-index="{{index}}">
<block wx:for="{{data.newtaskCalenderList}}" wx:for-item="val" wx:for-index="k" wx:key="k">
<swiper-item class='swiper_item'>
<block wx:for="{{val}}" wx:for-item="v" wx:for-index="j" wx:key="j">
<view class="time-box {{v.status == 2 ? 'completed' : ''}}">
<image webp src="{{IMGURL}}{{v.status == 2 ? 'task_completed.png' : 'calender_integral_icon.png'}}"></image>
<view class="task-time">{{v.status == 2 ? '已完成' : fn.split(v.time)}}</view>
</view>
</block>
</swiper-item>
</block>
</swiper>
<block wx:if="{{data.newtaskCalenderList.length > 1}}">
<view class="swiper-dots">
<block wx:for="{{data.newtaskCalenderList}}" wx:for-item="value" wx:for-index="inde" wx:key="inde">
<view class="dots {{data.calenderActiveIndex == inde ?'active':''}}"></view>
</block>
</view>
</block>
</view>
<view class="task-show-box">
<block wx:for="{{data.taskList}}" wx:for-item="val" wx:for-index="ky" wx:key="ky">
<view class="task-item">
<view class="left">
<image webp src="{{IMGURL}}{{taskTypeList[val.type - 1]}}.png"></image>
<view class="task-message">
<view class="task-title">
<view class="text">{{val.title}}</view>
<image webp src="{{IMGURL}}integral_icon.png"></image>
<view class="integral-num">+{{val.inteNum}}积分</view>
</view>
<view class="task-content">{{val.content}}</view>
</view>
</view>
<view class="task-btn">
<view class="btn {{val.status == 1 ? 'primary' : ''}}">{{val.status == 1 ? '去完成' : '已完成'}}</view>
</view>
</view>
</block>
</view>
</block>
pages/tab/index/components/activityDiagnosis/activityDiagnosis.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/activityDiagnosis/activityDiagnosis.js
import
{
imgUrlMixin
}
from
'~/mixins/index'
Component
({
/**
* 组件的属性列表
*/
behaviors
:
[
imgUrlMixin
],
properties
:
{
activityList
:
{
type
:
Array
,
value
:
[]
}
},
/**
* 组件的初始数据
*/
data
:
{
activityOverviewList
:
[
'overviewData'
],
backStyle
:
[
'background-image: linear-gradient(180deg, #FFFFFF 72%, #EBF1FF 100%);margin: 0 0 16rpx 0;'
]
},
/**
* 组件的方法列表
*/
methods
:
{
// 图片加载完成
imageLoaded
(
event
)
{
if
(
event
.
detail
.
width
)
{
this
.
setData
({
imageLoaded
:
true
})
}
},
collapseClick
(
e
)
{
let
{
key
,
flag
}
=
e
.
currentTarget
.
dataset
this
.
properties
.
activityList
.
forEach
((
val
,
ind
)
=>
{
if
(
key
==
ind
)
{
val
.
isCollapse
=
!
flag
}
})
this
.
setData
({
activityList
:
this
.
properties
.
activityList
})
}
}
})
pages/tab/index/components/activityDiagnosis/activityDiagnosis.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{
"activity-top"
:
"../activityTop/activityTop"
,
"activity-overview"
:
"../activityOverview/activityOverview"
,
"invert-analyse"
:
"../invertAnalyse/invertAnalyse"
,
"booking-order"
:
"../bookingOrder/bookingOrder"
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityDiagnosis/activityDiagnosis.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxss */
.content
{
padding
:
0
22rpx
2rpx
24rpx
;
.content-item
{
width
:
100%
;
box-sizing
:
border-box
;
position
:
relative
;
display
:
inline-block
;
margin
:
32rpx
0
8rpx
0
;
.item-bg
{
width
:
100%
;
height
:
100%
;
border-radius
:
24rpx
;
overflow
:
hidden
;
position
:
absolute
;
box-shadow
:
0
10rpx
20rpx
0
rgba
(
116
,
132
,
194
,
0
.16
)
,
inset
0
-2rpx
6rpx
0
rgba
(
255
,
255
,
255
,
0
.40
);
z-index
:
-1
;
left
:
0
;
top
:
0
;
right
:
0
;
image
{
object-fit
:
cover
;
background-size
:
100%
auto
;
}
}
.item-box
{
box-sizing
:
border-box
;
padding
:
24rpx
;
width
:
100%
;
height
:
100%
;
.end
{
color
:
#6E6E7A
;
margin-left
:
10rpx
;
}
.active-btn
{
display
:
flex
;
margin
:
24rpx
0
32rpx
0
;
justify-content
:
center
;
.btn
{
color
:
#4466F0
;
flex
:
1
;
height
:
64rpx
;
text-align
:
center
;
line-height
:
64rpx
;
border-radius
:
14rpx
;
background
:
rgba
(
255
,
255
,
255
,
0
.20
);
border
:
2rpx
solid
#4466F0
;
margin-right
:
16rpx
;
}
.btn
:last-child
{
margin-right
:
0
;
}
.primary
{
color
:
#ffffff
;
height
:
68rpx
;
background-image
:
linear-gradient
(
-60deg
,
#556AF5
0%
,
#7197FF
100%
);
border
:
none
;
}
}
.earnings-box
{
width
:
100%
;
height
:
144rpx
;
background-image
:
linear-gradient
(
180deg
,
#99B4FF
16%
,
#6276F5
93%
);
border-radius
:
20rpx
;
display
:
flex
;
padding
:
32rpx
;
box-sizing
:
border-box
;
.left
{
flex
:
0
0
30%
;
display
:
flex
;
flex-flow
:
column
;
justify-content
:
space-between
;
color
:
#FFFFFF
;
font-size
:
28rpx
;
.sort
{
font-size
:
20rpx
;
}
}
.integral-num
{
color
:
#FFEB98
;
font-size
:
68rpx
;
font-weight
:
bold
;
text
{
font-size
:
28rpx
;
font-weight
:
500
;
margin-left
:
12rpx
;
}
}
}
.invert-box
{
padding
:
32rpx
24rpx
;
border-radius
:
24rpx
;
background
:
#ffffff
;
// transition: all 0.1s linear;
will-change
:
height
;
margin-top
:
24rpx
;
.box-content
{
display
:
block
;
padding-bottom
:
40rpx
;
}
}
.hidden
{
height
:
80rpx
;
padding
:
0
;
background
:
transparent
;
transition
:
height
.3
;
.box-content
{
display
:
none
;
}
}
.collapse
{
text-align
:
center
;
color
:
#4466F0
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
font-size
:
26rpx
;
position
:
absolute
;
bottom
:
40rpx
;
left
:
50%
;
transform
:
translateX
(
-50%
);
.btn
{
display
:
flex
;
flex-flow
:
row
;
}
.gg-chevron-down
{
box-sizing
:
border-box
;
position
:
relative
;
display
:
block
;
transform
:
scale
(
var
(
--
ggs
,
1
));
width
:
24rpx
;
height
:
24rpx
;
border
:
2rpx
solid
transparent
;
border-radius
:
100rpx
}
.
gg-chevron-down
:
:
after
{
content
:
""
;
display
:
block
;
box-sizing
:
border-box
;
position
:
absolute
;
width
:
12rpx
;
height
:
12rpx
;
border-bottom
:
2rpx
solid
;
border-right
:
2rpx
solid
;
transform
:
rotate
(
45deg
);
left
:
8rpx
;
top
:
0
;
}
.gg-chevron-up
{
box-sizing
:
border-box
;
position
:
relative
;
display
:
block
;
transform
:
scale
(
var
(
--
ggs
,
1
));
width
:
24rpx
;
height
:
24rpx
;
border
:
2rpx
solid
transparent
;
border-radius
:
100rpx
}
.
gg-chevron-up
:
:
after
{
content
:
""
;
display
:
block
;
box-sizing
:
border-box
;
position
:
absolute
;
width
:
12rpx
;
height
:
12rpx
;
border-top
:
2rpx
solid
;
border-right
:
2rpx
solid
;
transform
:
rotate
(
-45deg
);
left
:
8rpx
;
bottom
:
0
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/activityDiagnosis/activityDiagnosis.wxml-->
<view class="content">
<block wx:for="{{activityList}}" wx:key="index">
<view class="content-item">
<view class="item-bg">
<image webp src="{{IMGURL}}activity_diagnosis_bg.png?v={{img_version}}" bindload="imageLoaded"></image>
</view>
<view class="item-box" wx:if="{{imageLoaded}}">
<!-- 活动top信息 -->
<activity-top data="{{item}}">
<image webp src="{{IMGURL}}activity_end_icon.png?v={{img_version}}"></image>
<view class="end">已结束</view>
</activity-top>
<!-- 活动操作按钮 -->
<view class="active-btn">
<view class="btn">活动战报</view>
<view class="btn primary">查看详情</view>
</view>
<wxs module="fn">
module.exports = {
filterIntegral: function(e) {
return e.toLocaleString('en-US')
}
}
</wxs>
<!-- 活动概览 -->
<activity-overview data="{{item}}" backStyle="{{backStyle}}" textType="{{2}}"></activity-overview>
<!-- 累计收益 -->
<view class="earnings-box">
<view class="left">
<view class="title">累计收益</view>
<view class="sort">最终排名:{{item.earningsSort}}</view>
</view>
<view class="integral-num">{{fn.filterIntegral(item.integralNum)}}<text>积分</text></view>
</view>
<!-- 转化分析 -->
<view class="invert-box {{item.isCollapse ? 'hidden' : ''}}">
<view class="box-content">
<invert-analyse data="{{item}}"></invert-analyse>
<!-- 预约订单 -->
<booking-order data="{{item}}"></booking-order>
</view>
</view>
<!-- 展开/收起 -->
<view class="collapse" bindtap="collapseClick" data-flag="{{item.isCollapse}}" data-key="{{index}}">
<text>{{item.isCollapse ? '展开' : '收起'}}</text><text class="{{item.isCollapse ? 'gg-chevron-down' : 'gg-chevron-up'}}"></text>
</view>
</view>
</view>
</block>
</view>
pages/tab/index/components/activityOverview/activityOverview.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/activityOverview/activityOverview.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
data
:
{
type
:
Object
,
value
:
{}
},
activityOverviewList
:
{
type
:
Array
,
value
:
[]
},
backStyle
:
{
type
:
Array
,
value
:
[]
},
textType
:
{
type
:
Number
,
value
:
0
}
},
/**
* 组件的初始数据
*/
data
:
{
textTypeList
:
[
''
,
'当前排名:'
,
'最终排名:'
]
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/index/components/activityOverview/activityOverview.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityOverview/activityOverview.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/activityOverview/activityOverview.wxss */
.active-overview
{
display
:
flex
;
flex-wrap
:
wrap
;
.overview-item-box
{
flex
:
1
;
display
:
flex
;
height
:
188rpx
;
border-radius
:
8px
;
padding
:
24rpx
12rpx
;
box-sizing
:
border-box
;
min-width
:
calc
((
100%
-
32rpx
)
/
2
);
.all
,
.today
{
flex
:
1
;
display
:
flex
;
flex-flow
:
column
;
align-items
:
center
;
justify-content
:
space-between
;
.title
{
color
:
#6E6E7A
;
font-size
:
24rpx
;
}
.primary-title
{
color
:
#4466F0
;
}
.number
{
color
:
#2D2D33
;
font-size
:
44rpx
;
font-weight
:
600
;
}
.sort
{
font-size
:
20rpx
;
color
:
#2D2D33
;
.up
{
color
:
#EB4E4E
;
}
.down
{
color
:
#2FB87A
;
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityOverview/activityOverview.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/activityOverview/activityOverview.wxml-->
<view>
<wxs module="fn">
module.exports = {
abs: function(num){
return Math.abs(num);
}
}
</wxs>
<view wx:if="{{textType == 1}}" class="active-overview">
<block wx:for="{{activityOverviewList}}" wx:for-item="i" wx:for-index="ind" wx:key="ind">
<view class="overview-item-box" style="{{backStyle[ind]}}">
<view class="all">
<view class="title {{ind > 1 ? 'primary-title': ''}}">{{data.overviewData[i].all.title}}</view>
<view class="number">{{data.overviewData[i].all.num}}</view>
<view wx:if="{{ind != 1}}" class="sort"><text>当前排名:</text>{{data.overviewData[i].all.sort}}</view>
<view wx:else class="sort"><text>排名 </text><text class="{{data.overviewData[i].all.sort > 0 ? 'up' : 'down'}}">{{fn.abs(data.overviewData[i].all.sort)}}{{data.overviewData[i].all.sort > 0 ? ' ⬆ ' : ' ⬇ '}}</text></view>
</view>
<view class="today">
<view class="title">{{data.overviewData[i].today.title}}</view>
<view class="number">{{data.overviewData[i].today.num}}</view>
<view wx:if="{{ind != 1}}" class="sort"><text>当前排名:</text>{{data.overviewData[i].today.sort}}</view>
<view wx:else class="sort"><text>排名 </text><text class="{{data.overviewData[i].today.sort > 0 ? 'up' : 'down'}}">{{fn.abs(data.overviewData[i].today.sort)}}{{data.overviewData[i].today.sort > 0 ? ' ⬆ ' : ' ⬇ '}}</text></view>
</view>
</view>
</block>
</view>
<view wx:else class="active-overview">
<view class="overview-item-box" style="{{backStyle[0]}}">
<view class="all" wx:for="{{data.overviewData}}" wx:for-item="val" wx:for-index="key" wx:key="key">
<view class="title">{{val.title}}</view>
<view class="number">{{val.num}}</view>
<view class="sort"><text>最终排名:</text>{{val.sort}}</view>
</view>
</view>
</view>
</view>
pages/tab/index/components/activityTop/activityTop.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/activityTop/activityTop.js
Component
({
/**
* 组件的属性列表
*/
properties
:
{
data
:
{
type
:
Object
,
value
:
{}
}
},
/**
* 组件的初始数据
*/
data
:
{
activityName
:
[
'众筹'
,
''
]
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/index/components/activityTop/activityTop.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityTop/activityTop.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/activityTop/activityTop.wxss */
.active-top
{
display
:
flex
;
.active-img
{
position
:
relative
;
width
:
160rpx
;
height
:
120rpx
;
margin-right
:
24rpx
;
.thum-icon
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
top
:
0
;
left
:
0
;
}
.active-type
{
position
:
absolute
;
top
:
0
;
left
:
0
;
width
:
72rpx
;
height
:
40rpx
;
background-image
:
linear-gradient
(
90deg
,
#FFF3A2
7%
,
#FFDA85
95%
);
border-radius
:
16rpx
0
24rpx
0
;
color
:
#673F00
;
font-size
:
24rpx
;
text-align
:
center
;
}
}
.active-title
{
flex
:
1
;
display
:
flex
;
flex-flow
:
column
;
justify-content
:
space-between
;
padding
:
8rpx
0
;
.name
{
display
:
flex
;
align-items
:
center
;
.left
{
flex
:
0
0
60%
;
font-weight
:
600
;
font-size
:
36rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
overflow
:
hidden
;
word-break
:
break-all
;
}
.right
{
flex
:
0
0
40%
;
display
:
flex
;
flex-flow
:
1
;
font-size
:
28rpx
;
align-items
:
center
;
image
{
width
:
32rpx
;
height
:
32rpx
;
}
}
}
.time
{
color
:
#7A8299
;
font-size
:
28rpx
;
text
{
color
:
#1B233D
;
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/activityTop/activityTop.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/activityTop/activityTop.wxml-->
<view>
<view class="active-top">
<view class="active-img">
<view class="thum-icon">
<image webp src="{{data.imgUrl}}"></image>
</view>
<view class="active-type">{{activityName[data.type]}}</view>
</view>
<view class="active-title">
<view class="name">
<view class="left">{{data.name}}</view>
<view class="right">
<slot></slot>
</view>
</view>
<view class="time">
<text>{{data.startTime}}</text> 至 <text>{{data.endTime}}</text>
</view>
</view>
</view>
</view>
pages/tab/index/components/bookingOrder/bookingOrder.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/bookingOrder/bookingOrder.js
import
{
imgUrlMixin
}
from
'~/mixins/index'
Component
({
/**
* 组件的属性列表
*/
behaviors
:
[
imgUrlMixin
],
properties
:
{
data
:
{
type
:
Object
,
value
:
{},
observer
(
newVal
)
{
}
}
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
// 打电话
callPhone
(
e
)
{
let
{
mobile
}
=
e
.
currentTarget
.
dataset
wx
.
makePhoneCall
({
phoneNumber
:
mobile
.
toString
()
})
}
}
})
pages/tab/index/components/bookingOrder/bookingOrder.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/bookingOrder/bookingOrder.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/bookingOrder/bookingOrder.wxss */
.title
{
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#1B233D
;
text
{
font-weight
:
400
;
font-size
:
28rpx
;
color
:
#2D2D33
;
}
}
.item-content
{
display
:
flex
;
flex-flow
:
column
;
padding
:
32rpx
0
;
font-size
:
26rpx
;
color
:
#7A8299
;
border-bottom
:
1px
solid
#F0F1F5
;
.top
{
display
:
flex
;
justify-content
:
space-between
;
.top-left
{
display
:
flex
;
image
{
width
:
96rpx
;
height
:
96rpx
;
border-radius
:
50%
;
margin-right
:
20rpx
;
}
.user-message
{
display
:
flex
;
flex-flow
:
column
;
justify-content
:
space-between
;
.name
{
color
:
#1B233D
;
font-size
:
30rpx
;
}
}
}
.btn-img
{
image
{
width
:
64rpx
;
height
:
64rpx
;
border-radius
:
50%
;
}
}
}
.bottom
{
padding
:
10rpx
0
0
116rpx
;
text
{
color
:
#1B233D
;
margin-left
:
16rpx
;
}
}
}
.item-content
:last-child
{
border
:
none
;
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/bookingOrder/bookingOrder.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/bookingOrder/bookingOrder.wxml-->
<view class="title">待预约安装订单<text> · {{data.orderAccount}}</text></view>
<block wx:for="{{data.orderList}}">
<view class="item-content">
<view class="top">
<view class="top-left">
<image webp src="{{item.userImgUrl ? item.userImgUrl : IMGURL+'order_person_default.png'}}"></image>
<view class="user-message">
<view class="name">{{item.userName}}</view>
<view class="mobile">{{item.mobile}}</view>
</view>
</view>
<view class="btn-img">
<image wx:if="{{item.mobile}}" webp src="{{IMGURL}}activity_order_phone_icon.png" bind:tap="callPhone" data-mobile="{{item.mobile}}"></image>
<image wx:if="{{item.wechartNo}}" webp src="{{IMGURL}}activity_order_wechart_icon.png"></image>
</view>
</view>
<view class="bottom">
下单时间
<text>{{item.time}}</text>
</view>
</view>
</block>
pages/tab/index/components/invertAnalyse/invertAnalyse.js
0 → 100644
View file @
5c1dcef
// pages/tab/index/components/invertAnalyse/invertAnalyse.js
import
{
imgUrlMixin
}
from
'~/mixins/index'
Component
({
/**
* 组件的属性列表
*/
behaviors
:
[
imgUrlMixin
],
properties
:
{
data
:
{
type
:
Object
,
value
:
{}
}
},
/**
* 组件的初始数据
*/
data
:
{
},
/**
* 组件的方法列表
*/
methods
:
{
}
})
pages/tab/index/components/invertAnalyse/invertAnalyse.json
0 → 100644
View file @
5c1dcef
{
"component"
:
true
,
"usingComponents"
:
{}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/components/invertAnalyse/invertAnalyse.scss
0 → 100644
View file @
5c1dcef
/* pages/tab/index/components/invertAnalyse/invertAnalyse.wxss */
.title
{
font-weight
:
600
;
font-size
:
32rpx
;
color
:
#1B233D
;
line-height
:
48rpx
;
}
.funnel-box
{
padding
:
40rpx
32rpx
;
position
:
relative
;
.funnel-bg
{
position
:
absolute
;
top
:
40rpx
;
left
:
32rpx
;
width
:
408rpx
;
height
:
336rpx
;
}
.funnel-content
{
display
:
flex
;
height
:
286rpx
;
width
:
100%
;
padding-top
:
50rpx
;
.left
,
.right
{
display
:
flex
;
}
.left
{
flex
:
0
0
408rpx
;
flex-flow
:
column
;
justify-content
:
space-around
;
align-items
:
center
;
z-index
:
1
;
font-size
:
22rpx
;
color
:
#2D2D33
;
view
{
display
:
flex
;
align-items
:
center
;
text
{
font-size
:
28rpx
;
font-weight
:
bold
;
margin-left
:
4rpx
;
}
}
}
.right
{
flex
:
1
;
flex-flow
:
column
;
align-items
:
flex-end
;
margin-left
:
8rpx
;
color
:
#4466F0
;
padding-top
:
20rpx
;
font-size
:
24rpx
;
position
:
relative
;
.sort-box
:last-child
{
position
:
absolute
;
left
:
-36rpx
;
top
:
55%
;
}
.sort
{
font-size
:
48rpx
;
font-weight
:
bold
;
margin-top
:
4rpx
;
}
}
}
}
pages/tab/index/components/invertAnalyse/invertAnalyse.wxml
0 → 100644
View file @
5c1dcef
<!--pages/tab/index/components/invertAnalyse/invertAnalyse.wxml-->
<wxs module="fn">
module.exports = {
formatNumber: function(num){
return num / 1000 >= 1
? (num / 1000).toFixed(1) + "k"
: num;
}
}
</wxs>
<view class="title">转化分析</view>
<view class="funnel-box">
<view class="funnel-bg">
<image webp src="{{IMGURL}}activity_funnel.png"></image>
</view>
<view class="funnel-content">
<view class="left">
<view wx:for="{{data.numList}}" wx:key="index">{{item.title}}<text>{{fn.formatNumber(item.num)}}</text></view>
</view>
<view class="right">
<view class="sort-box" wx:for="{{data.sortList}}" wx:key="index">
<view>{{item.title}}</view>
<view class="sort">{{item.sort}}%</view>
</view>
</view>
</view>
</view>
pages/tab/index/index.js
View file @
5c1dcef
...
@@ -7,6 +7,141 @@ Page({
...
@@ -7,6 +7,141 @@ Page({
*/
*/
data
:
{
data
:
{
navStyle
,
navStyle
,
tab
:
[
{
name
:
'活动中'
,
num
:
1
},
{
name
:
'活动诊断'
,
num
:
2
}
],
tabIndex
:
0
,
activeList
:
[{
name
:
'全景导航国庆优先123'
,
startTime
:
'2022-10-01'
,
endTime
:
'2022-10-07'
,
type
:
0
,
imgUrl
:
'https://img02.glsx.com.cn/weapp/resource/miniprogram-test/glsx/equity/scrm_mini_no_vip.png?v=1.0.0'
,
isCollapse
:
false
,
taskNum
:
5
,
taskCalenderList
:
[
{
time
:
'2022-10-03'
,
status
:
2
},
{
time
:
'2022-10-04'
,
status
:
2
},
{
time
:
'2022-10-05'
,
status
:
1
},
{
time
:
'2022-10-06'
,
status
:
1
},
{
time
:
'2022-10-07'
,
status
:
1
},
{
time
:
'2022-10-08'
,
status
:
1
},
{
time
:
'2022-10-09'
,
status
:
1
},
{
time
:
'2022-10-10'
,
status
:
1
},
{
time
:
'2022-10-11'
,
status
:
1
},
{
time
:
'2022-10-12'
,
status
:
1
},
{
time
:
'2022-10-13'
,
status
:
1
}
],
overviewData
:
{
shareData
:
{
all
:
{
title
:
'总分享'
,
num
:
300
,
sort
:
5000
},
today
:
{
title
:
'今日分享'
,
num
:
52
,
sort
:
6000
}
},
browseData
:
{
all
:
{
title
:
'总浏览'
,
num
:
300
,
sort
:
5
},
today
:
{
title
:
'今日浏览'
,
num
:
52
,
sort
:
-
6
}
},
visitorData
:
{
all
:
{
title
:
'总访客'
,
num
:
300
,
sort
:
5
},
today
:
{
title
:
'今日访客'
,
num
:
52
,
sort
:
6
}
},
orderData
:
{
all
:
{
title
:
'总订单'
,
num
:
300
,
sort
:
5
},
today
:
{
title
:
'今日订单'
,
num
:
52
,
sort
:
6
}
}
},
taskList
:
[
{
title
:
'今日完成首次分享'
,
inteNum
:
10
,
content
:
'指定分享内容在今日完成首次分享'
,
type
:
1
,
status
:
1
},
{
title
:
'今日完成10次分享'
,
inteNum
:
20
,
content
:
'指定分享内容在今日完成10次分享'
,
type
:
1
,
status
:
1
},
{
title
:
'活动浏览量达100'
,
inteNum
:
20
,
content
:
'用户访问个人分享的活动内容后,即获得浏览量'
,
type
:
2
,
status
:
1
},
{
title
:
'首单奖励'
,
inteNum
:
60
,
content
:
'客户通过分享的链接首次完成下单'
,
type
:
3
,
status
:
2
}
]
},{
isCollapse
:
true
}],
activityDiaList
:
[{
name
:
'全景导航国庆优先123'
,
startTime
:
'2022-10-01'
,
endTime
:
'2022-10-07'
,
type
:
0
,
imgUrl
:
'https://img02.glsx.com.cn/weapp/resource/miniprogram-test/glsx/equity/scrm_mini_no_vip.png?v=1.0.0'
,
isCollapse
:
false
,
overviewData
:
[
{
title
:
'分享'
,
num
:
200
,
sort
:
5
},
{
title
:
'浏览'
,
num
:
600
,
sort
:
1
},
{
title
:
'访客'
,
num
:
300
,
sort
:
4
},
{
title
:
'订单'
,
num
:
80
,
sort
:
2
}
],
integralNum
:
565656
,
earningsSort
:
5
,
numList
:
[
{
title
:
'浏览量'
,
num
:
3000
},
{
title
:
'访问量'
,
num
:
2000
},
{
title
:
'订单量'
,
num
:
2000
}
],
sortList
:
[
{
title
:
'访客率'
,
sort
:
50.12
},
{
title
:
'转化率'
,
sort
:
20.23
}
],
orderAccount
:
5
,
orderList
:
[
{
userName
:
'张三'
,
mobile
:
'15656565678'
,
time
:
'2022-09-09'
},
{
userName
:
'张三'
,
userImgUrl
:
'https://img02.glsx.com.cn/weapp/resource/miniprogram-test/glsx/equity/scrm_mini_no_vip.png?v=1.0.0'
,
time
:
'2022-09-09'
},
{
userName
:
'张三'
,
mobile
:
'15656565678'
,
time
:
'2022-09-09'
}
]
},{
isCollapse
:
true
}]
},
onPageScroll
({
scrollTop
})
{
let
opacity
=
scrollTop
/
100
let
color
=
`rgba(255,255,255
${
opacity
>
1
?
1
:
opacity
}
)`
this
.
setData
({
navStyle
:
scrollTop
==
0
?
navStyle
:
`background-color:
${
color
}
;`
})
},
click
(
e
)
{
let
{
index
}
=
e
.
currentTarget
.
dataset
this
.
setData
({
tabIndex
:
index
})
},
},
/**
/**
...
...
pages/tab/index/index.json
View file @
5c1dcef
{
{
"usingComponents"
:
{
"usingComponents"
:
{
"active-box"
:
"./components/activeBox/activeBox"
,
"activity-diagnosis"
:
"./components/activityDiagnosis/activityDiagnosis"
},
},
"navigationStyle"
:
"custom"
,
"navigationStyle"
:
"custom"
,
"onReachBottomDistance"
:
10
,
"onReachBottomDistance"
:
10
,
"backgroundColor"
:
"#FC5B32"
,
"enablePullDownRefresh"
:
true
"enablePullDownRefresh"
:
true
}
}
pages/tab/index/index.scss
View file @
5c1dcef
.navigation-bar
{
position
:
fixed
;
top
:
0
;
left
:
0
;
z-index
:
2
;
.bar-text
{
font-size
:
34rpx
;
font-weight
:
600
;
}
}
.layout
{
position
:
relative
;
.bg-box
{
width
:
100%
;
overflow
:
hidden
;
position
:
absolute
;
left
:
0
;
.bg
{
width
:
100%
;
height
:
100%
;
position
:
absolute
;
z-index
:
-1
;
top
:
0
;
left
:
0
;
}
}
.content
{
position
:
relative
;
.tab-box
{
display
:
flex
;
height
:
112rpx
;
.tab
{
flex
:
1
;
display
:
flex
;
flex-flow
:
column
;
align-items
:
center
;
font-size
:
32rpx
;
font-weight
:
400
;
color
:
#2D2D33
;
opacity
:
0
.9
;
.text
{
margin
:
28rpx
0
;
}
.line
{
transform
:
scale
(
0
);
transition
:
all
.25s
;
}
}
.active
{
font-size
:
36rpx
;
font-weight
:
600
;
.line
{
width
:
48rpx
;
height
:
8rpx
;
background
:
#708CFF
;
border-radius
:
3px
3px
0
0
;
box-shadow
:
0
4rpx
4rpx
0
#708CFF
;
transform
:
scale
(
1
);
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
pages/tab/index/index.wxml
View file @
5c1dcef
<view class="navigation-bar">
<view class="navigation-bar">
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="活动">门店助手</navigation-bar>
<navigation-bar navStyle="{{navStyle}}" bindnavbarReady="navbarReady" page-title="活动">
<view class="bar-text">门店助手</view>
</navigation-bar>
</view>
</view>
<block wx:if="{{navHeight}}">
<view class="layout" style="top:{{navHeight}}px">
<!-- 背景图 -->
<view class="bg-box" style="height:{{368 + navHeight * 2}}rpx;top:-{{navHeight}}px">
<view class="bg">
<image webp src="{{IMGURL}}/index_bg.png?v={{img_version}}"></image>
</view>
</view>
<view class="content">
<!-- tab切换 -->
<view class="tab-box" style="top: {{navHeight}}px">
<block wx:for="{{tab}}" wx:key="index">
<view class="tab {{index == tabIndex? 'active' : '' }}" bindtap="click" data-index="{{index}}">
<view class="text">{{item.name}} ({{item.num}})</view>
<view class="line"></view>
</view>
</block>
</view>
<!-- 活动中 -->
<view class="active-content">
<block wx:if="{{tabIndex == 0}}">
<active-box activeList="{{activeList}}"></active-box>
</block>
</view>
<!-- 活动诊断 -->
<view class="activity-diag-content">
<block wx:if="{{tabIndex == 1}}">
<activity-diagnosis activityList="{{activityDiaList}}"></activity-diagnosis>
</block>
</view>
</view>
</view>
</block>
\ No newline at end of file
\ 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