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
0ae8e2fe
Commit
0ae8e2fe
authored
Jul 04, 2023
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
837199b6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
6 deletions
+13
-6
src/pages/toMini/index.vue
+13
-6
No files found.
src/pages/toMini/index.vue
View file @
0ae8e2fe
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<div
v-else
class=
"toMini"
@
click=
"toMini"
>
点击跳转到其他小程序
</div>
<div
v-else
class=
"toMini"
@
click=
"toMini"
>
点击跳转到其他小程序
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
export
default
{
export
default
{
data
()
{
data
()
{
...
@@ -12,6 +12,7 @@ export default {
...
@@ -12,6 +12,7 @@ export default {
loadFlag
:
0
,
loadFlag
:
0
,
options
:
""
,
options
:
""
,
pageType
:
0
,
// 0默认 1打开地图
pageType
:
0
,
// 0默认 1打开地图
isOpenLocation
:
false
,
}
}
},
},
onLoad
(
options
)
{
onLoad
(
options
)
{
...
@@ -19,6 +20,7 @@ export default {
...
@@ -19,6 +20,7 @@ export default {
console
.
log
(
"onLoad"
,
this
.
loadFlag
,
this
.
options
)
console
.
log
(
"onLoad"
,
this
.
loadFlag
,
this
.
options
)
if
(
this
.
options
&&
this
.
options
.
type
==
1
)
{
if
(
this
.
options
&&
this
.
options
.
type
==
1
)
{
this
.
pageType
=
1
;
this
.
pageType
=
1
;
this
.
isOpenLocation
=
false
this
.
openLocation
();
this
.
openLocation
();
}
else
{
}
else
{
this
.
toMini
();
this
.
toMini
();
...
@@ -28,19 +30,23 @@ export default {
...
@@ -28,19 +30,23 @@ export default {
this
.
loadFlag
++
;
this
.
loadFlag
++
;
console
.
log
(
"onShow"
,
this
.
loadFlag
)
console
.
log
(
"onShow"
,
this
.
loadFlag
)
this
.
toMini
();
this
.
toMini
();
if
(
this
.
pageType
==
1
)
{
console
.
log
(
'this.isOpenLocation'
,
this
.
isOpenLocation
)
if
(
this
.
isOpenLocation
)
{
wx
.
navigateBack
();
wx
.
navigateBack
();
}
}
},
},
methods
:
{
methods
:
{
openLocation
()
{
openLocation
()
{
const
_this
=
this
wx
.
openLocation
({
wx
.
openLocation
({
latitude
:
this
.
options
.
latitude
-
0
,
latitude
:
this
.
options
.
latitude
-
0
,
longitude
:
this
.
options
.
longitude
-
0
,
longitude
:
this
.
options
.
longitude
-
0
,
address
:
this
.
options
.
address
,
address
:
this
.
options
.
address
,
scale
:
18
,
scale
:
18
,
success
(
res
)
{
success
(
res
)
{
console
.
log
(
"success"
,
res
)
_this
.
$nextTick
(()
=>
{
_this
.
isOpenLocation
=
true
})
},
},
fail
(
res
)
{
fail
(
res
)
{
console
.
log
(
"fail"
,
res
)
console
.
log
(
"fail"
,
res
)
...
@@ -76,7 +82,7 @@ export default {
...
@@ -76,7 +82,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.text
{
.text
{
text-align
:
center
;
text-align
:
center
;
...
@@ -96,4 +102,5 @@ export default {
...
@@ -96,4 +102,5 @@ export default {
background
:
#41c867
;
background
:
#41c867
;
border-radius
:
40px
;
border-radius
:
40px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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