diff --git a/components/form.vue b/components/form.vue index 48f7190..ba25342 100644 --- a/components/form.vue +++ b/components/form.vue @@ -64,14 +64,14 @@ <view class="d-flex j-sb a-center form-item-height-only"> <view class="form-item-name">上传视频</view> </view> - <view class=""> - <view v-if="formInfo.videoList.length"> - <view class="video-box"> - <video id="myVideo" :src="formInfo.videoList[0].url" - @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu controls - :show-fullscreen-btn='false'></video> - </view> - <view @click="delVideoList"> + <view> + + <view class="video-box" style="" v-if="formInfo.videoList.length"> + <video id="myVideo" :src="formInfo.videoList[0].url" + @error="videoErrorCallback" :danmu-list="danmuList" enable-danmu controls + :show-fullscreen-btn='false'></video> + + <view class="position-icon" @click="delVideoList"> <u-icon name="close-circle-fill" color="#D9001B" size="32"></u-icon> </view> @@ -374,6 +374,8 @@ .video-box { width: 373rpx; height: 210rpx; + position:relative; + video{ width:100%; height:100% @@ -381,7 +383,9 @@ } .position-icon { - + position: absolute; + top:-10rpx; + right:-10rpx; } diff --git a/pages/my/index.vue b/pages/my/index.vue index 4df25f1..ce2fcc2 100644 --- a/pages/my/index.vue +++ b/pages/my/index.vue @@ -148,16 +148,18 @@ export default { onChooseavatar(e) { console.log(e,'1211'); // return; - let self = this; + let that = this; const { avatarUrl } = e.detail; - this.fdsa = avatarUrl; + that.fdsa = avatarUrl; wx.getFileSystemManager().readFile({ filePath: avatarUrl, //选择图片返回的相对路径 // encoding: 'base64', //编码格式 success: res => { //成功的回调 - console.log(res); - console.log(res.data); + console.log(res,'返回值,'); + console.log(res.data,'的撒胡'); + + // that.$set(that.userParams,'headImgUrl',res.data) // userUpdatePOST({ // headImgUrl: res.data // }).then(res => { @@ -182,8 +184,9 @@ export default { that.$set(that.userParams,'nickname',e.detail.value) this.updateUser() }, - async updateUser(){ - const back_data = await updateUserMsg(this.userParams) + async updateUser(){ + let that = this + const back_data = await updateUserMsg(that.userParams) console.log(back_data) const {code} = back_data if(code === 200){