|
@@ -93,8 +93,6 @@
|
|
|
<view class="cart-empty-btn" @tap="goCategory">去逛逛</view>
|
|
<view class="cart-empty-btn" @tap="goCategory">去逛逛</view>
|
|
|
</view>
|
|
</view>
|
|
|
|
|
|
|
|
- <view class="cart-scroll-placeholder"></view>
|
|
|
|
|
-
|
|
|
|
|
<!-- 底部结算栏 -->
|
|
<!-- 底部结算栏 -->
|
|
|
<view class="cart-footer" v-if="displayCartList.length">
|
|
<view class="cart-footer" v-if="displayCartList.length">
|
|
|
<view class="checkout-bar">
|
|
<view class="checkout-bar">
|
|
@@ -727,21 +725,24 @@ export default {
|
|
|
</script>
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|
|
|
|
|
+page {
|
|
|
|
|
+ background: $backColor;
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
.cart-page {
|
|
.cart-page {
|
|
|
- min-height: 100vh;
|
|
|
|
|
background: $backColor;
|
|
background: $backColor;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
- padding-bottom: $shopTabBarTotalHeight;
|
|
|
|
|
|
|
+ padding-bottom: calc(#{$shopTabBarContentHeight} + #{$shopTabBarSafeInset});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
.cart-page--has-checkout {
|
|
.cart-page--has-checkout {
|
|
|
- /* 有结算栏时额外预留高度,避免最后一项被挡住 */
|
|
|
|
|
- padding-bottom: calc(#{$shopTabBarTotalHeight} + #{$shopCartCheckoutHeight});
|
|
|
|
|
|
|
+ /* 展开嵌套 calc,只加结算栏一行高度,避免底部留白过大 */
|
|
|
|
|
+ padding-bottom: calc(#{$shopTabBarContentHeight} + 88upx + #{$shopTabBarSafeInset});
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/* 公告条左右 24upx 与 store-card 对齐,上边距与导航栏分开 */
|
|
/* 公告条左右 24upx 与 store-card 对齐,上边距与导航栏分开 */
|
|
|
.cart-notice {
|
|
.cart-notice {
|
|
|
- padding: 16upx 24upx 12upx;
|
|
|
|
|
|
|
+ padding: 16upx 24upx 0upx 12upx;
|
|
|
box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -1043,10 +1044,6 @@ export default {
|
|
|
border-radius: 36upx;
|
|
border-radius: 36upx;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-.cart-scroll-placeholder {
|
|
|
|
|
- height: 40upx;
|
|
|
|
|
-}
|
|
|
|
|
-
|
|
|
|
|
.cart-footer {
|
|
.cart-footer {
|
|
|
position: fixed;
|
|
position: fixed;
|
|
|
left: 0;
|
|
left: 0;
|