From 721eec0c1fc2586fa308abc34230d324595a68ff Mon Sep 17 00:00:00 2001 From: fanfan Date: Sat, 23 Mar 2024 19:51:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=86=E8=8A=82=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/news3/seasoningCondimentsRecord.vue | 8 ++++---- pages/news3/setOutRecords.vue | 17 ++++++++++------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/pages/news3/seasoningCondimentsRecord.vue b/pages/news3/seasoningCondimentsRecord.vue index 9c4decc..ad10c80 100644 --- a/pages/news3/seasoningCondimentsRecord.vue +++ b/pages/news3/seasoningCondimentsRecord.vue @@ -93,8 +93,8 @@ onLoad(o) { this.form = JSON.parse(o.item) this.send_name = this.modeList[this.form.send_type].text; - this.transferList = this.form.transfer_image_ids; - this.chatList = this.form.chat_image_ids; + this.transferList = this.form.transfer_image_ids? this.form.transfer_image_ids:[]; + this.chatList = this.form.chat_image_ids?this.form.chat_image_ids:[]; this.type = o.type if (this.form.transfer_image_ids) { let list = this.form.transfer_image_ids @@ -143,14 +143,14 @@ const that = this; // 转账记录 let trList = [] - this.transferList = this.transferList?this.transferList.concat(this.handleList):this.handleList; + this.transferList = this.transferList.concat(this.handleList); this.transferList.forEach(item => { trList.push(item.file_id) }); this.form.transfer_image_id = trList.join(','); // 聊天记录 let atList = [] - this.chatList = this.chatList?this.chatList.concat(this.handleList):this.handChatList; + this.chatList = this.chatList.concat(this.handleList); this.chatList.forEach(item => { atList.push(item.file_id) }); diff --git a/pages/news3/setOutRecords.vue b/pages/news3/setOutRecords.vue index df980b8..332ff73 100644 --- a/pages/news3/setOutRecords.vue +++ b/pages/news3/setOutRecords.vue @@ -129,22 +129,25 @@ } }, onLoad(o) { + + }, + //页面卸载 + onUnload() { + //关闭监听选择收货地址事件 + uni.$off('refreshData') + }, + onShow() { this.getList(1) + this.classifyShow =1 uni.$on('refreshData', () => { // 调用列表接口 - if (this.classifyShow == 1) { + if (this.classifyShow == 2) { this.getOrderList(1); } else { this.getList(1) } }) }, - //页面卸载 - onUnload() { - //关闭监听选择收货地址事件 - uni.$off('refreshData') - }, - onShow() {}, onPullDownRefresh() { this.pageNum = 1; this.goodsList = [];