Browse Source

用户名可以添加数字

wangxiangwen/feature-20250716103042-周年活动+众筹前台页面
wangxiangwen 3 weeks ago
parent
commit
51b3110b9f
  1. 4
      activitylink/src/views/zhongchou/gift/importFixedList/index.vue
  2. 4
      activitylink/src/views/zhongchou/gift/importuser/index.vue

4
activitylink/src/views/zhongchou/gift/importFixedList/index.vue

@ -265,8 +265,8 @@ const trimAddJwcode = (value) => {
//
const trimUsername = (value) => {
//
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z]/g, '');
// 0-9
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '');
// 30
addObj.value.username = filteredValue.slice(0, 30);
}

4
activitylink/src/views/zhongchou/gift/importuser/index.vue

@ -247,8 +247,8 @@ const trimAddJwcode = (value) => {
//
const trimUsername = (value) => {
//
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z]/g, '');
// 0-9
const filteredValue = value.replace(/[^\u4e00-\u9fa5a-zA-Z0-9]/g, '');
// 30
addObj.value.username = filteredValue.slice(0, 30);
}

Loading…
Cancel
Save