添加了请求接口 #373

Merged
theluyuan merged 1 commits from xbx into master 2020-09-16 11:06:32 +00:00
2 changed files with 9 additions and 0 deletions

View File

@ -374,6 +374,11 @@ export default {
recordAppOpenTimes({appversion,device_type}){ recordAppOpenTimes({appversion,device_type}){
// appversion=1.0.0&device_type=android/ios // appversion=1.0.0&device_type=android/ios
return vm.$u.post("Member/recordAppOpenTimes",{appversion,device_type}) 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:{ methods:{
zhibo(){ zhibo(){
this.$u.api.countLiveBrowse({live_id:this.zid}).then((res)=>{
console.log(JSON.stringify(res),77)
})
this.$u.route({ this.$u.route({
url:"/pages/zhibo/index", url:"/pages/zhibo/index",
params:{ params:{
@ -81,6 +84,7 @@ export default {
rid:this.rid rid:this.rid
} }
}) })
}, },
articleAddShield() { articleAddShield() {
console.log(this.item) console.log(this.item)