From 2c572ee2827b82ac16dcebfee6810622dc480e1a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=93=86=E5=95=A6C=E6=A2=A6?= <15709267061@163.com>
Date: Sat, 13 Dec 2025 22:58:49 +0800
Subject: [PATCH] update
---
src/components/BindMsgModal.vue | 38 +++++--
src/components/XImage.vue | 26 ++---
src/components/XModal.vue | 8 +-
src/hooks/useTableQuery.js | 24 ++---
src/pages/addAccount/index.vue | 30 +++---
src/pages/home/index.vue | 89 +++++++--------
src/pages/incomeLog/index.vue | 2 +-
src/pages/login/AccountLogin.vue | 25 ++++-
src/pages/login/BulletChat.vue | 41 ++++---
src/pages/login/PhoneLogin.vue | 27 ++++-
src/pages/login/index.vue | 55 +++++++---
src/pages/messagePush/index.vue | 12 ++-
src/pages/myTask/index.vue | 50 ++++-----
src/pages/notSupported/index.vue | 15 ++-
.../components/CollectMaterials.vue | 32 +++---
src/pages/taskDetails/index.vue | 101 ++++++------------
src/pages/withdrawalLog/index.vue | 2 +-
src/utils/request.js | 3 +-
18 files changed, 315 insertions(+), 265 deletions(-)
diff --git a/src/components/BindMsgModal.vue b/src/components/BindMsgModal.vue
index 564214f..a442e97 100644
--- a/src/components/BindMsgModal.vue
+++ b/src/components/BindMsgModal.vue
@@ -1,31 +1,51 @@
-
+
-
+
-
+
绑定
diff --git a/src/components/XImage.vue b/src/components/XImage.vue
index 5d3f0fa..12d26d1 100644
--- a/src/components/XImage.vue
+++ b/src/components/XImage.vue
@@ -1,8 +1,8 @@
diff --git a/src/hooks/useTableQuery.js b/src/hooks/useTableQuery.js
index e26a5a6..0c55bf2 100644
--- a/src/hooks/useTableQuery.js
+++ b/src/hooks/useTableQuery.js
@@ -1,4 +1,4 @@
-import {reactive, ref, watch} from 'vue';
+import { reactive, ref, watch } from 'vue';
/**
*
@@ -9,13 +9,13 @@ import {reactive, ref, watch} from 'vue';
* @param watchParameter
*/
function useTableQuery({
- parameter,
- api,
- callback,
- uuid = false,
- immediate = true,
- watchParameter = false,
- }) {
+ parameter,
+ api,
+ callback,
+ uuid = false,
+ immediate = true,
+ watchParameter = false,
+}) {
const loading = ref(false);
const vo = reactive({
rows: [],
@@ -39,14 +39,14 @@ function useTableQuery({
pageSize: pagination.pageSize
}
- const {data} = await api(params);
+ const { data } = await api(params);
pagination.pageSize = data.page;
pagination.total = data.total;
const _vo = {
...data,
- rows: data.list.map(v => ({...v, key: v.id})),
+ rows: data.list.map(v => ({ ...v, key: v.id })),
};
if (data.list.length === 0) {
@@ -84,13 +84,13 @@ function useTableQuery({
watch(
() => [pagination.page, pagination.pageSize],
() => fetchData(),
- {deep: true, immediate: immediate}
+ { deep: true, immediate: immediate }
)
if (watchParameter) watch(
() => parameter,
() => fetchData(),
- {deep: true}
+ { deep: true }
);
return {
diff --git a/src/pages/addAccount/index.vue b/src/pages/addAccount/index.vue
index 46be3f9..3c95942 100644
--- a/src/pages/addAccount/index.vue
+++ b/src/pages/addAccount/index.vue
@@ -6,11 +6,11 @@ import XSelect from "../../components/XSelect.vue";
import Api from "../../api/index.js";
import XInput from "../../components/XInput.vue";
import XUpload from "../../components/XUpload.vue";
-import {reactive, watch} from "vue";
-import {backPage, showToast} from "../../utils/uils.js";
-import {onLoad} from "@dcloudio/uni-app";
+import { reactive, watch } from "vue";
+import { backPage, showToast } from "../../utils/uils.js";
+import { onLoad } from "@dcloudio/uni-app";
import XDateTime from "../../components/XDateTime.vue";
-import {useSystemStore} from "../../pinia/SystemStore/index.js";
+import { useSystemStore } from "../../pinia/SystemStore/index.js";
import XImage from "../../components/XImage.vue";
import XLink from "../../components/XLink.vue";
@@ -28,14 +28,14 @@ const form = reactive({
const success = async () => {
if (!form.id) {
- const {msg} = await Api.system.addAccount({
+ const { msg } = await Api.system.addAccount({
...form,
homepage: form.homepage[0],
qrcode: form.qrcode[0]
});
showToast(msg);
} else {
- const {msg} = await Api.system.editAccount({
+ const { msg } = await Api.system.editAccount({
...form,
homepage: form.homepage[0],
qrcode: form.qrcode[0]
@@ -46,8 +46,8 @@ const success = async () => {
}
onLoad((options) => {
- const {id} = options;
- if (id) Api.system.getAccountInfo(id).then(({data}) => {
+ const { id } = options;
+ if (id) Api.system.getAccountInfo(id).then(({ data }) => {
data.homepage = [data.homepage];
data.qrcode = [data.qrcode];
Object.assign(form, data);
@@ -56,7 +56,7 @@ onLoad((options) => {
})
const getSelect = async () => {
- const {data} = await Api.system.getPlatform();
+ const { data } = await Api.system.getPlatform();
data.shift();
return {
data: data,
@@ -67,7 +67,7 @@ const ZYObj = reactive({
images2: [],
});
const changeP = async () => {
- const {data} = await Api.system.getPlatformImages({id: form.pid});
+ const { data } = await Api.system.getPlatformImages({ id: form.pid });
Object.assign(ZYObj, data);
}
@@ -76,7 +76,7 @@ watch(
(val) => {
if (val) changeP();
},
- {deep: true, immediate: true}
+ { deep: true, immediate: true }
)
@@ -103,24 +103,24 @@ watch(
主页截图
+ :list="ZYObj.images1">
查看指引
-
+
主页二维码
+ :list="ZYObj.images2">
查看指引
-
+
diff --git a/src/pages/home/index.vue b/src/pages/home/index.vue
index 66a1602..ab22d23 100644
--- a/src/pages/home/index.vue
+++ b/src/pages/home/index.vue
@@ -9,12 +9,12 @@ import XDropdownList from "../../components/XDropdownList.vue";
import TaskItem from "../../components/TaskItem.vue";
import useTableQuery from "../../hooks/useTableQuery.js";
import Api from "../../api/index.js";
-import {reactive, ref, onMounted} from "vue";
-import {toPage} from "../../utils/uils.js";
+import { reactive, ref, onMounted } from "vue";
+import { toPage } from "../../utils/uils.js";
import AddCustomerServiceModal from "../../components/AddCustomerServiceModal.vue";
import OpenTypeFun from "../../components/OpenTypeFun.js";
import XNoticeBar from "../../components/XNoticeBar.vue";
-import {onShow} from "@dcloudio/uni-app";
+import { onShow } from "@dcloudio/uni-app";
const showAddCustomer = ref(false);
const textContent = reactive([]);
@@ -53,23 +53,14 @@ const nav = [
const taskType = reactive([]);
const platformType = reactive([]);
const sortType = reactive([
- {id: 0, name: '默认排序'},
- {id: 1, name: '价格最高'},
- {id: 2, name: '极速打款'},
- {id: 3, name: '素材安全'},
- {id: 4, name: '简单上手'},
- {id: 5, name: '最新发布'},
+ { id: 0, name: '默认排序' },
+ { id: 1, name: '价格最高' },
+ { id: 2, name: '极速打款' },
+ { id: 3, name: '素材安全' },
+ { id: 4, name: '简单上手' },
+ { id: 5, name: '最新发布' },
]);
-Api.system.getTaskType().then(({data}) => {
- taskType.length = 0;
- taskType.push(...data);
-});
-Api.system.getPlatform().then(({data}) => {
- platformType.length = 0;
- platformType.push(...data);
-});
-
const po = reactive({
type: 0,
pid: 0,
@@ -81,7 +72,7 @@ const vo = reactive({
total: 0,
});
-const {loading, pagination, initFetchData} = useTableQuery({
+const { loading, pagination, initFetchData } = useTableQuery({
api: Api.system.getTask,
uuid: true,
immediate: false,
@@ -92,21 +83,33 @@ const {loading, pagination, initFetchData} = useTableQuery({
});
onShow(() => {
- initFetchData();
-});
-
-onMounted(() => {
+ // #ifndef MP-WEIXIN
+ const ua = navigator.userAgent.toLowerCase();
+ if (ua.indexOf("micromessenger") !== -1) {
+ toPage('/pages/notSupported/index');
+ return;
+ }
Api.system.getAdvList({
position: 1,
- }).then(({data}) => {
+ }).then(({ data }) => {
advList.length = 0;
advList.push(...data);
});
- Api.system.getBarrageList().then(({data}) => {
+ Api.system.getBarrageList().then(({ data }) => {
textContent.length = 0;
textContent.push(...data);
});
-})
+ Api.system.getTaskType().then(({ data }) => {
+ taskType.length = 0;
+ taskType.push(...data);
+ });
+ Api.system.getPlatform().then(({ data }) => {
+ platformType.length = 0;
+ platformType.push(...data);
+ });
+ initFetchData();
+ // #endif
+});
@@ -116,16 +119,12 @@ onMounted(() => {
- {
- pagination.page++;
- }"
- class="h-[calc(100vh-200rpx)]"
- scroll-y>
+ {
+ pagination.page++;
+ }" class="h-[calc(100vh-200rpx)]" scroll-y>
-
+
+
@@ -137,10 +136,7 @@ onMounted(() => {
-
@@ -156,20 +152,11 @@ onMounted(() => {
-
+
-
+
-
+
diff --git a/src/pages/incomeLog/index.vue b/src/pages/incomeLog/index.vue
index c09c4e8..a6a6d6e 100644
--- a/src/pages/incomeLog/index.vue
+++ b/src/pages/incomeLog/index.vue
@@ -67,7 +67,7 @@ watch(
diff --git a/src/pages/login/AccountLogin.vue b/src/pages/login/AccountLogin.vue
index f122ef5..f058152 100644
--- a/src/pages/login/AccountLogin.vue
+++ b/src/pages/login/AccountLogin.vue
@@ -40,20 +40,37 @@ const success = async () => {
-
+
忘记密码?
- 登录
-
-
+ 登录
+
+
diff --git a/src/pages/login/BulletChat.vue b/src/pages/login/BulletChat.vue
index 75e5d66..665e08d 100644
--- a/src/pages/login/BulletChat.vue
+++ b/src/pages/login/BulletChat.vue
@@ -1,5 +1,5 @@
-
-
-
+
+
+
{{ item }}
-
-
+
+
{{ item }}
@@ -32,6 +28,19 @@ onMounted(() => {
diff --git a/src/pages/login/index.vue b/src/pages/login/index.vue
index 036b97e..11c2642 100644
--- a/src/pages/login/index.vue
+++ b/src/pages/login/index.vue
@@ -2,11 +2,11 @@
import BGICON from "../../static/icons/bg.png";
import XNav from "../../components/XNav.vue";
import BulletChat from "./BulletChat.vue";
-import {ref} from "vue";
+import { ref } from "vue";
import AccountLogin from "./AccountLogin.vue";
import PhoneLogin from "./PhoneLogin.vue";
import WXOfficialAccount from "../../components/WXOfficialAccount.vue";
-import {onLoad} from "@dcloudio/uni-app";
+import { onLoad } from "@dcloudio/uni-app";
const currentTab = ref(0);
const showWX = ref(false);
@@ -20,7 +20,7 @@ const tabs = [
];
onLoad((options) => {
- const {showWX: _showWX} = options;
+ const { showWX: _showWX } = options;
showWX.value = _showWX === '1';
});
@@ -29,21 +29,21 @@ onLoad((options) => {
-
-
+
+
+
-
-
+
+
欢迎登录系统
-
- currentTab=index" :width="300" :sliderWidth="130">
+
+ currentTab = index" :width="300" :sliderWidth="130">
@@ -52,13 +52,32 @@ onLoad((options) => {
-
-
+
+
diff --git a/src/pages/messagePush/index.vue b/src/pages/messagePush/index.vue
index ca408ca..11485a4 100644
--- a/src/pages/messagePush/index.vue
+++ b/src/pages/messagePush/index.vue
@@ -8,7 +8,7 @@ import WBDICON from "../../static/icons/yczh.png";
import YBDICON from "../../static/icons/YBD.png";
import XNav from "../../components/XNav.vue";
import BindMsgModal from "../../components/BindMsgModal.vue";
-import {useUserStore} from "../../pinia/UserStore/index.js";
+import { useUserStore } from "../../pinia/UserStore/index.js";
const UserStore = useUserStore();
@@ -40,7 +40,7 @@ const UserStore = useUserStore();
-
+
@@ -87,3 +87,11 @@ const UserStore = useUserStore();
margin-bottom: calc(24rpx + env(safe-area-inset-bottom));
}
+
+
diff --git a/src/pages/myTask/index.vue b/src/pages/myTask/index.vue
index 6b10268..2c20424 100644
--- a/src/pages/myTask/index.vue
+++ b/src/pages/myTask/index.vue
@@ -1,7 +1,7 @@
-
+
diff --git a/src/pages/taskDetails/components/CollectMaterials.vue b/src/pages/taskDetails/components/CollectMaterials.vue
index 4ef2a20..d0b416c 100644
--- a/src/pages/taskDetails/components/CollectMaterials.vue
+++ b/src/pages/taskDetails/components/CollectMaterials.vue
@@ -1,10 +1,10 @@