diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index d06679c..6fa2969 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -63,131 +63,133 @@ - - - #样式要改{{item.numberCode}} - - - - 外卖 - - - 代取快递 - - - 代跑腿 + + + + #样式要改{{item.numberCode}} - ({{item.mustFinishTime != null ? item.mustFinishTime : '' | formatHourMinute }}前送达) - - - 备注:{{item.remark}} - - - - - {{item.allCount != null ? item.allCount : 0}}件 + + + 外卖 - - 取件码截图(分割一下) {{item.getPictures}} + + 代取快递 - - 取件码{{item.getCodes}} - - - 手机尾号:{{item.phoneNumber}} + + 代跑腿 + ({{item.mustFinishTime != null ? item.mustFinishTime : '' | formatHourMinute }}前送达) - - - + + 备注:{{item.remark}} - - - - - - - - - - {{item.shopName}} - - - 祥 - - - {{item.shopAddress}} - + + + + + + + + + + {{item.shopName}} + + + 祥 + + + {{item.shopAddress}} + - - {{item.receiverAddress}} + + - - + + + + + {{item.receiverName}} + + + {{item.receiverAddress}} + + + + + - - - - - - - - 配送佣金 - - 超大/超重 + + + + + + + 配送佣金 + + 超大/超重 + + + + ¥{{item.deliveryFee}} (包含¥{{item.deliveryFeeMarketplace}}平台佣金) - - - ¥{{item.deliveryFee}} (包含¥{{item.deliveryFeeMarketplace}}平台佣金) + + 用户申请 退款中 + + + 已到店 + + + + - - 用户申请 退款中 - - - 已到店 - - - - - + @@ -323,7 +325,9 @@ }, waimaRuleList: [], tab1Checked1:'', + pageData:[], deliveryItem:[], + deliveryItem1:[], selectRuleList: [], totalPages:1, paotuiRuleList: [], @@ -380,6 +384,12 @@ this.getDelivery() this.$forceUpdate() }, + onReachPage(){ + console.log("11111") + if (this.searchForm.pageNum >= this.totalPages) return; + this.searchForm.pageNum++; + this.getDelivery(); + }, chooseType(type){ if(this.tab1Checked1 == type){ this.tab1Checked1 = '' @@ -403,12 +413,22 @@ this.tui.request("/mall/delivery/pagebyworker", "POST", this.searchForm, false, false).then((res) => { that.loadStatus = 'nomore'; if (res.code == 200) { - that.deliveryItem = res.result.records; - if (that.searchForm.pageNum == 1) { - that.deliveryItem = res.result.records; - } else { - that.deliveryItem = [...that.deliveryItem, ...res.result.records] + if(this.searchForm.status == 1){ + if (that.searchForm.pageNum == 1) { + that.deliveryItem1 = res.result.records; + } else { + that.deliveryItem1 = [...that.deliveryItem, ...res.result.records] + } + that.pageData = that.deliveryItem1 + }else{ + if (that.searchForm.pageNum == 1) { + that.deliveryItem = res.result.records; + } else { + that.deliveryItem = [...that.deliveryItem, ...res.result.records] + } + that.pageData = that.deliveryItem } + that.totalPages = res.result.pages; // pages = 总页数 that.$forceUpdate(); } else {