...
|
...
|
@@ -34,6 +34,9 @@ Page({ |
|
|
yas = new Yas(app);
|
|
|
},
|
|
|
onShow: function() {
|
|
|
yas.pageOpenReport();
|
|
|
yas.report('YB_MAIN_TAB_C', {TAB_ID: 1});
|
|
|
|
|
|
const shopId = app.getShopId();
|
|
|
|
|
|
wx.setNavigationBarTitle({
|
...
|
...
|
@@ -81,13 +84,31 @@ Page({ |
|
|
},
|
|
|
|
|
|
toSearch() {
|
|
|
yas.report('YB_SEARCH_C', {SEARCH_POS: 1});
|
|
|
router.go('productSearch');
|
|
|
},
|
|
|
|
|
|
resourceClickReport: function(e) {
|
|
|
decorFloorReport: function(e) {
|
|
|
yas.report('YB_MAIN_EVENT', e.detail);
|
|
|
},
|
|
|
|
|
|
// 商品点击
|
|
|
productReport: function(params) {
|
|
|
const gender = this.data.gender;
|
|
|
|
|
|
const repParams = {
|
|
|
F_ID: '20180718',
|
|
|
F_NAME: 'shopGoods',
|
|
|
F_URL: `/pages/goodsDetail/goodsDetail?fromPage=home&productSkn=${params.detail.productSkn}`,
|
|
|
F_INDEX: this.data.decorFloors.length,
|
|
|
I_INDEX: params.detail.idx + '',
|
|
|
TAB_ID: this.data.order,
|
|
|
GENDER: gender ? (gender === '1,3' ? '1' : '2') : '0' // eslint-disable-line
|
|
|
};
|
|
|
|
|
|
yas.report('YB_MAIN_EVENT', repParams);
|
|
|
},
|
|
|
|
|
|
recordHeight: function() {
|
|
|
const query = wx.createSelectorQuery();
|
|
|
|
...
|
...
|
|