Commit 305f8095 by 前端

xiugai

1 parent 07262c78
......@@ -196,11 +196,7 @@
<el-form-item
label="页面风格:"
:rules="taskFormRules.textType"
v-show="
itm.showArticle &&
itm.missonType &&
itm.missonType != 1
"
v-show="itm.showArticle"
>
<el-radio-group v-model="itm.textType">
<el-radio :label="1">软文模式</el-radio>
......@@ -210,9 +206,7 @@
<el-form-item
label="文章素材:"
:prop="'missionList.' + index1 + '.textContent'"
v-show="
itm.showArticle && itm.textType && itm.textType == 1
"
v-show="itm.showArticle"
>
<!-- <textBox
@change="writeChange"
......@@ -531,7 +525,7 @@ export default {
validFlag: true,
// 活动图片
activityImage: '',
textId: '',
textIds: [],
// 公共任务类型
basicObj: {
taskid: '',
......@@ -669,8 +663,10 @@ export default {
methods: {
// 初始化富文本
getTextBox(id, dateTaskIndex, taskIndex, textContent) {
if (this.textId == id) return
this.textId = id
// 如果找到了相同的id则直接返回
let textId = this.textIds.findIndex((item) => item == id)
if (textId != -1) return
this.textIds.push(id)
console.log(id, dateTaskIndex, taskIndex)
let editor = new E(this.$refs[id])
console.log(editor)
......@@ -895,7 +891,7 @@ export default {
},
// 任务选择类型切换
selectTaskType(dateTask, dateTaskIndex, task, taskIndex) {
console.log(dateTaskIndex, taskIndex)
console.log(dateTaskIndex, taskIndex, task)
// dateTask -- 具体哪一天的任务对象
// dateTaskIndex -- 具体哪一天的任务对象索引
// task -- 具体哪个任务
......@@ -941,7 +937,7 @@ export default {
}
// 沿用任务名称以及id
taskItem.missonType = task.missonType
taskItem.taskid = task.taskid
taskItem.taskid = task.taskid || task.id
// 任务类型=浏览、访客、成单时,默认添加活动专属链接
if (taskItem.missonType != 1 && taskItem.missonType != 2) {
taskItem.linkStatus = true
......@@ -958,8 +954,8 @@ export default {
var editName = 'missionList' + task.taskid + 'welcome'
this.$refs[editName][0].resetItem()
}
// let textId = `#id${task.taskid}`
this.getTextBox(task.taskid, dateTaskIndex, taskIndex)
let textId = task.taskid || task.id
this.getTextBox(textId, dateTaskIndex, taskIndex)
})
},
// 获取分享素材内容
......@@ -1001,12 +997,14 @@ export default {
'showArticle',
false
)
this.$forceUpdate()
} else {
this.$set(
this.taskList[dateTaskIndex].missionList[taskIndex],
'showArticle',
true
)
this.$forceUpdate()
}
console.log(this.taskList[dateTaskIndex].missionList[taskIndex])
},
......@@ -1243,12 +1241,13 @@ export default {
itm.minTriggerValue = 1
}
// 分享模式处理
if (itm.sharingMethod) {
itm.sharingMethod = itm.sharingMethod.toString()
}
// if (itm.sharingMethod) {
// itm.sharingMethod = itm.sharingMethod.toString()
// }
// 页面风格处理
if (!itm.showArticle) {
itm.textType = 2
itm.textContent = ''
}
// 自定义uuid删除
delete itm.taskid
......@@ -1275,6 +1274,32 @@ export default {
return
}
this.taskFormEmptyValidate()
this.taskList.map((item) => {
item.missionList.map((itm) => {
// 重复次数处理
// if (itm.repeatCount || itm.repeatFlag) {
// itm.repeatCount = itm.repeatCount ? itm.repeatCount : -1
// }
// 最低指标处理
// if (
// itm.rewardType == 1 &&
// itm.rewardCount == 2 &&
// !itm.minTriggerValue
// ) {
// itm.minTriggerValue = 1
// }
// 分享模式处理
if (itm.sharingMethod) {
itm.sharingMethod = itm.sharingMethod.toString()
}
// 页面风格处理
// if (!itm.showArticle) {
// itm.textType = 2
// }
// 自定义uuid删除
// delete itm.taskid
})
})
let params = JSON.parse(JSON.stringify(this.basicForm))
params.startTime = this.startTime
params.endTime = this.endTime
......@@ -1446,7 +1471,7 @@ export default {
left: 0;
height: 64px;
line-height: 64px;
z-index: 999;
z-index: 99999;
}
.el-alert {
margin-top: 10px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!