添加了请求接口

This commit is contained in:
luyuan 2020-09-16 18:35:21 +08:00
parent e96fcf28a9
commit 6e40ae0daa
Signed by: theluyuan
GPG Key ID: A7972FD973317FF3
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)