Commit db9e2f7b by 姜雷

修改完善信息样式

parent ce2cf6d4
...@@ -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;
} }
......
...@@ -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>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment