Commit f42331c0 authored by Mac's avatar Mac

1

parent 72168b6c
......@@ -140,6 +140,7 @@ export default {
guidecar:{},
searchData:{}, //传递给search data
isNavPosition:0, //设置搜索框位置
IsOpenSchool:0,
};
},
components: {
......@@ -219,6 +220,7 @@ export default {
}
if (options && options.Up) {//校园id
uni.setStorageSync("Up", { Up: options.Up });
this.IsOpenSchool = options.Up
}
if (options && options.scene) {
......@@ -573,11 +575,15 @@ export default {
return n.substr(1);
},
init() {
if(this.IsOpenSchool==0){
this.IsOpenSchool = uni.getStorageSync("UserPageType")?uni.getStorageSync("UserPageType").UserPageType:0;
}
this.request2(
{
url: "/api/Mall/GetHome",
data: {
page_id: this.pageId,
IsOpenSchool:this.IsOpenSchool,
},
},
(res) => {
......
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