This commit is contained in:
parent
2bdfa4edb4
commit
f1dd41cf3b
|
|
@ -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' })
|
||||
}
|
||||
})
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
确定
|
||||
|
|
|
|||
Binary file not shown.
|
After Width: | Height: | Size: 10 KiB |
Loading…
Reference in New Issue