| | |
| | | <view class="line-component" v-if="bannerList[i].point"> |
| | | <view class="line-bg"> |
| | | <view class="tip" |
| | | :style="{'left':(bannerList[i].point.end&&(bannerList[i].point.current/bannerList[i].point.end)||0).toFixed(2)*100+'%'}"> |
| | | :style="{'left':(bannerList[i].point.current<=bannerList[i].point.endPoint)?((bannerList[i].point.endPoint&&(bannerList[i].point.current/bannerList[i].point.endPoint)||0).toFixed(2)*100+'%'):'100%'}"> |
| | | {{bannerList[i].point.current || 0}} |
| | | </view> |
| | | <view class="tip-loc" |
| | | :style="{'left':(bannerList[i].point.end&&(bannerList[i].point.current/bannerList[i].point.end)||0).toFixed(2)*100+'%'}"> |
| | | :style="{'left':(bannerList[i].point.current<=bannerList[i].point.endPoint)?((bannerList[i].point.endPoint&&(bannerList[i].point.current/bannerList[i].point.endPoint)||0).toFixed(2)*100+'%'):'100%'}"> |
| | | </view> |
| | | </view> |
| | | |
| | | <view class="desc"> |
| | | <span |
| | | v-if="bannerList[i].point.end">{{bannerList[i].point.current || 0}}/{{bannerList[i].point.end}},升级还需{{bannerList[i].point.end-bannerList[i].point.current}}成长值</span> |
| | | v-if="bannerList[i].point.endPoint&&(bannerList[i].point.current<=bannerList[i].point.endPoint)">{{bannerList[i].point.current || 0}}/{{bannerList[i].point.endPoint}},升级还需{{bannerList[i].point.endPoint - bannerList[i].point.current}}成长值</span> |
| | | <span v-else>当前成长值:{{bannerList[i].point.current || 0}}</span> |
| | | </view> |
| | | </view> |
| | |
| | | that.descIndex = e.mp.detail.current |
| | | clearTimeout(timer) |
| | | }, 150) |
| | | this.$emit('changeIndex',this.curIndex) |
| | | }, |
| | | animationfinish(e) { |
| | | this.isDescAnimating = false |