From 091587f235343cdc60b4b944a7ca5d9e6fb64aa5 Mon Sep 17 00:00:00 2001 From: hflllll Date: Fri, 29 Aug 2025 10:29:29 +0800 Subject: [PATCH] =?UTF-8?q?'=E9=9D=99=E6=80=81demo=E8=BF=98=E5=B7=AE?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E7=99=BB=E9=99=86=E9=A1=B5=E9=9D=A2'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/index.js | 15 +-- api/modules/activity.js | 73 ------------ api/modules/community.js | 26 ---- api/modules/config.js | 32 +---- api/modules/exhibit.js | 0 api/modules/home.js | 53 --------- api/modules/score.js | 25 ---- api/modules/shop.js | 55 --------- config/index.js | 6 +- pages/index/home.vue | 4 +- pages/index/user.vue | 8 +- static/logo.png | Bin 16615 -> 4690 bytes subPages/home/maintainanceSubmit.vue | 4 +- subPages/login/login.vue | 224 ++++++++++++++++++++++++++++++++++- subPages/repair/maintainSubmit.vue | 22 ++-- 15 files changed, 254 insertions(+), 293 deletions(-) delete mode 100644 api/modules/activity.js delete mode 100644 api/modules/community.js create mode 100644 api/modules/exhibit.js delete mode 100644 api/modules/home.js delete mode 100644 api/modules/score.js delete mode 100644 api/modules/shop.js diff --git a/api/index.js b/api/index.js index 9d68de6..d4de01c 100644 --- a/api/index.js +++ b/api/index.js @@ -1,19 +1,12 @@ import user from '@/api/modules/user' -import shop from '@/api/modules/shop' -import score from '@/api/modules/score' import config from '@/api/modules/config' -import home from '@/api/modules/home' -import activity from '@/api/modules/activity' +import exhibit from '@/api/modules/exhibit' import login from '@/api/modules/login' -import community from '@/api/modules/community' + export { user, - shop, - score, config, - home, - activity, - login, - community + exhibit, + login } diff --git a/api/modules/activity.js b/api/modules/activity.js deleted file mode 100644 index 735b605..0000000 --- a/api/modules/activity.js +++ /dev/null @@ -1,73 +0,0 @@ -// import request from '@/api/request' -import http from '@/api/http' - -export default { - // 活动- 活动报名 - async applyActivity(data) { - return http({ - url: '/activity/applyActivity', - method: 'POST', - data - }) - }, - - // 活动- 收藏活动 - async collectionActivity(data) { - return http({ - url: '/activity/collectionActivity', - method: 'POST', - data - }) - }, - - // 活动- 获取活动详情 - async queryActivityById(data) { - return http({ - url: '/activity/queryActivityById', - method: 'GET', - data, - noToken: true - }) - }, - - // 活动- 获取我收藏的活动列表 - async queryActivityCollectionList(data) { - return http({ - url: '/activity/queryActivityCollectionList', - method: 'POST', - data - }) - }, - - // 活动- 获取活动列表 - async queryActivityList(data) { - return http({ - url: '/activity/queryActivityList', - method: 'GET', - data, - noToken: true, - debounce: 200, - // showLoading: true - }) - }, - - // 我的报名- 获取我报名的活动列表 - async queryApplyList(data) { - return http({ - url: '/activity/queryApplyList', - method: 'POST', - data, - // showLoading: true - }) - }, - - // 我的报名- 活动签到 - async signActivity(data) { - return http({ - url: '/activity/signActivity', - method: 'POST', - data, - // showToast: false - }) - }, -} \ No newline at end of file diff --git a/api/modules/community.js b/api/modules/community.js deleted file mode 100644 index a87b6eb..0000000 --- a/api/modules/community.js +++ /dev/null @@ -1,26 +0,0 @@ -// import request from "@/api/request"; -import http from "@/api/http"; - -export default { - // 社区- 获取帖子列表 - async queryPostList(data) { - return http({ - url: '/comment/queryPostList', - method: 'GET', - data, - noToken: true, - debounce: 200, - }) - }, - - // 社区- 上传帖子 - async addPost(data) { - return http({ - url: '/comment/addPost', - method: 'POST', - data, - showLoading: true, - // noToken: true - }) - } -} \ No newline at end of file diff --git a/api/modules/config.js b/api/modules/config.js index ff7d6c7..9ac9de6 100644 --- a/api/modules/config.js +++ b/api/modules/config.js @@ -2,13 +2,7 @@ import http from "@/api/http"; export default { - async queryCareerList() { - return http({ - url: '/config/queryCareerList', - method: 'GET', - noToken: true - }) - }, + async queryConfigList() { return http({ @@ -18,30 +12,8 @@ export default { }) }, - async queryQualificationList() { - return http({ - url: '/config/queryQualificationList', - method: 'GET', - noToken: true - }) - }, - // 系统配置- 查询活动分类列表 - async queryCategoryActivityList() { - return http({ - url: '/config/queryCategoryActivityList', - method: 'GET', - noToken: true - }) - }, - // 系统配置- 查询商品分类列表 - async queryCategoryGoodsList() { - return http({ - url: '/config/queryCategoryGoodsList', - method: 'GET', - noToken: true - }) - }, + } \ No newline at end of file diff --git a/api/modules/exhibit.js b/api/modules/exhibit.js new file mode 100644 index 0000000..e69de29 diff --git a/api/modules/home.js b/api/modules/home.js deleted file mode 100644 index d74697d..0000000 --- a/api/modules/home.js +++ /dev/null @@ -1,53 +0,0 @@ -// import request from "@/api/request"; -import http from "@/api/http"; - -export default { - // 首页- 申请成为志愿者 - async applyVolunteer(data) { - return http({ - url: '/index/applyVolunteer', - method: 'POST', - data - }) - }, - - // 首页- 查看志愿者信息复制接口复制文档复制地址 - // POST - // / community - admin / community / index /queryVolunteer - async queryVolunteer() { - return http({ - url: '/index/queryVolunteer', - method: 'POST' - }) - }, - // 首页- 获取banner图列表 - async queryBannerList(data) { - return http({ - url: '/index/queryBannerList', - method: 'GET', - noToken: true, - data - }) - }, - - // 首页- 获取公告详情 - async queryNoticeById(data) { - return http({ - url: '/index/queryNoticeById', - method: 'GET', - data, - noToken: true - }) - }, - - // 首页- 获取公告列表 - async queryNoticeList(data) { - return http({ - url: '/index/queryNoticeList', - method: 'GET', - data, - noToken: true - - }) - }, -} \ No newline at end of file diff --git a/api/modules/score.js b/api/modules/score.js deleted file mode 100644 index 8ae61a2..0000000 --- a/api/modules/score.js +++ /dev/null @@ -1,25 +0,0 @@ -// import request from "@/api/request"; -import http from "@/api/http"; -export default { - // 可用积分- 获取积分明细列表 - async queryScoreList(data) { - return http({ - url: '/score/queryScoreList', - method: 'POST', - data, - debounce: 300 - }) - }, - - // 首页- 积分排行榜复制接口复制文档复制地址 - // POST - // / community - admin / community / score / queryScoreRank - async queryScoreRank(data) { - return http({ - url: '/score/queryScoreRank', - method: 'POST', - data, - noToken: true - }) - } -} \ No newline at end of file diff --git a/api/modules/shop.js b/api/modules/shop.js deleted file mode 100644 index a3d8126..0000000 --- a/api/modules/shop.js +++ /dev/null @@ -1,55 +0,0 @@ -// import request from "@/api/request"; -import http from "@/api/http"; - -export default { - // 首页-兑换商品 - async buyGoods(data) { - return http({ - url: '/goods/buyGoods', - method: 'POST', - data, - showLoading: true - }) - }, - - // 首页- 收藏商品 - async collectionGoods(data) { - return http({ - url: '/goods/collectionGoods', - method: 'POST', - data, - showLoading: true - }) - }, - - // 首页- 获取商品详情 - async queryGoodsById(data) { - return http({ - url: '/goods/queryGoodsById', - method: 'GET', - data, - noToken: true - }) - }, - - // 商品收藏- 获取我收藏的商品列表 - async queryGoodsCollectionList(data) { - return http({ - url: '/goods/queryGoodsCollectionList', - method: 'POST', - data - }) - }, - - // 首页- 获取商品列表 - async queryGoodsList(data) { - return http({ - url: '/goods/queryGoodsList', - method: 'GET', - data, - noToken: true, - debounce: 200, - // showLoading: true - }) - } -} \ No newline at end of file diff --git a/config/index.js b/config/index.js index 6f13caf..8fa0653 100644 --- a/config/index.js +++ b/config/index.js @@ -14,15 +14,15 @@ const config = { // 网络全局配置 netConfig: { development: { - baseURL: 'http://augcl.natapp1.cc/community-admin/community', + baseURL: 'http://augcl.natapp1.cc/exhibit-admin/exhibit', }, testing: { - baseURL: 'https://mulinyouni.augcl.com/community-admin/community', + baseURL: 'https://exhibit.augcl.com/exhibit-admin/exhibi', }, production: { - baseURL: 'https://www.mulinyouni.com/community-admin/community', + baseURL: '', } }, diff --git a/pages/index/home.vue b/pages/index/home.vue index 5178a81..92e4c43 100644 --- a/pages/index/home.vue +++ b/pages/index/home.vue @@ -34,7 +34,7 @@ {{ item.id }} - 我是复制黏贴 + 我是复制黏贴 @@ -312,7 +312,7 @@ export default { .project { // flex: 1; background: $primary-color; - border: 1px solid #707070; + // border: 1px solid #707070; border-radius: 11rpx; color: #fff; font-size: 22rpx; diff --git a/pages/index/user.vue b/pages/index/user.vue index a87529b..7fead9f 100644 --- a/pages/index/user.vue +++ b/pages/index/user.vue @@ -1,7 +1,7 @@