Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
store-assistant
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6fbee726
authored
Nov 10, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
bug修改
1 parent
223bbf2c
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
4 deletions
pages/tab/index/components/activityCalender/activityCalender.wxml
pages/tab/index/components/taskDetailBox/taskDetailBox.js
utils/emoji.js
pages/tab/index/components/activityCalender/activityCalender.wxml
View file @
6fbee72
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
</view>
</view>
<view class="task-btn">
<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> -->
<!-- <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}}">
<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" />
<van-loading wx:if="{{ky == finishKey && finishFlag}}" size="30rpx" type="spinner" />
<text wx:else>去完成</text>
<text wx:else>去完成</text>
...
...
pages/tab/index/components/taskDetailBox/taskDetailBox.js
View file @
6fbee72
...
@@ -101,13 +101,18 @@ Component({
...
@@ -101,13 +101,18 @@ Component({
wx
.
setClipboardData
({
wx
.
setClipboardData
({
data
:
copyData
,
data
:
copyData
,
success
()
{
success
()
{
wx
.
hideLoading
()
if
(
!
item
.
detailInfo
.
imgUrlList
.
length
)
return
resolve
()
resolve
()
resolve
()
wx
.
showLoading
({
title
:
'图片视频下载中'
,
icon
:
'none'
,
mask
:
true
})
},
},
fail
()
{
fail
()
{
this
.
triggerEvent
(
'myevent'
,
{
flag
:
false
,
index
:
ky
})
this
.
triggerEvent
(
'myevent'
,
{
flag
:
false
,
index
:
ky
})
reject
(
'文案复制失败'
)
reject
(
'文案复制失败'
)
}
}
,
})
})
})
})
},
},
...
...
utils/emoji.js
View file @
6fbee72
...
@@ -42,7 +42,8 @@ export function showEmoji(value) {
...
@@ -42,7 +42,8 @@ export function showEmoji(value) {
let
b
=
a
.
split
(
'\n'
)
let
b
=
a
.
split
(
'\n'
)
let
filterContent
=
''
let
filterContent
=
''
b
&&
b
.
forEach
((
val
,
index
)
=>
{
b
&&
b
.
forEach
((
val
,
index
)
=>
{
let
filterValue
=
val
.
replace
(
/
\[[\u
4E00-
\u
9FA5_A-Z0-9_
]{1,4}\]
/gi
,
(
res
)
=>
{
let
spaceVal
=
val
.
replace
(
/ /g
,
'\xa0'
)
let
filterValue
=
spaceVal
.
replace
(
/
\[[\u
4E00-
\u
9FA5_A-Z0-9_
]{1,4}\]
/gi
,
(
res
)
=>
{
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
);
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
);
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment