Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mallapp
Project
Project
Details
Activity
Releases
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
viitto
mallapp
Commits
b9e94bb3
Commit
b9e94bb3
authored
Jul 28, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
375fa98c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
6 deletions
+28
-6
goods.vue
pages/goods/goods.vue
+15
-0
index.vue
pages/index/index.vue
+13
-6
No files found.
pages/goods/goods.vue
View file @
b9e94bb3
...
...
@@ -367,6 +367,21 @@ export default {
this
.
secondary
=
this
.
$uiConfig
.
secondary
;
this
.
setting
=
uni
.
getStorageSync
(
"basedata"
).
mall
.
setting
;
wx
.
showShareMenu
({
withShareTicket
:
true
,
menus
:[
'shareAppMessage'
,
'shareTimeline'
]
})
},
onShareTimeline
(){
let
uid
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
;
let
title
=
this
.
g
.
app_share_title
!=
null
&&
this
.
g
.
app_share_title
!=
""
?
this
.
g
.
app_share_title
:
this
.
g
.
name
;
let
imageUrl
=
this
.
g
.
app_share_pic
!=
null
&&
this
.
g
.
app_share_pic
!=
""
?
this
.
g
.
app_share_pic
:
this
.
g
.
pic_url
[
0
].
pic_url
;
let
id
=
this
.
id
return
{
title
:
title
,
query
:
"id="
+
this
.
id
+
"&user_id="
+
uid
,
imageUrl
:
imageUrl
}
},
onShareAppMessage
(
res
)
{
let
u
=
uni
.
getStorageSync
(
"mall_UserInfo"
);
...
...
pages/index/index.vue
View file @
b9e94bb3
...
...
@@ -137,11 +137,6 @@ export default {
quicknav
},
onLoad
(
options
)
{
// let options= {//测试
// scene:'share',
// user_id:19992,
// params:{"id":106118,"path":"/pages/goods/goods","user_id":19992}
// }
console
.
log
(
options
,
'option'
);
let
c
=
this
.
$uiConfig
.
is_bang
?
78
:
50
;
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
(
c
);
...
...
@@ -158,7 +153,10 @@ export default {
this
.
getjump
(
options
.
scene
)
}
wx
.
showShareMenu
({
withShareTicket
:
true
,
menus
:[
'shareAppMessage'
,
'shareTimeline'
]
})
this
.
init
();
...
...
@@ -172,6 +170,15 @@ export default {
console
.
log
(
uni
.
getStorageSync
(
"basedata"
))
uni
.
showNavigationBarLoading
();
},
onShareTimeline
(){
let
uid
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
;
console
.
log
(
uid
)
return
{
title
:
''
,
query
:
"user_id="
+
uid
,
imageUrl
:
''
}
},
onShareAppMessage
(
res
)
{
let
uid
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
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