소스 검색

feat(SCRM-5671): 纸质券补充过期判断状态

john 1 년 전
부모
커밋
6e5dc0954b
2개의 변경된 파일12개의 추가작업 그리고 0개의 파일을 삭제
  1. 6 0
      src/pages/parkingFee/mixins/parkingFeePaperCoupon.js
  2. 6 0
      src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

+ 6 - 0
src/pages/parkingFee/mixins/parkingFeePaperCoupon.js

@@ -152,6 +152,12 @@ export default {
         "used": "0",
         "content": "嘉里卡券测试"
       }*/
+      /* [DE][C端]临时停车,静安纸质优惠券过期以后,扫码,依然可以扫出来金额 https://kerryprops.atlassian.net/browse/SCRM-5671 */
+      if ( res.hasOwnProperty('expired') && /1/.test(res?.expired)) {
+        return Toast({
+          message: '该纸质优惠已过期',
+        });
+      }
       if ( /0/.test(res.status)) {
         return Toast({
           message: '该纸质优惠券未激活',

+ 6 - 0
src/pages/parkingFeeV2/mixins/parkingFeePaperCoupon.js

@@ -173,6 +173,12 @@ export default {
         "used": "0",
         "content": "嘉里卡券测试"
       }*/
+      /* [DE][C端]临时停车,静安纸质优惠券过期以后,扫码,依然可以扫出来金额 https://kerryprops.atlassian.net/browse/SCRM-5671 */
+      if ( res.hasOwnProperty('expired') && /1/.test(res?.expired)) {
+        return Toast({
+          message: '该纸质优惠已过期',
+        });
+      }
       if ( /0/.test(res.status)) {
         return Toast({
           message: '该纸质优惠券未激活',