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
2c5c0ecf
Commit
2c5c0ecf
authored
Mar 12, 2020
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调通接口
parent
790ab01f
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
1 deletions
+14
-1
src/api/live.js
+9
-0
src/pages/lived/index.vue
+5
-1
No files found.
src/api/live.js
0 → 100644
View file @
2c5c0ecf
import
{
requestPOST
,
requestGET
,
requestPOST1
}
from
"@/utils/request.js"
;
export
default
{
// 查询直播详情
getLiveInfo
(
options
)
{
return
requestPOST1
(
`
${
process
.
env
.
OLSHOP_URL
}
/liveBroadcastInfo/getLiveBroadcastInfoByIds?liveBroadcastId=
${
options
}
`
);
},
};
\ No newline at end of file
src/pages/lived/index.vue
View file @
2c5c0ecf
...
...
@@ -34,6 +34,7 @@
<
script
type=
"text/ecmascript-6"
>
import
{
DFSImg
}
from
"@/utils/index"
;
import
live
from
"@/api/live"
;
export
default
{
name
:
""
,
data
()
{
...
...
@@ -61,7 +62,10 @@ export default {
methods
:
{
// 初始化数据
init
(){
let
liveBroadcastId
=
this
.
liveId
;
live
.
getLiveInfo
(
liveBroadcastId
).
then
(
res
=>
{
console
.
log
(
res
,
'------66'
)
})
},
statechange
(
res
)
{
console
.
log
(
res
,
"-------19"
);
...
...
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