|
|
|
@ -69,7 +69,7 @@ |
|
|
|
</view> |
|
|
|
</view> |
|
|
|
<view class="content"> |
|
|
|
<scroll-view @scrolltolower="onReachPage" scroll-y style="width:100%;height: 620px;overflow: scroll;"> |
|
|
|
<scroll-view @scrolltolower="onReachPage" @scroll="handleScroll" :scroll-top="scrollTop" scroll-y style="width:100%;height: 620px;overflow: scroll;"> |
|
|
|
<view class="box1" v-for="(item,index) in pageData" :key="index"> |
|
|
|
<view class="maotou" v-if="item.deliveryType == 1"> |
|
|
|
<text>{{item.numberCode.length>14 ?'多订单':item.numberCode | delPlus}}</text> |
|
|
|
@ -370,6 +370,8 @@ |
|
|
|
zhipaiCheck: false, |
|
|
|
tab1Checked: 'daiqu', |
|
|
|
menuButtonInfo: {}, |
|
|
|
scrollTop: 0, |
|
|
|
oldScrollTop: 0, |
|
|
|
isArea: false, |
|
|
|
latitude: 39.909, // 默认纬度,可以设为用户当前位置或配送员位置 |
|
|
|
longitude: 116.39742, // 默认经度 |
|
|
|
@ -498,6 +500,15 @@ |
|
|
|
this.searchForm.pageNum++; |
|
|
|
this.getDelivery(); |
|
|
|
}, |
|
|
|
handleScroll(e) { |
|
|
|
this.oldScrollTop = e.detail.scrollTop |
|
|
|
}, |
|
|
|
scrollToTop() { |
|
|
|
this.scrollTop = this.oldScrollTop |
|
|
|
this.$nextTick(() => { |
|
|
|
this.scrollTop = 0 |
|
|
|
}) |
|
|
|
}, |
|
|
|
chooseType(type) { |
|
|
|
if (this.tab1Checked1 == type) { |
|
|
|
this.tab1Checked1 = '' |
|
|
|
@ -513,6 +524,7 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
this.searchForm.pageNum = 1 |
|
|
|
this.scrollToTop() |
|
|
|
this.getDelivery() |
|
|
|
this.$forceUpdate(); |
|
|
|
}, |
|
|
|
@ -774,6 +786,7 @@ |
|
|
|
this.searchForm.status = 2 |
|
|
|
} |
|
|
|
this.searchForm.pageNum = 1 |
|
|
|
this.scrollToTop() |
|
|
|
this.getDelivery() |
|
|
|
}, |
|
|
|
makeCall(phone) { |
|
|
|
|