1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465 |
- <template>
- <view>
- <view class="content">
- <view class="flex item">
- <view style="color: gray;">账号</view>
- <view><input class="uni-input" disabled value="user.phone" /></view>
- </view>
- <view class="flex item">
- <view>旧密码</view>
- <view><input class="uni-input" :value="pwd.olePassword" placeholder="请输入旧密码" /></view>
- </view>
- <view class="flex item">
- <view>新密码</view>
- <view><input class="uni-input" :value="pwd.olePassword" placeholder="请输入新密码" /></view>
- </view>
- <view class="flex item">
- <view>确认密码</view>
- <view><input class="uni-input" :value="pwd.rePassword" placeholder="请再次输入新密码" /></view>
- </view>
- <view class="item">
- <text style="color: gray;">密码必须是8-16位英文字母、数字、字符组合(不能是纯数字)</text>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- user: this.getUser(),
- pwd: {}
- }
- },
- methods: {
- edit(){
- this.http.request({
- url: '/sp-admin/app/AppUser/modifyPassword',
- data: param,
- success: res => {
- uni.removeStorageSync('token');
- uni.removeStorageSync('info');
- uni.removeStorageSync('menu');
- uni.redirectTo({ url: '/pages/login/login' });
- }
- });
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: $pg;
- }
- .content {
- padding: 20px 10px;
- }
- .item{
- height: 60px;
- display: flex;
- align-items: center;
- border-top: 1px solid #DCDCDC;
- }
- </style>
|