优化购物车页面
This commit is contained in:
parent
e1b25a3d2a
commit
42495977d6
|
@ -34,7 +34,7 @@
|
||||||
<text class="text">合计:</text>
|
<text class="text">合计:</text>
|
||||||
<text class="price">¥ {{ utils.formatNumber(item.total, 2) }}</text>
|
<text class="price">¥ {{ utils.formatNumber(item.total, 2) }}</text>
|
||||||
</view>
|
</view>
|
||||||
<view class="button" @click="createOrder(index)">
|
<view class="button" :class="{ active: item.total > 0 }" @click="createOrder(index)">
|
||||||
<text>去下单</text>
|
<text>去下单</text>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
@ -188,8 +188,6 @@ export default {
|
||||||
});
|
});
|
||||||
if (orderdata.length > 0) {
|
if (orderdata.length > 0) {
|
||||||
this.$utils.toPage("/pages/order/create?orderData=" + encodeURIComponent(JSON.stringify(orderdata)));
|
this.$utils.toPage("/pages/order/create?orderData=" + encodeURIComponent(JSON.stringify(orderdata)));
|
||||||
} else {
|
|
||||||
this.$utils.toast("未选择任何商品");
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -274,6 +272,10 @@ export default {
|
||||||
border-radius: 23rpx;
|
border-radius: 23rpx;
|
||||||
font-size: 24rpx;
|
font-size: 24rpx;
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
opacity: 0.7;
|
||||||
|
}
|
||||||
|
.button.active {
|
||||||
|
opacity: 1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.more {
|
.more {
|
||||||
|
|
Loading…
Reference in New Issue