Commit 3e1ae576 by 宋冰琦

修复部分bug

parent 808e8267
const ENV_TYPE = {
baseUrl:'https://hooloo-dev-api.gdatac.com'
baseUrl:'https://saas.ihaoin.com'
}
module.exports = ENV_TYPE
\ No newline at end of file
......@@ -174,7 +174,7 @@ export default {
this.getShopMenus(params);
});
} else {
this.getShopMenus();
// this.getShopMenus();
this.authLocation();
}
}
......@@ -300,6 +300,7 @@ export default {
});
},
fail: (err) => { //1.2 拒绝授权
this.getShopMenus();
wx.exitMiniProgram({ success: (res) => { } })
// console.log("获取位置失败")
this.showToast({ "title" : "获取位置失败,请打开位置授权", icon : 'error'})
......
......@@ -50,7 +50,7 @@ export default {
shopCarInfo.forEach((item) => (size += item.num));
if(!unCheckCount) {
let countOfOrder = uni.getStorageSync('countOfOrder');
let countOfOrder = uni.getStorageSync('countOfOrder') || 9;
if (size >= countOfOrder) {
context.showToast({
title: '最多可一次购买'+countOfOrder+'杯',
......@@ -82,7 +82,7 @@ export default {
let goodsList = [];
let size = 0;
goodsList.forEach((item) => (size += item.num));
let countOfOrder = uni.getStorageSync('countOfOrder');
let countOfOrder = uni.getStorageSync('countOfOrder');
if (size >= countOfOrder) {
context.showToast({
title: '最多可一次购买'+countOfOrder+'杯',
......
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