mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-mobile.git
synced 2025-12-08 02:16:46 +08:00
发布文章
This commit is contained in:
@@ -21,11 +21,11 @@
|
||||
<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>
|
||||
</view>
|
||||
<!-- <view class="row row-upload">
|
||||
<view v-if="cover" class="row row-upload">
|
||||
<text class="upload-text">设置封面</text>
|
||||
<u-upload uploadIcon="plus" :fileList="fileList" @afterRead="afterRead" @delete="deletePic" name="coverImg" :maxCount="1">
|
||||
</u-upload>
|
||||
</view> -->
|
||||
</view>
|
||||
<!-- <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>
|
||||
</view> -->
|
||||
@@ -45,7 +45,7 @@
|
||||
</view>
|
||||
<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="!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>
|
||||
</view>
|
||||
@@ -92,6 +92,7 @@
|
||||
formats: {},
|
||||
hasKeyword:false,
|
||||
hasSummary:false,
|
||||
cover:false,
|
||||
article:{
|
||||
title:'',
|
||||
coverurl:'',
|
||||
@@ -127,6 +128,9 @@
|
||||
addSummary(){
|
||||
this.hasSummary=true;
|
||||
},
|
||||
addcover(){
|
||||
this.cover=true;
|
||||
},
|
||||
saveDraft(){
|
||||
this.article.status=1;
|
||||
this.saveArticle();
|
||||
@@ -327,7 +331,7 @@
|
||||
}
|
||||
}
|
||||
.editor-content{
|
||||
min-height: 750upx;
|
||||
min-height: 600upx;
|
||||
}
|
||||
.feed-title{
|
||||
display: flex;
|
||||
|
||||
Reference in New Issue
Block a user