mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-11 03:46:47 +08:00
发布文章
This commit is contained in:
@@ -21,11 +21,11 @@
|
|||||||
<view class="row">
|
<view class="row">
|
||||||
<u--input placeholder="请输入标题" maxlength="50" placeholder-style="font-size:30upx;color:#c1c1c1;font-weight: normal;" border="surround" v-model="article.title" ></u--input>
|
<u--input placeholder="请输入标题" maxlength="50" placeholder-style="font-size:30upx;color:#c1c1c1;font-weight: normal;" border="surround" v-model="article.title" ></u--input>
|
||||||
</view>
|
</view>
|
||||||
<!-- <view class="row row-upload">
|
<view v-if="cover" class="row row-upload">
|
||||||
<text class="upload-text">设置封面</text>
|
<text class="upload-text">设置封面</text>
|
||||||
<u-upload uploadIcon="plus" :fileList="fileList" @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="1">
|
<u-upload uploadIcon="plus" :fileList="fileList" @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="1">
|
||||||
</u-upload>
|
</u-upload>
|
||||||
</view> -->
|
</view>
|
||||||
<!-- <view v-if="hasKeyword" class="row">
|
<!-- <view v-if="hasKeyword" class="row">
|
||||||
<u--input :height="25" maxlength="20" placeholder-style="font-size:30upx;color:#c1c1c1;font-weight: normal;" v-model="article.keyword" placeholder="关键字"></u--input>
|
<u--input :height="25" maxlength="20" placeholder-style="font-size:30upx;color:#c1c1c1;font-weight: normal;" v-model="article.keyword" placeholder="关键字"></u--input>
|
||||||
</view> -->
|
</view> -->
|
||||||
@@ -45,7 +45,7 @@
|
|||||||
</view>
|
</view>
|
||||||
<view style="padding-left: 0upx;display: flex;">
|
<view style="padding-left: 0upx;display: flex;">
|
||||||
<!-- <view class="addbtn" v-if="!hasKeyword"><u-icon name="plus" @click="addKeyword()" label="关键字"></u-icon> </view> -->
|
<!-- <view class="addbtn" v-if="!hasKeyword"><u-icon name="plus" @click="addKeyword()" label="关键字"></u-icon> </view> -->
|
||||||
<view class="addbtn" v-if="!hasSummary" style="margin-left: 28upx;"><u-icon @click="addSummary()" name="plus" label="封面"></u-icon> </view>
|
<view class="addbtn" v-if="!cover" style="margin-left: 28upx;"><u-icon @click="addcover()" name="plus" label="封面"></u-icon> </view>
|
||||||
<view class="addbtn" v-if="!hasSummary" style="margin-left: 28upx;"><u-icon @click="addSummary()" name="plus" label="摘要"></u-icon> </view>
|
<view class="addbtn" v-if="!hasSummary" style="margin-left: 28upx;"><u-icon @click="addSummary()" name="plus" label="摘要"></u-icon> </view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
@@ -92,6 +92,7 @@
|
|||||||
formats: {},
|
formats: {},
|
||||||
hasKeyword:false,
|
hasKeyword:false,
|
||||||
hasSummary:false,
|
hasSummary:false,
|
||||||
|
cover:false,
|
||||||
article:{
|
article:{
|
||||||
title:'',
|
title:'',
|
||||||
coverurl:'',
|
coverurl:'',
|
||||||
@@ -127,6 +128,9 @@
|
|||||||
addSummary(){
|
addSummary(){
|
||||||
this.hasSummary=true;
|
this.hasSummary=true;
|
||||||
},
|
},
|
||||||
|
addcover(){
|
||||||
|
this.cover=true;
|
||||||
|
},
|
||||||
saveDraft(){
|
saveDraft(){
|
||||||
this.article.status=1;
|
this.article.status=1;
|
||||||
this.saveArticle();
|
this.saveArticle();
|
||||||
@@ -327,7 +331,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.editor-content{
|
.editor-content{
|
||||||
min-height: 750upx;
|
min-height: 600upx;
|
||||||
}
|
}
|
||||||
.feed-title{
|
.feed-title{
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
Reference in New Issue
Block a user