diff --git a/common/common.js b/common/common.js
index 8dc7f8b..c243734 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";
//陈彪接口
@@ -220,7 +218,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/cardDetail.vue b/pages/businessCard/cardDetail.vue
index 2e850cb..e56869d 100644
--- a/pages/businessCard/cardDetail.vue
+++ b/pages/businessCard/cardDetail.vue
@@ -334,21 +334,37 @@ export default {
console.log('picker发送选择改变,携带值为', e.detail.value)
this.index = e.detail.value
this.cardType = storage[this.index].id
+ this.pageNum = 1
+ this.pageSize = this.pageSize
+ this.totalPages = 1
+ this.dataList = []
this.couponIssuedParkPage()
},
bindPickerChangeWay: function (e, storage) {
console.log(storage)
this.indexWay = e.detail.value
this.isUesed = storage[this.indexWay].id
+ this.pageNum = 1
+ this.pageSize = this.pageSize
+ this.totalPages = 1
+ this.dataList = []
this.couponIssuedParkPage()
},
bindStartDateChange: function (e) {
console.log(e.detail.value)
this.beginTime = e.detail.value
+ this.pageNum = 1
+ this.pageSize = this.pageSize
+ this.totalPages = 1
+ this.dataList = []
this.couponIssuedParkPage()
},
bindEndDateChange: function (e) {
this.endTime = e.detail.value
+ this.pageNum = 1
+ this.pageSize = this.pageSize
+ this.totalPages = 1
+ this.dataList = []
this.couponIssuedParkPage()
},
getDate(type) {
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 @@
-
+
-
+
-
+
@@ -14,11 +14,10 @@
打印张数:
-
+
-
@@ -29,127 +28,64 @@