优化页面

This commit is contained in:
yzy committed 2026-01-21 11:07:37 +08:00
1 parent 6a822548b1
commit fb4888188f
5 files changed
+412 -4

No files matched your search

+3 -2
View File
@@ -182,7 +182,7 @@
/**
* @desc 跳转至登录页面
*/
const toLoginPage = (productId) => {
const toLoginPage = () => {
userStore.logout()
uni.navigateTo({
url: '/pages/login/index',
@@ -264,7 +264,8 @@
</view>
<view class="flex flex-col justify-center items-start gap-1">
<view class="font-bold text-lg text-black" @click="showPopup">{{userName}}</view>
<view class="font-bold text-lg text-black" v-if="!userStore.isLogin" @click="toLoginPage">login now</view>
<view class="font-bold text-lg text-black" v-if="userStore.isLogin" @click="showPopup">{{userName}}</view>
<view class="text-sm opacity-80 text-black">Sweekar Guardian since 2023</view>
<!-- 在线状态 -->
<view class="border-round-theme rounded-lg flex justify-center p-1 items-center">