mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-10 03:16:45 +08:00
修改
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user