|
|
@ -50,6 +50,7 @@ |
|
|
|
:action="uploadUlr" |
|
|
|
list-type="picture-card" |
|
|
|
:on-exceed="exceedPic" |
|
|
|
:before-upload="beforeAvatarUpload" |
|
|
|
:on-remove="removePic" |
|
|
|
:file-list="replayImgList" |
|
|
|
:on-change="handleEditChange" |
|
|
@ -104,7 +105,7 @@ |
|
|
|
label-width="150px" |
|
|
|
style="display: block"> |
|
|
|
<el-input class="item_width_6" |
|
|
|
maxlength="10" |
|
|
|
maxlength="20" |
|
|
|
placeholder="请输入联系人" |
|
|
|
v-model="formData.sponsorContacts"> |
|
|
|
</el-input> |
|
|
@ -117,7 +118,7 @@ |
|
|
|
label-width="150px" |
|
|
|
style="display: block"> |
|
|
|
<el-input class="item_width_6" |
|
|
|
maxlength="10" |
|
|
|
maxlength="20" |
|
|
|
placeholder="请输入联系电话" |
|
|
|
v-model="formData.sponsorTel"> |
|
|
|
</el-input> |
|
|
@ -459,7 +460,6 @@ export default { |
|
|
|
}, |
|
|
|
|
|
|
|
//图片相关 oss/file/uploadvariedfile |
|
|
|
dialogImageUrl: 'oss/file/uploadvariedfile', |
|
|
|
uploadUlr: window.SITE_CONFIG['apiURL'] + '/oss/file/uploadvariedfile', |
|
|
|
// upload_url: '', // 上传URL |
|
|
|
upload_name: '', // 图片或视频名称 |
|
|
@ -705,6 +705,16 @@ export default { |
|
|
|
this.$message.warning("只能上传1张封面图") |
|
|
|
|
|
|
|
}, |
|
|
|
beforeAvatarUpload (file) { |
|
|
|
const isJPG = file.type === 'image/jpeg'; |
|
|
|
const isLt2M = file.size / 1024 / 1024 < 10; |
|
|
|
|
|
|
|
|
|
|
|
if (!isLt2M) { |
|
|
|
this.$message.error('上传图片大小不能超过 10MB!'); |
|
|
|
} |
|
|
|
return isLt2M; |
|
|
|
}, |
|
|
|
handleSuccess (response, file, fileList) { |
|
|
|
this.replayImgList.push(file) |
|
|
|
this.formData.coverPic = response.data.url |
|
|
|