Browse Source

云中心手机号将中间四位星号显示改为中间六位

hangb 7 years ago
parent
commit
1fe7a2c96a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      pages/cloudcenter/index.vue

+ 1 - 1
pages/cloudcenter/index.vue

@@ -155,7 +155,7 @@
         user () {
           let mobile = this.$store.state.option.userInfo.data.content.user.mobile
           if (mobile) {
-            var reg = /^(\d{3})\d{4}(\d{4})$/
+            var reg = /^(\d{3})\d{6}(\d{2})$/
             this.secretMobile = mobile.replace(reg, '$1******$2')
           }
           let email = this.$store.state.option.userInfo.data.content.user.email