Browse Source

bug修改

赵添更 1 week ago
parent
commit
f399af6d5d

+ 3 - 3
packages/merchant/src/core/libs/agent-requests.ts

@@ -326,8 +326,8 @@ export const getBrowseRecordCount = (stylistId: number) =>
  */
 export const getReferralDynamics = (stylistId: number) =>
   httpGet<ReferralRes>(
-    `/app-api/member/distribute/referralDynamics?userId=${stylistId}`,
-  )  
+    `/app-api/member/distribute/referralDynamics?referrerId=${stylistId}`,
+  )
 /**
  * /app-api/member/browse-record/page 浏览记录
  * @param query
@@ -349,7 +349,7 @@ export const getSalesOrdersCounts = (query = {}) =>
       { label: '累计成交订单数', value: res.data.orderCount ?? 0,type: 2 },
       { label: '累计成交金额', value: res.data.salesAmount ?? 0 ,type: 2},
 	  { label: '历史记录', value:encodeURIComponent(JSON.stringify(res.data.history)), type: 2},
-      { label: '其他销售信息', value: `${res.data.otherSale ?? 0}条` },	  
+      { label: '其他销售信息', value: `${res.data.otherSale ?? 0}条` },
     ],
   }))
 /**

+ 4 - 4
packages/merchant/src/pages/mine/refferrer/details.vue

@@ -11,9 +11,9 @@ import { ComponentExposed } from 'vue-component-type-helpers'
 
 const PageHelperEvoRef = ref<ComponentExposed<typeof PageHelperEvo>>()
 const referrerId = ref<number | string>('')
-const { data: count, run: setCount } = useRequest(() => referrerCount({ userId:id.value }))
-const queryReward = computed(() => ({ status: tabsReward.value[tab.value]?.value,userId:id.value }))
-const queryRecommend = computed(() => (referrerId.value?{ auditStatus: tabsRecommend.value[tab.value]?.value, referrerId:referrerId.value,userId:id.value }:{auditStatus: tabsRecommend.value[tab.value]?.value,userId:id.value}))
+const { data: count, run: setCount } = useRequest(() => referrerCount({ referrerId:id.value }))
+const queryReward = computed(() => ({ status: tabsReward.value[tab.value]?.value,referrerId:id.value }))
+const queryRecommend = computed(() => (referrerId.value?{ auditStatus: tabsRecommend.value[tab.value]?.value, referrerId:referrerId.value,userId:id.value }:{auditStatus: tabsRecommend.value[tab.value]?.value,referrerId:id.value}))
 
 const id = ref()
 const type = ref("recommend")
@@ -73,7 +73,7 @@ onLoad(async(options)=>{
 	if(options?.type === "recommend"){
 		uni.setNavigationBarTitle({
 			title:"我的推荐"
-		})		
+		})
 	}else{
 		uni.setNavigationBarTitle({
 			title:"奖励明细"

+ 3 - 3
packages/merchant/src/pages/mine/refferrer/index.vue

@@ -6,8 +6,8 @@ import Card from '@/components/card.vue'
 import { phone, right } from '../../../core/libs/svgs'
 import { referrerCount, distributePointsSum } from '../../../core/libs/requests'
 const id = ref()
-const { data: count, run: setCount } = useRequest(() => referrerCount({ userId:id.value }))
-const { data: pointsSum, run: setPointsSum} = useRequest(() => distributePointsSum({ userId:id.value }))
+const { data: count, run: setCount } = useRequest(() => referrerCount({ referrerId:id.value }))
+const { data: pointsSum, run: setPointsSum} = useRequest(() => distributePointsSum({ referrerId:id.value }))
 const handleClick = (path) => {
   uni.navigateTo({ url: path })
 }
@@ -80,7 +80,7 @@ onLoad(async (query?: Record<string | 'id', any>) => {
 		  <view class="bg-[#F2F2F2] flex px-[32rpx] py-[10rpx] text-[24rpx] text-black/40 rounded-full items-center">
 			  <text class="mr-[10rpx]">待入账:{{ pointsSum.waitPoints }}积分</text>
 			  <icon @click="tips" type="info_circle" size="16" color="#999"></icon>
-		  </view>	  
+		  </view>
 	  </view>
 	  <div class="flex">
 		<div class="w-[50%]">