Showing
3 changed files
with
17 additions
and
6 deletions
| ... | @@ -6,3 +6,14 @@ | ... | @@ -6,3 +6,14 @@ |
| 6 | @base-color: #11D2B1; | 6 | @base-color: #11D2B1; |
| 7 | // 文字颜色 | 7 | // 文字颜色 |
| 8 | @base-font-color: #FFFFFF; | 8 | @base-font-color: #FFFFFF; |
| 9 | + | ||
| 10 | +// 定义一个映射 | ||
| 11 | +#colors() { | ||
| 12 | + base-color: @base-color; | ||
| 13 | + base-font-color: @base-font-color; | ||
| 14 | +} | ||
| 15 | + | ||
| 16 | +// 混合 | ||
| 17 | +.width100 { | ||
| 18 | + width: 100%; | ||
| 19 | +} | ... | ... |
| ... | @@ -2,7 +2,7 @@ | ... | @@ -2,7 +2,7 @@ |
| 2 | * @Author: hookehuyr hookehuyr@gmail.com | 2 | * @Author: hookehuyr hookehuyr@gmail.com |
| 3 | * @Date: 2022-04-21 10:04:58 | 3 | * @Date: 2022-04-21 10:04:58 |
| 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com | 4 | * @LastEditors: hookehuyr hookehuyr@gmail.com |
| 5 | - * @LastEditTime: 2022-06-02 21:18:10 | 5 | + * @LastEditTime: 2022-06-18 19:28:22 |
| 6 | * @FilePath: /tswj/src/components/MyButton/index.vue | 6 | * @FilePath: /tswj/src/components/MyButton/index.vue |
| 7 | * @Description: | 7 | * @Description: |
| 8 | --> | 8 | --> |
| ... | @@ -61,10 +61,10 @@ export default { | ... | @@ -61,10 +61,10 @@ export default { |
| 61 | padding: 0.6rem; | 61 | padding: 0.6rem; |
| 62 | margin: 0.5rem; | 62 | margin: 0.5rem; |
| 63 | font-size: 1rem; | 63 | font-size: 1rem; |
| 64 | - background: @base-color; | 64 | + background: #colors[base-color]; |
| 65 | border-radius: 24px; | 65 | border-radius: 24px; |
| 66 | - border: 1px solid @base-color; | 66 | + border: 1px solid #colors[base-color]; |
| 67 | - color: @base-font-color; | 67 | + color: #colors[base-font-color]; |
| 68 | font-weight: bold; | 68 | font-weight: bold; |
| 69 | } | 69 | } |
| 70 | .button-plain { | 70 | .button-plain { | ... | ... |
| ... | @@ -68,7 +68,7 @@ const goSchool = () => { // 跳转选择幼儿园页面 | ... | @@ -68,7 +68,7 @@ const goSchool = () => { // 跳转选择幼儿园页面 |
| 68 | // background-image: url('@images/shouyedongtu.gif'); | 68 | // background-image: url('@images/shouyedongtu.gif'); |
| 69 | background-image: url('http://gyzs.onwall.cn/shouyedongtu.gif'); | 69 | background-image: url('http://gyzs.onwall.cn/shouyedongtu.gif'); |
| 70 | background-repeat: no-repeat; | 70 | background-repeat: no-repeat; |
| 71 | - width: 100%; | 71 | + .width100(); |
| 72 | height: 100vh; | 72 | height: 100vh; |
| 73 | background-size: 100% 85%; | 73 | background-size: 100% 85%; |
| 74 | position: relative; | 74 | position: relative; |
| ... | @@ -77,7 +77,7 @@ const goSchool = () => { // 跳转选择幼儿园页面 | ... | @@ -77,7 +77,7 @@ const goSchool = () => { // 跳转选择幼儿园页面 |
| 77 | .entry-wrapper { | 77 | .entry-wrapper { |
| 78 | position: absolute; | 78 | position: absolute; |
| 79 | bottom: 1rem; | 79 | bottom: 1rem; |
| 80 | - width: 100%; | 80 | + .width100(); |
| 81 | 81 | ||
| 82 | .text { | 82 | .text { |
| 83 | color: #B8B8B8; | 83 | color: #B8B8B8; | ... | ... |
-
Please register or login to post a comment