Commit 641aa212 by chenwq

client海报分享,样式

1 parent b109ef70
...@@ -232,13 +232,15 @@ ...@@ -232,13 +232,15 @@
} }
} }
&-name { .rank-row-name {
max-width: 200rpx;
font-size: 24rpx; font-size: 24rpx;
color: #3666FE; color: #3666FE;
margin-right: 12rpx; margin-right: 12rpx;
} }
.name-disabled { .name-disabled {
max-width: 200rpx;
font-size: 24rpx; font-size: 24rpx;
color: #5A6066; color: #5A6066;
margin-right: 12rpx; margin-right: 12rpx;
......
...@@ -54,8 +54,8 @@ ...@@ -54,8 +54,8 @@
</view> </view>
<view class="rank-content"> <view class="rank-content">
<view class="rank-row"> <view class="rank-row">
<text wx:if="{{subItem.goodUrl}}" class="rank-row-name" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}{{}}</text> <text wx:if="{{subItem.goodUrl}}" class="rank-row-name text-hide" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text>
<text wx:else class="name-disabled" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text> <text wx:else class="name-disabled text-hide" bindtap="handleXiReport" data-item="{{subItem}}">{{subItem.shareName}}</text>
<view class="down-tips" wx:if="{{orderObj.staffIdx == index && idx == 0}}"> <view class="down-tips" wx:if="{{orderObj.staffIdx == index && idx == 0}}">
点击员工姓名看喜报 点击员工姓名看喜报
</view> </view>
......
...@@ -117,36 +117,21 @@ Component({ ...@@ -117,36 +117,21 @@ Component({
activityId: this.data.list[idx].activityLastUnSharedInfo.id, activityId: this.data.list[idx].activityLastUnSharedInfo.id,
activityName: this.data.list[idx].activityLastUnSharedInfo.activityName activityName: this.data.list[idx].activityLastUnSharedInfo.activityName
} }
// const { wx.$api.showLoading('加载中...')
// item outputApi
// } = e.currentTarget.dataset, .getPosterUrl({
console.log(item) id: item.activityId
const posterObj = this.selectComponent('#poster')
const { options } = wx.$router.getPageInstance()
console.log(options)
try {
let flag = await posterObj.check(item)
posterObj.setData({
poster: flag,
show: true
}) })
} catch (error) { .then(res => {
wx.$api.showLoading('加载中...') item.posterUrl = res
outputApi this.setData({
.getPosterUrl({ posterItem: item,
id: item.activityId isShowTip: false
}) })
.then(res => { })
item.posterUrl = res .catch(() => {
this.setData({ wx.$api.showToast('下载海报失败')
posterItem: item, })
isShowTip: false
})
})
.catch(() => {
wx.$api.showToast('下载海报失败')
})
}
}, },
/**长按海报 */ /**长按海报 */
async longtouch(e) { async longtouch(e) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!