Commit a3795bf1 authored by Mac's avatar Mac

1

parent 8311a477
......@@ -205,7 +205,7 @@
Isadd: true,
addMsg: {
Id: 0,
MediaGroupId: 1, // 分组ID
MediaGroupId: '', // 分组ID
MediaName: '', //标题/名称
Description: '', //视频介绍
Type: this.type, //1图片 2 音频 3视频
......@@ -220,7 +220,7 @@
timevalue: 0, //音频播放到时间点
playRec: null,
imgPath: '',
importFileUrl2: this.domainManager().UploadFileUrl2,
importFileUrl2: '',
getImgChoice: false,
ismodify:false,//是否修改
}
......@@ -233,6 +233,8 @@
this.imgPath = this.addMsg.ImageUrl;
}
}
let address = process.env.API;
this.importFileUrl2 = address+'/upload/UploadTemporaryFile'
},
mounted() {
this.getPlatForm();
......@@ -269,7 +271,9 @@
},
successUpload(file) {
if (file.Code == 1) {
this.imgPath = this.domainManager().DomainUrl + file.Data.HttpPath;
let address = process.env.API;
let aOne = address.split('/api')[0];
this.imgPath =aOne + file.Data.HttpPath;
this.addMsg.Path = file.Data.Path;
this.addMsg.MediaName = file.Data.Name;
}
......
......@@ -300,7 +300,7 @@
isManage: false,//是否是管理端
IsPreview: 0,//1预览 2群发 0 只保存投稿 不发送
TagId: '',//预览 =》 微信号(必传); 群发 =》 标签ID
PlatformId: '',//发布的平台
PlatformId: 1,//发布的平台
IsShowCover: '0',//是否显示封面,1为显示,0为不显示 (图文)
SourceUrl: '',// 原文地址 (图文)
IsOpenComment: '0',//是否打开评论,0不打开,1打开(图文 + 图片)
......
......@@ -209,7 +209,7 @@
platTypeList: [],//平台列表
publishMsg: {
ContributeId: 0,
PlatformId: '',
PlatformId: 1,
IsPreview: 0,
TagId: ''
},
......@@ -290,8 +290,8 @@
release(row) {//发布
this.publishMsg.ContributeId = row.Id;
this.publishMsg.PlatformId = '';
this.publishMsg.IsPreview = '0';
this.publishMsg.PlatformId = 1;//默认为微信公众号
this.publishMsg.IsPreview = '1';
this.publishMsg.TagId = '';
this.releasedialog = true
},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment