From 6b0e104d513355f6128ac939f865b288102a3004 Mon Sep 17 00:00:00 2001 From: Vinjor Date: Fri, 21 Mar 2025 17:57:53 +0800 Subject: [PATCH] 1 --- App.vue | 60 +++--- api/business/notice.js | 15 ++ api/system/config.js | 8 + components/tabbar/tabBar.vue | 154 ++++++++++++++++ manifest.json | 3 + pages.json | 51 ++--- pages/components/notice-item.vue | 174 ++++++++++++++++++ pages/index.vue | 115 ++++++++---- pages/mine/index.vue | 5 + .../SourceHanSansCN-Medium-Alphabetic.ttf | Bin 0 -> 6780 bytes static/images/tabbar/dingyue.png | Bin 0 -> 1555 bytes static/images/tabbar/dingyue_.png | Bin 0 -> 1632 bytes static/images/tabbar/home.png | Bin 3265 -> 2124 bytes static/images/tabbar/home_.png | Bin 3229 -> 2253 bytes static/images/tabbar/mine.png | Bin 4235 -> 0 bytes static/images/tabbar/mine_.png | Bin 4219 -> 0 bytes static/images/tabbar/my.png | Bin 0 -> 2337 bytes static/images/tabbar/my_.png | Bin 0 -> 2481 bytes static/images/tabbar/my_motice_.png | Bin 0 -> 2162 bytes static/images/tabbar/my_notice.png | Bin 0 -> 2058 bytes static/images/tabbar/work.png | Bin 4108 -> 0 bytes static/images/tabbar/work_.png | Bin 5008 -> 0 bytes static/index/douyin.png | Bin 0 -> 1706 bytes static/index/eye.png | Bin 0 -> 881 bytes static/index/go-view.png | Bin 0 -> 10411 bytes static/index/member-bg.png | Bin 0 -> 31106 bytes static/index/money.png | Bin 0 -> 1256 bytes static/index/my.png | Bin 0 -> 1182 bytes static/index/person.png | Bin 0 -> 1071 bytes static/index/sanjiao.png | Bin 0 -> 240 bytes static/index/search.png | Bin 0 -> 1550 bytes static/index/vip.png | Bin 0 -> 1922 bytes static/index/xiaohongshu.png | Bin 0 -> 1390 bytes static/index/xing.png | Bin 0 -> 1140 bytes static/index/zuanshi.png | Bin 0 -> 4800 bytes static/index/服务类型@2x.png | Bin 0 -> 1140 bytes static/index/矩形@2x.png | Bin 0 -> 136 bytes static/platform/douyin.png | Bin 0 -> 1706 bytes static/platform/xiaohongshu.png | Bin 0 -> 1390 bytes static/scss/colorui.css | 4 +- static/scss/global.scss | 6 + .../uni-search-bar/uni-search-bar.vue | 21 +-- utils/auth.js | 28 +++ utils/common.js | 30 ++- 44 files changed, 571 insertions(+), 103 deletions(-) create mode 100644 api/business/notice.js create mode 100644 components/tabbar/tabBar.vue create mode 100644 pages/components/notice-item.vue create mode 100644 static/font/SourceHanSansCN-Medium-Alphabetic.ttf create mode 100644 static/images/tabbar/dingyue.png create mode 100644 static/images/tabbar/dingyue_.png delete mode 100644 static/images/tabbar/mine.png delete mode 100644 static/images/tabbar/mine_.png create mode 100644 static/images/tabbar/my.png create mode 100644 static/images/tabbar/my_.png create mode 100644 static/images/tabbar/my_motice_.png create mode 100644 static/images/tabbar/my_notice.png delete mode 100644 static/images/tabbar/work.png delete mode 100644 static/images/tabbar/work_.png create mode 100644 static/index/douyin.png create mode 100644 static/index/eye.png create mode 100644 static/index/go-view.png create mode 100644 static/index/member-bg.png create mode 100644 static/index/money.png create mode 100644 static/index/my.png create mode 100644 static/index/person.png create mode 100644 static/index/sanjiao.png create mode 100644 static/index/search.png create mode 100644 static/index/vip.png create mode 100644 static/index/xiaohongshu.png create mode 100644 static/index/xing.png create mode 100644 static/index/zuanshi.png create mode 100644 static/index/服务类型@2x.png create mode 100644 static/index/矩形@2x.png create mode 100644 static/platform/douyin.png create mode 100644 static/platform/xiaohongshu.png diff --git a/App.vue b/App.vue index 797f513..3a5b10d 100644 --- a/App.vue +++ b/App.vue @@ -1,34 +1,36 @@ + @import '@/static/scss/index.scss' + \ No newline at end of file diff --git a/api/business/notice.js b/api/business/notice.js new file mode 100644 index 0000000..ad062bf --- /dev/null +++ b/api/business/notice.js @@ -0,0 +1,15 @@ +import upload from '@/utils/upload' +import request from '@/utils/request' + +// 根据code查分类树 +export function getCatgByCode(code) { + const data = { + oldPassword, + newPassword + } + return request({ + url: '/system/user/profile/updatePwd', + method: 'put', + data: data + }) +} diff --git a/api/system/config.js b/api/system/config.js index db76c9c..9fe7fb5 100644 --- a/api/system/config.js +++ b/api/system/config.js @@ -10,3 +10,11 @@ export function getSiteConfig(params) { }) } +// 根据code查分类值列表 +export function getCatgByCode(params) { + return request({ + url: '/base/category/listByCode', + method: 'get', + params:params + }) +} diff --git a/components/tabbar/tabBar.vue b/components/tabbar/tabBar.vue new file mode 100644 index 0000000..8b25043 --- /dev/null +++ b/components/tabbar/tabBar.vue @@ -0,0 +1,154 @@ + + + + + \ No newline at end of file diff --git a/manifest.json b/manifest.json index b9e2ab0..2064e8b 100644 --- a/manifest.json +++ b/manifest.json @@ -41,6 +41,9 @@ }, "quickapp" : {}, "mp-weixin" : { + "optimization":{ + "subPackages":true + }, "appid" : "wxd8ef44a8268672e4", "setting" : { "urlCheck" : false, diff --git a/pages.json b/pages.json index d0c4096..7d7e4bb 100644 --- a/pages.json +++ b/pages.json @@ -20,6 +20,11 @@ "style": { "navigationBarTitleText": "工作台" } + }, { + "path": "pages/work/my-notice", + "style": { + "navigationBarTitleText": "我的通告" + } }, { "path": "pages/mine/index", "style": { @@ -75,33 +80,31 @@ "style": { "navigationBarTitleText": "浏览富文本" } - }], - "tabBar": { - "color": "#000000", - "selectedColor": "#000000", - "borderStyle": "white", - "backgroundColor": "#ffffff", - "list": [{ - "pagePath": "pages/index", - "iconPath": "static/images/tabbar/home.png", - "selectedIconPath": "static/images/tabbar/home_.png", - "text": "首页" - }, { - "pagePath": "pages/work/index", - "iconPath": "static/images/tabbar/work.png", - "selectedIconPath": "static/images/tabbar/work_.png", - "text": "工作台" - }, { - "pagePath": "pages/mine/index", - "iconPath": "static/images/tabbar/mine.png", - "selectedIconPath": "static/images/tabbar/mine_.png", - "text": "我的" - } - ] }, + { + "path" : "pages/components/index", + "style" : + { + "navigationBarTitleText" : "通告首页" + } + },{ + "path" : "pages/components/notice-item", + "style" : + { + "navigationBarTitleText" : "通告组件" + } + }], + // "subPackages": [ + // { + // "root": "pages/notice", + // "pages": [ + + // ] + // } + // ], "globalStyle": { "navigationBarTextStyle": "black", - "navigationBarTitleText": "RuoYi", + "navigationBarTitleText": "多点通告", "navigationBarBackgroundColor": "#FFFFFF" } } diff --git a/pages/components/notice-item.vue b/pages/components/notice-item.vue new file mode 100644 index 0000000..8c87ddf --- /dev/null +++ b/pages/components/notice-item.vue @@ -0,0 +1,174 @@ + + + + + \ No newline at end of file diff --git a/pages/index.vue b/pages/index.vue index 4646807..60c2c5a 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -1,43 +1,86 @@ - diff --git a/pages/mine/index.vue b/pages/mine/index.vue index 33c3a6e..916e9b1 100644 --- a/pages/mine/index.vue +++ b/pages/mine/index.vue @@ -73,13 +73,18 @@ +