From 9f6cafb5e0015ded11642bdc4aaf7c12202b24e7 Mon Sep 17 00:00:00 2001 From: heyiheng <vastisy@163.com> Date: Tue, 15 Aug 2023 16:07:56 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=AD=A3=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.production | 4 ++-- README.md | 10 ++++++++++ src/main.ts | 4 ++-- src/pages/mobile/articleDetails/index.vue | 6 ++---- src/pages/mobile/index.vue | 4 ++-- 5 files changed, 18 insertions(+), 10 deletions(-) diff --git a/.env.production b/.env.production index e7d3e63..dbb1bdc 100644 --- a/.env.production +++ b/.env.production @@ -7,6 +7,6 @@ VITE_NODE_ENV=production VUE_APP_TITLE=生产环境 # 测试 -VITE_API_BASE_URL='https://c.gelifood.com/index.php/api/' -# VITE_API_BASE_URL='https://cms.gelifood.com/index.php/api/' +# VITE_API_BASE_URL='https://c.gelifood.com/index.php/api/' +VITE_API_BASE_URL='https://cms.gelifood.com/index.php/api/' diff --git a/README.md b/README.md index ef72fd5..91a856c 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,13 @@ + +yarn dev + +yarn build + +.env.production åŠ main.ts 地å€åˆ‡æ¢ +测试环境 'https://c.gelifood.com/' +æ£å¼çŽ¯å¢ƒ 'https://cms.gelifood.com/' + + # Vue 3 + TypeScript + Vite This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more. diff --git a/src/main.ts b/src/main.ts index 1aadf3b..febd3e3 100644 --- a/src/main.ts +++ b/src/main.ts @@ -16,8 +16,8 @@ import wx from './utils/wxJssdk' app.config.globalProperties.$wx = wx -app.config.globalProperties.$img = 'https://c.gelifood.com/' -// app.config.globalProperties.$img = 'https://cms.gelifood.com/' +// app.config.globalProperties.$img = 'https://c.gelifood.com/' +app.config.globalProperties.$img = 'https://cms.gelifood.com/' app.use(pinia) app.use(router) diff --git a/src/pages/mobile/articleDetails/index.vue b/src/pages/mobile/articleDetails/index.vue index ade6c2a..ff50201 100644 --- a/src/pages/mobile/articleDetails/index.vue +++ b/src/pages/mobile/articleDetails/index.vue @@ -74,8 +74,7 @@ const getInformationDetail = async (id) => { wxJssdk(); wx.miniProgram.postMessage({ data: { - url: - "https://testhelp.gelifood.com/index.html#/articleDetails?id=" + id, + url: "https://help.gelifood.com/index.html#/articleDetails?id=" + id, title: informationDetail.value.title, imageUrl: imgUrl + informationDetail.value.promotional_image, }, @@ -94,8 +93,7 @@ const wxJssdk = () => { if (globalProperties.$wx.isWeixin()) { let obj = { title: informationDetail.value.title, - link: - "https://testhelp.gelifood.com/index.html#/articleDetails?id=" + id, + link: "https://help.gelifood.com/index.html#/articleDetails?id=" + id, desc: "", imgUrl: informationDetail.value.promotional_image, }; diff --git a/src/pages/mobile/index.vue b/src/pages/mobile/index.vue index 2fd1a5e..1665610 100644 --- a/src/pages/mobile/index.vue +++ b/src/pages/mobile/index.vue @@ -75,7 +75,7 @@ onMounted(() => { if (globalProperties.$wx.isWeixin()) { wx.miniProgram.postMessage({ data: { - url: "https://testhelp.gelifood.com/index.html", + url: "https://help.gelifood.com/index.html", title: "æ ¼åˆ©å¸®åŠ©ä¸å¿ƒ", }, }); @@ -147,7 +147,7 @@ const getInformationList = async () => { wx.miniProgram.postMessage({ data: { - url: "https://testhelp.gelifood.com/index.html#/mobile", + url: "https://help.gelifood.com/index.html#/mobile", title: "æ ¼åˆ©å¸®åŠ©ä¸å¿ƒ", imageUrl: "../../assets/img/helpImg.png", }, -- 2.24.1