|
|
@@ -281,6 +281,7 @@ export default {
|
|
|
components: {ImageUpload,userVideo},
|
|
|
data() {
|
|
|
return {
|
|
|
+ projectFrom:process.env.VUE_APP_PROJECT_FROM,
|
|
|
videoNumOptions: {
|
|
|
title: '选择视频号',
|
|
|
open: false,
|
|
|
@@ -449,13 +450,23 @@ export default {
|
|
|
if (selectedVideo && this.msgForm.videoId != null) {
|
|
|
if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9 ){
|
|
|
this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
+
|
|
|
+ if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
|
+ this.$set(this.setting[i], 'linkImageUrl', selectedVideo.dictImgUrl);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10 ){
|
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
|
+
|
|
|
+ if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
|
+ this.$set(this.setting[i], 'miniprogramPicUrl', selectedVideo.dictImgUrl);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
@@ -671,9 +682,11 @@ export default {
|
|
|
if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9){
|
|
|
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.$set(this.setting[i], 'miniprogramPicUrl', selectedCourse.dictImgUrl);
|
|
|
+
|
|
|
}
|
|
|
|
|
|
|
|
|
@@ -692,9 +705,19 @@ export default {
|
|
|
|
|
|
if (this.setting[i].contentType == 3 || this.setting[i].contentType == 9){
|
|
|
this.$set(this.setting[i], 'linkDescribe', selectedVideo.dictLabel);
|
|
|
+
|
|
|
+ if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
|
+ this.$set(this.setting[i], 'linkImageUrl', selectedVideo.dictImgUrl);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
if (this.setting[i].contentType == 4 || this.setting[i].contentType == 10){
|
|
|
this.$set(this.setting[i], 'miniprogramTitle', selectedVideo.dictLabel);
|
|
|
+
|
|
|
+ if (this.projectFrom == 'sxjz' && selectedVideo.dictImgUrl) {
|
|
|
+ this.$set(this.setting[i], 'miniprogramPicUrl', selectedVideo.dictImgUrl);
|
|
|
+ }
|
|
|
+
|
|
|
}
|
|
|
|
|
|
}
|