feat(orderDetail): 添加后退拦截逻辑

- 在订单详情页添加 onBackPress 事件处理函数- 拦截后退操作,调用取消订单方法并返回首页
- 修改支付结果页的打印分割线高度,优化打印效果
main
Tuzki 7 months ago
parent 731d1f6b8c
commit 8384240f66
  1. 6
      pages/orderDetail/orderDetail.vue
  2. 2
      pages/payResult/payResult.vue

@ -92,6 +92,12 @@
]
};
},
onBackPress(options) {
//
this.cancelOrder();
// return true
return true;
},
onLoad(params) {
uni.removeStorageSync('ALL_TICKET');
uni.removeStorageSync('EVENT');

@ -150,7 +150,7 @@ export default {
//
sunmi_print.printDividingline({
style: '4',
height: '30'
height: '60'
});
});
}

Loading…
Cancel
Save