去掉接口token

This commit is contained in:
zhouyanli
2026-04-27 15:27:32 +08:00
parent 855bb47ec7
commit 5936da5547
10 changed files with 16 additions and 18 deletions

View File

@@ -197,7 +197,7 @@ const getNoticeMore = () =>{
}
// 接收选择小区返回的参数
const slelctHomeData = (data) =>{
console.log('收到B页面返回的数据', data)
// console.log('收到B页面返回的数据', data)
if(data.name){
currentCommunity.value = data.name
}
@@ -299,10 +299,10 @@ const payMentClick =() =>{
}
// 点击小区选择
const navigateToPage = () => {
const token = uni.getStorageSync('token') || '';
// const token = uni.getStorageSync('token') || '';
const cachedVillageId = uni.getStorageSync('currentVillageId');
// 未登录 或 未绑定小区 → 去我的页面认证
if (!token || !cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) {
if ( !cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) {
currentCommunity.value = '请去认证小区';
uni.setStorageSync('currentCommunity', '请去认证小区');
uni.showToast({
@@ -373,15 +373,10 @@ const moreClick = () =>{
}
</script>
<style lang="scss" scoped>
.content-class{
// margin: 0 20rpx;
// padding: 2rpx;
background-color: #f9f9f9;
padding-bottom: 100rpx;
box-sizing: border-box; /* 保证padding不会撑大容器 */
@@ -390,7 +385,6 @@ const moreClick = () =>{
.nar-top{
height: 400rpx;
width: 100%;
// background-color: #C0E4FB;
background: repeating-linear-gradient(to right, #EDF4FA , #C0E4FB);
position: absolute;