wangJJ 5 éve
szülő
commit
0fe182cc73

+ 3 - 14
src/components/commons/ProvinceCity.vue

@@ -21,7 +21,7 @@
       style="width: calc(50% - 20px);margin-right: 0px"
     >
       <el-select v-model="city" :loading="loadingCity" @change="cityChanged" placeholder="请选择">
-        <el-option :key="''" :label="'请选择'" :value="''"></el-option>
+<!--        <el-option :key="''" :label="'请选择'" :value="''"></el-option>-->
         <el-option v-for="item in cities" :key="item.code" :label="item.name" :value="item.code"></el-option>
       </el-select>
     </el-form-item>
@@ -53,8 +53,8 @@ export default {
   data() {
     return {
       loadingCity: false,
-      province: this.provinceCode,
-      city: this.cityCode,
+      province: "",
+      city: "",
       provinces: [],
       cities: []
     };
@@ -99,17 +99,6 @@ export default {
       this.province = this.provinceCode
       this.city = this.cityCode
     },
-    // deep: true,
-    // cityCode(val){
-    //   console.log('cityCode')
-    //   console.log(val)
-    //   this.city = val;
-    // },
-    // provinceCode(val){
-    //   console.log('proCode')
-    //   this.provinceChanged(this.provinceCode);
-    //   this.province = val;
-    // },
   },
 };
 </script>

+ 25 - 2
src/pages/UserCenter/EnterpriseAuth.vue

@@ -50,7 +50,7 @@
               :data="{type:2}"
               :disabled="!canEdit"
             >
-              <img v-if="enterpriseForm.businessLicensePhoto" :src="enterpriseForm.businessLicensePhoto" class="avatar">
+              <img  :src="enterpriseForm.businessLicensePhoto" class="avatar">
             </el-upload>
             <div><span style="color: red">*</span>营业执照:(仅支持三证合一)</div>
           </div>
@@ -285,7 +285,30 @@
 </script>
 
 <style scoped lang="less">
-
+  .avatar-uploader .el-upload {
+    //border: 1px dashed #d9d9d9;
+    border-radius: 6px;
+    cursor: pointer;
+    position: relative;
+    overflow: hidden;
+    margin-right: 30px;
+  }
+  .avatar-uploader .el-upload:hover {
+    border-color: #409EFF;
+  }
+  .avatar-uploader-icon {
+    font-size: 28px;
+    color: #8c939d;
+    width: 278px;
+    height: 178px;
+    line-height: 178px;
+    text-align: center;
+  }
+  .avatar {
+    width: 220px;
+    height: 150px;
+    display: block;
+  }
   .right-modifyPsw {
     padding: 20px;
     background: rgba(255, 255, 255, 1);

+ 28 - 2
src/pages/UserCenter/Mine.vue

@@ -38,8 +38,8 @@
           <provincecity
             ref="addFormProvince"
             @selectChange="locationChange"
-            :provinceCode="userForm.province==null?'3200':userForm.province"
-            :cityCode="userForm.city===null?'3201':userForm.city"
+            :provinceCode="userForm.location==null?'3200':userForm.location.provinceCode"
+            :cityCode="userForm.location==null?'3201':userForm.location.cityCode"
           ></provincecity>
         </el-form-item>
         <el-form-item label="个人能力" style="width: 160%">
@@ -92,6 +92,7 @@
       },
       //联系地址改变
       locationChange (provinceId, cityId) {
+        console.log("aaa",provinceId,cityId)
         if (provinceId || cityId) {
           this.userForm.province = provinceId
           this.userForm.city = cityId
@@ -151,6 +152,7 @@
           console.log(location)
           this.userForm.province = location.provinceCode;
           this.userForm.city = location.cityCode;
+          this.userForm.location=location;
         })
       },
       setUserInfo(){
@@ -173,6 +175,30 @@
 </script>
 
 <style scoped lang="less">
+  .avatar-uploader .el-upload {
+    //border: 1px dashed #d9d9d9;
+    border-radius: 6px;
+    cursor: pointer;
+    position: relative;
+    overflow: hidden;
+    margin-right: 30px;
+  }
+  .avatar-uploader .el-upload:hover {
+    border-color: #409EFF;
+  }
+  .avatar-uploader-icon {
+    font-size: 28px;
+    color: #8c939d;
+    width: 278px;
+    height: 178px;
+    line-height: 178px;
+    text-align: center;
+  }
+  .avatar {
+    width: 178px;
+    height: 178px;
+    display: block;
+  }
   .right-mine {
     padding: 20px;
     background-color: rgba(255, 255, 255, 1);

+ 1 - 24
src/style/main.scss

@@ -336,30 +336,7 @@ a {
 .router-link-exact-active {
   color: rgba(0, 118, 203, 1);
 }
-.avatar-uploader .el-upload {
-  //border: 1px dashed #d9d9d9;
-  border-radius: 6px;
-  cursor: pointer;
-  position: relative;
-  overflow: hidden;
-  margin-right: 30px;
-}
-.avatar-uploader .el-upload:hover {
-  border-color: #409EFF;
-}
-.avatar-uploader-icon {
-  font-size: 28px;
-  color: #8c939d;
-  width: 278px;
-  height: 178px;
-  line-height: 178px;
-  text-align: center;
-}
-.avatar {
-  width: 178px;
-  height: 178px;
-  display: block;
-}
+
 .rg-select {
   padding:0 !important;
   width: 110px !important;