Merge pull request '添加了进入提醒' (#364) from xbx into master

Reviewed-on: http://git.luyuan.tk/luyuan/deming/pulls/364
This commit is contained in:
luyuan 2020-09-11 17:01:02 +08:00
commit f076c03c99
2 changed files with 11 additions and 0 deletions

View File

@ -35,6 +35,12 @@
}, },
onShow(){ onShow(){
// this.getVersion(); // this.getVersion();
// console.log(this.$u.os())
let device_type = this.$u.os()
console.log({appversion:this.$app_version,device_type})
this.$u.api.recordAppOpenTimes({appversion:this.$app_version,device_type}).then((res)=>{
console.log(JSON.stringify(res))
});
}, },
onLoad() { onLoad() {

View File

@ -370,6 +370,11 @@ export default {
advClick({ adv_id }) { advClick({ adv_id }) {
return vm.$u.post('adv/advClick',{ adv_id }) return vm.$u.post('adv/advClick',{ adv_id })
}, },
//统计登录
recordAppOpenTimes({appversion,device_type}){
// appversion=1.0.0&device_type=android/ios
return vm.$u.post("Member/recordAppOpenTimes",{appversion,device_type})
}
} }
} }