|
@@ -20,11 +20,22 @@ import {
|
|
} from '@designer-hub/assets/src/svgs'
|
|
} from '@designer-hub/assets/src/svgs'
|
|
import PageHelperEvo from '@/components/page-helper-evo.vue'
|
|
import PageHelperEvo from '@/components/page-helper-evo.vue'
|
|
import { dayjs } from 'wot-design-uni'
|
|
import { dayjs } from 'wot-design-uni'
|
|
-import { toHomePage } from '../../../core/libs/actions'
|
|
|
|
|
|
+import { toHomePage } from '@/core/libs/actions'
|
|
import arcBottom from '@designer-hub/assets/src/libs/assets/arcBottom'
|
|
import arcBottom from '@designer-hub/assets/src/libs/assets/arcBottom'
|
|
|
|
+import { useMemberLevelsStore } from '@/store/member-levles'
|
|
|
|
+import TaskCard from '@/pages/agent/components/task-card.vue'
|
|
|
|
+import { getDesignerPointsActivities } from '@/core/libs/requests'
|
|
|
|
+import { useUserStore } from '@/store'
|
|
|
|
+import { storeToRefs } from 'pinia'
|
|
|
|
+import Card from '@designer-hub/app/src/components/card.vue'
|
|
|
|
+
|
|
|
|
+const userStore = useUserStore()
|
|
|
|
+const { userInfo } = storeToRefs(userStore)
|
|
|
|
+const memberLevelsStore = useMemberLevelsStore()
|
|
|
|
+const { getMemberLevelLogo } = memberLevelsStore
|
|
const id = ref()
|
|
const id = ref()
|
|
const { data, run: setData } = useRequest(() => getUserInfoById(id.value))
|
|
const { data, run: setData } = useRequest(() => getUserInfoById(id.value))
|
|
-const active = ref('followUp')
|
|
|
|
|
|
+const active = ref('integral')
|
|
const tabs = ref([
|
|
const tabs = ref([
|
|
{ label: '数据动态', value: 'integral' },
|
|
{ label: '数据动态', value: 'integral' },
|
|
{ label: '跟进记录', value: 'followUp' },
|
|
{ label: '跟进记录', value: 'followUp' },
|
|
@@ -32,6 +43,7 @@ const tabs = ref([
|
|
{ label: '兑换商品', value: 'product' },
|
|
{ label: '兑换商品', value: 'product' },
|
|
])
|
|
])
|
|
const followUpQuery = ref({})
|
|
const followUpQuery = ref({})
|
|
|
|
+const pointsActivitiesQuery = computed(() => ({ brokerId: userInfo.value.userId }))
|
|
const toPointsDetails = () => {
|
|
const toPointsDetails = () => {
|
|
uni.navigateTo({ url: `/pages/agent/designer/points/index?id=${id.value}` })
|
|
uni.navigateTo({ url: `/pages/agent/designer/points/index?id=${id.value}` })
|
|
}
|
|
}
|
|
@@ -69,17 +81,12 @@ onLoad((query) => {
|
|
{{ data?.name }}
|
|
{{ data?.name }}
|
|
</div>
|
|
</div>
|
|
|
|
|
|
- <div
|
|
|
|
- class="h-4 bg-neutral-100 rounded-[20px] justify-start items-center inline-flex flex-row ml-[9px]"
|
|
|
|
- >
|
|
|
|
- <wd-img width="17" height="17" :src="vipIcon"></wd-img>
|
|
|
|
-
|
|
|
|
- <div
|
|
|
|
- class="text-black/40 text-[10px] font-normal font-['PingFang_SC'] px-[7px] leading-none"
|
|
|
|
- >
|
|
|
|
- 白银会员
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
|
|
+ <wd-img
|
|
|
|
+ v-if="data.levelId"
|
|
|
|
+ width="63"
|
|
|
|
+ height="18.6"
|
|
|
|
+ :src="getMemberLevelLogo(data.levelId)"
|
|
|
|
+ ></wd-img>
|
|
</div>
|
|
</div>
|
|
<div
|
|
<div
|
|
class="text-black/60 text-xs font-normal font-['PingFang_SC'] leading-snug flex items-center"
|
|
class="text-black/60 text-xs font-normal font-['PingFang_SC'] leading-snug flex items-center"
|
|
@@ -101,13 +108,8 @@ onLoad((query) => {
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <div>
|
|
|
|
- <!-- <wd-tabs v-model="tab">-->
|
|
|
|
- <!-- <block v-for="(item, index) in tabs" :key="index">-->
|
|
|
|
- <!-- <wd-tab :title="`${item.label}`" :name="item.value"></wd-tab>-->
|
|
|
|
- <!-- </block>-->
|
|
|
|
- <!-- </wd-tabs>-->
|
|
|
|
|
|
|
|
|
|
+ <div>
|
|
<div class="flex items-center justify-around">
|
|
<div class="flex items-center justify-around">
|
|
<template v-for="(it, i) in tabs" :key="i">
|
|
<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-1" @click="active = it.value">
|
|
@@ -128,7 +130,7 @@ onLoad((query) => {
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<view class="content mt-[20px]" v-if="active === 'integral'">
|
|
<view class="content mt-[20px]" v-if="active === 'integral'">
|
|
- <div class="bg-white rounded-2xl shadow pa-[15px]">
|
|
|
|
|
|
+ <Card>
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center justify-between">
|
|
<div class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed">
|
|
<div class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed">
|
|
积分动态
|
|
积分动态
|
|
@@ -138,6 +140,7 @@ onLoad((query) => {
|
|
@click="toPointsDetails"
|
|
@click="toPointsDetails"
|
|
>
|
|
>
|
|
积分明细
|
|
积分明细
|
|
|
|
+ <wd-icon size="12" name="arrow-right" color="rgba(0,0,0,.3)"></wd-icon>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="mt-3 grid grid-cols-3 gap-2.5">
|
|
<div class="mt-3 grid grid-cols-3 gap-2.5">
|
|
@@ -172,8 +175,9 @@ onLoad((query) => {
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="bg-white rounded-2xl shadow pa-[15px] mt-[20px]">
|
|
|
|
|
|
+ </Card>
|
|
|
|
+
|
|
|
|
+ <Card custom-class="my-4">
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center justify-between">
|
|
<div class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed">
|
|
<div class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed">
|
|
使用动态
|
|
使用动态
|
|
@@ -211,25 +215,57 @@ onLoad((query) => {
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
- <div class="bg-white rounded-2xl shadow pa-[15px] mt-[20px]">
|
|
|
|
- <div class="flex items-center justify-between">
|
|
|
|
- <div class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed">
|
|
|
|
- 最近动态
|
|
|
|
- </div>
|
|
|
|
- </div>
|
|
|
|
- <div class="mt-3">
|
|
|
|
- <div class="text-black/90 text-sm font-normal font-['PingFang_SC'] leading-none">
|
|
|
|
- 苏小萌报名了早稻田深度设计游学
|
|
|
|
|
|
+ </Card>
|
|
|
|
+
|
|
|
|
+ <div class="my-4">
|
|
|
|
+ <Card>
|
|
|
|
+ <div class="flex items-center justify-between mb-2">
|
|
|
|
+ <div
|
|
|
|
+ class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed"
|
|
|
|
+ >
|
|
|
|
+ 最近动态
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
- <div
|
|
|
|
- class="text-black/30 text-xs font-normal font-['PingFang_SC'] leading-none mt-[10px]"
|
|
|
|
- >
|
|
|
|
- 2024-09-08 14:12
|
|
|
|
|
|
+ <div class="w-full h-.25 bg-[#f9f9f9]"></div>
|
|
|
|
+ <div class="flex flex-col gap-6 py-5">
|
|
|
|
+ <template v-for="(it, index) in [1, 2, 3]" :key="index">
|
|
|
|
+ <div class="h-4 relative">
|
|
|
|
+ <div
|
|
|
|
+ class="left-[11px] top-0 absolute text-black/60 text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
|
+ >
|
|
|
|
+ 最近浏览品牌:Imola
|
|
|
|
+ </div>
|
|
|
|
+ <div class="w-1 h-1 left-0 top-[6px] absolute bg-[#2357e9] rounded-full"></div>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
</div>
|
|
</div>
|
|
- </div>
|
|
|
|
|
|
+ </Card>
|
|
</div>
|
|
</div>
|
|
|
|
+
|
|
|
|
+ <PageHelperEvo :request="getDesignerPointsActivities" :query="pointsActivitiesQuery">
|
|
|
|
+ <template #default="{ source }">
|
|
|
|
+ <div class="flex flex-col gap-4">
|
|
|
|
+ <template v-for="(it, index) in source?.list" :key="index">
|
|
|
|
+ <Card>
|
|
|
|
+ <div class="">
|
|
|
|
+ <div
|
|
|
|
+ class="text-black/90 text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
|
+ >
|
|
|
|
+ {{ it.content }}
|
|
|
|
+ </div>
|
|
|
|
+ <div
|
|
|
|
+ class="text-black/30 text-xs font-normal font-['PingFang_SC'] leading-none mt-[10px]"
|
|
|
|
+ >
|
|
|
|
+ {{ dayjs(it.createTime).format('YYYY-MM-DD HH:mm') }}
|
|
|
|
+ </div>
|
|
|
|
+ </div>
|
|
|
|
+ </Card>
|
|
|
|
+ </template>
|
|
|
|
+ </div>
|
|
|
|
+ </template>
|
|
|
|
+ </PageHelperEvo>
|
|
</view>
|
|
</view>
|
|
|
|
+
|
|
<view class="content mt-[20px]" v-if="active === 'followUp'">
|
|
<view class="content mt-[20px]" v-if="active === 'followUp'">
|
|
<PageHelperEvo :request="getFollowUpPage" :query="followUpQuery">
|
|
<PageHelperEvo :request="getFollowUpPage" :query="followUpQuery">
|
|
<template #default="{ source }">
|
|
<template #default="{ source }">
|
|
@@ -238,7 +274,7 @@ onLoad((query) => {
|
|
<div class="bg-white rounded-2xl shadow pl-[15px] py-[15px] flex-col gap-2 flex">
|
|
<div class="bg-white rounded-2xl shadow pl-[15px] py-[15px] flex-col gap-2 flex">
|
|
<div class="flex items-center justify-between">
|
|
<div class="flex items-center justify-between">
|
|
<div
|
|
<div
|
|
- class="text-black/90 text-base font-normal font-['PingFang SC'] leading-relaxed"
|
|
|
|
|
|
+ class="text-black/90 text-base font-normal font-['PingFang_SC'] leading-relaxed"
|
|
>
|
|
>
|
|
{{ dayjs(it.followTime).format('YYYY-MM-DD HH:mm') }}
|
|
{{ dayjs(it.followTime).format('YYYY-MM-DD HH:mm') }}
|
|
</div>
|
|
</div>
|
|
@@ -402,8 +438,4 @@ onLoad((query) => {
|
|
</view>
|
|
</view>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
-<style scoped lang="scss">
|
|
|
|
-:deep(.wd-tabs) {
|
|
|
|
- background: transparent;
|
|
|
|
-}
|
|
|
|
-</style>
|
|
|
|
|
|
+<style scoped lang="scss"></style>
|