Commit e96f5d81 by xuningning

完善页面需求

parent 928ad6b8
......@@ -264,8 +264,7 @@
_this.buycode = res.data.buycode
}
_this.getGoodsDetail();
}).catch(err => {
})
}).catch(err => {})
},
open() {
this.attrShow = true
......@@ -371,10 +370,10 @@
},
//添加购物车
add_shopping_cart() {
uni.showToast({
title: "请先登录!"
});
if (!uni.getStorageSync('token')) {
uni.showToast({
title: "请先登录!"
});
uni.reLaunch({
url: '/pages/login/login'
})
......
This source diff could not be displayed because it is too large. You can view the blob instead.
{
"component": true,
"usingComponents": {
"u-icon": "/node-modules/uview-ui/components/u-icon/u-icon"
}
},
"component": true
}
\ No newline at end of file
......@@ -598,10 +598,10 @@ var _default = {
//添加购物车
add_shopping_cart: function add_shopping_cart() {
var _this6 = this;
uni.showToast({
title: "请先登录!"
});
if (!uni.getStorageSync('token')) {
uni.showToast({
title: "请先登录!"
});
uni.reLaunch({
url: '/pages/login/login'
});
......
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