Commit fafdedaeaf9cbfc1f409d9b8c47f10f4d9011d88
1 parent
35615334
道闸 诱导屏
Showing
4 changed files
with
73 additions
and
3 deletions
src/assets/img/sign.png
0 → 100644
2.87 KB
src/views/dicisection.vue
src/views/mainContainer.vue
@@ -11,7 +11,7 @@ | @@ -11,7 +11,7 @@ | ||
11 | <div class="heightper-bottom"></div> | 11 | <div class="heightper-bottom"></div> |
12 | </li> | 12 | </li> |
13 | <li> | 13 | <li> |
14 | - <div class="sectionsmall"></div> | 14 | + <sfysection class="sectionsmall"></sfysection> |
15 | <div class="sectionsmall margin12-0"></div> | 15 | <div class="sectionsmall margin12-0"></div> |
16 | <div class="sectionsmall"></div> | 16 | <div class="sectionsmall"></div> |
17 | </li> | 17 | </li> |
@@ -25,13 +25,16 @@ import loadinggif from '../components/loading' | @@ -25,13 +25,16 @@ import loadinggif from '../components/loading' | ||
25 | import pdasection from '../views/pdasection' | 25 | import pdasection from '../views/pdasection' |
26 | import dicisection from '../views/dicisection' | 26 | import dicisection from '../views/dicisection' |
27 | import youdaopingsection from '../views/youdaopingsection' | 27 | import youdaopingsection from '../views/youdaopingsection' |
28 | +import sfysection from '../views/sfysection' | ||
29 | + | ||
28 | export default { | 30 | export default { |
29 | name: 'mainContainer', | 31 | name: 'mainContainer', |
30 | components: { | 32 | components: { |
31 | loadinggif, | 33 | loadinggif, |
32 | pdasection, | 34 | pdasection, |
33 | dicisection, | 35 | dicisection, |
34 | - youdaopingsection | 36 | + youdaopingsection, |
37 | + sfysection | ||
35 | }, | 38 | }, |
36 | data() { | 39 | data() { |
37 | return { | 40 | return { |
src/views/sfysection.vue
0 → 100644
1 | +<template> | ||
2 | + <div> | ||
3 | + <titlesection title="地磁"></titlesection> | ||
4 | + <totalsection :totalNum="totalVal"></totalsection> | ||
5 | + <ul class="flexfm sfy-wrap"> | ||
6 | + <li> | ||
7 | + <div class="sign"> | ||
8 | + <p>1234</p> | ||
9 | + <p>签到</p> | ||
10 | + </div> | ||
11 | + </li> | ||
12 | + <li>1</li> | ||
13 | + </ul> | ||
14 | + </div> | ||
15 | +</template> | ||
16 | + | ||
17 | +<script> | ||
18 | +import titlesection from '../components/titlesection' | ||
19 | +import totalsection from '../components/total' | ||
20 | +import { formatNum } from '../filters/filters' | ||
21 | +import {fetchList} from '../api/api' | ||
22 | + | ||
23 | +export default { | ||
24 | + name: 'sfysection', | ||
25 | + components: { | ||
26 | + titlesection, | ||
27 | + totalsection | ||
28 | + }, | ||
29 | + data() { | ||
30 | + return { | ||
31 | + totalVal: '219734', | ||
32 | + } | ||
33 | + }, | ||
34 | + created() { | ||
35 | + }, | ||
36 | + methods: { | ||
37 | + getList() { | ||
38 | + fetchList() | ||
39 | + .then(res => { | ||
40 | + console.log(res); | ||
41 | + | ||
42 | + }); | ||
43 | + }, | ||
44 | + } | ||
45 | +} | ||
46 | +</script> | ||
47 | + | ||
48 | +<style lang="scss" scoped> | ||
49 | + .sfy-wrap{ | ||
50 | + display: flex; | ||
51 | + padding: 0 23px; | ||
52 | + li{ | ||
53 | + flex: 1; | ||
54 | + display: flex; | ||
55 | + align-items:center; | ||
56 | + >div{ | ||
57 | + width: 100%; | ||
58 | + height: 74px; | ||
59 | + padding-left: 87px; | ||
60 | + color: #fff; | ||
61 | + } | ||
62 | + .sign{ | ||
63 | + background: url("../assets/img/sign.png") no-repeat; | ||
64 | + } | ||
65 | + } | ||
66 | + } | ||
67 | +</style> |