Commit 7731ba34 by 刘泽奇

123

parent c54c9f34
......@@ -238,6 +238,17 @@
$.cookie('userpin', d.data.userpin);
this.$root.user_Name = d.data.userName;
this.$root.channelUserId = d.data.channelUserId;
if (this.$store.state.reqUrl == `/${this.$root.channelName}/bwselftmreg`) {
let { bwSubHistory } = localStorage;
console.log(bwSubHistory, ".................................");
if (bwSubHistory) {
this.$router.push({
path: `${this.$store.state.reqUrl}`,
query: { channelUserId: d.data.channelUserId, sdsId: 'zzsbzc', orderParams: { ...JSON.parse(bwSubHistory) } }
})
}
return;
}
if (!this.$store.state.reqUrl || this.$store.state.reqUrl == '/' || this.$store.state.reqUrl == `/${this.$root.channelName}/register`) {
this.$router.push({
path: `/${this.$root.channelName}/jdtrademark`,
......@@ -287,6 +298,7 @@
this.$root.loading = false;
console.log(d.msg);
if (d.status == 0) {
if (d.data.isAdmin) this.$root.superAdmin = d.data.isAdmin;
$.cookie('channelUserId', d.data.channelUserId);
$.cookie('userName', d.data.userName);
$.cookie('userpin', d.data.userpin);
......
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