Procházet zdrojové kódy

接单人用户照片查看路径拼接

LiFei před 6 roky
rodič
revize
f8160848e2
1 změnil soubory, kde provedl 11 přidání a 2 odebrání
  1. 11 2
      src/views/hwuser/modules/HwViewPhotoModal.vue

+ 11 - 2
src/views/hwuser/modules/HwViewPhotoModal.vue

@@ -143,10 +143,19 @@
         }
       },
       getAvatarView() {
-        return this.url.imgerver + this.model.idcardFront
+        if( this.model.idcardFront.indexOf("http")!=-1){
+          return this.model.idcardFront
+        }else{
+          return this.url.imgerver + this.model.idcardFront
+        }
       },
       getAvatarView1() {
-        return this.url.imgerver + this.model.idcardBack
+        if( this.model.idcardFront.indexOf("http")==-1){
+          return this.model.idcardBack
+        }else{
+          return this.url.imgerver + this.model.idcardBack
+        }
+
       },
       validatePhone(rule, value, callback) {
         if (!value) {