Commit 92ce716d authored by zhijie.xue's avatar zhijie.xue

中奖列表显示中奖概率

parent 1a84f606
...@@ -95,6 +95,7 @@ ...@@ -95,6 +95,7 @@
if (this.isListDone) return; if (this.isListDone) return;
page++; page++;
getGoodsList(page).then(data => { getGoodsList(page).then(data => {
if (!data) return;
// 没有更多了 // 没有更多了
if (!data.hasMore) { if (!data.hasMore) {
// 如果小于4个商品,一行就能显示,不用循环 // 如果小于4个商品,一行就能显示,不用循环
......
...@@ -34,10 +34,16 @@ ...@@ -34,10 +34,16 @@
overflow: hidden; overflow: hidden;
} }
.item-corn{ .item-corn{
color:@maincolor; color: @maincolor;
font-size: @font-middle; font-size: @font-middle;
position: absolute; position: absolute;
bottom:30rpx; bottom: 60rpx;
}
.item-probability {
color: @lightgrey;
font-size: @font-common;
position: absolute;
bottom: 30rpx;
} }
.item-status { .item-status {
position: absolute; position: absolute;
...@@ -80,6 +86,7 @@ ...@@ -80,6 +86,7 @@
<view class="item-right"> <view class="item-right">
<view class="item-title">{{item.prize.name}}</view> <view class="item-title">{{item.prize.name}}</view>
<view class="item-corn">花费: {{item.quantity}}克币</view> <view class="item-corn">花费: {{item.quantity}}克币</view>
<view class="item-probability">中奖概率: {{item.probability || ''}}</view>
<view class="item-status"> <view class="item-status">
<button data-id="{{item.id}}" class="item-button" bindtap="goprize" v-if="item.status.value==3">领取</button> <button data-id="{{item.id}}" class="item-button" bindtap="goprize" v-if="item.status.value==3">领取</button>
<text class="{{prize.getClass(item.status)}}" v-else>{{fonts[item.status.value]}}</text> <text class="{{prize.getClass(item.status)}}" v-else>{{fonts[item.status.value]}}</text>
......
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