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 1c6c6811
authored
Nov 09, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
活动汇总样式
1 parent
ccbc5a7b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
132 additions
and
127 deletions
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.js
View file @
1c6c681
...
@@ -68,9 +68,8 @@ Component({
...
@@ -68,9 +68,8 @@ Component({
],
],
tableHeadList
:
[
tableHeadList
:
[
{
{
label
:
''
,
label
:
'rankIdx'
,
width
:
''
,
width
:
'40rpx'
width
:
'28rpx'
},
},
{
{
label
:
'业务员'
,
label
:
'业务员'
,
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.scss
View file @
1c6c681
...
@@ -133,7 +133,7 @@
...
@@ -133,7 +133,7 @@
border-radius
:
20rpx
;
border-radius
:
20rpx
;
margin-top
:
16rpx
;
margin-top
:
16rpx
;
.rank-
head
{
.rank-
title
{
position
:
relative
;
position
:
relative
;
height
:
52rpx
;
height
:
52rpx
;
line-height
:
52rpx
;
line-height
:
52rpx
;
...
@@ -143,12 +143,12 @@
...
@@ -143,12 +143,12 @@
margin-bottom
:
20rpx
;
margin-bottom
:
20rpx
;
border-bottom
:
1rpx
solid
rgba
(
204
,
206
,
209
,
0
.50
);
border-bottom
:
1rpx
solid
rgba
(
204
,
206
,
209
,
0
.50
);
.activity-status
{
//
.activity-status {
position
:
absolute
;
//
position: absolute;
top
:
0
;
//
top: 0;
right
:
22rpx
;
//
right: 22rpx;
font-size
:
24rpx
;
//
font-size: 24rpx;
}
//
}
}
}
.rank-table
{
.rank-table
{
...
@@ -156,23 +156,32 @@
...
@@ -156,23 +156,32 @@
font-size
:
20rpx
;
font-size
:
20rpx
;
padding-left
:
20rpx
;
padding-left
:
20rpx
;
.
tr
{
.
rank
{
display
:
flex
;
display
:
flex
;
height
:
32rpx
;
height
:
64rpx
;
line-height
:
32rpx
;
padding-bottom
:
16rpx
;
padding-bottom
:
16rpx
;
.th
,
&
-num
{
.td
{
width
:
40rpx
;
width
:
calc
((
100%
-
116rpx
)
/
4
);
line-height
:
64rpx
;
}
.icon-rank
{
.rank-head
{
width
:
24rpx
;
width
:
64rpx
;
height
:
24rpx
;
height
:
64rpx
;
vertical-align
:
middle
;
padding-right
:
4rpx
;
}
}
}
// .th,
// .td {
// width: calc((100% - 116rpx) / 4);
// .icon-rank {
// width: 24rpx;
// height: 24rpx;
// vertical-align: middle;
// padding-right: 4rpx;
// }
// }
}
}
.tr-no-data
{
.tr-no-data
{
...
...
packagesList/packageOutput/components/outputCrowdfund/outputCrowdfund.wxml
View file @
1c6c681
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<view class="crowdfund-layout">
<view class="crowdfund-layout">
<view class="box order">
<view class="box order">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-block" wx:for="{{orderFormList}}" wx:key="index">
<view class="order-txt">
<view class="order-txt">
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
<text wx:if="{{item.prefix}}">{{item.prefix}}</text>
{{orderObj[item.name] || 0}}
{{orderObj[item.name] || 0}}
</view>
</view>
<view class="order-label">{{item.label}}</view>
<view class="order-label">{{item.label}}</view>
</view>
</view>
</view>
</view>
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="box merchant" wx:for="{{orderObj.activityList}}" wx:key="index">
<view class="head">
<view class="head">
<!-- text-hide -->
<!-- text-hide -->
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
<view class=" head-title" bindtap="handleJumpH5" data-item="{{item}}">
{{item.activityName}}
{{item.activityName}}
</view>
</view>
<view class="head-link" bindtap="download" data-item="{{item}}">
<view class="head-link" bindtap="download" data-item="{{item}}">
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
<image src="{{IMAGES.download}}" class="downloadIcon" webp></image>
母链海报
母链海报
</view>
</view>
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
<view class="down-tips" wx:if="{{index == 0 && isShowTip}}">下载活动海报分享给门店开展活动</view>
</view>
</view>
<view class="content">
<view class="content">
<view
<view class="content-row" wx:for="{{merchantFormList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
class="content-row"
<view class="content-label">{{subItem.label}}</view>
wx:for="{{merchantFormList}}"
<view class="content-txt {{subItem.className}}">
wx:for-item="subItem"
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
wx:for-index="idx"
{{item[subItem.name]}}
wx:key="idx">
</view>
<view class="content-label">{{subItem.label}}</view>
</view>
<view class="content-txt {{subItem.className}}">
<!-- 排名 -->
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
<view class="content-rank" wx:if="{{item.showStaffList.length}}">
{{item[subItem.name]}}
<view class="rank-title">员工任务排名</view>
</view>
<!-- <view class="rank-head">
</view>
<view>员工任务排名</view>
<!-- 排名 -->
<view class="content-rank">
<view class="rank-head">
<view>员工转发数据排名</view>
<view class="activity-status" wx:if="{{item.activityStatus == 1}}">
<view class="activity-status" wx:if="{{item.activityStatus == 1}}">
距离开始{{item.interDays}}天
距离开始{{item.interDays}}天
</view>
</view>
...
@@ -47,73 +43,74 @@
...
@@ -47,73 +43,74 @@
<view class="activity-status" wx:if="{{item.activityStatus == 3 && item.interDays < 8}}">
<view class="activity-status" wx:if="{{item.activityStatus == 3 && item.interDays < 8}}">
已结束{{item.interDays}}天
已结束{{item.interDays}}天
</view>
</view>
</view>
</view> -->
<view class="rank-table">
<!-- <view class="rank-table">
<view class="tr">
<view class="tr">
<view
<view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
class="th"
{{subItem.label}}
style="width: {{subItem.width || ''}};"
</view>
wx:for="{{tableHeadList}}"
</view>
wx:for-item="subItem"
<view>
wx:for-index="idx"
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
wx:key="idx">
<view class="tr">
{{subItem.label}}
<view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
</view>
<view wx:if="{{j == 0 && idx < 3}}">
</view>
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" />
<view wx:if="{{item.showStaffList.length}}">
</view>
<block
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
wx:for="{{item.showStaffList}}"
{{subItem[i.name]}}
wx:for-item="subItem"
</view>
wx:for-index="idx"
</view>
wx:key="idx">
</block>
<view class="tr">
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
<view
查看更多
class="td text-hide"
</view>
style="width: {{i.width || ''}};"
</view>
wx:for="{{tableHeadList}}"
</view> -->
wx:for-item="i"
<view class="rank-table">
wx:for-index="j"
<block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
wx:key="j">
<view class="rank">
<view wx:if="{{j == 0 && idx < 3}}">
<view class="rank-num">{{idx + 1}}</view>
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" />
<glsx-image class="rank-head" src="output/icon-head.webp"></glsx-image>
</view>
<view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
<view>
{{subItem[i.name]}}
<text>{{subItem.shareName}}</text>
</view>
<text>运营部</text>
</view>
</view>
</block>
<view>
<view
<text>访客</text>
wx:if="{{item.staffList.length}}"
<text>成交</text>
class="btn-more"
</view>
bindtap="handleMore"
</view>
data-idx="{{index}}">
<view>¥{{subItem.totalAmount}}</view>
查看更多
<!-- <view class="td text-hide" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
</view>
<view wx:if="{{j == 0}}">{{idx + 1}}</view>
</view>
<text wx:if="{{i.prefix}}">{{i.prefix}}</text>
<view class="tr-no-data" wx:else>暂无数据</view>
{{subItem[i.name]}}
</view>
</view> -->
</view>
</view>
<!-- 诊断 -->
</block>
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
<view class="suggest-title"># 活动诊断</view>
查看更多
<view class="suggest-txt">
</view>
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
</view>
{{item.suggestTxt}}推荐以下建议:
</view>
</view>
<!-- 诊断 -->
<view class="suggest-block">
<view class="content-suggest" wx:if="{{item.activityStatus == 2 && item.suggestTxtList.length}}">
<view
<view class="suggest-title"># 活动诊断</view>
class="suggest-step"
<view class="suggest-txt">
wx:for="{{item.suggestList}}"
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
wx:for-item="subItem"
{{item.suggestTxt}}推荐以下建议:
wx:for-index="idx"
</view>
wx:key="idx">
<view class="suggest-block">
<view class="step-label">建议{{idx + 1}}</view>
<view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<view class="step-txt">{{subItem}}</view>
<view class="step-label">建议{{idx + 1}}</view>
</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
</view>
<crowdfund-poster item="{{posterItem}}" id="poster" bindlongtouch="longtouch" />
<crowdfund-poster item="{{posterItem}}" id="poster" bindlongtouch="longtouch" />
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