From 1e581dda5f32fb40a14088d6c93346c12fb332e8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E6=96=87=E6=B6=9B?= <1909118034@qq.com>
Date: Mon, 21 Oct 2024 23:26:02 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=97=A0=E7=94=A8=E5=9B=BE?=
=?UTF-8?q?=E7=89=87=E7=AD=89?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 6 +-
README.md | 14 +-
api/login.js | 18 +
main.js | 4 +-
pages.json | 20 +-
pages/home/cpns/info-list.vue | 15 +-
pages/home/detail.vue | 2 +-
pages/home/home.vue | 22 +-
pages/home/release.vue | 6 +-
pages/mine/about.vue | 2 +-
pages/mine/mine.vue | 4 +-
pages/mine/user-space.vue | 2 +-
pages/news/cpns/news-topic-nav.vue | 9 +-
pages/news/cpns/topic-list.vue | 4 +-
pages/news/news-topic-cate.vue | 2 +-
pages/news/news-topic-detail.vue | 2 +-
pages/news/news.vue | 79 +-
pages/paper/friend.vue | 2 +-
pages/paper/paper.vue | 2 +-
static/img/demo/01.svg | 1489 ----
static/img/demo/02.svg | 1842 ----
static/img/demo/03.svg | 107 -
static/img/demo/04.svg | 1283 ---
static/img/demo/05.svg | 2931 -------
static/img/demo/06.svg | 580 --
static/img/demo/07.svg | 876 --
static/img/demo/08.svg | 4687 -----------
static/img/demo/09.svg | 12123 ---------------------------
static/img/demo/10.svg | 172 -
static/img/demo/11.svg | 54 -
static/img/demo/12.svg | 26 -
static/img/demo/13.svg | 33 -
static/img/demo/14.svg | 19 -
static/img/demo/15.svg | 22 -
static/img/demo/16.svg | 59 -
static/img/demo/17.svg | 21 -
static/img/demo/18.svg | 79 -
static/img/demo/19.svg | 63 -
static/img/demo/20.svg | 22 -
static/img/demo/21.svg | 39 -
static/img/demo/22.svg | 105 -
static/img/demo/autumn.svg | 1144 ---
static/img/demo/spring.svg | 1 -
static/img/demo/summer.svg | 1 -
static/img/demo/winter.png | Bin 0 -> 151802 bytes
static/img/demo/winter.svg | 1582 ----
static/img/header/01.svg | 67 -
static/img/header/02.svg | 74 -
static/img/header/03.svg | 81 -
static/img/header/04.svg | 74 -
static/img/header/05.svg | 71 -
static/img/header/06.svg | 58 -
static/img/header/07.svg | 174 -
static/img/header/08.svg | 94 -
static/img/header/09.svg | 83 -
static/img/header/10.svg | 121 -
static/img/header/11.svg | 90 -
static/img/header/12.svg | 109 -
static/img/header/b.svg | 1849 ----
static/img/header/c.svg | 1501 ----
static/img/header/d.svg | 224 -
static/img/list/01.jpg | Bin 0 -> 284832 bytes
static/img/list/02.svg | 1 -
static/img/list/03.svg | 1 -
static/img/list/04.svg | 1 -
static/img/list/05.svg | 1 -
static/img/list/06.svg | 1 -
static/img/list/07.svg | 1 -
static/img/list/08.svg | 1 -
static/img/list/09.svg | 1 -
static/img/list/10.svg | 1 -
static/img/list/11.svg | 1 -
static/img/list/12.svg | 1 -
static/img/logo.png | Bin 4023 -> 0 bytes
static/profile/1.jpg | Bin 634328 -> 0 bytes
static/profile/2.jpg | Bin 582432 -> 0 bytes
static/profile/3.jpg | Bin 328560 -> 0 bytes
utils/data/data.js | 206 +-
utils/lib/code.js | 34 +
utils/lib/config.js | 10 -
utils/lib/request.js | 36 +
81 files changed, 287 insertions(+), 34255 deletions(-)
create mode 100644 api/login.js
delete mode 100644 static/img/demo/01.svg
delete mode 100644 static/img/demo/02.svg
delete mode 100644 static/img/demo/03.svg
delete mode 100644 static/img/demo/04.svg
delete mode 100644 static/img/demo/05.svg
delete mode 100644 static/img/demo/06.svg
delete mode 100644 static/img/demo/07.svg
delete mode 100644 static/img/demo/08.svg
delete mode 100644 static/img/demo/09.svg
delete mode 100644 static/img/demo/10.svg
delete mode 100644 static/img/demo/11.svg
delete mode 100644 static/img/demo/12.svg
delete mode 100644 static/img/demo/13.svg
delete mode 100644 static/img/demo/14.svg
delete mode 100644 static/img/demo/15.svg
delete mode 100644 static/img/demo/16.svg
delete mode 100644 static/img/demo/17.svg
delete mode 100644 static/img/demo/18.svg
delete mode 100644 static/img/demo/19.svg
delete mode 100644 static/img/demo/20.svg
delete mode 100644 static/img/demo/21.svg
delete mode 100644 static/img/demo/22.svg
delete mode 100644 static/img/demo/autumn.svg
delete mode 100644 static/img/demo/spring.svg
delete mode 100644 static/img/demo/summer.svg
create mode 100644 static/img/demo/winter.png
delete mode 100644 static/img/demo/winter.svg
delete mode 100644 static/img/header/01.svg
delete mode 100644 static/img/header/02.svg
delete mode 100644 static/img/header/03.svg
delete mode 100644 static/img/header/04.svg
delete mode 100644 static/img/header/05.svg
delete mode 100644 static/img/header/06.svg
delete mode 100644 static/img/header/07.svg
delete mode 100644 static/img/header/08.svg
delete mode 100644 static/img/header/09.svg
delete mode 100644 static/img/header/10.svg
delete mode 100644 static/img/header/11.svg
delete mode 100644 static/img/header/12.svg
delete mode 100644 static/img/header/b.svg
delete mode 100644 static/img/header/c.svg
delete mode 100644 static/img/header/d.svg
create mode 100644 static/img/list/01.jpg
delete mode 100644 static/img/list/02.svg
delete mode 100644 static/img/list/03.svg
delete mode 100644 static/img/list/04.svg
delete mode 100644 static/img/list/05.svg
delete mode 100644 static/img/list/06.svg
delete mode 100644 static/img/list/07.svg
delete mode 100644 static/img/list/08.svg
delete mode 100644 static/img/list/09.svg
delete mode 100644 static/img/list/10.svg
delete mode 100644 static/img/list/11.svg
delete mode 100644 static/img/list/12.svg
delete mode 100644 static/img/logo.png
delete mode 100644 static/profile/1.jpg
delete mode 100644 static/profile/2.jpg
delete mode 100644 static/profile/3.jpg
create mode 100644 utils/lib/code.js
delete mode 100644 utils/lib/config.js
create mode 100644 utils/lib/request.js
diff --git a/App.vue b/App.vue
index ae737fc..f4d3f52 100644
--- a/App.vue
+++ b/App.vue
@@ -16,6 +16,10 @@
},
onHide: function() {
console.log('App Hide')
+ },
+ globalData: {
+ webApi: 'https://apijy.leapy.cn/',
+ imgUrl: 'https://resource.leapy.cn/',
}
}
@@ -47,4 +51,4 @@
}
/* #endif */
-
+
\ No newline at end of file
diff --git a/README.md b/README.md
index 2fcf195..d723b74 100644
--- a/README.md
+++ b/README.md
@@ -1,12 +1,6 @@
[TOC]
# 一、项目介绍
-1. 项目描述:“share-bbs”是一套采用“uni-App”开发的分享社交论坛,兼容Android、IOS、微信小程序。
-2. 代码说明:此项目为纯前端项目,不含后端、数据库等(方便本地运行、学习、复用)。前端框架:uni-app,vue.js,uViewUI。
-3. 仓库地址:[社交论坛] https://gitee.com/mrthinco/share-bbs
-4. 项目展示:
-
-
-
+1. 项目描述:采用“uni-App”开发的分享社交论坛,兼容Android、IOS、微信小程序。
# 二、目录说明
## 2.1 目录
@@ -44,11 +38,7 @@ share-bbs
└─uni.scss // 这里是uni-app内置的常用样式变量
```
-## 2.2 pages 模块/页面
-1. home 首页模块
-2. mine 我的模块
-3. news 动态模块
-4. paper 小纸条模块
+
## 2.3 components 组件
### 2.3.1 组件命名规范
diff --git a/api/login.js b/api/login.js
new file mode 100644
index 0000000..e8fb261
--- /dev/null
+++ b/api/login.js
@@ -0,0 +1,18 @@
+import { apiResquest } from '@/utils/lib/request.js'
+
+export const login = (query) => {
+ return apiResquest({
+ url: 'v1/user.login',
+ method: 'post',
+ query: query
+ })
+}
+
+export const register = (query) => {
+ return apiResquest({
+ url: 'v1/user.register',
+ method: 'post',
+ query: query
+ })
+}
+
diff --git a/main.js b/main.js
index c91de4d..7776984 100644
--- a/main.js
+++ b/main.js
@@ -5,9 +5,7 @@ import Vue from 'vue'
// uViewUI
import uView from '@/uni_modules/uview-ui'
Vue.use(uView)
-// 引入配置文件
-import $config from "@/utils/lib/config.js"
-Vue.prototype.$config = $config
+
// 引入助手函数
import $tool from '@/utils/lib/tool.js'
Vue.prototype.$tool = $tool
diff --git a/pages.json b/pages.json
index c3449fb..2ccd3f9 100644
--- a/pages.json
+++ b/pages.json
@@ -147,7 +147,7 @@
"bounce": "none"
}
}
- },
+ },
{ // 新鲜事/话题/详情
"path": "pages/news/news-topic-detail",
"style": {
@@ -296,7 +296,7 @@
"navigationStyle": "custom", // 隐藏系统导航栏
// App生效:
"app-plus": {
- "titleNView":"none"
+ "titleNView": "none"
}
}
},
@@ -356,7 +356,7 @@
// 全局样式
"globalStyle": {
"navigationBarTextStyle": "black",
- "navigationBarTitleText": "社交论坛",
+ "navigationBarTitleText": "退役军人平台",
"navigationBarBackgroundColor": "#FFFFFF",
"backgroundColor": "#FFFFFF",
"app-plus": {
@@ -365,25 +365,27 @@
},
// 底部标签栏
"tabBar": {
- "color": "#ADADAD", // tab 上的文字颜色
- "selectedColor": "#278E6F", // tab 上的文字选中时的颜色
+ "color": "#666666", // tab 上的文字颜色
+ "selectedColor": "#006EEF", // tab 上的文字选中时的颜色
"backgroundColor": "#FFFFFF", // tab 的背景颜色
"borderStyle": "black", // tabbar 上边框的颜色
+ "fontSize": "16px",
+ "iconWidth": "24px",
"list": [{
"pagePath": "pages/home/home",
- "text": "首页",
+ "text": "招聘",
"iconPath": "/static/img/tabbar/home.png",
"selectedIconPath": "/static/img/tabbar/home-ed.png"
},
{
"pagePath": "pages/news/news",
- "text": "新鲜事",
+ "text": "培训",
"iconPath": "/static/img/tabbar/news.png",
"selectedIconPath": "/static/img/tabbar/news-ed.png"
},
{
"pagePath": "pages/paper/paper",
- "text": "小纸条",
+ "text": "技能",
"iconPath": "/static/img/tabbar/paper.png",
"selectedIconPath": "/static/img/tabbar/paper-ed.png"
},
@@ -403,4 +405,4 @@
// "query": "" //启动参数,在页面的onLoad函数里面得到
// }]
// }
-}
+}
\ No newline at end of file
diff --git a/pages/home/cpns/info-list.vue b/pages/home/cpns/info-list.vue
index 28c3f77..abb7ce4 100644
--- a/pages/home/cpns/info-list.vue
+++ b/pages/home/cpns/info-list.vue
@@ -8,15 +8,15 @@
{{item.username}}
-
{{item.age}}
-
+ -->
-
-
+
+
+ 2024-06-24
- {{info.title}}
+ {{info.title}}
@@ -205,4 +206,4 @@
}
}
}
-
+
\ No newline at end of file
diff --git a/pages/home/detail.vue b/pages/home/detail.vue
index 4788716..bcc419e 100644
--- a/pages/home/detail.vue
+++ b/pages/home/detail.vue
@@ -95,7 +95,7 @@
const result = {
content: detailInfo,
images: [
- '/static/img/list/06.svg', '/static/img/list/07.svg', '/static/img/list/08.svg'
+ '/static/img/list/01.jpg', '/static/img/list/01.jpg', '/static/img/list/01.jpg'
]
}
this.info = {
diff --git a/pages/home/home.vue b/pages/home/home.vue
index 5be0d41..4b11117 100644
--- a/pages/home/home.vue
+++ b/pages/home/home.vue
@@ -4,11 +4,11 @@
-
+
-
+
@@ -33,7 +33,7 @@
-
@@ -50,6 +50,9 @@
import {
newsList
} from "@/utils/data/data.js"
+ import {
+ register
+ } from '@/api/login.js'
import InfoList from "@/pages/home/cpns/info-list.vue"
export default {
components: {
@@ -100,6 +103,13 @@
}
},
methods: {
+ btn() {
+ uni.login({
+ success: (res) => {
+ console.log(res);
+ }
+ })
+ },
// 发布
handlePublish() {
this.$u.route('/pages/home/release')
@@ -198,7 +208,7 @@
flex-direction: column;
height: calc(100vh - var(--window-top) - var(--window-bottom)); // 视高 - 内容区顶部 - 内容区底部
width: 100%;
-
+
// 小程序导航栏
/* #ifdef MP-WEIXIN */
/deep/ .u-navbar {
@@ -222,11 +232,11 @@
bottom: 100rpx;
height: 80rpx;
width: 80rpx;
- background: #E5E7EB;
+ background: #ffffff;
display: flex;
justify-content: center;
align-items: center;
border-radius: 100%;
}
}
-
+
\ No newline at end of file
diff --git a/pages/home/release.vue b/pages/home/release.vue
index 37c81cd..46e6bf7 100644
--- a/pages/home/release.vue
+++ b/pages/home/release.vue
@@ -41,7 +41,7 @@
-
+
严禁发表以下信息:
@@ -80,10 +80,10 @@
actionShow: false,
// 图片列表
imgList: [{
- url: '/static/img/demo/autumn.svg',
+ url: '/static/img/demo/winter.png',
},
{
- url: '/static/img/demo/winter.svg',
+ url: '/static/img/demo/winter.png',
}
],
// 弹窗公告
diff --git a/pages/mine/about.vue b/pages/mine/about.vue
index ac02877..e8c9c79 100644
--- a/pages/mine/about.vue
+++ b/pages/mine/about.vue
@@ -3,7 +3,7 @@
-
+
Version {{version}}
diff --git a/pages/mine/mine.vue b/pages/mine/mine.vue
index 1cd22fc..9e5d5d9 100644
--- a/pages/mine/mine.vue
+++ b/pages/mine/mine.vue
@@ -5,7 +5,7 @@
-
MrThinco
@@ -27,7 +27,7 @@
-
+
diff --git a/pages/mine/user-space.vue b/pages/mine/user-space.vue
index 61a349a..372d819 100644
--- a/pages/mine/user-space.vue
+++ b/pages/mine/user-space.vue
@@ -3,7 +3,7 @@