优化购物车页面
This commit is contained in:
parent
e1b25a3d2a
commit
42495977d6
src/pages/service
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue