Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gxpt_wechat
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
pseer
gxpt_wechat
Commits
383821af
Commit
383821af
authored
Apr 03, 2024
by
zhangzhen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
细节优化
parent
12b47549
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
0 deletions
+9
-0
App.vue
App.vue
+4
-0
index.vue
pages/index/index.vue
+5
-0
No files found.
App.vue
View file @
383821af
...
@@ -30,6 +30,10 @@
...
@@ -30,6 +30,10 @@
uni
.
removeStorageSync
(
"storeId"
)
uni
.
removeStorageSync
(
"storeId"
)
}
}
if
(
uni
.
getStorageSync
(
"storePopShow"
)){
uni
.
removeStorageSync
(
"storePopShow"
)
}
uni
.
getSystemInfo
({
uni
.
getSystemInfo
({
success
:
(
e
)
=>
{
success
:
(
e
)
=>
{
Vue
.
prototype
.
screenHeight
=
e
.
screenHeight
;
Vue
.
prototype
.
screenHeight
=
e
.
screenHeight
;
...
...
pages/index/index.vue
View file @
383821af
...
@@ -391,6 +391,9 @@
...
@@ -391,6 +391,9 @@
uni
.
setStorageSync
(
"longitude"
,
res
.
longitude
)
uni
.
setStorageSync
(
"longitude"
,
res
.
longitude
)
setTimeout
(()
=>
{
setTimeout
(()
=>
{
uni
.
removeStorageSync
(
'storeId'
);
let
aaa
=
uni
.
getStorageSync
(
'storeId'
)?
true
:
false
;
console
.
log
(
aaa
,
"是否删除数据"
)
this
.
onGetListStore
()
this
.
onGetListStore
()
},
10
)
},
10
)
...
@@ -411,9 +414,11 @@
...
@@ -411,9 +414,11 @@
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
if
(
res
.
data
.
code
==
200
&&
res
.
data
.
data
.
length
)
{
let
obj
=
{}
let
obj
=
{}
if
(
uni
.
getStorageSync
(
"storeId"
))
{
if
(
uni
.
getStorageSync
(
"storeId"
))
{
console
.
log
(
1
)
obj
=
res
.
data
.
data
.
find
(
item
=>
item
.
id
===
uni
.
getStorageSync
(
"storeId"
));
obj
=
res
.
data
.
data
.
find
(
item
=>
item
.
id
===
uni
.
getStorageSync
(
"storeId"
));
// uni.removeStorageSync('storeId')
// uni.removeStorageSync('storeId')
}
else
{
}
else
{
console
.
log
(
2
)
obj
=
res
.
data
.
data
[
0
];
obj
=
res
.
data
.
data
[
0
];
uni
.
setStorageSync
(
"storeId"
,
obj
.
id
);
uni
.
setStorageSync
(
"storeId"
,
obj
.
id
);
}
}
...
...
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