浏览代码

前端 客户上传图片样式sdy

zhongtianhaoyuan 3 年之前
父节点
当前提交
d60204b1b4
共有 1 个文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/houseSelfCollect/customerManagementAdd.vue

+ 4 - 2
src/views/houseSelfCollect/customerManagementAdd.vue

@@ -414,6 +414,8 @@
                if(Number(imgObj.width) < Number(imgObj.height)){
                  let i = document.getElementsByClassName("avatar");
                  i[index].style.width='auto'
+                  let j = document.getElementsByClassName("avatar-uploader" + (index+1))
+                  j[0].style.background = "#e7e3e3"
                }
             }
       },
@@ -438,7 +440,7 @@
               this.$set( this.customerList,'compAddress',response.recPersonAddr)
             }
           })
-           this.obtainWH(e,1)
+           this.obtainWH(e,0)
       },
 
       upLoadSuccess2(e) {
@@ -464,7 +466,7 @@
         //       this.$set( this.customerList,'compAddress',response.recPersonAddr)
         //     }
         //   })
-        this.obtainWH(e,0)
+        this.obtainWH(e,1)
       },
       bankSuccess1(e) {
         this.bankUps = 'bankUp'