Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wx-school-app
Project
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
姜雷
wx-school-app
Commits
db9e2f7b
Commit
db9e2f7b
authored
Mar 06, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改完善信息样式
parent
ce2cf6d4
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
9 deletions
+20
-9
UserSetting.scss
src/pages/UserSetting/UserSetting.scss
+1
-0
UserSetting.tsx
src/pages/UserSetting/UserSetting.tsx
+19
-9
No files found.
src/pages/UserSetting/UserSetting.scss
View file @
db9e2f7b
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
font-size
:
32px
;
font-size
:
32px
;
color
:
#333
;
color
:
#333
;
}
}
.UserSetting-placeholder
,
.UserSetting-ContentItem.Disabled
{
.UserSetting-ContentItem.Disabled
{
color
:
#999
;
color
:
#999
;
}
}
...
...
src/pages/UserSetting/UserSetting.tsx
View file @
db9e2f7b
...
@@ -43,7 +43,7 @@ interface UserSetting {
...
@@ -43,7 +43,7 @@ interface UserSetting {
updateUserInfo
(
entity
:
UserState
)
{
updateUserInfo
(
entity
:
UserState
)
{
dispatch
(
updateUserInfo
(
entity
));
dispatch
(
updateUserInfo
(
entity
));
},
},
})
})
,
)
)
class
UserSetting
extends
Component
{
class
UserSetting
extends
Component
{
config
:
Config
=
{
config
:
Config
=
{
...
@@ -171,8 +171,7 @@ class UserSetting extends Component {
...
@@ -171,8 +171,7 @@ class UserSetting extends Component {
this
.
setState
({
this
.
setState
({
customerSex
:
'2'
,
customerSex
:
'2'
,
})
})
}
}
>
>
{
customerSex
===
'2'
?
(
{
customerSex
===
'2'
?
(
<
Image
className=
'sexBox-icon'
src=
{
radioCheckIcon
}
/>
<
Image
className=
'sexBox-icon'
src=
{
radioCheckIcon
}
/>
)
:
(
)
:
(
...
@@ -186,8 +185,7 @@ class UserSetting extends Component {
...
@@ -186,8 +185,7 @@ class UserSetting extends Component {
this
.
setState
({
this
.
setState
({
customerSex
:
'1'
,
customerSex
:
'1'
,
})
})
}
}
>
>
{
customerSex
===
'1'
?
(
{
customerSex
===
'1'
?
(
<
Image
className=
'sexBox-icon'
src=
{
radioCheckIcon
}
/>
<
Image
className=
'sexBox-icon'
src=
{
radioCheckIcon
}
/>
)
:
(
)
:
(
...
@@ -206,9 +204,14 @@ class UserSetting extends Component {
...
@@ -206,9 +204,14 @@ class UserSetting extends Component {
this
.
setState
({
this
.
setState
({
birthDay
:
value
,
birthDay
:
value
,
})
})
}
}
>
>
{
birthDay
?
(
<
View
>
{
birthDay
}
</
View
>
<
View
>
{
birthDay
}
</
View
>
)
:
(
<
View
className=
'UserSetting-placeholder'
>
{
'请选择出生日期'
}
</
View
>
)
}
</
Picker
>
</
Picker
>
</
View
>
</
View
>
<
View
className=
'UserSetting-ContentItem Disabled'
>
<
View
className=
'UserSetting-ContentItem Disabled'
>
...
@@ -233,6 +236,8 @@ class UserSetting extends Component {
...
@@ -233,6 +236,8 @@ class UserSetting extends Component {
<
Input
<
Input
className=
'UserSetting-ContentItem-input'
className=
'UserSetting-ContentItem-input'
value=
{
studentNo
}
value=
{
studentNo
}
placeholderClass=
'UserSetting-placeholder'
placeholder=
'请输入学号'
onInput=
{
({
detail
:
{
value
}
})
=>
{
onInput=
{
({
detail
:
{
value
}
})
=>
{
this
.
setState
({
this
.
setState
({
studentNo
:
value
.
trim
(),
studentNo
:
value
.
trim
(),
...
@@ -250,9 +255,14 @@ class UserSetting extends Component {
...
@@ -250,9 +255,14 @@ class UserSetting extends Component {
this
.
setState
({
this
.
setState
({
entranceDate
:
value
,
entranceDate
:
value
,
})
})
}
}
>
>
{
entranceDate
?
(
<
View
>
{
entranceDate
}
</
View
>
<
View
>
{
entranceDate
}
</
View
>
)
:
(
<
View
className=
'UserSetting-placeholder'
>
{
'请选择入学日期'
}
</
View
>
)
}
</
Picker
>
</
Picker
>
</
View
>
</
View
>
</
View
>
</
View
>
...
...
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