Browse Source

规则弹窗

master
ljc 5 years ago
parent
commit
a14f97d336
3 changed files with 53 additions and 4 deletions
  1. +11
    -1
      laomenkuang_project/pages/index/index.js
  2. +8
    -3
      laomenkuang_project/pages/index/index.wxml
  3. +34
    -0
      laomenkuang_project/pages/index/index.wxss

+ 11
- 1
laomenkuang_project/pages/index/index.js View File

Page({ Page({
data: { data: {
dataList:[], dataList:[],
showMask:false,//规则弹窗
}, },
//事件处理函数 //事件处理函数
onLoad: function () { onLoad: function () {
url: '../buyTicket/buyTicket?index=' + index url: '../buyTicket/buyTicket?index=' + index
}) })
}, },

showRule:function(){//显示弹窗
this.setData({
showMask:true
})
},
hiddenRule:function(){//隐藏弹窗
this.setData({
showMask: false
})
}
}) })

+ 8
- 3
laomenkuang_project/pages/index/index.wxml View File

<view class="container"> <view class="container">


<image class="buyBg" src="../images/buyBg.jpg"></image> <image class="buyBg" src="../images/buyBg.jpg"></image>
<!-- <swiper duration="500" next-margin="70rpx"> -->
<!-- <swiper duration="500">
<image bindtap="showRule" class="ruleBtn" src="../images/rule.png"></image>
<!-- <swiper duration="500" next-margin="70rpx">
<block wx:for="{{dataList}}" wx:key="*this"> <block wx:for="{{dataList}}" wx:key="*this">
<swiper-item data-index="{{item.coupon_sell_id}}" bindtap="skipPage"> --> <swiper-item data-index="{{item.coupon_sell_id}}" bindtap="skipPage"> -->
<view class="botCont" data-index="{{dataList.coupon_sell_id}}" bindtap="skipPage"> <view class="botCont" data-index="{{dataList.coupon_sell_id}}" bindtap="skipPage">
</block> </block>
</swiper> --> </swiper> -->
<view class="maskAll" wx:if="{{showMask}}">
<view class="maskCont">
<image class="ruleMask" src="../images/ruleMask.png"></image>
<image bindtap="hiddenRule" class="hiddenIcon" src="../images/hiddenIcon.png"></image>
</view>
</view>
</view> </view>

+ 34
- 0
laomenkuang_project/pages/index/index.wxss View File

font-family:SourceHanSansCN; font-family:SourceHanSansCN;
font-weight:500; font-weight:500;
color:rgba(0,0,0,1); color:rgba(0,0,0,1);
}

.ruleBtn{
width: 117rpx;
height: 37rpx;
position: absolute;
right: 30rpx;
bottom: 485rpx;
z-index: 10;
}
.maskAll{
position: fixed;
width: 100%;
height: 100%;
top: 0;
left: 0;
background-color: rgba(0, 0, 0, 0.5);
z-index: 100
}
.ruleMask{
width: 576rpx;
height: 950rpx;
}
.hiddenIcon{
width: 110rpx;
height: 111rpx;
margin: -8rpx auto 0 auto;
display: block;
}
.maskCont{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
} }

Loading…
Cancel
Save