This commit is contained in:
lmj
2022-11-17 16:42:27 +08:00
parent 8fce46fc10
commit 99e3afa75f
4 changed files with 12 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
" maxlength="30" class="row-input" border="surround" v-model="qa.title" @change="change"></u--input>
</view>
<view class="row ">
<u--textarea class="row-input row-text" placeholder-style="font-size:42upx;color:#666;font-weight: normal;" :height="300" count maxlength="500" v-model="qa.content" placeholder="请输入正文"></u--textarea>
<u--textarea class="row-input row-text" placeholder-style="font-size:42upx;color:#666;font-weight: normal;" :height="300" count maxlength="500" v-model="content" placeholder="请输入正文"></u--textarea>
</view>
<view class="row">
<u-upload uploadIcon="plus" :fileList="fileList" multiple @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="5">
@@ -41,8 +41,10 @@
export default {
data() {
return {
fileUrl:this.$config.fileUrl,
qa:{
content:'',
id:'',
title:'',
content:'',
@@ -55,6 +57,7 @@
...mapGetters(['userInfo']),
},
methods: {
toBack(){
uni.navigateBack();
},
@@ -120,8 +123,10 @@
onLoad(option){
if(option.value){
this.qa=JSON.parse(option.value)
this.content = (this.qa.content).replace(/<\/?[^>]*>/g, '');
}
}
},
}
</script>