Compare commits
No commits in common. "a1d9339948972a0093df1859bdb9c71795a5e86f" and "2f62fde4f6e268d9da04209adfa4c3a8ce45052d" have entirely different histories.
a1d9339948
...
2f62fde4f6
@ -157,11 +157,6 @@ const install = (Vue, vm) => {
|
|||||||
// 达人登录
|
// 达人登录
|
||||||
starLogin({member_mobile,sms_code}) {
|
starLogin({member_mobile,sms_code}) {
|
||||||
return vm.$u.post("/Login/platformExpertPhoneLogin",{member_mobile,sms_code})
|
return vm.$u.post("/Login/platformExpertPhoneLogin",{member_mobile,sms_code})
|
||||||
},
|
|
||||||
//上传直播间人数
|
|
||||||
//https://mall.dmygkeji.com/storeapi/Streaming/changeLiveRealtimeNumber?live_id=1&realtime_number=10
|
|
||||||
changeLiveRealtimeNumber({id,number}){
|
|
||||||
return vm.$u.post("Streaming/changeLiveRealtimeNumber",{live_id:id,realtime_number:number})
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -374,8 +374,7 @@
|
|||||||
danmulist:[],
|
danmulist:[],
|
||||||
zhibo:true,
|
zhibo:true,
|
||||||
jieshu:{},
|
jieshu:{},
|
||||||
renshumax:0,
|
renshumax:0
|
||||||
changeLiveRealtimeNumber:{}
|
|
||||||
},
|
},
|
||||||
onLaunch: function() {
|
onLaunch: function() {
|
||||||
console.log('App Launch');
|
console.log('App Launch');
|
||||||
@ -445,7 +444,6 @@
|
|||||||
return true;
|
return true;
|
||||||
},
|
},
|
||||||
onLoad(a){
|
onLoad(a){
|
||||||
|
|
||||||
console.log(getApp().globalData.im)
|
console.log(getApp().globalData.im)
|
||||||
uni.setKeepScreenOn({
|
uni.setKeepScreenOn({
|
||||||
keepScreenOn: true
|
keepScreenOn: true
|
||||||
@ -456,7 +454,6 @@
|
|||||||
console.log('Bearer' + " " + token)
|
console.log('Bearer' + " " + token)
|
||||||
this.chatroom_id = a.id
|
this.chatroom_id = a.id
|
||||||
this.live_id = a.live_id
|
this.live_id = a.live_id
|
||||||
|
|
||||||
uni.request({
|
uni.request({
|
||||||
url:"https://mall.dmygkeji.com/storeapi/Streaming/liveStreamList",
|
url:"https://mall.dmygkeji.com/storeapi/Streaming/liveStreamList",
|
||||||
method:"POST",
|
method:"POST",
|
||||||
@ -530,24 +527,6 @@
|
|||||||
}
|
}
|
||||||
that.time = shi + ":" + fen + ":" + miao
|
that.time = shi + ":" + fen + ":" + miao
|
||||||
}, 1000);
|
}, 1000);
|
||||||
setInterval(()=>{
|
|
||||||
console.log("定时")
|
|
||||||
uni.request({
|
|
||||||
url:"https://mall.dmygkeji.com/storeapi/Streaming/changeLiveRealtimeNumber",
|
|
||||||
method:"POST",
|
|
||||||
header:{
|
|
||||||
'Authorization' : 'Bearer' + " " + token
|
|
||||||
},
|
|
||||||
data:{
|
|
||||||
live_id:that.live_id,
|
|
||||||
realtime_number: that.room.onlineUsers.users.length - 1 < 0 ? 0 : that.room.onlineUsers.users.length - 1
|
|
||||||
},
|
|
||||||
success(res){
|
|
||||||
console.log(JSON.stringify(res))
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
10 * 1000)
|
|
||||||
// var roomToken = JSON.parse(options.roomToken);
|
// var roomToken = JSON.parse(options.roomToken);
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user