order number 8.19
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
</view>
|
||||
<u-action-sheet :list="actionList" v-model="showAction" :cancel-btn="true" @click="delHistory" border-radius="20"></u-action-sheet>
|
||||
<u-empty text="暂无足迹" mode="list" color="#000" v-if="!historyList.length"></u-empty>
|
||||
<u-loadmore class="load-size" :status="loadStatus" bgColor="#ECECEC" margin-top="20" margin-bottom="20" v-if="historyList.length > pageSize" @loadmore="reachBottom"></u-loadmore>
|
||||
<u-loadmore class="load-size" :status="loadStatus" bgColor="#ECECEC" margin-top="20" margin-bottom="20" v-if="historyList.length >= pageSize" @loadmore="reachBottom"></u-loadmore>
|
||||
</scroll-view>
|
||||
</view>
|
||||
</template>
|
||||
|
||||
@@ -301,18 +301,10 @@ export default {
|
||||
})
|
||||
},
|
||||
async getOrderList({ load = 'reload' } = {}) {
|
||||
// const res = await this.$u.api.getSendOrderList({
|
||||
// page: this.page,
|
||||
// })
|
||||
const res = await this.$u.api.getOrderList({
|
||||
const res = await this.$u.api.getSendOrderList({
|
||||
page: this.page,
|
||||
})
|
||||
this.timer = true;
|
||||
// if(res.errCode == 0) {
|
||||
// if(load == 'reload') this.orderList = res.data.order_list;
|
||||
// else this.orderList.push(...res.data.order_list);
|
||||
// }
|
||||
// return res.data.order_list.length;
|
||||
if(res.errCode == 0) {
|
||||
if(load == 'reload') this.orderList = res.data;
|
||||
else this.orderList.push(...res.data);
|
||||
|
||||
Reference in New Issue
Block a user