Commit 7bc2a2ed authored by 张娇(东信)'s avatar 张娇(东信)

样式优化

parent 7a381d1a
...@@ -392,12 +392,13 @@ page { ...@@ -392,12 +392,13 @@ page {
font-size: 32rpx; font-size: 32rpx;
} }
.submit-order-view { .submit-order-view {
width: 710rpx; width: 750rpx;
height: 131rpx; height: 131rpx;
padding-left: 18rpx; padding-left: 18rpx;
padding-top: 21rpx; padding-top: 21rpx;
margin-top: 15%; margin-top: 15%;
background: #ffffff; background: #ffffff;
margin-left: -20rpx;
} }
.total-view { .total-view {
width: 142rpx; width: 142rpx;
......
...@@ -141,7 +141,7 @@ const changeCheckedAll = () => { ...@@ -141,7 +141,7 @@ const changeCheckedAll = () => {
}); });
}; };
function toSettle() { function toSettle() {
// TODO: 跳转到筑农严选 // TODO: 跳转到结算页面
xma.navigateTo({ xma.navigateTo({
url: '/pages/cart/ConfirmOrder', url: '/pages/cart/ConfirmOrder',
}); });
......
...@@ -147,7 +147,7 @@ function toDetail() { ...@@ -147,7 +147,7 @@ function toDetail() {
}); });
} }
function toCart() { function toCart() {
// TODO: 跳转到筑农严选 // TODO: 跳转到购物车
xma.navigateTo({ xma.navigateTo({
url: '/pages/cart/cart', url: '/pages/cart/cart',
}); });
......
...@@ -41,13 +41,17 @@ ...@@ -41,13 +41,17 @@
</div> </div>
</div> </div>
</div> </div>
<div class="shopping-cart"> <!-- 购物车悬浮按钮 -->
<div> <div class="cart-floating">
<img src="/src/static/shop/shoppingCart.png" alt="" /> <img class="cart" @tap="toCart" src="/static/presale/cart.png" />
购物车
</div>
<img src="/src/static/shop/doubleArrow.png" alt="" />
</div> </div>
<!-- <div class="shopping-cart">-->
<!-- <div>-->
<!-- <img src="/src/static/shop/shoppingCart.png" alt="" />-->
<!-- 购物车-->
<!-- </div>-->
<!-- <img src="/src/static/shop/doubleArrow.png" alt="" />-->
<!-- </div>-->
</div> </div>
</template> </template>
...@@ -80,6 +84,12 @@ const navList = ref([ ...@@ -80,6 +84,12 @@ const navList = ref([
const acitveNav = ref(1); const acitveNav = ref(1);
const activeFilter = ref(false); const activeFilter = ref(false);
function toCart() {
// TODO: 跳转到购物车
xma.navigateTo({
url: '/pages/cart/cart',
});
}
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
...@@ -236,4 +246,22 @@ uni-page-body { ...@@ -236,4 +246,22 @@ uni-page-body {
} }
} }
} }
.cart-floating {
position: fixed;
bottom: 10%;
width: 80rpx;
height: 80rpx;
z-index: 99;
background-color: #ffffff;
border-radius: 50%;
margin-left: 10px;
}
.cart {
position: relative;
top: 20rpx;
left: 16rpx;
width: 48rpx;
height: 46rpx;
}
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment