Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
U
user
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hooloo
mp
user
Commits
3e1ae576
Commit
3e1ae576
authored
Sep 06, 2022
by
宋冰琦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
808e8267
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
4 deletions
+6
-4
env/dev.js
+2
-1
pages/menu/menu.vue
+2
-1
utils/utils.js
+2
-2
No files found.
env/dev.js
View file @
3e1ae576
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
pages/menu/menu.vue
View file @
3e1ae576
...
...
@@ -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'
})
...
...
utils/utils.js
View file @
3e1ae576
...
...
@@ -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
+
'杯'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment