|
@@ -40,6 +40,7 @@ const { isLogined, userInfo, isAgent, isMerchant } = storeToRefs(userStore)
|
|
|
const orderAmount = ref()
|
|
|
const todoPageHelperRef = ref<ComponentExposed<typeof PageHelperEvo>>()
|
|
|
const pointsAmount = computed(() => orderAmount.value * 10)
|
|
|
+const dynamicsList = ref<{ content: string, createTime: number }[]>([]);
|
|
|
const todosQuery = computed(() => ({
|
|
|
brokerId: String(userInfo.value.userId),
|
|
|
executionTime: [
|
|
@@ -83,10 +84,17 @@ const handle2Settlement = () => {
|
|
|
const toAddReporting = () => {
|
|
|
uni.navigateTo({ url: '/pages/home/merchant/add-reporting-information' })
|
|
|
}
|
|
|
+const getDynamicsList = async () =>{
|
|
|
+ await getDesignerPointsActivities({brokerId:String(userInfo.value.userId)}).then(x =>{
|
|
|
+ dynamicsList.value = x.data.list
|
|
|
+ });
|
|
|
+console.log(dynamicsList.value,"dynamicsList.value")
|
|
|
+}
|
|
|
onShow(async () => {
|
|
|
if (isAgent.value) {
|
|
|
await Promise.all([setTasks(), todoPageHelperRef.value?.refresh()])
|
|
|
}
|
|
|
+ getDynamicsList();
|
|
|
})
|
|
|
onLoad(() => {
|
|
|
console.log(isLogined.value)
|
|
@@ -259,14 +267,14 @@ onShareAppMessage(() => ({}))
|
|
|
</div>
|
|
|
<div>
|
|
|
<SectionHeading title="设计师最新动态" path="" custom-class="mb-5"></SectionHeading>
|
|
|
- <PageHelperEvo
|
|
|
- :request="getDesignerPointsActivities"
|
|
|
- :query="designerPointsActivitiesQuery"
|
|
|
- >
|
|
|
- <template #default="{ source }">
|
|
|
- <div class="flex flex-col gap-4">
|
|
|
- <template v-for="(it, i) in source?.list" :key="i">
|
|
|
- <Card>
|
|
|
+<!-- <PageHelperEvo-->
|
|
|
+<!-- :request="getDesignerPointsActivities"-->
|
|
|
+<!-- :query="designerPointsActivitiesQuery"-->
|
|
|
+<!-- >-->
|
|
|
+<!-- <template>-->
|
|
|
+ <div class="flex flex-col gap-4" v-for="(it, i) in dynamicsList" :key="i">
|
|
|
+<!-- <template >-->
|
|
|
+ <Card class="mb-4">
|
|
|
<div
|
|
|
class="text-black/90 text-sm font-normal font-['PingFang_SC'] leading-none"
|
|
|
>
|
|
@@ -278,10 +286,10 @@ onShareAppMessage(() => ({}))
|
|
|
{{ dayjs(it.createTime).format('YYYY-MM-DD HH:mm') }}
|
|
|
</div>
|
|
|
</Card>
|
|
|
- </template>
|
|
|
+<!-- </template>-->
|
|
|
</div>
|
|
|
- </template>
|
|
|
- </PageHelperEvo>
|
|
|
+<!-- </template>-->
|
|
|
+<!-- </PageHelperEvo>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|