Authored by htoooth

Merge branch 'develop' of http://git.yoho.cn/fe/yoho-limited-sell-miniapp into develop

@@ -19,19 +19,22 @@ Page({ @@ -19,19 +19,22 @@ Page({
19 icon: '../../static/images/limit/icon_rmfs_n@3x.png', 19 icon: '../../static/images/limit/icon_rmfs_n@3x.png',
20 iconSelected: '../../static/images/limit/icon_rmfs_p@3x.png', 20 iconSelected: '../../static/images/limit/icon_rmfs_p@3x.png',
21 name: '热门发售', 21 name: '热门发售',
22 - method: 'app.limitProduct.hotLimitProduct' 22 + method: 'app.limitProduct.hotLimitProduct',
  23 + reportName: 'home_hot'
23 }, 24 },
24 { 25 {
25 icon: '../../static/images/limit/icon_jjfs_n@3x.png', 26 icon: '../../static/images/limit/icon_jjfs_n@3x.png',
26 iconSelected: '../../static/images/limit/icon_jjfs_p@3x.png', 27 iconSelected: '../../static/images/limit/icon_jjfs_p@3x.png',
27 name: '即将发售', 28 name: '即将发售',
28 - method: 'app.limitProduct.soonToSaleLimitProduct' 29 + method: 'app.limitProduct.soonToSaleLimitProduct',
  30 + reportName: 'home_soon'
29 }, 31 },
30 { 32 {
31 icon: '../../static/images/limit/icon_yjfs_n@3x.png', 33 icon: '../../static/images/limit/icon_yjfs_n@3x.png',
32 iconSelected: '../../static/images/limit/icon_yjfs_p@3x.png', 34 iconSelected: '../../static/images/limit/icon_yjfs_p@3x.png',
33 name: '已经发售', 35 name: '已经发售',
34 - method: 'app.limitProduct.alreadySaleLimitProduct' 36 + method: 'app.limitProduct.alreadySaleLimitProduct',
  37 + reportName: 'home_already'
35 } 38 }
36 ], 39 ],
37 listData: [ 40 listData: [
@@ -53,13 +56,19 @@ Page({ @@ -53,13 +56,19 @@ Page({
53 // this.getList(0, 1, 20, false); 56 // this.getList(0, 1, 20, false);
54 }, 57 },
55 onShow: function() { 58 onShow: function() {
56 - yas.pageOpenReport(); 59 + let pageName = this.data.tabBarArr[this.data.tabSelected].reportName;
  60 +
  61 + yas.pageOpenReport('', { PAGE_NAME: pageName });
57 }, 62 },
58 onPullDownRefresh: function() { 63 onPullDownRefresh: function() {
59 this.setData({ 64 this.setData({
60 refreshText: '加载中...' 65 refreshText: '加载中...'
61 }); 66 });
62 67
  68 + let pageName = this.data.tabBarArr[this.data.tabSelected].reportName;
  69 +
  70 + yas.pageOpenReport('', { PAGE_NAME: pageName });
  71 +
63 this.getList(this.data.tabSelected, 1, 20, false).then(() => { 72 this.getList(this.data.tabSelected, 1, 20, false).then(() => {
64 wx.stopPullDownRefresh(); 73 wx.stopPullDownRefresh();
65 this.setData({ 74 this.setData({
@@ -83,6 +92,9 @@ Page({ @@ -83,6 +92,9 @@ Page({
83 this.setData({ 92 this.setData({
84 tabSelected: index 93 tabSelected: index
85 }); 94 });
  95 + let pageName = this.data.tabBarArr[this.data.tabSelected].reportName;
  96 +
  97 + yas.pageOpenReport('', { PAGE_NAME: pageName });
86 98
87 // 如果listData没有数据,或者数据为空,则调用接口 99 // 如果listData没有数据,或者数据为空,则调用接口
88 if (!this.data.listData[index].limitProductVoList || this.data.listData[index].limitProductVoList.length === 0) { 100 if (!this.data.listData[index].limitProductVoList || this.data.listData[index].limitProductVoList.length === 0) {
@@ -38,8 +38,7 @@ @@ -38,8 +38,7 @@
38 { 38 {
39 "id": 0, 39 "id": 0,
40 "name": "首页入口", 40 "name": "首页入口",
41 - "pathName": "pages/index/index",  
42 - "query": "from=开发调试" 41 + "pathName": "pages/index/index"
43 }, 42 },
44 { 43 {
45 "id": -1, 44 "id": -1,