浏览代码

更新

master
suizhijia 5 年前
父节点
当前提交
c4bb1b0c02
共有 3 个文件被更改,包括 56 次插入6 次删除
  1. +10
    -5
      496_dongfengqichen/pages/index/index.js
  2. +14
    -1
      496_dongfengqichen/pages/index/index.wxml
  3. +32
    -0
      496_dongfengqichen/pages/index/index.wxss

+ 10
- 5
496_dongfengqichen/pages/index/index.js 查看文件

@@ -64,6 +64,7 @@ Page({
addressShow:false,
isAddress:false,//是否有地址
drawNum:0,//可用抽奖次数
maskNewCard:false,
},
onLoad: function (options) {
if (app.globalData.isFirstLogin) {
@@ -523,11 +524,10 @@ Page({
})
},
placingControl:function(){
// if (app.globalData.getBuyState.success != this.data.buyState){
// this.setData({
// buyState: app.globalData.getBuyState.success
// })
// }
if(this.data.buyState && !this.data.drawNum){
this.maskNewControl();
return;
}
if (this.data.buyState && !this.data.placing){
wx.navigateTo({
url: '/pages/rotaryDraw/rotaryDraw',
@@ -653,5 +653,10 @@ Page({
}
}
}, this)
},
maskNewControl(){
this.setData({
maskNewCard:!this.data.maskNewCard
})
}
})

+ 14
- 1
496_dongfengqichen/pages/index/index.wxml 查看文件

@@ -21,7 +21,8 @@
</view>
<image class="computeBtn" bindtap="compute" src="{{imgUrl+'/newImages7/19.png'}}"></image>
<!-- <image class="newImages2-11" bindtap="placingControl" wx:if="{{!buyState}}" src="{{imgUrl+'/newImages8/5.png'}}"></image> -->
<image class="newImages2-11" bindtap="placingControl" wx:if="{{!buyState || drawNum}}" src="{{imgUrl+'/newImages8/5.png'}}"></image>
<!-- <image class="newImages2-11" bindtap="placingControl" wx:if="{{!buyState || drawNum}}" src="{{imgUrl+'/newImages8/5.png'}}"></image> -->
<image class="newImages2-11" bindtap="placingControl" src="{{imgUrl+'/newImages8/5.png'}}"></image>
<image class="newImages2-12" bindtap="lookConfigure" src="{{imgUrl+'/newImages2/98.png'}}"></image>
<image class="newImages2-13" bindtap="vrLookCar" src="{{imgUrl+'/newImages2/99.png'}}"></image>
<swiper class="swiper1" bindchange="swiperChange" data-num="1" current="{{swiperGroup.one.current}}">
@@ -95,6 +96,18 @@
<image class="receiveBtn" wx:if="{{!isAddress}}" bindtap="addressControl" src="{{imgUrl+'/newImages7/21.png'}}"></image>
</view>
</view>
<view class="newCardFrame" wx:if="{{maskNewCard}}">
<view class="newCardGroup">
<image class="newCardImg" src="{{imgUrl+'/newImages8/22.png'}}"></image>
<view class="closeCard" bindtap="maskNewControl"></view>
<view class="btnCard" bindtap="maskNewControl"></view>
</view>
</view>
<!-- <view class="mask" wx:if="{{!maskNewCard}}" style="display:block;">
<view style="width:100%;calc(100vh - 120rpx);position:relative;">
<image class="newCardImg" src="{{imgUrl+'/newImages8/22.png'}}"></image>
</view>
</view> -->

<service></service>
<yuyue bindyuyue="openYuyue" wx:if="{{yuyueShow}}"></yuyue>

+ 32
- 0
496_dongfengqichen/pages/index/index.wxss 查看文件

@@ -467,4 +467,36 @@ view{
top: 380rpx;
width: 347rpx;
height: 62rpx;
}
.newCardGroup{
position: relative;
width:750rpx;
height:3029rpx;
}
.newCardImg{
width: 100%;
height: 100%;
}
.newCardFrame{
position: fixed;
left: 0;
top: 0;
width: 750rpx;
height: calc(100vh - 120rpx);
z-index: 10;
overflow: auto;
}
.closeCard{
position: absolute;
top: 45rpx;
right: 42rpx;
width: 45rpx;
height: 45rpx;
}
.btnCard{
position: absolute;
left: 226rpx;
bottom: 109rpx;
width: 276rpx;
height: 53rpx;
}

正在加载...
取消
保存