Bläddra i källkod

Merge branch 'dev/v1.0.40_wmh' of jianyu/web into feature/v1.0.40

wenmenghao 1 år sedan
förälder
incheckning
5ae09abf02
1 ändrade filer med 11 tillägg och 7 borttagningar
  1. 11 7
      apps/mobile/src/views/invoice/viewInvoice.vue

+ 11 - 7
apps/mobile/src/views/invoice/viewInvoice.vue

@@ -577,18 +577,22 @@ export default {
       if (this.btntext === '查看发票') {
         if (this.$envs.inApp) {
           JyObj.openExternalLink(this.url, '电子发票')
-        } else { 
+        } else {
+          const href = new URL(this.url)
+          const path = href.pathname
           // 非app内打开
           if (
             this.infoMap.type === '2' ||
             (this.infoMap.type === '1' &&
               this.infoMap.price >= 10000 &&
               this.enterSource === 'qrcode')
-          ) {//扫码入口且金额大于10000
-            window.open(this.url)
-          } else { // 我的订单入口
+          ) {
+            //扫码入口且金额大于10000
+            window.open(path)
+          } else {
+            // 我的订单入口
             if (androidOrIOS() === 'ios') {
-              location.href = this.url
+              window.open(path)
             } else {
               const eleLink = document.createElement('a') // 新建A标签
               eleLink.href = this.url // 下载的路径
@@ -701,9 +705,9 @@ export default {
     DigitstoChinese_type(val) {
       if (val === '电子普通发票') {
         return '1'
-      } else if(val === '普通发票(电子发票)'){
+      } else if (val === '普通发票(电子发票)') {
         return '1'
-      }else if (val === '电子专用发票') {
+      } else if (val === '电子专用发票') {
         return '2'
       } else if (val === '纸质普通发票') {
         return '3'