上传图片接口:上传图片时,上传类型、订单号,按照请求在upload中快速定位日志。

This commit is contained in:
liu.xiaofeng@ebiz-digits.com
2023-08-08 11:40:31 +08:00
parent c19909e13e
commit 33bd2e3821

View File

@@ -867,6 +867,8 @@ export default {
})
let formdata = new FormData()
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
// formdata.append('imgType', that.type)
// formdata.append('orderNo', this.$route.query.orderNo)
uploadImg(formdata).then(
(res) => {
// console.log(res)
@@ -1683,47 +1685,45 @@ export default {
},
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
}
console.log(data)
// saveInformation(data).then((res) => {
// if (res.result == '0') {
// this.$toast.clear()
// if (!this.changeCard) {
// window.localStorage.setItem('accountInfomation-bank', that.bank)
// window.localStorage.setItem('accountInformationRadio', that.radio)
// window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
// window.localStorage.setItem('jumpFromSign', '')
// }
// window.localStorage.removeItem('imgfront')
// window.localStorage.removeItem('imgBackPath')
// window.localStorage.removeItem('imgfrontPath')
// window.localStorage.removeItem('imgfrontInsured')
// window.localStorage.removeItem('imgfrontInsuredPath')
// window.localStorage.removeItem('imgBackInsuredPath')
// window.localStorage.removeItem('bankCardUrl')
// window.localStorage.removeItem('bankCardUrlPath')
// window.localStorage.removeItem('bankCardUrlInsured')
// window.localStorage.removeItem('bankCardUrlInsuredPath')
// that.$jump({
// flag: 'h5',
// extra: {
// url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
// pullRefresh: '1',
// backToFirst: '1',
// },
// routerInfo: {
// path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
// },
// })
// } else {
// Dialog.confirm({
// title: '提示',
// message: res.resultMessage,
// confirmButtonColor:'#FF0000',
// showCancelButton:false
// })
// //that.$toast(res.resultMessage)
// }
// })
saveInformation(data).then((res) => {
if (res.result == '0') {
this.$toast.clear()
if (!this.changeCard) {
window.localStorage.setItem('accountInfomation-bank', that.bank)
window.localStorage.setItem('accountInformationRadio', that.radio)
window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
window.localStorage.setItem('jumpFromSign', '')
}
window.localStorage.removeItem('imgfront')
window.localStorage.removeItem('imgBackPath')
window.localStorage.removeItem('imgfrontPath')
window.localStorage.removeItem('imgfrontInsured')
window.localStorage.removeItem('imgfrontInsuredPath')
window.localStorage.removeItem('imgBackInsuredPath')
window.localStorage.removeItem('bankCardUrl')
window.localStorage.removeItem('bankCardUrlPath')
window.localStorage.removeItem('bankCardUrlInsured')
window.localStorage.removeItem('bankCardUrlInsuredPath')
that.$jump({
flag: 'h5',
extra: {
url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
pullRefresh: '1',
backToFirst: '1',
},
routerInfo: {
path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
},
})
} else {
Dialog.confirm({
title: '提示',
message: res.resultMessage,
confirmButtonColor:'#FF0000',
showCancelButton:false
})
}
})
},
},
computed: {