(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a0bc2cd6"],{"0790":function(e,t,a){"use strict";var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("van-nav-bar",{attrs:{title:e.title,"left-text":"","left-arrow":""},on:{"click-left":e.back}},[a("van-icon",{attrs:{slot:"left",name:e.backHome?"wap-home":"arrow-left"},slot:"left"})],1)},s=[],c={name:"NavBar",data:function(){return{backHome:!1}},props:{title:{type:String,required:!0,default:""}},created:function(){this.$util.sessionStorage.fetch("backHome")&&(this.backHome=!0)},mounted:function(){},methods:{back:function(){this.backHome?(this.$util.sessionStorage.remove("backHome"),this.$router.push("/")):window.history.length>1?window.history.go(-1):this.$router.push("/")}}},n=c,o=(a("ba46"),a("2877")),l=Object(o["a"])(n,i,s,!1,null,"530892b0",null);l.options.__file="NavBar.vue";t["a"]=l.exports},"485d":function(e,t,a){},"753c":function(e,t,a){"use strict";var i=a("485d"),s=a.n(i);s.a},"7b33":function(e,t,a){"use strict";a.r(t);var i=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"account-wrap"},[a("nav-bar",{attrs:{title:"设置"}}),a("van-cell-group",[a("h4",[e._v("账号绑定")]),a("van-cell",{staticClass:"line hasValue",class:{noBind:!e.data.mobile},attrs:{title:"手机号",value:e.data.mobile||"未绑定","is-link":!e.data.mobile},on:{click:function(t){e.goNextPage("editMobile")}}}),a("van-cell",{staticClass:"line hasValue email",class:{noBind:!e.data.email},attrs:{title:"邮箱",value:e.data.email||"未绑定","is-link":!e.data.email},on:{click:function(t){e.goNextPage("editMail")}}}),a("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"flex_sb align-c bindAccount"},[a("div",{staticClass:"title"},[a("p",[e._v("微信")]),e.data.wechat?a("span",[e._v(e._s(e.data.wechat))]):e._e()]),a("div",{staticClass:"switch-wrap"},[a("van-switch",{model:{value:e.wechatChecked,callback:function(t){e.wechatChecked=t},expression:"wechatChecked"}})],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"flex_sb align-c bindAccount"},[a("div",{staticClass:"title"},[a("p",[e._v("微博")]),e.data.weibo?a("span",[e._v(e._s(e.data.weibo))]):e._e()]),a("div",{staticClass:"switch-wrap"},[a("van-switch",{model:{value:e.weiboChecked,callback:function(t){e.weiboChecked=t},expression:"weiboChecked"}})],1)]),a("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],staticClass:"flex_sb align-c bindAccount noline"},[a("div",{staticClass:"title"},[a("p",[e._v("facebook")]),e.data.facebook?a("span",[e._v(e._s(e.data.facebook))]):e._e()]),a("div",{staticClass:"switch-wrap"},[a("van-switch",{model:{value:e.facebookChecked,callback:function(t){e.facebookChecked=t},expression:"facebookChecked"}})],1)]),a("h4",[e._v("安全设置")]),a("van-cell",{staticClass:"line hasValue",attrs:{title:"登录密码",value:"修改","is-link":""},on:{click:function(t){e.goNextPage("editPassword")}}})],1)],1)},s=[],c=(a("cadf"),a("551c"),a("097d"),a("0790")),n={name:"Account",components:{NavBar:c["a"]},data:function(){return{wechatChecked:!1,weiboChecked:!1,facebookChecked:!1,data:{}}},created:function(){this.getData();var e=this.$util.getLoginUserInfo();e&&(this.data=JSON.parse(decodeURIComponent(e)),this.data.wechat&&(this.wechatChecked=!0),this.data.weibo&&(this.weiboChecked=!0),this.data.facebook&&(this.facebookChecked=!0))},methods:{getData:function(){var e=this,t={};t.url=this.$apis.api_user_info_get,this.$net.req(t,this).then(function(t){e.data=t.data},function(t){e.$Toast(t.msg)})},goNextPage:function(e){var t=this.$store.state.langStr;"editMobile"===e&&this.data.mobile||"editMail"===e&&this.data.email||this.$router.push({path:"/"+t+"/user/"+e})}}},o=n,l=(a("753c"),a("2877")),d=Object(l["a"])(o,i,s,!1,null,"3587036e",null);d.options.__file="account.vue";t["default"]=d.exports},"8d1f":function(e,t,a){},ba46:function(e,t,a){"use strict";var i=a("8d1f"),s=a.n(i);s.a}}]);
//# sourceMappingURL=chunk-a0bc2cd6.c76b62bc.js.map