Showing
11 changed files
with
115 additions
and
5 deletions
@@ -43,7 +43,21 @@ function newIndex(req, res, next) { | @@ -43,7 +43,21 @@ function newIndex(req, res, next) { | ||
43 | floors: result.index, | 43 | floors: result.index, |
44 | tabs: result.tabData, | 44 | tabs: result.tabData, |
45 | filterList: result.filterGroupList, | 45 | filterList: result.filterGroupList, |
46 | - shareInfo: result.shareInfo | 46 | + shareInfo: result.shareInfo, |
47 | + tabbarItems: { | ||
48 | + active: 0, | ||
49 | + items: [{ | ||
50 | + title: '拼团首页', | ||
51 | + url: '/activity/group/newIndex', | ||
52 | + style: 'group-tab-home', | ||
53 | + style_unselect: 'group-tab-home-unselect', | ||
54 | + }, { | ||
55 | + title: '我的拼团', | ||
56 | + url: '/activity/group/order', | ||
57 | + style: 'my-group-tab', | ||
58 | + style_unselect: 'my-group-tab-unselect', | ||
59 | + }] | ||
60 | + } | ||
47 | }); | 61 | }); |
48 | }).catch(next); | 62 | }).catch(next); |
49 | } | 63 | } |
@@ -354,8 +368,21 @@ function order(req, res, next) { | @@ -354,8 +368,21 @@ function order(req, res, next) { | ||
354 | { | 368 | { |
355 | title: '全部', | 369 | title: '全部', |
356 | src: '/activity/group/order?type=1&selectIndex=1' | 370 | src: '/activity/group/order?type=1&selectIndex=1' |
357 | - } | ||
358 | - ], | 371 | + }], |
372 | + tabbarItems: { | ||
373 | + active: 1, | ||
374 | + items: [{ | ||
375 | + title: '拼团首页', | ||
376 | + url: '/activity/group/newIndex', | ||
377 | + style: 'group-tab-home', | ||
378 | + style_unselect: 'group-tab-home-unselect', | ||
379 | + }, { | ||
380 | + title: '我的拼团', | ||
381 | + url: '/activity/group/order', | ||
382 | + style: 'my-group-tab', | ||
383 | + style_unselect: 'my-group-tab-unselect', | ||
384 | + }] | ||
385 | + }, | ||
359 | selectIndex: Number(selectIndex) || 0 | 386 | selectIndex: Number(selectIndex) || 0 |
360 | }); | 387 | }); |
361 | }).catch(next); | 388 | }).catch(next); |
@@ -49,6 +49,8 @@ | @@ -49,6 +49,8 @@ | ||
49 | </div> | 49 | </div> |
50 | {{!-- {{> group/resources/filter-page}} --}} | 50 | {{!-- {{> group/resources/filter-page}} --}} |
51 | </div> | 51 | </div> |
52 | - <a class="bottom" href="/activity/group/order">我的拼团</a> | ||
53 | - | 52 | + {{!-- <a class="bottom" href="/activity/group/order">我的拼团</a> --}} |
53 | + {{#tabbarItems}} | ||
54 | + {{> group/group-tabbar}} | ||
55 | + {{/tabbarItems}} | ||
54 | </div> | 56 | </div> |
1 | +<div class="group-tabbar"> | ||
2 | + {{#each items}} | ||
3 | + <div class="group-tabbar-item"> | ||
4 | + {{#ifcond @index '==' ../active}} | ||
5 | + <a class=" my-group-handler" href="{{url}}"> | ||
6 | + <div class="{{style}}"></div> | ||
7 | + </a> | ||
8 | + {{^}} | ||
9 | + <a class=" my-group-handler" href="{{url}}"> | ||
10 | + <div class="{{style_unselect}}"></div> | ||
11 | + </a> | ||
12 | + {{/ifcond}} | ||
13 | + </div> | ||
14 | + {{/each}} | ||
15 | +</div> |
public/img/activity/group/group_home@3x.png
0 → 100644
4.03 KB
3.97 KB
public/img/activity/group/my_group@3x.png
0 → 100644
5.38 KB
5.31 KB
public/scss/activity/group/group-tabbar.scss
0 → 100644
1 | +.group-tabbar { | ||
2 | + position: fixed; | ||
3 | + right: 0; | ||
4 | + bottom: 0; | ||
5 | + left: 0; | ||
6 | + height: 90px; | ||
7 | + padding: 0; | ||
8 | + margin: 0; | ||
9 | + background-color: #fff; | ||
10 | + font-size: 28px; | ||
11 | + color: #444; | ||
12 | + letter-spacing: 0; | ||
13 | + font-weight: 500; | ||
14 | + text-align: center; | ||
15 | + line-height: 90px; | ||
16 | + border-top: 1px solid #e0e0e0; | ||
17 | + z-index: 999; | ||
18 | + border-radius: 0 !important; | ||
19 | + display: flex; | ||
20 | + flex-direction: row; | ||
21 | + justify-content: space-around; | ||
22 | + | ||
23 | + .group-tabbar-item { | ||
24 | + width: 90px; | ||
25 | + height: 90px; | ||
26 | + } | ||
27 | + | ||
28 | + .group-tab-home { | ||
29 | + width: 90px; | ||
30 | + height: 90px; | ||
31 | + background: url("img/activity/group/group_home@3x.png") no-repeat; | ||
32 | + background-size: contain; | ||
33 | + } | ||
34 | + | ||
35 | + .group-tab-home-unselect { | ||
36 | + width: 90px; | ||
37 | + height: 90px; | ||
38 | + background: url("img/activity/group/group_home_unselect@3x.png") no-repeat; | ||
39 | + background-size: contain; | ||
40 | + } | ||
41 | + | ||
42 | + .my-group-tab { | ||
43 | + width: 90px; | ||
44 | + height: 90px; | ||
45 | + background: url("img/activity/group/my_group@3x.png") no-repeat; | ||
46 | + background-size: contain; | ||
47 | + } | ||
48 | + | ||
49 | + .my-group-tab-unselect { | ||
50 | + width: 90px; | ||
51 | + height: 90px; | ||
52 | + background: url("img/activity/group/my_group_unselect@3x.png") no-repeat; | ||
53 | + background-size: contain; | ||
54 | + } | ||
55 | + | ||
56 | + &:after { | ||
57 | + border-radius: 0; | ||
58 | + border: none; | ||
59 | + } | ||
60 | +} |
-
Please register or login to post a comment