"use strict";(wx.webpackJsonp=wx.webpackJsonp||[]).push([[2932],{988:function(e,n,i){var o=i(9975),l=i(1515),a={common_safe_area_y:"index-module__common_safe_area_y___RJ72a","flex-col":"index-module__flex-col___j0SaS","flex-row":"index-module__flex-row___G67Mr","justify-between":"index-module__justify-between___o2ZdQ","items-center":"index-module__items-center___DpkKW","flex-item":"index-module__flex-item___NDlL_","full-100":"index-module__full-100___bfZjV","color-blue":"index-module__color-blue___e4CVh","color-yellow":"index-module__color-yellow___XKo9l","color-green":"index-module__color-green___qhsPZ","color-grey":"index-module__color-grey___lse1m","color-white":"index-module__color-white___ZTn6m",main:"index-module__main___b7kFd",userAvatar:"index-module__userAvatar___Hg8CS","userAvatar-text":"index-module__userAvatar-text___nUiCr",topBar:"index-module__topBar___gX3V5",middle:"index-module__middle___NZx_i",bottomBar:"index-module__bottomBar___himLl",username:"index-module__username___e9MeR",userno:"index-module__userno___n1UtZ",userTitle:"index-module__userTitle___KpPma","grid-container":"index-module__grid-container___lDgpL",layoutTabBar:"index-module__layoutTabBar___UFcnO",layoutTitle:"index-module__layoutTitle___GYRTo",layoutDescription:"index-module__layoutDescription___g44Jf"},_=i.p+"styles/image/defaultAvatar.png",r=i(7594),d=i(9943),c=i(1413),t=(i(9792),{common_safe_area_y:"index-module__common_safe_area_y___c3IGk","flex-col":"index-module__flex-col___EvHgH","flex-row":"index-module__flex-row___e9_JE","justify-between":"index-module__justify-between___Adfbc","items-center":"index-module__items-center___pJdWP","flex-item":"index-module__flex-item___VgFCa","full-100":"index-module__full-100___Qqz7M","color-blue":"index-module__color-blue___mz5Tb","color-yellow":"index-module__color-yellow___D_6XV","color-green":"index-module__color-green___wfAWO","color-grey":"index-module__color-grey___TlOoE","color-white":"index-module__color-white___IlM7o",divider:"index-module__divider___NiM_x","divider-vertical":"index-module__divider-vertical___fcb5j","divider-horizontal":"index-module__divider-horizontal___QlbGw","divider-text":"index-module__divider-text___N5itg","is-center":"index-module__is-center___MgUlH","is-left":"index-module__is-left___Vr1Km","is-right":"index-module__is-right___v9O21"}),s=i(6408),m=i.n(s),u=i(5513),x=function Divider(e){var n=e.direction,i=void 0===n?"horizontal":n,o=e.borderStyle,a=void 0===o?"solid":o,_=e.contentPosition,r=void 0===_?"center":_,d=e.customClassName,s=void 0===d?"":d,x=e.customStyles,h=void 0===x?{}:x,f=m()(t.divider,t["divider-"+i],s),g=m()(t["divider-text"],t["is-"+r]),p="horizontal"===i?{borderTopStyle:a}:{borderLeftStyle:a};return(0,u.jsx)(l.G7,{className:f,style:(0,c.Z)((0,c.Z)({},p),h),children:e.children&&"vertical"!==i&&(0,u.jsx)(l.G7,{className:g,children:e.children})})},h=i(4365),f=i(8560),g=i(3929),p=i(1115),v=[{iconName:"icon-lingquseka",name:"领取色卡",path:""},{iconName:"icon-pandiansaoma",name:"盘点扫码",path:""},{iconName:"icon-fahuoliebiao",name:"发货列表",path:"/pages/delivery/index"},{iconName:"icon-yaoqingma",name:"邀请码",path:""},{iconName:"icon-tihuoliebiao",name:"提货列表",path:"/pages/takeDelivery/index"},{iconName:"icon-shouhouzhongxin",name:"退货退款",path:"/pages/refundPage/index"},{iconName:"icon-shoukuanliebiao",name:"收款列表",path:"/pages/newCollection/index"},{iconName:"icon-kehuxinxi",name:"客户列表",path:""}],N=[{iconName:"icon-yansequyang",name:"颜色取样",path:"/pages/colorRelated/takeColor/index"},{iconName:"icon-qusechazhao",name:"取色查找",path:"/pages/colorRelated/findColor/index"},{iconName:"icon-yangpinduibi",name:"样品对比",path:"/pages/colorRelated/sampleComparison/index"}],y=[{iconName:"icon-xiaoshou",name:"销售",path:""},{iconName:"icon-duizhang",name:"对账",path:""},{iconName:"icon-yuncangkucun",name:"云仓库存",path:""},{iconName:"icon-qianzhicangkucun",name:"前置仓库存",path:""}],j=function UserInfo(){var e,n,i=(0,g.Z)(),o=i.removeToken,_=i.removeUserInfo,c=i.userInfo,t=function handleClickIconCard(e){(0,p.jD)(e.path,{},"navigateTo")};return(0,u.jsxs)(u.Fragment,{children:[(0,u.jsxs)(h.Z,{circle:!0,children:[(0,u.jsxs)(l.G7,{className:a.topBar,children:[(0,u.jsx)(l.G7,{className:a.left,children:(0,u.jsx)(b,{src:null===(e=c.userInfo)||void 0===e?void 0:e.avatar_url})}),(0,u.jsxs)(l.G7,{className:a.middle,children:[(0,u.jsx)(l.xv,{className:a.username,children:null===(n=c.userInfo)||void 0===n?void 0:n.user_name}),(0,u.jsx)(l.xv,{className:a.userno,children:c.userInfo.user_code})]}),(0,u.jsx)(l.G7,{className:a.right,children:(0,u.jsx)(r.Z,{type:"primary",round:!0,size:"normal",onClick:function handleLogout(){o(),_(),(0,p.jD)("/pages/login/index",{},"reLaunch")},children:"退出登录"})})]}),(0,u.jsxs)(l.G7,{className:a.bottomBar,children:[(0,u.jsx)(d.Z,{type:"primary",size:"normal",circle:!0,customStyle:{marginRight:"10px"},children:c.userInfo.department_name}),(0,u.jsx)(x,{direction:"vertical"}),(0,u.jsx)(l.xv,{className:a.userTitle,children:"IT-开发总监"})]})]}),(0,u.jsxs)(h.Z,{circle:!0,children:[(0,u.jsx)(l.G7,{className:a.layoutTitle,children:"功能特色"}),(0,u.jsx)(l.G7,{className:a["grid-container"],children:v.map((function(e){return(0,u.jsx)(f.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return t(e)}})}))})]}),(0,u.jsxs)(h.Z,{circle:!0,children:[(0,u.jsx)(l.G7,{className:a.layoutTitle,children:"布料取色"}),(0,u.jsx)(l.G7,{className:a["grid-container"],children:N.map((function(e){return(0,u.jsx)(f.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return t(e)}})}))})]}),(0,u.jsxs)(h.Z,{circle:!0,children:[(0,u.jsx)(l.G7,{className:a.layoutTitle,children:"统计分析"}),(0,u.jsx)(l.G7,{className:a["grid-container"],children:y.map((function(e){return(0,u.jsx)(f.Z,{iconName:e.iconName,title:e.name,onClick:function onClick(){return t(e)}})}))})]})]})},b=function UserAvatar(e){var n=e.src;return(0,u.jsxs)(l.G7,{className:a.userAvatar,children:[(0,u.jsx)(l.Ee,{className:"full-100",src:n||_}),n?null:(0,u.jsx)(l.xv,{className:a["userAvatar-text"],children:"编辑"})]})},w=function User(){return(0,u.jsx)(u.Fragment,{children:(0,u.jsx)(l.G7,{className:a.main,children:(0,u.jsx)(j,{})})})};Page((0,o.createPageConfig)(w,"pages/user/index",{root:{cn:[]}},{navigationBarTitleText:"我的",navigationBarTextStyle:"white",navigationBarBackgroundColor:"#4581FF",backgroundColor:"#4581FF",backgroundColorTop:"#4581FF",enablePullDownRefresh:!0}||{}))}},function(e){e.O(0,[2107,1216,8592],(function(){return n=988,e(e.s=n);var n}));e.O()}]);