Commit 32134905 by honghong

视频删除按钮位置

parent 282955e9
...@@ -64,14 +64,14 @@ ...@@ -64,14 +64,14 @@
<view class="d-flex j-sb a-center form-item-height-only"> <view class="d-flex j-sb a-center form-item-height-only">
<view class="form-item-name">上传视频</view> <view class="form-item-name">上传视频</view>
</view> </view>
<view class=""> <view>
<view v-if="formInfo.videoList.length">
<view class="video-box"> <view class="video-box" style="" v-if="formInfo.videoList.length">
<video id="myVideo" :src="formInfo.videoList[0].url" <video id="myVideo" :src="formInfo.videoList[0].url"
@error="videoErrorCallback" :danmu-list="danmuList" enable-danmu controls @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu controls
:show-fullscreen-btn='false'></video> :show-fullscreen-btn='false'></video>
</view>
<view @click="delVideoList"> <view class="position-icon" @click="delVideoList">
<u-icon name="close-circle-fill" color="#D9001B" size="32"></u-icon> <u-icon name="close-circle-fill" color="#D9001B" size="32"></u-icon>
</view> </view>
...@@ -374,6 +374,8 @@ ...@@ -374,6 +374,8 @@
.video-box { .video-box {
width: 373rpx; width: 373rpx;
height: 210rpx; height: 210rpx;
position:relative;
video{ video{
width:100%; width:100%;
height:100% height:100%
...@@ -381,7 +383,9 @@ ...@@ -381,7 +383,9 @@
} }
.position-icon { .position-icon {
position: absolute;
top:-10rpx;
right:-10rpx;
} }
......
...@@ -148,16 +148,18 @@ export default { ...@@ -148,16 +148,18 @@ export default {
onChooseavatar(e) { onChooseavatar(e) {
console.log(e,'1211'); console.log(e,'1211');
// return; // return;
let self = this; let that = this;
const { avatarUrl } = e.detail; const { avatarUrl } = e.detail;
this.fdsa = avatarUrl; that.fdsa = avatarUrl;
wx.getFileSystemManager().readFile({ wx.getFileSystemManager().readFile({
filePath: avatarUrl, //选择图片返回的相对路径 filePath: avatarUrl, //选择图片返回的相对路径
// encoding: 'base64', //编码格式 // encoding: 'base64', //编码格式
success: res => { success: res => {
//成功的回调 //成功的回调
console.log(res); console.log(res,'返回值,');
console.log(res.data); console.log(res.data,'的撒胡');
// that.$set(that.userParams,'headImgUrl',res.data)
// userUpdatePOST({ // userUpdatePOST({
// headImgUrl: res.data // headImgUrl: res.data
// }).then(res => { // }).then(res => {
...@@ -183,7 +185,8 @@ export default { ...@@ -183,7 +185,8 @@ export default {
this.updateUser() this.updateUser()
}, },
async updateUser(){ async updateUser(){
const back_data = await updateUserMsg(this.userParams) let that = this
const back_data = await updateUserMsg(that.userParams)
console.log(back_data) console.log(back_data)
const {code} = back_data const {code} = back_data
if(code === 200){ if(code === 200){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment