| 
					
				 | 
			
			
				@@ -15,6 +15,7 @@ import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getBrowseRecordCount, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getBrowseRecords, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getBrowseRecordRemarks, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  getReferralDynamics, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } from '@/core/libs/agent-requests' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   desinTopBg, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -60,6 +61,9 @@ const followUpQuery = computed(() => ({ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const { data: browseRecordCount, run: setBrowseRecordCount } = useRequest(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   getBrowseRecordCount(id.value), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const { data: referralDynamics, run: setReferralDynamics } = useRequest(() => 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  getReferralDynamics(id.value), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 console.log('browseRecordCount data', data) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const browseRecordCountItems = computed(() => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -102,6 +106,20 @@ const browseRecordCountItems = computed(() => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     subValue: browseRecordCount.value?.customersAcquiredYear ?? 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 ]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const referraItems = computed(() => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title: '推荐设计师', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    subTitle: '本年', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    value: referralDynamics.value?.referrerStylist ?? 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    subValue: referralDynamics.value?.thisYearReferrerStylist ?? 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    title: '引荐加成奖励', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    subTitle: '本年', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    value: referralDynamics.value?.referralBonus ?? 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+    subValue: referralDynamics.value?.thisYearReferralBonus ?? 0, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const recentActivities = computed(() => [ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   { label: '最近浏览品牌', value: '' }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   { label: '最近到店品牌', value: '' }, 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -118,6 +136,9 @@ const toOrderDetails = (it: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const toArchives = () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   uni.navigateTo({ url: '/pages/agent/designer/archives/index?id=' + id.value }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+const toRefferrer= () => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  uni.navigateTo({ url: '/pages/mine/refferrer/index?id=' + id.value }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 const formatDuration = (duration: number) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   if (duration < 60) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     return `${duration}秒` 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -149,8 +170,8 @@ function formatDuration1(seconds) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 onLoad(async (query) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   id.value = query?.id 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				   await setData() 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  await Promise.all([setBrowseRecordCount()]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-  console.log(browseRecordCount.value) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  await Promise.all([setBrowseRecordCount(),setReferralDynamics()]) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+  console.log(referralDynamics.value) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 }) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 </script> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -309,6 +330,47 @@ onLoad(async (query) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				               </ListHelperEvo> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           </Card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		   
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  <Card custom-class="my-4"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		    <div class="flex items-center justify-between"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		      <div class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		        引荐动态 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		      </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+			  <div class="text-black/40 text-[24rpx] font-['PingFang_SC']" @click="toRefferrer">查看详情</div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		    <div class="mt-3"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		      <ListHelperEvo 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		        :content-class="`grid grid-cols-3 gap-2.5`" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		        :items="referraItems" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		        custom-class="grid grid-cols-3 gap-2.5" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		      > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		        <template #default="{ item }"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		          <div class="rounded-lg aspect-[1/1] flex flex-col justify-around p-2.5"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              class="text-black/60 text-xs font-normal font-['PingFang_SC'] leading-none" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              {{ item.title }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            <div class="text-black/90 text-lg font-bold font-['D-DIN_Exp'] leading-normal"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              {{ item.value }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            <div class="flex items-center gap-1 whitespace-nowrap"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		                class="text-black/40 text-xs font-normal font-['PingFang_SC'] leading-none" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		                {{ item.subTitle }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              <div 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		                class="text-black/90 text-xs font-normal font-['D-DIN_Exp'] leading-norma" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              > 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		                {{ item.subValue }} 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		              </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		            </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		          </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		        </template> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		      </ListHelperEvo> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		    </div> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+		  </Card> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				           <div class="my-4"> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             <Card> 
			 |