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 @@