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 {
......
...@@ -17,15 +17,10 @@ ...@@ -17,15 +17,10 @@
<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"
wx:for="{{merchantFormList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="content-label">{{subItem.label}}</view> <view class="content-label">{{subItem.label}}</view>
<view class="content-txt {{subItem.className}}"> <view class="content-txt {{subItem.className}}">
<text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text> <text wx:if="{{subItem.prefix}}">{{subItem.prefix}}</text>
...@@ -48,30 +43,14 @@ ...@@ -48,30 +43,14 @@
</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"
style="width: {{subItem.width || ''}};"
wx:for="{{tableHeadList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
{{subItem.label}} {{subItem.label}}
</view> </view>
</view> </view>
<view wx:if="{{item.showStaffList.length}}"> <view wx:if="{{item.showStaffList.length}}">
<block <block wx:for="{{item.showStaffList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
wx:for="{{item.showStaffList}}"
wx:for-item="subItem"
wx:for-index="idx"
wx:key="idx">
<view class="tr"> <view class="tr">
<view <view class="td" style="width: {{i.width || ''}};" wx:for="{{tableHeadList}}" wx:for-item="i" wx:for-index="j" wx:key="j">
class="td"
style="width: {{i.width || ''}};"
wx:for="{{tableHeadList}}"
wx:for-item="i"
wx:for-index="j"
wx:key="j">
<view wx:if="{{j == 0}}"> <view wx:if="{{j == 0}}">
<image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" /> <image class="icon-rank" src="{{IMGURL}}output/rank0{{idx + 1}}.png?v={{img_version}}" />
</view> </view>
...@@ -80,11 +59,7 @@ ...@@ -80,11 +59,7 @@
</view> </view>
</view> </view>
</block> </block>
<view <view wx:if="{{item.staffList.length}}" class="btn-more" bindtap="handleMore" data-idx="{{index}}">
wx:if="{{item.staffList.length}}"
class="btn-more"
bindtap="handleMore"
data-idx="{{index}}">
查看更多 查看更多
</view> </view>
</view> </view>
...@@ -99,12 +74,7 @@ ...@@ -99,12 +74,7 @@
{{item.suggestTxt}} {{item.suggestTxt}}
</view> </view>
<view class="suggest-block"> <view class="suggest-block">
<view <view class="suggest-step" wx:for="{{item.suggestList}}" wx:for-item="subItem" wx:for-index="idx" wx:key="idx">
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-label">建议{{idx + 1}}</view>
<view class="step-txt">{{subItem}}</view> <view class="step-txt">{{subItem}}</view>
</view> </view>
...@@ -114,4 +84,3 @@ ...@@ -114,4 +84,3 @@
</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!