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(); +}