对接首页消息通知、巡检点 切换小区获取最新数据

This commit is contained in:
zhouyanli
2026-05-15 16:06:32 +08:00
parent 8324d096c0
commit 856f36455c
17 changed files with 425 additions and 770 deletions

View File

@@ -29,7 +29,7 @@
<!-- 退出登录按钮 -->
<view class="logout-btn-wrap">
<button class="logout-btn" :disabled="!phoneNumber || !passwordNumber" @tap="handleLogout">
<button class="logout-btn" :disabled="!phoneNumber" @tap="handleLogout">
退出登录
</button>
</view>
@@ -41,7 +41,7 @@ import { ref } from 'vue'
import { onLoad } from '@dcloudio/uni-app'
// 响应式数据
const phoneNumber = ref('15699991212') // 绑定手机号
const phoneNumber = ref('') // 绑定手机号
const passwordNumber = ref('')
// 页面加载时可从接口获取用户信息
@@ -99,9 +99,6 @@ const confirmLogout = () => {
uni.hideLoading()
// 清除本地存储的token等信息
uni.clearStorageSync()
// uni.removeStorageSync('token')
// uni.removeStorageSync('userInfo')
// uni.removeStorageSync('tempChangePwdParams')
// 提示并跳转到登录页
uni.showToast({