Преглед на файлове

fix: 订单详情查看发票报错问题

cuiyalong преди 3 години
родител
ревизия
3c68bc9798
променени са 3 файла, в които са добавени 29 реда и са изтрити 1 реда
  1. 2 0
      src/style/_variables.scss
  2. 19 1
      src/style/vant-reset.scss
  3. 8 0
      src/views/order/detail.vue

+ 2 - 0
src/style/_variables.scss

@@ -1,6 +1,8 @@
 $tabbarHeight: 50px;
 $topNavHeight: 44px;
 
+$color_main: #2abed1;
+
 @function addPx($a, $b) {
   @return $a + $b;
 }

+ 19 - 1
src/style/vant-reset.scss

@@ -79,4 +79,22 @@
     background-color: #e5e5e5;
     border-color: transparent;
   }
-}
+}
+
+.van-dialog {
+  &.j-confirm-dialog {
+    border-radius: 8px;
+    .van-dialog__message {
+      font-size: 16px;
+      color: #171826;
+      line-height: 24px;
+    }
+    .van-button {
+      font-size: 18px;
+      line-height: 26px;
+    }
+    .van-dialog__confirm {
+      color: $color_main;
+    }
+  }
+}

+ 8 - 0
src/views/order/detail.vue

@@ -336,6 +336,14 @@ export default class OrderDetail extends Vue {
       if (this.orderInfo.applybillStatus === 0) {
         // 0:未开票 -> 去开发票
         this.checkInvokeIsOverFn()
+      } else if (this.orderInfo.applybillStatus === 2) {
+        return this.$dialog.confirm({
+          title: '',
+          message: '您已开具发票<br>如有问题请联系客服<br>400-108-6670',
+          className: 'j-confirm-dialog',
+          showCancelButton: false,
+          confirmButtonText: '我知道了'
+        })
       } else {
         // 1:已开票 -> 查看发票
         location.href = this.invokeUrlMap[this.orderInfo.applybillStatus][this.$env.platform].can