From c3839f37ef25141d17a2f6e8935fedf140f8fc8d Mon Sep 17 00:00:00 2001
From: youmengting <2080639302@qq.com>
Date: Thu, 16 Nov 2023 13:51:19 +0800
Subject: [PATCH] =?UTF-8?q?=E5=9B=A2=E8=B4=AD=E8=AE=A2=E5=8D=95=E6=A0=B8?=
=?UTF-8?q?=E9=94=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
App.vue | 2 +
Utils/groupBuying.js | 13 +-
.../groupVerify/groupVerify.vue | 266 +++++++++++++++++-
3 files changed, 268 insertions(+), 13 deletions(-)
diff --git a/App.vue b/App.vue
index 22be895..82a2902 100644
--- a/App.vue
+++ b/App.vue
@@ -7,10 +7,12 @@
// url: 'https://pay.dctpay.com/crest',
// imgUrl: 'https://gratia-pay.obs.cn-southwest-2.myhuaweicloud.com',
// redirectUrl:'https://pay.dctpay.com/cweb',
+ // hsgUrl:'https://hsg.dctpay.com',
//测试
url: 'https://gratia-pay.dctpay.com/crest',
imgUrl: 'https://gratia-pay-test.obs.cn-east-3.myhuaweicloud.com',
redirectUrl:'https://gratia-pay.dctpay.com/cweb',
+ hsgUrl:'https://hsgcs.dctpay.com',
userInfo: "",
openId: '',
h5code: '',
diff --git a/Utils/groupBuying.js b/Utils/groupBuying.js
index 8bf9cea..430efa2 100644
--- a/Utils/groupBuying.js
+++ b/Utils/groupBuying.js
@@ -3,7 +3,8 @@ import {
} from './Request.js';
let app = getApp();
let base = app.globalData.url;
-
+let hsgCrest = app.globalData.hsgUrl+'/crest';
+let hsgOrder = app.globalData.hsgUrl+'/order';
//新增门店图片
export const insertStoreImg = params => {
@@ -105,4 +106,14 @@ export const editStoreExtMsg = params => {
//查询门店扩展信息
export const findStoreExtMsgByStoreId = params => {
return POST('POST', `${base}/storeGroup/findStoreExtMsgByStoreId`, params).then(res => res.data);
+}
+
+//查询获取团购内容code
+export const getGroupContentByCode = params => {
+ return POST('GET', `${hsgCrest}/group/getGroupContentByCode`, params).then(res => res.data);
+}
+
+//核销团购码
+export const gorOrderNotify = params => {
+ return POST('GET', `${hsgOrder}/groupOrder/gorOrderNotify`, params).then(res => res.data);
}
\ No newline at end of file
diff --git a/subpackages/groupBuyingConfiguration/groupVerify/groupVerify.vue b/subpackages/groupBuyingConfiguration/groupVerify/groupVerify.vue
index 3201a0d..9cb453a 100644
--- a/subpackages/groupBuyingConfiguration/groupVerify/groupVerify.vue
+++ b/subpackages/groupBuyingConfiguration/groupVerify/groupVerify.vue
@@ -1,22 +1,264 @@
-
- ========={{key}}========
-
+
+
+
+
+
+ {{detailData.name}}
+
+ 现价:¥{{detailData.price}}
+
+ 原价:¥{{detailData.originalPrice}}
+
+
+
+
+
+
+
+
+
+
+ 限制
+
+ {{detailData.astrict}}
+
+
+
+ 须知
+
+ {{detailData.serviceTime}}
+
+
+
+
+
+
+
+
+ 团购
+
+
+
+
+
+
+ {{item.name}}
+
+
+
+
+
+
+ {{item2.productName}}
+ ({{item2.count}}份)
+
+
+
+
+
+
+
+
+ 购买须知
+
+
+
+ 有效期
+
+
+
+ {{detailData.validity || ''}}
+
+
+
+
+ 使用时间
+
+
+
+ {{detailData.serviceTime || ''}}
+
+
+
+
+ 使用规则
+
+
+
+ {{detailData.storeGroupServeRule.content || ''}}
+
+
+
+
+
+ 立即核销
+
+
+
+
+
-
\ No newline at end of file