linwenxin 6 mesi fa
parent
commit
7b992d3afe
1 ha cambiato i file con 2 aggiunte e 4 eliminazioni
  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', {