Commit a416ae91 by 程智春

Merge branch 'nativehome_tst' of http://code.mayi888.com/chengmo/mayi-mp-shop into nativehome_tst

parents 29ea7dc0 4ddd37da
...@@ -22,14 +22,14 @@ export default { ...@@ -22,14 +22,14 @@ export default {
return { return {
link: process.env.BASE_URL, link: process.env.BASE_URL,
page: "/", page: "/",
params: "?mixid=" + this.$store.state.mixid + `&tabbar=1&location_obj=${wx.getStorageSync("location")}`, params: "?mixid=" + this.$store.state.mixid,
index: 1, index: 1,
ss: "", ss: "",
}; };
}, },
computed: { computed: {
pageUrl() { pageUrl() {
return this.link + this.page + this.params + this.ss; return this.link + this.page + this.params + `&tabbar=1&location_obj=${wx.getStorageSync("location")}` + this.ss;
}, },
}, },
onLoad(options) { onLoad(options) {
...@@ -50,11 +50,15 @@ export default { ...@@ -50,11 +50,15 @@ export default {
let ss = wx.getStorageSync("sessionid"); let ss = wx.getStorageSync("sessionid");
if (!this.ss && ss) { if (!this.ss && ss) {
this.ss = `&sessionid=${ss}`; this.ss = `&sessionid=${ss}`;
}else if(!ss){
!this.params.includes('logOut=true') && (this.params+="&logOut=true")
}else{ }else{
this.params+=`&timestamp=${new Date().getTime()}` this.params+=`&timestamp=${new Date().getTime()}`
} }
setTabBarActive.bind(this)(this.index); setTabBarActive.bind(this)(this.index);
console.log('----',this.pageUrl)
}, },
methods: { methods: {
handleError(data) { handleError(data) {
......
...@@ -21,14 +21,14 @@ export default { ...@@ -21,14 +21,14 @@ export default {
return { return {
link: process.env.BASE_URL, link: process.env.BASE_URL,
page: "/", page: "/",
params: "?mixid=" + this.$store.state.mixid + `&tabbar=2&location_obj=${wx.getStorageSync("location")}`, params: "?mixid=" + this.$store.state.mixid ,
index: 2, index: 2,
ss: "", ss: "",
}; };
}, },
computed: { computed: {
pageUrl() { pageUrl() {
return this.link + this.page + this.params + this.ss; return this.link + this.page + this.params+ `&tabbar=2&location_obj=${wx.getStorageSync("location")}` + this.ss;
}, },
}, },
onLoad(options) { onLoad(options) {
...@@ -49,11 +49,15 @@ export default { ...@@ -49,11 +49,15 @@ export default {
let ss = wx.getStorageSync("sessionid"); let ss = wx.getStorageSync("sessionid");
if (!this.ss && ss) { if (!this.ss && ss) {
this.ss = `&sessionid=${ss}`; this.ss = `&sessionid=${ss}`;
}else if(!ss){
this.params+="&logOut=true"
}else{ }else{
this.params+=`&timestamp=${new Date().getTime()}` this.params+=`&timestamp=${new Date().getTime()}`
} }
setTabBarActive.bind(this)(this.index); setTabBarActive.bind(this)(this.index);
console.log('----',this.pageUrl)
}, },
methods: { methods: {
handleError(data) { handleError(data) {
......
...@@ -21,14 +21,14 @@ export default { ...@@ -21,14 +21,14 @@ export default {
return { return {
link: process.env.BASE_URL, link: process.env.BASE_URL,
page: "/", page: "/",
params: "?mixid=" + this.$store.state.mixid + `&tabbar=3&location_obj=${wx.getStorageSync("location")}`, params: "?mixid=" + this.$store.state.mixid,
index: 3, index: 3,
ss: "", ss: "",
}; };
}, },
computed: { computed: {
pageUrl() { pageUrl() {
return this.link + this.page + this.params + this.ss; return this.link + this.page + this.params + `&tabbar=3&location_obj=${wx.getStorageSync("location")}` + this.ss;
}, },
}, },
onLoad(options) { onLoad(options) {
...@@ -55,11 +55,15 @@ export default { ...@@ -55,11 +55,15 @@ export default {
let ss = wx.getStorageSync("sessionid"); let ss = wx.getStorageSync("sessionid");
if (!this.ss && ss) { if (!this.ss && ss) {
this.ss = `&sessionid=${ss}`; this.ss = `&sessionid=${ss}`;
}else if(!ss){
this.params+="&logOut=true"
}else{ }else{
this.params+=`&timestamp=${new Date().getTime()}` this.params+=`&timestamp=${new Date().getTime()}`
} }
setTabBarActive.bind(this)(this.index); setTabBarActive.bind(this)(this.index);
console.log('----',this.pageUrl)
}, },
methods: { methods: {
handleError(data) { handleError(data) {
......
...@@ -21,14 +21,14 @@ export default { ...@@ -21,14 +21,14 @@ export default {
return { return {
link: process.env.BASE_URL, link: process.env.BASE_URL,
page: "/", page: "/",
params: "?mixid=" + this.$store.state.mixid + `&tabbar=4&location_obj=${wx.getStorageSync("location")}`, params: "?mixid=" + this.$store.state.mixid,
index: 4, index: 4,
ss: "", ss: "",
}; };
}, },
computed: { computed: {
pageUrl() { pageUrl() {
return this.link + this.page + this.params + this.ss; return this.link + this.page + this.params + `&tabbar=4&location_obj=${wx.getStorageSync("location")}` + this.ss;
}, },
}, },
onLoad(options) { onLoad(options) {
...@@ -55,11 +55,15 @@ export default { ...@@ -55,11 +55,15 @@ export default {
let ss = wx.getStorageSync("sessionid"); let ss = wx.getStorageSync("sessionid");
if (!this.ss && ss) { if (!this.ss && ss) {
this.ss = `&sessionid=${ss}`; this.ss = `&sessionid=${ss}`;
}else if(!ss){
this.params+="&logOut=true"
}else{ }else{
this.params+=`&timestamp=${new Date().getTime()}` this.params+=`&timestamp=${new Date().getTime()}`
} }
setTabBarActive.bind(this)(this.index); setTabBarActive.bind(this)(this.index);
console.log('----',this.pageUrl)
}, },
methods: { methods: {
handleError(data) { handleError(data) {
......
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