Commit 1e07b1a4 authored by wildfirecode13's avatar wildfirecode13

Merge branch 'master' of gitlab2.dui88.com:wanghongyuan/hello_taobao

parents ddb2f17a 4a0f9db9
......@@ -45,7 +45,7 @@ Component({
setTimeout(() => {
this.onOrderNowModalClose();
commonToast(resp.message);
}, 500);
}, 1000);
}else{
commonToast(resp.message)
}
......
......@@ -97,8 +97,8 @@ Page({
// 购买成功后更新积分
// 更新购买记录
// 总楼层数更新
this.getOrderList();
this.getUserCredits();
this.getOrderList();
this.getBaseInfo();
console.log(this.data.userCredits, '更新后的用户积分');
},
......@@ -161,8 +161,7 @@ Page({
if (currentTime < end) {
if(reduced <= 0){
commonToast('已购买的楼层达到最大值');
}
if(canBuyFloor <= reduced){
}else if(canBuyFloor <= reduced){
// 可以买
// 显示
this.setData({
......
......@@ -5,6 +5,15 @@
position: absolute;
}
.mask {
position: fixed;
width: 100%;
height: 100%;
z-index: 999;
background-color: #000;
opacity: 0.7;
}
.jie_shu_ye .logo {
width: 160rpx;
height: 58rpx;
......@@ -55,40 +64,40 @@
width: 35rpx;
height: 25rpx;
opacity: 1;
left: 13rpx;
top: 47rpx;
left: 15rpx;
top: 40rpx;
position: absolute;
font-size: 14.41518rpx;
font-size: 25rpx;
color: #ffffff;
}
.jie_shu_ye .dao_ji_shi69 .tu_ceng22_kao_bei72 {
width: 35rpx;
height: 25rpx;
opacity: 1;
left: 131rpx;
top: 47rpx;
left: 135rpx;
top: 40rpx;
position: absolute;
font-size: 14.41518rpx;
font-size: 25rpx;
color: #ffffff;
}
.jie_shu_ye .dao_ji_shi69 .tu_ceng2271 {
width: 35rpx;
height: 25rpx;
opacity: 1;
left: 246rpx;
top: 47rpx;
left: 248rpx;
top: 40rpx;
position: absolute;
font-size: 14.41518rpx;
font-size: 25rpx;
color: #ffffff;
}
.jie_shu_ye .dao_ji_shi69 .tu_ceng22_kao_bei370 {
width: 35rpx;
height: 25rpx;
opacity: 1;
left: 357rpx;
top: 47rpx;
left: 360rpx;
top: 40rpx;
position: absolute;
font-size: 14.41518rpx;
font-size: 25rpx;
color: #ffffff;
}
.jie_shu_ye .mai_zhongn20n50n80_lou_ceng_de_yong_hu_ke_huo_de_jiang_pinn_dai_biao_gai_lou_jie_shu_shi_de_zong_lou_ceng {
......@@ -468,21 +477,21 @@
position: absolute;
}
.jie_shu_ye .gou_mai_ji_lu46 .zu13447 {
width: 453rpx;
width: 500rpx;
height: 222rpx;
opacity: 1;
left: 61rpx;
top: 147rpx;
top: 130rpx;
position: absolute;
overflow-y: auto;
}
.jie_shu_ye .gou_mai_ji_lu46 .zu13447 .item{
top:0rpx;
width: 453rpx;
width: 500rpx;
height: 222rpx;
opacity: 1;
left: 10rpx;
/* left: 10rpx; */
position: absolute;
}
......
<view class="jie_shu_ye">
<view class="{{maskVisible ? 'mask' : ''}}"></view>
<image class="di_kao_bei3" src={{resList['66f2b76f-7265-4cb2-9b4d-7e8207ab1d74'].url}} />
<image class="logo" src={{resList['dd7d3a3b-6fcb-427d-8353-da169708bbab'].url}} />
<image onTap="onPrizeBtnClick" class="jiang_pinicon" src={{resList['b7517eae-3bc2-4456-935a-e6e3e1fe995e'].url}} />
<image class="gui_zeicon" onTap="showRuleModal" src={{resList['d826a2f1-a3ec-4764-aad2-f6cacc43cfce'].url}} />
<view class="dao_ji_shi69">
<image class="di74" src={{resList['ad6e754e-6243-4acf-9ffd-9a7aeb3f4971'].url}} />
<label class="tu_ceng2273">00</label>
......@@ -19,57 +19,33 @@
<view class="zhong_jiang_zhuang_tai">
<!-- 已中奖名单列表 -->
<view class="yi_zhong_jiang">
<!-- 有中奖用户 -->
<view style="position:absolute" a:if="{{prizeMenu != null}}" a:for="{{prizeMenu}}" a:key="idx" a:for-item="prizeItem" >
<view style="position:absolute" a:if="{{prizeMenu != null}}" a:for="{{prizeMenu}}" a:key="idx" a:for-item="prizeItem">
<view style="height:40rpx;position:absolute">
<label style="{{prizeItem.prizestyle.prizefloor}}">第{{prizeItem.floor}}层</label>
<label style="{{prizeItem.prizestyle.prizeuser}}">{{prizeItem.username}}</label>
<image style="{{prizeItem.prizestyle.prizeimage}}" src={{prizeItem.image}}></image>
</view>
</view>
<view class="no_prize" a:if="{{prizeMenu == null}}">总楼层不足,无人中奖</view>
</view>
<!-- <view class="wei_zhong_jiang">
<label class="zong_lou_ceng_bu_zu_wu_ren_zhong_jiang">总楼层不足,无人中奖</label>
</view> -->
<!--<view class="wei_zhong_jiang"><label class="zong_lou_ceng_bu_zu_wu_ren_zhong_jiang">总楼层不足,无人中奖</label></view> -->
</view>
</view>
<!-- 购买记录组件 -->
<view class="gou_mai_ji_lu46">
<image class="di77" src={{resList['79d3561c-5c4c-47b8-b4f9-51e7f82fcd7c'].url}} />
<!-- <image class="jin_du_tiao" src={{resList['40b73efe-19b8-41af-be83-17dc9b933e52'].url}} /> -->
<view class="zu13447" >
<!-- <label class="tu_ceng09_yue15_ri56">09 月 15日</label>
<label class="tu_ceng10012055">100-120</label>
<label class="tu_ceng10012054">100-120</label>
<label class="tu_ceng10012053">100-120</label>
<label class="tu_ceng20052">200</label>
<label class="tu_ceng20051">200</label>
<label class="tu_ceng20050">200</label>
<label class="tu_ceng09_yue15_ri49">09 月 15日</label>
<label class="tu_ceng09_yue15_ri48">09 月 15日</label>
<label class="tu_ceng100120_kao_bei">100-120</label>
<label class="tu_ceng200_kao_bei">200</label>
<label class="tu_ceng09_yue15_ri_kao_bei">09 月 15日</label>
<label class="tu_ceng100120_kao_bei2">100-120</label>
<label class="tu_ceng200_kao_bei2">200</label>
<label class="tu_ceng09_yue15_ri_kao_bei2">09 月 15日</label>
<label class="tu_ceng100120_kao_bei3">100-120</label>
<label class="tu_ceng200_kao_bei3">200</label>
<label class="tu_ceng09_yue15_ri_kao_bei3">09 月 15日</label> -->
<view class="item" a:for="{{orderList}}" a:key="index" a:for-item="item" >
<!--<image class="jin_du_tiao" src={{resList['40b73efe-19b8-41af-be83-17dc9b933e52'].url}} /> -->
<view class="zu13447">
<view class="item" a:for="{{orderList}}" a:key="index" a:for-item="item">
<label style="{{item.order.orderDay}}">{{item.monthDate}}</label>
<label style="{{item.order.orderFloor}}">{{item.floorRange}}</label>
<label style="{{item.order.orderCredits}}">{{item.credits}}</label>
</view>
</view>
</view>
</view>
<prize-modal a:if="{{prizeVisible}}" onPrizeModalClose="onPrizeModalClose" myPrize="{{myPrize}}" ></prize-modal>
<noprize-modal a:if="{{noprizeVisible}}" openPrizeStatus="{{openPrizeStatus}}" onHandleNoPrizeClose="onHandleNoPrizeClose" myPrize="{{myPrize}}" ></noprize-modal>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="ruleModalClose"><text>{{ruleData}}</text></rule-modal>
\ No newline at end of file
</view>
<prize-modal a:if="{{prizeVisible}}" onPrizeModalClose="onPrizeModalClose" myPrize="{{myPrize}}"></prize-modal>
<noprize-modal a:if="{{noprizeVisible}}" openPrizeStatus="{{openPrizeStatus}}" onHandleNoPrizeClose="onHandleNoPrizeClose" myPrize="{{myPrize}}"></noprize-modal>
<rule-modal a:if="{{ruleModalVisible}}" onModalClose="ruleModalClose">
<text>{{ruleData}}</text></rule-modal>
\ No newline at end of file
......@@ -18,7 +18,8 @@ Page({
ruleModalVisible: false,
// myPrizeBtnVisible: false,
ruleData:'',
myPrize:''
myPrize:'',
maskVisible:false
},
onLoad(props) {
......@@ -72,12 +73,14 @@ Page({
},
showRuleModal() {
this.setData({
ruleModalVisible: true
ruleModalVisible: true,
maskVisible:true
})
},
ruleModalClose() {
this.setData({
ruleModalVisible: false
ruleModalVisible: false,
maskVisible:false
})
},
......@@ -108,16 +111,20 @@ Page({
color: 'white'
},
orderFloor: {
left: 200 + 'rpx',
left: 180 + 'rpx',
top: 40 * (lens-i) + 'rpx',
position: 'absolute',
color: 'white'
color: 'white',
width:150+'rpx',
textAlign:'center'
},
orderCredits: {
left: 400 + 'rpx',
top: 40 * (lens-i) + 'rpx',
position: 'absolute',
color: 'white'
color: 'white',
width:100+'rpx',
textAlign:'center'
}
}
data[i].order = orderStyle;
......@@ -215,7 +222,7 @@ Page({
onPrizeModalClose(){
this.setData({
prizeVisible: true
prizeVisible: false
})
},
onHandleNoPrizeClose(){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment