浏览代码

修改整体pv统计位置

guessPrice
suizhijia 5 年前
父节点
当前提交
86bf67de12
共有 2 个文件被更改,包括 11 次插入7 次删除
  1. +11
    -2
      496_dongfengqichen/app.js
  2. +0
    -5
      496_dongfengqichen/pages/index/index.js

+ 11
- 2
496_dongfengqichen/app.js 查看文件

@@ -1,6 +1,13 @@
//app.js
App({
onLaunch: function () {
onLaunch: function (options) {
console.log(options);
if (options.query && options.query.scene) {
var source = decodeURIComponent(options.query.scene).split("=");
this.globalData.sceneSource = source[1];
}else{
this.globalData.sceneSource = options.scene
}
// 展示本地存储能力
var openid = wx.getStorageSync('openid') || "";
if (!openid) {
@@ -8,6 +15,7 @@ App({
this.wxLogin();
} else {
this.globalData.openid = openid;
this.addAppEnter();
this.getBuyState();
}
var entered = wx.getStorageSync('entered');
@@ -91,7 +99,7 @@ App({
entered:false,
authenticationStatus:null,
skipType:null,
sceneSource:'0',
sceneSource:'',
addPageEnterState:{
index:false,
luckyStar:false,
@@ -121,6 +129,7 @@ App({
if (!userInfoData) {
this.getUserInfo();
}
this.addAppEnter();
this.getBuyState();
} else {
wx.showToast({

+ 0
- 5
496_dongfengqichen/pages/index/index.js 查看文件

@@ -63,11 +63,6 @@ Page({
onLoad: function (options) {
if (app.globalData.isFirstLogin) {
console.log("第一次进入");
if (options.scene) {
var source = decodeURIComponent(options.scene).split("=");
app.globalData.sceneSource = source[1];
}
app.addAppEnter();
wx.reportAnalytics('event_source_launch', {
source: options.source ? options.source :0
});

正在加载...
取消
保存