Commit 9ea2927b by 张晓玮

Merge branch 'zhangxw_v3.1.0' into 'v3.1.0'

Zhangxw v3.1.0

See merge request !145
2 parents 806cce6e 6fbee726
......@@ -226,6 +226,9 @@ Page({
wxLogin({
detail
}) {
if (!detail?.code) {
return wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
}
if (!detail.code || this.data.showLoading) return
// this.setShowLoading(true)
wx.showLoading()
......
......@@ -58,7 +58,9 @@ Page({
toRegister({
detail
}) {
if (!detail.code) return
if (!detail?.code) {
return wx.$api.showToast('当前微信版本过低,无法使用该功能,请升级到最新微信版本后重试。')
}
let params = {
detail,
...this.data.linkParams
......
......@@ -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>
......@@ -49,7 +49,7 @@
<view class="btn grey-btn" wx:if="{{val.completeStatus == 1 && val.missonType != 2}}">
<text>未达标</text>
</view>
<view class="btn grey-btn" wx:if="{{val.completeStatus == 2}}">
<view class="btn" wx:if="{{val.completeStatus == 2}}">
<text>已完成</text>
</view>
<view class="btn_title" wx:if="{{val.completeStatus == 2}}">奖励已发放</view>
......
......@@ -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('文案复制失败')
}
},
})
})
},
......@@ -125,6 +130,7 @@ Component({
thisPage.setData({
showAuth: true
})
_this.triggerEvent('myevent', {flag: false, index: ky})
}else{
_this.queue(item.detailInfo.imgUrlList, ky).then(() => {
resolve()
......
......@@ -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!