优化购物车页面

This commit is contained in:
TOP糯米 2023-03-10 00:59:38 +08:00
parent e1b25a3d2a
commit 42495977d6
1 changed files with 5 additions and 3 deletions
src/pages/service

View File

@ -34,7 +34,7 @@
<text class="text">合计</text>
<text class="price">¥ {{ utils.formatNumber(item.total, 2) }}</text>
</view>
<view class="button" @click="createOrder(index)">
<view class="button" :class="{ active: item.total > 0 }" @click="createOrder(index)">
<text>去下单</text>
</view>
</view>
@ -188,8 +188,6 @@ export default {
});
if (orderdata.length > 0) {
this.$utils.toPage("/pages/order/create?orderData=" + encodeURIComponent(JSON.stringify(orderdata)));
} else {
this.$utils.toast("未选择任何商品");
}
},
},
@ -274,6 +272,10 @@ export default {
border-radius: 23rpx;
font-size: 24rpx;
color: #ffffff;
opacity: 0.7;
}
.button.active {
opacity: 1;
}
}
.more {