...
|
...
|
@@ -5,83 +5,83 @@ const { |
|
|
module.exports = {
|
|
|
[ANDROID_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_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_GDS_PACKAGE_L', name: '套餐商品接口上报', types: { LIST: Array }, validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0;
|
|
|
}
|
|
|
},
|
|
|
//售罄商品 推荐商品列表上报
|
|
|
{
|
|
|
op: 'YB_CHOOSE_FOR_YOU', name: '售罄商品 推荐商品列表上报', equals: { REC_POSE: '100025', ACTION_ID:'0'}, validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0 && log.param.MAIN_SKN.length > 0;
|
|
|
}
|
|
|
},
|
|
|
//点击售罄商品 推荐商品列表展开按钮
|
|
|
{
|
|
|
op: 'YB_GDS_DT_SHOW_RES_C', name: '点击售罄商品 推荐商品列表展开按钮', validate: (log) => {
|
|
|
return log.param.STATUS.length > 0 && log.param.MAIN_SKN.length > 0;
|
|
|
}
|
|
|
},
|
|
|
//店铺推荐的商品列表
|
|
|
{
|
|
|
op: 'YB_CHOOSE_FOR_YOU', name: '店铺推荐的商品列表', equals: { REC_POSE: '100029', ACTION_ID: '0' }, validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0;
|
|
|
}
|
|
|
},
|
|
|
//点击店铺推荐的商品列表
|
|
|
{
|
|
|
op: 'YB_CHOOSE_FOR_YOU', name: '点击店铺推荐的商品列表', equals: { REC_POSE: '100029', ACTION_ID: '1' }, validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0;
|
|
|
}
|
|
|
},
|
|
|
// //套餐商品接口上报
|
|
|
// {
|
|
|
// op: 'YB_GDS_PACKAGE_L', name: '套餐商品接口上报', types: { LIST: Array }, validate: (log) => {
|
|
|
// return log.param.PRD_ID.length > 0;
|
|
|
// }
|
|
|
// },
|
|
|
// //售罄商品 推荐商品列表上报
|
|
|
// {
|
|
|
// op: 'YB_CHOOSE_FOR_YOU', name: '售罄商品 推荐商品列表上报', equals: { REC_POSE: '100025', ACTION_ID:'0'}, validate: (log) => {
|
|
|
// return log.param.PRD_ID.length > 0 && log.param.MAIN_SKN.length > 0;
|
|
|
// }
|
|
|
// },
|
|
|
// //点击售罄商品 推荐商品列表展开按钮
|
|
|
// {
|
|
|
// op: 'YB_GDS_DT_SHOW_RES_C', name: '点击售罄商品 推荐商品列表展开按钮', validate: (log) => {
|
|
|
// return log.param.STATUS.length > 0 && log.param.MAIN_SKN.length > 0;
|
|
|
// }
|
|
|
// },
|
|
|
//店铺推荐的商品列表
|
|
|
{
|
|
|
op: 'YB_CHOOSE_FOR_YOU', name: '店铺推荐的商品列表', equals: { REC_POSE: '100029', ACTION_ID: '0' }, validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0;
|
|
|
}
|
|
|
},
|
|
|
// //点击店铺推荐的商品列表
|
|
|
// {
|
|
|
// op: 'YB_CHOOSE_FOR_YOU', name: '点击店铺推荐的商品列表', equals: { REC_POSE: '100029', ACTION_ID: '1' }, validate: (log) => {
|
|
|
// return log.param.PRD_ID.length > 0;
|
|
|
// }
|
|
|
// },
|
|
|
|
|
|
//点击商品详情
|
|
|
{
|
|
|
op: 'YB_GDS_DT_BUY', name: '点击商品详情', validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0;
|
|
|
}
|
|
|
},
|
|
|
//点击在线客服
|
|
|
{ op: 'YB_MY_OLCS', name: '点击在线客服', equals: { TYPE: '1' } },
|
|
|
//立即购买
|
|
|
{
|
|
|
op: 'YB_GDS_DT_BILL', name: '立即购买', validate: (log) => {
|
|
|
return log.param.PRD_SKN.length > 0 && log.param.PRD_SKU.length > 0 && log.param.PRD_TYPE.length > 0;
|
|
|
}
|
|
|
},
|
|
|
//点击提问问题按钮
|
|
|
{ op: 'YB_GDS_DT_ASK', name: '点击提问问题按钮', types: { PRD_ID: String, TOURL: String } },
|
|
|
//点击店铺按钮
|
|
|
{ op: 'YB_BRAND_SHOP_C', name:'点击店铺按钮', types:{SHOP_ID:String, POS_ID:String}},
|
|
|
//点击套餐
|
|
|
{ op: 'YB_GDS_PACKAGE_C', name: '点击套餐', types: { PRD_ID: String } },
|
|
|
//点击分享
|
|
|
{ op: 'YB_GDS_DT_SHARE', name: '点击分享', types: { PRD_ID: String, BR_ID: String, TOURL: String } },
|
|
|
//分享商品
|
|
|
{ op: 'YB_SHARE_PRODUCT', name: '分享商品', equals: { FROM: 'pt' }, types: { PRD_ID: String, BR_ID: String, TOURL: String } },
|
|
|
//点击商品详情
|
|
|
{
|
|
|
op: 'YB_GDS_DT_BUY', name: '点击商品详情', validate: (log) => {
|
|
|
return log.param.PRD_ID.length > 0;
|
|
|
}
|
|
|
},
|
|
|
// //点击在线客服
|
|
|
// { op: 'YB_MY_OLCS', name: '点击在线客服', equals: { TYPE: '1' } },
|
|
|
// //立即购买
|
|
|
// {
|
|
|
// op: 'YB_GDS_DT_BILL', name: '立即购买', validate: (log) => {
|
|
|
// return log.param.PRD_SKN.length > 0 && log.param.PRD_SKU.length > 0 && log.param.PRD_TYPE.length > 0;
|
|
|
// }
|
|
|
// },
|
|
|
// //点击提问问题按钮
|
|
|
// { op: 'YB_GDS_DT_ASK', name: '点击提问问题按钮', types: { PRD_ID: String, TOURL: String } },
|
|
|
// //点击店铺按钮
|
|
|
// { op: 'YB_BRAND_SHOP_C', name:'点击店铺按钮', types:{SHOP_ID:String, POS_ID:String}},
|
|
|
// //点击套餐
|
|
|
// { op: 'YB_GDS_PACKAGE_C', name: '点击套餐', types: { PRD_ID: String } },
|
|
|
//点击分享
|
|
|
{ op: 'YB_GDS_DT_SHARE', name: '点击分享', types: { PRD_ID: String, BR_ID: String, TOURL: String } },
|
|
|
//分享商品
|
|
|
{ op: 'YB_SHARE_PRODUCT', name: '分享商品', equals: { FROM: 'pt' }, types: { PRD_ID: String, BR_ID: String, TOURL: String } },
|
|
|
]
|
|
|
};
|
|
|
|
...
|
...
|
|