From 4f5b98e23b29f3ad2a40d069e3941ec9ee312f8f Mon Sep 17 00:00:00 2001 From: "jqtmviyu@gmail.com" Date: Fri, 5 Mar 2021 17:58:44 +0800 Subject: [PATCH] =?UTF-8?q?wx=20api=E6=8D=A2=E6=88=90uni?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/cart/cart.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/cart/cart.vue b/src/pages/cart/cart.vue index 4536364..b01c182 100644 --- a/src/pages/cart/cart.vue +++ b/src/pages/cart/cart.vue @@ -60,7 +60,7 @@ export default { itemChangeCount(index, num){ // 如果数量为1 , 并且还减少, 提示删除商品 if(this.cartList[index].goods_count === 1 && num === -1){ - wx.showModal({ + uni.showModal({ content: '是否删除该商品', success: (res) => { if (res.confirm) { @@ -85,7 +85,7 @@ export default { icon: "none" }) }else{ - wx.navigateTo({url:"/pages/pay/pay"}) + uni.navigateTo({url:"/pages/pay/pay"}) } } },