|
@@ -234,7 +234,7 @@ export default {
|
|
|
itemColor: '#000',
|
|
|
success: e => {
|
|
|
if (e.tapIndex === 0) {
|
|
|
- uni.chooseImage({
|
|
|
+ uni.chooseMedia({
|
|
|
count: 6 - this.imageList.length,
|
|
|
success: res => {
|
|
|
uni.showLoading()
|
|
@@ -244,19 +244,23 @@ export default {
|
|
|
})
|
|
|
uni.hideLoading()
|
|
|
},
|
|
|
- fail: err => {}
|
|
|
+ fail: err => {
|
|
|
+ alert(err)
|
|
|
+ }
|
|
|
})
|
|
|
} else if (e.tapIndex === 1) {
|
|
|
uni.chooseVideo({
|
|
|
compressed: true,
|
|
|
sourceType: ['camera', 'album'],
|
|
|
camera: 'back',
|
|
|
- maxDuration: 300,
|
|
|
success: async res => {
|
|
|
uni.showLoading()
|
|
|
let data = await uploadImgFull(res.tempFilePath)
|
|
|
this.imageList.push(data)
|
|
|
uni.hideLoading()
|
|
|
+ },
|
|
|
+ fail: err => {
|
|
|
+ alert(err)
|
|
|
}
|
|
|
})
|
|
|
}
|