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({
- {{ label }}
+ {{ label }}
+
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();
+}
@@ -35,10 +52,11 @@ const {loading, pagination, initFetchData} = useTableQuery({
-
+
我邀请的
他人邀请的
@@ -46,7 +64,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
-
+
按收益
加入时间正序
@@ -70,28 +88,28 @@ const {loading, pagination, initFetchData} = useTableQuery({
- 今天
- 昨天
- 累计
+ 今天
+ 昨天
+ 累计
新增成员(个)
- 4
+ {{ vo.total }}
团队收益(元)
- 15.64
+ {{ vo.income.toFixed(2) }}
团队奖励(元)
- 5.60
+ {{ vo.reward.toFixed(2) }}
@@ -108,7 +126,7 @@ const {loading, pagination, initFetchData} = useTableQuery({
搜索
-
+
diff --git a/src/pages/complaint/index.vue b/src/pages/complaint/index.vue
new file mode 100644
index 0000000..e9b41e8
--- /dev/null
+++ b/src/pages/complaint/index.vue
@@ -0,0 +1,72 @@
+
+
+
+
+
+
+
+
+
+ *
+ 投诉内容
+
+
+
+
+ 22/200
+
+
+
+
+
+
+
+
+ *
+ 联系方式
+
+
+
+
+
+
+
+ 确定提交
+
+
+
+
+
+
+
diff --git a/src/pages/myTask/index.vue b/src/pages/myTask/index.vue
index f3e2990..4749704 100644
--- a/src/pages/myTask/index.vue
+++ b/src/pages/myTask/index.vue
@@ -1,7 +1,7 @@
@@ -23,11 +18,12 @@ const callPhone = () => {
{{ detail.nickname }}
联系TA
投诉
diff --git a/src/pages/user/index.vue b/src/pages/user/index.vue
index 6049931..532c14e 100644
--- a/src/pages/user/index.vue
+++ b/src/pages/user/index.vue
@@ -122,7 +122,7 @@ onMounted(() => {
提现记录
-
+
变动记录