diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue index 41d1b01..0442f07 100644 --- a/src/pages/cart/cart.vue +++ b/src/pages/cart/cart.vue @@ -19,7 +19,7 @@ 全选 合计: {{totalPrice}} - 去结算({{totalCount}}) + 去结算({{totalCount}}) @@ -69,6 +69,16 @@ export default { selectAllChange(){ let temp = !this.selectAll this.cartList.forEach(item=>item.goods_select = temp) + }, + // 去支付页面 + goToPay(){ + if(this.totalCount===0){ + uni.showToast({ + title:"请选择结算商品", + icon: "none" + }) + }else{ + console.log("跳转到结算页面") } } }, //深度监听 @@ -183,6 +193,9 @@ export default { display: flex; justify-content: center; align-items: center; + &.disable { + background-color: #ccc; + } } } \ No newline at end of file