mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-28 13:31:04 +00:00
fix(订单操作): 修复去评价/查看卡密 action 断链与 3 处失配路由
- 后端 NormalOrderAdapter 下发的用户端按钮 action 为 goComment, 前端 action-map 只有 commentOrder,点击去评价静默无反应;补 goComment 映射,从 product section 取 SKU unique 拼评价页参数 - 补 viewCardKey 映射(卡密商品已发卡按钮,独立页未开发前落订单详情) - routes.js 与 pages.json 全量核对,修正 comment(评价页实际为 goods_comment_con)、newsDetail(extension/news_details)、 verify(暂无独立核销页,先落订单详情)三处 404 路由
This commit is contained in:
parent
a18c3f1272
commit
d020b35cd5
@ -150,6 +150,22 @@ export default {
|
||||
commentOrder(order, params) {
|
||||
uni.navigateTo({ url: routes.comment + '?order_no=' + order.order_no });
|
||||
},
|
||||
/** 去评价(后端 NormalOrderAdapter 等模块下发的 action 名;评价页按 SKU unique 提交) */
|
||||
goComment(order, params) {
|
||||
var orderNo = order.order_no || (params && params.order_no) || '';
|
||||
// 取第一个商品条目的 SKU unique;section 以 key='product' 注册,props.product.items 为商品条目
|
||||
var items = (order.product && order.product.product && order.product.product.items) || [];
|
||||
var skuUnique = items.length && items[0].attr_info && items[0].attr_info.unique;
|
||||
if (!orderNo || !skuUnique) {
|
||||
uni.showToast({ title: i18n.t(`订单信息异常`), icon: 'none' });
|
||||
return;
|
||||
}
|
||||
uni.navigateTo({ url: routes.comment + '?unique=' + skuUnique + '&uni=' + orderNo });
|
||||
},
|
||||
/** 查看卡密(卡密商品已发卡状态;独立卡密页未开发前先落订单详情) */
|
||||
viewCardKey(order, params) {
|
||||
uni.navigateTo({ url: routes.orderDetail + '?order_no=' + (order.order_no || (params && params.order_no) || '') });
|
||||
},
|
||||
/** 退款中(查看订单详情) */
|
||||
refunding(order, params) {
|
||||
uni.navigateTo({ url: routes.orderDetail + '?order_no=' + order.order_no });
|
||||
|
||||
@ -18,10 +18,10 @@ export default {
|
||||
aftersaleList: '/pages/users/user_return_list/index',
|
||||
/** 查看物流页(使用旧版页面) */
|
||||
logistics: '/pages/goods/goods_logistics/index',
|
||||
/** 核销码页 */
|
||||
verify: '/pages/center/order/verify',
|
||||
/** 评价页 */
|
||||
comment: '/pages/goods/comment/index',
|
||||
/** 核销码页(核销码展示区块暂未迁移到新订单详情页,先落详情页,核销类商品接入时补独立页面) */
|
||||
verify: '/pages/center/order/detail/index',
|
||||
/** 评价页(pages.json 实际注册路径为 goods_comment_con) */
|
||||
comment: '/pages/goods/goods_comment_con/index',
|
||||
/** 支付结果页(支付失败/取消场景) */
|
||||
payStatus: '/pages/center/pay/status/index',
|
||||
// 用户
|
||||
@ -47,7 +47,7 @@ export default {
|
||||
/** 商品详情页 */
|
||||
goodsDetail: '/pages/goods_details/index',
|
||||
/** 资讯详情页(H5 外链通过 iframe 嵌入) */
|
||||
newsDetail: '/pages/extension/news_list/news_details',
|
||||
newsDetail: '/pages/extension/news_details/index',
|
||||
/** 客服聊天页 */
|
||||
customerChat: '/pages/extension/customer_list/chat',
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user