kevin.T 1 hafta önce
ebeveyn
işleme
783f3e432f

+ 0 - 1
packages/app/src/core/libs/levels.ts

@@ -1,4 +1,3 @@
-import { group, mapEntries } from 'radash'
 import memberSilver from '@designer-hub/assets/src/libs/assets/memberSilver'
 import memberGold from '@designer-hub/assets/src/libs/assets/memberGold'
 import memberPlatinum from '@designer-hub/assets/src/libs/assets/memberPlatinum'

+ 9 - 0
packages/app/src/pages-sub/mine/homepage/index.vue

@@ -244,6 +244,15 @@ onUnload(async () => {
     duration: viewDuration.value.toString(),
   })
 })
+onHide(async () => {
+  viewDuration.value = dayjs().diff(viewStartAt.value, 'seconds')
+  const { data, code } = await createBrowseHistory({
+    stylistId: id.value,
+    bizType: 3,
+    // bizId: '1',
+    duration: viewDuration.value.toString(),
+  })
+})
 onShareTimeline(() => ({
   title: designerInfo.value?.homePageName
     ? designerInfo.value?.homePageName

+ 3 - 1
packages/app/src/pages-sub/mine/honors/detail/index.vue

@@ -192,7 +192,9 @@ onLoad(async (query: { type: 'badge' | 'certificate'; data: string; id: number }
     if (data.value.quantity > 0) {
       await setData()
       if (data.value.userId == userInfo.value.userId) {
-        posterUrl.value = await createPoster()
+        nextTick(async () => {
+          posterUrl.value = await createPoster()
+        })
       }
     }
   }