From 81e0ccf57455bfffb5e88ead7f0725ec6ade0d63 Mon Sep 17 00:00:00 2001
From: zhouyanli <593579392@qq.com>
Date: Wed, 5 Aug 2026 10:55:30 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dbug,=E6=B7=BB=E5=8A=A0?=
=?UTF-8?q?=E6=88=91=E7=9A=84=E7=A7=AF=E5=88=86=E9=A1=B5=E9=9D=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../pageSubPack/api/apiSub.js | 22 ++
.../pageSubPack/my/myPointsIndex.vue | 293 ++++++++++++++++++
.../pageSubPack/my/myPointsMall.vue | 232 ++++++++++++++
.../pageSubPack/my/myPointsOrder.vue | 229 ++++++++++++++
.../pageSubPack/my/myPointsRecord.vue | 190 ++++++++++++
.../service-list/complaintsDetail.vue | 4 +-
.../complaintsSuggestionsIndex.vue | 57 +++-
.../service-list/questionnaireSurveyIndex.vue | 7 +-
property-uniapp-project/pages.json | 25 ++
.../pages/myIndex/myIndex.vue | 33 +-
10 files changed, 1063 insertions(+), 29 deletions(-)
create mode 100644 property-uniapp-project/pageSubPack/my/myPointsIndex.vue
create mode 100644 property-uniapp-project/pageSubPack/my/myPointsMall.vue
create mode 100644 property-uniapp-project/pageSubPack/my/myPointsOrder.vue
create mode 100644 property-uniapp-project/pageSubPack/my/myPointsRecord.vue
diff --git a/property-uniapp-project/pageSubPack/api/apiSub.js b/property-uniapp-project/pageSubPack/api/apiSub.js
index 7aca36b..29744e7 100644
--- a/property-uniapp-project/pageSubPack/api/apiSub.js
+++ b/property-uniapp-project/pageSubPack/api/apiSub.js
@@ -284,4 +284,26 @@ export const getRevenueList = (data) =>{
// 详情
export const revenueDetails = (data) =>{
return get(`/api/resident/revenueNotice/${data.id}`)
+}
+
+// =======积分相关=========
+// 获取积分余额
+export const getPointsBalance = (data) => {
+ return get('/api/resident/points/balance', data)
+}
+// 获取积分商城商品列表
+export const getPointsMallList = (data) => {
+ return get('/api/resident/points/mall/list', data)
+}
+// 积分兑换
+export const postPointsExchange = (data) => {
+ return post('/api/resident/points/mall/exchange', data)
+}
+// 获取积分明细列表
+export const getPointsRecordList = (data) => {
+ return get('/api/resident/points/record/list', data)
+}
+// 获取积分兑换订单列表
+export const getPointsOrderList = (data) => {
+ return get('/api/resident/points/order/list', data)
}
\ No newline at end of file
diff --git a/property-uniapp-project/pageSubPack/my/myPointsIndex.vue b/property-uniapp-project/pageSubPack/my/myPointsIndex.vue
new file mode 100644
index 0000000..0f36480
--- /dev/null
+++ b/property-uniapp-project/pageSubPack/my/myPointsIndex.vue
@@ -0,0 +1,293 @@
+
+
+
+
+
+
+
+
+ {{ item.title }}
+
+
+
+
+
+ 虚拟兑换
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.desc }}
+ {{ item.points }}分
+
+
+
+ 更多积分兑换
+ >
+
+
+
+
+
+
+
+
diff --git a/property-uniapp-project/pageSubPack/my/myPointsMall.vue b/property-uniapp-project/pageSubPack/my/myPointsMall.vue
new file mode 100644
index 0000000..1f4dc4f
--- /dev/null
+++ b/property-uniapp-project/pageSubPack/my/myPointsMall.vue
@@ -0,0 +1,232 @@
+
+
+
+
+
+
+
+
+
+ {{ item.name }}
+ {{ item.description || '' }}
+
+
+ {{ item.points }}
+ 积分
+
+ 立即兑换
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/property-uniapp-project/pageSubPack/my/myPointsOrder.vue b/property-uniapp-project/pageSubPack/my/myPointsOrder.vue
new file mode 100644
index 0000000..ca71fa3
--- /dev/null
+++ b/property-uniapp-project/pageSubPack/my/myPointsOrder.vue
@@ -0,0 +1,229 @@
+
+
+
+
+
+
+
+
+
+
+ 兑换积分
+ {{ item.points }}积分
+
+
+ 兑换时间
+ {{ item.createTime }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/property-uniapp-project/pageSubPack/my/myPointsRecord.vue b/property-uniapp-project/pageSubPack/my/myPointsRecord.vue
new file mode 100644
index 0000000..e90730c
--- /dev/null
+++ b/property-uniapp-project/pageSubPack/my/myPointsRecord.vue
@@ -0,0 +1,190 @@
+
+
+
+
+
+
+
+
+ {{ item.title }}
+ {{ item.createTime }}
+
+
+
+ {{ item.type === 'income' ? '+' : '-' }}{{ item.points }}
+
+ 余额:{{ item.balance }}
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/property-uniapp-project/pageSubPack/service-list/complaintsDetail.vue b/property-uniapp-project/pageSubPack/service-list/complaintsDetail.vue
index 8f91712..10c0589 100644
--- a/property-uniapp-project/pageSubPack/service-list/complaintsDetail.vue
+++ b/property-uniapp-project/pageSubPack/service-list/complaintsDetail.vue
@@ -72,8 +72,8 @@ const photoList = ref([])
// 状态映射
const statusMap = {
'0': { text: '待处理', class: 'pending' },
- '1': { text: '处理中', class: 'processing' },
- '2': { text: '已完成', class: 'completed' }
+ // '1': { text: '处理中', class: 'processing' },
+ '1': { text: '已完成', class: 'completed' }
}
const statusText = computed(() => {
diff --git a/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue b/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue
index d069cfd..a2be6d2 100644
--- a/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue
+++ b/property-uniapp-project/pageSubPack/service-list/complaintsSuggestionsIndex.vue
@@ -1,9 +1,11 @@
-
-
+
+
+ {{ tab }}
+
@@ -19,8 +21,8 @@
@@ -55,7 +57,7 @@ import {onLoad} from '@dcloudio/uni-app'
import {getComplainList} from '../api/apiSub.js'
// 分段器
-const tabs = ref(["待处理", "处理中", "已完成"])
+const tabs = ref(["待处理", "已完成"])
const currentTab = ref(0)
const dataList = ref([])
@@ -67,8 +69,8 @@ const completedList = ref([])
// 状态映射
const statusMap = {
"0":'pending',
- '1':'processing',
- '2':'completed'
+ // '1':'processing',
+ '1':'completed'
}
// 接口数据映射为模板所需格式
const mapItem = (item) => {
@@ -177,8 +179,43 @@ const addComplaintsSuggestions = () => {
margin-bottom: 10rpx;
}
- .seg-control {
- margin-bottom: 20rpx;
+ .tab-wrap {
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+ padding: 10rpx 40rpx 20rpx;
+ }
+
+ .tab-item {
+ position: relative;
+ padding: 10rpx 0;
+ margin-right: 80rpx;
+ }
+
+ .tab-item:last-child {
+ margin-right: 0;
+ }
+
+ .tab-text {
+ font-size: 30rpx;
+ color: #999;
+ }
+
+ .tab-item.active .tab-text {
+ color: #007AFF;
+ font-weight: 600;
+ }
+
+ .tab-item.active::after {
+ content: '';
+ position: absolute;
+ bottom: 0;
+ left: 50%;
+ transform: translateX(-50%);
+ width: 96rpx;
+ height: 4rpx;
+ background: #2F77FD;
+ border-radius: 32rpx;
}
.card-wrapper {
diff --git a/property-uniapp-project/pageSubPack/service-list/questionnaireSurveyIndex.vue b/property-uniapp-project/pageSubPack/service-list/questionnaireSurveyIndex.vue
index 964fbb9..86c665c 100644
--- a/property-uniapp-project/pageSubPack/service-list/questionnaireSurveyIndex.vue
+++ b/property-uniapp-project/pageSubPack/service-list/questionnaireSurveyIndex.vue
@@ -48,7 +48,8 @@
diff --git a/property-uniapp-project/pages.json b/property-uniapp-project/pages.json
index a3a9091..bcbe6ab 100644
--- a/property-uniapp-project/pages.json
+++ b/property-uniapp-project/pages.json
@@ -225,6 +225,31 @@
"navigationStyle": "custom"
}
},
+ {
+ "path": "myPointsIndex",
+ "style": {
+ "navigationBarTitleText": "我的积分",
+ "navigationStyle": "custom"
+ }
+ },
+ {
+ "path": "myPointsMall",
+ "style": {
+ "navigationBarTitleText": "积分商城"
+ }
+ },
+ {
+ "path": "myPointsRecord",
+ "style": {
+ "navigationBarTitleText": "积分明细"
+ }
+ },
+ {
+ "path": "myPointsOrder",
+ "style": {
+ "navigationBarTitleText": "积分订单"
+ }
+ },
{
"path": "myHouseIndex",
"style": {
diff --git a/property-uniapp-project/pages/myIndex/myIndex.vue b/property-uniapp-project/pages/myIndex/myIndex.vue
index 2c906c5..f5b5d2a 100644
--- a/property-uniapp-project/pages/myIndex/myIndex.vue
+++ b/property-uniapp-project/pages/myIndex/myIndex.vue
@@ -3,7 +3,7 @@
-
+
{{loginName}}
@@ -25,7 +25,7 @@
style="align-self: flex-end;font-size: 24rpx;vertical-align: baseline;">{{ item.desc }}
-
+
@@ -51,25 +51,26 @@
import { requireLogin } from '@/common/checkLogin.js'
- const list = ref([{
- icon:'https://wuyeadmin.bugtc.com/images/propertyImgs/house.png',
+ const list = ref([
+ {
+ icon:'https://wuye.ckdzkj.com/images/propertyImgs/points.png',
+ title: "我的积分",
+ desc:'999'
+ },
+ {
+ icon:'https://wuye.ckdzkj.com/images/propertyImgs/house.png',
title: "我的房屋"
},
- // {
- // icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/user.png",
- // title: "住户管理",
- // // desc: "您可以在这里添加家人、朋友、租客~"
- // },
{
- icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/parking.png",
+ icon: "https://wuye.ckdzkj.com/images/propertyImgs/parking.png",
title: "我的车位"
},
{
- icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/car.png",
+ icon: "https://wuye.ckdzkj.com/images/propertyImgs/car.png",
title: "我的车辆"
},
{
- icon: "https://wuyeadmin.bugtc.com/images/propertyImgs/setting.png",
+ icon: "https://wuye.ckdzkj.com/images/propertyImgs/setting.png",
title: "设置"
}
])
@@ -101,7 +102,7 @@
if (!requireLogin()) return
const cachedVillageId = uni.getStorageSync('currentVillageId')
// 设置和我的房屋不需要绑定小区(我的房屋用于首次绑定)
- if (item.title !== '设置' && item.title !== '我的房屋') {
+ if (item.title !== '设置' && item.title !== '我的房屋' && item.title !== '我的积分') {
if (!cachedVillageId || cachedVillageId === '0' || cachedVillageId === 0) {
uni.showToast({ title: '未绑定小区,没有权限', icon: 'none', duration: 2000 })
return
@@ -129,7 +130,11 @@
url: '/pageSubPack/my/myCarIndex',
});
- } else if (item.title == '设置') {
+ } else if (item.title == '我的积分') {
+ uni.navigateTo({
+ url: '/pageSubPack/my/myPointsIndex'
+ });
+ } else if (item.title == '设置') {
goSetting()
}
}