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
808e8267
Commit
808e8267
authored
Sep 05, 2022
by
songbingqi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
完成分享
parent
bf579af6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
0 deletions
+28
-0
pages/menu/menu.vue
+14
-0
pages/mine/mine.vue
+14
-0
No files found.
pages/menu/menu.vue
View file @
808e8267
...
@@ -188,6 +188,10 @@ export default {
...
@@ -188,6 +188,10 @@ export default {
onHide
()
{
onHide
()
{
this
.
$refs
.
shopbar
.
showShopCar
=
false
;
this
.
$refs
.
shopbar
.
showShopCar
=
false
;
},
},
// 微信小程序右上角分享
onShareAppMessage
()
{
return
this
.
getShareData
();
},
async
onShow
()
{
async
onShow
()
{
uni
.
setStorageSync
(
"selectFlag"
,
false
)
uni
.
setStorageSync
(
"selectFlag"
,
false
)
const
updataLoactionFlag
=
uni
.
getStorageSync
(
"updataLoadtion"
)
const
updataLoactionFlag
=
uni
.
getStorageSync
(
"updataLoadtion"
)
...
@@ -198,6 +202,16 @@ export default {
...
@@ -198,6 +202,16 @@ export default {
this
.
getHomeOrder
()
this
.
getHomeOrder
()
},
},
methods
:
{
methods
:
{
getShareData
(
type
)
{
let
title
=
"HL快乐咖啡,高品高效高性价比"
;
let
path
=
`/pages/menu/menu`
;
let
imageUrl
=
"../../static/imgs/wodezhanweitu.png"
;
return
{
title
,
imageUrl
,
path
,
}
},
getShopMenus
(
params
)
{
getShopMenus
(
params
)
{
$EventBus
.
$off
(
'getMenuList'
);
$EventBus
.
$off
(
'getMenuList'
);
$EventBus
.
$on
(
'getMenuList'
,
(
data
)
=>
{
$EventBus
.
$on
(
'getMenuList'
,
(
data
)
=>
{
...
...
pages/mine/mine.vue
View file @
808e8267
...
@@ -114,6 +114,10 @@ export default {
...
@@ -114,6 +114,10 @@ export default {
this
.
tickNum
=
data
?.
data
||
0
this
.
tickNum
=
data
?.
data
||
0
}
}
},
},
// 微信小程序右上角分享
onShareAppMessage
()
{
return
this
.
getShareData
();
},
data
()
{
data
()
{
return
{
return
{
loginInfo
:
""
,
loginInfo
:
""
,
...
@@ -130,6 +134,16 @@ export default {
...
@@ -130,6 +134,16 @@ export default {
},
},
},
},
methods
:
{
methods
:
{
getShareData
(
type
)
{
let
title
=
"HL快乐咖啡,高品高效高性价比"
;
let
path
=
`/pages/menu/menu`
;
let
imageUrl
=
"../../static/imgs/wodezhanweitu.png"
;
return
{
title
,
imageUrl
,
path
,
}
},
// 手机号授权登录
// 手机号授权登录
getPhoneNumber
(
e
)
{
getPhoneNumber
(
e
)
{
if
(
e
.
detail
.
errMsg
==
'getPhoneNumber:ok'
)
{
if
(
e
.
detail
.
errMsg
==
'getPhoneNumber:ok'
)
{
...
...
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