From 2e8617147ca657222c4fd5be5e44d003cbee4f8d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A4=9A=E5=95=A6C=E6=A2=A6?= <15709267061@163.com> Date: Tue, 17 Jun 2025 21:34:52 +0800 Subject: [PATCH] update --- src/api/system/index.js | 7 +++ src/components/XFormItem.vue | 3 +- src/pages.json | 7 +++ src/pages/changeLog/index.vue | 46 +++++++++++------ src/pages/complaint/index.vue | 72 +++++++++++++++++++++++++++ src/pages/myTask/index.vue | 30 +++++++++-- src/pages/taskDetails/index.vue | 6 ++- src/pages/user/components/Inviter.vue | 10 ++-- src/pages/user/index.vue | 2 +- 9 files changed, 153 insertions(+), 30 deletions(-) create mode 100644 src/pages/complaint/index.vue diff --git a/src/api/system/index.js b/src/api/system/index.js index bb5a641..5f7be92 100644 --- a/src/api/system/index.js +++ b/src/api/system/index.js @@ -376,6 +376,13 @@ const system = { data: data }); }, + complaint: async (data) => { + return request({ + method: MethodsENUM.POST, + url: "/user/complaint", + data: data + }); + }, } export default system; diff --git a/src/components/XFormItem.vue b/src/components/XFormItem.vue index 57d6384..e1af400 100644 --- a/src/components/XFormItem.vue +++ b/src/components/XFormItem.vue @@ -9,7 +9,8 @@ const {label} = defineProps({ diff --git a/src/pages.json b/src/pages.json index 61a0459..ad674a3 100644 --- a/src/pages.json +++ b/src/pages.json @@ -176,6 +176,13 @@ "navigationBarTitleText": "新增帐号", "navigationStyle": "custom" } + }, + { + "path": "pages/complaint/index", + "style": { + "navigationBarTitleText": "投诉邀请人", + "navigationStyle": "custom" + } } // #endif ], diff --git a/src/pages/changeLog/index.vue b/src/pages/changeLog/index.vue index ae5e322..3499431 100644 --- a/src/pages/changeLog/index.vue +++ b/src/pages/changeLog/index.vue @@ -5,7 +5,7 @@ import SQ from '../../static/icons/搜索.png'; import XNav from "../../components/XNav.vue"; import filer from "../../static/icons/filer-balck.png"; import XFilter from "../../components/XFilter.vue"; -import {reactive, ref} from "vue"; +import {reactive, ref, watch} from "vue"; import XFilterItem from "../../components/XFilterItem.vue"; import XRadioGroup from "../../components/XRadioGroup.vue"; import XRadio from "../../components/XRadio.vue"; @@ -15,10 +15,16 @@ import Api from "../../api/index.js"; const isVague = ref(false); const showFilter = ref(false); const isSearch = ref(false); -const po = reactive({}); -const vo = reactive({}); -const sumPo = reactive({ +const po = reactive({ + status: 0, + keyword: null, type: 0, + order: 0, +}); +const vo = reactive({ + income: 0, + reward: 0, + total: 0, }); const {loading, pagination, initFetchData} = useTableQuery({ @@ -28,6 +34,17 @@ const {loading, pagination, initFetchData} = useTableQuery({ Object.assign(vo, data); } }); + +watch( + () => po.status, + () => initFetchData(), + {deep: true} +) + +const handleSeach = async () => { + if (po.keyword === null || po.keyword === "") isSearch.value = false; + await initFetchData(); +}