"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[9195],{5646:function(e,n,t){var r=t(9439),c=t(1515),s=t(2954),a=t.n(s),o=t(7294),i=t(6538),u=t(6028),l=t(5893);n.Z=function NavBar(e){var n=e.children,t=e.hasLeft,s=void 0!==t&&t,h=e.title,f=void 0===h?"":h,d=e.leftSlot,v=e.onClickLeftIcon,m=(0,o.useRef)(null),g=(0,o.useRef)(null),x=(0,o.useRef)(0),p=(0,o.useRef)(0),Z=(0,o.useState)({}),N=(0,r.Z)(Z,2)[1],j=(0,o.useState)(0),k=(0,r.Z)(j,2),w=k[0],y=k[1];(0,o.useEffect)((function(){g.current=a().getSystemInfoSync(),m.current=a().getMenuButtonBoundingClientRect(),p.current=g.current.screenWidth/750,N({}),function handleLayout(){var e=g.current,n=e.statusBarHeight,t=!!(e.system.toLowerCase().search("ios")+1);x.current=t?4:0;var r=m.current,c=r.top,s=r.height+2*(c-n)+n;console.log("height",s),y(s)}()}),[]);var G=(0,o.useMemo)((function(){var e;return null===(e=m.current)||void 0===e?void 0:e.height}),[m.current]),B=(0,o.useMemo)((function(){var e;return null===(e=m.current)||void 0===e?void 0:e.top}),[m.current]);return(0,l.jsx)(c.G7,{className:i.Z.navBarContainer,style:{height:"".concat(w+x.current,"px")},children:(0,l.jsxs)(c.G7,{className:i.Z.navBar,style:{height:"".concat(G,"px"),marginTop:"".concat(B,"px")},children:[(0,l.jsx)(c.G7,{className:i.Z.left_view,children:s&&d?d:(0,l.jsxs)(c.G7,{className:i.Z.back,onClick:function handleClickLeftIcon(){null==v||v()},children:[(0,l.jsx)(u.Z,{name:"icon-zhankai",size:50,color:"#000000",customStyle:{transform:"rotate(90deg)"}}),(0,l.jsx)(c.G7,{className:i.Z.iconName,children:"返回"})]})}),(0,l.jsx)(c.G7,{className:i.Z.title,children:f||n}),(0,l.jsx)(c.G7,{className:i.Z.right_view})]})})}}}]);