Commit 065c0e78 by member

窜号登录

parent fe5e6bfb
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.8eb3e67a38da290ad316ca2bd75b530c.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.12.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.1.80.js></script><script type=text/javascript src=./static/js/manifest.dd18cff55454704134f3.js></script><script type=text/javascript src=./static/js/vendor.83081d6a93a866b5b8f1.js></script><script type=text/javascript src=./static/js/app.55a915df0e89c1ae1453.js></script></body></html>
\ No newline at end of file
<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" href=./favicon.ico><title>GIC-会员标签</title><link href=./static/css/app.717c9247b78273cd91145f530c48dff8.css rel=stylesheet></head><body style="background-color: #f0f2f5;min-width: 1400px;"><div id=app></div><script src=//web-1251519181.file.myqcloud.com/lib/vue/2.6.6/vue.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vue-router/3.0.2/vue-router.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/vuex/3.1.0/vuex.min.js></script><script src=//web-1251519181.file.myqcloud.com/lib/elementUI/index.2.5.4.js></script><script src=//web-1251519181.file.myqcloud.com/components/header.2.0.20.js></script><script src=//web-1251519181.file.myqcloud.com/components/footer.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/store-new.2.0.12.js></script><script src=//web-1251519181.file.myqcloud.com/components/aside-menu.2.0.02.js></script><script src=//web-1251519181.file.myqcloud.com/components/area-ab.2.0.00.js></script><script src=//web-1251519181.file.myqcloud.com/components/card.2.0.02.js></script><script src=//web-1251519181.cos.ap-shanghai.myqcloud.com/components/selector.1.1.80.js></script><script type=text/javascript src=./static/js/manifest.dd18cff55454704134f3.js></script><script type=text/javascript src=./static/js/vendor.83081d6a93a866b5b8f1.js></script><script type=text/javascript src=./static/js/app.ee37679d65f0f7f94037.js></script></body></html>
\ No newline at end of file
webpackJsonp([32],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5reh":function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return r}),a.d(t,"c",function(){return i});var n="login",o="logout",r="title",i="show"},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Vna/")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),r=a("hKoQ"),i=a.n(r),u=a("Dd8w"),m=a.n(u),l=a("SJI6"),c=a.n(l),s={name:"App",data:function(){return{}},computed:m()({},Object(l.mapState)(["uniqueId"])),created:function(){this.baseUrl=window.location.origin.indexOf("localhost")>-1?"http://gicdev.demogic.com":window.location.origin,this._getUserInfo(),this.changeTab()},methods:{_getUserInfo:function(){var e=this;this.axios.get(this.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;""===e.uniqueId&&e.$store.commit("changeUniqueId",a)}})},changeTab:function(){var e=this;document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.axios.get(e.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;e.uniqueId!==a&&e.$confirm("出现窜号情况,请首先核对好是哪个商户再进行操作!","提示",{type:"error"}).then(function(){e.$store.commit("changeUniqueId",a),window.location.reload()}).catch(function(){e.$store.commit("changeUniqueId",a),window.location.reload()})}})})}}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var g,d=a("VU/8")(s,p,!1,function(e){a("Y5c+")},null,null).exports,f=a("pRNm"),v=a.n(f),h=a("5tgt"),T=a.n(h),b=function(e){a.e(1).then(a.bind(null,"EE2z")).then(function(t){e(t)})},w=[{path:"/",name:"index",redirect:"member-tag",component:T()("index","index"),children:[{path:"/member-tag",name:"会员标签",component:T()("platformTag","member-tag"),meta:{title:"会员标签"}},{path:"/platformTagList",component:T()("platformTag","platformTagList"),name:"平台标签列表",meta:{title:"会员标签-平台标签列表"}},{path:"/platformTagDetail",component:T()("platformTag","platformTagDetail"),name:"平台标签详情",meta:{title:"会员标签-平台标签详情"}},{path:"/manualTagLib",component:T()("manualTag","manualTagLib"),name:"手工标签库",meta:{title:"会员标签-手工标签库"}},{path:"/manualTagList",component:T()("manualTag","manualTagList"),name:"手工标签列表",meta:{title:"会员标签-手工标签列表"}},{path:"/manualTagValueEdit",component:T()("manualTag","manual-tag-value-edit"),name:"标签值设置",meta:{title:"会员标签-标签值设置"}},{path:"/manualTagDetail",component:T()("manualTag","manualTagDetail"),name:"手工标签详情",meta:{title:"会员标签-手工标签详情"}},{path:"/myTagLib",component:T()("myTag","myTagLib"),name:"会员标签",meta:{title:"会员标签"}},{path:"/myTagList",component:T()("myTag","myTagList"),name:"我的标签库列表",meta:{title:"会员标签-我的标签库列表"}},{path:"/myTagDetail",component:T()("myTag","myTagDetail"),name:"标签详情",meta:{title:"会员标签-标签详情"}}]},{path:"/memberGroupList",name:"memberGroupListIndex",redirect:"memberGroupList",component:T()("memberGroup","index"),children:[{path:"/memberGroupList",component:T()("memberGroup","memberGroupList"),name:"会员分组",meta:{title:"会员标签-会员分组"}},{path:"/memberGroupDetail",component:T()("memberGroup","memberGroupDetail"),name:"分组详情",meta:{title:"会员标签-分组详情"}},{path:"/memberGroupEdit",component:T()("memberGroup","memberGroupEdit"),name:"编辑分组",meta:{title:"会员标签-编辑分组"}}]},{path:"/403",name:"无权访问",component:b},{path:"/404",name:"error404",component:b},{path:"/500",name:"error500",component:b},{path:"*",redirect:"/404",hidden:!0}],G=new v.a({routes:w,scrollBehavior:function(){return{y:0}}}),y=a("zL8q"),L=a("Rf8U"),x=a.n(L),q=a("mtWM"),I=a.n(q),V=a("bOdI"),k=a.n(V),P=a("lRwf"),j=a.n(P),U=a("5reh");j.a.use(c.a);var D=new c.a.Store({state:{user:{},token:null,title:"",show:!1,tagRealName:"",uniqueId:""},mutations:(g={},k()(g,U.a,function(e,t){sessionStorage.token=t,e.token=t}),k()(g,U.b,function(e){sessionStorage.removeItem("token"),e.token=null}),k()(g,U.d,function(e,t){e.title=t}),k()(g,U.c,function(e,t){e.show=t}),k()(g,"modiftTagName",function(e,t){e.tagRealName=t}),k()(g,"changeUniqueId",function(e,t){e.uniqueId=t||""}),g)}),E=(a("Xcu2"),a("4qCZ"),a("uKUT"),a("GqmT")),N=a.n(E);i.a.polyfill(),Vue.use(N.a),Vue.config.devtools=!0,Vue.use(x.a,I.a),Vue.axios.defaults.withCredentials=!0,Vue.axios.interceptors.request.use(function(e){return e},function(e){return o.a.reject(e)}),Vue.axios.interceptors.response.use(function(e){return 200==e.status&&e.data.errorCode,e},function(e){if(e.response)switch(e.response.status){case 401:window.location.href=window.location.origin+"/gic-web/#/";case 500:y.Message.error("服务器500")}return o.a.reject(e.response.data)}),new Vue({el:"#app",router:G,store:D,components:{App:d},template:"<App/>"}),console.log(Vue.config)},SJI6:function(e,t){e.exports=Vuex},"Vna/":function(e,t,a){var n={"./errorPage/401.vue":["4KSJ",9],"./errorPage/403.vue":["aM+6",6],"./errorPage/404.vue":["PRsh",7],"./errorPage/500.vue":["/HCr",8],"./errorPage/index.vue":["EE2z",1],"./index/index.vue":["YPWR",13],"./linktools/linktools.vue":["Lc2x",0,22],"./linktools/linktoolsold.vue":["/8lq",0,14],"./linktools/linktoolspage.vue":["HLON",0,18],"./login/login.vue":["6Qob",0,24],"./manualTag/manual-tag-value-edit.vue":["umZJ",0,2],"./manualTag/manualTagDetail.vue":["Tl/4",0,16],"./manualTag/manualTagEdit.vue":["308P",0,12],"./manualTag/manualTagLib.vue":["q490",0,25],"./manualTag/manualTagList.vue":["f0o3",0,20],"./memberGroup/edit-tag.vue":["jkVl",0],"./memberGroup/group-list.vue":["SJ7l",0,28],"./memberGroup/index.vue":["Gy5W",19],"./memberGroup/memberGroupDetail.vue":["+/ey",0,5],"./memberGroup/memberGroupEdit.vue":["q0vu",0,11],"./memberGroup/memberGroupList.vue":["oVck",0,4],"./memberGroup/recommend-table.vue":["9ZvA",30],"./memberGroup/tags-group-list.vue":["vcge",0],"./memberGroup/tags-group.vue":["wx1P",0],"./myTag/myTagDetail.vue":["ijla",0,15],"./myTag/myTagLib.vue":["twLH",0,26],"./myTag/myTagList.vue":["NJTp",0,21],"./platformTag/add-tag.vue":["tKpj",29],"./platformTag/member-tag.vue":["bytj",0,3],"./platformTag/platformTagDetail.vue":["KN59",0,10],"./platformTag/platformTagLib.vue":["puJc",0,27],"./platformTag/platformTagList.vue":["G/on",0,17],"./platformTag/second-tag.vue":["CUHN",0],"./platformTag/tag-container.vue":["Gndl",0],"./platformTag/tag-type.vue":["iHP3",0,23]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Vna/",e.exports=o},Xcu2:function(e,t){},"Y5c+":function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
webpackJsonp([32],{0:function(e,t,a){a("j1ja"),e.exports=a("NHnr")},"4qCZ":function(e,t){},"5reh":function(e,t,a){"use strict";a.d(t,"a",function(){return n}),a.d(t,"b",function(){return o}),a.d(t,"d",function(){return r}),a.d(t,"c",function(){return i});var n="login",o="logout",r="title",i="show"},"5tgt":function(e,t,a){e.exports=function(e,t){return function(n){a("Vna/")("./"+e+"/"+t+".vue").then(function(e){n(e)})}}},GjDF:function(e,t){},NHnr:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("//Fk"),o=a.n(n),r=a("hKoQ"),i=a.n(r),u=a("Dd8w"),m=a.n(u),l=a("SJI6"),c=a.n(l),s={name:"App",data:function(){return{}},computed:m()({},Object(l.mapState)(["uniqueId"])),created:function(){this.baseUrl=window.location.origin.indexOf("localhost")>-1?"http://gicdev.demogic.com":window.location.origin,this._getUserInfo(),this.changeTab()},methods:{laout:function(){this.axios.get(this.baseUrl+"/api-auth/do-logout?requestProject=gic-member-tag-web")},_getUserInfo:function(){var e=this;this.axios.get(this.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;""===e.uniqueId&&e.$store.commit("changeUniqueId",a)}})},changeTab:function(){var e=this;document.addEventListener("visibilitychange",function(){"visible"===document.visibilityState&&e.axios.get(e.baseUrl+"/api-auth/get-login-user-info?requestProject=gic-member-tag-web").then(function(t){if(0==t.data.errorCode){var a=t.data.result&&t.data.result.userId;e.uniqueId!==a&&e.$confirm("当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请退出重新登录!","登录账号变更提示",{confirmButtonText:"退出重新登录",cancelButtonText:"刷新页面",type:"error"}).then(function(){e.laout(),window.location.reload()}).catch(function(){e.laout(),window.location.reload()})}})})}}},p={render:function(){var e=this.$createElement,t=this._self._c||e;return t("div",{attrs:{id:"app"}},[t("transition",{attrs:{name:"fade",mode:"out-in"}},[t("router-view")],1)],1)},staticRenderFns:[]};var g,d=a("VU/8")(s,p,!1,function(e){a("GjDF")},null,null).exports,f=a("pRNm"),b=a.n(f),h=a("5tgt"),v=a.n(h),T=function(e){a.e(1).then(a.bind(null,"EE2z")).then(function(t){e(t)})},w=[{path:"/",name:"index",redirect:"member-tag",component:v()("index","index"),children:[{path:"/member-tag",name:"会员标签",component:v()("platformTag","member-tag"),meta:{title:"会员标签"}},{path:"/platformTagList",component:v()("platformTag","platformTagList"),name:"平台标签列表",meta:{title:"会员标签-平台标签列表"}},{path:"/platformTagDetail",component:v()("platformTag","platformTagDetail"),name:"平台标签详情",meta:{title:"会员标签-平台标签详情"}},{path:"/manualTagLib",component:v()("manualTag","manualTagLib"),name:"手工标签库",meta:{title:"会员标签-手工标签库"}},{path:"/manualTagList",component:v()("manualTag","manualTagList"),name:"手工标签列表",meta:{title:"会员标签-手工标签列表"}},{path:"/manualTagValueEdit",component:v()("manualTag","manual-tag-value-edit"),name:"标签值设置",meta:{title:"会员标签-标签值设置"}},{path:"/manualTagDetail",component:v()("manualTag","manualTagDetail"),name:"手工标签详情",meta:{title:"会员标签-手工标签详情"}},{path:"/myTagLib",component:v()("myTag","myTagLib"),name:"会员标签",meta:{title:"会员标签"}},{path:"/myTagList",component:v()("myTag","myTagList"),name:"我的标签库列表",meta:{title:"会员标签-我的标签库列表"}},{path:"/myTagDetail",component:v()("myTag","myTagDetail"),name:"标签详情",meta:{title:"会员标签-标签详情"}}]},{path:"/memberGroupList",name:"memberGroupListIndex",redirect:"memberGroupList",component:v()("memberGroup","index"),children:[{path:"/memberGroupList",component:v()("memberGroup","memberGroupList"),name:"会员分组",meta:{title:"会员标签-会员分组"}},{path:"/memberGroupDetail",component:v()("memberGroup","memberGroupDetail"),name:"分组详情",meta:{title:"会员标签-分组详情"}},{path:"/memberGroupEdit",component:v()("memberGroup","memberGroupEdit"),name:"编辑分组",meta:{title:"会员标签-编辑分组"}}]},{path:"/403",name:"无权访问",component:T},{path:"/404",name:"error404",component:T},{path:"/500",name:"error500",component:T},{path:"*",redirect:"/404",hidden:!0}],G=new b.a({routes:w,scrollBehavior:function(){return{y:0}}}),x=a("zL8q"),y=a("Rf8U"),L=a.n(y),q=a("mtWM"),V=a.n(q),j=a("bOdI"),k=a.n(j),I=a("lRwf"),P=a.n(I),D=a("5reh");P.a.use(c.a);var U=new c.a.Store({state:{user:{},token:null,title:"",show:!1,tagRealName:"",uniqueId:""},mutations:(g={},k()(g,D.a,function(e,t){sessionStorage.token=t,e.token=t}),k()(g,D.b,function(e){sessionStorage.removeItem("token"),e.token=null}),k()(g,D.d,function(e,t){e.title=t}),k()(g,D.c,function(e,t){e.show=t}),k()(g,"modiftTagName",function(e,t){e.tagRealName=t}),k()(g,"changeUniqueId",function(e,t){e.uniqueId=t||""}),g)}),E=(a("Xcu2"),a("4qCZ"),a("uKUT"),a("GqmT")),N=a.n(E);i.a.polyfill(),Vue.use(N.a),Vue.config.devtools=!0,Vue.use(L.a,V.a),Vue.axios.defaults.withCredentials=!0,Vue.axios.interceptors.request.use(function(e){return e},function(e){return o.a.reject(e)}),Vue.axios.interceptors.response.use(function(e){return 200==e.status&&e.data.errorCode,e},function(e){if(e.response)switch(e.response.status){case 401:window.location.href=window.location.origin+"/gic-web/#/";case 500:x.Message.error("服务器500")}return o.a.reject(e.response.data)}),new Vue({el:"#app",router:G,store:U,components:{App:d},template:"<App/>"}),console.log(Vue.config)},SJI6:function(e,t){e.exports=Vuex},"Vna/":function(e,t,a){var n={"./errorPage/401.vue":["4KSJ",9],"./errorPage/403.vue":["aM+6",6],"./errorPage/404.vue":["PRsh",7],"./errorPage/500.vue":["/HCr",8],"./errorPage/index.vue":["EE2z",1],"./index/index.vue":["YPWR",13],"./linktools/linktools.vue":["Lc2x",0,22],"./linktools/linktoolsold.vue":["/8lq",0,14],"./linktools/linktoolspage.vue":["HLON",0,18],"./login/login.vue":["6Qob",0,24],"./manualTag/manual-tag-value-edit.vue":["umZJ",0,2],"./manualTag/manualTagDetail.vue":["Tl/4",0,16],"./manualTag/manualTagEdit.vue":["308P",0,12],"./manualTag/manualTagLib.vue":["q490",0,25],"./manualTag/manualTagList.vue":["f0o3",0,20],"./memberGroup/edit-tag.vue":["jkVl",0],"./memberGroup/group-list.vue":["SJ7l",0,28],"./memberGroup/index.vue":["Gy5W",19],"./memberGroup/memberGroupDetail.vue":["+/ey",0,5],"./memberGroup/memberGroupEdit.vue":["q0vu",0,11],"./memberGroup/memberGroupList.vue":["oVck",0,4],"./memberGroup/recommend-table.vue":["9ZvA",30],"./memberGroup/tags-group-list.vue":["vcge",0],"./memberGroup/tags-group.vue":["wx1P",0],"./myTag/myTagDetail.vue":["ijla",0,15],"./myTag/myTagLib.vue":["twLH",0,26],"./myTag/myTagList.vue":["NJTp",0,21],"./platformTag/add-tag.vue":["tKpj",29],"./platformTag/member-tag.vue":["bytj",0,3],"./platformTag/platformTagDetail.vue":["KN59",0,10],"./platformTag/platformTagLib.vue":["puJc",0,27],"./platformTag/platformTagList.vue":["G/on",0,17],"./platformTag/second-tag.vue":["CUHN",0],"./platformTag/tag-container.vue":["Gndl",0],"./platformTag/tag-type.vue":["iHP3",0,23]};function o(e){var t=n[e];return t?Promise.all(t.slice(1).map(a.e)).then(function(){return a(t[0])}):Promise.reject(new Error("Cannot find module '"+e+"'."))}o.keys=function(){return Object.keys(n)},o.id="Vna/",e.exports=o},Xcu2:function(e,t){},lRwf:function(e,t){e.exports=Vue},pRNm:function(e,t){e.exports=VueRouter},uKUT:function(e,t){}},[0]);
\ No newline at end of file
......@@ -28,6 +28,9 @@ export default {
},
methods: {
laout() {
this.axios.get(`${this.baseUrl}/api-auth/do-logout?requestProject=gic-member-tag-web`);
},
_getUserInfo() {
this.axios.get(`${this.baseUrl}/api-auth/get-login-user-info?requestProject=gic-member-tag-web`).then((res) => {
if (res.data.errorCode == 0) {
......@@ -47,13 +50,15 @@ export default {
const uId = res.data.result && res.data.result.userId;
// 两次的uId不等 表示账号有冲突
if (this.uniqueId !== uId) {
this.$confirm('出现窜号情况,请首先核对好是哪个商户再进行操作!', '提示', {
this.$confirm('当前登录账号已经发生变化,如果您在其他页面已经登录另一个账号,请退出重新登录!', '登录账号变更提示', {
confirmButtonText: '退出重新登录',
cancelButtonText: '刷新页面',
type: 'error'
}).then(() => {
this.$store.commit('changeUniqueId', uId);
this.laout();
window.location.reload();
}).catch(() => {
this.$store.commit('changeUniqueId', uId);
this.laout();
window.location.reload();
});
}
......
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