Commit ed828765 by zhangxw

错误工单问题修复

1 parent 66c94a94
...@@ -191,12 +191,16 @@ Page({ ...@@ -191,12 +191,16 @@ Page({
/** /**
* 生命周期函数--监听页面隐藏 * 生命周期函数--监听页面隐藏
*/ */
onHide() {}, onHide() {
clearInterval(timer) // 清除定时器
},
/** /**
* 生命周期函数--监听页面卸载 * 生命周期函数--监听页面卸载
*/ */
onUnload() {}, onUnload() {
clearInterval(timer) // 清除定时器
},
/** /**
* 页面相关事件处理函数--监听用户下拉动作 * 页面相关事件处理函数--监听用户下拉动作
......
...@@ -568,7 +568,12 @@ Page({ ...@@ -568,7 +568,12 @@ Page({
if (res?.code == 0) { if (res?.code == 0) {
if (res?.data) { if (res?.data) {
// 添加流水号校验 // 添加流水号校验
let result = await checkRecord({ transactionNo: orderInfo.transactionNo }) let result = {}
if (!orderInfo.resetOrder) {
result = await checkRecord({ transactionNo: orderInfo.transactionNo })
} else { // 错误工单不做校验 赋值
result = {code: 0}
}
let { code, message } = result let { code, message } = result
if (code == 0) { if (code == 0) {
this.setData({ this.setData({
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!