From 3ac08ca9a054c45591657e97fc2a4164c4f6446e Mon Sep 17 00:00:00 2001 From: wangfukang <15630117759@163.com> Date: Fri, 24 Apr 2026 11:22:53 +0800 Subject: [PATCH] 1 --- components/tab-bar/delivery.vue | 41 ++++++++++++++++++++------------- 1 file changed, 25 insertions(+), 16 deletions(-) diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index 218585e..8a64d58 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -485,39 +485,44 @@ this.waimaiData = [] this.kuaidiData = [] for(let i=0;i { uni.hideLoading(); if (res.code == 200) { let worker = uni.getStorageSync('worker') || {}; // 避免取不到时出错 - worker.getPushOrder = this.zhipaiCheck ? 1 : 0; + worker.getPushOrder = that.zhipaiCheck ? 1 : 0; uni.setStorageSync('worker', worker); - uni.setStorageSync('waimaiData',this.waimaiData) - uni.setStorageSync('kuaidiData',this.kuaidiData) - if(this.zhipaiCheck == false){ + uni.setStorageSync('waimaiData',that.waimaiData) + uni.setStorageSync('kuaidiData',that.kuaidiData) + if(that.zhipaiCheck == false){ uni.removeStorageSync('waimaiData') uni.removeStorageSync('kuaidiData') } @@ -546,6 +551,10 @@ } }, openPopup() { + if(this.isOnLine != 0){ + this.tui.toast('请先上线后配置'); + return; + } let that = this that.tui.request("/app/workerRelaPrice/getByWorkerId?workerId=" + uni.getStorageSync('worker').workerId, "GET", {}, false, true).then((res) => {