diff --git a/common/common.js b/common/common.js index c325a6a..00e285e 100644 --- a/common/common.js +++ b/common/common.js @@ -29,9 +29,13 @@ const getBusinessParkOrderByBusIdForPage = serverUrl + "/business/h5/order/getBu const getPayOrderByOrderId = serverUrl + "/business/h5/order/getPayOrderByOrderId"; //刘淇接口 - // 商户卡券-可以购买卡券列表-分页 -const couponRuleParkPage = serverUrl + "business/h5/coupon/couponRuleParkPage"; +const couponRuleParkPage = serverUrl + "/business/h5/coupon/couponRuleParkPage"; + + +// 商户卡券-卡券申领明细 +const couponIssuedParkPage = serverUrl + "/business/h5/couponIssued/couponIssuedParkPage"; + //陈彪接口 @@ -188,8 +192,8 @@ export default { //刘淇接口 getBusinessParkOrderByBusIdForPage, getPayOrderByOrderId, - - + couponRuleParkPage, + couponIssuedParkPage, //陈彪接口 rechargeList, diff --git a/common/filters.js b/common/filters.js index 98d6d08..9ac25da 100644 --- a/common/filters.js +++ b/common/filters.js @@ -78,6 +78,32 @@ const sexFilter = value => { } } +// 商户卡券类型 +const cardTypeFormate = num => { + console.log('1111111111111') + // 1-单次券,2-时长券,3-满减券,4-金额券,5-包天券,6-折扣券 + if(num == '1'){ + return '单次券' + } + if(num == 2){ + return '时长券' + } + if(num == 3){ + return '满减券' + } + if(num == 4){ + return '金额券' + } + if(num == 5){ + return '包天券' + } + if(num == 6){ + return '折扣券' + } + +} + + export default { tranNull, RMB, @@ -86,4 +112,5 @@ export default { ortherToFixed, toThousands, sexFilter, + cardTypeFormate } diff --git a/pages.json b/pages.json index 50d8fb4..526939e 100644 --- a/pages.json +++ b/pages.json @@ -67,6 +67,12 @@ } }, { + "path": "pages/businessCard/cardDetail", + "style": { + "navigationBarTitleText": "商户卡券明细" + } + }, + { "path": "pages/parkRecordList/recordDetail", "style": { "navigationBarTitleText": "订单详情" diff --git a/pages/businessCard/businessCard.vue b/pages/businessCard/businessCard.vue index 6661293..7e3a1a1 100644 --- a/pages/businessCard/businessCard.vue +++ b/pages/businessCard/businessCard.vue @@ -1,194 +1,47 @@ diff --git a/pages/businessCard/buyCard.vue b/pages/businessCard/buyCard.vue index 76df254..1837613 100644 --- a/pages/businessCard/buyCard.vue +++ b/pages/businessCard/buyCard.vue @@ -3,15 +3,6 @@ - - - - - - - - - @@ -70,15 +61,7 @@ - - - - - - - - - + @@ -120,7 +103,6 @@