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

中奖列表显示中奖概率

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