Просмотр исходного кода

feat(KIP-11923): 根据开票接口调整部分参数逻辑

john 1 год назад
Родитель
Сommit
41e025d75c

+ 0 - 5
src/pages/parkingFeeV2/mixins/parkingReceipt/parkingInvoice.js

@@ -94,11 +94,6 @@ export default {
         const res = await invoicesDeatil(id)
         console.log('支付订单详情', res)
         self.order = res;
-        // TODO KIP-11923 发布前移除
-        self.order.invoiceUrl = [
-          'https://kip-public-qa.oss-cn-shanghai.aliyuncs.com/dea54e0cff544ace90564a9f715dc9df_99242000000001678918.pdf',
-          'https://kip-public-qa.oss-cn-shanghai.aliyuncs.com/a2a53363f2a245d69b7853dc04d49ba1_996922403177_08447684.pdf'
-        ]
       } catch {
         uni.showToast({
           title: '服务器开小差了呢,请您稍后再试',

+ 3 - 3
src/pages/parkingFeeV2/mixins/parkingReceipt/parkingInvoiceImage.js

@@ -79,7 +79,7 @@ export default {
       }
     },
     downloadPdf() {
-      if(this.order.invoiceUrl.length > 1) {
+      if(this.order.invoiceUrls.length > 1) {
         this.$router.push({
           path: 'parkingInvoiceImages?order=' + JSON.stringify(this.order),
         });
@@ -87,12 +87,12 @@ export default {
       }
       if (window.__wxjs_environment === 'miniprogram') {              
         wx.miniProgram.navigateTo({
-          url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrl)}`,
+          url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrls[0])}`,
         });
       }
       if (this.isAlipayClient) {
         my?.navigateTo({
-          url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrl)}`,
+          url: `/pages/package-parkingFee/file?invoiceUrl=${encodeURIComponent(this.order.invoiceUrls[0])}`,
         })
       }
     }

+ 3 - 3
src/pages/parkingFeeV2/parkingReceipt/parkingInvoiceImage.vue

@@ -11,7 +11,7 @@
         <span class="part-item-key">电子邮箱</span>
         <span class="part-item-value">{{ order.email }}</span>
       </div>
-      <div class="invoice-img" v-if="order.invoiceUrl">
+      <div class="invoice-img" v-if="order.invoiceUrls && order.invoiceUrls.length">
       </div>
     </div>
     <div class="footer">
@@ -26,7 +26,7 @@
         再次推送
       </div>
       <div
-        v-if="order && order.invoiceUrl.length"
+        v-if="order && order.invoiceUrls && order.invoiceUrls.length"
         :class="{
           btn: true,
           'push-again-btn': true,
@@ -34,7 +34,7 @@
         style="width:100%; margin:24px auto 0;"
         @click="downloadPdf"
       >
-        {{ order.invoiceUrl.length > 1 ? '下载更多发票' : "下载发票"}}
+        {{ order.invoiceUrls.length > 1 ? '下载更多发票' : "下载发票"}}
       </div>
     </div>
   </scroll-view>