diff --git a/.gitignore b/.gitignore index 3cd381a..087bf31 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,7 @@ selenium-debug.log *.suo *.ntvs* *.njsproj -*.sln \ No newline at end of file +*.sln + +node_modules/ +unpackage/ \ No newline at end of file diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/.hbuilderx/launch.json b/src/main/resources/static/linfeng-community-uniapp-ky/.hbuilderx/launch.json new file mode 100644 index 0000000..c9abd4b --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/.hbuilderx/launch.json @@ -0,0 +1,11 @@ +{ // launch.json 配置了启动调试时相关设置,configurations下节点名称可为 app-plus/h5/mp-weixin/mp-baidu/mp-alipay/mp-qq/mp-toutiao/mp-360/ + // launchtype项可配置值为local或remote, local代表前端连本地云函数,remote代表前端连云端云函数 + "version": "0.0", + "configurations": [{ + "type": "uniCloud", + "default": { + "launchtype": "local" + } + } + ] +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/App.vue b/src/main/resources/static/linfeng-community-uniapp-ky/App.vue new file mode 100644 index 0000000..ab8d2ea --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/App.vue @@ -0,0 +1,19 @@ + + + diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/index.html b/src/main/resources/static/linfeng-community-uniapp-ky/index.html new file mode 100644 index 0000000..c3ff205 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/index.html @@ -0,0 +1,20 @@ + + + + + + + + + + +
+ + + diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/main.js b/src/main/resources/static/linfeng-community-uniapp-ky/main.js new file mode 100644 index 0000000..aeb2752 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/main.js @@ -0,0 +1,33 @@ +import App from './App' +import store from "./store" +import uView from "uview-ui"; +import config from './utils/config.js'; +import request from './utils/request.js'; + +Vue.use(uView); +// 挂载Vuex +Vue.prototype.$store = store; +// 配置文件 +Vue.prototype.$c = config; +// http请求 +Vue.prototype.$H = request; + +// #ifndef VUE3 +import Vue from 'vue' +Vue.config.productionTip = false +App.mpType = 'app' +const app = new Vue({ + ...App +}) +app.$mount() +// #endif + +// #ifdef VUE3 +import { createSSRApp } from 'vue' +export function createApp() { + const app = createSSRApp(App) + return { + app + } +} +// #endif \ No newline at end of file diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/manifest.json b/src/main/resources/static/linfeng-community-uniapp-ky/manifest.json new file mode 100644 index 0000000..d66c3ed --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/manifest.json @@ -0,0 +1,72 @@ +{ + "name" : "linfeng-community-uniapp-ky", + "appid" : "__UNI__A0400CB", + "description" : "", + "versionName" : "1.0.0", + "versionCode" : "100", + "transformPx" : false, + /* 5+App特有相关 */ + "app-plus" : { + "usingComponents" : true, + "nvueStyleCompiler" : "uni-app", + "compilerVersion" : 3, + "splashscreen" : { + "alwaysShowBeforeRender" : true, + "waiting" : true, + "autoclose" : true, + "delay" : 0 + }, + /* 模块配置 */ + "modules" : {}, + /* 应用发布信息 */ + "distribute" : { + /* android打包配置 */ + "android" : { + "permissions" : [ + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "", + "" + ] + }, + /* ios打包配置 */ + "ios" : {}, + /* SDK配置 */ + "sdkConfigs" : {} + } + }, + /* 快应用特有相关 */ + "quickapp" : {}, + /* 小程序特有相关 */ + "mp-weixin" : { + "appid" : "", + "setting" : { + "urlCheck" : false + }, + "usingComponents" : true + }, + "mp-alipay" : { + "usingComponents" : true + }, + "mp-baidu" : { + "usingComponents" : true + }, + "mp-toutiao" : { + "usingComponents" : true + }, + "uniStatistics" : { + "enable" : false + }, + "vueVersion" : "2" +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/package-lock.json b/src/main/resources/static/linfeng-community-uniapp-ky/package-lock.json new file mode 100644 index 0000000..6bd920c --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/package-lock.json @@ -0,0 +1,13 @@ +{ + "name": "linfeng-community-uniapp-ky", + "version": "1.0.0", + "lockfileVersion": 1, + "requires": true, + "dependencies": { + "uview-ui": { + "version": "1.8.4", + "resolved": "https://registry.npmmirror.com/uview-ui/-/uview-ui-1.8.4.tgz", + "integrity": "sha512-Zr+D5dFdNy6CdHQLBEXeGq/w0LkjxzBtsgaaDwLl0P58g67H7fBBDvy6AzWK/k0c7dwPYMBiK7I4Tr9p92+0DA==" + } + } +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/package.json b/src/main/resources/static/linfeng-community-uniapp-ky/package.json new file mode 100644 index 0000000..cdece40 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/package.json @@ -0,0 +1,15 @@ +{ + "name": "linfeng-community-uniapp-ky", + "version": "1.0.0", + "description": "", + "main": "main.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "keywords": [], + "author": "", + "license": "ISC", + "dependencies": { + "uview-ui": "^1.8.4" + } +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages.json b/src/main/resources/static/linfeng-community-uniapp-ky/pages.json new file mode 100644 index 0000000..293c456 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages.json @@ -0,0 +1,63 @@ +{ + "easycom": { + "^u-(.*)": "uview-ui/components/u-$1/u-$1.vue" + }, + "pages": [ //pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages + { + "path": "pages/index/index", + "style": { + "navigationBarTitleText": "uni-app" + } + } + ,{ + "path" : "pages/message/message", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ,{ + "path" : "pages/user/user", + "style" : + { + "navigationBarTitleText": "", + "enablePullDownRefresh": false + } + + } + ], + "globalStyle": { + "navigationBarTextStyle": "black", + "navigationBarTitleText": "林风论坛", + "navigationBarBackgroundColor": "#FFFFFF", + "backgroundColor": "#FFFFFF" + }, + "tabBar": { + "color": "#7A7E83", + "selectedColor": "#2c2c2c", + "borderStyle": "white", + "backgroundColor": "#ffffff", + "list": [{ + "pagePath": "pages/index/index", + "iconPath": "static/tabbar/home-1.png", + "selectedIconPath": "static/tabbar/home.png", + "text": "主页" + }, + { + "pagePath": "pages/message/message", + "iconPath": "static/tabbar/msg-1.png", + "selectedIconPath": "static/tabbar/msg.png", + "text": "消息" + }, + { + "pagePath": "pages/user/user", + "iconPath": "static/tabbar/my-1.png", + "selectedIconPath": "static/tabbar/my.png", + "text": "我的" + } + ] + } + +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue new file mode 100644 index 0000000..0f03100 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/index/index.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/message/message.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/message/message.vue new file mode 100644 index 0000000..6f58754 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/message/message.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue new file mode 100644 index 0000000..4c859fe --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/pages/user/user.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/css/iconfont.css b/src/main/resources/static/linfeng-community-uniapp-ky/static/css/iconfont.css new file mode 100644 index 0000000..2ccb486 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/static/css/iconfont.css @@ -0,0 +1,176 @@ +@font-face {font-family: "iconfont"; + src: url('//at.alicdn.com/t/font_1817318_pgi7seo7tle.eot?t=1599975848801'); /* IE9 */ + src: url('//at.alicdn.com/t/font_1817318_pgi7seo7tle.eot?t=1599975848801#iefix') format('embedded-opentype'), /* IE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gYAj4a/S7ElIycgpKDlx9teNh+PGnQdPXmlgMdIZU7uCW6dGtgM9kyqxr/tO0gWS7deYzlRgx1HESVZ8i1SOQwdnSf70rvvuO7q8mZaCBGD/kYHvNLuBfMhqFEBukjed96ZtBm7xeXYlkGy+UGF/DzSNxmyZYR0kFzJwm6US35G9z4sX8kNEKnNFTHSHWPowjoR9n55nswwQZ9Ovy3Qi4F5xDVTsW6m5CtTT6UA3VD9VcFubXj07ibZzhOK9m8gH7cT9g7c4UCMVjmHfi/lUFdK3EfXOmt1bRpsHF7rp2+lFMXMDAAA=') format('woff2'), + url('//at.alicdn.com/t/font_1817318_pgi7seo7tle.woff?t=1599975848801') format('woff'), + url('//at.alicdn.com/t/font_1817318_pgi7seo7tle.ttf?t=1599975848801') format('truetype'), /* chrome, firefox, opera, Safari, Android, iOS 4.2+ */ + url('//at.alicdn.com/t/font_1817318_pgi7seo7tle.svg?t=1599975848801#iconfont') format('svg'); /* iOS 4.1- */ +} + +.iconfont { + font-family: "iconfont" !important; + font-size: 16px; + font-style: normal; + -webkit-font-smoothing: antialiased; + -moz-osx-font-smoothing: grayscale; +} + +.icon-deliver:before { + content: "\e671"; +} + +.icon-pay:before { + content: "\e673"; +} + +.icon-send:before { + content: "\e675"; +} + +.icon-settings:before { + content: "\e68a"; +} + +.icon-forward:before { + content: "\e6eb"; +} + +.icon-service:before { + content: "\e700"; +} + +.icon-file:before { + content: "\e739"; +} + +.icon-deliver_fill:before { + content: "\e81f"; +} + +.icon-favorfill:before { + content: "\e64b"; +} + +.icon-favor:before { + content: "\e64c"; +} + +.icon-kefu1:before { + content: "\e60e"; +} + +.icon-daohangquanzi:before { + content: "\e6ec"; +} + +.icon-yaoqinghaoyou1:before { + content: "\e740"; +} + +.icon-kefu:before { + content: "\e6f1"; +} + +.icon-nan:before { + content: "\e68d"; +} + +.icon-nv:before { + content: "\e62f"; +} + +.icon-xiaoxi-tongzhi:before { + content: "\e69d"; +} + +.icon-xiaoxitongzhi:before { + content: "\e821"; +} + +.icon-shoucang2:before { + content: "\e688"; +} + +.icon-xinzengguanzhu:before { + content: "\e611"; +} + +.icon-leimupinleifenleileibie:before { + content: "\e600"; +} + +.icon-gengduo:before { + content: "\e6dc"; +} + +.icon-gengduo1:before { + content: "\e640"; +} + +.icon-tuijian:before { + content: "\e601"; +} + +.icon-delete:before { + content: "\e603"; +} + +.icon-dongtai:before { + content: "\e6a7"; +} + +.icon-quanzi:before { + content: "\e632"; +} + +.icon-huati:before { + content: "\e8c4"; +} + +.icon-shoucang1:before { + content: "\e60d"; +} + +.icon-unfold:before { + content: "\e661"; +} + +.icon-back:before { + content: "\e679"; +} + +.icon-right:before { + content: "\e6a3"; +} + +.icon-fold:before { + content: "\e6de"; +} + +.icon-shoucang:before { + content: "\e64f"; +} + +.icon-fenxiang:before { + content: "\e687"; +} + +.icon-lujing:before { + content: "\e621"; +} + +.icon-dianzan:before { + content: "\e60c"; +} + +.icon-yuedu:before { + content: "\e639"; +} + +.icon-dianzan1:before { + content: "\e64d"; +} + +.icon-pinglun:before { + content: "\e60b"; +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/home-1.png b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/home-1.png new file mode 100644 index 0000000..921ccaf Binary files /dev/null and b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/home-1.png differ diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/home.png b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/home.png new file mode 100644 index 0000000..7f59f26 Binary files /dev/null and b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/home.png differ diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/msg-1.png b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/msg-1.png new file mode 100644 index 0000000..91cb792 Binary files /dev/null and b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/msg-1.png differ diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/msg.png b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/msg.png new file mode 100644 index 0000000..eb08bac Binary files /dev/null and b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/msg.png differ diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/my-1.png b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/my-1.png new file mode 100644 index 0000000..8dc81cd Binary files /dev/null and b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/my-1.png differ diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/my.png b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/my.png new file mode 100644 index 0000000..d20dfe8 Binary files /dev/null and b/src/main/resources/static/linfeng-community-uniapp-ky/static/tabbar/my.png differ diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/store/index.js b/src/main/resources/static/linfeng-community-uniapp-ky/store/index.js new file mode 100644 index 0000000..2ffc781 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/store/index.js @@ -0,0 +1,24 @@ +import Vue from 'vue' +import Vuex from 'vuex' + +Vue.use(Vuex) + +const store = new Vuex.Store({ + state: { + hasLogin: uni.getStorageSync("hasLogin"), + sessionKey: uni.getStorageSync("sessionKey"), + messegeNum:[], + }, + mutations: { + login(state, userInfo) { + state.hasLogin = uni.getStorageSync("hasLogin"); + state.sessionKey = uni.getStorageSync("sessionKey"); + }, + logout(state) { + state.hasLogin = false; + state.sessionKey = null; + } + } +}) + +export default store diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/uni.scss b/src/main/resources/static/linfeng-community-uniapp-ky/uni.scss new file mode 100644 index 0000000..9ecd120 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/uni.scss @@ -0,0 +1 @@ +@import 'uview-ui/theme.scss'; \ No newline at end of file diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js new file mode 100644 index 0000000..45d3b8e --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/config.js @@ -0,0 +1,19 @@ +const miniappName = "林风社交论坛"; //分享时的标题 +const shareH5Url = "https://www.linfeng.tech/#/"; //H5分享路径 + + +//本地环境配置 +// const baseUrl = "localhost:8080"; +// const domain = 'http://' + baseUrl + "/app/"; + +//线上环境配置 +const baseUrl = "wxapi.linfeng.tech"; +const domain = 'https://' + baseUrl + "/app/"; + + +export default { + baseUrl: baseUrl, + domain: domain, + miniappName: miniappName, + shareH5Url: shareH5Url +} diff --git a/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js b/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js new file mode 100644 index 0000000..9ab43b3 --- /dev/null +++ b/src/main/resources/static/linfeng-community-uniapp-ky/utils/request.js @@ -0,0 +1,67 @@ +import config from './config.js'; +export default { + request(options = {}) { + return new Promise((resolve, reject) => { + let url = options.url; + if (url.indexOf("http://") == -1 && url.indexOf("https://") == -1) { + options.url = config.domain + url; + } + options.header.token = uni.getStorageSync("token"); + options.complete = (response) => { + if (response.statusCode == 200 || response.statusCode == 0) { + if (response.data.code == 401 || response.data.code == 420) { + // #ifdef MP-WEIXIN + uni.navigateTo({ + url: "/pages/login/weixin" + }) + // #endif + + // #ifdef H5 + uni.navigateTo({ + url: "/pages/login/login" + }) + // #endif + } + + if (response.data.code == 500) { + uni.showToast({ + title: response.data.msg, + icon: "none", + duration: 2000 + }); + } + resolve(response.data) + } else { + uni.showToast({ + title: '请求异常!', + icon: "none" + }); + } + } + + uni.request(options) + }) + }, + + post(url, data = {}, header = {}) { + + let options = { + url: url, + data: data, + header: header, + method: "POST" + } + + return this.request(options); + }, + + get(url, data = {}, header = {}) { + let options = { + url: url, + data: data, + header: header + } + + return this.request(options); + } +}; \ No newline at end of file