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
ae71c38c
Commit
ae71c38c
authored
Mar 15, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
8aedd527
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
3 deletions
+6
-3
src/components/common/StoreAddr.vue
+2
-0
src/pages/home/index.vue
+1
-0
static/nativeComponents/Notice/index.js
+3
-3
No files found.
src/components/common/StoreAddr.vue
View file @
ae71c38c
...
@@ -66,6 +66,8 @@ export default {
...
@@ -66,6 +66,8 @@ export default {
type
:
"gcj02"
,
// gcj02 wgs84
type
:
"gcj02"
,
// gcj02 wgs84
isHighAccuracy
:
true
,
isHighAccuracy
:
true
,
success
:
res
=>
{
success
:
res
=>
{
res
.
latitude
=
res
.
latitude
.
toFixed
(
3
)
res
.
longitude
=
res
.
longitude
.
toFixed
(
3
)
// latitude longitude speed accuracy
// latitude longitude speed accuracy
log
.
info
(
"~~~~~~~~~1~~~~~~~"
,
res
);
log
.
info
(
"~~~~~~~~~1~~~~~~~"
,
res
);
console
.
log
(
"~~~~~~~~~1~~~~~~~"
,
res
);
console
.
log
(
"~~~~~~~~~1~~~~~~~"
,
res
);
...
...
src/pages/home/index.vue
View file @
ae71c38c
...
@@ -479,6 +479,7 @@ export default {
...
@@ -479,6 +479,7 @@ export default {
})
})
},
},
onShow
()
{
onShow
()
{
this
.
pageLoading
=
false
;
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onShow'
)
console
.
log
(
new
Date
().
getTime
(),
'load-----home-onShow'
)
// 设置显示条件
// 设置显示条件
console
.
log
(
new
Date
().
getTime
(),
'--------on--------------show'
)
console
.
log
(
new
Date
().
getTime
(),
'--------on--------------show'
)
...
...
static/nativeComponents/Notice/index.js
View file @
ae71c38c
...
@@ -60,12 +60,12 @@ Component({
...
@@ -60,12 +60,12 @@ Component({
if
(
this
.
data
.
datas
.
componentData
.
isChange
)
{
if
(
this
.
data
.
datas
.
componentData
.
isChange
)
{
if
(
this
.
data
.
datas
.
componentData
.
imageWidth
>
this
.
data
.
datas
.
componentData
.
noticeWidth
)
{
if
(
this
.
data
.
datas
.
componentData
.
imageWidth
>
this
.
data
.
datas
.
componentData
.
noticeWidth
)
{
this
.
setData
({
this
.
setData
({
CommonHeight
:
this
.
data
.
datas
.
componentData
.
imageWidth
<
53
?
'53
px'
:
this
.
data
.
datas
.
componentData
.
imageWidth
+
'px'
CommonHeight
:
this
.
data
.
datas
.
componentData
.
imageWidth
<
40
?
'40
px'
:
this
.
data
.
datas
.
componentData
.
imageWidth
+
'px'
})
})
return
return
}
else
if
(
this
.
data
.
datas
.
componentData
.
noticeWidth
>=
this
.
data
.
datas
.
componentData
.
imageWidth
)
{
}
else
if
(
this
.
data
.
datas
.
componentData
.
noticeWidth
>=
this
.
data
.
datas
.
componentData
.
imageWidth
)
{
this
.
setData
({
this
.
setData
({
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
53
?
'53
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
40
?
'40
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
})
})
return
return
}
}
...
@@ -75,7 +75,7 @@ Component({
...
@@ -75,7 +75,7 @@ Component({
return
return
}
else
{
}
else
{
this
.
setData
({
this
.
setData
({
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
53
?
'53
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
CommonHeight
:
this
.
data
.
datas
.
componentData
.
noticeWidth
<
40
?
'40
px'
:
this
.
data
.
datas
.
componentData
.
noticeWidth
+
'px'
})
})
return
return
}
}
...
...
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