Commit f42331c0 authored by Mac's avatar Mac

1

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