上传视频,页面调整
This commit is contained in:
@@ -121,7 +121,7 @@
|
||||
</view>
|
||||
</view>
|
||||
</u-form-item>
|
||||
|
||||
|
||||
<u-form-item prop="images">
|
||||
<view class="his-head">
|
||||
<text class="title">房源照片</text>
|
||||
@@ -134,6 +134,18 @@
|
||||
</view>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item prop="images">
|
||||
<view class="his-head">
|
||||
<text class="title">房源视频</text>
|
||||
</view>
|
||||
<view class="form-wrapper">
|
||||
<view class="images">
|
||||
<u-upload :fileList="fileList2" :maxSize="31457280" :width="72" :height="72" accept="video"
|
||||
@afterRead="afterRead" @delete="deleteVideo" name="2" multiple :maxCount="1"></u-upload>
|
||||
</view>
|
||||
</view>
|
||||
</u-form-item>
|
||||
|
||||
<u-form-item prop="introduction">
|
||||
<view class="his-head">
|
||||
<text class="title">房源介绍</text>
|
||||
@@ -229,6 +241,7 @@
|
||||
status: 10
|
||||
},
|
||||
fileList1: [],
|
||||
fileList2: [],
|
||||
loading: false,
|
||||
// regionsData: [
|
||||
// ['广西壮族自治区','广东'],
|
||||
@@ -418,6 +431,7 @@
|
||||
app.disabled = true
|
||||
app.form.houseLabel = JSON.stringify(app.houseLabel)
|
||||
app.form.files = JSON.stringify(app.fileList1)
|
||||
app.form.videoUrl = app.fileList2[0]?app.fileList2[0].url: null
|
||||
const saveOrUpdate = app.selectId > 0 ? updateHouseInfo : addHouseInfo;
|
||||
saveOrUpdate(app.form).then(result => {
|
||||
app.$toast('保存成功')
|
||||
@@ -614,7 +628,7 @@
|
||||
this[`fileList${event.name}`].splice(fileListLen, 1, Object.assign(item, {
|
||||
status: 'success',
|
||||
message: '',
|
||||
url: result.url,
|
||||
url: event.name == 2 ?result.path: result.url,
|
||||
thumb: result.thumbUrl
|
||||
}))
|
||||
fileListLen++
|
||||
|
||||
Reference in New Issue
Block a user