From a10a1b0c0831ea8f4adad306a727bfeaf3ce9445 Mon Sep 17 00:00:00 2001 From: pplokijuhyg <1162963624@qq.com> Date: Tue, 24 Dec 2019 14:53:06 +0800 Subject: [PATCH] =?UTF-8?q?=E7=99=BB=E9=99=86=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/product/product.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pages/product/product.js b/pages/product/product.js index 510d741..a9ab4c5 100644 --- a/pages/product/product.js +++ b/pages/product/product.js @@ -47,6 +47,14 @@ Page({ // }, bindPickerChange(e) { console.log(e.detail.value) + if(this.data.userid == 0){ + wx.showToast({ + title: '请先登陆', + icon: 'none', + duration: 2000 + }) + return ; + } request({ url: "Cart/addCart", data: {