From 49e7339621b720f88defe4d74160b4cf7c855b81 Mon Sep 17 00:00:00 2001 From: tianyi <13521030702@163.com> Date: Tue, 24 Mar 2026 09:57:49 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E7=BD=AE=E8=A7=84=E5=88=99=E5=92=8C?= =?UTF-8?q?=E4=B8=8A=E4=B8=8B=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/tab-bar/delivery.vue | 49 +++++++++++++++++++++++++++------ 1 file changed, 40 insertions(+), 9 deletions(-) diff --git a/components/tab-bar/delivery.vue b/components/tab-bar/delivery.vue index 5ef77a0..a44639e 100644 --- a/components/tab-bar/delivery.vue +++ b/components/tab-bar/delivery.vue @@ -26,17 +26,17 @@ - - - + + + 设置规则 - - - + + + 已上线 - - + + 已离线 @@ -263,6 +263,7 @@ export default { data() { return { + isOnLine:1, bigImg:'', zhipaiCheck: false, tab1Checked: 'daiqu', @@ -299,6 +300,8 @@ init() { console.log("配送初始化") this.menuButtonInfo = uni.getMenuButtonBoundingClientRect() + this.isOnLine = uni.getStorageSync('worker').isOnLine + this.$forceUpdate() }, //查看大图 largeImg(img) { @@ -456,6 +459,7 @@ if (res.code == 200) { let worker = uni.getStorageSync('worker') || {}; // 避免取不到时出错 worker.isOnLine = value; + this.isOnLine = value uni.setStorageSync('worker', worker); this.tui.toast(res.message) } else { @@ -464,6 +468,7 @@ }) this.isArea = !this.isArea + this.$forceUpdate() }, ceshi(e) { console.log("11111111", e) @@ -544,7 +549,7 @@ width: 95%; overflow-y: auto; -webkit-overflow-scrolling: touch; - margin: -90px auto 0; + margin: 10px auto 0; } .box1 { @@ -699,4 +704,30 @@ color: #fff; border-radius: 5px; } + .shangxian-btn{ + background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/7620b3eed7b14bb69d3c456ed0be72b3.png') no-repeat; + padding-left: 8px; + } + .lixian-btn{ + background: url('https://jewel-shop.oss-cn-beijing.aliyuncs.com/462cacb9682f4919a3e750700bbc5f3e.png') no-repeat; + text-align: right; + padding-right: 8px; + } + .shangxia-btn{ + width: 66px; + height: 25px; + background-size: 100%; + font-size: 10px; + font-weight: 700; + } + .guize-box{ + font-size: 10px; + font-weight: 700; + background: rgba(166, 255, 234, 1); + width: 70px; + height: 25px; + border-radius: 25px; + margin-right: 10px; + padding-left: 5px; + } \ No newline at end of file