|
@@ -16,18 +16,18 @@
|
|
|
<view class="title">
|
|
|
- 实时累计 -
|
|
|
</view>
|
|
|
- <scroll-view class="swiper-box" scroll-y>
|
|
|
+ <scroll-view class="swiper-box" scroll-y :style="{'height': height}" @scrolltolower="loadData()">
|
|
|
<!-- 空白页 -->
|
|
|
<!-- <empty v-if="tabItem.loaded === true && tabItem.orderList.length === 0"></empty> -->
|
|
|
<!-- 订单列表 -->
|
|
|
<template>
|
|
|
- <view v-for="(item, index) in dataList" class="order-item flex">
|
|
|
+ <view v-for="(item, index) in dataList" class="order-item flex" >
|
|
|
<view class="left flex">
|
|
|
<view class="avator">
|
|
|
- <image :src="item.pay_evaluation" mode=""></image>
|
|
|
+ <image :src="item.user.avatar" mode=""></image>
|
|
|
</view>
|
|
|
<view class="order-font">
|
|
|
- {{item.user.real_name}}扣除<text>{{item.use_integral}}</text>个金豆
|
|
|
+ {{item.user.real_name}}{{item.title}}<text>{{item.number}}</text>
|
|
|
</view>
|
|
|
</view>
|
|
|
<view class="time">
|
|
@@ -35,7 +35,7 @@
|
|
|
</view>
|
|
|
</view>
|
|
|
</template>
|
|
|
- <!-- <uni-load-more :status="tabItem.loadingType"></uni-load-more> -->
|
|
|
+ <uni-load-more :status="loadingType"></uni-load-more>
|
|
|
</scroll-view>
|
|
|
</view>
|
|
|
</template>
|
|
@@ -56,7 +56,7 @@
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ height: '',
|
|
|
jd: 0,
|
|
|
loadingType: 'more',
|
|
|
limit: 10, //每次加载多少信息
|
|
@@ -74,7 +74,7 @@
|
|
|
const query = uni.createSelectorQuery();
|
|
|
query.select('.swiper-box').boundingClientRect();
|
|
|
query.exec(function(res) {
|
|
|
- _this.maxheight = resu.windowHeight - res[0].top + 'px';
|
|
|
+ _this.height = resu.windowHeight - res[0].top + 'px';
|
|
|
console.log('打印页面的剩余高度', _this.height);
|
|
|
});
|
|
|
},
|
|
@@ -93,9 +93,10 @@
|
|
|
},
|
|
|
loadData() {
|
|
|
let obj = this
|
|
|
- if(obj.loadingType == 'noMore'){
|
|
|
+ if(obj.loadingType == 'noMore' || obj.loadingType == 'loading'){
|
|
|
return
|
|
|
- }
|
|
|
+ }
|
|
|
+ obj.loadingType = 'loading'
|
|
|
jdCoool({
|
|
|
page: obj.page,
|
|
|
limit: obj.limit
|
|
@@ -113,7 +114,6 @@
|
|
|
//判断是否还有数据,有改为more,没有各位noMore
|
|
|
if(obj.limit == res.data.data.length){
|
|
|
obj.loadingType = 'more'
|
|
|
- return
|
|
|
}else{
|
|
|
obj.loadingType = 'noMore'
|
|
|
}
|
|
@@ -276,7 +276,7 @@
|
|
|
width: 70rpx;
|
|
|
height: 70rpx;
|
|
|
border-radius: 50rpx;
|
|
|
- background: #03A9F4;
|
|
|
+ // background: #03A9F4;
|
|
|
|
|
|
image {
|
|
|
width: 70rpx;
|