rule_tab_category.js
1.86 KB
const {
iOS_TAB_CATEGORY
} = require('../../scene-types/scene-types');
module.exports = {
[iOS_TAB_CATEGORY]:[
{ op: 'YB_LAUNCH_APP', name: '启动APP' },
{ op: 'YB_PAGE_ENTER', name: '进入APP', equals: { PAGE_ID: "start" } },
{ op: 'YB_PAGE_ENTER', name: '进入广告启动页', equals: { PAGE_ID: "xbxzy" } },
{ op: 'YB_HOME_CHANNEL_TAB_C', name: '首页默认选中了某个tab选项' },
{ op: 'YB_PAGE_ENTER', name: '进入首页', equals: { PAGE_ID: "sy" } },
{ op: 'YB_PAGE_EXIT', name: '离开启动页', equals: { PAGE_ID: "start" } },
{ op: 'YB_PAGE_EXIT', name: '离开广告启动页', equals: { PAGE_ID: "xbxzy" } },
{ op: 'YB_ENTER_CHOICE', name: '选择了默认的频道选项' },
{ op: 'YB_CHOOSE_FOR_YOU', name: '猜你喜欢展现上报', types: { PRD_ID: String } },
{ op: 'YB_SHOW_MAIN_RECOMMEND', name: '首页推荐商品数据曝光', types: { DATA: Array } },
{ op: 'YB_CATEGORY_CLS_TAB', name: '主界面-分类-品类TAB'},
{ op: 'YB_CATEGORY', name: 'TAB BAR 点击品类'},
{ op: 'YB_AUTO_TRACK', name: '自动点击TAB品类上报', equals: { VIEW_PATH: "YH_TabBarViewController[0]\/UITabBar[0]\/Index[1]" } },
{ op: 'YB_PAGE_EXIT', name: "离开首页", equals: { PAGE_ID: "sy" } },
{ op: 'YB_PAGE_ENTER', name: "进入品类", equals: { PAGE_ID: "pl" } },
{ op: 'YB_SHOW_EVENT', name: "曝光事件", types: { DATA: Array } },
{ op: 'YB_SHOW_CATEGORY', name: '展示品类列表', types: { DATA: Array } },
{ op: 'YB_PAGE_ENTER', name: '进入品类商品列表页', equals: { PAGE_ID: 'plsplb' } },
{
op: 'YB_GDS_LIST', name: '品类列表页', validate: (log) => {
return log.param.ENT_ID.length > 0 && log.param.ENT_TYP == 4;
}
},
]
};