Browse Source

首页判断抢购百分比显示进度条

master
邓平艺 4 years ago
parent
commit
47c514e2d3
  1. 2
      pages/index/index.vue

2
pages/index/index.vue

@ -11,7 +11,7 @@
<view class="right"> <view class="right">
<view class="lf-line-2 title">{{ item.name }}</view> <view class="lf-line-2 title">{{ item.name }}</view>
<view class="lf-flex tips" v-if="item.specs[0]"> <view class="lf-flex tips" v-if="item.specs[0]">
<view class="u-line-progress">
<view class="u-line-progress" v-if="item.specs[0].sold_percent">
<u-line-progress :percent="item.specs[0].sold_percent" height="20" :striped="true" active-color="#FE9903" :show-percent="false" inactive-color="#F5F5F5"></u-line-progress> <u-line-progress :percent="item.specs[0].sold_percent" height="20" :striped="true" active-color="#FE9903" :show-percent="false" inactive-color="#F5F5F5"></u-line-progress>
</view> </view>
<text class="progress lf-m-r-10">{{ item.specs[0].sold_percent_text }}</text> <text class="progress lf-m-r-10">{{ item.specs[0].sold_percent_text }}</text>

Loading…
Cancel
Save