linwenxin 7 meses atrás
pai
commit
7b992d3afe
1 arquivos alterados com 2 adições e 4 exclusões
  1. 2 4
      src/packageWorkorder/pages/infoCollect/form.vue

+ 2 - 4
src/packageWorkorder/pages/infoCollect/form.vue

@@ -269,8 +269,6 @@ export default {
 
     // 上传采集图片
     async chooseCollectImg(index) {
-      uni.showLoading()
-
       if (!this.address) {
         try {
           const lo = await this.$getAddress()
@@ -288,6 +286,7 @@ export default {
         sizeType: ['compressed'],
         sourceType: ['album', 'camera'],
         success: async res => {
+          uni.showLoading()
           let data = await uploadImgFull(res.tempFilePaths[0])
           this.$api
             .post('/changeOrder/submitPic', {
@@ -314,8 +313,6 @@ export default {
 
     // 选择故障图片
     async chooseFaultImg(index) {
-      uni.showLoading()
-
       if (!this.address) {
         try {
           const lo = await this.$getAddress()
@@ -333,6 +330,7 @@ export default {
         sizeType: ['compressed'],
         sourceType: ['album', 'camera'],
         success: async res => {
+          uni.showLoading()
           let data = await uploadImgFull(res.tempFilePaths[0])
           this.$api
             .post('/changeOrder/submitPic', {