Commit 27ac03eb by zhangxw

bug修复

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