From a690229b69cfa0aba5a0352772c2bdc1cf9fdab0 Mon Sep 17 00:00:00 2001
From: MrShi <1878285526@qq.com>
Date: 星期三, 25 二月 2026 18:41:12 +0800
Subject: [PATCH] 调试

---
 mini-program/pagesA/pages/shop_points/shop_points.vue |   76 ++++++++++++++++++++++++++++++--------
 1 files changed, 60 insertions(+), 16 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..96bb747 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>
@@ -51,16 +52,28 @@
 			return {
 				currentPage:1,
 				total:0,
-				shop:{},
-				active:0,
-				hasNext:true,
 				dataList:[],
 				countData:{},
+				hasNext:true,
+				shop:{},
+				active:0,
+				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 = ''
+			 }
+		},
+		onLoad() {
+			 this.getBase64Img('/static/images/jifen_bg@2x.png')
 		},
 		onShow() {
 			 this.shop  ={}
@@ -68,12 +81,35 @@
 			 this.active=0
 			 this.shop = this.shopInfo || {}
 			 this.getCountData()
-			 this.currentPage = 0
-			 this.getDataList()
+			 this.getFirstPageData()
 		},
 		methods:{
+			getBase64Img(path){
+				var that =this
+				uni.getFileSystemManager().readFile({
+				  filePath: path, // 鏇挎崲涓轰綘鐨勫浘鐗囪矾寰�
+				  encoding: 'base64',
+				  success: (res) => {
+				    const base64Data = 'data:image/png;base64,' + res.data; // 鎷兼帴鍓嶇紑锛岀敤浜庨〉闈㈡樉绀�
+				    console.log('鍥剧墖Base64缂栫爜:', base64Data);
+				    // 鍙互灏� base64Data 缁戝畾鍒� data 涓紝鐢ㄤ簬椤甸潰灞曠ず
+				    that.backImage = base64Data;
+				  },
+				  fail: (err) => {
+				    console.error('璇诲彇鍥剧墖澶辫触:', err);
+				  }
+				});
+			},
+			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 +132,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 +154,9 @@
 						}
 					} 
 					this.loading=false
+			},
+			jumpBack(){
+				uni.navigateBack({ delta: 1 });
 			},
 			jumpService() {
 				uni.navigateTo({
@@ -177,6 +216,7 @@
 				border-radius: 16rpx;
 				margin-top: 30rpx;
 				padding: 34rpx 30rpx;
+				padding-bottom: 60rpx;
 				box-sizing: border-box;
 				.list-title {
 					width: 100%;
@@ -227,6 +267,10 @@
 								font-weight: 400;
 								font-size: 28rpx;
 								color: #222222;
+								display: -webkit-box;
+								-webkit-line-clamp: 1; /* 闄愬埗鏂囨湰涓�2琛� */
+								-webkit-box-orient: vertical;
+								overflow: hidden;
 							}
 							&:nth-child(2) {
 								font-weight: 400;

--
Gitblit v1.9.3