| 
					
				 | 
			
			
				@@ -3,16 +3,17 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	<s-layout class="wallet-wrap" :bgStyle="{'backgroundColor':'#ffffff'}" title="我的积分" navbar="normal"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		<view class="score-box bg-white ss-flex-col ss-row-center ss-col-center"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="ss-m-b-10  circle value-box ss-flex ss-row-center" :style="circleStyle"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<view >积分</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<view>积分</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			<view class="ss-m-b-30 ss-font-40"  :style="{color:percentageColor}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			<view class="ss-m-b-30 ss-font-40" :style="{color:percentageColor}"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<text class="all-title ss-m-r-8">{{ points2point(userWallet.integralDO.currentQuota) }}</text> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			</view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view class="ss-m-b-40"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				<view class="all-title ss-m-r-8"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<!--  --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					<button class="btn ss-reset-button" @tap="sheep.$router.go('/pages/goods/list', { categoryId: 98 })"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					<button class="btn ss-reset-button" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+						@tap="sheep.$router.go('/pages/goods/list', { categoryId: 98 })"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						兑换 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					</button> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 				</view> 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -20,8 +21,8 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<!-- 分割线 --> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<view style="width: 100%;height: 20rpx;background-color: #ececec;"></view> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			<uni-list :border="false" class="ss-p-t-10 ss-w-100"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-				<uni-list-item clickable @tap="sheep.$router.go('/pages/user/wallet/maxScoreLog')" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-					title="当前可获得峰值" showArrow :border="false"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+				<uni-list-item clickable @tap="sheep.$router.go('/pages/user/wallet/maxScoreLog')" title="当前可获得峰值" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+					showArrow :border="false"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 					<template v-slot:body> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 						<p style="width: 100%"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 							当前可获得峰值:{{ points2point(userWallet.integralDO.currentQuota) }}/{{ points2point(userWallet.integralDO.highQuota) }} 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -85,10 +86,10 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		resetPagination 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} from '@/sheep/util'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	import ScoreApi from '@/sheep/api/distri/score'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	import ScoreLog from './ScoreLog' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	import richtext from '@/pages/public/richtext' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const userWallet = computed(() => sheep.$store('user').userWallet); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const statusBarHeight = sheep.$platform.device.statusBarHeight * 2; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const userInfo = computed(() => sheep.$store('user').userInfo); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -112,61 +113,29 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const pointsPercentage = computed(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		const currentQuota = parseFloat(points2point(userWallet.value.integralDO.currentQuota)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		const highQuota =parseFloat(points2point(userWallet.value.integralDO.highQuota)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		const highQuota = parseFloat(points2point(userWallet.value.integralDO.highQuota)) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		if (currentQuota > highQuota) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			const percentage = (currentQuota / highQuota) * 100; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return Math.min(percentage, 100); // 确保百分比不会超过100 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const percentageColor = computed(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if (pointsPercentage.value>=90) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		if (pointsPercentage.value >= 90) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return '#fe0000'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		} else if(pointsPercentage.value>=75){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		} else if (pointsPercentage.value >= 75) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return '#d8b800'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			return '#0c912f'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	const circleStyle = computed(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	      return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	        // background: `conic-gradient(${percentageColor.value} ${pointsPercentage.value}%, #ddd ${pointsPercentage.value}%)` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	        background: percentageColor.value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	      }; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	    }); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	async function getLogList(isFreeze) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		state.loadStatus = 'loading'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		// isFreeze为true是冻结积分 isFreeze为false是已拿到的积分 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		let { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			code, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			data 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		} = await ScoreApi.getScoreApi({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pageNo: state.pagination.pageNo, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			pageSize: state.pagination.pageSize, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			isFreeze: isFreeze 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if (code !== 0) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		let list = _.concat(state.pagination.list, data.list); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		state.pagination.list = list; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		state.pagination.total = data.total; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		state.loadStatus = state.pagination.list.length < state.pagination.total ? 'more' : 'noMore'; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	function onLoadMore(isFreeze) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		if (state.loadStatus === 'noMore') { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-			return; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		state.pagination.pageNo++; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		getLogList(isFreeze); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-	onReachBottom(() => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		onLoadMore(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		return { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			// background: `conic-gradient(${percentageColor.value} ${pointsPercentage.value}%, #ddd ${pointsPercentage.value}%)` 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			background: percentageColor.value 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		}; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	}); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -176,7 +145,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		width: 100px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		height: 100px; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		border-radius: 50%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	.circle::before { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -212,13 +181,13 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		display: flex; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		align-items: center; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		box-sizing: border-box; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		color:  var(--ui-BG-Main); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		color: var(--ui-BG-Main); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	.head-nav>view { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		padding-bottom: 10rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-		border-bottom: 4rpx solid  var(--ui-BG-Main); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		border-bottom: 4rpx solid var(--ui-BG-Main); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 	.uni-list-item { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -245,6 +214,7 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		height: 100rpx; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		border-radius: 50%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		overflow: hidden; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 		.avatar-img { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			width: 100%; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 			height: 100%; 
			 |