diff --git a/weapp/src/packages/changePassword/index.jsx b/weapp/src/packages/changePassword/index.jsx index b3084332..04579469 100644 --- a/weapp/src/packages/changePassword/index.jsx +++ b/weapp/src/packages/changePassword/index.jsx @@ -8,6 +8,7 @@ import './index.scss' function Index() { const userInfo = Taro.getStorageSync('userInfo') || null; + const [phone, setPhone] = useState(userInfo.phone) const [password, setPassword] = useState('') const [password2, setPassword2] = useState('') @@ -45,7 +46,7 @@ function Index() { 手机号码: - + 新的密码: diff --git a/weapp/src/packages/changePassword/index.scss b/weapp/src/packages/changePassword/index.scss index 34dd1178..5508ec5b 100644 --- a/weapp/src/packages/changePassword/index.scss +++ b/weapp/src/packages/changePassword/index.scss @@ -1,6 +1,35 @@ -.page { - height: 100vh; - width: 100vw; +page { background-color: #f6f6f6; + font-size: 28px; + .phone { + height: 96px; + background-color: #fff; + margin: 20px auto; + display: flex; + justify-content: left; + align-items: center; + + .title { + margin-left: 30px; + } + } + + .pswd { + height: 96px; + background-color: #fff; + margin-bottom: 5px; + display: flex; + justify-content: left; + align-items: center; + + .title { + margin-left: 30px; + } + } + + .btn { + width: 70%; + margin: 80px auto; + } } \ No newline at end of file diff --git a/weapp/src/packages/changePassword/success/index.jsx b/weapp/src/packages/changePassword/success/index.jsx index 54468d51..aecda00b 100644 --- a/weapp/src/packages/changePassword/success/index.jsx +++ b/weapp/src/packages/changePassword/success/index.jsx @@ -2,6 +2,8 @@ import React from 'react' import Taro from '@tarojs/taro' import { View, Image } from '@tarojs/components' import { AtButton } from 'taro-ui' +import './index.scss' +import successIcon from '../../../static/img/changePassword/success.svg' function Index() { function handleClick() { @@ -10,8 +12,11 @@ function Index() { return ( - 修改成功 - 返回登录 + + + 修改成功! + + 返回登录 ) } diff --git a/weapp/src/packages/changePassword/success/index.scss b/weapp/src/packages/changePassword/success/index.scss index e69de29b..675e74c8 100644 --- a/weapp/src/packages/changePassword/success/index.scss +++ b/weapp/src/packages/changePassword/success/index.scss @@ -0,0 +1,26 @@ +page { + background-color: #f6f6f6; + + .box { + background-color: #fff; + height: 360px; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; + + .img { + width: 160px; + height: 160px; + } + + .text { + margin-top: 32px; + } + } + + .btn { + width: 70%; + margin: 80px auto; + } +} \ No newline at end of file diff --git a/weapp/src/static/img/changePassword/success.svg b/weapp/src/static/img/changePassword/success.svg new file mode 100644 index 00000000..2ed77593 --- /dev/null +++ b/weapp/src/static/img/changePassword/success.svg @@ -0,0 +1,15 @@ + + + 切片 + + + + + + + + + + + + \ No newline at end of file