|
|
@@ -88,39 +88,39 @@
|
|
|
|
|
|
<ImageUpload v-if="item.contentType == 2 " v-model="item.imgUrl" type="image" :num="1" :width="150" :height="150" />
|
|
|
|
|
|
- <div v-if="item.contentType == 3 || item.contentType ==9 ">
|
|
|
- <el-card class="box-card">
|
|
|
- <el-form-item label="链接标题:" label-width="100px">
|
|
|
- <el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="链接描述:" label-width="100px" >
|
|
|
- <el-input type="textarea" :rows="3" v-model="item.linkDescribe" placeholder="请输入链接描述" style="width: 90%;margin-top: 1%;"/>
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="链接封面:" label-width="100px">
|
|
|
- <ImageUpload v-model="item.linkImageUrl" type="image" :num="1" :file-size="2" :width="150" :height="150" style="margin-top: 1%;" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="链接地址:" label-width="100px" >
|
|
|
- <el-tag type="warning" v-model="item.isBindUrl=1">选择的课程小节 即为卡片链接地址</el-tag>
|
|
|
- </el-form-item>
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
+ <div v-if="item.contentType == 3 || item.contentType == 9 || item.contentType == 18">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <el-form-item label="链接标题:" label-width="100px">
|
|
|
+ <el-input v-model="item.linkTitle" placeholder="请输入链接标题" style="width: 90%;"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="链接描述:" label-width="100px" >
|
|
|
+ <el-input type="textarea" :rows="3" v-model="item.linkDescribe" placeholder="请输入链接描述" style="width: 90%;margin-top: 1%;"/>
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="链接封面:" label-width="100px">
|
|
|
+ <ImageUpload v-model="item.linkImageUrl" type="image" :num="1" :file-size="2" :width="150" :height="150" style="margin-top: 1%;" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="链接地址:" label-width="100px" >
|
|
|
+ <el-tag type="warning" v-model="item.isBindUrl=1">选择的课程小节 即为卡片链接地址</el-tag>
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
<div v-if="item.contentType == 4 || item.contentType == 10 || item.contentType == 17 || item.contentType == 23">
|
|
|
- <el-card class="box-card">
|
|
|
- <el-form-item label="标题" prop="miniprogramTitle">
|
|
|
- <el-input v-model="item.miniprogramTitle" placeholder="请输入小程序消息标题,最长为64字" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="封面" prop="miniprogramPicUrl">
|
|
|
- <ImageUpload v-model="item.miniprogramPicUrl" type="image" :num="10" :width="150" :height="150" />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="appid" prop="miniprogramAppid" v-show="false" >
|
|
|
- <el-input v-model="item.miniprogramAppid='wx73f85f8d62769119' " disabled />
|
|
|
- </el-form-item>
|
|
|
- <el-form-item label="page路径" prop="miniprogramPage" v-show="item.contentType == 10" label-width="100px" style="margin-left: -30px" >
|
|
|
- <el-input v-model="item.miniprogramPage" placeholder="小程序消息打开后的路径" type="textarea" :rows="3" />
|
|
|
- </el-form-item>
|
|
|
- </el-card>
|
|
|
- </div>
|
|
|
- <div v-if="item.contentType == 5 ">
|
|
|
+ <el-card class="box-card">
|
|
|
+ <el-form-item label="标题" prop="miniprogramTitle">
|
|
|
+ <el-input v-model="item.miniprogramTitle" placeholder="请输入小程序消息标题,最长为64字" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="封面" prop="miniprogramPicUrl">
|
|
|
+ <ImageUpload v-model="item.miniprogramPicUrl" type="image" :num="10" :width="150" :height="150" />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="appid" prop="miniprogramAppid" v-show="false" >
|
|
|
+ <el-input v-model="item.miniprogramAppid='wx73f85f8d62769119' " disabled />
|
|
|
+ </el-form-item>
|
|
|
+ <el-form-item label="page路径" prop="miniprogramPage" v-show="item.contentType == 10" label-width="100px" style="margin-left: -30px" >
|
|
|
+ <el-input v-model="item.miniprogramPage" placeholder="小程序消息打开后的路径" type="textarea" :rows="3" />
|
|
|
+ </el-form-item>
|
|
|
+ </el-card>
|
|
|
+ </div>
|
|
|
+ <div v-if="item.contentType == 5 ">
|
|
|
|
|
|
<el-form-item label="上传文件:" prop="fileUrl" label-width="100px">
|
|
|
<el-upload
|
|
|
@@ -204,7 +204,7 @@
|
|
|
</el-card>
|
|
|
</div>
|
|
|
|
|
|
- <div v-if="item.contentType == 12 || item.contentType == 18 || item.contentType == 19 || item.contentType == 24">
|
|
|
+ <div v-if="item.contentType == 12 || item.contentType == 19 || item.contentType == 24">
|
|
|
<el-card class="box-card">
|
|
|
<el-form-item label="直播间" >
|
|
|
<el-select v-model="item.liveId"
|
|
|
@@ -516,12 +516,12 @@ export default {
|
|
|
for (let i = 0; i < this.setting.length; i++) {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
|
if (selectedCourse && this.msgForm.courseId != null) {
|
|
|
- if ( this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ){
|
|
|
+ if ( this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 ){
|
|
|
this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
|
|
|
- if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
+ if ( this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
|| this.setting[i].contentType == 23){//新增APP 看课 跳转短链回填封面
|
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
}
|
|
|
@@ -544,7 +544,7 @@ export default {
|
|
|
for (let i = 0; i < this.setting.length; i++) {
|
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && this.msgForm.videoId != null) {
|
|
|
- if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ){
|
|
|
+ if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 ){
|
|
|
this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
|
@@ -552,7 +552,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
|| this.setting[i].contentType == 23){//新增APP 看课 跳转短链回填标题
|
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
|
|
|
|
@@ -776,12 +776,12 @@ export default {
|
|
|
//响应式直接给链接的标题/封面上值
|
|
|
if (selectedCourse && this.msgForm.courseId != null) {
|
|
|
|
|
|
- if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9){
|
|
|
+ if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9|| this.setting[i].contentType == 18){
|
|
|
this.$set(this.setting[i], 'linkTitle', selectedCourse.dictLabel);
|
|
|
this.$set(this.setting[i], 'linkImageUrl', selectedCourse.dictImgUrl);
|
|
|
|
|
|
}
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
|| this.setting[i].contentType == 23){
|
|
|
this.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
|
|
|
@@ -801,7 +801,7 @@ export default {
|
|
|
//响应式直接给链接的描述上值
|
|
|
if (selectedVideo && this.msgForm.videoId != null) {
|
|
|
|
|
|
- if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9){
|
|
|
+ if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18){
|
|
|
this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
|
|
|
if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
|
@@ -809,7 +809,7 @@ export default {
|
|
|
}
|
|
|
|
|
|
}
|
|
|
- if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
+ if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 || this.setting[i].contentType == 17
|
|
|
|| this.setting[i].contentType == 23){
|
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
|
|
|
|
@@ -894,16 +894,16 @@ export default {
|
|
|
if (this.setting[i].contentType == 2 && (this.setting[i].imgUrl == null || this.setting[i].imgUrl == "")) {
|
|
|
return this.$message.error("图片不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 ) && (this.setting[i].linkTitle == null || this.setting[i].linkTitle == "")) {
|
|
|
return this.$message.error("链接标题不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 ) && (this.setting[i].linkDescribe == null || this.setting[i].linkDescribe == "")) {
|
|
|
return this.$message.error("链接描述不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 ) && (this.setting[i].linkImageUrl == null || this.setting[i].linkImageUrl == "")) {
|
|
|
return this.$message.error("链接图片不能为空")
|
|
|
}
|
|
|
- if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 )&& this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
|
|
|
+ if ((this.setting[i].contentType == 3 || this.setting[i].contentType == 9 || this.setting[i].contentType == 18 )&& this.setting[i].type == 1 && (this.setting[i].linkUrl == null || this.setting[i].linkUrl == "")) {
|
|
|
return this.$message.error("链接地址不能为空")
|
|
|
}
|
|
|
|