rule_order_confirm.js
1.29 KB
const {
ANDROID_ORDER_CONFIRM
} = require('../../scene-types/scene-types');
module.exports = {
[ANDROID_ORDER_CONFIRM]: [
{ op: 'YB_FUNC_SC_DRIFT', name: '进入购物车'},
{
op: 'YB_GDS_DT_BUY', name: '商品加入购物车', validate: (log) => {
return log.param.PRD_ID.length > 0;
}
},
{op: 'YB_CHOOSE_FOR_YOU', name: '购物车猜你喜欢'},
{ op: 'YB_SHOW_SHOPCART', name: '普通购物车数量'},
{ op: 'YB_SHOW_GLOBAL_SHOPCART', name: '全球购购物车数量'},
{ op: 'YB_SC_TOPAY', name: '订单生成'},
{ op: 'YB_PAGE_ENTER', name: '进入确认订单页', equals: { PAGE_ID: 'qrdd' } },
{ op: 'YB_SC_ORD', name: '订单确认', validate: (log) => {
return log.param.ORD_NUM.length > 0;
}},
{ op: 'YB_PAGE_EXIT', name: '离开订单页', equals: { PAGE_ID: 'qrdd' } },
{ op: 'YB_PAGE_ENTER', name: '进入支付选择页', equals: { PAGE_ID: 'zfzx' } },
{ op: 'YB_PAGE_FINISH', name: '关闭确认订单页', equals: { PAGE_ID: 'qrdd' } },
{ op: 'YB_SC_PAY', name: '支付', validate: (log) => {
return log.param.ORD_NUM.length > 0;
}},
{ op: 'YB_PAGE_EXIT', name: '离开支付页', equals: { PAGE_ID: 'zfzx' } },
]
};