diff --git a/App.vue b/App.vue index aa4518b..4b618f1 100644 --- a/App.vue +++ b/App.vue @@ -29,6 +29,12 @@ }, onShow(){ // 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() { diff --git a/common/api/shop.js b/common/api/shop.js index a64ba45..fbaaa70 100644 --- a/common/api/shop.js +++ b/common/api/shop.js @@ -370,6 +370,11 @@ export default { 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}) + } } }