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

更新正式

parent e0f10f60
......@@ -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/'
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.
......
......@@ -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)
......
......@@ -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,
};
......
......@@ -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",
},
......
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