默认提交
Showing
9 changed files
with
155 additions
and
1 deletions
... | @@ -31,6 +31,9 @@ | ... | @@ -31,6 +31,9 @@ |
31 | "pages/sign-in-record/sign-in-record", | 31 | "pages/sign-in-record/sign-in-record", |
32 | "pages/rank/rank", | 32 | "pages/rank/rank", |
33 | "pages/rank-gift/rank-gift", | 33 | "pages/rank-gift/rank-gift", |
34 | |||
35 | "pages/distributor/distributor", | ||
36 | |||
34 | "pages/webview/webview", | 37 | "pages/webview/webview", |
35 | "pages/example/example", | 38 | "pages/example/example", |
36 | "pages/more/more" | 39 | "pages/more/more" | ... | ... |
src/image/index/icon-distributor.png
0 → 100644
913 Bytes
src/pages/distributor/distributor.js
0 → 100755
1 | import { | ||
2 | getBindtapData | ||
3 | } from '../../utils/util'; | ||
4 | |||
5 | let app = getApp(); | ||
6 | Page({ | ||
7 | data: {}, | ||
8 | onShareAppMessage() {}, | ||
9 | showAuth() { | ||
10 | this.setData({ | ||
11 | authorizeVisible: true | ||
12 | }) | ||
13 | }, | ||
14 | onLoad(options) {}, | ||
15 | |||
16 | |||
17 | /** | ||
18 | * 点击拍卖 | ||
19 | */ | ||
20 | onAuctionHandler(evt) { | ||
21 | app.router.push({ | ||
22 | path: "auctionList" | ||
23 | }) | ||
24 | }, | ||
25 | |||
26 | /** | ||
27 | * 点击秒杀 | ||
28 | */ | ||
29 | onSeckillHandler(evt) { | ||
30 | app.router.push({ | ||
31 | path: "seckillList" | ||
32 | }) | ||
33 | }, | ||
34 | |||
35 | // 隐藏蒙层 | ||
36 | hideMask() { | ||
37 | this.setData({ | ||
38 | authorizeVisible: false, | ||
39 | }) | ||
40 | }, | ||
41 | // 子组件事件 | ||
42 | evtcomp(evt) { | ||
43 | let { | ||
44 | name, | ||
45 | data | ||
46 | } = evt.detail; | ||
47 | switch (name) { | ||
48 | |||
49 | // 隐藏弹窗 | ||
50 | case "_evt_hide_mask": | ||
51 | this.hideMask(); | ||
52 | break; | ||
53 | |||
54 | default: | ||
55 | break; | ||
56 | } | ||
57 | }, | ||
58 | }) |
src/pages/distributor/distributor.json
0 → 100755
src/pages/distributor/distributor.scss
0 → 100755
1 | @import '../../assets/scss/mixins'; | ||
2 | @import '../../assets/scss/utils'; | ||
3 | |||
4 | $contentWidth:690px; | ||
5 | |||
6 | .page { | ||
7 | |||
8 | $contentWidth: 690px; | ||
9 | |||
10 | .bgc { | ||
11 | background-color: #f8f8f8; | ||
12 | } | ||
13 | |||
14 | .bg {} | ||
15 | |||
16 | .main { | ||
17 | .top-space { | ||
18 | height: 40px; | ||
19 | } | ||
20 | |||
21 | .content { | ||
22 | position: relative; | ||
23 | |||
24 | .list { | ||
25 | position: relative; | ||
26 | width: $contentWidth; | ||
27 | margin: 24px auto 0; | ||
28 | |||
29 | &-item { | ||
30 | @extend .bb; | ||
31 | padding: 30px 36px; | ||
32 | display: flex; | ||
33 | justify-content: flex-start; | ||
34 | align-items: center; | ||
35 | margin-bottom: 40px; | ||
36 | |||
37 | .icon { | ||
38 | width: 86px; | ||
39 | } | ||
40 | |||
41 | .tit { | ||
42 | color: #333333; | ||
43 | font-size: 42px; | ||
44 | padding-left: 48px; | ||
45 | } | ||
46 | } | ||
47 | } | ||
48 | |||
49 | |||
50 | } | ||
51 | } | ||
52 | } |
src/pages/distributor/distributor.wxml
0 → 100755
1 | <view class="page"> | ||
2 | <view class="app__bgc bgc"></view> | ||
3 | <view class="app__bg bg"></view> | ||
4 | <!-- <view class="app__top-shadow"></view> --> | ||
5 | <view class="app__content main"> | ||
6 | <view class="top-space"></view> | ||
7 | <view class="content"> | ||
8 | <!-- <view ></view> --> | ||
9 | <view class="list"> | ||
10 | <view bindtap="onSeckillHandler" class="border list-item"> | ||
11 | <image class="icon" mode="widthFix" src="../../image/index/icon-seckill.png" /> | ||
12 | <view class="tit">秒杀入口</view> | ||
13 | </view> | ||
14 | <view bindtap="onAuctionHandler" class="border list-item"> | ||
15 | <image class="icon" mode="widthFix" src="../../image/index/icon-auction.png" /> | ||
16 | <view class="tit">竞价入口</view> | ||
17 | </view> | ||
18 | </view> | ||
19 | </view> | ||
20 | </view> | ||
21 | </view> | ||
22 | <van-popup show="{{ authorizeVisible }}"> | ||
23 | <authorize-comp bind:evtcomp="evtcomp"></authorize-comp> | ||
24 | </van-popup> |
... | @@ -47,13 +47,17 @@ | ... | @@ -47,13 +47,17 @@ |
47 | <image class="icon" mode="widthFix" src="../../image/index/icon-rank.png" /> | 47 | <image class="icon" mode="widthFix" src="../../image/index/icon-rank.png" /> |
48 | <view class="t1">排行榜</view> | 48 | <view class="t1">排行榜</view> |
49 | </view> | 49 | </view> |
50 | <view bindtap="onAuctionHandler" class="nav-item"> | 50 | <!-- <view bindtap="onAuctionHandler" class="nav-item"> |
51 | <image class="icon" mode="widthFix" src="../../image/index/icon-seckill.png" /> | 51 | <image class="icon" mode="widthFix" src="../../image/index/icon-seckill.png" /> |
52 | <view class="t1">秒杀</view> | 52 | <view class="t1">秒杀</view> |
53 | </view> | 53 | </view> |
54 | <view bindtap="onAuctionHandler" class="nav-item"> | 54 | <view bindtap="onAuctionHandler" class="nav-item"> |
55 | <image class="icon" mode="widthFix" src="../../image/index/icon-auction.png" /> | 55 | <image class="icon" mode="widthFix" src="../../image/index/icon-auction.png" /> |
56 | <view class="t1">竞价</view> | 56 | <view class="t1">竞价</view> |
57 | </view> --> | ||
58 | <view bindtap="onDistributorHandler" class="nav-item"> | ||
59 | <image class="icon" mode="widthFix" src="../../image/index/icon-distributor.png" /> | ||
60 | <view class="t1">分销商</view> | ||
57 | </view> | 61 | </view> |
58 | </view> | 62 | </view> |
59 | <!-- 轮播 banner --> | 63 | <!-- 轮播 banner --> | ... | ... |
... | @@ -19,6 +19,7 @@ const routerPath = { | ... | @@ -19,6 +19,7 @@ const routerPath = { |
19 | signInRecord: '/pages/sign-in-record/sign-in-record', // 签到记录 | 19 | signInRecord: '/pages/sign-in-record/sign-in-record', // 签到记录 |
20 | rank: '/pages/rank/rank', // 排行榜 | 20 | rank: '/pages/rank/rank', // 排行榜 |
21 | rankGift: '/pages/rank-gift/rank-gift', // 排行榜奖励 | 21 | rankGift: '/pages/rank-gift/rank-gift', // 排行榜奖励 |
22 | distributor: '/pages/distributor/distributor', // 分销商 | ||
22 | 23 | ||
23 | // 拍卖 | 24 | // 拍卖 |
24 | auctionList: '/pages/auction-list/auction-list', // 拍卖活动列表 | 25 | auctionList: '/pages/auction-list/auction-list', // 拍卖活动列表 | ... | ... |
-
Please register or sign in to post a comment