From 45fb4b11ad51bb38306765b11a6747402e382cee Mon Sep 17 00:00:00 2001 From: Helius <wangdoubleone@gmail.com> Date: Sat, 20 Feb 2021 17:37:33 +0800 Subject: [PATCH] fix --- hive-app/pages/workbench/orderList.vue | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hive-app/pages/workbench/orderList.vue b/hive-app/pages/workbench/orderList.vue index f1784c3..29f9f4e 100644 --- a/hive-app/pages/workbench/orderList.vue +++ b/hive-app/pages/workbench/orderList.vue @@ -49,6 +49,7 @@ <text class="blue-btn small-btn" @click="cancelOrder(item.orderId)">取消订单</text> </view> </view> + <no-record :isShow="!list.length" txt="暂无订单记录"></no-record> <view v-if="list.length"> <uni-load-more :status="loadStatus" color="#a5abaf"></uni-load-more> </view> @@ -69,6 +70,7 @@ }, data() { return { + queryKey: '', orderStatus: 0, tabs:[ { @@ -97,6 +99,9 @@ if(options.status){ this.orderStatus = Number(options.status); } + if(options.queryKey){ + this.queryKey = options.queryKey; + } this.loadList() // 判断权限 @@ -112,7 +117,7 @@ onPullDownRefresh(){ this.reloadData(); let timer = setTimeout(function () { - uni.startPullDownRefresh(); + uni.stopPullDownRefresh(); clearTimeout(timer); timer = null; }, 800); @@ -184,7 +189,6 @@ content: '确定取消订单吗?', success: (res) => { if (res.confirm) { - console.log('用户点击确定'); this.$httpUtils.request('/api/order/cancelOrder/'+id).then((res) => { if(res.status == 200){ this.reloadData() -- Gitblit v1.9.1