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