|
@@ -6,7 +6,7 @@
|
|
|
style="width: 200rpx; height: 150rpx; margin: 0 12rpx; " @click="choose()"></image>
|
|
|
<view v-for="(item,index) in imgArr" :key="index" style="position: relative;">
|
|
|
<view
|
|
|
- v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'||item.picUrl.substring(item.picUrl.length-4)=='jpeg' ">
|
|
|
+ v-if="item.substring(item.length - 3) == 'png' || item.substring(item.length - 3) == 'jpg'|| item.substring(item.length-4)=='jpeg' ">
|
|
|
<image :src="loadImgSrcLocalhost(item)" mode="" style="width: 100rpx; height: 100rpx; margin: 0 12rpx;"
|
|
|
@click="showPhoto(index)">
|
|
|
</image>
|
|
@@ -105,7 +105,6 @@ export default {
|
|
|
formData: {},
|
|
|
header: _this.headers,
|
|
|
success: res => {
|
|
|
- debugger
|
|
|
// 判断是否json字符串,将其转为json格式
|
|
|
let data = JSON.parse(res.data);
|
|
|
if (![200].includes(data.code)) {
|
|
@@ -130,7 +129,6 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
task.onProgressUpdate(res => {
|
|
|
- debugger
|
|
|
_this.progress = res.progress;
|
|
|
uni.showLoading({
|
|
|
title: '上传中'
|