소스 검색

图片上传回显延时

e 5 년 전
부모
커밋
83e7805d75
4개의 변경된 파일24개의 추가작업 그리고 6개의 파일을 삭제
  1. 8 2
      src/views/club/editForm.vue
  2. 8 2
      src/views/club/form.vue
  3. 4 1
      src/views/goods/category-create.vue
  4. 4 1
      src/views/goods/category-edit.vue

+ 8 - 2
src/views/club/editForm.vue

@@ -200,8 +200,11 @@ export default {
     },
     // 上传图标事件
     handleAvatarSuccess(response, file) {
+      this.businessImgLoading = true
       this.$nextTick(() => {
-        this.form.businessLicenseImage = response.data
+        setTimeout(() => {
+          this.form.businessLicenseImage = response.data
+        }, 1000 * 2)
       })
     },
     reloadAvatarImage() {
@@ -215,8 +218,11 @@ export default {
     },
     // 上传图标事件
     handleDoorwaySuccess(response, file) {
+      this.headImgLoading = true
       this.$nextTick(() => {
-        this.form.headpic = response.data
+        setTimeout(() => {
+          this.form.headpic = response.data
+        }, 1000 * 2)
       })
     },
     reloadDoorwayImage() {

+ 8 - 2
src/views/club/form.vue

@@ -146,8 +146,11 @@ export default {
     },
     // 上传图标事件
     handleAvatarSuccess(response, file) {
+      this.businessImgLoading = true
       this.$nextTick(() => {
-        this.form.businessLicenseImage = response.data
+        setTimeout(() => {
+          this.form.businessLicenseImage = response.data
+        }, 1000 * 2)
       })
     },
     reloadAvatarImage() {
@@ -161,8 +164,11 @@ export default {
     },
     // 上传图标事件
     handleDoorwaySuccess(response, file) {
+      this.headImgLoading = true
       this.$nextTick(() => {
-        this.form.headpic = response.data
+        setTimeout(() => {
+          this.form.headpic = response.data
+        }, 1000 * 2)
       })
     },
     reloadDoorwayImage() {

+ 4 - 1
src/views/goods/category-create.vue

@@ -112,8 +112,11 @@ export default {
     },
     // 上传图标事件
     handleSuccess(response, file) {
+      this.loadImgLoading = true
       this.$nextTick(() => {
-        this.temp.classifyImage = response.data
+        setTimeout(() => {
+          this.temp.classifyImage = response.data
+        }, 1000 * 2)
       })
     },
     reloadImage() {

+ 4 - 1
src/views/goods/category-edit.vue

@@ -123,8 +123,11 @@ export default {
     },
     // 上传图标事件
     handleSuccess(response, file) {
+      this.loadImgLoading = true
       this.$nextTick(() => {
-        this.temp.classifyImage = response.data
+        setTimeout(() => {
+          this.temp.classifyImage = response.data
+        }, 1000 * 2)
       })
     },
     reloadImage() {