Showing
1 changed file
with
7 additions
and
7 deletions
@@ -126,32 +126,32 @@ const getBirthday = (birthday) => { | @@ -126,32 +126,32 @@ const getBirthday = (birthday) => { | ||
126 | */ | 126 | */ |
127 | const getProviceCityInfo = (parentId, checkValue) => { | 127 | const getProviceCityInfo = (parentId, checkValue) => { |
128 | let addressInfo = userApi.getProviceCityInfo(parentId) || '', | 128 | let addressInfo = userApi.getProviceCityInfo(parentId) || '', |
129 | - res = [{value:0}], | 129 | + res = [{value: 0}], |
130 | defaultText; | 130 | defaultText; |
131 | 131 | ||
132 | if (parentId.length === 2) { | 132 | if (parentId.length === 2) { |
133 | defaultText = '请选择省份'; | 133 | defaultText = '请选择省份'; |
134 | - }else if (parentId.length === 4) { | 134 | + } else if (parentId.length === 4) { |
135 | defaultText = '请选择市'; | 135 | defaultText = '请选择市'; |
136 | - }else { | 136 | + } else { |
137 | defaultText = '请选择区县'; | 137 | defaultText = '请选择区县'; |
138 | } | 138 | } |
139 | res[0].text = defaultText; | 139 | res[0].text = defaultText; |
140 | - if (addressInfo.code == 200) { | 140 | + if (addressInfo.code === 200) { |
141 | for (let i = addressInfo.data.length - 1; i >= 0; i--) { | 141 | for (let i = addressInfo.data.length - 1; i >= 0; i--) { |
142 | let addressJson = { | 142 | let addressJson = { |
143 | value: addressInfo.data.id, | 143 | value: addressInfo.data.id, |
144 | text: addressInfo.data.caption | 144 | text: addressInfo.data.caption |
145 | }; | 145 | }; |
146 | 146 | ||
147 | - if (addressInfo.data.id == checkValue) { | 147 | + if (addressInfo.data.id === checkValue) { |
148 | addressJson.isChecked = true; | 148 | addressJson.isChecked = true; |
149 | } | 149 | } |
150 | res.push(addressJson); | 150 | res.push(addressJson); |
151 | } | 151 | } |
152 | } | 152 | } |
153 | return res; | 153 | return res; |
154 | -} | 154 | +}; |
155 | 155 | ||
156 | const getUserInfo = (channel, uid) => { | 156 | const getUserInfo = (channel, uid) => { |
157 | 157 | ||
@@ -283,7 +283,7 @@ const getUserInfo = (channel, uid) => { | @@ -283,7 +283,7 @@ const getUserInfo = (channel, uid) => { | ||
283 | let contactInfo = result[2].data || '', | 283 | let contactInfo = result[2].data || '', |
284 | areaCode = contactInfo.areaCode || ''; | 284 | areaCode = contactInfo.areaCode || ''; |
285 | 285 | ||
286 | - console.info(areaCode); | 286 | + console.info(areaCode); |
287 | finalResult.contactInfo = { | 287 | finalResult.contactInfo = { |
288 | subTitle: '联系信息', | 288 | subTitle: '联系信息', |
289 | submitId: 'contact-info', | 289 | submitId: 'contact-info', |
-
Please register or login to post a comment