From b513a09d8872fd19370096abec114d1010bc5e9c Mon Sep 17 00:00:00 2001 From: jcgitadmin Date: Sun, 28 Jun 2026 10:21:14 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B3=A8=E5=86=8C=E5=9F=9F=E5=90=8D?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/boot/axios.js | 1 + src/components/WinPosterInfo.vue | 2 +- src/pages/shop/SharePage.vue | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/boot/axios.js b/src/boot/axios.js index cc52107..8dabc53 100644 --- a/src/boot/axios.js +++ b/src/boot/axios.js @@ -62,6 +62,7 @@ service.interceptors.response.use( ); const api = { + registerDomain: 'https://www.dxzj8888.top/', domain: process.env.BASE_URL == '/'? (window.location.origin+'/') : process.env.BASE_URL, // TODO 刷新token checkUpdate(){ diff --git a/src/components/WinPosterInfo.vue b/src/components/WinPosterInfo.vue index cb26167..c40320a 100644 --- a/src/components/WinPosterInfo.vue +++ b/src/components/WinPosterInfo.vue @@ -65,7 +65,7 @@ const selfStore = useSelfStore(); const domRef = ref(null) let size = Math.ceil(window.innerWidth * (window.devicePixelRatio || 1) / 2) size = Math.ceil(size / 100) * 100 -const url = api.getQrcodeUrl(api.domain + 'register/index.html?shopsn=' + selfStore.shop.shop_sn + '&agtcid=' + selfStore.user.id, size) +const url = api.getQrcodeUrl(api.registerDomain + 'register/index.html?shopsn=' + selfStore.shop.shop_sn + '&agtcid=' + selfStore.user.id, size) function onClickSavePicture() { savePicture(domRef.value, selfStore.shop.name + (props.item.lottery_name || props.item.lottery?.name)) } diff --git a/src/pages/shop/SharePage.vue b/src/pages/shop/SharePage.vue index 30932a4..95cd18e 100644 --- a/src/pages/shop/SharePage.vue +++ b/src/pages/shop/SharePage.vue @@ -37,7 +37,7 @@ const $q = useQuasar() const domRef = ref(null) let size = Math.ceil(window.innerWidth*(window.devicePixelRatio||1)/2) size = Math.ceil(size/100)*100 -const url = api.getQrcodeUrl(api.domain+'register/index.html?shopsn='+selfStore.shop.shop_sn+'&agtcid='+selfStore.user.id,size) +const url = api.getQrcodeUrl(api.registerDomain+'register/index.html?shopsn='+selfStore.shop.shop_sn+'&agtcid='+selfStore.user.id,size) function onClickSavePicture(){ savePicture(domRef.value,selfStore.shop.name)