| | |
| | | <!-- 我的 --> |
| | | <template> |
| | | <view class="page-wrap"> |
| | | <u-navbar title="" placeholder left-icon="" right-icon="camera-fill" /> |
| | | |
| | | <view class="flex items-center pb-30rpx pl-30rpx pr-20rpx"> |
| | | <view class="mr-20rpx"> |
| | | <u-avatar :src="userStore?.userInfo?.avatar" size="70" /> |
| | |
| | | <view class="mt-20rpx"> |
| | | <div class="goOutStyle" @click="logOut">退出登录</div> |
| | | </view> |
| | | <div class="bottomLogo"><img src="/src/static/images/user/logo1.svg" alt="" /></div> |
| | | </view> |
| | | </template> |
| | | |
| | |
| | | // 登录鉴权,微信小程序端点击tabbar的底层逻辑不触发uni.switchTab,需要在页面onShow生命周期中校验权限 |
| | | onShow(async () => { |
| | | getDeviceRegion() |
| | | // window.addEventListener('message', (event) => { |
| | | // console.log('message') |
| | | // }) |
| | | // setInterval(() => { |
| | | // sWebViewRef.value.evalJs(`x_sun('${test.value}')`) |
| | | // }, 2000) |
| | | |
| | | }); |
| | | </script> |
| | | <style scoped lang="scss"> |
| | | .page-wrap { |
| | | width: 100%; |
| | | height: 298px; |
| | | background: url('/src/static/images/user/userBg.svg') no-repeat center; |
| | | background-size: 100% 100%; |
| | | height: 100%; |
| | | background: url('/src/static/images/user/allBg.svg') no-repeat center center; |
| | | background-size: cover; |
| | | padding-top: 44px; |
| | | } |
| | | |
| | | .userName { |
| | |
| | | width: 100px; |
| | | height: 40px; |
| | | } |
| | | |
| | | .bottomLogo { |
| | | position: absolute; |
| | | bottom: 25px; |
| | | left: 0; |
| | | right: 0; |
| | | margin: 0 auto; |
| | | text-align: center; |
| | | } |
| | | .goOutStyle { |
| | | width: 295px; |
| | | height: 38px; |