Commit 641aa212 by chenwq

client海报分享,样式

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