c9d0d9f3 by simon

默认提交

1 parent 35d4749d
......@@ -95,8 +95,7 @@ $contentWidth:690px;
@font-face {
font-family: "iconfont";
// src: url('data:application/x-font-woff2;charset=utf-8;base64,d09GMgABAAAAAAScAAsAAAAACWAAAARQAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHEIGVgCDSAqFVIRuATYCJAMYCw4ABCAFhG0HVRshCMgOJSGRwABgYAPDUEoeHvd7PTfJSwFAEah6VmX1dTtS08QKyKgZO6MrzNCI9/9/p93MlJPWQetZqTCDwumbgGcyBbEQPyFlu+svwP9zP59X1mB57dlcIpO6qHBnQOMBDSiiLVJ4Axl/1g9uMj9DgoHJYeziMrYT6LVoIdZxQpoAzBRav0A8lEvLwSymU0oooVtZc6YW8R2MdacP2GUA39zvx3/wCTOSJtOGXj2Ir4SoXzYvA/HW/62KaoC2/ixgZpGxBRTiRa7tEdwPbsH1Sn/ByAnQr1tSftk84z7b8oJ5Gfi/BTGR5gr9eipF0vT4z4sKyfoh7izU8MvGRCj84iIkfm1BaPjDIGT+BgpOS1VRlz7cAsQOaPgtstj5d4Rm2sJiwdWa42RrY6ulpEvbeDlLtnAqJzlZk8u4aPEAP3fpSuXt24I7d4R374oNhiJLRB4nmnP7duGSfo5AlMO3tXKFgsnW7QN8sXDxwM42nki8tK3mqIFow/X54sSBO+ECS/w5TujcY2N92Rz53GqTg2ASsDfb2bYDO1l46xNX5PVv4qy63W9wW7KFIH7scBavZFt/chQu3zazYAlvehIBR+Uu3swXr1AmWrKJw5lczhUu3srnL10hZneQz3q7g0dMbgPo8EzXZ6VkJQlEttQOBNR5QVncISGLWroG2VIHRSxo/2/IU1P4BrHLsYrCmEN92IEDGOK+5UARjuM+XO64nNbYV6Wv1xw+6P43+saNYsePY6Nil50laln7B910+c7pbYU5oEojI9iIVbBZ1r9w7vTe3vnzwe/ml+vG+g0bjh3LOf5Fq1W+Hs8G/7d39kaNdr0PNHe39rU+aJrdzQN/k9GLbIudBavigso8bNUCD8vnXpHt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vpp0JdRFBdv1Ackvw4QJ2cTgQAxe/x4x9CGVmNFhlH3WtdMd19kzPBJrEMajnfAOHJ2IJD/bTPRPLFqgEpsoQePUqxWtd3XFlm7GZuNnNAxuL9Hn1kdGncTBrXz0Rn5xytYefNkXdV+Y6NLoPakb9TDoLBhSEftu4X4pujZp2HDDkz5BIgcZvDCLuwTLf9HqO/SQ45D5HMZVR0tLQGbbLMdvqO+ygY0eJEPm0Yj7ZEP8mUejDxbQvmg61dY7OLqgLNU+c38nwPA/SYq/IquZOu96mhcXvOnteCPteRD/ckLj5mOHpZBdqv0IVf8ZuKW4qrbRZwiwNJVJN6y1RrNa2kUDVDMDhDd5TK6PKHdmMMvZW6/t2nShn49cGhNcGxs0qIBuchzFAo8Z2ObdFiFZnhuxLab0b5zhwFCRJQ2TNtEbOi1FZt0ewkZnqdQ4Pka22TYu7EZgUHGttuOon12GI+J+c0CVAkG1mYx112HmDaZ77ccAhpYqiAFeq0xED53HZxOpLSadnBADEHwp2hGSoKJcG3cRmwAluViT7gToMsEQ7VXlUwSnpjQXRvl20kAKukkNmCaWUNO53KQhaX8zPcPAVTAohIVA8qGY4Dg40vH0hJSDVzbZafRgEtp75tCZUgSE9gqF1x2oLZRGFhGpQvzipebAHRSAutQ7qmSJCciTeXE9Kp9m8tuvkH1rbsiRY4STdEcLdEabT9VzjqjK7q1HVR18zL00tlFlutDOoeBVB3LyhFATE2fRZlrQ7ancpt4opwZ7syBQ7PA9uRs1nRg8SDH5qrrM7VQU32wuAPxIZzFvZksi1MmEQI=') format('woff2');
}
.iconfont {
......@@ -116,6 +115,10 @@ $contentWidth:690px;
content: "\e615";
}
.iconSeckill:before {
content: "\e8cd";
}
.iconrefresh:before {
content: "\e874";
}
......@@ -124,6 +127,10 @@ $contentWidth:690px;
content: "\e610";
}
.iconpaimai:before {
content: "\e63b";
}
.iconxinzeng:before {
content: "\e606";
}
......@@ -136,6 +143,10 @@ $contentWidth:690px;
content: "\e6dc";
}
.iconmiaosha:before {
content: "\e61d";
}
.iconbaseline-close-px:before {
content: "\e600";
}
......@@ -146,7 +157,6 @@ $contentWidth:690px;
.drop-down-item :last-child {
border-bottom: none;
}
......
......@@ -35,7 +35,7 @@ Component({
},
getUserInfo(e) {
let _this = this;
app.globalData.userInfo = e.userInfo;
// app.globalData.userInfo = e.userInfo;
app.post({
url: app.api.register,
sid: false,
......@@ -52,7 +52,27 @@ Component({
}
_this.hideMask();
_this.authComplete();
_this.initPage();
}).catch((err) => {})
},
/**
* 尝试重拉信息
*/
initPage() {
let pages = getCurrentPages();
let view = pages[pages.length - 1];
console.log("@authorize-comp view:", view);
if (view) {
try {
view.hideMask();
console.log("@authorize-comp || hideMask");
} catch (error) {}
try {
view.initData();
console.log("@authorize-comp || initData");
} catch (error) {}
}
}
}
})
......
......@@ -54,7 +54,11 @@
.btn {
@include cb(240px, 80px);
margin: 0 24px;
}
.btn2 {
@include cb2(240px, 80px);
}
}
......
......@@ -11,7 +11,7 @@
</view>
<view class="btn-wrap">
<!-- <button class="btn gray" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">确认授权</button> -->
<button class="btn gray" bindtap="hideMask">暂不授权</button>
<button class="btn btn2" bindtap="hideMask">暂不授权</button>
<button class="btn" open-type="getUserInfo" bindgetuserinfo="bindGetUserInfo">确认授权</button>
</view>
</view>
......
......@@ -50,7 +50,7 @@ module.exports = {
seckillDetail: '/seckill/detail', // post 秒杀详情
member: '/member', // post 秒杀收件人信息获取
seckillSubmit: '/seckill/submit', // post 提交秒杀订单
seckillMine: '/seckill/member', // post 我的秒杀产品
seckillMine: '/seckill/order', // post 我的秒杀产品
areaQuery: 'https://api.k.wxpai.cn/bizproxy/kdapi/area', // post 区域查询
......
......@@ -146,8 +146,30 @@ Page({
this.setData({
checked: event.detail,
});
}
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -85,8 +85,28 @@ Page({
}
}
})
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
// app.globalData.addressEditInfo = curData;
// console.log("def:", curData);
}
default:
break;
}
},
})
......
......@@ -84,14 +84,11 @@ $contentWidth:690px;
.t2 {
margin-top: 8px;
// font-size: 24px;
// color: #999999;
}
.t3 {
font-size: 20px;
color: #999999;
// color: #3680EB;
}
}
......
......@@ -10,7 +10,7 @@
<view bindtap="onShowAuctionMineHandler" class="btn">我的拍卖</view>
</view>
<view class="list">
<view wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item">
<view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item">
<view class="prize">
<image class="image" mode="aspectFill" src="{{item.auctionImages && item.auctionImages[0] || ''}}" />
</view>
......@@ -23,15 +23,9 @@
<view class="tt t3">{{item.dateStr}}</view>
</view>
</view>
<view bindtap="onDetailHandler" wx:if="{{item.status == 0}}" data-data="{{item}}" data-index="{{index}}" class="btn btn0">
未开始
</view>
<view bindtap="onDetailHandler" wx:if="{{item.status == 1}}" data-data="{{item}}" data-index="{{index}}" class="btn btn1">
进行中
</view>
<view bindtap="onDetailHandler" wx:if="{{item.status == 2}}" data-data="{{item}}" data-index="{{index}}" class="btn btn2">
已结束
</view>
<view wx:if="{{item.status == 0}}" class="btn btn0">未开始</view>
<view wx:if="{{item.status == 1}}" class="btn btn1">进行中</view>
<view wx:if="{{item.status == 2}}" class="btn btn2">已结束</view>
</view>
</view>
</view>
......
......@@ -4,6 +4,8 @@
$contentWidth:690px;
.page {
padding-bottom: $pageBottom;
.bgc {
background-color: #f8f8f8;
}
......@@ -50,13 +52,13 @@ $contentWidth:690px;
flex: 1;
// padding: 0 0 0 16px;
@extend .bb;
height: 220px;
// height: 220px;
.up {}
.down {
position: absolute;
bottom: 0;
// position: absolute;
// bottom: 0;
}
......@@ -68,13 +70,13 @@ $contentWidth:690px;
.t2 {
font-size: 26px;
margin-top: 4px;
// margin-top: 4px;
}
.t3 {
font-size: 26px;
font-weight: bold;
margin-top: 0px;
// margin-top: 0px;
}
.t4 {
......@@ -82,9 +84,13 @@ $contentWidth:690px;
margin-top: 2px;
color: #666666;
}
.sp2{
margin-top: 8px;
}
.sp4 {
margin-top: 24px;
margin-top: 12px;
}
}
......
......@@ -14,7 +14,7 @@
<view class="cont">
<view class="up">
<view class="tt t1">{{item.auctionName}}</view>
<view class="tt t2">原价:{{filter.Fen2Yuan(item.originalPrice)}}元</view>
<view class="tt t2 sp2">原价:{{filter.Fen2Yuan(item.originalPrice)}}元</view>
<view class="tt t3 price">竞拍价格:{{filter.Fen2Yuan(item.auctionPrice)}}元</view>
</view>
<view class="down">
......
......@@ -28,7 +28,7 @@ Page({
},
getUserInfo(e) {
let _this = this;
app.globalData.userInfo = e.userInfo;
// app.globalData.userInfo = e.userInfo;
// console.log("loginData:",_this.data.loginData);
app.post({
url: app.api.register,
......
......@@ -252,6 +252,7 @@ Page({
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
commonTipsCompVisible: false
})
},
......@@ -263,6 +264,10 @@ Page({
} = evt.detail;
switch (name) {
case "_evt_hide_mask":
this.hideMask();
break;
case "_evt_common_comp_button":
this.hideMask();
wx.navigateBack({
......
......@@ -62,5 +62,29 @@ Page({
})
resolve();
});
}
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -182,7 +182,11 @@ Page({
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
// 隐藏弹窗
case "_evt_common_comp_button":
this.hideMask();
switch (data.cid) {
......
......@@ -20,6 +20,15 @@ Page({
})
},
onLoad(options) {
},
onShow() {
console.log("@gift-shop || onShow")
this.hideMask();
this.initData();
},
initData() {
this.resetPage();
this.queryProduct();
},
// 到达底部
......@@ -42,6 +51,7 @@ Page({
* 请求产品
*/
queryProduct() {
console.log("queryProduct");
return new Promise((resolve, reject) => {
app.post({
sid: false,
......@@ -137,15 +147,20 @@ Page({
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
// 隐藏弹窗
case "_evt_common_comp_button":
this.hideMask();
break;
// 授权完毕
// 授权完毕
case "_evt_auth_complete":
this.resetPage();
this.queryProduct();
// this.resetPage();
// this.queryProduct();
// this.initData();
break;
default:
......
......@@ -55,8 +55,9 @@ Page({
},
onShow() {
console.log("onShow memberCode:", this.data.memberCode);
console.log("onShow code:", this.data.code);
this.hideMask();
// console.log("onShow memberCode:", this.data.memberCode);
// console.log("onShow code:", this.data.code);
},
initData() {
......@@ -307,8 +308,8 @@ Page({
hideMask() {
this.setData({
productDetailVisible: false,
authorizeVisible: false,
productDetailVisible: false,
})
},
// 子组件事件
......@@ -319,6 +320,10 @@ Page({
} = evt.detail;
switch (name) {
case "_evt_hide_mask":
this.hideMask();
break;
case "_evt_hide_product_detail_mask":
this.hideMask();
break;
......
......@@ -252,5 +252,29 @@ Page({
})
this.resetPage();
this.queryPointsOverview();
}
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -148,5 +148,29 @@ Page({
})
})
});
}
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -132,6 +132,30 @@ Page({
})
this.resetPage();
this.queryOrder();
}
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -241,5 +241,28 @@ Page({
return size;
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -43,7 +43,7 @@ Page({
}
}).then((result) => {
let rankInfo = this.formatRankInfo(result, status);
if(rankInfo){
if (rankInfo) {
this.setData({
rankInfo: rankInfo
})
......@@ -87,7 +87,7 @@ Page({
*/
formatRankInfo(val, status) {
let rankInfo = val;
if(!rankInfo) return;
if (!rankInfo) return;
if (status == "promotion") {
rankInfo.myMember.rank = rankInfo.myMember.promotionNo;
rankInfo.myMember.points = rankInfo.myMember.promotionPoints;
......@@ -207,5 +207,29 @@ Page({
// 滚动到底部 分页加载
onRankScrolltolower(e) {
}
},
// 隐藏蒙层
hideMask() {
this.setData({
authorizeVisible: false,
})
},
// 子组件事件
evtcomp(evt) {
let {
name,
data
} = evt.detail;
switch (name) {
// 隐藏弹窗
case "_evt_hide_mask":
this.hideMask();
break;
default:
break;
}
},
})
......
......@@ -156,7 +156,11 @@ Page({
} = evt.detail;
switch (name) {
// 授权完毕
case "_evt_hide_mask":
this.hideMask();
break;
// 授权完毕
case "_evt_auth_complete":
this.initData();
this.hideMask();
......
......@@ -5,12 +5,12 @@
<view class="app__content main">
<view class="top-space"></view>
<view class="content">
<!-- 我的拍卖按钮 -->
<!-- 我的秒杀按钮 -->
<view class="my-btn">
<view bindtap="onShowSeckillMineHandler" class="btn">我的秒杀</view>
</view>
<view class="list">
<view wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item">
<view bindtap="onDetailHandler" data-data="{{item}}" data-index="{{index}}" wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item">
<view class="prize">
<image class="image" mode="aspectFill" src="{{item.seckillImages && item.seckillImages[0] || ''}}" />
</view>
......@@ -23,15 +23,9 @@
<view class="tt t3">{{item.dateStr}}</view>
</view>
</view>
<view bindtap="onDetailHandler" wx:if="{{item.status == 0}}" data-data="{{item}}" data-index="{{index}}" class="btn btn0">
未开始
</view>
<view bindtap="onDetailHandler" wx:if="{{item.status == 1}}" data-data="{{item}}" data-index="{{index}}" class="btn btn1">
进行中
</view>
<view bindtap="onDetailHandler" wx:if="{{item.status == 2}}" data-data="{{item}}" data-index="{{index}}" class="btn btn2">
已结束
</view>
<view wx:if="{{item.status == 0}}" class="btn btn0">未开始</view>
<view wx:if="{{item.status == 1}}" class="btn btn1">进行中</view>
<view wx:if="{{item.status == 2}}" class="btn btn2">已结束</view>
</view>
</view>
</view>
......
......@@ -28,7 +28,7 @@ Page({
this.initData();
},
initData() {
this.queryAuctionList();
this.querySeckillList();
},
// 到达底部
......@@ -37,7 +37,7 @@ Page({
this.setData({
page: this.data.page + 1
});
this.queryAuctionList();
this.querySeckillList();
}
},
......@@ -50,10 +50,11 @@ Page({
},
// 拍卖列表
queryAuctionList() {
querySeckillList() {
console.log("app.api.seckillMine:",app.api.seckillMine)
return new Promise((resolve, reject) => {
app.post({
url: app.api.auctionMine,
url: app.api.seckillMine,
data: {
page: this.data.page,
size: this.data.size,
......@@ -62,12 +63,9 @@ Page({
if (!result) return;
if (!result.list) return;
let dataList = result.list;
dataList.forEach(element => {
element.dateStr = new Date(element.startTime).toString("yyyy.MM.dd hh:mm") + " - " + new Date(element.endTime).toString("yyyy.MM.dd hh:mm");
});
dataList = this.data.dataList.concat(dataList);
dataList.forEach(element => {
element.recordTime = new Date(element.recordTime).toString("yyyy.MM.dd hh:mm:ss");
element.dateStr = new Date(element.seckillOrderTime).toString("yyyy.MM.dd hh:mm");
});
console.log("dataList:", dataList);
this.setData({
......
{
"navigationBarTitleText": "我的竞拍订单"
"navigationBarTitleText": "我的秒杀订单"
}
......
......@@ -4,6 +4,8 @@
$contentWidth:690px;
.page {
padding-bottom: $pageBottom;
.bgc {
background-color: #f8f8f8;
}
......@@ -12,7 +14,7 @@ $contentWidth:690px;
.main {
.top-space {
height: 0px;
height: 24px;
}
.content {
......@@ -21,7 +23,7 @@ $contentWidth:690px;
// list
.list {
width: $contentWidth;
margin: 24px auto 0;
margin: 0 auto 0;
font-size: 22px;
&-item {
......@@ -34,7 +36,7 @@ $contentWidth:690px;
.prize {
margin: 0 32px;
border:solid 1PX #F0F0F0;
border: solid 1PX #F0F0F0;
border-radius: 8px;
padding: 16px;
......@@ -50,6 +52,15 @@ $contentWidth:690px;
flex: 1;
// padding: 0 0 0 16px;
@extend .bb;
// height: 220px;
.up {}
.down {
// position: absolute;
// bottom: 0;
}
.tt {}
......@@ -59,23 +70,25 @@ $contentWidth:690px;
.t2 {
font-size: 26px;
margin-top: 8px;
}
.t3 {
font-size: 26px;
font-weight: bold;
margin-top: 4px;
}
.t4 {
font-size: 22px;
margin-top: 4px;
margin-top: 2px;
color: #666666;
}
.sp4{
margin-top: 24px;
.sp2{
margin-top: 8px;
}
.sp4 {
margin-top: 12px;
}
}
......
......@@ -9,14 +9,19 @@
<view class="list">
<view wx:for="{{dataList}}" wx:key="{{index}}" class="border list-item">
<view class="prize">
<image class="image" mode="aspectFill" src="{{item.auctionImage && item.auctionImage[0] || ''}}" />
<image class="image" mode="aspectFill" src="{{item.seckillImages && item.seckillImages[0] || ''}}" />
</view>
<view class="cont">
<view class="tt t1">{{item.auctionName}}</view>
<view class="tt t2">原价:{{filter.Fen2Yuan(item.originalPrice)}}元</view>
<view class="tt t3 price">竞拍价格:{{filter.Fen2Yuan(item.auctionPrice)}}元</view>
<view class="tt t4 sp4">订单编号:A20191008103818293X</view>
<view class="tt t4">竞拍时间:{{item.auctionTime}}</view>
<view class="up">
<view class="tt t1">{{item.seckillName}}</view>
<view class="tt t2 sp2">数量:{{item.num}}</view>
<view class="tt t3 price">总价格:{{filter.Fen2Yuan(item.totalAmount)}}元</view>
</view>
<view class="down">
<view class="tt t4 sp4">订单编号:{{item.seckillOrderCode}}</view>
<view class="tt t4">竞拍时间:{{item.dateStr}}</view>
<view class="tt t4">备注:{{item.remark}}</view>
</view>
</view>
</view>
</view>
......
......@@ -24,8 +24,8 @@ Page({
})
},
onShow() {
this.hideMask();
this.initData();
},
onLoad(options) {
// app.router.push({
......@@ -191,6 +191,24 @@ Page({
},
/**
* 点击拍卖
*/
onAuctionHandler(evt) {
app.router.push({
path: "auctionList"
})
},
/**
* 点击秒杀
*/
onSeckillHandler(evt) {
app.router.push({
path: "seckillList"
})
},
/**
* 获取会员信息
*/
queryMember() {
......@@ -202,6 +220,7 @@ Page({
this.setData({
userInfo: result
})
app.globalData.userInfo = result;
resolve(result);
})
});
......
......@@ -257,31 +257,7 @@ $contentWidth: 690px;
}
}
// 订单区域
.order {
display: flex;
justify-content: space-between;
font-size: 24px;
color: #131415;
text-align: center;
&-item {
width: 110px;
.icon-wrap {
@extend .fcc;
height: 100px;
height: 100px;
.icon {
height: 64px;
height: 64px;
}
}
.txt {}
}
}
// 功能区
.func {
......@@ -315,8 +291,6 @@ $contentWidth: 690px;
width: 132px;
position: relative;
.icon-wrap {
position: relative;
@extend .fcc;
......@@ -347,6 +321,36 @@ $contentWidth: 690px;
}
// 活动区域
.active {
font-size: 24px;
color: #333333;
text-align: center;
margin: 40px 0 4px;
display: flex;
justify-content: space-between;
// justify-content: flex-start;
&-item {
width: 132px;
position: relative;
.icon-wrap {
@extend .fcc;
height: 100px;
.icon {
color: #333333;
font-size: 64px;
}
}
.txt {}
}
}
}
}
}
......
......@@ -97,6 +97,28 @@
</view>
</view>
</view>
<view class="border active ">
<view bindtap="onAuctionHandler" data-index="0" class="active-item">
<view class="icon-wrap">
<span class="iconfont iconpaimai icon"></span>
</view>
<view class="txt">拍卖</view>
</view>
<view bindtap="onSeckillHandler" data-index="1" class="active-item">
<view class="icon-wrap">
<span class="iconfont iconmiaosha icon"></span>
</view>
<view class="txt">秒杀</view>
</view>
<view data-index="2" class="active-item">
<view class="icon-wrap"></view>
<view class="txt"></view>
</view>
<view data-index="3" class="active-item">
<view class="icon-wrap"></view>
<view class="txt"></view>
</view>
</view>
</view>
</view>
</view>
......
......@@ -428,9 +428,9 @@ Page({
hideMask() {
// this.setData({
// productDetailVisible: false
// })
this.setData({
authorizeVisible: false
})
},
// 子组件事件
evtcomp(evt) {
......@@ -441,6 +441,7 @@ Page({
switch (name) {
case "_evt_hide_mask":
this.hideMask();
break;
default:
......