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
834a10a8
Commit
834a10a8
authored
Feb 20, 2023
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复部分bug
parent
abc500e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
pages/menu/menu.vue
+5
-5
No files found.
pages/menu/menu.vue
View file @
834a10a8
...
...
@@ -158,7 +158,7 @@ export default {
console
.
log
(
this
.
shopInfo
);
const
{
shopInfo
}
=
this
;
const
{
startTime
,
endTime
,
state
}
=
shopInfo
;
if
(
!
startTime
||
!
endTime
||
!
state
)
return
true
;
if
(
!
startTime
||
!
endTime
||
(
!
state
&&
state
!==
0
)
)
return
true
;
function
getNowFormatDate
()
{
let
date
=
new
Date
(),
seperator1
=
"/"
,
//格式分隔符
...
...
@@ -178,7 +178,7 @@ export default {
if
(
startTimeNew
<
new
Date
().
valueOf
()
&&
new
Date
().
valueOf
()
<
endTimeNew
&&
state
===
1
(
state
===
1
||
state
===
0
)
)
{
uni
.
setStorageSync
(
"shopState"
,
true
);
return
true
;
...
...
@@ -238,9 +238,9 @@ export default {
// 已经授权位置不获取默认店铺
if
(
res
.
authSetting
[
"scope.userLocation"
])
{
User
.
getLocation
((
state
,
params
)
=>
{
if
(
state
!=
1
)
{
return
;
}
//
if (state != 1) {
//
return;
//
}
this
.
getShopMenus
(
params
);
});
}
else
{
...
...
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