张含笑
2025-10-23 922be295d3d1c602e371c60a2b79f977d710e895
src/pages/user/index.vue
@@ -1,7 +1,7 @@
<!-- 我的 -->
<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" />
@@ -32,6 +32,7 @@
      <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>
@@ -92,20 +93,16 @@
   // 登录鉴权,微信小程序端点击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 {
@@ -134,7 +131,14 @@
      width: 100px;
      height: 40px;
   }
      .bottomLogo {
          position: absolute;
          bottom: 25px;
          left: 0;
          right: 0;
          margin: 0 auto;
          text-align: center;
      }
   .goOutStyle {
      width: 295px;
      height: 38px;