Compare commits

...

2 Commits

Author SHA1 Message Date
zhouyanli
1a70937fc0 Merge branch 'main' of http://gitea.bugtc.com/zhouyanli/property-resident-side 2026-04-20 15:41:02 +08:00
zhouyanli
2a9dc159b1 修改禁用按钮样式 2026-04-20 15:40:43 +08:00
6 changed files with 46 additions and 14 deletions

View File

@@ -31,4 +31,8 @@
/* line-height: 1.6 !important; */ /* line-height: 1.6 !important; */
padding: 0 !important; padding: 0 !important;
} }
button:after{
border-radius: 50px;
}
</style> </style>

View File

@@ -21,3 +21,8 @@ export const getLoginBySms = (data) =>{
export const getResetPassword = (data) =>{ export const getResetPassword = (data) =>{
return post('/api/resident/auth/resetPassword',data) return post('/api/resident/auth/resetPassword',data)
} }
// =========首页=======
// 查询小区列表
export const getVillageList = () =>{
return get('/api/resident/village/list')
}

View File

@@ -38,6 +38,7 @@
</view> </view>
<view class="noticeClass" @click="getNoticeMore"> <view class="noticeClass" @click="getNoticeMore">
<image src="/static/首页/公告.png" style="width: 38px;height: 38px;position: absolute;top: 21px;left: 17px;"></image> <image src="/static/首页/公告.png" style="width: 38px;height: 38px;position: absolute;top: 21px;left: 17px;"></image>
<view class="col-line"></view>
<uni-notice-bar show-icon :text="noticeText" type="line" <uni-notice-bar show-icon :text="noticeText" type="line"
:showIcon="false" show-get-more scrollable color="#000" background-color="#fff" moreColor="#000"> :showIcon="false" show-get-more scrollable color="#000" background-color="#fff" moreColor="#000">
</uni-notice-bar> </uni-notice-bar>

View File

@@ -307,6 +307,7 @@ onUnmounted(() => {
.login-btn:disabled { .login-btn:disabled {
background-color: #99c8ff; background-color: #99c8ff;
color: #fff; color: #fff;
border-radius: 50px;
} }
/* 底部链接 */ /* 底部链接 */

View File

@@ -257,6 +257,8 @@ const handleLogin = () => {
.login-btn:disabled { .login-btn:disabled {
background-color: #99c8ff; background-color: #99c8ff;
color: #fff; color: #fff;
} }
.bottom-link { .bottom-link {

View File

@@ -98,6 +98,8 @@
<script setup> <script setup>
import { ref, computed, onMounted, watch } from 'vue' import { ref, computed, onMounted, watch } from 'vue'
import {onLoad} from '@dcloudio/uni-app'
import {getVillageList} from "/pages/api/api.js"
// 响应式数据 // 响应式数据
const searchText = ref('') const searchText = ref('')
@@ -129,20 +131,6 @@ const allCommunities = ref([
{ id: 9, name: '万科城市花园', address: '万城市余杭区文一西路299号' }, { id: 9, name: '万科城市花园', address: '万城市余杭区文一西路299号' },
{ id: 10, name: '保利中央公园', address: '保利市拱墅区莫干山路500号' }, { id: 10, name: '保利中央公园', address: '保利市拱墅区莫干山路500号' },
{ id: 11, name: '龙湖天街小区', address: '龙湖市滨江区江南大道100号' }, { id: 11, name: '龙湖天街小区', address: '龙湖市滨江区江南大道100号' },
// { id: 12, name: '华润幸福里', address: '华润市萧山区市心北路200号' },
// { id: 13, name: '融创壹号院', address: '融创市余杭区文二西路300号' },
// { id: 14, name: '中海国际社区', address: '中海市西湖区天目山路400号' },
// { id: 15, name: '世茂江滨花园', address: '世茂市江干区钱江路500号' },
// { id: 16, name: '恒大御景湾', address: '恒大市拱墅区湖墅南路600号' },
// { id: 17, name: '碧桂园凤凰城', address: '碧桂园市滨江区滨康路700号' },
// { id: 18, name: '万科金色家园', address: '万科市萧山区金城路800号' },
// { id: 19, name: '绿城桂花城', address: '绿城市西湖区文三路900号' },
// { id: 20, name: '滨江金色海岸', address: '滨江市江干区下沙路1000号' },
// { id: 21, name: '远洋公馆', address: '远洋市拱墅区莫干山路1100号' },
// { id: 22, name: '龙湖春江彼岸', address: '龙湖市滨江区闻涛路1200号' },
// { id: 23, name: '融信蓝孔雀', address: '融信市西湖区学院路1300号' },
// { id: 24, name: '德信早安', address: '德信市余杭区良睦路1400号' },
// { id: 25, name: '宋都阳光国际', address: '宋都市江干区下沙路1500号' }
]) ])
// 计算属性 // 计算属性
@@ -151,6 +139,37 @@ const totalPages = computed(() => {
}) })
// 方法 // 方法
// 查询小区列表
const getCommunityList = () =>{
let params = {
keyword:searchText.value
}
getVillageList(params).then(res =>{
console.log('1111',res)
if(res.code === 200){
allCommunities.value = res.data
uni.showToast({
title:"查询成功",
icon:'success'
})
}else{
allCommunities.value = []
uni.showToast({
title:"查询失败",
icon:'error'
})
}
})
}
onLoad(() =>{
getCommunityList()
})
// 加载分页数据 // 加载分页数据
const loadPageData = (pageNum) => { const loadPageData = (pageNum) => {
isLoading.value = true isLoading.value = true