Authored by 李奇

添加上报

import wx from '../../utils/wx';
import event from '../../common/event';
import Yas from '../../common/yas';
import {getVerifyCode, bindMobileAction} from '../../common/login';
let app = getApp();
let yas = new Yas();
let router = global.router;
Page({
... ... @@ -41,6 +43,7 @@ Page({
this.setData({
hasUnionID: !!app.globalData.unionID
});
yas.pageOpenReport();
},
phoneInput: function(e) {
this.setData({
... ...
import wx from '../../utils/wx';
import Yas from '../../common/yas';
import event from '../../common/event';
import accountModel from '../../models/account/index';
const yas = new Yas();
const AREA_CACHE_KEY = 'area_cache_key';
Page({
data: {
list: []
... ... @@ -50,5 +53,6 @@ Page({
},
onLoad: function() {
this.getArea();
yas.pageOpenReport();
}
});
\ No newline at end of file
... ...
// pages/cart.js
Page({
/**
* 页面的初始数据
*/
data: {
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
}
})
\ No newline at end of file
{}
\ No newline at end of file
<!--pages/cart.wxml-->
<web-view src="https://m.yohobuy.com/activity/birthday?app_version=6.2.3&client_secret=441bbdf571681721a6e7c11f2fddea22&client_type=iphone&os_version=11.0.3&physical_channel=1&screen_size=375x667&session_key=ba93d63fbfd5e60e72f908c6168f6fa1&udid=d36ce77c593c9c7fb1ee5020d4e8a36f6ee635af&uid=8688835&v=7&yh_channel=1"></web-view>
\ No newline at end of file
/* pages/cart.wxss */
\ No newline at end of file
... ... @@ -37,6 +37,7 @@ Page({
this.getInfoNum();
this.chooseForYouList();
yas.pageOpenReport();
},
loginSucess: function () {
this.showUserInfo();
... ...
import wx from '../../../../utils/wx';
import config from '../../../../common/config';
import Yas from '../../../../common/yas';
import orderModel from '../../../../models/home/order';
let app = getApp();
const yas = new Yas();
const windowHeights = app.globalData.systemInfo.windowHeight;
const windowWidth = app.globalData.systemInfo.windowWidth;
const pixelRatio = app.globalData.systemInfo.pixelRatio;
... ... @@ -32,6 +33,8 @@ Page({
});
this.expressDetail();
yas.pageOpenReport();
},
copyExpressNo: function () {
wx.setClipboardData({data: this.data.orderID})
... ...
import wx from '../../../utils/wx';
import Yas from '../../../common/yas';
import orderHandle from './order-handle';
import orderModel from '../../../models/home/order';
import formatImage from '../../../utils/formatImage';
//获取应用实例
let app = getApp();
let yas = new Yas();
let {windowHeight} = app.getSystemInfo();
let timer;
Page({
... ... @@ -30,6 +30,8 @@ Page({
url: '/pages/home/home',
});
}
yas.pageOpenReport();
},
startTimer: function () {
let that = this;
... ...
// pages/userCenter/service/service.js
Page({
/**
* 页面的初始数据
*/
data: {
},
phoneCall:function(){
wx.makePhoneCall({
phoneNumber: '400-889-9646',
})
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
},
import Yas from '../../../common/yas';
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
const yas = new Yas();
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
})
\ No newline at end of file
Page({
data: {},
phoneCall: function () {
wx.makePhoneCall({
phoneNumber: '400-889-9646'
});
},
onLoad: function () {
yas.pageOpenReport();
}
});
\ No newline at end of file
... ...
... ... @@ -39,7 +39,9 @@ Page({
resetListScrollPos: res[0].top - (res[1].bottom - res[1].top)
});
})
}, 1000)
}, 1000);
yas.pageOpenReport();
},
onShow: function () {
... ...
... ... @@ -95,6 +95,7 @@ Page({
this.supportService();
this.productIntro();
this.preferList();
yas.pageOpenReport();
},
onShareAppMessage: function (res) {
let params = {
... ...
import wx from '../../../utils/wx';
import Yas from '../../../common/yas';
import listModel from '../../../models/product/list';
import {parse} from '../../../vendors/query-stringify';
let app = getApp();
const yas = new Yas();
Page({
data: {
... ... @@ -28,6 +29,7 @@ Page({
urlParams: options
});
this.productList(options);
yas.pageOpenReport();
},
onReachBottom: function () {
this.productList(this.data.urlParams);
... ...
... ... @@ -54,6 +54,7 @@ Page({
this.shopInfo();
this.shopDecFloor();
this.productList({page: 1, limit: 20, shop_id: shopId});
yas.pageOpenReport();
},
onReady: function () {
wx.createSelectorQuery().select('.shop-info').boundingClientRect(rect => {
... ...
import wx from '../../../utils/wx';
import Yas from '../../../common/yas'
import searchModel from '../../../models/product/search';
let app = getApp();
const yas = new Yas();
Page({
data: {
... ... @@ -35,6 +36,9 @@ Page({
});
}
},
onLoad: function() {
yas.pageOpenReport();
},
bindQueryInput: function(e) {
this.setData({
query: e.detail.value
... ...