diff --git a/commons/style.css b/commons/style.css
index 2aeb42e..816fe51 100644
--- a/commons/style.css
+++ b/commons/style.css
@@ -71,13 +71,17 @@ page {background-color: #FFFFFF;}
border-radius: 20rpx 20rpx 0 0;
margin-top: -20rpx;
}
+/* 顶部背景 */
+.index-statis-bg{
+ width: 100%;
+ position: fixed;
+ top: 0;
+ left: 0;
+ z-index: 9;
+}
/* 搜索框 */
.pull-search-bg{
height: 140rpx;
- position: sticky;
- left: 0;
- top: 0;
- z-index: 9;
}
.pull-search{
align-items: center;
@@ -98,12 +102,10 @@ page {background-color: #FFFFFF;}
.index-cate-bg{
position: sticky;
left: 0;
- top: 140rpx;
z-index: 9;
}
.index-cate-bg.show{
box-shadow: 0 7rpx 7rpx rgba(0,0,0,.18);
- padding-top: 20rpx;
}
.index-cate{
width: 100%;
diff --git a/pages/cart/cart.vue b/pages/cart/cart.vue
index 1afd544..05f34e2 100644
--- a/pages/cart/cart.vue
+++ b/pages/cart/cart.vue
@@ -65,7 +65,7 @@
skuId:'',
listData: [],
page:1,
- size:4,
+ size:10,
total:0,
delIds:'', //删除ids
noMore:false, //没有更多
@@ -267,12 +267,10 @@
confirmDel(){
this.$requst.post('/api/order/shopping-cart-del',{ids:this.delIds.toString()}).then(res=>{
if(res.code==0){
+ // 查询购物车列表
+ this.listData = [];
+ this.getList();
this.$toolAll.tools.showToast('删除成功');
- this.listData.forEach((item,index)=>{
- if(item.ifcheck){
- this.listData.splice(index,1)
- }
- })
}else{
this.$toolAll.tools.showToast(res.msg)
}
diff --git a/pages/cart/settlement.vue b/pages/cart/settlement.vue
index 0a4f402..bc7473c 100644
--- a/pages/cart/settlement.vue
+++ b/pages/cart/settlement.vue
@@ -69,8 +69,8 @@
积分抵扣
-