Commit 0de20b28 by 前端

Merge branch 'sass+v4.20' into 'master'

合并版本代码

See merge request !107
2 parents 680171db 77e8ae24
<template>
<div>
<div class="taskDetails" v-for="(item, index) in taskDetails" :key="index">
<div class="leftContent">
<div class='taskDetails' v-for='(item, index) in taskDetails' :key='index'>
<div class='leftContent'>
<p>{{ item.missonTypeName }}</p>
<p>{{ item.missionName }}</p>
<p>{{ item.missonDesc }}</p>
<template
v-if="
v-if='
item.platformMerchantMissionMaterialResponseList &&
item.platformMerchantMissionMaterialResponseList.length
"
'
>
<div
v-for="(
v-for='(
sub, idx
) in item.platformMerchantMissionMaterialResponseList"
:key="idx"
) in item.platformMerchantMissionMaterialResponseList'
:key='idx'
>
<template v-if="sub.materialType == '1'">
<p v-html="tramWord(sub.materialContent)"></p>
<p v-html='tramWord(sub.materialContent)'></p>
</template>
<template v-if="sub.materialType == '2'">
<img class="displayImg" :src="sub.materialContent" />
<img class='displayImg' :src='sub.materialContent' />
</template>
<template v-if="sub.materialType == '3'">
<video
class="displayImg"
controls="controls"
:src="sub.materialContent"
class='displayImg'
controls='controls'
:src='sub.materialContent'
/>
</template>
<template v-if="sub.materialType == '4'">
<p class="content">{{ sub.materialContent }}</p>
<p class='content'>{{ sub.materialContent }}</p>
</template>
</div>
</template>
<div class="taskAward">
<div class="showInfoForm">
<span v-if="item.autoReminderFlag"
>自动提醒:{{
<div class='taskAward'>
<div class='showInfoForm'>
<span v-if='item.autoReminderFlag'
>自动提醒:{{
item.autoReminderFlag && item.autoReminderFlag == 1
? '无提醒'
: '自动提醒'
}}</span
>
<span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>提醒时间:{{ item.autoReminderTime }}</span
><span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>企微机器人:{{ item.enterMicroRobotName }}</span
><span v-if="item.autoReminderFlag && item.autoReminderFlag != 1"
>目标群聊:{{ item.groupChatName }}</span
>
<span v-if="item.rewardTypeName"
>奖励模式:{{ item.rewardTypeName }}</span
<span v-if='item.autoReminderFlag && item.autoReminderFlag != 1'
>提醒时间:{{ item.autoReminderTime }}</span
><span v-if='item.autoReminderFlag && item.autoReminderFlag != 1'
>企微机器人:{{ item.enterMicroRobotName }}</span
><span v-if='item.autoReminderFlag && item.autoReminderFlag != 1'
>目标群聊:{{ item.groupChatName }}</span
>
<span v-if='item.rewardTypeName'
>奖励模式:{{ item.rewardTypeName }}</span
>
<span v-if="item.rewardCountName"
>奖励次数:{{ item.rewardCountName }}</span
<span v-if='item.rewardCountName'
>奖励次数:{{ item.rewardCountName }}</span
>
<span v-if="item.rewardCountName == '重复累计'">
重复次数:{{
item.repeatCount == '-1' ? '无限制' : item.repeatCount
}}
</span>
<span v-if="item.sharingMethod"
>分享模式:{{
<span v-if='item.sharingMethod'
>分享模式:{{
item.sharingMethod == '1'
? '微信群发'
: item.sharingMethod == '2'
? '分享好友'
: item.sharingMethod == '3'
? '分享朋友圈'
: ''
? '分享好友'
: item.sharingMethod == '3'
? '分享朋友圈'
: ''
}}</span
>
<span v-if="item.triggerValue"
>触发值:{{ item.triggerValue }}</span
<span v-if='item.triggerValue'
>触发值:{{ item.triggerValue }}</span
>
<span v-if='item.rewardScore'
>奖励积分值:{{ item.rewardScore }}</span
>
<span v-if="item.rewardScore"
>奖励积分值:{{ item.rewardScore }}</span
<span v-if='item.scorePercentage'
>奖励积分值:{{ item.scorePercentage }}%</span
>
<span v-if="item.minTriggerValue"
>最低指标:{{ item.minTriggerValue }}</span
<span v-if='item.minTriggerValue'
>最低指标:{{ item.minTriggerValue }}</span
>
<span v-if="item.textType"
>页面风格:{{
<span v-if='item.textType'
>页面风格:{{
item.textType == '1'
? '软文模式'
: item.textType == '2'
? '营销模式'
: ''
? '营销模式'
: ''
}}</span
>
<span v-if="item.textType == '1'">
文章素材:
<div v-html="tramWord(item.textContent)"></div>
<div v-html='tramWord(item.textContent)'></div>
</span>
</div>
</div>
</div>
<div
v-if="item.missonType != '1'"
class="copyLine"
id="copy"
v-on:click="copy(item.id)"
class='copyLine'
id='copy'
v-on:click='copy(item.id)'
>
复制任务提醒链接
</div>
......@@ -113,13 +116,14 @@
<script>
import { taskManagementApi } from '@/api/taskManagement'
import emoji from '@/utils/emo'
export default {
name: 'TaskDetails',
props: {
taskDetails: {
type: Array,
default: [],
},
default: []
}
},
data() {
return {}
......@@ -128,7 +132,7 @@ export default {
tramWord(val) {
let htm = val.replace(
/\[([\u4E00-\u9FA56]{1,4}|OK|NO|666)]/gi,
function (res) {
function(res) {
let word = res.replace(/\[|\]/gi, '')
const list = emoji.flat(Infinity)
let index = parseInt(list.indexOf(word)) + 1
......@@ -137,7 +141,7 @@ export default {
} else if (index >= 10 && index < 100) {
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
......@@ -158,8 +162,8 @@ export default {
this.$message.error('复制失败!')
}
})
},
},
}
}
}
</script>
......@@ -172,14 +176,17 @@ export default {
padding: 20px;
margin-bottom: 20px;
}
.leftContent {
width: 70%;
}
.content {
height: auto;
word-wrap: break-word;
word-break: break-all;
}
.taskAward {
display: flex;
justify-content: space-between;
......@@ -195,10 +202,12 @@ export default {
padding-bottom: 8px;
width: 50%;
}
.copyLine {
color: #409eff;
cursor: pointer;
}
.displayImg {
width: 500px;
height: 300px;
......
......@@ -102,6 +102,9 @@
<span v-if="displayList.rewardScore"
>奖励积分值:{{ displayList.rewardScore }}</span
>
<span v-if="displayList.scorePercentage"
>奖励积分值:{{ displayList.scorePercentage }}%</span
>
<span v-if="displayList.minTriggerValue"
>最低指标:{{ displayList.minTriggerValue }}</span
>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!