From e76c1983b6a229628e9ab9247e0f66d6ceacbd00 Mon Sep 17 00:00:00 2001
From: daonan <91860300+daonan233@users.noreply.github.com>
Date: Sat, 25 Nov 2023 19:36:31 +0800
Subject: [PATCH] feat(mail): add mail system (#181)
* feat(mail): add mail system
* feat(mail): delete mailTest page
* fix(mail): delete mailTest page
* fix(mail): fix mail page
* fix(mail): fix some known network errors
* fix(mail): fix some errors
* fix(mail): change mail routers
* fix(mail): fix mail routers
* Revert "fix(mail): fix mail routers"
This reverts commit d2e884232bfd4a5f5bd085caf3602d7bc0be6f36.
* refactor(mails): reorganize files
* refactor(mails): move mails entrance
* fix(mails): fix APIs
* feat(mail):Added dropdown refresh and pagination functions, modified the format of mail display
* feat(mail):Added dropdown refresh and pagination functions, modified the format of mail display
* fix(mail):fix the error of loading more npotifications
* fix(mail):fix the error of loading more npotifications
* style: format pages.json
* refactor: remove notifications sending
* refactor: remove unused pics
---------
Co-authored-by: sheeplin <1270610465@qq.com>
---
src/pages.json | 14 ++-
src/pages/home.vue | 8 +-
src/pages/mails/details.vue | 116 ++++++++++++++++++++
src/pages/mails/index.vue | 207 ++++++++++++++++++++++++++++++++++++
src/pages/mails/send.vue | 143 +++++++++++++++++++++++++
src/pages/tools/index.vue | 10 +-
src/pages/users/me.vue | 13 +++
src/routers/mail.js | 27 +++++
src/services/mail.js | 34 ++++++
9 files changed, 565 insertions(+), 7 deletions(-)
create mode 100644 src/pages/mails/details.vue
create mode 100644 src/pages/mails/index.vue
create mode 100644 src/pages/mails/send.vue
create mode 100644 src/routers/mail.js
create mode 100644 src/services/mail.js
diff --git a/src/pages.json b/src/pages.json
index 33fb62cb..1ef1ca2d 100644
--- a/src/pages.json
+++ b/src/pages.json
@@ -58,6 +58,18 @@
"path": "pages/tools/relative",
"style": {}
},
+ {
+ "path": "pages/mails/index",
+ "style": {}
+ },
+ {
+ "path": "pages/mails/details",
+ "style": {}
+ },
+ {
+ "path": "pages/mails/send",
+ "style": {}
+ },
{
"path": "pages/tools/daily-expression/index",
"style": {}
@@ -201,4 +213,4 @@
"navigationBarTitleText": "兴化语记-莆仙方言在线工具"
},
"subPackages": []
-}
+}
\ No newline at end of file
diff --git a/src/pages/home.vue b/src/pages/home.vue
index e38dcd2c..ad56eaf3 100644
--- a/src/pages/home.vue
+++ b/src/pages/home.vue
@@ -103,7 +103,6 @@
style="width: 100%"
/>
-
@@ -116,6 +115,7 @@ import { toSearchPage } from '@/routers';
import { toWordPage } from '@/routers/word';
import { toArticlePage } from '@/routers/article';
import { toLoginPage } from '@/routers/login';
+import { toMailsPage } from '@/routers/mail';
const app = getApp();
export default {
@@ -140,6 +140,7 @@ export default {
this.announcements = await getAnnouncements();
},
methods: {
+ toMailsPage,
toLoginPage,
/**
* 下拉刷新
@@ -192,19 +193,20 @@ export default {
search() {
toSearchPage();
},
+
},
};
diff --git a/src/pages/mails/details.vue b/src/pages/mails/details.vue
new file mode 100644
index 00000000..b9388684
--- /dev/null
+++ b/src/pages/mails/details.vue
@@ -0,0 +1,116 @@
+
+
+
+
+
+
+
+ {{ email.title }}
+
+
+ {{ email.content }}
+
+
+
+
+
+
+
+
diff --git a/src/pages/mails/index.vue b/src/pages/mails/index.vue
new file mode 100644
index 00000000..2057ce1c
--- /dev/null
+++ b/src/pages/mails/index.vue
@@ -0,0 +1,207 @@
+
+
+
+
+
+
+
+
+
+ {{ email.title }}
+
+
+
+
+ {{ email.from.nickname }}
+
+
+ {{ email.time }}
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/mails/send.vue b/src/pages/mails/send.vue
new file mode 100644
index 00000000..ce162fc6
--- /dev/null
+++ b/src/pages/mails/send.vue
@@ -0,0 +1,143 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/pages/tools/index.vue b/src/pages/tools/index.vue
index 429a018c..0c2043db 100644
--- a/src/pages/tools/index.vue
+++ b/src/pages/tools/index.vue
@@ -63,6 +63,10 @@ export default {
img: 'https://cos.edialect.top/website/亲戚计算.png',
url: '/tools/relative',
},
+ {
+ img: 'https://pic.imgdb.cn/item/64d45b0e1ddac507ccef0460.png',
+ url: '/wordlists/details',
+ },
],
};
},
@@ -88,11 +92,11 @@ export default {
diff --git a/src/pages/users/me.vue b/src/pages/users/me.vue
index 2380528c..748ee5c9 100644
--- a/src/pages/users/me.vue
+++ b/src/pages/users/me.vue
@@ -60,6 +60,17 @@
+
+
+
+
+ 我的邮箱
+
+
+