yangen 3 ngày trước cách đây
mục cha
commit
c6fd97718b
2 tập tin đã thay đổi với 7 bổ sung3 xóa
  1. 5 2
      src/views/modules/member/detail.vue
  2. 2 1
      src/views/modules/member/query.vue

+ 5 - 2
src/views/modules/member/detail.vue

@@ -249,9 +249,12 @@ export default {
         this.form.userLevel = res.data.userLevel || 1
 
         this.userInfo = JSON.parse(JSON.stringify(res.data))
-        this.userInfo.phoneCopy = this.userInfo.phone && this.userInfo.phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2')
-        this.userInfo.idCardCopy = this.userInfo.idCard && this.userInfo.idCard.replace(/^(\d{6})\d{8}(\w{4})$/, '$1********$2')
+        this.userInfo.phoneCopy = this.userInfo.phone
+        this.userInfo.idCardCopy = this.userInfo.idCard
         this.userInfo.genderText = this.genderCfg[this.userInfo.gender]
+
+        /* this.userInfo.phoneCopy = this.userInfo.phone && this.userInfo.phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2')
+            this.userInfo.idCardCopy = this.userInfo.idCard && this.userInfo.idCard.replace(/^(\d{6})\d{8}(\w{4})$/, '$1********$2') */
       })
     },
     getUserAsset () {

+ 2 - 1
src/views/modules/member/query.vue

@@ -148,7 +148,8 @@ export default {
       this.$http.get('/core/app/user/page', { params: this.queryParams }).then(res => {
         this.dataList = res.data.data.list || []
         this.dataList.forEach(item => {
-          item.phoneCopy = item.phone && item.phone.replace(/^(\d{3})\d*(\d{4})$/, '$1****$2')
+          item.phoneCopy = item.phone
+          // item.phoneCopy = item.phone && item.phone.replace(/^(\d{3})\d*(\d{4})$/, '$1****$2')
         })
 
         this.total = res.data.data.total || 0