require("../sub-vendors.js"),(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9656],{8982:function(n,s,t){var e=t(4160),c=t(5652),i=t(2555),o=t(4576),a=t(758),r=t(4269),u=t(2573),l=t.n(u),f=t(7422),h=t(9424),m=t(24),g=t(3816),d=t(4911),A=t(6070),x="".concat(f.A.spmA,".setting");Page((0,e.eU)((function(){var n=(0,a.useState)(!1),s=(0,o.A)(n,2),t=s[0],e=s[1],f=(0,a.useState)(""),v=(0,o.A)(f,2),w=v[0],S=v[1],b=function(){e(!0),m.M.certificationStatus().then((function(n){var s=(0,o.A)(n,2),t=(s[0],s[1]);!0===(null==t?void 0:t.verification)?S("已认证"):S("未认证")})).catch((function(n){S("未认证")}))};(0,u.useDidShow)((0,i.A)((0,c.A)().m((function n(){var s;return(0,c.A)().w((function(n){for(;;)switch(n.n){case 0:return S(""),e(!1),n.n=1,g.A.isLogin();case 1:if(!n.v){n.n=2;break}b(),n.n=4;break;case 2:return n.n=3,g.A.login();case 3:s=n.v,s.success?b():l().showToast({title:"登录失败请重试~",icon:"none"});case 4:return n.a(2)}}),n)}))));return(0,A.jsxs)(r.Ss,{className:"setting-container",children:[(0,A.jsx)(r.Ss,{className:"setting-list",children:(0,A.jsxs)(r.Ss,{className:"setting-list-item",onClick:function(){t&&d.A.navTo("https://m.damai.cn/shows/mine/certificate.html",{spm:x},{needLogin:!0})},children:[(0,A.jsx)(r.Ss,{className:"item-left",children:"实名认证"}),(0,A.jsxs)(r.Ss,{className:"item-right",children:[w,(0,A.jsx)(h.A,{style:{color:"#b6b6b6"}})]})]})}),(0,A.jsx)(r.Ss,{className:"setting-logout-wrap",onClick:function(){l().showModal({title:"提示信息",content:"您确定要退出登录吗？",success:function(n){n.confirm&&g.A.logout().then((function(){g.A.logoutH5()})).catch((function(n){}))}})},children:(0,A.jsx)(r.Ss,{className:"setting-logout-box",children:"退出登录"})})]})}),"subPackages/setting/index",{root:{cn:[]}},{}||{}))}},function(n){n.O(0,[6907,8096,2076],(function(){return s=8982,n(n.s=s);var s})),n.O()}]);