Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gl_help
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
CI / CD Analytics
Repository Analytics
Value Stream Analytics
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Max
gl_help
Commits
9f6cafb5
Commit
9f6cafb5
authored
Aug 15, 2023
by
何毅恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更新正式
parent
e0f10f60
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
10 deletions
+18
-10
.env.production
.env.production
+2
-2
README.md
README.md
+10
-0
src/main.ts
src/main.ts
+2
-2
src/pages/mobile/articleDetails/index.vue
src/pages/mobile/articleDetails/index.vue
+2
-4
src/pages/mobile/index.vue
src/pages/mobile/index.vue
+2
-2
No files found.
.env.production
View file @
9f6cafb5
...
...
@@ -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/'
README.md
View file @
9f6cafb5
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.
...
...
src/main.ts
View file @
9f6cafb5
...
...
@@ -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
)
...
...
src/pages/mobile/articleDetails/index.vue
View file @
9f6cafb5
...
...
@@ -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
,
};
...
...
src/pages/mobile/index.vue
View file @
9f6cafb5
...
...
@@ -75,7 +75,7 @@ onMounted(() => {
if
(
globalProperties
.
$wx
.
isWeixin
())
{
wx
.
miniProgram
.
postMessage
({
data
:
{
url
:
"
https://
test
help.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://
test
help.gelifood.com/index.html#/mobile
"
,
url
:
"
https://help.gelifood.com/index.html#/mobile
"
,
title
:
"
格利帮助中心
"
,
imageUrl
:
"
../../assets/img/helpImg.png
"
,
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment