1 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-98b69284"],{"14d9":function(t,e,n){"use strict";var i=n("23e7"),r=n("7b0b"),s=n("07fa"),o=n("3a34"),a=n("3511"),l=n("d039"),c=l((function(){return 4294967297!==[].push.call({length:4294967296},1)})),u=function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}},h=c||!u();i({target:"Array",proto:!0,arity:1,forced:h},{push:function(t){var e=r(this),n=s(e),i=arguments.length;a(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return o(e,n),n}})},"32b3":function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"flex p-5 items-center justify-between bg-white shadow"},[t.name?e("router-link",{staticClass:"flex items-center",attrs:{to:"/personal/info"}},[e("van-image",{attrs:{round:"",width:"4rem",height:"4rem",src:t.headimgurl}}),e("p",{staticClass:"ml-5 text-xl"},[t._v(t._s(t.name))])],1):e("router-link",{staticClass:"flex items-center",attrs:{to:"/personal/info"}},[e("van-icon",{attrs:{name:"records",size:"26"}}),e("p",{staticClass:"ml-1 text-xl"},[t._v("设置个人信息")])],1),e("van-button",{attrs:{type:"danger",size:"small"},on:{click:t.logout}},[t._v("退出登录")])],1),e("div",{staticClass:"mt-3"},[e("van-cell",{attrs:{title:"手机号码",value:t.phone,icon:"phone-o"}}),e("van-cell",{attrs:{title:"我的房屋",icon:"wap-home-o",to:"/house/list","is-link":""}}),e("van-cell",{attrs:{title:"我的报修",icon:"repair","icon-prefix":"my-icon",to:"/orders","is-link":""}}),e("van-cell",{attrs:{title:"我的在建",icon:"todo-list-o",to:"/doing","is-link":""}}),e("van-cell",{attrs:{title:"我的积分",icon:"gold-coin-o","is-link":"",to:"/integral"}},[[e("span",{staticClass:"text-red-400 font-bold"},[t._v(" "+t._s(t.$store.getters.info.integral)+" ")])]],2),e("van-cell",{attrs:{title:"售后保障书",icon:"orders-o","is-link":"",to:"/book"}},[1==t.$store.getters.info.book?[e("span",{staticClass:"text-green-400"},[e("van-icon",{attrs:{name:"success"}}),e("span",[t._v("已同意")])],1)]:t._e()],2),e("van-cell",{attrs:{title:"联系客服",icon:"friends-o","is-link":"",to:"/qa/1/info"}}),e("van-cell",{attrs:{title:"解绑微信",icon:"delete-o","is-link":""},on:{click:t.unbindWeixin}})],1)])},r=[],s=(n("14d9"),{data:function(){return{name:"",headimgurl:"",phone:"",warranty_time:"",warranty_start:"",house_id:0,house:{id:0}}},mounted:function(){console.log(this.$store.getters),this.name=this.$store.getters.name?this.$store.getters.name:this.$store.getters.nickname,this.$store.getters.headimgurl&&(this.headimgurl=this.$store.getters.headimgurl,-1===this.headimgurl&&(this.headimgurl=this.$store.getters.setting.img_host+this.headimgurl)),this.house_id=this.$store.getters.house.id,this.phone=this.$store.getters.phone,this.warranty_start=this.$store.getters.house.warranty_start},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)}))},unbindWeixin:function(){var t=this;this.$dialog.confirm({title:"提示",message:"确定要解绑微信吗?"}).then((function(){t.$store.dispatch("user/unbindWeixin").then((function(){t.$router.push("/login?redirect=".concat(t.$route.fullPath))}))})).catch((function(t){console.log(t)}))}}}),o=s,a=n("2877"),l=Object(a["a"])(o,i,r,!1,null,null,null);e["default"]=l.exports},3511:function(t,e,n){"use strict";var i=TypeError,r=9007199254740991;t.exports=function(t){if(t>r)throw i("Maximum allowed index exceeded");return t}},"3a34":function(t,e,n){"use strict";var i=n("83ab"),r=n("e8b5"),s=TypeError,o=Object.getOwnPropertyDescriptor,a=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=a?function(t,e){if(r(t)&&!o(t,"length").writable)throw new s("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}}}]);
|