|
@@ -292,7 +292,7 @@
|
|
|
</el-radio>
|
|
</el-radio>
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</div>
|
|
</div>
|
|
|
- <div v-if=" form.sendType == 4">
|
|
|
|
|
|
|
+ <div v-if=" form.sendType == 4 || form.sendType == 17">
|
|
|
<el-radio-group v-model="setList.contentType"
|
|
<el-radio-group v-model="setList.contentType"
|
|
|
:disabled="formType == 3"
|
|
:disabled="formType == 3"
|
|
|
@change="handleContentTypeChange(content,index,contentIndex,setIndex)">
|
|
@change="handleContentTypeChange(content,index,contentIndex,setIndex)">
|
|
@@ -389,7 +389,7 @@
|
|
|
</el-card>
|
|
</el-card>
|
|
|
</div>
|
|
</div>
|
|
|
|
|
|
|
|
- <div v-if="setList.contentType == 4 || setList.contentType == 10">
|
|
|
|
|
|
|
+ <div v-if="setList.contentType == 4 || setList.contentType == 10 || setList.contentType == 17">
|
|
|
<el-card class="box-card">
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="标题" prop="miniprogramTitle">
|
|
<el-form-item label="标题" prop="miniprogramTitle">
|
|
|
<el-input v-model="setList.miniprogramTitle"
|
|
<el-input v-model="setList.miniprogramTitle"
|
|
@@ -1356,11 +1356,11 @@ export default {
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if ((data.content[j].setting[k].contentType == 4 || data.content[j].setting[k].contentType == 10) && (data.content[j].setting[k].miniprogramTitle == null || data.content[j].setting[k].miniprogramTitle == "")) {
|
|
|
|
|
|
|
+ if ((data.content[j].setting[k].contentType == 4 || data.content[j].setting[k].contentType == 10 || data.content[j].setting[k].contentType == 17) && (data.content[j].setting[k].miniprogramTitle == null || data.content[j].setting[k].miniprogramTitle == "")) {
|
|
|
this.$message.error("小程序消息标题不能为空")
|
|
this.$message.error("小程序消息标题不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
|
- if ((data.content[j].setting[k].contentType == 4 || data.content[j].setting[k].contentType == 10) && data.content[j].isOfficial !== '1' && (data.content[j].setting[k].miniprogramPicUrl == null || data.content[j].setting[k].miniprogramPicUrl == "")) {
|
|
|
|
|
|
|
+ if ((data.content[j].setting[k].contentType == 4 || data.content[j].setting[k].contentType == 10 || data.content[j].setting[k].contentType == 17) && data.content[j].isOfficial !== '1' && (data.content[j].setting[k].miniprogramPicUrl == null || data.content[j].setting[k].miniprogramPicUrl == "")) {
|
|
|
this.$message.error("小程序封面地址不能为空")
|
|
this.$message.error("小程序封面地址不能为空")
|
|
|
return false;
|
|
return false;
|
|
|
}
|
|
}
|
|
@@ -1651,7 +1651,7 @@ export default {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
- if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10) {
|
|
|
|
|
|
|
+ if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1796,7 +1796,7 @@ export default {
|
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
this.$set(content.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
- if ((content.setting[i].contentType == 4 || content.setting[i].contentType == 10) && (content.isOfficial == '0' || content.isOfficial == null)) {
|
|
|
|
|
|
|
+ if ((content.setting[i].contentType == 4 || content.setting[i].contentType == 10 || content.setting[i].contentType == 17) && (content.isOfficial == '0' || content.isOfficial == null)) {
|
|
|
this.$set(content.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
this.$set(content.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1821,7 +1821,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
- if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 ) {
|
|
|
|
|
|
|
+ if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'miniprogramTitle', this.truncateTextByByteLength(selectedVideo.dictLabel, 60));
|
|
this.$set(content.setting[i], 'miniprogramTitle', this.truncateTextByByteLength(selectedVideo.dictLabel, 60));
|
|
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
@@ -1866,7 +1866,7 @@ export default {
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10) {
|
|
|
|
|
|
|
+ if (content.setting[i].contentType == 4 || content.setting[i].contentType == 10 || content.setting[i].contentType == 17) {
|
|
|
this.$set(content.setting[i], 'miniprogramTitle', this.truncateTextByByteLength(selectedVideo.dictLabel, 60));
|
|
this.$set(content.setting[i], 'miniprogramTitle', this.truncateTextByByteLength(selectedVideo.dictLabel, 60));
|
|
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|