Commit c024c7b7 by 张立顺

fix bug

1 parent b87d56d1
...@@ -24,10 +24,12 @@ Page({ ...@@ -24,10 +24,12 @@ Page({
timer = setInterval(() => { timer = setInterval(() => {
let objNameStr = 'textNameObj.confirmName' let objNameStr = 'textNameObj.confirmName'
// const str = '前往提单(10s)' // const str = '前往提单(10s)'
if (zyFlag) {
that.setData({ that.setData({
[objNameStr]: `${zyFlag ? '下一步·上传协议(4/4)' : '下一步·去签名(4/4)'}(${sec}s)`, [objNameStr]: `下一步·上传协议(4/4)(${sec}s)`,
showBtnFlag: true showBtnFlag: true
}) })
}
sec-- sec--
if (sec == -1) { if (sec == -1) {
clearInterval(timer) // 清除定时器 clearInterval(timer) // 清除定时器
...@@ -36,8 +38,8 @@ Page({ ...@@ -36,8 +38,8 @@ Page({
if (zyFlag) { // 需要上传合同协议 if (zyFlag) { // 需要上传合同协议
return this.setData({ showZyPopup: true }) // 上传合同协议弹窗 return this.setData({ showZyPopup: true }) // 上传合同协议弹窗
} }
// 跳转签名页面 // 跳转列表页面
wx.$router.redirectTo('signature', { id, orderId }) wx.$router.reLaunch("packageEquity.equityPage?tabIndex=1");
} }
}, 1000) }, 1000)
this.setData({timer}) this.setData({timer})
...@@ -74,9 +76,7 @@ Page({ ...@@ -74,9 +76,7 @@ Page({
}) })
if (code == 0) { if (code == 0) {
// 返回到报价单列表 // 返回到报价单列表
wx.$router.reLaunch("packageEquity.equityPage", { wx.$router.reLaunch("packageEquity.equityPage?tabIndex=1");
tabIndex: 1,
})
} else { } else {
wx.$util.showToast(message) wx.$util.showToast(message)
} }
......
...@@ -255,7 +255,7 @@ SubmitContext.prototype.prepareSubmitData = function (save) { ...@@ -255,7 +255,7 @@ SubmitContext.prototype.prepareSubmitData = function (save) {
const orderCreateType = data.orderCreateType const orderCreateType = data.orderCreateType
// 深拷贝 // 深拷贝
let submitObj = wx.$util.deepClone(orderObj) let submitObj = JSON.parse(JSON.stringify(orderObj))
// 数据清洗逻辑 // 数据清洗逻辑
if (!scene) { if (!scene) {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!