From c6d666e54e413ebd581f284d070e7a48c7daca93 Mon Sep 17 00:00:00 2001
From: Lou <luzhiping@qqyjz.com>
Date: Tue, 23 Jan 2024 17:35:35 +0800
Subject: [PATCH] 物业评价修改,新增我的评价页面

---
 pages/home/index.vue                        |   60 ++++++++++----------
 pages.json                                  |    9 +++
 subPackage/user/commentList/commentList.vue |   80 ++++++++++++++++++++++++++
 subPackage/grid/tenement.vue                |    3 
 4 files changed, 121 insertions(+), 31 deletions(-)

diff --git a/pages.json b/pages.json
index b358d8c..37e562c 100644
--- a/pages.json
+++ b/pages.json
@@ -151,6 +151,15 @@
 						"navigationBarBackgroundColor": "#fff",
 						"navigationBarTextStyle": "black"
 					}
+				},
+				{
+					"path": "commentList/commentList",
+					"style": {
+						"navigationBarTitleText": "我的评价",
+						"enablePullDownRefresh": false,
+						"navigationBarBackgroundColor": "#fff",
+						"navigationBarTextStyle": "black"
+					}
 				}
 			]
 		},
diff --git a/pages/home/index.vue b/pages/home/index.vue
index df39874..b87ea7f 100644
--- a/pages/home/index.vue
+++ b/pages/home/index.vue
@@ -695,40 +695,40 @@
 						unitCode,
 						buildingCode
 					} = res.data;
-					if (isJur == 1) {
-						if (doorplateType == "户室牌") {
+					// if (isJur == 1) {
+					if (doorplateType == "户室牌") {
+						this.$u.func.globalNavigator(
+							`/subPackage/house/roomDetails/index?id=${code}&from=scan`, "navTo")
+					} else if (doorplateType == "中门牌") {
+						if (addressLevel == 4) { //自建房
 							this.$u.func.globalNavigator(
-								`/subPackage/house/roomDetails/index?id=${code}&from=scan`, "navTo")
-						} else if (doorplateType == "中门牌") {
-							if (addressLevel == 4) { //自建房
-								this.$u.func.globalNavigator(
-									`/subPackage/house/roomDetails/detail?code=${code}`, "navTo")
-							} else { //商铺
-								this.$u.func.globalNavigator(
-									`/subPackage/house/houseNumber/index?stdId=${code}`, "navTo")
-							}
-						} else if (doorplateType == "楼幢牌") {
-							let url = "/subPackage/house/family/index"
+								`/subPackage/house/roomDetails/detail?code=${code}`, "navTo")
+						} else { //商铺
 							this.$u.func.globalNavigator(
-								`${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&buildingCode=${buildingCode}&aoiCode=${aoiCode}&neiCode=${neiCode}`,
-								"navTo")
-						} else if (doorplateType == "单元牌") {
-							let url = "/subPackage/house/family/index"
-							this.$u.func.globalNavigator(
-								`${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&unitName=${unitName}&unitCode=${unitCode}&neiCode=${neiCode}&buildingCode=${buildingCode}`,
-								"navTo")
-						} else if (doorplateType == "大门牌") {
-							this.$u.func.globalNavigator(
-								`/subPackage/house/list/index?id=${code}&title=${aoiName}&neiName=${neiName}&address=${addressName}&neiCode=${neiCode}&aoiCode=${aoiCode}`,
-								"navTo")
+								`/subPackage/house/houseNumber/index?stdId=${code}`, "navTo")
 						}
-					} else {
-						uni.showModal({
-							title: "提示!",
-							content: "该区域不是您管辖范围",
-							showCancel: false
-						})
+					} else if (doorplateType == "楼幢牌") {
+						let url = "/subPackage/house/family/index"
+						this.$u.func.globalNavigator(
+							`${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&buildingCode=${buildingCode}&aoiCode=${aoiCode}&neiCode=${neiCode}`,
+							"navTo")
+					} else if (doorplateType == "单元牌") {
+						let url = "/subPackage/house/family/index"
+						this.$u.func.globalNavigator(
+							`${url}?id=${code}&address=${addressName}&neiName=${neiName}&housingName=${aoiName}&buildingName=${buildingName}&unitName=${unitName}&unitCode=${unitCode}&neiCode=${neiCode}&buildingCode=${buildingCode}`,
+							"navTo")
+					} else if (doorplateType == "大门牌") {
+						this.$u.func.globalNavigator(
+							`/subPackage/house/list/index?id=${code}&title=${aoiName}&neiName=${neiName}&address=${addressName}&neiCode=${neiCode}&aoiCode=${aoiCode}`,
+							"navTo")
 					}
+					// } else {
+					// 	uni.showModal({
+					// 		title: "提示!",
+					// 		content: "该区域不是您管辖范围",
+					// 		showCancel: false
+					// 	})
+					// }
 				})
 			},
 
diff --git a/subPackage/grid/tenement.vue b/subPackage/grid/tenement.vue
index bc42d84..d0a6b9c 100644
--- a/subPackage/grid/tenement.vue
+++ b/subPackage/grid/tenement.vue
@@ -127,7 +127,8 @@
 					isRec: 1,
 					page: 1,
 					size: 10,
-					propertyCompanyId: this.id
+					propertyCompanyId: this.id,
+					checkStatus: 2
 				}).then(res => {
 					console.log(res)
 					this.commentList = res.data.records
diff --git a/subPackage/user/commentList/commentList.vue b/subPackage/user/commentList/commentList.vue
new file mode 100644
index 0000000..81ee670
--- /dev/null
+++ b/subPackage/user/commentList/commentList.vue
@@ -0,0 +1,80 @@
+<template>
+	<view class="">
+		<z-paging ref="paging" v-model="list" @query="queryList" :refresher-enabled="false"
+			loading-more-no-more-text="没有更多了">
+			<view class="bgc-ff">
+				<u-tabs :list="tabList" :current="tabIndex" @click="changeTab" :inactiveStyle="{color:'#999999'}"
+					:activeStyle="{color:'#017BFC'}" :scrollable="false">
+				</u-tabs>
+			</view>
+
+			<view class="">
+
+			</view>
+		</z-paging>
+	</view>
+</template>
+
+<script>
+	import {
+		getTenementComment
+	} from "@/api/grid/grid.js"
+	export default {
+		data() {
+			return {
+				tabList: [
+
+					{
+						name: "物业公司"
+					},
+					{
+						name: "通知公告"
+					},
+				],
+				tabIndex: 0,
+				list: []
+			}
+		},
+
+
+		methods: {
+
+
+			changeTab(e) {
+				this.tabIndex = e.index;
+				this.$refs.paging.reload()
+			},
+
+
+			queryList(pageNo, pageSize) {
+				if (this.tabIndex == 0) {
+					this.getTenementCommentList(pageNo, pageSize)
+				} else {
+					this.getArticleCommentList(pageNo, pageSize)
+				}
+			},
+
+			getTenementCommentList(page, size) {
+				getTenementComment({
+					isRec: 1,
+					page: page,
+					size: size,
+					propertyCompanyId: this.id,
+					checkStatus: 2,
+					createUser: uni.getStorageSync("userInfo").user_id
+				}).then(res => {
+					console.log(res)
+					this.$refs.paging.complete(res.data.records);
+				})
+			},
+
+			getArticleCommentList(page, size) {
+
+			}
+
+		}
+	}
+</script>
+
+<style>
+</style>
\ No newline at end of file

--
Gitblit v1.9.3