From 581587b594c3b397a431a312143d9c3ab867e93f Mon Sep 17 00:00:00 2001
From: wupengfei <834520024@qq.com>
Date: 星期四, 13 二月 2025 15:52:52 +0800
Subject: [PATCH] feat: mine
---
apps/bMiniApp/src/app.config.ts | 6 ++
apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.config.ts | 3 +
apps/bMiniApp/src/subpackages/mine/mineFavorites/InnerPage.vue | 8 ----
apps/bMiniApp/src/pages/mine/index.vue | 5 ++
apps/bMiniApp/src/constants/router.ts | 1
apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.vue | 17 ++++++++
apps/bMiniApp/src/subpackages/mine/mineContactRecord/InnerPage.vue | 47 +++++++++++++++++++++++
7 files changed, 77 insertions(+), 10 deletions(-)
diff --git a/apps/bMiniApp/src/app.config.ts b/apps/bMiniApp/src/app.config.ts
index c2d11c8..5477fee 100644
--- a/apps/bMiniApp/src/app.config.ts
+++ b/apps/bMiniApp/src/app.config.ts
@@ -62,7 +62,11 @@
},
{
root: 'subpackages/mine',
- pages: ['setting/setting', 'mineFavorites/mineFavorites'],
+ pages: [
+ 'setting/setting',
+ 'mineFavorites/mineFavorites',
+ 'mineContactRecord/mineContactRecord',
+ ],
},
{
root: 'subpackages/city',
diff --git a/apps/bMiniApp/src/constants/router.ts b/apps/bMiniApp/src/constants/router.ts
index f9b3bd4..f71ad29 100644
--- a/apps/bMiniApp/src/constants/router.ts
+++ b/apps/bMiniApp/src/constants/router.ts
@@ -23,4 +23,5 @@
setting = '/subpackages/mine/setting/setting',
mineFavorites = '/subpackages/mine/mineFavorites/mineFavorites',
+ mineContactRecord = '/subpackages/mine/mineContactRecord/mineContactRecord',
}
diff --git a/apps/bMiniApp/src/pages/mine/index.vue b/apps/bMiniApp/src/pages/mine/index.vue
index 48b1eca..25d5ffb 100644
--- a/apps/bMiniApp/src/pages/mine/index.vue
+++ b/apps/bMiniApp/src/pages/mine/index.vue
@@ -59,7 +59,7 @@
<div class="mine-content-record-item-text">鎴戠殑鏀惰棌</div>
</nut-badge>
</div>
- <div class="mine-content-record-item">
+ <div class="mine-content-record-item" @click="goMineContactRecord">
<img class="mine-content-record-item-icon" :src="IconRecord" alt="" />
<nut-badge top="0" right="0" :value="8" color="#FF7D00">
<div class="mine-content-record-item-text">鑱旂郴璁板綍</div>
@@ -150,6 +150,9 @@
function goMineFavorites() {
goPage(RouterPath.mineFavorites);
}
+function goMineContactRecord() {
+ goPage(RouterPath.mineContactRecord);
+}
async function handleLoginout() {
try {
diff --git a/apps/bMiniApp/src/subpackages/mine/mineContactRecord/InnerPage.vue b/apps/bMiniApp/src/subpackages/mine/mineContactRecord/InnerPage.vue
new file mode 100644
index 0000000..56d71c5
--- /dev/null
+++ b/apps/bMiniApp/src/subpackages/mine/mineContactRecord/InnerPage.vue
@@ -0,0 +1,47 @@
+<template>
+ <InfiniteLoading
+ scrollViewClassName="common-infinite-scroll-list home-list"
+ v-bind="infiniteLoadingProps"
+ >
+ <template #renderItem="{ item }">
+ <FlexJobCard :show-footer-left="false"> </FlexJobCard>
+ </template>
+ </InfiniteLoading>
+</template>
+
+<script setup lang="ts">
+import { FlexJobCard } from '@12333/components';
+import { useUserStore } from '@/stores/modules/user';
+import { useInfiniteLoading } from '@12333/hooks';
+import { OrderInputType } from '@12333/constants';
+import * as orderServices from '@12333/services/api/Order';
+
+defineOptions({
+ name: 'InnerPage',
+});
+
+const userStore = useUserStore();
+
+const { infiniteLoadingProps } = useInfiniteLoading(
+ ({ pageParam }) => {
+ let params: API.FrontOrderListInput = {
+ pageModel: {
+ rows: 20,
+ page: pageParam,
+ orderInput: [{ property: 'isRecommend', order: OrderInputType.Desc }],
+ },
+ };
+
+ return orderServices.getFrontOrderList(params, {
+ showLoading: false,
+ });
+ },
+ {
+ queryKey: ['orderServices/getFrontOrderList'],
+ }
+);
+</script>
+
+<style lang="scss">
+@import '@/styles/common.scss';
+</style>
diff --git a/apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.config.ts b/apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.config.ts
new file mode 100644
index 0000000..305fdb1
--- /dev/null
+++ b/apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.config.ts
@@ -0,0 +1,3 @@
+export default definePageConfig({
+ disableScroll: true,
+});
diff --git a/apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.vue b/apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.vue
new file mode 100644
index 0000000..44dae4f
--- /dev/null
+++ b/apps/bMiniApp/src/subpackages/mine/mineContactRecord/mineContactRecord.vue
@@ -0,0 +1,17 @@
+<template>
+ <PageLayoutWithBg class="mineContactRecord-page-wrapper" :title="'鑱旂郴璁板綍'">
+ <InnerPage></InnerPage>
+ </PageLayoutWithBg>
+</template>
+
+<script setup lang="ts">
+import InnerPage from './InnerPage.vue';
+
+defineOptions({
+ name: 'mineContactRecord',
+});
+</script>
+
+<style lang="scss">
+@import '@/styles/common.scss';
+</style>
diff --git a/apps/bMiniApp/src/subpackages/mine/mineFavorites/InnerPage.vue b/apps/bMiniApp/src/subpackages/mine/mineFavorites/InnerPage.vue
index 033f7ca..4ed63a5 100644
--- a/apps/bMiniApp/src/subpackages/mine/mineFavorites/InnerPage.vue
+++ b/apps/bMiniApp/src/subpackages/mine/mineFavorites/InnerPage.vue
@@ -44,12 +44,4 @@
<style lang="scss">
@import '@/styles/common.scss';
-
-.mineFavorites-page-wrapper {
- .task-card-actions-text {
- font-size: 24px;
- line-height: 42px;
- color: #9fa4ac;
- }
-}
</style>
--
Gitblit v1.9.1