You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<template> <view class="main"> <view :style="{height:iSMT+'px'}"></view>
<view style="height:1.5vh;" />
<view class="top"> <!-- <view class="top-list" @click="goToBindPhone"> <text class="label">手机号</text> <view class="right"> <text style="font-size: 28rpx;"> {{ userStore.userInfo?.phone || '未绑定' }} </text> <uni-icons type="arrowright" size="16" /> </view> </view> -->
<view class="top-list" @click="goToBindEmail"> <text class="label">邮箱</text> <view class="right"> <text style="font-size: 28rpx;"> {{ userStore.userInfo?.email || '未绑定' }} </text> <uni-icons type="arrowright" size="16" /> </view> </view> </view> </view></template>
<script setup> import { ref, onMounted } from 'vue' import { useUserStore } from "../../stores/modules/userInfo" const userStore = useUserStore() const iSMT = ref(0) const goToBindPhone = () =>{ uni.navigateTo({ url:'../setting/phone' }) } const goToBindEmail = () =>{ uni.navigateTo({ url:'../setting/email' }) }
onMounted(() => { // 状态栏高度
iSMT.value = uni.getSystemInfoSync().statusBarHeight; console.log('看看高度', iSMT.value) console.log('看看用户信息',userStore.userInfo) })</script>
<style> .top { height: 14vh; background-color: white; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.top-list { width: 630rpx; height: 7vh; margin: 0rpx 40rpx; display: flex; align-items: center; border-bottom: 1rpx solid #eee; }
.top-list:last-child { border: none; }
.label { font-size: 28rpx; flex: 1; } .right{ display: flex; align-items: center; justify-content: center; }</style>
|