上传图片接口:上传图片时,上传类型、订单号,按照请求在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() let formdata = new FormData()
formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName)) formdata.append('imgPath', that.dataURLtoFile(that.file, that.imgName))
// formdata.append('imgType', that.type)
// formdata.append('orderNo', this.$route.query.orderNo)
uploadImg(formdata).then( uploadImg(formdata).then(
(res) => { (res) => {
// console.log(res) // console.log(res)
@@ -1683,47 +1685,45 @@ export default {
}, },
orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER', orderType: that.changeCard ? 'MEDIANEW_ORDER' : 'MEDIA_ORDER',
} }
console.log(data) saveInformation(data).then((res) => {
// saveInformation(data).then((res) => { if (res.result == '0') {
// if (res.result == '0') { this.$toast.clear()
// this.$toast.clear() if (!this.changeCard) {
// if (!this.changeCard) { window.localStorage.setItem('accountInfomation-bank', that.bank)
// window.localStorage.setItem('accountInfomation-bank', that.bank) window.localStorage.setItem('accountInformationRadio', that.radio)
// window.localStorage.setItem('accountInformationRadio', that.radio) window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked))
// window.localStorage.setItem('accountInformation-isPaymentSelf', JSON.stringify(that.checked)) window.localStorage.setItem('jumpFromSign', '')
// window.localStorage.setItem('jumpFromSign', '') }
// } window.localStorage.removeItem('imgfront')
// window.localStorage.removeItem('imgfront') window.localStorage.removeItem('imgBackPath')
// window.localStorage.removeItem('imgBackPath') window.localStorage.removeItem('imgfrontPath')
// window.localStorage.removeItem('imgfrontPath') window.localStorage.removeItem('imgfrontInsured')
// window.localStorage.removeItem('imgfrontInsured') window.localStorage.removeItem('imgfrontInsuredPath')
// window.localStorage.removeItem('imgfrontInsuredPath') window.localStorage.removeItem('imgBackInsuredPath')
// window.localStorage.removeItem('imgBackInsuredPath') window.localStorage.removeItem('bankCardUrl')
// window.localStorage.removeItem('bankCardUrl') window.localStorage.removeItem('bankCardUrlPath')
// window.localStorage.removeItem('bankCardUrlPath') window.localStorage.removeItem('bankCardUrlInsured')
// window.localStorage.removeItem('bankCardUrlInsured') window.localStorage.removeItem('bankCardUrlInsuredPath')
// window.localStorage.removeItem('bankCardUrlInsuredPath') that.$jump({
// that.$jump({ flag: 'h5',
// flag: 'h5', extra: {
// extra: { url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
// url: location.origin + '/#/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo, pullRefresh: '1',
// pullRefresh: '1', backToFirst: '1',
// backToFirst: '1', },
// }, routerInfo: {
// routerInfo: { path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo,
// path: '/sale/signatureConfirmation?orderNo=' + this.$route.query.orderNo, },
// }, })
// }) } else {
// } else { Dialog.confirm({
// Dialog.confirm({ title: '提示',
// title: '提示', message: res.resultMessage,
// message: res.resultMessage, confirmButtonColor:'#FF0000',
// confirmButtonColor:'#FF0000', showCancelButton:false
// showCancelButton:false })
// }) }
// //that.$toast(res.resultMessage) })
// }
// })
}, },
}, },
computed: { computed: {