From 703ccc6e28d480dfdafbf32c52c1ae2a71529652 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, 10 Jun 2025 14:04:16 +0800
Subject: [PATCH] update
---
src/pages.json | 6 +++
.../taskDetails/components/MyBackfill.vue | 4 +-
src/pages/weixinHome/index.vue | 46 +++++++++++++++++++
src/utils/uils.js | 2 +-
vite.config.js | 8 ++--
5 files changed, 60 insertions(+), 6 deletions(-)
create mode 100644 src/pages/weixinHome/index.vue
diff --git a/src/pages.json b/src/pages.json
index 2be57b9..61a0459 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -1,6 +1,12 @@
{
"pages": [
// #ifdef MP-WEIXIN
+ {
+ "path": "pages/weixinHome/index",
+ "style": {
+ "navigationBarTitleText": "图图岛"
+ }
+ },
{
"path": "pages/index/index",
"style": {
diff --git a/src/pages/taskDetails/components/MyBackfill.vue b/src/pages/taskDetails/components/MyBackfill.vue
index e3f2079..01f8cc7 100644
--- a/src/pages/taskDetails/components/MyBackfill.vue
+++ b/src/pages/taskDetails/components/MyBackfill.vue
@@ -32,7 +32,9 @@ const success = async () => {
watch(
() => [data, current],
() => {
- content.push(...data.children.back[current.value].content_arr);
+ if (data.children.back[current.value]?.content_arr) {
+ content.push(...data.children.back[current.value].content_arr);
+ }
},
{deep: true, immediate: true}
)
diff --git a/src/pages/weixinHome/index.vue b/src/pages/weixinHome/index.vue
new file mode 100644
index 0000000..7ad091e
--- /dev/null
+++ b/src/pages/weixinHome/index.vue
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+ 下载
+
+
+
+
+
diff --git a/src/utils/uils.js b/src/utils/uils.js
index 946db09..b033a79 100644
--- a/src/utils/uils.js
+++ b/src/utils/uils.js
@@ -152,7 +152,7 @@ export const uploadFile = ({count}) => {
token: UserStore.token
},
success: ({data}) => {
- res(JSON.parse(data).data);
+ res(JSON.parse(data));
},
fail: (err) => {
showToast(err.errMsg);
diff --git a/vite.config.js b/vite.config.js
index bdcaee9..cc22007 100644
--- a/vite.config.js
+++ b/vite.config.js
@@ -1,6 +1,6 @@
import {defineConfig} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
-// import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
+import {UnifiedViteWeappTailwindcssPlugin} from 'weapp-tailwindcss/vite';
import tailwindcss from '@tailwindcss/postcss'
export default defineConfig({
@@ -10,9 +10,9 @@ export default defineConfig({
defineModel: true,
}
}),
- // UnifiedViteWeappTailwindcssPlugin({
- // rem2rpx: true,
- // })
+ UnifiedViteWeappTailwindcssPlugin({
+ rem2rpx: true,
+ })
],
css: {
postcss: {