This commit is contained in:
parent
2bdfa4edb4
commit
f1dd41cf3b
|
|
@ -778,6 +778,9 @@
|
||||||
uni.chooseVideo({
|
uni.chooseVideo({
|
||||||
sourceType: ['camera' ],
|
sourceType: ['camera' ],
|
||||||
success: (e)=> {
|
success: (e)=> {
|
||||||
|
uni.showLoading({
|
||||||
|
title:'正在上传...'
|
||||||
|
})
|
||||||
uni.compressVideo({
|
uni.compressVideo({
|
||||||
src: e.tempFilePath,
|
src: e.tempFilePath,
|
||||||
quality: 'medium',
|
quality: 'medium',
|
||||||
|
|
@ -791,7 +794,6 @@
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
const sxdupld = (e) => {
|
const sxdupld = (e) => {
|
||||||
let now = new Date();
|
let now = new Date();
|
||||||
|
|
@ -810,10 +812,11 @@
|
||||||
},
|
},
|
||||||
success: res => {
|
success: res => {
|
||||||
const data = JSON.parse(res.data);
|
const data = JSON.parse(res.data);
|
||||||
console.log(data)
|
|
||||||
ilanarr.value.push(data.message)
|
ilanarr.value.push(data.message)
|
||||||
|
uni.hideLoading()
|
||||||
},
|
},
|
||||||
fail: () => {
|
fail: () => {
|
||||||
|
uni.hideLoading()
|
||||||
uni.showToast({ title: '上传失败', icon: 'none' })
|
uni.showToast({ title: '上传失败', icon: 'none' })
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@
|
||||||
<view class="avator guodu" :style="avator?'opacity: 1':'opacity: 0;z-index: -1'">
|
<view class="avator guodu" :style="avator?'opacity: 1':'opacity: 0;z-index: -1'">
|
||||||
<text>点击头像更换</text>
|
<text>点击头像更换</text>
|
||||||
<view class="avatorimg" @click="uplod" >
|
<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>
|
||||||
<view class="butft" @click="sxdupld(userInfo.avatar)" v-if="userInfo?.flag">
|
<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