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 aef1a86c
authored
Oct 17, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
店面产值汇总
1 parent
7be14a56
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
371 additions
and
16 deletions
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
packageOutput/pages/summary/summary.scss
packageOutput/pages/summary/summary.wxml
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.js
View file @
aef1a86
...
@@ -4,14 +4,110 @@ Component({
...
@@ -4,14 +4,110 @@ Component({
* 组件的属性列表
* 组件的属性列表
*/
*/
properties
:
{
properties
:
{
// orderObj: {
// type: Object,
// value: () => { }
// },
},
},
/**
/**
* 组件的初始数据
* 组件的初始数据
*/
*/
data
:
{
data
:
{
orderFormList
:
[{
label
:
'总场次'
,
name
:
'zongcc'
},
{
label
:
'总订单'
,
name
:
'orderNum'
},
{
label
:
'成交金额'
,
name
:
'price'
,
prefix
:
'¥'
}],
merchantFormList
:
[{
label
:
'活动时间'
,
name
:
'time'
},
{
label
:
'订单数'
,
name
:
'orderNum'
},
{
label
:
'产值'
,
name
:
'orderPrice'
,
className
:
'red'
,
prefix
:
'¥'
},
{
label
:
'预估产值'
,
name
:
'ygcz'
,
prefix
:
'¥'
}],
tableHeadList
:
[{
label
:
''
,
width
:
''
,
width
:
'24rpx'
},
{
label
:
'业务员'
,
name
:
'ywy'
,
},
{
label
:
'转发'
,
name
:
'zf'
,
},
{
label
:
'浏览'
,
name
:
'll'
},
{
label
:
'成交'
,
name
:
'cj'
,
width
:
'92rpx'
},
{
label
:
'产值'
,
name
:
'cz'
,
prefix
:
'¥'
}],
// 数据--
orderObj
:
{
zongcc
:
28
,
orderNum
:
198
,
price
:
12000
},
merchantDataList
:
[{
name
:
'嘀加鹏辉奥迪4S店(深圳)'
,
time
:
'09/28 11:19~09/30 12:39'
,
orderNum
:
'100'
,
orderPrice
:
'1280.00'
,
ygcz
:
'2280.00'
,
rankList
:
[{
ywy
:
'隋瑗'
,
zf
:
'4897'
,
ll
:
'927'
,
cj
:
'166'
,
cz
:
'9991280.00'
},
{
ywy
:
'隋瑗'
,
zf
:
'4897'
,
ll
:
'927'
,
cj
:
'166'
,
cz
:
'9991280.00'
},
{
ywy
:
'隋瑗'
,
zf
:
'4897'
,
ll
:
'927'
,
cj
:
'166'
,
cz
:
'9991280.00'
},
{
ywy
:
'隋瑗'
,
zf
:
'4897'
,
ll
:
'927'
,
cj
:
'166'
,
cz
:
'9991280.00'
},
{
ywy
:
'隋瑗'
,
zf
:
'4897'
,
ll
:
'927'
,
cj
:
'166'
,
cz
:
'9991280.00'
}]
}],
},
},
/**
/**
...
...
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.scss
View file @
aef1a86
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
/* packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxss */
.layout
{
.layout
{
width
:
100%
;
margin
:
20rpx
20rpx
;
height
:
200rpx
;
background-color
:
#F2F3F7
;
.box
{
background-color
:
#FFFFFF
;
border-radius
:
8rpx
;
margin-bottom
:
20rpx
;
}
.flex
{
display
:
flex
;
}
.order
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
&
-block
{
width
:
33
.3%
;
text-align
:
center
;
font-weight
:
500
;
font-size
:
26rpx
;
color
:
#393B3E
;
padding
:
20rpx
0
;
}
&
-txt
{
height
:
40rpx
;
line-height
:
40rpx
;
margin-bottom
:
14rpx
;
font-weight
:
600
;
}
&
-label
{
font-size
:
20rpx
;
color
:
#8A8C90
;
}
}
.merchant
{
padding
:
0
32rpx
32rpx
;
.head
{
display
:
flex
;
justify-content
:
space-between
;
align-items
:
center
;
height
:
70rpx
;
line-height
:
70rpx
;
font-size
:
28rpx
;
font-weight
:
600
;
border-bottom
:
1rpx
dashed
#CCCED1
;
margin-bottom
:
16rpx
;
&
-title
{
width
:
70%
;
}
&
-link
{
font-size
:
24rpx
;
color
:
#3666FE
;
line-height
:
32rpx
;
}
}
.content
{
// 表单
&
-row
{
display
:
flex
;
height
:
40rpx
;
line-height
:
40rpx
;
font-size
:
26rpx
;
color
:
#8A8C90
;
margin-bottom
:
16rpx
;
}
&
-label
{
width
:
104rpx
;
flex-shrink
:
0
;
margin-right
:
16rpx
;
}
&
-txt
{
color
:
#323436
;
}
&
-txt
.red
{
color
:
#F35251
;
}
// 排名
&
-rank
{
background
:
#F7F8FC
;
border-radius
:
20rpx
;
margin-top
:
16rpx
;
.rank-head
{
position
:
relative
;
height
:
52rpx
;
line-height
:
52rpx
;
text-align
:
center
;
font-size
:
20rpx
;
color
:
#5A6066
;
margin-bottom
:
20rpx
;
border-bottom
:
1rpx
solid
rgba
(
204
,
206
,
209
,
0
.50
);
.activity-status
{
position
:
absolute
;
top
:
0
;
right
:
22rpx
;
font-size
:
24rpx
;
}
}
.rank-table
{
color
:
#5A6066
;
font-size
:
20rpx
;
.tr
{
display
:
flex
;
height
:
32rpx
;
line-height
:
32rpx
;
padding-bottom
:
16rpx
;
.th
,
.td
{
width
:
calc
((
100%
-
116rpx
)
/
4
);
}
}
}
}
// 建议
&
-suggest
{
margin-top
:
32rpx
;
.suggest-title
{
width
:
116rpx
;
height
:
36rpx
;
line-height
:
36rpx
;
font-weight
:
600
;
font-size
:
20rpx
;
color
:
#3E71FE
;
background
:
rgba
(
62
,
113
,
254
,
0
.12
);
border-radius
:
4rpx
;
}
.suggest-txt
{
font-size
:
24rpx
;
color
:
#323436
;
line-height
:
40rpx
;
margin
:
12rpx
0
16rpx
;
}
.suggest-block
{
line-height
:
40rpx
;
background
:
#FFF9F2
;
border-radius
:
20rpx
;
padding
:
16rpx
;
.suggest-step
{
display
:
flex
;
.step-label
{
width
:
54rpx
;
font-size
:
20rpx
;
color
:
#323436
;
margin-right
:
18rpx
;
}
.step-txt
{
width
:
calc
(
100%
-
72rpx
);
font-size
:
22rpx
;
color
:
#8A8C90
;
}
}
}
}
}
}
}
}
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml
View file @
aef1a86
<!--packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml-->
<!--packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml-->
<view class="layout"></view>
<view class="layout">
<view class="box order">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name]}}
</view>
<view class="order-label">{{item.label}}</view>
</view>
</view>
<view class="box merchant" wx:for="{{merchantDataList}}" wx:key="index">
<view class="head">
<view class="text-hide head-title">{{item.name}}</view>
<view class="head-link" bindtap="handleCopy">复制活动链接</view>
</view>
<view class="content">
<view class="content-row" wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="content-label">{{subItem.label}}</view>
<view class="content-txt {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
{{item[subItem.name]}}
</view>
</view>
<!-- 排名 -->
<view class="content-rank">
<view class="rank-head">
<view>员工转发数据排名</view>
<view class="activity-status">已开始3天</view>
</view>
<view class="rank-table">
<view class="tr">
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">{{subItem.label}}</view>
</view>
<view wx:if="{{item.rankList.length}}">
<block wx:for="{{item.rankList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="tr">
<view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem[i.name]}}
</view>
</view>
</block>
</view>
<view class="tr" wx:else>
<view>暂无数据</view>
</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">距离活动结束剩余8天,分享员工占比低于40%,点击转化率低于5%;推荐以下建议:</view>
<view class="suggest-block">
<view class="suggest-step">
<view class="step-label">建议1</view>
<view class="step-txt">与4S店关键人沟通下注册员工的转发执行情况。</view>
</view>
<view class="suggest-step">
<view class="step-label">建议2</view>
<view class="step-txt">触达车主人数太少,建议与4S店关键人沟通注册员工的转发执行情况。</view>
</view>
</view>
</view>
</view>
</view>
</view>
\ No newline at end of file
\ No newline at end of file
packageOutput/pages/summary/summary.scss
View file @
aef1a86
/* packageOutput/pages/summary/summary.wxss */
/* packageOutput/pages/summary/summary.wxss */
page
{
// page {
background-color
:
#FFFFFF
;
// background-color: #FFFFFF;
}
// background-color: #F2F3F7;
// }
.summary
{
.summary
{
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
}
}
.p-rl-20
{
padding
:
0
20rpx
;
}
.bg-white
{
background-color
:
#FFFFFF
;
}
.bg-grey
{
background-color
:
#F2F3F7
;
}
.layout
{
.layout
{
color
:
#323436
;
color
:
#323436
;
padding
:
12rpx
20rpx
0
;
height
:
100vh
;
// padding: 12rpx 20rpx 0;
// padding-top: 12rpx;
margin-bottom
:
90rpx
;
margin-bottom
:
90rpx
;
.title
{
.title
{
font-size
:
32rpx
;
font-size
:
32rpx
;
font-weight
:
600
;
font-weight
:
600
;
padding
:
12rpx
0
12rpx
2
0rpx
;
padding
:
12rpx
20rpx
12rpx
4
0rpx
;
border-bottom
:
1rpx
dashed
#CCCED1
;
border-bottom
:
1rpx
dashed
#CCCED1
;
}
}
.sence-box
{
.sence-box
{
margin
:
27rpx
0
24rpx
;
padding
:
27rpx
20rpx
24rpx
;
}
}
.activity-box
{
.activity-box
{
...
...
packageOutput/pages/summary/summary.wxml
View file @
aef1a86
<!--packageOutput/pages/summary/summary.wxml-->
<!--packageOutput/pages/summary/summary.wxml-->
<view class="summary">
<view class="summary">
<view class="layout">
<view class="layout
{{ (senceActive == 4 && activityList[activityActive].isOpen) ? 'bg-grey' : 'bg-white'}}
">
<view class="title">选产品/活动</view>
<view class="title
bg-white
">选产品/活动</view>
<view class="sence-box">
<view class="sence-box
bg-white
">
<sence-box formData="{{formData}}" sencePriceList="{{sencePriceList}}" senceActive="{{senceActive}}" bindhandleSenceChange="handleSenceChange"></sence-box>
<sence-box formData="{{formData}}" sencePriceList="{{sencePriceList}}" senceActive="{{senceActive}}" bindhandleSenceChange="handleSenceChange"></sence-box>
</view>
</view>
<!-- 活动 -->
<!-- 活动 -->
<view class="p-rl-20 bg-white">
<scroll-view scroll-x="{{true}}" class="activity-box" scroll-left="{{scrollLeft}}">
<scroll-view scroll-x="{{true}}" class="activity-box" scroll-left="{{scrollLeft}}">
<view class="flex">
<view class="flex">
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.isOpen ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">{{item.name}}</view>
<view class="activity-item {{ activityActive == index ? 'active' : ''}} {{item.isOpen ? 'open' : 'no-open'}}" wx:for="{{activityList}}" wx:key="index" bindtap="handleActChange" data-idx="{{index}}">{{item.name}}</view>
</view>
</view>
</scroll-view>
</scroll-view>
</view>
<!-- 活动内容 -->
<!-- 活动内容 -->
<view class="activity-content">
<view class="activity-content">
<view wx:if="{{activityList[activityActive].isOpen && senceActive != 1}}">
<view wx:if="{{activityList[activityActive].isOpen && senceActive != 1}}">
<view class="activity-title title {{ senceActive == 4 ? 'no-border' : ''}}">
<view class="activity-title title
bg-white
{{ senceActive == 4 ? 'no-border' : ''}}">
<view>看产值</view>
<view>看产值</view>
<view class="select" bindtap="handleSelect">
<view class="select" bindtap="handleSelect">
<text wx:if="{{senceActive == 2 || senceActive == 3}}" class="select-txt">{{baseData.timeList[senceActive == 2 ? searchForm.sence2Idx : searchForm.sence3Idx]}}</text>
<text wx:if="{{senceActive == 2 || senceActive == 3}}" class="select-txt">{{baseData.timeList[senceActive == 2 ? searchForm.sence2Idx : searchForm.sence3Idx]}}</text>
...
@@ -25,7 +27,7 @@
...
@@ -25,7 +27,7 @@
<output-transform wx:if="{{senceActive == 2 || senceActive == 3}}" formData="{{activityList[activityActive]}}"></output-transform>
<output-transform wx:if="{{senceActive == 2 || senceActive == 3}}" formData="{{activityList[activityActive]}}"></output-transform>
<output-crowdfund wx:if="{{senceActive == 4}}"></output-crowdfund>
<output-crowdfund wx:if="{{senceActive == 4}}"></output-crowdfund>
</view>
</view>
<view wx:else class="content-empty">
<view wx:else class="content-empty
bg-white
">
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
<image class="img-empty" src="{{IMGURL}}output/sum-empty.png?v={{img_version}}" />
</view>
</view>
</view>
</view>
...
...
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