From b607b0350b5f772250f38e83d0f6f2791a1b0b33 Mon Sep 17 00:00:00 2001 From: yma16 <1432448610@qq.com> Date: Sun, 17 Apr 2022 17:20:20 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E7=89=88=E6=9C=AC=E8=BF=AD=E4=BB=A3ip->?= =?UTF-8?q?=E6=94=B9=E5=8F=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/index.js | 2 +- src/App.vue | 653 +++++++------ src/comment/ArticleComment.vue | 3 +- src/components/Article.vue | 1251 +++++++++++++------------ src/components/Bilicom.vue | 10 +- src/components/Csslearn.vue | 7 +- src/components/Login.vue | 186 ++-- src/components/Mavoneditor.vue | 98 +- src/components/Onlinewebsocket.vue | 1384 ++++++++++++++-------------- src/components/Register.vue | 235 +++-- src/weather/EchartWeather.vue | 485 +++++----- 11 files changed, 2280 insertions(+), 2034 deletions(-) diff --git a/config/index.js b/config/index.js index 7c58c0f..324e89c 100644 --- a/config/index.js +++ b/config/index.js @@ -82,4 +82,4 @@ module.exports = { // Set to `true` or `false` to always turn it on or off bundleAnalyzerReport: process.env.npm_config_report } -} \ No newline at end of file +} diff --git a/src/App.vue b/src/App.vue index b0a584b..ae349c2 100644 --- a/src/App.vue +++ b/src/App.vue @@ -1,212 +1,261 @@ - + - - - - - - - - - - - 开发人员 - - - - yma16 - stay hungry - - echarts - - - superuser - - - - location - guiyang - - - - - - - 管理后台 - - - 登录 - - - 注册 - - - - - - - 线上聊天 - - - - - - - 管理员 - 在线聊天室 - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + 开发人员 + + + + yma16 + stay hungry + + echarts + + + superuser + + + + location + guiyang + + + + + + + 管理后台 + + + 登录 + + + 注册 + + + + + + + 线上聊天 + + + + + + + {{ authSlogan }} + 在线聊天室 + + + + + + + + + + + + + + + + + - + diff --git a/src/comment/ArticleComment.vue b/src/comment/ArticleComment.vue index 080798d..08c2840 100644 --- a/src/comment/ArticleComment.vue +++ b/src/comment/ArticleComment.vue @@ -45,7 +45,8 @@ export default { return { noneMsg: "还没人评论>_<", msg: "评论区", - baseurl: "http://yongma16.xyz/comment/", + baseurl: "http://114.116.52.53/comment/", + // baseurl: "http://yongma16.xyz/comment/", userImg: "", username: "匿名", contentRes: [], diff --git a/src/components/Article.vue b/src/components/Article.vue index 0ca028a..2dfeb00 100644 --- a/src/components/Article.vue +++ b/src/components/Article.vue @@ -1,726 +1,821 @@ /* eslint-disable vue/no-duplicate-attributes */ - + - - - - {{ slogan }} - - - {{ item }} - - - - - - - - + + + {{ slogan }} + + + {{ item }} - - - - - {{ commmentSlogan }} - - - - - - - - - {{ day_challenge }} - - - {{item}} - - - - - - - - - - - - - - - - + + + + + + + + + + + + + {{ commmentSlogan }} + + + + + + + {{ day_challenge }} + + + {{ item }} + + + + + + + + + + + + + + + - - - - {{ the_title }} - - - - - - - - + + + + {{ the_title }} + + + - - - {{ day_challenge }} - - - {{item}} - - - - - - + + + + {{ day_challenge }} + + + {{ item }} + + + + + + - - - - + + + + - - + - - - - - - - - - - - + " + > + + + + + + + + + + + - - + diff --git a/src/components/Bilicom.vue b/src/components/Bilicom.vue index 0fd7c80..3534c9a 100644 --- a/src/components/Bilicom.vue +++ b/src/components/Bilicom.vue @@ -11,18 +11,16 @@ export default { name: 'Bilicom', data () { return { - baseurl: 'http://yongma16.xyz/article/index/', msg: '内容', md_data: [], - data: ['threejs加载模型'], - mychart: echarts.init(document.getElementById('bilicom')) + data: ['threejs加载模型'] } }, methods: { - echartfunc: function (o) { + echartfunc: function () { // 基于准备好的dom,初始化echarts实例 - var myChart = echarts.init(document.getElementById('bilicom')) - var option = { + const myChart = echarts.init(document.getElementById('bilicom')) + const option = { backgroundColor: 'rgba(0, 0, 0, 0.3)', title: { diff --git a/src/components/Csslearn.vue b/src/components/Csslearn.vue index 51919e2..e0fb5c5 100644 --- a/src/components/Csslearn.vue +++ b/src/components/Csslearn.vue @@ -37,7 +37,8 @@ export default { msg: "css练习:", css_length: "", // baseurl: 'http://127.0.0.1:1998', - baseurl: "http://yongma16.xyz", + baseurl: "http://114.116.52.53/", + // baseurl: "http://yongma16.xyz/", css_title: [], css_path: [], css_loc: 0, @@ -89,7 +90,7 @@ export default { let that = this; axios - .get(that.baseurl + "/css/") + .get(that.baseurl + "css/") .then((res) => { console.log("get返回", res); let getdata = res.data; @@ -126,7 +127,7 @@ export default { }; - diff --git a/src/components/Mavoneditor.vue b/src/components/Mavoneditor.vue index 2f05820..e488d06 100644 --- a/src/components/Mavoneditor.vue +++ b/src/components/Mavoneditor.vue @@ -1,71 +1,83 @@ - - + + diff --git a/src/components/Onlinewebsocket.vue b/src/components/Onlinewebsocket.vue index 32fa2ea..a25e4c7 100644 --- a/src/components/Onlinewebsocket.vue +++ b/src/components/Onlinewebsocket.vue @@ -1,87 +1,127 @@ - + - - 欢迎进入聊天室 - - - - - - - - - - - - 进入聊天室 - + + 欢迎进入聊天室 + + + + + + + + + + + + 进入聊天室 + + + - - 聊天室 - - 消息:{{ chatCount }} - - + 聊天室 + + 消息:{{ chatCount }} + + - {{ item }} - - - {{ msg }} - - - - - {{ room_select }} - - 清屏 - - + ]" + @click="changeRoom(item, index)" + > + {{ item }} + + + {{ msg }} + + + + + {{ room_select }} + + 清屏 + + - - 发送 - + + 发送 + - - - - - - + + + + + - - {{ item2.user }} {{ item2.create_time }} - - - {{ item2.message }} - - - + ]" + > + + {{ item2.user }} {{ item2.create_time }} - - - - - {{ room_select }} - - 清屏 - + + {{ item2.message }} + + + + - - 发送 - + + + {{ room_select }} + + 清屏 + + + + + 发送 + - + diff --git a/src/components/Register.vue b/src/components/Register.vue index 9de376c..c0d3a11 100644 --- a/src/components/Register.vue +++ b/src/components/Register.vue @@ -1,139 +1,172 @@ - + - + - - + + + + + + - - - - - - - - 注册 - - - + - - - + + + - - - - - - - - 注册 - 清空 - - - 已有账号? - 去登录 - - + + + + + + + + 注册 + 清空 + + + 已有账号? + 去登录 + + - + -- GitLab
进入聊天室
聊天室
消息:{{ chatCount }}
{{ msg }}
{{ item2.message }}
注册