Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CFFP-HB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chao Sun
CFFP-HB
Commits
2b837bd9
Commit
2b837bd9
authored
Aug 28, 2025
by
Sweet Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改个人资料证件号码只能输入数字的问题
parent
4d605f22
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
16 deletions
+17
-16
environments/environment.ts
+2
-2
manifest.json
+2
-1
pages/personalCenter/user-information.vue
+13
-13
No files found.
environments/environment.ts
View file @
2b837bd9
...
@@ -4,7 +4,7 @@ const dev = {
...
@@ -4,7 +4,7 @@ const dev = {
base_url
:
'https://mdev.anjibao.cn'
,
base_url
:
'https://mdev.anjibao.cn'
,
api_url
:
'https://mdev.anjibao.cn/cffpApi'
,
api_url
:
'https://mdev.anjibao.cn/cffpApi'
,
cffp_url
:
'https://mdev.anjibao.cn/cffpApi/cffp'
,
cffp_url
:
'https://mdev.anjibao.cn/cffpApi/cffp'
,
share_url
:
'https://mdev.anjibao.cn/
cffp
'
,
share_url
:
'https://mdev.anjibao.cn/
appYdhomeoffice
'
,
sfp_url
:
'https://mdev.anjibao.cn/sfpApi'
,
sfp_url
:
'https://mdev.anjibao.cn/sfpApi'
,
img_url
:
'https://mdev.zuihuibi.cn'
,
img_url
:
'https://mdev.zuihuibi.cn'
,
scrm_url
:
'https://mdev.zuihuibi.cn'
scrm_url
:
'https://mdev.zuihuibi.cn'
...
@@ -13,7 +13,7 @@ const stage = {
...
@@ -13,7 +13,7 @@ const stage = {
base_url
:
'https://mstage.zuihuibi.cn'
,
base_url
:
'https://mstage.zuihuibi.cn'
,
api_url
:
'https://mstage.zuihuibi.cn/cffpApi'
,
api_url
:
'https://mstage.zuihuibi.cn/cffpApi'
,
cffp_url
:
'https://mstage.zuihuibi.cn/cffpApi/cffp'
,
cffp_url
:
'https://mstage.zuihuibi.cn/cffpApi/cffp'
,
share_url
:
'https://mstage.zuihuibi.cn/
cffp
'
,
share_url
:
'https://mstage.zuihuibi.cn/
appYdhomeoffice
'
,
sfp_url
:
'https://mstage.zuihuibi.cn/sfpApi'
,
sfp_url
:
'https://mstage.zuihuibi.cn/sfpApi'
,
scrm_url
:
'https://mstage.zuihuibi.cn'
scrm_url
:
'https://mstage.zuihuibi.cn'
...
...
manifest.json
View file @
2b837bd9
...
@@ -185,7 +185,8 @@
...
@@ -185,7 +185,8 @@
}
}
}
}
},
},
"disableReload"
:
true
//
添加这行禁用自动刷新
"disableReload"
:
true
,
//
添加这行禁用自动刷新
"port"
:
5174
},
},
"uniStatistics"
:
{
"uniStatistics"
:
{
"enable"
:
false
"enable"
:
false
...
...
pages/personalCenter/user-information.vue
View file @
2b837bd9
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<input
<input
class=
"user-input"
class=
"user-input"
maxlength=
"18"
maxlength=
"18"
type=
"
number
"
type=
"
text
"
placeholder=
"请输入"
placeholder=
"请输入"
v-model=
"realInfo.shiming.idNumber"
v-model=
"realInfo.shiming.idNumber"
/>
/>
...
@@ -295,7 +295,7 @@
...
@@ -295,7 +295,7 @@
uni
.
showToast
({
title
:
'昵称为2~10个字符'
,
duration
:
2000
,
icon
:
'none'
});
uni
.
showToast
({
title
:
'昵称为2~10个字符'
,
duration
:
2000
,
icon
:
'none'
});
return
return
}
}
//
const validateResult = this.validateForm();
const
validateResult
=
this
.
validateForm
();
// if(!validateResult.isValid) {
// if(!validateResult.isValid) {
// let message = '请完善以下信息:\n';
// let message = '请完善以下信息:\n';
// validateResult.emptyFields.forEach((field, index) => {
// validateResult.emptyFields.forEach((field, index) => {
...
@@ -315,17 +315,17 @@
...
@@ -315,17 +315,17 @@
// this.realInfo.shiming.realName = ''
// this.realInfo.shiming.realName = ''
// return
// return
// }
// }
//
if(this.realInfo.shiming.idType == 'IDENTITY_CARD'&&this.realInfo.shiming.idNumber.length
<
18
){
if
(
this
.
realInfo
.
shiming
.
idType
==
'IDENTITY_CARD'
&&
this
.
realInfo
.
shiming
.
idNumber
.
length
<
18
){
//
uni.showToast({title: '请输入18位实名身份证号',duration: 2000,icon: 'none'});
uni
.
showToast
({
title
:
'请输入18位实名身份证号'
,
duration
:
2000
,
icon
:
'none'
});
//
return
return
//
}
}
// if(this.realInfo.shiming.idType == 'IDENTITY_CARD'
){
if
(
this
.
realInfo
.
shiming
.
idType
==
'IDENTITY_CARD'
&&
this
.
realInfo
.
shiming
.
idNumber
.
length
>
0
){
//
let obj = common.IdCodeValid(this.realInfo.shiming.idNumber)
let
obj
=
common
.
IdCodeValid
(
this
.
realInfo
.
shiming
.
idNumber
)
//
if(!obj.pass){
if
(
!
obj
.
pass
){
//
uni.showToast({title: '请输入有效的实名身份证号',duration: 2000,icon: 'none'});
uni
.
showToast
({
title
:
'请输入有效的实名身份证号'
,
duration
:
2000
,
icon
:
'none'
});
//
return
return
//
}
}
//
}
}
this
.
saveUserInfo
();
this
.
saveUserInfo
();
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment