diff --git a/.env.dev b/.env.dev index 840177a..147a552 100644 --- a/.env.dev +++ b/.env.dev @@ -4,4 +4,5 @@ VITE_PROXY_API_URL = "/API" VITE_CORP_ID = "4G7H8J2K9L0M1N3P5Q6R7S8T9U" VITE_NEED_LOGIN = "true" VITE_NEED_IM = "true" -VITE_NEED_CA = "true" \ No newline at end of file +VITE_NEED_CA = "true" +VITE_STORE_QRCODE_BASE="https://www.youcan365.com/hn/hnhlw?storeId=" \ No newline at end of file diff --git a/.env.hn b/.env.hn index 0204154..42b87d8 100644 --- a/.env.hn +++ b/.env.hn @@ -4,3 +4,4 @@ VITE_NEED_IM = "true" VITE_NEED_CA = "false" VITE_CORP_ID = "4G7H8J2K9L0M1N3P5Q6R7S8T9U" VITE_API_URL = "https://patient.youcan365.com/hn/" +VITE_STORE_QRCODE_BASE="https://www.youcan365.com/hn/hnhlw?storeId=" diff --git a/src/views/drugstore/store-qrcode.vue b/src/views/drugstore/store-qrcode.vue index fc70e81..d6ae8cd 100644 --- a/src/views/drugstore/store-qrcode.vue +++ b/src/views/drugstore/store-qrcode.vue @@ -25,7 +25,7 @@ const props = defineProps({ store: { type: Object, default: () => ({}) }, visible: { type: Boolean, default: false }, }) -const qrcode = computed(() => props.store.store_id ? `https://zyt.youcan365.com/store?storeId=${props.store.store_id}` : '') // 写死震元堂的服务地址 +const qrcode = computed(() => props.store.store_id ? `${import.meta.env.VITE_STORE_QRCODE_BASE}${props.store.store_id}` : '') const qrcodeRef = ref() function close() { emits('close')