Merge pull request '添加了请求接口' (#373) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/373
This commit is contained in:
luyuan 2020-09-16 19:06:30 +08:00
commit a60f61c300
2 changed files with 9 additions and 0 deletions

View File

@ -374,6 +374,11 @@ export default {
recordAppOpenTimes({appversion,device_type}){
// appversion=1.0.0&device_type=android/ios
return vm.$u.post("Member/recordAppOpenTimes",{appversion,device_type})
},
//统计直播间浏览次数
// https://mall.dmygkeji.com/api/Live/countLiveBrowse?live_id=1
countLiveBrowse({live_id}){
return vm.$u.post("Live/countLiveBrowse",{live_id})
}
}
}

View File

@ -73,6 +73,9 @@ export default {
},
methods:{
zhibo(){
this.$u.api.countLiveBrowse({live_id:this.zid}).then((res)=>{
console.log(JSON.stringify(res),77)
})
this.$u.route({
url:"/pages/zhibo/index",
params:{
@ -81,6 +84,7 @@ export default {
rid:this.rid
}
})
},
articleAddShield() {
console.log(this.item)