Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-customer-new-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-customer-new-master
Commits
e791f32c
Commit
e791f32c
authored
Aug 12, 2024
by
lizhan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
📝
【TASK-20240812-02】TASK:个人信息必填校验
parent
e68a29bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
4 deletions
+42
-4
my_info.vue
src/pages/my_info/my_info.vue
+42
-4
No files found.
src/pages/my_info/my_info.vue
View file @
e791f32c
...
...
@@ -4,7 +4,7 @@
<view
class=
"start-bar"
></view>
<view
class=
"consultAdd"
>
<view
class=
"consult-item"
>
<view
class=
"consult-item-label"
>
<view
class=
"consult-item-label
required-icon
"
>
<text>
{{
$lang
.
lang
.
myInfo
.
name
}}
</text>
</view>
<view
class=
"consult-item-put"
>
...
...
@@ -12,7 +12,7 @@
</view>
</view>
<view
class=
"consult-item"
>
<view
class=
"consult-item-label"
>
<view
class=
"consult-item-label
required-icon
"
>
<text>
{{
$lang
.
lang
.
myInfo
.
nameEn
}}
</text>
</view>
<view
class=
"consult-item-put"
>
...
...
@@ -78,7 +78,7 @@
</view>
</view>
<view
class=
"consult-item"
>
<view
class=
"consult-item-label"
>
<view
class=
"consult-item-label
required-icon
"
>
<text>
{{
$lang
.
lang
.
myInfo
.
country
}}
</text>
</view>
<view
class=
"consult-item-put"
>
...
...
@@ -96,7 +96,7 @@
</view>
</view>
<view
class=
"consult-item"
>
<view
class=
"consult-item-label"
>
<view
class=
"consult-item-label
required-icon
"
>
<text>
{{
$lang
.
lang
.
myInfo
.
city
}}
</text>
</view>
<view
class=
"consult-item-put"
>
...
...
@@ -200,6 +200,34 @@ export default {
},
methods
:
{
submitForm
()
{
if
(
!
this
.
params
.
nickname
)
{
uni
.
showToast
({
title
:
this
.
$lang
.
lang
.
notices
.
nickName
,
icon
:
'
none
'
})
return
}
if
(
!
this
.
params
.
englishName
)
{
uni
.
showToast
({
title
:
this
.
$lang
.
lang
.
notices
.
nameEn
,
icon
:
'
none
'
})
return
}
if
(
!
this
.
params
.
country
)
{
uni
.
showToast
({
title
:
this
.
$lang
.
lang
.
notices
.
country
,
icon
:
'
none
'
})
return
}
if
(
!
this
.
params
.
city
)
{
uni
.
showToast
({
title
:
this
.
$lang
.
lang
.
notices
.
city
,
icon
:
'
none
'
})
return
}
this
.
$request
.
put
(
'
/app-api/member/user/update
'
,
this
.
params
).
then
((
res
)
=>
{
if
(
res
.
code
==
0
)
{
if
(
this
.
first
)
{
...
...
@@ -465,4 +493,14 @@ radio {
.placeholder
{
color
:
#666666
;
}
.required-icon
{
position
:
relative
;
}
.required-icon
::after
{
content
:
'*'
;
color
:
red
;
position
:
absolute
;
left
:
-14
upx
;
top
:
16
upx
;
}
</
style
>
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