Commit f5db5411 by chenwq

下载图片tips

1 parent c5f7f21d
...@@ -25,6 +25,7 @@ Component({ ...@@ -25,6 +25,7 @@ Component({
data: { data: {
IMGURL: IMG_URL, IMGURL: IMG_URL,
IMAGES, IMAGES,
isShowTip: true,
orderFormList: [ orderFormList: [
{ {
label: '总场次', label: '总场次',
...@@ -160,7 +161,8 @@ Component({ ...@@ -160,7 +161,8 @@ Component({
outputApi.getPosterUrl({ id: item.activityId }).then(res => { outputApi.getPosterUrl({ id: item.activityId }).then(res => {
item.posterUrl = res item.posterUrl = res
this.setData({ this.setData({
posterItem: item posterItem: item,
isShowTip: false
}) })
}) })
} }
......
...@@ -44,6 +44,7 @@ ...@@ -44,6 +44,7 @@
.head { .head {
box-sizing: border-box; box-sizing: border-box;
position: relative;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
...@@ -68,10 +69,36 @@ ...@@ -68,10 +69,36 @@
} }
.icon-download { .icon-download {
width: 18px; width: 36rpx;
height: 18px; height: 36rpx;
vertical-align: middle; vertical-align: middle;
} }
.down-tips {
position: absolute;
right: -40rpx;
top: -50rpx;
height: 52rpx;
line-height: 52rpx;
font-size: 20rpx;
color: #FFFFFF;
background: rgba(0, 0, 0, 0.60);
padding: 0 16rpx;
border-radius: 12rpx;
font-weight: 500;
&::after {
display: inline-block;
content: '';
position: absolute;
bottom: -28rpx;
right: 40rpx;
width: 0;
height: 0;
border: 18rpx solid;
border-color: #686868 transparent transparent;
}
}
} }
.content { .content {
......
<!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml --> <!-- packageOutput/pages/summary/components/outputCrowdfund/outputCrowdfund.wxml -->
<view class="layout"> <view class="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">{{item.activityName}}</view> <view class=" head-title">{{item.activityName}}</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="head-link" bindtap="handleCopy" data-idx="{{index}}">复制活动链接</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">
{{item[subItem.name]}} <view class="rank-head">
</view> <view>员工转发数据排名</view>
</view> <view class="activity-status" wx:if="{{item.actStatus == 0}}">
<!-- 排名 --> 距离开始{{item.interDays}}天
<view class="content-rank"> </view>
<view class="rank-head"> <view class="activity-status" wx:if="{{item.actStatus == 1}}">
<view>员工转发数据排名</view> 已开始{{item.interDays}}天
<view class="activity-status" wx:if="{{item.actStatus == 0}}"> </view>
距离开始{{item.interDays}}天 <view class="activity-status" wx:if="{{item.actStatus == 2 && item.interDays < 8}}">
</view> 已结束{{item.interDays}}天
<view class="activity-status" wx:if="{{item.actStatus == 1}}"> </view>
已开始{{item.interDays}}天 </view>
</view> <view class="rank-table">
<view class="activity-status" wx:if="{{item.actStatus == 2 && item.interDays < 8}}"> <view class="tr">
已结束{{item.interDays}}天 <view class="th" style="width: {{subItem.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
</view> {{subItem.label}}
</view> </view>
<view class="rank-table"> </view>
<view class="tr"> <view wx:if="{{item.showStaffList.length}}">
<view <block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
class="th" <view class="tr">
style="width: {{subItem.width || ''}};" <view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
wx:for="{{tableHeadList}}" <view wx:if="{{j == 0}}">
wx:for-item="subItem" <image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" />
wx:for-index="idx" </view>
wx:key="idx"> <text wx:if="{{i.prefix}}">{{i.prefix}}</text>
{{subItem.label}} {{subItem[i.name]}}
</view> </view>
</view> </view>
<view wx:if="{{item.showStaffList.length}}"> </block>
<block <view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
wx:for="{{item.showStaffList}}" 查看更多
wx:for-item="subItem" </view>
wx:for-index="idx" </view>
wx:key="idx"> <view class="tr-no-data" wx:else>暂无数据</view>
<view class="tr"> </view>
<view </view>
class="td" <!-- 诊断 -->
style="width: {{i.width || ''}};" <view class="content-suggest" wx:if="{{item.actStatus == 1 && item.suggestTxtList.length}}">
wx:for="{{tableHeadList}}" <view class="suggest-title"># 活动诊断</view>
wx:for-item="i" <view class="suggest-txt">
wx:for-index="j" <!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
wx:key="j"> {{item.suggestTxt}}
<view wx:if="{{j == 0}}"> </view>
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" /> <view class="suggest-block">
</view> <view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
<text wx:if="{{i.prefix}}">{{i.prefix}}</text> <view class="step-label">建议{{idx + 1}}</view>
{{subItem[i.name]}} <view class="step-txt">{{subItem}}</view>
</view> </view>
</view> </view>
</block> </view>
<view </view>
wx:if="{{item.staffList.length}}" </view>
class="btn-more"
bindtap="handleMore"
data-idx="{{index}}">
查看更多
</view>
</view>
<view class="tr-no-data" wx:else>暂无数据</view>
</view>
</view>
<!-- 诊断 -->
<view class="content-suggest" wx:if="{{item.actStatus == 1 && item.suggestTxtList.length}}">
<view class="suggest-title"># 活动诊断</view>
<view class="suggest-txt">
<!-- <text wx:if="{{item.toEndDays < 8}}">距离活动结束剩余{{item.interDays}}天,</text> -->
{{item.suggestTxt}}
</view>
<view class="suggest-block">
<view
class="suggest-step"
wx:for="{{item.suggestList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="step-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view>
</view>
</view>
</view>
</view>
</view>
</view> </view>
<crowdfund-poster item="{{posterItem}}" /> <crowdfund-poster item="{{posterItem}}" />
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!