From 6921c82ad3ff804f9666bb3aef73f0530be68975 Mon Sep 17 00:00:00 2001 From: Waiting Date: Wed, 12 Jun 2024 23:01:53 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=88=86=E4=BA=AB=E6=9C=AA?= =?UTF-8?q?=E6=B3=A8=E5=86=8C=E5=BA=97=E9=93=BA=E7=9A=84=E5=9B=A2=E8=B4=AD?= =?UTF-8?q?=E5=88=B8=E7=9A=84=E6=B3=A8=E5=86=8C=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 13 +--- src/api/company/index.ts | 2 + src/pages/common/groupbuy/detail.vue | 1 + src/pages/coupons/ticketsBuy/ticketsBuy.vue | 18 ++++- src/pages/home/index.vue | 68 +++++++++++-------- src/pages/index/index.vue | 5 ++ .../subs/coupon/components/coupon-item.vue | 4 +- src/store/modules/user/index.ts | 4 +- src/utils/auth/index.ts | 2 +- 9 files changed, 73 insertions(+), 44 deletions(-) diff --git a/src/App.vue b/src/App.vue index ed74f41..6854727 100644 --- a/src/App.vue +++ b/src/App.vue @@ -101,15 +101,6 @@ export default { }, 500); } } - - //原先商品团购 - if(options?.path?.includes('ticketsBuy/ticketsBuy') && options?.query.couponsId) { - setTimeout(() => { - uni.reLaunch({ - url: 'pages/common/groupbuy/detail?couponId=' + options?.query.couponsId - }); - }, 500); - } } logger.info(`App Launch options ${env}: { companyId: `, getCompanyId() + ', storeId: ' + getRegisterStoreId() + ' }'); @@ -128,7 +119,9 @@ export default { globalData: { logger: logger, companyId: getCompanyId(), - storeId: getRegisterStoreId() + storeId: getRegisterStoreId(), + shareCompanyId: '', + shareStoreId: '' } }; diff --git a/src/api/company/index.ts b/src/api/company/index.ts index 178da15..8c8831e 100644 --- a/src/api/company/index.ts +++ b/src/api/company/index.ts @@ -2,3 +2,5 @@ import { get } from '@/utils/request'; export const getCompanyList = (maOpenId: string) => get({ url: `/wc/wechat/company?maOpenId=${maOpenId}` }); export const getCompanyInfo = () => get({ url: `/ext/zconfig/company_find` }); + +export const getStoreId = (data: any) => get({ url: '/wc/wechat/get_store_id', data }); diff --git a/src/pages/common/groupbuy/detail.vue b/src/pages/common/groupbuy/detail.vue index ac1b053..d9f33ed 100644 --- a/src/pages/common/groupbuy/detail.vue +++ b/src/pages/common/groupbuy/detail.vue @@ -157,6 +157,7 @@ import { getGoodsList } from '@/api/goods'; import { GoodsBean } from '@/api/goods/types'; import { useUserStore } from '@/store'; import { GroupBuyBean, RecordBean } from '@/api/groupbuy/types'; +import { getStoreId } from '@/api/company'; const userStore = useUserStore(); const { userInfo } = storeToRefs(userStore); diff --git a/src/pages/coupons/ticketsBuy/ticketsBuy.vue b/src/pages/coupons/ticketsBuy/ticketsBuy.vue index 917e7e9..e571bed 100644 --- a/src/pages/coupons/ticketsBuy/ticketsBuy.vue +++ b/src/pages/coupons/ticketsBuy/ticketsBuy.vue @@ -4,10 +4,26 @@