dingdong-master/pages/my/account-security.vue

49 lines
989 B
Vue
Raw Permalink Normal View History

2022-05-22 21:52:14 +08:00
<template>
<view>
<!-- 顶部操作条 -->
<cu-custom :bgColor="'bg-main-color'" :isBack="true">
<block slot="backText">返回</block>
<block slot="content">帐号安全</block>
</cu-custom>
2022-05-23 17:38:52 +08:00
<view class="margin-top-sm bg-white" @click="bindNewPhoneNum">
2022-05-22 21:52:14 +08:00
<view class="cu-form-group">
<view class="title">绑定手机</view>
<view>{{curUserInfo.phone}}</view>
</view>
</view>
2022-05-23 17:38:52 +08:00
<phone-vertify ref="phoneBindVertify" @confirm="phoneBindRes"></phone-vertify>
2022-05-22 21:52:14 +08:00
</view>
</template>
<script>
2022-05-23 17:38:52 +08:00
import phoneVertify from '@/pages/my/modal/phone-vertify.vue';
2022-05-22 21:52:14 +08:00
export default {
2022-05-23 17:38:52 +08:00
components: {
phoneVertify
},
2022-05-22 21:52:14 +08:00
data() {
return {
curUserInfo: {}
}
},
onLoad() {
this.loadData();
},
methods: {
async loadData() {
this.curUserInfo = await this.$request.getCurUserNoCache();
2022-05-23 17:38:52 +08:00
},
bindNewPhoneNum() {
this.$refs.phoneBindVertify.showModal();
},
phoneBindRes(e) {
console.log(e)
2022-05-22 21:52:14 +08:00
}
},
}
</script>
<style>
</style>