Merge remote-tracking branch 'origin/feature/order' into feature/order
Showing
3 changed files
with
9 additions
and
0 deletions
@@ -301,6 +301,15 @@ $.extend({ | @@ -301,6 +301,15 @@ $.extend({ | ||
301 | } | 301 | } |
302 | }); | 302 | }); |
303 | 303 | ||
304 | +//临时修改 footer | ||
305 | +function phoneHidden(phone) { | ||
306 | + return phone.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2'); | ||
307 | +} | ||
308 | + | ||
309 | +if ($('.user-name').text().length === 11) { | ||
310 | + $('.user-name').html(phoneHidden($('.user-name').text())); | ||
311 | +} | ||
312 | + | ||
304 | //暴露公共接口 | 313 | //暴露公共接口 |
305 | window.cookie = cookie; | 314 | window.cookie = cookie; |
306 | 315 |
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
-
Please register or login to post a comment