|
@@ -4,10 +4,10 @@
|
|
|
<u-field label="视频名称" placeholder="请输入视频名称" label-width="180" v-model="videoInfo.videoName"></u-field>
|
|
|
<u-cell-item title="请上传视频" :arrow="false" v-if="type == 'add'">
|
|
|
<view slot="label">
|
|
|
- <image class="video-img" :src="videoImg" v-show="videoImg"></image>
|
|
|
+ <image class="video-img" :src="videoImg" v-show="videoImg" @tap="chooseVideoImage"></image>
|
|
|
<view class="upload-video" @tap="chooseVideoImage" v-if="!videoImg">
|
|
|
- <u-icon name="plus" size="40"></u-icon>
|
|
|
- <view class="u-add-tips" style="margin-top: 6px;">选择视频</view>
|
|
|
+ <u-icon name="plus" size="40" v-if="!videoInfo.mediaFilePath"></u-icon>
|
|
|
+ <view class="u-add-tips" style="margin-top: 6px;">{{videoInfo.mediaFilePath ? '上传成功,单击替换视频' : '选择视频'}}</view>
|
|
|
</view>
|
|
|
</view>
|
|
|
</u-cell-item>
|