|
@@ -87,14 +87,15 @@
|
|
@emit-select="emitSelect"
|
|
@emit-select="emitSelect"
|
|
/>
|
|
/>
|
|
</template>
|
|
</template>
|
|
|
|
+ <view v-if="isBottom" class="order-bottom">
|
|
|
|
+ <view class="text">-- 没有更多数据 --</view>
|
|
|
|
+ </view>
|
|
</scroll-view>
|
|
</scroll-view>
|
|
<view v-else class="text">
|
|
<view v-else class="text">
|
|
<image class="zwsj" aspectFill :src="'/static/zwsj.png'" />
|
|
<image class="zwsj" aspectFill :src="'/static/zwsj.png'" />
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
- <view v-if="isBottom" class="order-bottom">
|
|
|
|
- <view class="text">-- 没有更多数据 --</view>
|
|
|
|
- </view>
|
|
|
|
|
|
+
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
</view>
|
|
@@ -204,6 +205,9 @@ onLoad(async () => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
total.value = res.total
|
|
total.value = res.total
|
|
orderList.value = res.rows
|
|
orderList.value = res.rows
|
|
|
|
+ if(orderList.value.length < pageSize.value){
|
|
|
|
+ isBottom.value = true
|
|
|
|
+ }
|
|
if(tabActive.value ==0){
|
|
if(tabActive.value ==0){
|
|
tabList.value[0].leng = orderList.value.length
|
|
tabList.value[0].leng = orderList.value.length
|
|
}
|
|
}
|
|
@@ -261,6 +265,9 @@ const handleSearch = async()=>{
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
total.value = res.total
|
|
total.value = res.total
|
|
orderList.value = res.rows
|
|
orderList.value = res.rows
|
|
|
|
+ if(orderList.value.length < pageSize.value){
|
|
|
|
+ isBottom.value = true
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
if(tabActive.value==1){
|
|
if(tabActive.value==1){
|
|
@@ -286,6 +293,9 @@ const handleSearch = async()=>{
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
total.value = res.total
|
|
total.value = res.total
|
|
orderList.value = res.rows
|
|
orderList.value = res.rows
|
|
|
|
+ if(orderList.value.length < pageSize.value){
|
|
|
|
+ isBottom.value = true
|
|
|
|
+ }
|
|
if(tabActive.value ==0){
|
|
if(tabActive.value ==0){
|
|
tabList.value[0].leng = orderList.value.length
|
|
tabList.value[0].leng = orderList.value.length
|
|
}
|
|
}
|
|
@@ -511,6 +521,9 @@ const checkIndex = async(index) => {
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
total.value = res.total
|
|
total.value = res.total
|
|
orderList.value = res.rows
|
|
orderList.value = res.rows
|
|
|
|
+ if(orderList.value.length < pageSize.value){
|
|
|
|
+ isBottom.value = true
|
|
|
|
+ }
|
|
if(tabActive.value ==0){
|
|
if(tabActive.value ==0){
|
|
tabList.value[0].leng = orderList.value.length
|
|
tabList.value[0].leng = orderList.value.length
|
|
}
|
|
}
|
|
@@ -591,6 +604,9 @@ const loadPreList = async()=>{
|
|
if (res.code === 200) {
|
|
if (res.code === 200) {
|
|
total.value = res.total
|
|
total.value = res.total
|
|
orderList.value = res.rows
|
|
orderList.value = res.rows
|
|
|
|
+ if(orderList.value.length < pageSize.value){
|
|
|
|
+ isBottom.value = true
|
|
|
|
+ }
|
|
if(tabActive ==0){
|
|
if(tabActive ==0){
|
|
tabList.value[0].leng = orderList.value.length
|
|
tabList.value[0].leng = orderList.value.length
|
|
}
|
|
}
|