张含笑
2025-10-23 839acd1fe3dec49c00f89522aceda084987b2dfd
src/pages/user/index.vue
@@ -20,7 +20,7 @@
      <view class="personalInformation">
         <div class="message">
            <div class="messagebox">个人信息</div>
            <div class="editInfo" @click="handelEdit(1)">点击编辑
            <div class="editInfo" @click="handelEdit(1)">点击编辑
            <img src="/src/static/images/user/rightBtn.svg" alt="" /></div>
         </div>
         <div class="passwordBox">
@@ -28,7 +28,7 @@
            <div class="editInfo" @click="handelEdit(2)">点击编辑 <img src="/src/static/images/user/rightBtn.svg" alt="" /></div>
         </div>
      </view>
      <view class="mt-20rpx">
         <div class="goOutStyle" @click="logOut">退出登录</div>
      </view>
@@ -55,7 +55,7 @@
   } = useClipboard();
   const userStore = useUserStore();
   // console.log('userStore', userStore.userInfo);
   // 复制
   const toCopy = async () => {
      await setClipboardData({
@@ -77,7 +77,7 @@
      })
   }
   const handelEdit=(val)=>{
      if(val === 1){
         uni.navigateTo({
           url: `/subPackages/userDetail/infos/index`
@@ -87,7 +87,7 @@
           url: `/subPackages/userDetail/password/index`
         });
      }
   }
   // 登录鉴权,微信小程序端点击tabbar的底层逻辑不触发uni.switchTab,需要在页面onShow生命周期中校验权限
   onShow(async () => {
@@ -184,7 +184,7 @@
      .message {
         background: url('/src/static/images/user/info.svg') no-repeat center;
         background-size: 100% 100%;
      }
      .passwordBox {
@@ -193,4 +193,4 @@
      }
   }
</style>
</style>