proudct-detail.js
2.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
const {
IOS_PRODUCT_DETAIL
} = require('../../scene-types/scene-types');
module.exports = {
[IOS_PRODUCT_DETAIL]: [
{ op: 'YB_PAGE_ENTER', name: '进入商品详情页', equals: { PAGE_ID: 'spxqy' } },
{
op: 'YB_GDS_DT_INFO', name: '请求商品数据成功', validate: (log) => {
return log.param.PRD_SKN.length > 0;
}
},
{
op: 'YB_GDS_COLOR_C', name: '点击颜色(可以没有 如果只有一个颜色是不可点击的)', validate: (log) => {
return log.param.PRD_ID.length > 0 && log.param.COLOR.length > 0;
}
},
{
op: 'YB_GDS_SIZE_C', name: '点击尺码(可以没有 如果只有一个尺码是不可点击的)', validate: (log) => {
return log.param.PRD_ID.length > 0 && log.param.SIZE.length > 0;
}
},
{
op: 'YB_GDS_DT_SEL', name: '加入购物车', validate: (log) => {
return log.param.PRD_SKU > 0;
}
},
// {op: 'YB_LAUNCH_APP', name: '启动app', single: true},
// {op: 'YB_PAGE_ENTER', name: '第一次打开页面', equals: { PAGE_ID: 'sy' }},
// {op: 'YB_PAGE_ENTER', name: '第一次打开页面2'},
// {op: 'YB_HOME_CHANNEL_TAB_C', name: '自动选择了默认TAB SEGEMENT'},
// {op: 'YB_PAGE_ENTER'},
// {op: 'YB_SHOW_CATEGORY', name: 'YB_SHOW_CATEGORY1', types: {YH_AppChannelBlk: Array, 'YH_AppChannelBlk[0].SUBLIST': Array}},
// {op: 'YB_SHOW_CATEGORY', name: 'YB_SHOW_CATEGORY2'},
// {op: 'YB_ENTER_CHOICE'},
// {op: 'YB_SHOW_CATEGORY', name: 'YB_SHOW_CATEGORY3'},
// {op: 'YB_PAGE_EXIT', equals: { PAGE_ID: 'xbxzy' }},
// {op: 'YB_PAGE_EXIT'},
// {op: 'YB_CATEGORY'},
// {op: 'YB_AUTO_TRACK'},
// {op: 'YB_PAGE_EXIT', priority: 11},
// {op: 'YB_CATEGORY_CLS_TAB', priority: 13},
// {op: 'YB_PAGE_ENTER'},
// {op: 'YB_SHOW_MAIN_RECOMMEND'},
// {op: 'YB_CHOOSE_FOR_YOU'},
// {op: 'YB_CATEGORY_CAT_FLR_C', priority: 12},
// {op: 'YB_AUTO_TRACK'},
// {op: 'YB_GOODS_LIST'},
// {op: 'YB_SHOW_GOODS_LIST'},
// {op: 'YB_PAGE_EXIT'},
// {op: 'YB_PAGE_ENTER'},
// {op: 'YB_GOODS_LIST_DT'},
// {op: 'YB_AUTO_TRACK'},
// {op: 'YB_GDS_DT_INFO'},
// {op: 'YB_PAGE_ENTER'},
// {op: 'YB_PAGE_EXIT', validate: (log) => {
// return log.param.PAGE_ID === 'pl';
// }},
// {op: 'YB_CHOOSE_FOR_YOU'}
]
};