0298cfab by simon

默认提交

1 parent 2840b195
......@@ -31,6 +31,9 @@
"pages/sign-in-record/sign-in-record",
"pages/rank/rank",
"pages/rank-gift/rank-gift",
"pages/distributor/distributor",
"pages/webview/webview",
"pages/example/example",
"pages/more/more"
......
import {
getBindtapData
} from '../../utils/util';
let app = getApp();
Page({
data: {},
onShareAppMessage() {},
showAuth() {
this.setData({
authorizeVisible: true
})
},
onLoad(options) {},
/**
* 点击拍卖
*/
onAuctionHandler(evt) {
app.router.push({
path: "auctionList"
})
},
/**
* 点击秒杀
*/
onSeckillHandler(evt) {
app.router.push({
path: "seckillList"
})
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
{
"navigationBarTitleText": "分销商"
}
@import '../../assets/scss/mixins';
@import '../../assets/scss/utils';
$contentWidth:690px;
.page {
$contentWidth: 690px;
.bgc {
background-color: #f8f8f8;
}
.bg {}
.main {
.top-space {
height: 40px;
}
.content {
position: relative;
.list {
position: relative;
width: $contentWidth;
margin: 24px auto 0;
&-item {
@extend .bb;
padding: 30px 36px;
display: flex;
justify-content: flex-start;
align-items: center;
margin-bottom: 40px;
.icon {
width: 86px;
}
.tit {
color: #333333;
font-size: 42px;
padding-left: 48px;
}
}
}
}
}
}
<view class="page">
<view class="app__bgc bgc"></view>
<view class="app__bg bg"></view>
<!-- <view class="app__top-shadow"></view> -->
<view class="app__content main">
<view class="top-space"></view>
<view class="content">
<!-- <view ></view> -->
<view class="list">
<view bindtap="onSeckillHandler" class="border list-item">
<image class="icon" mode="widthFix" src="../../image/index/icon-seckill.png" />
<view class="tit">秒杀入口</view>
</view>
<view bindtap="onAuctionHandler" class="border list-item">
<image class="icon" mode="widthFix" src="../../image/index/icon-auction.png" />
<view class="tit">竞价入口</view>
</view>
</view>
</view>
</view>
</view>
<van-popup show="{{ authorizeVisible }}">
<authorize-comp bind:evtcomp="evtcomp"></authorize-comp>
</van-popup>
......@@ -195,6 +195,15 @@ Page({
})
},
/**
*
* @param {*} evt
*/
onDistributorHandler(evt) {
app.router.push({
path: "distributor"
})
},
/**
* 请求产品
......
......@@ -47,13 +47,17 @@
<image class="icon" mode="widthFix" src="../../image/index/icon-rank.png" />
<view class="t1">排行榜</view>
</view>
<view bindtap="onAuctionHandler" class="nav-item">
<!-- <view bindtap="onAuctionHandler" class="nav-item">
<image class="icon" mode="widthFix" src="../../image/index/icon-seckill.png" />
<view class="t1">秒杀</view>
</view>
<view bindtap="onAuctionHandler" class="nav-item">
<image class="icon" mode="widthFix" src="../../image/index/icon-auction.png" />
<view class="t1">竞价</view>
</view> -->
<view bindtap="onDistributorHandler" class="nav-item">
<image class="icon" mode="widthFix" src="../../image/index/icon-distributor.png" />
<view class="t1">分销商</view>
</view>
</view>
<!-- 轮播 banner -->
......
......@@ -19,6 +19,7 @@ const routerPath = {
signInRecord: '/pages/sign-in-record/sign-in-record', // 签到记录
rank: '/pages/rank/rank', // 排行榜
rankGift: '/pages/rank-gift/rank-gift', // 排行榜奖励
distributor: '/pages/distributor/distributor', // 分销商
// 拍卖
auctionList: '/pages/auction-list/auction-list', // 拍卖活动列表
......