Commit 27ac03eb by zhangxw

bug修复

1 parent ee42907e
......@@ -76,6 +76,8 @@ Page({
* 生命周期函数--监听页面加载
*/
onLoad(options) {
// 跳转进入页面 清空防止选择账号后再次进入页面
wx.$SCENE = null
let userInfo = wx.$util.getUserInfo()
this.setData({
scene: userInfo?.sceneType, // 埋点业务场景
......@@ -381,8 +383,7 @@ Page({
})
const { code, data, message } = img
if (code == 0) {
let fileUrl = data.replace('https', 'http')
infoData.attachmentList.push({ fileUrl: fileUrl, fileName: fileName })
infoData.attachmentList.push({ fileUrl: data, fileName: fileName })
_this.setData({
[`infoData.attachmentList`]: infoData.attachmentList
})
......@@ -435,7 +436,14 @@ Page({
})
// 跳转到退款审批列表
setTimeout(() => {
wx.$router.back()
const pages = getCurrentPages()
if (pages.length > 1) {
wx.$router.back()
} else {
wx.redirectTo({
url: `/tabWorkOrder/pages/refundOperationList/refundOperationList`
})
}
}, 300)
} else {
wx.$util.showToast(message)
......@@ -471,8 +479,16 @@ Page({
icon: "success"
})
this.cancelRepeal()
// 跳转到退款审批列表
setTimeout(() => {
wx.$router.back()
const pages = getCurrentPages()
if (pages.length > 1) {
wx.$router.back()
} else {
wx.redirectTo({
url: `/tabWorkOrder/pages/refundOperationList/refundOperationList`
})
}
}, 300)
} else {
this.setData({repealStatus: false})
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!