From b75ab6fdefe9b8c8b9610a2069aa7903276435d5 Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Fri, 5 Mar 2021 02:17:48 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E7=AE=97=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cart/cart.vue | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) 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