|
@@ -10,9 +10,9 @@ import NavbarEvo from '@/components/navbar-evo.vue'
|
|
|
import {
|
|
|
getFollowUpPage,
|
|
|
getPointsCounts,
|
|
|
- getPointsCountToArray,
|
|
|
getUserInfoById,
|
|
|
-} from '../../../core/libs/agent-requests'
|
|
|
+ getPointsOrders,
|
|
|
+} from '@/core/libs/agent-requests'
|
|
|
import {
|
|
|
desinTopBg,
|
|
|
rightArrowIcon,
|
|
@@ -27,9 +27,9 @@ import PageHelperEvo from '@/components/page-helper-evo.vue'
|
|
|
import { dayjs } from 'wot-design-uni'
|
|
|
import { toHomePage } from '@/core/libs/actions'
|
|
|
import arcBottom from '@designer-hub/assets/src/libs/assets/arcBottom'
|
|
|
+import arcBottomBlue from '@designer-hub/assets/src/libs/assets/arcBottomBlue'
|
|
|
import { useMemberLevelsStore } from '@/store/member-levles'
|
|
|
-import TaskCard from '@/pages/agent/components/task-card.vue'
|
|
|
-import { getDesignerPointsActivities, getPointsOrders } from '@/core/libs/requests'
|
|
|
+import { getDesignerPointsActivities } from '@/core/libs/requests'
|
|
|
import { useUserStore } from '@/store'
|
|
|
import { storeToRefs } from 'pinia'
|
|
|
import Card from '@designer-hub/app/src/components/card.vue'
|
|
@@ -41,7 +41,7 @@ const memberLevelsStore = useMemberLevelsStore()
|
|
|
const { getMemberLevelLogo } = memberLevelsStore
|
|
|
const id = ref()
|
|
|
const { data, run: setData } = useRequest(() => getUserInfoById(id.value))
|
|
|
-const active = ref('integral')
|
|
|
+const active = ref('product')
|
|
|
const tabs = ref([
|
|
|
{ label: '数据动态', value: 'integral' },
|
|
|
{ label: '跟进记录', value: 'followUp' },
|
|
@@ -50,7 +50,7 @@ const tabs = ref([
|
|
|
])
|
|
|
const status = ref({ '0': '已报名', '1': '已完成', '2': '未核销', '3': '已取消', '4': '待交付' })
|
|
|
const followUpQuery = ref({})
|
|
|
-const pointsActivitiesQuery = computed(() => ({ brokerId: userInfo.value.userId }))
|
|
|
+const pointsActivitiesQuery = computed(() => ({ stylistId: id.value }))
|
|
|
const toPointsDetails = () => {
|
|
|
uni.navigateTo({ url: `/pages/agent/designer/points/index?id=${id.value}` })
|
|
|
}
|
|
@@ -89,10 +89,10 @@ onLoad((query) => {
|
|
|
</div>
|
|
|
|
|
|
<wd-img
|
|
|
- v-if="data.levelId"
|
|
|
+ v-if="data?.levelId"
|
|
|
width="63"
|
|
|
height="18.6"
|
|
|
- :src="getMemberLevelLogo(data.levelId)"
|
|
|
+ :src="getMemberLevelLogo(data?.levelId)"
|
|
|
></wd-img>
|
|
|
</div>
|
|
|
<div
|
|
@@ -119,7 +119,7 @@ onLoad((query) => {
|
|
|
<div>
|
|
|
<div class="flex items-center justify-around">
|
|
|
<template v-for="(it, i) in tabs" :key="i">
|
|
|
- <div class="flex flex-col items-center gap-1" @click="active = it.value">
|
|
|
+ <div class="flex flex-col items-center gap-0" @click="active = it.value">
|
|
|
<div
|
|
|
class="text-center font-normal font-['PingFang_SC'] visible"
|
|
|
:class="`${it.value === active ? 'text-black text-lg leading-relaxed ' : 'text-black/60 text-base leading-normal'}`"
|
|
@@ -130,7 +130,7 @@ onLoad((query) => {
|
|
|
:style="{ visibility: it.value === active ? 'visible' : 'hidden' }"
|
|
|
width="17"
|
|
|
height="5.6"
|
|
|
- :src="arcBottom"
|
|
|
+ :src="arcBottomBlue"
|
|
|
></wd-img>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -150,14 +150,14 @@ onLoad((query) => {
|
|
|
<wd-icon size="12" name="arrow-right" color="rgba(0,0,0,.3)"></wd-icon>
|
|
|
</div>
|
|
|
</div>
|
|
|
-
|
|
|
+ <div class="mt-2 w-full h-.25 bg-[#f9f9f9]"></div>
|
|
|
<ListHelperEvo
|
|
|
:request="getPointsCounts"
|
|
|
:query="{ userId: id }"
|
|
|
- content-class="grid grid-cols-3 gap-2.5"
|
|
|
+ content-class="grid grid-cols-3 gap-7 py-4"
|
|
|
>
|
|
|
<template #default="{ item }">
|
|
|
- <div class="rounded-lg aspect-[1/1] flex flex-col justify-around p-2.5">
|
|
|
+ <div class="rounded-lg aspect-[1/1] flex flex-col justify-around">
|
|
|
<div class="text-black/60 text-xs font-normal font-['PingFang_SC'] leading-none">
|
|
|
{{ item.title }}
|
|
|
</div>
|
|
@@ -404,11 +404,11 @@ onLoad((query) => {
|
|
|
</view>
|
|
|
|
|
|
<view class="content mt-[20px]" v-if="active === 'product'">
|
|
|
- <div class="flex-grow flex flex-col gap-4 px-3.5 py-5">
|
|
|
+ <div class="flex-grow flex flex-col gap-4">
|
|
|
<PageHelperEvo
|
|
|
ref="pageHelperRef"
|
|
|
:request="getPointsOrders"
|
|
|
- :query="{}"
|
|
|
+ :query="{ orderType: 2 }"
|
|
|
class="flex-grow flex flex-col"
|
|
|
>
|
|
|
<template #default="{ source }">
|