Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mayi-mp-shop
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
程默
mayi-mp-shop
Commits
33e40cf9
Commit
33e40cf9
authored
Nov 25, 2021
by
李嘉林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页接口加参数
parent
b56feba0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
src/App.vue
+2
-1
src/api/shop.js
+1
-1
src/main.js
+1
-0
No files found.
src/App.vue
View file @
33e40cf9
...
...
@@ -11,7 +11,7 @@ export default {
let
extConfig
=
wx
.
getExtConfigSync
?
wx
.
getExtConfigSync
()
:
{};
console
.
log
(
extConfig
,
"-----------extConfig"
);
if
(
JSON
.
stringify
(
extConfig
)
==
"{}"
)
{
extConfig
=
process
.
env
.
NODE_ENV
==
"development"
?
{
mixid
:
"
CL"
,
shopid
:
1671
}:{
"mixid"
:
"CL"
,
"shopid"
:
1166
};
extConfig
=
process
.
env
.
NODE_ENV
==
"development"
?
{
mixid
:
"
antgood"
,
shopid
:
67
}:{
"mixid"
:
"CL"
,
"shopid"
:
1166
};
}
...
...
@@ -221,6 +221,7 @@ export default {
.
themePagesInfo
({
shopid
,
shopMixId
:
mixid
,
homePageFlag
:
true
})
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
==
200
)
{
...
...
src/api/shop.js
View file @
33e40cf9
...
...
@@ -13,7 +13,7 @@ export default {
// 页面数据
themePagesInfo
(
params
)
{
return
requestPOST
(
`
${
process
.
env
.
OLSHOP_URL
}
/cms/get_shop_install_pages`
,
`
${
process
.
env
.
OLSHOP_URL
}
/cms/get_shop_install_pages
?homePageFlag=
${
params
.
homePageFlag
||
false
}
`
,
params
);
},
...
...
src/main.js
View file @
33e40cf9
...
...
@@ -140,6 +140,7 @@ function getThemePage({mixid,shopid}) {
.
themePagesInfo
({
shopid
,
shopMixId
:
mixid
,
homePageFlag
:
true
})
.
then
((
response
)
=>
{
if
(
response
.
data
.
code
==
200
)
{
...
...
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