登陆提示
This commit is contained in:
parent
843ba1f20e
commit
a10a1b0c08
@ -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: {
|
||||
|
Loading…
Reference in New Issue
Block a user