| | |
| | | value: 2 |
| | | }], |
| | | citysData: [], |
| | | citysDataTemp: '' |
| | | citysDataTemp: '', |
| | | uraddr: 'add' |
| | | |
| | | } |
| | | }, |
| | |
| | | this.citysData = test.citysData |
| | | this.autoLoad('cstmrType','') |
| | | this.autoLoad('user','') |
| | | }, |
| | | onLoad(option) { |
| | | console.log(option); |
| | | if(option.type == 1) { |
| | | this.uraddr = 'add2' |
| | | } |
| | | }, |
| | | methods: { |
| | | cstmrSearch() { |
| | |
| | | } |
| | | res.pcd = this.citysDataTemp |
| | | uni.request({ |
| | | url: that.baseUrl + '/cstmr/add/auth', |
| | | url: `${that.baseUrl}/cstmr/${that.uraddr}/auth`, |
| | | header:{ |
| | | 'token':uni.getStorageSync('token'), |
| | | 'content-type':'application/x-www-form-urlencoded', |