| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130 |
- <template>
- <view class="page">
- <view class="avatarinfo dis f-c a-c ">
- <image :src="userInfo.sysUser.headSculpture? userInfo.sysUser.headSculpture :'/static/image/avatar.png'"
- mode=""></image>
- <text class=" phone mt-3 mb-4">您的手机号:{{userInfo.sysUser.mobile}}</text>
- <view class="btn dis a-c j-c " @tap="authMethodShow=true">
- 更换手机号
- </view>
- </view>
- <uni-Popup :show="authMethodShow" @close='authMethodShow=false' headerTitle="验证方式">
- <template #content>
- <view class="authelement">
- <text class="">更换手机号需要对您的身份进行验证,请选择验证方式完成验证后即可更换新的手机号</text>
- <view class="btn dis a-c j-s mt-3">
- <view class="dis a-c j-c " @click="smsVerification">
- 短信验证
- </view>
- <view class="dis a-c j-c " @click="passwordValidation">
- 密码验证
- </view>
- </view>
- </view>
- </template>
- </uni-Popup>
- </view>
- </template>
- <script>
- import {
- mapState,
- mapMutations
- } from "vuex"
- export default {
- data() {
- return {
- authMethodShow: false, //验证方式
- }
- },
- onShow() {
- },
- onLoad() {
- },
- computed: {
- ...mapState(['userInfo']),
- },
- methods: {
- //短信验证
- smsVerification() {
- uni.navigateTo({
- url: '/pages/login/smsCode?mobile=' + this.userInfo.sysUser.mobile + '&userId=' + this.userInfo
- .sysUser.userId,
- })
- },
- //密码验证
- passwordValidation() {
- uni.navigateTo({
- url: '/pages/my/passwordValidation?mobile=' + this.userInfo.sysUser.mobile + '&userId=' + this
- .userInfo
- .sysUser.userId,
- })
- },
- }
- }
- </script>
- <style lang="scss" scoped>
- .page {
- background-color: #F8F8F8;
- height: 100vh;
- }
- .avatarinfo {
- padding: 50rpx 75rpx;
- box-sizing: border-box;
- background-color: #fff;
- image {
- width: 156rpx;
- height: 156rpx;
- border-radius: 50%;
- }
- .phone {
- font-size: 30rpx;
- color: #333;
- }
- .btn {
- width: 100%;
- background: #FDE935;
- padding: 20rpx;
- box-sizing: border-box;
- border-radius: 45rpx 45rpx 45rpx 45rpx;
- font-size: 36rpx;
- color: #1F1F1F;
- }
- }
- .authelement {
- padding: 40rpx;
- box-sizing: border-box;
- >text {
- font-size: 30rpx;
- color: #333;
- }
- .btn {
- view {
- flex: 1;
- padding: 20rpx;
- box-sizing: border-box;
- background: #FDE935;
- border-radius: 50rpx 50rpx 50rpx 50rpx;
- }
- view:last-child {
- margin-left: 38rpx;
- }
- }
- }
- </style>
|