Ver Fonte

出口码调整

zaijin há 2 anos atrás
pai
commit
3f3842b4b4
2 ficheiros alterados com 11 adições e 8 exclusões
  1. 1 1
      pages/choosePayment/choosePayment.vue
  2. 10 7
      pages/parkexport/parkexport.vue

+ 1 - 1
pages/choosePayment/choosePayment.vue

@@ -429,7 +429,7 @@ export default {
      */
     handleWxPay(params) {
       const api = this.exportFlag ? this.$u.api.parkingWechatPayApi : this.$u.api.wechatPayApi;
-      api(params).then((res) => {
+      api({ ...params }).then((res) => {
         if (res.code !== 200) {
           return;
         }

+ 10 - 7
pages/parkexport/parkexport.vue

@@ -64,20 +64,20 @@
     </template>
     <template v-else>
       <view class="parking-lock-info">
-        <view class="parking-lock-info-item">
-          <view>出口无车辆</view>
+        <view class="parking-lock-info-item-1">
+          <view>{{ tipTxt }}</view>
         </view>
       </view>
     </template>
     <!-- 支付方式 -->
     <ChoosePayment
+			v-if="choosePayment"
       ref="choosePayment"
       :payWayPop="payWayPop"
       :curOrderList="orderList"
       :jumpUrl="jumpUrl"
       :exportFlag="true"
-      :sanPay="saopay"
-      :otherParams="{ parkType: 'export' }"
+      :sanPay="true"
       @closePaymentMethod="closePaymentMethod"
     />
     <u-toast ref="uToast" />
@@ -98,13 +98,14 @@ export default {
         polyOrderId: '',
         isBack: 0
       },
-      saopay: true,
       payWayPop: false, // 支付弹框
       infoData: undefined, // 订单信息
       orderList: [], // 支付订单列表
       jumpUrl: location.href + '&isBack=1', // 回调地址
       timer: null, // 轮询
-      isPay: false // 支付按钮显示
+      isPay: false, // 支付按钮显示
+			choosePayment: false,
+			tipTxt: '出口无车辆'
     };
   },
   onLoad(page) {
@@ -132,6 +133,7 @@ export default {
      * 立即支付
      */
     onEntraceClick() {
+			this.choosePayment = true;
       this.$nextTick(() => {
         this.$refs['choosePayment'].openPopup({ ...this.infoData }, 'single', 'parking');
       });
@@ -201,6 +203,7 @@ export default {
           uni.hideLoading();
         })
         .catch((err) => {
+					this.tipTxt = err?.msg ?? '出口无车辆'
           uni.hideLoading();
         });
     },
@@ -208,7 +211,7 @@ export default {
      * 关闭支付弹框
      */
     closePaymentMethod() {
-      this.payWayPop = false;
+      this.choosePayment = false;
     },
     jumpHome(url) {
       uni.switchTab({