Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
a6def72f
Commit
a6def72f
authored
Oct 14, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
557bbd3f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
6 deletions
+11
-6
src/components/common/StoreAddr.vue
+3
-2
src/pages/home/index.vue
+8
-4
No files found.
src/components/common/StoreAddr.vue
View file @
a6def72f
...
...
@@ -74,8 +74,9 @@ export default {
type
:
"gcj02"
,
// gcj02 wgs84
isHighAccuracy
:
true
,
success
:
res
=>
{
res
.
latitude
=
res
.
latitude
.
toFixed
(
3
)
res
.
longitude
=
res
.
longitude
.
toFixed
(
3
)
console
.
log
(
res
,
'getLocationHandle-res'
)
res
.
latitude
=
Number
(
res
.
latitude
)
?
Number
(
res
.
latitude
).
toFixed
(
3
)
:
""
;
res
.
longitude
=
Number
(
res
.
longitude
)
?
Number
(
res
.
longitude
).
toFixed
(
3
)
:
""
;
// latitude longitude speed accuracy
log
.
info
(
"~~~~~~~~~1~~~~~~~"
,
res
);
console
.
log
(
`%c获取定位
${
JSON
.
stringify
(
res
)}
`
,
'color:yellow;font-size:20px;'
);
...
...
src/pages/home/index.vue
View file @
a6def72f
...
...
@@ -525,10 +525,11 @@ export default {
onShow
()
{
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onShow'
)
console
.
log
(
this
.
reloadPage
,
'-reloadPage2'
)
if
(
this
.
reloadPage
)
{
this
.
refreshInit
();
this
.
reloadPage
=
false
;
}
// if (this.reloadPage) {
// console.log("refreshInit--------1")
// this.refreshInit();
// this.reloadPage = false;
// }
// 设置显示条件
log
.
info
(
'--------on--------------show'
)
//分销隔流
...
...
@@ -565,6 +566,7 @@ export default {
console
.
log
(
'eloadEnterShopRule'
,
this
.
h5Params
)
// 进店规则--首次进店调用
if
(
this
.
h5Params
&&
this
.
h5Params
.
offlineShopCode
)
{
console
.
log
(
"refreshInit--------2"
)
this
.
refreshInit
();
wx
.
removeStorageSync
(
"firstView"
);
return
;
...
...
@@ -605,6 +607,7 @@ export default {
offlineShopName
:
storeDetail
.
data
.
data
.
shopName
,
});
this
.
$refs
.
StoreAddr
.
reloadName
();
console
.
log
(
"refreshInit--------3"
)
this
.
refreshInit
();
}
console
.
log
(
storeDetail
,
'-------storeDetail'
);
...
...
@@ -1216,6 +1219,7 @@ export default {
},
onPullDownRefresh
()
{
console
.
log
(
"onPullDownRefresh"
);
console
.
log
(
"refreshInit--------4"
)
this
.
refreshInit
();
}
};
...
...
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