Commit 33e40cf9 by 李嘉林

首页接口加参数

parent b56feba0
......@@ -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) {
......
......@@ -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
);
},
......
......@@ -140,6 +140,7 @@ function getThemePage({mixid,shopid}) {
.themePagesInfo({
shopid,
shopMixId: mixid,
homePageFlag: true
})
.then((response) => {
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