Przeglądaj źródła

身份证号脱敏

xhj 2 lat temu
rodzic
commit
003330cbb1
2 zmienionych plików z 2 dodań i 2 usunięć
  1. 1 1
      mine/userinfo/userinfo.vue
  2. 1 1
      utils/request.js

+ 1 - 1
mine/userinfo/userinfo.vue

@@ -378,7 +378,7 @@
 			handleIdCard(cardId) {
 				var re = /^\d{17}(\d|x)$/i;
 				if (re.test(cardId)) {
-					return cardId.replace(/^(.{4})(?:\d+)(.{4})$/, "$1**********$2");
+					return cardId.replace(/^(.{0})(?:\d+)(.{4})$/, "$1**************$2");
 				}else{
 					return cardId
 				}

+ 1 - 1
utils/request.js

@@ -5,7 +5,7 @@ const env = {
 	NODE_ENV: 'dev',
 	dev: {
 		// apiUrl: 'https://rsapi.zhiqiyun.net'
-		apiUrl: 'https://unwx.e-chinalife.com/hkttest/',
+		apiUrl: 'https://unwx.e-chinalife.com/hkttest',
 	},
 	prd: {
 		apiUrl: 'https://unwx.e-chinalife.com/hktonline'