From 9d3f9c1b11d8d13a8393ccd51857bfe529d2215f Mon Sep 17 00:00:00 2001 From: daonan <91860300+daonan233@users.noreply.github.com> Date: Fri, 22 Mar 2024 14:55:48 +0800 Subject: [PATCH] feat(word): add word lists (#193) * feat(wordList): init wordList system * feat(wordlist):add wordlist feat except upload * feat(wordlist):change some styles and annotate the upload botton * fix(wordlist): fix the error of "10 rpx" * feat(wordList):add feat:upload wordlist. * feat(wordlist):fix some style problems(rpx) and change the picture in tools. * fix(wordlist):delete some unecessary codes --------- Co-authored-by: sheeplin <1270610465@qq.com> --- src/components/ChooseWordListAdd.vue | 95 +++++++++ src/components/ListPage.vue | 111 ++++++++++ src/pages.json | 23 +++ src/pages/lists/details.vue | 218 ++++++++++++++++++++ src/pages/lists/index.vue | 290 +++++++++++++++++++++++++++ src/pages/lists/upload.vue | 245 ++++++++++++++++++++++ src/pages/tools/index.vue | 6 + src/routers/word.js | 3 +- src/services/lists.js | 19 ++ src/services/word.js | 4 + 10 files changed, 1013 insertions(+), 1 deletion(-) create mode 100644 src/components/ChooseWordListAdd.vue create mode 100644 src/components/ListPage.vue create mode 100644 src/pages/lists/details.vue create mode 100644 src/pages/lists/index.vue create mode 100644 src/pages/lists/upload.vue create mode 100644 src/services/lists.js diff --git a/src/components/ChooseWordListAdd.vue b/src/components/ChooseWordListAdd.vue new file mode 100644 index 00000000..1cec01c9 --- /dev/null +++ b/src/components/ChooseWordListAdd.vue @@ -0,0 +1,95 @@ + + + + diff --git a/src/components/ListPage.vue b/src/components/ListPage.vue new file mode 100644 index 00000000..ba2da585 --- /dev/null +++ b/src/components/ListPage.vue @@ -0,0 +1,111 @@ + + + + + diff --git a/src/pages.json b/src/pages.json index 62dc3d7f..16b612c6 100644 --- a/src/pages.json +++ b/src/pages.json @@ -99,6 +99,19 @@ "path": "pages/quizzes/tests/answer", "style": {} }, + // lists区 + { + "path": "pages/lists/index", + "style": {} + }, + { + "path": "pages/lists/upload", + "style": {} + }, + { + "path": "pages/lists/details", + "style": {} + }, // articles 区 { "path": "pages/articles/index", @@ -229,5 +242,15 @@ "navigationStyle": "custom", "navigationBarTitleText": "兴化语记-莆仙方言在线工具" }, + "condition" : { //模式配置,仅开发期间生效 + "current": 0, //当前激活的模式(list 的索引项) + "list": [ + { + "name": "", //模式名称 + "path": "", //启动页面,必选 + "query": "" //启动参数,在页面的onLoad函数里面得到 + } + ] + }, "subPackages": [] } \ No newline at end of file diff --git a/src/pages/lists/details.vue b/src/pages/lists/details.vue new file mode 100644 index 00000000..f9878a31 --- /dev/null +++ b/src/pages/lists/details.vue @@ -0,0 +1,218 @@ + + + + diff --git a/src/pages/lists/index.vue b/src/pages/lists/index.vue new file mode 100644 index 00000000..1b3b90ff --- /dev/null +++ b/src/pages/lists/index.vue @@ -0,0 +1,290 @@ + + + + diff --git a/src/pages/lists/upload.vue b/src/pages/lists/upload.vue new file mode 100644 index 00000000..dbd0177b --- /dev/null +++ b/src/pages/lists/upload.vue @@ -0,0 +1,245 @@ +