diff --git a/src/views/ebiz/sale/AttachmentManagement.vue b/src/views/ebiz/sale/AttachmentManagement.vue index a64c3189e..d6860ad9c 100644 --- a/src/views/ebiz/sale/AttachmentManagement.vue +++ b/src/views/ebiz/sale/AttachmentManagement.vue @@ -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: {