Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
glsx-oss-task
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 80f54ce0
authored
Apr 18, 2023
by
前端
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
更新4.20代码
1 parent
d8abc287
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
66 additions
and
54 deletions
src/views/task/addTask/index.vue
src/views/task/analyseTask/cpns/TaskDetails.vue
src/views/task/observeTask/cpns/taskPlan.vue
src/views/task/addTask/index.vue
View file @
80f54ce
This diff is collapsed.
Click to expand it.
src/views/task/analyseTask/cpns/TaskDetails.vue
View file @
80f54ce
<
template
>
<
template
>
<div>
<div>
<div
class=
"taskDetails"
v-for=
"(item, index) in taskDetails"
:key=
"index"
>
<div
class=
'taskDetails'
v-for=
'(item, index) in taskDetails'
:key=
'index'
>
<div
class=
"leftContent"
>
<div
class=
'leftContent'
>
<p>
{{
item
.
missonTypeName
}}
</p>
<p>
{{
item
.
missonTypeName
}}
</p>
<p>
{{
item
.
missionName
}}
</p>
<p>
{{
item
.
missionName
}}
</p>
<p>
{{
item
.
missonDesc
}}
</p>
<p>
{{
item
.
missonDesc
}}
</p>
<template
<template
v-if=
"
v-if=
'
item.platformMerchantMissionMaterialResponseList &&
item.platformMerchantMissionMaterialResponseList &&
item.platformMerchantMissionMaterialResponseList.length
item.platformMerchantMissionMaterialResponseList.length
"
'
>
>
<div
<div
v-for=
"
(
v-for=
'
(
sub, idx
sub, idx
) in item.platformMerchantMissionMaterialResponseList
"
) in item.platformMerchantMissionMaterialResponseList
'
:key=
"idx"
:key=
'idx'
>
>
<template
v-if=
"sub.materialType == '1'"
>
<template
v-if=
"sub.materialType == '1'"
>
<p
v-html=
"tramWord(sub.materialContent)"
></p>
<p
v-html=
'tramWord(sub.materialContent)'
></p>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '2'"
>
<
template
v-if=
"sub.materialType == '2'"
>
<img
class=
"displayImg"
:src=
"sub.materialContent"
/>
<img
class=
'displayImg'
:src=
'sub.materialContent'
/>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '3'"
>
<
template
v-if=
"sub.materialType == '3'"
>
<video
<video
class=
"displayImg"
class=
'displayImg'
controls=
"controls"
controls=
'controls'
:src=
"sub.materialContent"
:src=
'sub.materialContent'
/>
/>
</
template
>
</
template
>
<
template
v-if=
"sub.materialType == '4'"
>
<
template
v-if=
"sub.materialType == '4'"
>
<p
class=
"content"
>
{{
sub
.
materialContent
}}
</p>
<p
class=
'content'
>
{{
sub
.
materialContent
}}
</p>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
<div
class=
"taskAward"
>
<div
class=
'taskAward'
>
<div
class=
"showInfoForm"
>
<div
class=
'showInfoForm'
>
<span
v-if=
"item.autoReminderFlag"
<span
v-if=
'item.autoReminderFlag'
>
自动提醒:{{
>
自动提醒:{{
item.autoReminderFlag
&&
item.autoReminderFlag == 1
item.autoReminderFlag
&&
item.autoReminderFlag == 1
? '无提醒'
? '无提醒'
: '自动提醒'
: '自动提醒'
}}
</span
}}
</span
>
>
<span
v-if=
"item.autoReminderFlag && item.autoReminderFlag != 1"
<span
v-if=
'item.autoReminderFlag && item.autoReminderFlag != 1'
>
提醒时间:{{ item.autoReminderTime }}
</span
>
提醒时间:{{ item.autoReminderTime }}
</span
><span
v-if=
"item.autoReminderFlag && item.autoReminderFlag != 1"
><span
v-if=
'item.autoReminderFlag && item.autoReminderFlag != 1'
>
企微机器人:{{ item.enterMicroRobotName }}
</span
>
企微机器人:{{ item.enterMicroRobotName }}
</span
><span
v-if=
"item.autoReminderFlag && item.autoReminderFlag != 1"
><span
v-if=
'item.autoReminderFlag && item.autoReminderFlag != 1'
>
目标群聊:{{ item.groupChatName }}
</span
>
目标群聊:{{ item.groupChatName }}
</span
>
>
<span
v-if=
"item.rewardTypeName"
<span
v-if=
'item.rewardTypeName'
>
奖励模式:{{ item.rewardTypeName }}
</span
>
奖励模式:{{ item.rewardTypeName }}
</span
>
>
<span
v-if=
"item.rewardCountName"
<span
v-if=
'item.rewardCountName'
>
奖励次数:{{ item.rewardCountName }}
</span
>
奖励次数:{{ item.rewardCountName }}
</span
>
>
<span
v-if=
"item.rewardCountName == '重复累计'"
>
<span
v-if=
"item.rewardCountName == '重复累计'"
>
重复次数:{{
重复次数:{{
item.repeatCount == '-1' ? '无限制' : item.repeatCount
item.repeatCount == '-1' ? '无限制' : item.repeatCount
}}
}}
</span>
</span>
<span
v-if=
"item.sharingMethod"
<span
v-if=
'item.sharingMethod'
>
分享模式:{{
>
分享模式:{{
item.sharingMethod == '1'
item.sharingMethod == '1'
? '微信群发'
? '微信群发'
: item.sharingMethod == '2'
: item.sharingMethod == '2'
? '分享好友'
? '分享好友'
: item.sharingMethod == '3'
: item.sharingMethod == '3'
? '分享朋友圈'
? '分享朋友圈'
: ''
: ''
}}
</span
}}
</span
>
>
<span
v-if=
"item.triggerValue"
<span
v-if=
'item.triggerValue'
>
触发值:{{ item.triggerValue }}
</span
>
触发值:{{ item.triggerValue }}
</span
>
<span
v-if=
'item.rewardScore'
>
奖励积分值:{{ item.rewardScore }}
</span
>
>
<span
v-if=
"item.rewardScore"
<span
v-if=
'item.scorePercentage'
>
奖励积分值:{{ item.rewardScore }}
</span
>
奖励积分值:{{ item.scorePercentage }}%
</span
>
>
<span
v-if=
"item.minTriggerValue"
<span
v-if=
'item.minTriggerValue'
>
最低指标:{{ item.minTriggerValue }}
</span
>
最低指标:{{ item.minTriggerValue }}
</span
>
>
<span
v-if=
"item.textType"
<span
v-if=
'item.textType'
>
页面风格:{{
>
页面风格:{{
item.textType == '1'
item.textType == '1'
? '软文模式'
? '软文模式'
: item.textType == '2'
: item.textType == '2'
? '营销模式'
? '营销模式'
: ''
: ''
}}
</span
}}
</span
>
>
<span
v-if=
"item.textType == '1'"
>
<span
v-if=
"item.textType == '1'"
>
文章素材:
文章素材:
<div
v-html=
"tramWord(item.textContent)"
></div>
<div
v-html=
'tramWord(item.textContent)'
></div>
</span>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
<div
<div
v-if=
"item.missonType != '1'"
v-if=
"item.missonType != '1'"
class=
"copyLine"
class=
'copyLine'
id=
"copy"
id=
'copy'
v-on:click=
"copy(item.id)"
v-on:click=
'copy(item.id)'
>
>
复制任务提醒链接
复制任务提醒链接
</div>
</div>
...
@@ -113,13 +116,14 @@
...
@@ -113,13 +116,14 @@
<
script
>
<
script
>
import
{
taskManagementApi
}
from
'@/api/taskManagement'
import
{
taskManagementApi
}
from
'@/api/taskManagement'
import
emoji
from
'@/utils/emo'
import
emoji
from
'@/utils/emo'
export
default
{
export
default
{
name
:
'TaskDetails'
,
name
:
'TaskDetails'
,
props
:
{
props
:
{
taskDetails
:
{
taskDetails
:
{
type
:
Array
,
type
:
Array
,
default
:
[]
,
default
:
[]
}
,
}
},
},
data
()
{
data
()
{
return
{}
return
{}
...
@@ -128,7 +132,7 @@ export default {
...
@@ -128,7 +132,7 @@ export default {
tramWord
(
val
)
{
tramWord
(
val
)
{
let
htm
=
val
.
replace
(
let
htm
=
val
.
replace
(
/
\[([\u
4E00-
\u
9FA56
]{1,4}
|OK|NO|666
)
]/gi
,
/
\[([\u
4E00-
\u
9FA56
]{1,4}
|OK|NO|666
)
]/gi
,
function
(
res
)
{
function
(
res
)
{
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
let
word
=
res
.
replace
(
/
\[
|
\]
/gi
,
''
)
const
list
=
emoji
.
flat
(
Infinity
)
const
list
=
emoji
.
flat
(
Infinity
)
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
let
index
=
parseInt
(
list
.
indexOf
(
word
))
+
1
...
@@ -137,7 +141,7 @@ export default {
...
@@ -137,7 +141,7 @@ export default {
}
else
if
(
index
>=
10
&&
index
<
100
)
{
}
else
if
(
index
>=
10
&&
index
<
100
)
{
index
=
'0'
+
index
index
=
'0'
+
index
}
}
return
`<img style='width:25px;height:25px' src=
"https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png"
>`
return
`<img style='width:25px;height:25px' src=
'https://img01.glsx.com.cn/weapp/resource/saas/scrm/emoji/
${
index
}
.png'
>`
}
}
)
)
return
htm
return
htm
...
@@ -158,8 +162,8 @@ export default {
...
@@ -158,8 +162,8 @@ export default {
this
.
$message
.
error
(
'复制失败!'
)
this
.
$message
.
error
(
'复制失败!'
)
}
}
})
})
}
,
}
}
,
}
}
}
</
script
>
</
script
>
...
@@ -172,14 +176,17 @@ export default {
...
@@ -172,14 +176,17 @@ export default {
padding
:
20px
;
padding
:
20px
;
margin-bottom
:
20px
;
margin-bottom
:
20px
;
}
}
.leftContent
{
.leftContent
{
width
:
70%
;
width
:
70%
;
}
}
.content
{
.content
{
height
:
auto
;
height
:
auto
;
word-wrap
:
break-word
;
word-wrap
:
break-word
;
word-break
:
break-all
;
word-break
:
break-all
;
}
}
.taskAward
{
.taskAward
{
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
...
@@ -195,10 +202,12 @@ export default {
...
@@ -195,10 +202,12 @@ export default {
padding-bottom
:
8px
;
padding-bottom
:
8px
;
width
:
50%
;
width
:
50%
;
}
}
.copyLine
{
.copyLine
{
color
:
#409eff
;
color
:
#409eff
;
cursor
:
pointer
;
cursor
:
pointer
;
}
}
.displayImg
{
.displayImg
{
width
:
500px
;
width
:
500px
;
height
:
300px
;
height
:
300px
;
...
...
src/views/task/observeTask/cpns/taskPlan.vue
View file @
80f54ce
...
@@ -102,6 +102,9 @@
...
@@ -102,6 +102,9 @@
<span
v-if=
"displayList.rewardScore"
<span
v-if=
"displayList.rewardScore"
>
奖励积分值:{{ displayList.rewardScore }}
</span
>
奖励积分值:{{ displayList.rewardScore }}
</span
>
>
<span
v-if=
"displayList.scorePercentage"
>
奖励积分值:{{ displayList.scorePercentage }}%
</span
>
<span
v-if=
"displayList.minTriggerValue"
<span
v-if=
"displayList.minTriggerValue"
>
最低指标:{{ displayList.minTriggerValue }}
</span
>
最低指标:{{ displayList.minTriggerValue }}
</span
>
>
...
...
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