webpackJsonp([6],{U9iU:function(t,n,e){t.exports=e.p+"static/img/login-back.61ab38a.png"},YAxI:function(t,n){},qHAY:function(t,n,e){t.exports=e.p+"static/img/logo-casic.f80a271.png"},qxtq:function(t,n,e){"use strict";Object.defineProperty(n,"__esModule",{value:!0});var s=e("Au9i"),a=(e("KvKp"),e("44Su"),e("MIpE"),{name:"testpage",data:function(){return{backgroundImg:e("U9iU"),logoImg:e("qHAY"),token:"暂无",card:"暂无",name:"暂无",yys:"暂无"}},methods:{getFromAndroid:function(){var t=JSON.parse(window.android.getUser());console.log(t),this.card=t.card,this.name=t.name,this.yys=t.yys},getToken:function(){var t=this;this.$store.dispatch("IDLogin").then(function(n){Object(s.Toast)("用身份证号登录后台成功"),t.token=n.data.token}).catch(function(t){Object(s.Toast)("获取token失败")})},getUser:function(){this.$store.dispatch("getUser").then(function(t){Object(s.Toast)("获取用户信息成功")}).catch(function(t){Object(s.Toast)("获取用户信息失败")})},goIndex:function(){this.$router.replace({name:"index"})}}}),i={render:function(){var t=this,n=t.$createElement,e=t._self._c||n;return e("transition",{attrs:{name:"slide"}},[e("div",{staticClass:"login",style:{backgroundImage:"url("+t.backgroundImg+")"}},[e("div",{staticClass:"test"},[e("div",[t._v("\n 身份证号:"+t._s(t.card)+"\n ")]),t._v(" "),e("div",[t._v("\n 姓名:"+t._s(t.name)+"\n ")]),t._v(" "),e("div",[t._v("\n 运营商:"+t._s(t.yys)+"\n ")]),t._v(" "),e("div",[t._v("\n token:"+t._s(t.token)+"\n ")]),t._v(" "),e("mt-button",{attrs:{type:"primary"},on:{click:t.getFromAndroid}},[t._v("从安卓获取用户")])],1),t._v(" "),e("div",{staticClass:"test"},[e("mt-button",{attrs:{type:"primary"},on:{click:t.getToken}},[t._v("后台请求token")])],1),t._v(" "),e("div",{staticClass:"test"},[e("mt-button",{attrs:{type:"primary"},on:{click:t.getUser}},[t._v("获取用户信息")])],1),t._v(" "),e("div",{staticClass:"test"},[e("mt-button",{attrs:{type:"primary"},on:{click:t.goIndex}},[t._v("跳转主页")])],1)])])},staticRenderFns:[]};var o=e("VU/8")(a,i,!1,function(t){e("YAxI")},"data-v-ba0fd074",null);n.default=o.exports}}); //# sourceMappingURL=6.dcd790ec5c7da1c82fe7.js.map