wangfukang 3 weeks ago
parent
commit
cf2e6767ed
  1. 2
      package1/order/orderDetail.vue
  2. 23
      pages/index/index.vue
  3. BIN
      static/images/img/songshu.png

2
package1/order/orderDetail.vue

@ -1435,8 +1435,6 @@
height: 64rpx;
margin-left: 14rpx;
border-radius: 50%;
background: rgba(255, 255, 255, 0.64);
box-shadow: 0 10rpx 24rpx rgba(0, 35, 28, 0.08);
text-align: center;
line-height: 64rpx;
}

23
pages/index/index.vue

@ -30,7 +30,7 @@
<swiper-item v-for="(item,index) in gaoxiaoList" :key="index">
<view class="order-msg-box">
<view class="order-msg-left">
<img src="https://jewel-shop.oss-cn-beijing.aliyuncs.com/ecd00dab1c9c44198d765bc08bc1bd71.png"
<img src="/static/images/img/songshu.png"
alt="" />
</view>
<view class="order-msg-center">
@ -266,7 +266,7 @@
</view>
</view>
</view>
<view class="title-sort" v-if="(lastScrollTop>583 || getAreaData.id != undefined || putAreaData.id != undefined || checkYongjin)" :class="{'title-sort--sticky': lastScrollTop>583}"
<view class="title-sort" v-if="(lastScrollTop>300 || getAreaData.id != undefined || putAreaData.id != undefined || checkYongjin)" :class="{'title-sort--sticky': lastScrollTop>583}"
:style="{'top': (navBarHeight+90) + 'px'}">
<view class="sort-member" style="position: relative;">
<view @tap="checkAdd">
@ -329,7 +329,7 @@
</view>
</view>
<view class="delivery-list-wrap">
<scroll-view @scrolltolower="onReachPage" :scroll-y="lastScrollTop>583" class="delivery-list-wrap">
<view class="empty-delivery" v-if="deliveryItem.length <= 0">
<view class="empty-delivery-icon">校园</view>
<view class="empty-delivery-title">暂时没有可抢订单</view>
@ -442,7 +442,7 @@
</view>
</view>
</view>
</view>
</scroll-view>
</view>
</view>
@ -694,6 +694,7 @@
checkYongjin: false,
getshopArea: [],
putshopArea: [],
totalPages: 1,
swipeOrderDefaultStyle: {
progress: 'width: 0%;',
thumb: 'left: 0%; transform: translateX(-0%);'
@ -1044,7 +1045,11 @@
}
}
}
if (that.searchForm.pageNum == 1) {
that.deliveryItem = res.result.records;
} else {
that.deliveryItem = [...that.deliveryItem, ...res.result.records]
}
if (res.result.orderCount != null) {
for (let i = 0; i < res.result.orderCount.length; i++) {
if (res.result.orderCount[i].deliveryType == 1) {
@ -1059,6 +1064,7 @@
if (res.result.zhipaiCount != undefined && res.result.zhipaiCount != null) {
that.zhipaiCount = res.result.zhipaiCount
}
that.totalPages = res.result.pages; // pages =
that.$forceUpdate();
} else {
that.tui.toast(res.message);
@ -1187,6 +1193,12 @@
}
}).catch((res) => {})
},
onReachPage() {
console.log("11111")
if (this.searchForm.pageNum >= this.totalPages) return;
this.searchForm.pageNum++;
this.getDelivery();
},
searchOrder(type, value) {
if (type == 'getarea') {
if (this.searchForm.getAreaId == value.id) {
@ -2025,7 +2037,6 @@
border-radius: 34rpx;
margin: 22rpx auto 0;
overflow: hidden;
box-shadow: 0 16rpx 38rpx rgba(0, 35, 28, 0.07);
}
.daoda-time {
@ -2508,7 +2519,7 @@
}
.delivery-list-wrap {
min-height: 1200rpx;
height: 1200rpx;
}
.empty-delivery {

BIN
static/images/img/songshu.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

Loading…
Cancel
Save