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

Loading…
Cancel
Save