|
@@ -30,8 +30,9 @@ var cmSysVitaMixins = function () {
|
|
|
},
|
|
|
userRecordStatistics(params) {
|
|
|
var _this = this;
|
|
|
- UserApi.userRecordStatistics(params,function (response) {
|
|
|
+ PublicApi.userRecordStatistics(params,function (response) {
|
|
|
if(response.code === 0){
|
|
|
+ alert('111111111111111')
|
|
|
console.log('<-------上送用户行为记录成功------>')
|
|
|
}else{
|
|
|
console.log('<-------上送用户行为记录异常------>')
|
|
@@ -39,10 +40,12 @@ var cmSysVitaMixins = function () {
|
|
|
})
|
|
|
},
|
|
|
beforeunloadHandler(e) {
|
|
|
+ debugger
|
|
|
+ this.userRecordStatistics(this.cmSysParams); // 上送后台接口,将浏览时长等信息传到后台,离开当前路由后调用
|
|
|
+
|
|
|
console.log('关闭窗口之后',this.cmSysParams)
|
|
|
clearInterval(this.clearTimeSet); // 离开页面后清除定时器
|
|
|
- this.userRecordStatistics(this.cmSysParams); // 上送后台接口,将浏览时长等信息传到后台,离开当前路由后调用
|
|
|
- debugger
|
|
|
+
|
|
|
}
|
|
|
},
|
|
|
mounted() {
|