From d5f905544564a761e56e5485dfa6b66b12e63e82 Mon Sep 17 00:00:00 2001 From: luyuan <1162963624@qq.com> Date: Fri, 11 Sep 2020 17:00:13 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=BA=86=E8=BF=9B=E5=85=A5?= =?UTF-8?q?=E6=8F=90=E9=86=92?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- App.vue | 6 ++++++ common/api/shop.js | 5 +++++ 2 files changed, 11 insertions(+) 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}) + } } }