wangfukang 1 month ago
parent
commit
85b0cc7802
  1. 24
      pages/index/index.vue

24
pages/index/index.vue

@ -1372,6 +1372,7 @@
if (item.workerId != null && item.workerId != undefined && item.workerId != '') { if (item.workerId != null && item.workerId != undefined && item.workerId != '') {
that.zhipaiCount -= 1 that.zhipaiCount -= 1
that.decreaseIndexZhipaiBadge()
} else { } else {
if (item.deliveryType == 1) { if (item.deliveryType == 1) {
that.waimaiCount -= 1 that.waimaiCount -= 1
@ -1393,6 +1394,12 @@
} }
}).catch((res) => {}); }).catch((res) => {});
}, },
decreaseIndexZhipaiBadge() {
const tabBar = this.$refs.tabBar
if (!tabBar) return
const next = Math.max(0, (Number(tabBar.indexZhipaiCount) || 0) - 1)
tabBar.indexZhipaiCount = next
},
rejectOrder(item, index) { rejectOrder(item, index) {
const deliveryId = item && item.id const deliveryId = item && item.id
if (this.rejectOrderSubmittingMap[deliveryId]) return if (this.rejectOrderSubmittingMap[deliveryId]) return
@ -1406,6 +1413,7 @@
that.tui.toast(res.message); that.tui.toast(res.message);
if (item.workerId != null && item.workerId != undefined && item.workerId != '') { if (item.workerId != null && item.workerId != undefined && item.workerId != '') {
that.zhipaiCount -= 1 that.zhipaiCount -= 1
that.decreaseIndexZhipaiBadge()
} else { } else {
if (item.deliveryType == 1) { if (item.deliveryType == 1) {
that.waimaiCount -= 1 that.waimaiCount -= 1
@ -2488,7 +2496,7 @@
.menu-box { .menu-box {
width: 95%; width: 95%;
height: 176rpx; height: 186rpx;
display: flex; display: flex;
align-items: flex-end; align-items: flex-end;
margin: 30rpx auto 0; margin: 30rpx auto 0;
@ -2524,7 +2532,7 @@
.menu-list { .menu-list {
flex: 1; flex: 1;
height: 142rpx; height: 152rpx;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
@ -2647,11 +2655,11 @@
.menu-name { .menu-name {
text-align: center; text-align: center;
font-size: 21rpx; font-size: 24rpx;
font-weight: 900; font-weight: 900;
margin-top: 6rpx; margin-top: 10rpx;
color: #183f36; color: #183f36;
line-height: 28rpx; line-height: 32rpx;
position: relative; position: relative;
z-index: 2; z-index: 2;
text-shadow: 0 1rpx 0 rgba(255, 255, 255, 0.85); text-shadow: 0 1rpx 0 rgba(255, 255, 255, 0.85);
@ -2659,11 +2667,11 @@
} }
.menu-desc { .menu-desc {
margin-top: 0; margin-top: 2rpx;
color: rgba(18, 73, 63, 0.58); color: rgba(18, 73, 63, 0.58);
font-size: 17rpx; font-size: 20rpx;
font-weight: 800; font-weight: 800;
line-height: 22rpx; line-height: 26rpx;
position: relative; position: relative;
z-index: 2; z-index: 2;
white-space: nowrap; white-space: nowrap;

Loading…
Cancel
Save