fix:修复bug

This commit is contained in:
2025-10-14 19:20:26 +08:00
parent 30e298d9d2
commit 4408673438
21 changed files with 1153 additions and 549 deletions
+25 -14
View File
@@ -2,7 +2,7 @@
<view class="login-container">
<view class="logo">
<image src="/static/logo.png" mode="aspectFit" />
<text class="app-name">共享风扇</text>
<text class="app-name">风电者共享风扇&充电宝</text>
</view>
<view class="title">登录您的账号</view>
@@ -14,9 +14,14 @@
</button>
<!-- 仅微信登录不授权手机号时使用 -->
<button class="btn outline" @click="onWeChatLogin">仅微信登录</button>
<!-- <button class="btn outline" @click="onWeChatLogin">仅微信登录</button> -->
<view class="tips">登录即表示同意用户协议隐私政策</view>
<view class="tips">
登录即表示同意
<text class="link" @tap="go('/pages/legal/agreement')">用户协议</text>
<text class="link" @tap="go('/pages/legal/privacy')">隐私政策</text>
</view>
</view>
</template>
@@ -37,7 +42,7 @@
const target = '/pages/index/index'
const tabPages = ['/pages/index/index', '/pages/my/index']
if (tabPages.includes(target)) {
uni.switchTab({ url: target })
uni.reLaunch({ url: target })
return
}
uni.reLaunch({ url: target })
@@ -77,6 +82,10 @@
} catch (_) {}
}
})
const go = (url) => {
uni.navigateTo({ url })
}
</script>
<style lang="scss" scoped>
@@ -129,21 +138,23 @@
margin-bottom: 24rpx;
}
.primary {
background: #1976D2;
color: #fff;
}
.primary {
background: #07c160;
color: #fff;
box-shadow: 0 8rpx 24rpx rgba(7, 193, 96, 0.3);
}
.outline {
background: #fff;
color: #1976D2;
border: 2rpx solid #1976D2;
}
.outline {
background: #fff;
color: #07c160;
border: 2rpx solid #07c160;
}
.tips {
.tips {
margin-top: 24rpx;
font-size: 22rpx;
color: #999;
.link { color: #07c160; }
}
}
</style>