Commit 2c5c0ecf by 李嘉林

调通接口

parent 790ab01f
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
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment