Commit 0f35ddaa by zhangxw

Merge branch 'zhangxw_v3.1.0' into zhangxw_v3.1.1

2 parents b6570274 6fbee726
......@@ -41,7 +41,7 @@
</view>
<view class="task-btn">
<!-- <view class="btn {{val.completeStatus == 1 ? (val.missonType == 2 ? 'primary' : 'grey-btn') : ''}}" wx:if="{{fn.timeFilter(data.missionList[activeDateIndex].activityTime, 1) || val.completeStatus == 2 || fn.timeFilter(data.startTime, 2)}}"bind:tap="jump" data-item="{{val}}">{{(val.completeStatus == 1 ? (val.missonType != 2 ? '未达标' : '去完成') : '已完成')}}</view> -->
<block wx:if="{{fn.timeFilter(data.missionList[activeDateIndex].activityTime, 1)}}">
<block wx:if="{{fn.timeFilter(data.missionList[activeDateIndex].activityTime, 1) || val.completeStatus == 2}}">
<view class="btn primary" wx:if="{{val.completeStatus == 1 && val.missonType == 2}}" bind:tap="finish" data-item="{{val}}" data-index="{{ky}}">
<van-loading wx:if="{{ky == finishKey && finishFlag}}" size="30rpx" type="spinner" />
<text wx:else>去完成</text>
......
......@@ -101,13 +101,18 @@ Component({
wx.setClipboardData({
data: copyData,
success () {
wx.hideLoading()
if (!item.detailInfo.imgUrlList.length) return resolve()
resolve()
wx.showLoading({
title: '图片视频下载中',
icon: 'none',
mask: true
})
},
fail () {
this.triggerEvent('myevent', {flag: false, index: ky})
reject('文案复制失败')
}
},
})
})
},
......
......@@ -39,9 +39,9 @@
</block>
</scroll-view>
<!-- 申请活动 -->
<view class="add-activity" style="transform: translateX({{tabIndex == 0 ? activeTranslateValue : activityEndTranslateValue}}rpx);transition: all {{tabIndex == 0 ? (activeTranslateValue >= 130 ? 0.3 : 0) : (activityEndTranslateValue >= 130 ? 0.3 : 0)}}s;" bind:tap="applyActivity">
<!-- <view class="add-activity" style="transform: translateX({{tabIndex == 0 ? activeTranslateValue : activityEndTranslateValue}}rpx);transition: all {{tabIndex == 0 ? (activeTranslateValue >= 130 ? 0.3 : 0) : (activityEndTranslateValue >= 130 ? 0.3 : 0)}}s;" bind:tap="applyActivity">
<image webp src="{{IMGURL}}application_activity.png"></image>
</view>
</view> -->
<!-- 预约安装弹窗 -->
<install-popup show="{{showPopup}}" data="{{installItem}}" bind:hidePopup="hidePopup"></install-popup>
<!-- 分享活动弹窗 -->
......
......@@ -42,7 +42,8 @@ export function showEmoji(value) {
let b = a.split('\n')
let filterContent = ''
b && b.forEach((val, index) => {
let filterValue = val.replace(/\[[\u4E00-\u9FA5_A-Z0-9_]{1,4}\]/gi, (res) => {
let spaceVal = val.replace(/ /g, '\xa0')
let filterValue = spaceVal.replace(/\[[\u4E00-\u9FA5_A-Z0-9_]{1,4}\]/gi, (res) => {
const list = emoji.flat(Infinity)
let word = res.replace(/\[|\]/gi,'');
let index = parseInt(list.indexOf(word)) + 1
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!