소스 검색

no message

linwenxin 8 달 전
부모
커밋
7b992d3afe
1개의 변경된 파일2개의 추가작업 그리고 4개의 파일을 삭제
  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', {