|
@@ -28,12 +28,22 @@
|
|
|
@click-input="showFilter=true"
|
|
|
@click-icon="showFilter=true"
|
|
|
/>
|
|
|
+ <van-field
|
|
|
+ :value="form.central_arguments"
|
|
|
+ placeholder="请输入文字"
|
|
|
+ :border="false"
|
|
|
+ clearable
|
|
|
+ @change="inputChangeArgument"
|
|
|
+ type="textarea"
|
|
|
+ label="核心观点"
|
|
|
+ :autosize="{minHeight:50,maxHeight:100}"
|
|
|
+ />
|
|
|
|
|
|
<!-- 上传图片部分 -->
|
|
|
<view
|
|
|
class="flex upload-img-box"
|
|
|
v-if="recorderStatus!=='doing'&&recorderStatus!=='pause'"
|
|
|
- :style="[{'height':recorderStatus==='stop'&&'auto'},{'border-bottom':recorderStatus==='stop'?'1px solid #E6E6E6':''}]"
|
|
|
+ :style="[{'border-bottom':recorderStatus==='stop'?'1px solid #E6E6E6':''}]"
|
|
|
>
|
|
|
<view class="item" v-for="(item,index) in imgList" :key="item" @click="handlePreViewImg(item)">
|
|
|
<image :src="item" mode="aspectFill"/>
|
|
@@ -226,6 +236,7 @@ export default {
|
|
|
section_id:'',
|
|
|
section_name:'',
|
|
|
img_url:'',//分享时的底图
|
|
|
+ central_arguments:'',//核心观点
|
|
|
},
|
|
|
voiceId:0,
|
|
|
voiceUrl:'',//编辑音频地址
|
|
@@ -314,6 +325,7 @@ export default {
|
|
|
this.pre_publish_time=dayjs(res.data.PrePublishTime).format('YYYY-MM-DD HH:mm')
|
|
|
this.selectTime=dayjs(res.data.PrePublishTime).valueOf()
|
|
|
this.recorderStatus='stop'
|
|
|
+ this.form.central_arguments=res.data.CentralArguments
|
|
|
}
|
|
|
},
|
|
|
|
|
@@ -514,6 +526,10 @@ export default {
|
|
|
this.form.title=event.detail
|
|
|
},
|
|
|
|
|
|
+ inputChangeArgument(event){
|
|
|
+ this.form.central_arguments=event.detail
|
|
|
+ },
|
|
|
+
|
|
|
// 发布
|
|
|
async handlePublish(type){
|
|
|
if(!this.form.title||!this.form.variety_id){
|
|
@@ -554,7 +570,8 @@ export default {
|
|
|
imgs:this.imgList.join(','),
|
|
|
voice_seconds:this.temAudio.duration.toString(),
|
|
|
voice_size:this.temAudio.size.toString(),
|
|
|
- voice_url:this.temAudio.url
|
|
|
+ voice_url:this.temAudio.url,
|
|
|
+ central_arguments:this.form.central_arguments
|
|
|
}
|
|
|
wx.showLoading({
|
|
|
title: '发布中...',
|
|
@@ -865,7 +882,7 @@ page{
|
|
|
.upload-img-box{
|
|
|
padding: 34rpx 4rpx 34rpx 34rpx;
|
|
|
flex-wrap: wrap;
|
|
|
- height: 50vh;
|
|
|
+ // height: 50vh;
|
|
|
align-content: flex-start;
|
|
|
.item{
|
|
|
width: 200rpx;
|
|
@@ -902,9 +919,11 @@ page{
|
|
|
}
|
|
|
|
|
|
.animat-box{
|
|
|
- height: 50vh;
|
|
|
+ height: 30vh;
|
|
|
+ width:100vw;
|
|
|
+ overflow-x: hidden;
|
|
|
.con-box{
|
|
|
- height: 80%;
|
|
|
+ height: 70%;
|
|
|
background-color: #FAFAFA;
|
|
|
position: relative;
|
|
|
}
|