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
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
env/dev.js
+2
-1
pages/menu/menu.vue
+2
-1
utils/utils.js
+1
-1
No files found.
env/dev.js
View file @
3e1ae576
const
ENV_TYPE
=
{
const
ENV_TYPE
=
{
baseUrl
:
'https://
hooloo-dev-api.gdatac
.com'
baseUrl
:
'https://
saas.ihaoin
.com'
}
}
module
.
exports
=
ENV_TYPE
module
.
exports
=
ENV_TYPE
\ No newline at end of file
pages/menu/menu.vue
View file @
3e1ae576
...
@@ -174,7 +174,7 @@ export default {
...
@@ -174,7 +174,7 @@ export default {
this
.
getShopMenus
(
params
);
this
.
getShopMenus
(
params
);
});
});
}
else
{
}
else
{
this
.
getShopMenus
();
//
this.getShopMenus();
this
.
authLocation
();
this
.
authLocation
();
}
}
}
}
...
@@ -300,6 +300,7 @@ export default {
...
@@ -300,6 +300,7 @@ export default {
});
});
},
},
fail
:
(
err
)
=>
{
//1.2 拒绝授权
fail
:
(
err
)
=>
{
//1.2 拒绝授权
this
.
getShopMenus
();
wx
.
exitMiniProgram
({
success
:
(
res
)
=>
{
}
})
wx
.
exitMiniProgram
({
success
:
(
res
)
=>
{
}
})
// console.log("获取位置失败")
// console.log("获取位置失败")
this
.
showToast
({
"title"
:
"获取位置失败,请打开位置授权"
,
icon
:
'error'
})
this
.
showToast
({
"title"
:
"获取位置失败,请打开位置授权"
,
icon
:
'error'
})
...
...
utils/utils.js
View file @
3e1ae576
...
@@ -50,7 +50,7 @@ export default {
...
@@ -50,7 +50,7 @@ export default {
shopCarInfo
.
forEach
((
item
)
=>
(
size
+=
item
.
num
));
shopCarInfo
.
forEach
((
item
)
=>
(
size
+=
item
.
num
));
if
(
!
unCheckCount
)
{
if
(
!
unCheckCount
)
{
let
countOfOrder
=
uni
.
getStorageSync
(
'countOfOrder'
);
let
countOfOrder
=
uni
.
getStorageSync
(
'countOfOrder'
)
||
9
;
if
(
size
>=
countOfOrder
)
{
if
(
size
>=
countOfOrder
)
{
context
.
showToast
({
context
.
showToast
({
title
:
'最多可一次购买'
+
countOfOrder
+
'杯'
,
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