From 599cbbfede5e74d928c987434844a74ce2002694 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期三, 11 二月 2026 15:00:57 +0800
Subject: [PATCH] 小程序

---
 mini-program/pagesA/pages/shop_points/shop_points.vue |   47 ++++++++++++++++++++++++++++++++++-------------
 1 files changed, 34 insertions(+), 13 deletions(-)

diff --git a/mini-program/pagesA/pages/shop_points/shop_points.vue b/mini-program/pagesA/pages/shop_points/shop_points.vue
index abb3394..15ae9ff 100644
--- a/mini-program/pagesA/pages/shop_points/shop_points.vue
+++ b/mini-program/pagesA/pages/shop_points/shop_points.vue
@@ -4,10 +4,10 @@
 		<view class="info-rule" @click="jumpService">绉垎瑙勫垯</view>
 		<view class="head" :style="{ backgroundImage: 'url(' + backImage + ')', height: 'calc(' + (navHeight + statusbarHeight + 'px + 376rpx)') }">
 			<view :style="{ width: '100%', height: navHeight + statusbarHeight + 'px' }"></view>
-			<view class="head-bar" :style="{ height: navHeight + statusbarHeight + 'px' }">
+			<view class="head-bar" :style="{ height: navHeight + statusbarHeight + 'px' , backgroundImage: 'url(' + backHeadImage + ')'}">
 				<view :style="{ width: '100%', height: statusbarHeight + 'px' }"></view>
-				<view class="head-bar-nav" :style="{ height: navHeight + 'px' }" @click="openLoacing">
-					<image src="/static/icon/nav_ic_bac@2x.png" mode="widthFix"></image>
+				<view class="head-bar-nav" :style="{ height: navHeight + 'px' }" >
+					<image src="/static/icon/nav_ic_bac@2x.png" mode="widthFix" @click="jumpBack"></image>
 					<text>鎴戠殑绉垎</text>
 					<image src="/static/icon/nav_ic_bac@2x.png" mode="widthFix" style="opacity: 0;"></image>
 				</view>
@@ -29,13 +29,14 @@
 						<view  :class="'list-title-cate-row '+(active ==2?'active':'')" @click="changeActive(2)">鎵i櫎</view>
 					</view>
 				</view>
-				<view class="list-item">
+				<view class="list-item"  v-for="(item, index) in dataList" :key="index">
 					<view class="list-item-left">
-						<text>璐拱鍟嗗搧锛岃幏寰�100绉垎</text>
-						<text>2025-11-21 09:00:00</text>
+						<text>{{item.content || ''}}</text>
+						<text>{{item.createDate || ''}}</text>
 					</view>
-					<view class="list-item-num">+100</view>
+					<view class="list-item-num" :style="item.type==1?'color:red':''">{{item.type==1?'-':'+'}}{{item.num||0}}</view>
 				</view>
+				<view v-if="!hasNext" class="nomore">宸插姞杞藉叏閮�</view>
 			</view>
 		</view>
 	</view>
@@ -56,11 +57,20 @@
 				hasNext:true,
 				dataList:[],
 				countData:{},
+				backHeadImage:'',
 				backImage: require('@/static/images/jifen_bg@2x.png')
 			};
 		},
 		onReachBottom(){
 			this.getDataList( );
+		},
+		onPageScroll(e){
+			 console.log('鍏ㄥ眬椤甸潰婊氬姩', e);
+			 if(e.scrollTop >= 20){
+				 this.backHeadImage = this.backImage
+			 }else{
+				  this.backHeadImage = ''
+			 }
 		},
 		onShow() {
 			 this.shop  ={}
@@ -68,12 +78,19 @@
 			 this.active=0
 			 this.shop = this.shopInfo || {}
 			 this.getCountData()
-			 this.currentPage = 0
-			 this.getDataList()
+			 this.getFirstPageData()
 		},
 		methods:{
+			getFirstPageData(){
+				this.currentPage = 0
+				this.hasNext=true
+				this.total=0
+				this.dataList=[]
+				this.getDataList()
+			},
 			changeActive(index){
-				this.getCountData(index)
+				this.active=index
+				this.getFirstPageData()
 			},
 			showRule(){
 				 console.log("==================================",this.showPhone)
@@ -96,11 +113,11 @@
 						this.dataList=[]
 					}
 					var that =this 
-					let res = await that.$u.api.shopOrderPage({
+					let res = await that.$u.api.findIntegralRecordPage({
 							capacity:10,
 							model: {
-								receiveType: 1, 
-								status: 1
+								type: this.active === 1?0:(this.active===2?1:''), 
+								userType: 1
 							},
 							page:this.currentPage
 						});
@@ -118,6 +135,9 @@
 						}
 					} 
 					this.loading=false
+			},
+			jumpBack(){
+				uni.navigateBack({ delta: 1 });
 			},
 			jumpService() {
 				uni.navigateTo({
@@ -177,6 +197,7 @@
 				border-radius: 16rpx;
 				margin-top: 30rpx;
 				padding: 34rpx 30rpx;
+				padding-bottom: 60rpx;
 				box-sizing: border-box;
 				.list-title {
 					width: 100%;

--
Gitblit v1.9.3