From 984c79350a50ed23692808fbdb12d7df9e0f934a Mon Sep 17 00:00:00 2001
From: wangzimeng <3297159934@qq.com>
Date: Fri, 25 Jul 2025 18:05:25 +0800
Subject: [PATCH] =?UTF-8?q?1=E3=80=81=E6=94=B6=E8=97=8F=E4=B8=A4=E4=B8=AA?=
=?UTF-8?q?=E4=B8=80=E8=A1=8C=E5=B1=95=E7=A4=BA=E5=88=97=E8=A1=A8=E7=9A=84?=
=?UTF-8?q?css=E8=B0=83=E6=95=B4=202=E3=80=81=E9=A3=9F=E5=A0=82=E6=8B=9B?=
=?UTF-8?q?=E7=A7=9F=E5=88=97=E8=A1=A8=E7=9A=84=E5=88=97=E8=A1=A8=E6=94=B9?=
=?UTF-8?q?=E4=B8=BAscroll-view=E7=9A=84=E5=86=85=E9=83=A8=EF=BC=8C?=
=?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=8A=A0=E8=BD=BD=E6=9B=B4=E5=A4=9A=E5=92=8C?=
=?UTF-8?q?=E4=B8=8B=E6=9D=A5=E5=88=B7=E6=96=B0=E7=9A=84=E6=96=B9=E6=B3=95?=
=?UTF-8?q?=203=E3=80=81=E5=B9=B3=E5=8F=B0=E5=AD=A6=E9=99=A2=E5=88=97?=
=?UTF-8?q?=E8=A1=A8=E6=94=B9=E4=B8=BAscroll-view=E7=9A=84=E5=86=85?=
=?UTF-8?q?=E9=83=A8=EF=BC=8C=E6=96=B0=E5=A2=9E=E5=8A=A0=E8=BD=BD=E6=9B=B4?=
=?UTF-8?q?=E5=A4=9A=E5=92=8C=E4=B8=8B=E6=9D=A5=E5=88=B7=E6=96=B0=E7=9A=84?=
=?UTF-8?q?=E6=96=B9=E6=B3=95=204=E3=80=81=E9=A3=9F=E5=A0=82=E8=AF=A6?=
=?UTF-8?q?=E6=83=85=E9=A1=B5=E9=9D=A2=EF=BC=9A=E8=AF=A6=E6=83=85=E9=9D=99?=
=?UTF-8?q?=E6=80=81+=E6=95=B0=E6=8D=AE=E5=AF=B9=E6=8E=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
pages/canteenRent/rentDetail.vue | 466 ++++++++++++++++++++++++++++++-
pages/canteenRent/rentList.vue | 126 ++++++---
pages/index/index.vue | 2 +-
pages/school/schoolIndex.vue | 273 ++++++++++++------
pages/user/goods-collect.vue | 12 +-
sheep/api/rent.js | 17 +-
6 files changed, 750 insertions(+), 146 deletions(-)
diff --git a/pages/canteenRent/rentDetail.vue b/pages/canteenRent/rentDetail.vue
index 907e06e..408b895 100644
--- a/pages/canteenRent/rentDetail.vue
+++ b/pages/canteenRent/rentDetail.vue
@@ -1,9 +1,473 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ {{currentImgIndex}}/{{imagesNum}}
+
+
+
+
+
+
+ {{detailRent.platform_title}}
+
+
+
+ {{e}}
+
+
+
+
+
+
+
+
+
+ {{detailRent.user?.nickname}}
+
+ 项目类型: {{detailRent.type_text}}
+
+
+
+
+ {{detailRent.views}}
+
+
+
+
+
+
+
+
+
+
+
+
+ {{detailRent.release_time_text}}
+
+
+
+
+
+ {{detailRent.address_detail}}
+
+
+
+
+
+
+ 详细介绍
+
+
+ {{detailRent.content}}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/pages/canteenRent/rentList.vue b/pages/canteenRent/rentList.vue
index 3909a94..45c6da7 100644
--- a/pages/canteenRent/rentList.vue
+++ b/pages/canteenRent/rentList.vue
@@ -9,7 +9,7 @@
+ @confirm="searchRent" />
@@ -25,8 +25,11 @@
-
- {{dictLabel || '标签'}}
+
+
+ {{dictLabel || '标签'}}
@@ -41,48 +44,55 @@
-
-
-
-
-
-
-
-
-
-
- {{item.platform_title}}
-
-
-
- {{e}}
-
+
+
+
+
+
+
+
+
+
+
+
+ {{item.platform_title}}
+
+
+
+ {{e}}
+
+
-
-
-
-
-
-
- {{item.address_city_text}}
-
- {{item.release_time_text}}
-
-
- {{item.views}}
+
+
+
+
+
+ {{item.address_city_text}}
+
+
+ {{item.release_time_text}}
+
+
+ {{item.views}}
+
-
+
+
@@ -164,7 +174,7 @@
const proCity = ref(''); //省市页面显示
function searchRent() {
- console.log('搜索',listQuery.value.keywords);
+ console.log('搜索', listQuery.value.keywords);
getList()
}
@@ -216,6 +226,7 @@
}
const rentList = ref([])
+ const rentCount = ref(0)
//招租列表
async function getList() {
const res = await sheep.$api.rent.rentlist({
@@ -232,7 +243,7 @@
if (res.data && res.data.list) {
rentList.value = res.data.list;
-
+ rentCount.value = res.data.count;
// Safely process each item
rentList.value = rentList.value.map(item => {
// Create a new object with all properties from the original item
@@ -256,8 +267,44 @@
// for(let i=0;i {
+ homrS.value = false;
+ uni.hideLoading();
+ uni.stopPullDownRefresh();
+ }, 2000)
+ }
+ // 重置列表
+ function resetLists() {
+ listQuery.value.page = 1;
+ rentList.value = [];
+ // loadStatus.value = "loading";
+ }
+
+ function toDetail(e){
+ console.log('跳转详情',e);
+ uni.navigateTo({
+ url:'/pages/canteenRent/rentDetail?id=' + e.id
+ })
+ }
+
\ No newline at end of file
diff --git a/pages/user/goods-collect.vue b/pages/user/goods-collect.vue
index e75a9a4..53dbd89 100644
--- a/pages/user/goods-collect.vue
+++ b/pages/user/goods-collect.vue
@@ -248,9 +248,9 @@
title: '加载中...'
});
resetLists();
- if(currentTab.value == 0){
+ if (currentTab.value == 0) {
getRentList();
- }else {
+ } else {
getSchoolList();
}
setTimeout(() => {
@@ -407,12 +407,8 @@
padding: 0 30rpx;
display: grid;
grid-template-columns: repeat(2, 1fr);
- ;
- grid-gap: 20px;
- // display: flex;
- // justify-content: center;
- // align-items: center;
-
+ grid-gap: 20rpx;
+ box-sizing: border-box;
.list-item {
width: 330rpx;
diff --git a/sheep/api/rent.js b/sheep/api/rent.js
index 2637460..2f6b8d8 100644
--- a/sheep/api/rent.js
+++ b/sheep/api/rent.js
@@ -21,14 +21,13 @@ export default {
showLoading: false,
},
}),
- // detail: (id, user_coupon_id) =>
- // request({
- // url: 'coupon/detail',
- // method: 'GET',
- // params: {
- // id: id,
- // user_coupon_id,
- // },
- // }),
+ rentInfo: (id) =>
+ request({
+ url: 'meal.information/detail',
+ method: 'GET',
+ params: {
+ id: id,
+ },
+ }),
};
\ No newline at end of file