Commit 33e40cf9 by 李嘉林

首页接口加参数

parent b56feba0
...@@ -11,7 +11,7 @@ export default { ...@@ -11,7 +11,7 @@ export default {
let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {}; let extConfig = wx.getExtConfigSync ? wx.getExtConfigSync() : {};
console.log(extConfig, "-----------extConfig"); console.log(extConfig, "-----------extConfig");
if (JSON.stringify(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 { ...@@ -221,6 +221,7 @@ export default {
.themePagesInfo({ .themePagesInfo({
shopid, shopid,
shopMixId: mixid, shopMixId: mixid,
homePageFlag: true
}) })
.then((response) => { .then((response) => {
if (response.data.code == 200) { if (response.data.code == 200) {
......
...@@ -13,7 +13,7 @@ export default { ...@@ -13,7 +13,7 @@ export default {
// 页面数据 // 页面数据
themePagesInfo(params) { themePagesInfo(params) {
return requestPOST( 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 params
); );
}, },
......
...@@ -140,6 +140,7 @@ function getThemePage({mixid,shopid}) { ...@@ -140,6 +140,7 @@ function getThemePage({mixid,shopid}) {
.themePagesInfo({ .themePagesInfo({
shopid, shopid,
shopMixId: mixid, shopMixId: mixid,
homePageFlag: true
}) })
.then((response) => { .then((response) => {
if (response.data.code == 200) { if (response.data.code == 200) {
......
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