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
2469e53c
Commit
2469e53c
authored
Aug 04, 2020
by
黄媛媛
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
直播分享带参数
parent
1bf1bedf
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
19 additions
and
2 deletions
+19
-2
pages.json
pages.json
+1
-1
goods.vue
pages/goods/goods.vue
+8
-0
index.vue
pages/index/index.vue
+7
-0
index.vue
pages/live/index.vue
+3
-1
No files found.
pages.json
View file @
2469e53c
...
...
@@ -80,7 +80,7 @@
"root"
:
"pages/live"
,
"plugins"
:
{
"live-player-plugin"
:
{
"version"
:
"1.1.
0
"
,
"version"
:
"1.1.
4
"
,
"provider"
:
"wx2b03c6e691cd7370"
}
},
...
...
pages/goods/goods.vue
View file @
2469e53c
...
...
@@ -343,11 +343,19 @@ export default {
onLoad
(
option
)
{
this
.
opTionObj
=
option
;
console
.
log
(
option
,
'option'
);
if
(
option
&&
option
.
id
)
{
this
.
id
=
option
.
id
?
option
.
id
:
29
;
//40887 59512 46942
}
else
{
this
.
id
=
option
.
GoodsId
?
option
.
GoodsId
:
29
;
//40887 59512 46942
}
if
(
option
&&
option
.
custom_params
){
let
custom_params
=
JSON
.
parse
(
decodeURIComponent
(
option
.
custom_params
))
console
.
log
(
custom_params
)
if
(
custom_params
.
user_id
){
uni
.
setStorageSync
(
"pid"
,
{
pid
:
custom_params
.
user_id
});
}
}
if
(
option
&&
option
.
user_id
)
{
uni
.
setStorageSync
(
"pid"
,
{
pid
:
option
.
user_id
});
}
...
...
pages/index/index.vue
View file @
2469e53c
...
...
@@ -145,6 +145,13 @@ export default {
this
.
showtabs
=
false
this
.
contentHeight
=
this
.
$utils
.
calcContentHeight
();
}
if
(
options
&&
options
.
custom_params
){
let
custom_params
=
JSON
.
parse
(
decodeURIComponent
(
options
.
custom_params
))
console
.
log
(
custom_params
)
if
(
custom_params
.
user_id
){
uni
.
setStorageSync
(
"pid"
,
{
pid
:
custom_params
.
user_id
});
}
}
if
(
options
&&
options
.
user_id
){
uni
.
setStorageSync
(
"pid"
,
{
pid
:
options
.
user_id
});
}
...
...
pages/live/index.vue
View file @
2469e53c
...
...
@@ -138,8 +138,10 @@ export default {
});
},
clickHandler
(
cx
){
let
uid
=
uni
.
getStorageSync
(
'mall_UserInfo'
)
?
uni
.
getStorageSync
(
'mall_UserInfo'
).
UserId
:
0
;
let
customParams
=
encodeURIComponent
(
JSON
.
stringify
({
user_id
:
uid
}))
wx
.
navigateTo
({
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
cx
.
roomid
}
`
url
:
`plugin-private://wx2b03c6e691cd7370/pages/live-player-plugin?room_id=
${
cx
.
roomid
}
&custom_params=
${
customParams
}
`
})
},
init
()
{
...
...
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