From 75b91c089acad57cc87112e1b25cdddf0a8b9a90 Mon Sep 17 00:00:00 2001 From: liugongyu <290219706@qq.com> Date: Wed, 18 May 2022 10:33:32 +0800 Subject: [PATCH] 卡券发放 --- common/common.js | 8 +++----- pages.json | 27 +++++++++++++++------------ pages/businessCard/businessCard.vue | 15 +++++++++++++-- pages/businessCard/cardPrint.vue | 133 +++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------ pages/businessCard/provideCard.vue | 124 +++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------- 5 files changed, 101 insertions(+), 206 deletions(-) diff --git a/common/common.js b/common/common.js index dd43f6e..cc07868 100644 --- a/common/common.js +++ b/common/common.js @@ -31,12 +31,10 @@ const getPayOrderByOrderId = serverUrl + "/business/h5/order/getPayOrderByOrderI // 商户卡券-可以购买卡券列表-分页 const couponRuleParkPage = serverUrl + "/business/h5/coupon/couponRuleParkPage"; - - // 商户卡券-卡券申领明细 const couponIssuedParkPage = serverUrl + "/business/h5/couponIssued/couponIssuedParkPage"; - - +// 商户卡券-卡券发放-生成领券的动态码 +const getCouponDynamicQR = serverUrl + "/business/h5/couponsend/getCouponDynamicQR"; //陈彪接口 @@ -216,7 +214,7 @@ export default { getPayOrderByOrderId, couponRuleParkPage, couponIssuedParkPage, - + getCouponDynamicQR, //陈彪接口 rechargeList, walletKindType, diff --git a/pages.json b/pages.json index 5ace5ed..22d7618 100644 --- a/pages.json +++ b/pages.json @@ -14,6 +14,19 @@ "pages": [ // pages数组中第一项表示应用启动页,参考:https://uniapp.dcloud.io/collocation/pages { + "path": "pages/businessCard/provideCard", + "style": { + "navigationBarTitleText": "商户卡券发放" + } + }, + { + "path": "pages/businessCard/businessCard", + "style": { + "navigationBarTitleText": "商户卡券" + } + }, + + { "path": "pages/businessCard/cardDetail", "style": { "navigationBarTitleText": "商户卡券明细", @@ -64,24 +77,14 @@ } }, - { - "path": "pages/businessCard/provideCard", - "style": { - "navigationBarTitleText": "商户卡券发放" - } - }, + { "path": "pages/businessCard/buyCard", "style": { "navigationBarTitleText": "商户卡券购买" } }, - { - "path": "pages/businessCard/businessCard", - "style": { - "navigationBarTitleText": "商户卡券" - } - }, + { "path": "pages/parkRecordList/recordDetail", diff --git a/pages/businessCard/businessCard.vue b/pages/businessCard/businessCard.vue index 7e3a1a1..63f1801 100644 --- a/pages/businessCard/businessCard.vue +++ b/pages/businessCard/businessCard.vue @@ -18,11 +18,11 @@ 购买 - + 发放 - + 打印 @@ -88,6 +88,17 @@ export default { url: '../businessCard/buyCard?optionData='+JSON.stringify(i) }); }, + printClick(i){ + uni.navigateTo({ + url: '../businessCard/cardPrint?optionData='+JSON.stringify(i) + }); + }, + provideCard(i){ + uni.navigateTo({ + url: '../businessCard/provideCard?optionData='+JSON.stringify(i) + }); + } + } } diff --git a/pages/businessCard/cardPrint.vue b/pages/businessCard/cardPrint.vue index 6f1119e..98672e8 100644 --- a/pages/businessCard/cardPrint.vue +++ b/pages/businessCard/cardPrint.vue @@ -1,12 +1,12 @@