Commit 5720d9e5 by 前端

解决页面风格切换为软文,未显示软文问题

1 parent 62147750
...@@ -198,7 +198,10 @@ ...@@ -198,7 +198,10 @@
:rules="taskFormRules.textType" :rules="taskFormRules.textType"
v-show="itm.showArticle" v-show="itm.showArticle"
> >
<el-radio-group v-model="itm.textType"> <el-radio-group
v-model="itm.textType"
@change="textTypeChange(item, index, itm, index1)"
>
<el-radio :label="1">软文模式</el-radio> <el-radio :label="1">软文模式</el-radio>
<el-radio :label="2">营销模式</el-radio> <el-radio :label="2">营销模式</el-radio>
</el-radio-group> </el-radio-group>
...@@ -1087,6 +1090,15 @@ export default { ...@@ -1087,6 +1090,15 @@ export default {
}) })
} }
}, },
// 页面风格切换
textTypeChange(item, index, itm, index1) {
console.log(itm)
console.log(this.textIds)
if (itm.textType == 1) {
let textId = itm.taskid || itm.id
this.getTextBox(textId, index, index1)
}
},
// 获取任务信息详情 // 获取任务信息详情
findMissionDeail(taskId) { findMissionDeail(taskId) {
var params = { id: taskId } var params = { id: taskId }
...@@ -1157,6 +1169,10 @@ export default { ...@@ -1157,6 +1169,10 @@ export default {
itm.showArticle = false itm.showArticle = false
} }
} }
// 处理奖励字段
if (itm.missonType == 1 && !itm.rewardType) {
itm.rewardType = 4
}
}) })
}) })
console.log(this.taskEditList.missionDateList) console.log(this.taskEditList.missionDateList)
...@@ -1262,8 +1278,7 @@ export default { ...@@ -1262,8 +1278,7 @@ export default {
itm.minTriggerValue = 1 itm.minTriggerValue = 1
} }
// 页面风格处理 // 页面风格处理
if (!itm.showArticle) { if (itm.textType == 2) {
itm.textType = 2
itm.textContent = '' itm.textContent = ''
} }
// 自定义uuid删除 // 自定义uuid删除
...@@ -1297,6 +1312,7 @@ export default { ...@@ -1297,6 +1312,7 @@ export default {
if (itm.sharingMethod) { if (itm.sharingMethod) {
itm.sharingMethod = itm.sharingMethod.toString() itm.sharingMethod = itm.sharingMethod.toString()
} }
// 注册任务无奖励时处理
if (itm.missonType == 1 && itm.rewardType == 4) { if (itm.missonType == 1 && itm.rewardType == 4) {
itm.rewardType = '' itm.rewardType = ''
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!