chunk-2d0dabb0.ce07c8a3.js 1.3 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0dabb0"],{"6d9e":function(t,e,s){"use strict";s.r(e);var n=function(){var t=this,e=t.$createElement,s=t._self._c||e;return s("div",[s("div",{staticClass:"p-5 items-center bg-white shadow flex justify-between items-center"},[s("div",[s("p",{staticClass:"text-2xl "},[t._v(t._s(t.username))]),s("p",{staticClass:"text-gray-500 pt-2 "},[t._v(t._s(t.phone))])]),s("van-button",{attrs:{type:"danger",size:"small"},on:{click:t.logout}},[t._v("退出登录")])],1),s("div",{staticClass:"mt-3"},[s("van-cell",{attrs:{title:"我的订单",icon:"balance-list-o",to:"/bid/orders","is-link":""}}),s("van-cell",{attrs:{title:"修改密码",icon:"setting-o","is-link":"",to:"/personal/password"}})],1)])},o=[],i={data:function(){return{username:"",phone:"",house_id:0,house:{id:0}}},mounted:function(){console.log(this.$store.getters),this.username=this.$store.getters.username,this.phone=this.$store.getters.phone},methods:{logout:function(){var t=this;this.$dialog.confirm({title:"提示",message:"确定要退出登录吗?"}).then((function(){t.$store.dispatch("user/logout").then((function(){t.$router.push("/login?redirect=".concat(t.$route.fullPath))}))})).catch((function(t){console.log(t)}))}}},a=i,l=s("cba8"),r=Object(l["a"])(a,n,o,!1,null,null,null);e["default"]=r.exports}}]);