diff --git a/image/check.png b/image/check.png
new file mode 100644
index 0000000..458d1fe
Binary files /dev/null and b/image/check.png differ
diff --git a/image/close.png b/image/close.png
new file mode 100644
index 0000000..1f5e291
Binary files /dev/null and b/image/close.png differ
diff --git a/src/api/weixin/index.js b/src/api/weixin/index.js
new file mode 100644
index 0000000..12e8525
--- /dev/null
+++ b/src/api/weixin/index.js
@@ -0,0 +1,52 @@
+import {
+ service
+} from "../../utils/service";
+import {
+ localPath
+} from "../api.js";
+
+// 获取微信公众号access_token
+export function getAccessToken() {
+ return service({
+ url: "/weixinApi" + "/cgi-bin/token?grant_type=client_credential&appid=wx3c108aae98b1433c&secret=9ed5097e93b5a0e909dbe2b347d068ac",
+ method: "get",
+ });
+}
+// 根据微信公众号access_token获取ticket
+export function getTicket(accessToken, data) {
+ return service({
+ url: "/weixinApi" + "/cgi-bin/qrcode/create?access_token=" + accessToken,
+ method: "post",
+ data
+ });
+}
+// 通过ticket换取二维码
+export function getQrCode(data) {
+ return service({
+ url: "/weixinMp" + "/cgi-bin/showqrcode?ticket=" + data,
+ method: "get",
+ responseType: "blob"
+ });
+}
+// 通过后台过去公众号图片
+export function getJavaQrCode(data) {
+ return service({
+ url: "/api" + "/platformCoupon/thePublic",
+ method: "post",
+ responseType: "blob"
+ });
+}
+// 通过后台获取用户扫描的openid
+export function getJavaOpenid(data) {
+ return service({
+ url: "/api" + "/platformCoupon/openid",
+ method: "post",
+ });
+}
+// 清除后台获取的openid
+export function doDeleteJavaOpenid(data) {
+ return service({
+ url: "/api" + "/platformCoupon/gcopenid",
+ method: "post",
+ });
+}
diff --git a/src/pages/discount-coupon/issue/components/Tencent.vue b/src/pages/discount-coupon/issue/components/Tencent.vue
new file mode 100644
index 0000000..bd7c764
--- /dev/null
+++ b/src/pages/discount-coupon/issue/components/Tencent.vue
@@ -0,0 +1,37 @@
+
+
+
+
+
+
+
diff --git a/src/pages/discount-coupon/issue/components/edit.vue b/src/pages/discount-coupon/issue/components/edit.vue
index 0b81d50..1e7d68b 100644
--- a/src/pages/discount-coupon/issue/components/edit.vue
+++ b/src/pages/discount-coupon/issue/components/edit.vue
@@ -101,17 +101,21 @@
+
+
+
+
diff --git a/src/pages/discount-coupon/issue/components/styles/template.css b/src/pages/discount-coupon/issue/components/styles/template.css
index 05d4dcf..fb9641a 100644
--- a/src/pages/discount-coupon/issue/components/styles/template.css
+++ b/src/pages/discount-coupon/issue/components/styles/template.css
@@ -25,6 +25,7 @@
/* margin-bottom: 30px; */
padding: 13px;
background-color: #f8f8f8;
+ overflow-y: auto;
}
.container .box .box-item > .item .image {
height: 250px;
@@ -61,11 +62,41 @@
margin-bottom: 10px;
}
.container .box .box-item > .item .tips .tips_msg .tips_msg_item {
- color: #000;
- line-height: 18px;
+ line-height: 20px;
display: flex;
}
-.container .box .box-item > .item .tips .tips_msg .tips_msg_item .bot {
+.container
+ .box
+ .box-item
+ > .item
+ .tips
+ .tips_msg
+ .tips_msg_item
+ .tips_msg_item_title {
+ width: 64px;
+ color: #666;
+}
+.container
+ .box
+ .box-item
+ > .item
+ .tips
+ .tips_msg
+ .tips_msg_item
+ .tips_msg_item_content {
+ width: 210px;
+}
+.tips .tips_msg .tips_msg_item .tips_msg_item_titles {
+ width: 30px;
+}
+.tips .tips_msg .tips_msg_item .tips_msg_item_titles .bot {
+ width: 8px;
+ height: 8px;
+ background-color: #fc9c24;
+ margin-top: 6px;
+ border-radius: 50%;
+}
+/* .container .box .box-item > .item .tips .tips_msg .tips_msg_item .bot {
width: 25px;
padding-top: 6px;
}
@@ -75,4 +106,4 @@
border-radius: 50%;
background-color: #fc9c24;
line-height: 18px;
-}
+} */
diff --git a/src/pages/discount-coupon/issue/components/template.vue b/src/pages/discount-coupon/issue/components/template.vue
index 0d643d5..dad8fc6 100644
--- a/src/pages/discount-coupon/issue/components/template.vue
+++ b/src/pages/discount-coupon/issue/components/template.vue
@@ -14,13 +14,67 @@
分享
-
风险提示
+
优惠规则!
+
-
-
+
优惠金额:
+
+ {{form.serviceConditions===0?`满${form.fullReductionMoney}元减${form.fullKimsMoney}元`:`${form.fullKimsMoney}元无门槛代金券`}}
+
+
+ {{form.serviceConditions===0?`消费单据满${form.fullReductionMoney}元打${form.fullDiscountMoney}%折扣`:`${form.fullDiscountMoney}无门槛折扣券`}}
+
+
直接免单
+
+
+
+
分润金额:
+
+ 每一位领取人消费后可获得{{form.fixedAmount}}元分润,可提现至微信
+
+ 每一位领取人消费后可获得消费单据的{{form.orderCommission}}%分润,可提现至微信
+
+
+
+
有效日期:
+
+ {{date.startDate}} 至 {{date.endDate}}
+
+
+ 领取后{{form.startDay}}天生效,生效后{{form.endDay}}天内有效
+
+
+
+
适用门店:
+
{{form.suitableStore===0?'所有门店':storeList}}
+
+
+
+
+
适用项目:
+
{{form.suitableProject===0?'所有项目':projectList}}
-
请先点击领取优惠券后再分享,否则分享出去的优惠券领取人消费后的分润不属于您!
+
+
+
+
+
风险提示!
+
+
+
+
+ 分享被领取后,且优惠券被领取人消费了,即可获得{{form.fixedAmount}}元分润金额,并且可提现到微信
+
+ 分享被领取后,且优惠券被领取人消费了,即可获得消费单据的{{form.orderCommission}}%分润金额,并且可提现到微信
+
+
+
+
需要先领取优惠券后再分享,这样其他扔领取了您分享的优惠券并消费后才会获得分润,否则无法获得分润
@@ -37,23 +91,37 @@
+
diff --git a/src/pages/discount-coupon/management/index.vue b/src/pages/discount-coupon/management/index.vue
index 2067341..f029757 100644
--- a/src/pages/discount-coupon/management/index.vue
+++ b/src/pages/discount-coupon/management/index.vue
@@ -27,6 +27,13 @@
反审核
审核失败
退款中
+ 打款待审
+ 通过
+ 不通过
+ 反审核
+ 已发布
+ 已回收
+ 已关闭