|
|
@ -60,6 +60,20 @@ |
|
|
|
|
|
|
|
</div> --> |
|
|
|
|
|
|
|
<div class="item" style="margin-bottom: 100px;margin-top: 100px;"> |
|
|
|
<span class="item_text">内容图片:</span> |
|
|
|
<upload |
|
|
|
ref="uploadImg3" |
|
|
|
v-model="imgListnr" |
|
|
|
style="margin-top: 20px;" |
|
|
|
class="item_input" |
|
|
|
:limit="1" |
|
|
|
bucket="map" |
|
|
|
:class="{ hide: hideUploadBtnNr }" |
|
|
|
:upload-data="{ type: '0001' }" |
|
|
|
@change="backDataNr" |
|
|
|
/> |
|
|
|
</div> |
|
|
|
<div class="item2"> |
|
|
|
<span class="item_text">轮播图内容:</span> |
|
|
|
<editor class="item_input" :height="300" :min-height="100" :value="formobj.content" @input="editinput" /> |
|
|
@ -85,7 +99,9 @@ |
|
|
|
data() { |
|
|
|
return { |
|
|
|
imgList: [], |
|
|
|
imgListnr: [], |
|
|
|
hideUploadBtn: false, |
|
|
|
hideUploadBtnNr: false, |
|
|
|
submitdisabled: false, |
|
|
|
formobj: { |
|
|
|
sid: '', |
|
|
@ -96,7 +112,8 @@ |
|
|
|
endDate: '', |
|
|
|
content: '', |
|
|
|
bannerUrl: '', |
|
|
|
bannerPath: '' |
|
|
|
bannerPath: '', |
|
|
|
contentUrl: '' |
|
|
|
} |
|
|
|
} |
|
|
|
}, |
|
|
@ -132,7 +149,8 @@ |
|
|
|
endDate: '', |
|
|
|
content: '', |
|
|
|
bannerUrl: '', |
|
|
|
bannerPath: '' |
|
|
|
bannerPath: '', |
|
|
|
contentUrl: '' |
|
|
|
} |
|
|
|
this.$emit('doback') |
|
|
|
}, |
|
|
@ -161,6 +179,15 @@ |
|
|
|
|
|
|
|
this.hideUploadBtn = this.imgList.length !== 0 |
|
|
|
console.log('this.hideUploadBtn', this.hideUploadBtn) |
|
|
|
}, |
|
|
|
backDataNr(value) { |
|
|
|
if (this.imgListnr.length > 0) { |
|
|
|
this.formobj.contentUrl = this.imgListnr[0].url |
|
|
|
} else { |
|
|
|
this.formobj.contentUrl = '' |
|
|
|
} |
|
|
|
|
|
|
|
this.hideUploadBtnNr = this.imgListnr.length !== 0 |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|