Skip to content

Commit

Permalink
提交
Browse files Browse the repository at this point in the history
  • Loading branch information
frontHu committed Sep 28, 2018
1 parent 12b094f commit e5acaa0
Show file tree
Hide file tree
Showing 9 changed files with 39 additions and 13,543 deletions.
13,526 changes: 0 additions & 13,526 deletions package-lock.json

This file was deleted.

11 changes: 3 additions & 8 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,23 +6,18 @@

<style>
* {
/* padding: 0;
margin: 0; */
box-sizing: border-box;
}
html, body {
width: 100%;
height: 100%;
color: #606c71;
padding: 0;
margin: 0;
}
#app {
width: 100%;
height: 100%;
/* font-family: 'Avenir', Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
color: #2c3e50; */
/* margin-top: 60px; */
}
</style>
2 changes: 1 addition & 1 deletion src/api/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios'
// import queryString from './../untils/querysting'

const base_url = '/api'
const base_url = '/server'

export default function fetch(url, data) {
return new Promise((resolve, reject) => {
Expand Down
Binary file added src/assets/bg-01-denglu.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/logo-twitch.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/pa_logo02.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/components/Slider/Slider.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
<template>
<div class="slider">
<div class="silder-header"></div>
<div class="silder-header">
<img src='./../../assets/logo-twitch.png' alt="">
Blog
</div>
<div class="slider-list">
<ul class="slider-item" v-for="(menuItem, index) in theModel" :key="index">
<Menu :model="menuItem" :icon="menuItem.icon" :key="menuItem.id"></Menu>
Expand Down Expand Up @@ -33,11 +36,18 @@ export default {
width: 100%;
height: 64px;
background-color: #002140;
line-height: 64px;
padding-left: 20px;
img {
width: 36px;
vertical-align: middle;
}
}
.slider-list {
padding: 10px 0;
height: 100%;
.slider-item {
padding: 0;
display: block;
}
}
Expand Down
24 changes: 20 additions & 4 deletions src/page/Login/Login.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,20 @@
<template>
<div class="login">
<div class="login-box">
<input v-model="username" @input="inputHandle($event,'username')" type="text" class="username">
<input v-model="password" @input="inputHandle($event,'password')" type="text" class="password">
<h3>博客后台管理系统</h3>
<input
v-model="username" @input="inputHandle($event,'username')"
type="text"
class="username"
placeholder="admin"
>
<input
v-model="password"
@input="inputHandle($event,'password')"
type="text"
class="password"
placeholder="password"
>
<button class="login-btn" @click="handleLogin">Login</button>
</div>
</div>
Expand All @@ -19,7 +31,6 @@ export default {
},
methods: {
handleLogin() {
console.log(111)
},
inputHandle(e, type) {
this[type] = e.target.value
Expand All @@ -33,6 +44,7 @@ export default {
width: 100%;
height: 100%;
background-color: #324157;
background: url('./../../assets/bg-01-denglu.png') no-repeat center center;
.login-box {
width: 380px;
height: 240px;
Expand All @@ -42,7 +54,11 @@ export default {
left: 50%;
top: 50%;
margin: -120px 0 0 -190px;
padding: 40px;
padding: 0 40px 40px;
h3 {
color: #324157;
text-align: center;
}
.username,
.password {
margin-bottom: 1rem;
Expand Down
7 changes: 4 additions & 3 deletions vue.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,14 @@ module.exports = {
host: 'localhost',
port: 8080,
proxy: {
'/api': {
'/server': {
target: 'http://localhost:3333',
pathRewrite: {
'^/api': 'http://localhost:3333'
'^/server': 'http://localhost:3333'
},
changeOrigin: false
}
}
}
},
baseUrl: process.env.NODE_ENV === 'production' ? 'http://zw-lazy.cn/backend/' : '/'
}

0 comments on commit e5acaa0

Please sign in to comment.