Commit f75686c5 authored by qipeng's avatar qipeng

代码优化

parent 1605a3a9
...@@ -199,15 +199,15 @@ export default { ...@@ -199,15 +199,15 @@ export default {
} }
this.$request('wechatUser/invoice/loadInvoiceHead',data).then((res)=>{ this.$request('wechatUser/invoice/loadInvoiceHead',data).then((res)=>{
if(res.code=='00'){ if(res.code=='00'){
var messageData = res.data var messageData = res.data
this.uploadMes.headType = messageData.headType||'' this.uploadMes.headType = messageData.headType||''
this.uploadMes.buyerName = messageData.buyerName||'' this.uploadMes.buyerName = messageData.buyerName||''
this.uploadMes.emailAddress = messageData.emailAddress||'' this.uploadMes.emailAddress = messageData.emailAddress||''
if(messageData.headType==1){ if(messageData.headType==1){
this.uploadMes.taxNumber = messageData.taxNumber||'' this.uploadMes.taxNumber = messageData.taxNumber||''
this.uploadMes.buyerAddress = messageData.buyerAddress||'' this.uploadMes.buyerAddress = messageData.buyerAddress||''
this.uploadMes.bankAccount = messageData.bankAccount||'' this.uploadMes.bankAccount = messageData.bankAccount||''
} }
}else{ }else{
if(res.code=='04'){ if(res.code=='04'){
console.log('无历史抬头') console.log('无历史抬头')
......
...@@ -117,6 +117,15 @@ export default { ...@@ -117,6 +117,15 @@ export default {
}) })
}, },
downLoadImg(imgUrl){ downLoadImg(imgUrl){
// uni.setClipboardData({
// data: imgUrl, // e是你要保存的内容
// success: function () {
// uni.showToast({
// title:'复制成功,请到本地浏览器下载发票',
// icon:'none'
// })
// }
// })
uni.showLoading({ uni.showLoading({
title: '下载中', title: '下载中',
mask: true mask: true
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment