...
|
...
|
@@ -15,7 +15,8 @@ import { |
|
|
YB_LAUNCH_APP,
|
|
|
YB_ENTER_FOREGROUND,
|
|
|
YB_ENTER_BACKGROUND,
|
|
|
YB_AWAKE_MP
|
|
|
YB_AWAKE_MP,
|
|
|
YB_MY_LOGIN
|
|
|
} from './libs/yas';
|
|
|
import router from './pages/zeroSell/router/router';
|
|
|
|
...
|
...
|
@@ -100,6 +101,9 @@ App({ |
|
|
}
|
|
|
} else {
|
|
|
event.once('user-login-success', (userInfo) => {
|
|
|
// TODO
|
|
|
yasReport(YB_MY_LOGIN);
|
|
|
console.log('登录注册上报');
|
|
|
if (loginSuccess) {
|
|
|
loginSuccess(userInfo);
|
|
|
}
|
...
|
...
|
@@ -116,7 +120,7 @@ App({ |
|
|
let that = this
|
|
|
let params = {};
|
|
|
yasReport(YB_ENTER_FOREGROUND, params, that)
|
|
|
if (that.globalData.hasReportAwakeAction==='false'){
|
|
|
if (!that.globalData.hasReportAwakeAction){
|
|
|
let pathParam = ""
|
|
|
if(options && options.query) {
|
|
|
for (var Key in options.query) {
|
...
|
...
|
@@ -138,7 +142,7 @@ App({ |
|
|
PAGE_PATH: path
|
|
|
};
|
|
|
yasReport(YB_AWAKE_MP, params, this);
|
|
|
that.globalData.hasReportAwakeAction = 'true'
|
|
|
that.globalData.hasReportAwakeAction = true;
|
|
|
}
|
|
|
|
|
|
if (options && options.scene){
|
...
|
...
|
@@ -308,7 +312,7 @@ App({ |
|
|
udid:'',
|
|
|
cid:'1',
|
|
|
mobileRegisterState:'',
|
|
|
hasReportAwakeAction: 'false',
|
|
|
hasReportAwakeAction: false,
|
|
|
defraudurl:'https://activity.yoho.cn/feature/45.html?title=防诈骗提醒',
|
|
|
miniapp_type: MINI_APP_TYPE,
|
|
|
union_type:'',//渠道号,大数据上传用
|
...
|
...
|
|