This commit is contained in:
wangweidong 2026-01-14 16:35:41 +08:00
parent 2bdfa4edb4
commit f1dd41cf3b
3 changed files with 6 additions and 3 deletions

View File

@ -778,6 +778,9 @@
uni.chooseVideo({
sourceType: ['camera' ],
success: (e)=> {
uni.showLoading({
title:'正在上传...'
})
uni.compressVideo({
src: e.tempFilePath,
quality: 'medium',
@ -791,7 +794,6 @@
}
});
}
}
const sxdupld = (e) => {
let now = new Date();
@ -810,10 +812,11 @@
},
success: res => {
const data = JSON.parse(res.data);
console.log(data)
ilanarr.value.push(data.message)
uni.hideLoading()
},
fail: () => {
uni.hideLoading()
uni.showToast({ title: '上传失败', icon: 'none' })
}
})

View File

@ -84,7 +84,7 @@
<view class="avator guodu" :style="avator?'opacity: 1':'opacity: 0;z-index: -1'">
<text>点击头像更换</text>
<view class="avatorimg" @click="uplod" >
<image :src="userInfo.avatar?(userInfo.flag?userInfo.avatar : serverUrl+'/sys/common/static/'+userInfo.avatar):'/static/shouye/xd.png'" mode="aspectFill"></image>
<image :src="userInfo.avatar?(userInfo.flag?userInfo.avatar : serverUrl+'/sys/common/static/'+userInfo.avatar):'/static/shouye/mrtx.png'" mode="aspectFill"></image>
</view>
<view class="butft" @click="sxdupld(userInfo.avatar)" v-if="userInfo?.flag">
确定

BIN
static/shouye/mrtx.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB