Commit 9f6cafb5 authored by 何毅恒's avatar 何毅恒

更新正式

parent e0f10f60
...@@ -7,6 +7,6 @@ VITE_NODE_ENV=production ...@@ -7,6 +7,6 @@ VITE_NODE_ENV=production
VUE_APP_TITLE=生产环境 VUE_APP_TITLE=生产环境
# 测试 # 测试
VITE_API_BASE_URL='https://c.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/' VITE_API_BASE_URL='https://cms.gelifood.com/index.php/api/'
yarn dev
yarn build
.env.production 及 main.ts 地址切换
测试环境 'https://c.gelifood.com/'
正式环境 'https://cms.gelifood.com/'
# Vue 3 + TypeScript + Vite # 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. 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.
......
...@@ -16,8 +16,8 @@ import wx from './utils/wxJssdk' ...@@ -16,8 +16,8 @@ import wx from './utils/wxJssdk'
app.config.globalProperties.$wx = wx app.config.globalProperties.$wx = wx
app.config.globalProperties.$img = 'https://c.gelifood.com/' // app.config.globalProperties.$img = 'https://c.gelifood.com/'
// app.config.globalProperties.$img = 'https://cms.gelifood.com/' app.config.globalProperties.$img = 'https://cms.gelifood.com/'
app.use(pinia) app.use(pinia)
app.use(router) app.use(router)
......
...@@ -74,8 +74,7 @@ const getInformationDetail = async (id) => { ...@@ -74,8 +74,7 @@ const getInformationDetail = async (id) => {
wxJssdk(); wxJssdk();
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data: { data: {
url: url: "https://help.gelifood.com/index.html#/articleDetails?id=" + id,
"https://testhelp.gelifood.com/index.html#/articleDetails?id=" + id,
title: informationDetail.value.title, title: informationDetail.value.title,
imageUrl: imgUrl + informationDetail.value.promotional_image, imageUrl: imgUrl + informationDetail.value.promotional_image,
}, },
...@@ -94,8 +93,7 @@ const wxJssdk = () => { ...@@ -94,8 +93,7 @@ const wxJssdk = () => {
if (globalProperties.$wx.isWeixin()) { if (globalProperties.$wx.isWeixin()) {
let obj = { let obj = {
title: informationDetail.value.title, title: informationDetail.value.title,
link: link: "https://help.gelifood.com/index.html#/articleDetails?id=" + id,
"https://testhelp.gelifood.com/index.html#/articleDetails?id=" + id,
desc: "", desc: "",
imgUrl: informationDetail.value.promotional_image, imgUrl: informationDetail.value.promotional_image,
}; };
......
...@@ -75,7 +75,7 @@ onMounted(() => { ...@@ -75,7 +75,7 @@ onMounted(() => {
if (globalProperties.$wx.isWeixin()) { if (globalProperties.$wx.isWeixin()) {
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data: { data: {
url: "https://testhelp.gelifood.com/index.html", url: "https://help.gelifood.com/index.html",
title: "格利帮助中心", title: "格利帮助中心",
}, },
}); });
...@@ -147,7 +147,7 @@ const getInformationList = async () => { ...@@ -147,7 +147,7 @@ const getInformationList = async () => {
wx.miniProgram.postMessage({ wx.miniProgram.postMessage({
data: { data: {
url: "https://testhelp.gelifood.com/index.html#/mobile", url: "https://help.gelifood.com/index.html#/mobile",
title: "格利帮助中心", title: "格利帮助中心",
imageUrl: "../../assets/img/helpImg.png", imageUrl: "../../assets/img/helpImg.png",
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment