Commit a74ddfd4 authored by 袁玲利's avatar 袁玲利

缓存本地sessionid和userid

parent c186e1d7
...@@ -126,6 +126,13 @@ export default { ...@@ -126,6 +126,13 @@ export default {
this.params.behavior = "viewPage"; this.params.behavior = "viewPage";
this.params.data = "gameOrder"; this.params.data = "gameOrder";
this.GameStatistics(); this.GameStatistics();
if (this.params.userid) {
uni.setStorageSync("userid", this.params.userid);
}
if (this.params.sessionid) {
uni.setStorageSync("sessionid", this.params.sessionid);
}
this.init(); this.init();
}, },
methods: { methods: {
...@@ -242,8 +249,6 @@ export default { ...@@ -242,8 +249,6 @@ export default {
clearInterval(this.timer); clearInterval(this.timer);
this.timer = null; this.timer = null;
} }
uni.setStorageSync("userid", this.params.userid);
uni.setStorageSync("sessionid", this.params.sessionid);
}, },
}; };
</script> </script>
......
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