|
@@ -40,7 +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 dynamicsList = ref<{ content: string; createTime: number }[]>([])
|
|
|
const todosQuery = computed(() => ({
|
|
|
brokerId: String(userInfo.value.userId),
|
|
|
executionTime: [
|
|
@@ -67,10 +67,10 @@ const handleScanning = async () => {
|
|
|
uni.showToast({ title: '不支持此二维码/条码', icon: 'none', duration: 5000 })
|
|
|
return
|
|
|
}
|
|
|
- await requestToast(() => scanCodeCheckPaper({ orderNo: options.no }), {
|
|
|
- success: true,
|
|
|
- successTitle: '验券成功',
|
|
|
- })
|
|
|
+ const { data } = await requestToast(() => scanCodeCheckPaper({ orderNo: options.no }))
|
|
|
+ if (data) {
|
|
|
+ uni.navigateTo({ url: '/pages/home/result/success' })
|
|
|
+ }
|
|
|
}
|
|
|
const handle2Settlement = () => {
|
|
|
if ((orderAmount.value ?? '') === '') {
|
|
@@ -84,17 +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 =>{
|
|
|
+const getDynamicsList = async () => {
|
|
|
+ await getDesignerPointsActivities({ brokerId: String(userInfo.value.userId) }).then((x) => {
|
|
|
dynamicsList.value = x.data.list
|
|
|
- });
|
|
|
-console.log(dynamicsList.value,"dynamicsList.value")
|
|
|
+ })
|
|
|
+ console.log(dynamicsList.value, 'dynamicsList.value')
|
|
|
}
|
|
|
onShow(async () => {
|
|
|
if (isAgent.value) {
|
|
|
await Promise.all([setTasks(), todoPageHelperRef.value?.refresh()])
|
|
|
}
|
|
|
- getDynamicsList();
|
|
|
+ getDynamicsList()
|
|
|
})
|
|
|
onLoad(() => {
|
|
|
console.log(isLogined.value)
|
|
@@ -267,29 +267,25 @@ onShareAppMessage(() => ({}))
|
|
|
</div>
|
|
|
<div>
|
|
|
<SectionHeading title="设计师最新动态" path="" custom-class="mb-5"></SectionHeading>
|
|
|
-<!-- <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"
|
|
|
- >
|
|
|
- {{ it.content }}
|
|
|
- </div>
|
|
|
- <div
|
|
|
- class="mt-3 text-black/30 text-xs font-normal font-['PingFang_SC'] leading-none"
|
|
|
- >
|
|
|
- {{ dayjs(it.createTime).format('YYYY-MM-DD HH:mm') }}
|
|
|
- </div>
|
|
|
- </Card>
|
|
|
-<!-- </template>-->
|
|
|
+ <!-- <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">
|
|
|
+ {{ it.content }}
|
|
|
</div>
|
|
|
-<!-- </template>-->
|
|
|
-<!-- </PageHelperEvo>-->
|
|
|
+ <div class="mt-3 text-black/30 text-xs font-normal font-['PingFang_SC'] leading-none">
|
|
|
+ {{ dayjs(it.createTime).format('YYYY-MM-DD HH:mm') }}
|
|
|
+ </div>
|
|
|
+ </Card>
|
|
|
+ <!-- </template>-->
|
|
|
+ </div>
|
|
|
+ <!-- </template>-->
|
|
|
+ <!-- </PageHelperEvo>-->
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|