| | |
| | | self.is_loaded = true; |
| | | }); |
| | | }, |
| | | getRegistrationInformation(user_id) { |
| | | let self = this; |
| | | self._get('branch.activity/getRegistrationInformation', {user_id}, function(res) { |
| | | if (res.data.registrationInformation) { |
| | | let data=res.data.registrationInformation; |
| | | self.formData.province_id = data.province_id; |
| | | self.formData.city_id = data.city_id; |
| | | self.formData.region_id = data.region_id; |
| | | self.formData.real_name = data.real_name; |
| | | self.formData.mobile = data.mobile; |
| | | self.formData.shop_supplier_id = data.shop_supplier_id; |
| | | self.supplier_name = data.supplier_name; |
| | | self.selectCity = res.data.registrationInformation.region; |
| | | if (res.data.registrationInformation.branch_name) { |
| | | self.branch_name = res.data.registrationInformation.branch_name; |
| | | } |
| | | } |
| | | }); |
| | | }, |
| | | |
| | | // 提交 |
| | | formSubmit() { |
| | |
| | | closeUserFunc(e) { |
| | | if (e != null) { |
| | | this.formData.user_id = e.user_id; |
| | | this.getRegistrationInformation(this.formData.user_id ) |
| | | this.user_info.name = e.real_name ? e.real_name : e.nickName; |
| | | this.user_info.avatarUrl = e.avatarUrl; |
| | | if (!this.formData.avatarUrl) { |