Commit 5ffa6e8d authored by Aivs's avatar Aivs

非登录不可购买

parent 2bb7c4b9
......@@ -596,6 +596,11 @@ Page({
//立即购买(先自动加入购物车)
addFast: function() {
if (!app.globalData.hasLogin) {
wx.navigateTo({
url: "/pages/auth/login/login"
});
}
var that = this;
if (this.data.openAttr == false) {
//打开规格选择窗口
......@@ -669,6 +674,11 @@ Page({
//添加到购物车
addToCart: function() {
if (!app.globalData.hasLogin) {
wx.navigateTo({
url: "/pages/auth/login/login"
});
}
var that = this;
if (this.data.openAttr == false) {
//打开规格选择窗口
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment