个人中心
This commit is contained in:
@@ -4,34 +4,46 @@
|
||||
<view class="old-phone">
|
||||
<view class="phone-number">
|
||||
<view class="title">原手机号</view>
|
||||
<input type="text" placeholder="请输入手机号码" />
|
||||
<input type="text" v-model="oldNumber" placeholder="请输入手机号码" />
|
||||
</view>
|
||||
<view class="code">
|
||||
<view class="title">验证码</view>
|
||||
<input type="text" placeholder="请输入验证码" />
|
||||
<input type="text" v-model="oldCode" placeholder="请输入验证码" />
|
||||
<view class="get-code">获取验证码</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="new-phone">
|
||||
<view class="phone-number">
|
||||
<view class="title">新手机号</view>
|
||||
<input type="text" placeholder="请输入手机号码" />
|
||||
<input type="text" v-model="newNumber" placeholder="请输入手机号码" />
|
||||
</view>
|
||||
<view class="code">
|
||||
<view class="title">验证码</view>
|
||||
<input type="text" placeholder="请输入验证码" />
|
||||
<input type="text" v-model="newCode" placeholder="请输入验证码" />
|
||||
<view class="get-code">获取验证码</view>
|
||||
</view>
|
||||
</view>
|
||||
</view>
|
||||
<view class="tips">注意:修改手机号需要原手机号获取验证码,无原手机验证码,请联系后台</view>
|
||||
<view class="btn">保存</view>
|
||||
</view>
|
||||
</template>
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {}
|
||||
}
|
||||
return {
|
||||
oldNumber: '',
|
||||
oldCode: '',
|
||||
newNumber: '',
|
||||
newCode: ''
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
verifyValue() {
|
||||
if (this.$u.test.mobile(this.oldNumber)) this.$u.toast('请填写正确的原手机号');
|
||||
if (this.$u.test.mobile(this.newNumber)) this.$u.toast('请填写正确的新手机号');
|
||||
}
|
||||
},
|
||||
};
|
||||
</script>
|
||||
<style lang="scss" scoped>
|
||||
@@ -73,16 +85,6 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
// .phone-number::after {
|
||||
// position: absolute;
|
||||
// content: "";
|
||||
// width: 2rpx;
|
||||
// height: 43rpx;
|
||||
// background: rgba(242,242,242,1);
|
||||
// left: 0;
|
||||
// top: 50%;
|
||||
// transform: translate(0, -50%);
|
||||
// }
|
||||
.code {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
@@ -105,5 +107,16 @@ export default {
|
||||
color: rgba(102,102,102,1);
|
||||
line-height: 40rpx;
|
||||
}
|
||||
.btn {
|
||||
margin: 120rpx auto 0;
|
||||
width: 690rpx;
|
||||
height: 98rpx;
|
||||
background: rgba(255,120,15,1);
|
||||
border-radius: 49rpx;
|
||||
font-size: 36rpx;
|
||||
color: rgba(255,255,255,1);
|
||||
line-height: 98rpx;
|
||||
text-align: center;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user