forked from yucccc/vue-mall
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
81 changed files
with
150 additions
and
55,407 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// 主色 | ||
$main-col: #f10215; | ||
$main-col: #5079d9; | ||
// 头部 | ||
$head-col: #e3e4e5; | ||
// 字体颜色 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
<template> | ||
<button :class="classStyle" @click="btnClick" :disabled="classStyle==='disabled-btn'"> | ||
<span>{{text}}</span> | ||
</button> | ||
</template> | ||
<script> | ||
export default { | ||
props: { | ||
text: { | ||
type: [String, Number], | ||
default: '一颗小按钮' | ||
}, | ||
classStyle: { | ||
type: String, | ||
default: 'default-btn' | ||
} | ||
}, | ||
methods: { | ||
btnClick () { | ||
this.$emit('btnClick') | ||
} | ||
} | ||
} | ||
</script> | ||
<style lang="scss" rel="stylesheet/scss" scoped> | ||
@import "../assets/style/theme"; | ||
%style { | ||
margin: 0 5px; | ||
width: 100px; | ||
height: 30px; | ||
line-height: 28px; | ||
vertical-align: middle; | ||
} | ||
@mixin color($a,$b,$c) { | ||
border: 1px solid $a; | ||
border-radius: 4px; | ||
font-size: 12px; | ||
color: $b; | ||
background-color: $c; | ||
} | ||
button { | ||
display: inline-block; | ||
cursor: pointer; | ||
text-align: center; | ||
> span { | ||
user-select: none; | ||
} | ||
} | ||
/*灰色的按钮*/ | ||
.gray-btn { | ||
border: 1px solid #d5d5d5; | ||
color: #646464; | ||
} | ||
// 默认按钮 | ||
.default-btn { | ||
@include color(#e1e1e1, #646464, #f9f9f9); | ||
@extend %style; | ||
background-image: -webkit-linear-gradient(top, $cf, #f9f9f9); | ||
background-image: linear-gradient(180deg, $cf, #f9f9f9); | ||
&:hover { | ||
background-color: #eee; | ||
background-image: -webkit-linear-gradient(top, #f5f5f5, #eee); | ||
background-image: linear-gradient(180deg, #f5f5f5, #eee); | ||
} | ||
} | ||
// 主色按钮 | ||
.main-btn { | ||
@include color(#5c81e3, #fff, #678ee7); | ||
background-image: -webkit-linear-gradient(top, #678ee7, #5078df); | ||
background-image: linear-gradient(180deg, #678ee7, #5078df); | ||
@extend %style; | ||
&:hover { | ||
background-color: #6c8cd4; | ||
background-image: -webkit-linear-gradient(top, #6c8cd4, #4769c2); | ||
background-image: linear-gradient(180deg, #6c8cd4, #4769c2); | ||
} | ||
} | ||
// 禁用 | ||
.disabled-btn { | ||
cursor: not-allowed; | ||
@include color(#afafaf, $cf, #a9a9a9); | ||
@extend %style; | ||
background-image: -webkit-linear-gradient(top, #b8b8b8, #a9a9a9); | ||
background-image: linear-gradient(180deg, #b8b8b8, #a9a9a9); | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,9 +3,7 @@ import App from './App' | |
import router from './router' | ||
import VueLazyload from 'vue-lazyload' | ||
import infiniteScroll from 'vue-infinite-scroll' | ||
import ElementUI from 'element-ui' | ||
import VueCookie from 'vue-cookie' | ||
import '../theme/index.css' | ||
Vue.use(infiniteScroll) | ||
Vue.use(VueCookie) | ||
Vue.use(VueLazyload, { | ||
|
@@ -14,7 +12,6 @@ Vue.use(VueLazyload, { | |
loading: '/static/images/[email protected]' | ||
// attempt: 1 | ||
}) | ||
Vue.use(ElementUI) | ||
Vue.config.productionTip = false | ||
import store from './store' | ||
/* eslint-disable no-new */ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -31,7 +31,7 @@ | |
} | ||
} | ||
</script> | ||
<style lang="scss" scoped> | ||
<style lang="scss" rel="stylesheet/scss" scoped> | ||
.logo { | ||
background-image: url('/static/images/[email protected]'); | ||
background-repeat: no-repeat; | ||
|
Oops, something went wrong.