/*! For license information please see 0faae082e61997f12841426745de246a.js.LICENSE.txt */
"use strict";(wx["webpackJsonp"]=wx["webpackJsonp"]||[]).push([["sub-common/0faae082e61997f12841426745de246a"],{"./src/pages/orderDetails/components/addressDetailBox/index.tsx":function(e,s,a){var n=a("./node_modules/@tarojs/plugin-platform-weapp/dist/components-react.js");var l=a("./node_modules/react/cjs/react.production.min.js");var t=a("./node_modules/classnames/index.js");var d=a.n(t);var i=a("./src/pages/orderDetails/components/addressDetailBox/index.module.scss");var o=a("./src/components/iconfont/iconfont.tsx");var c=a("./node_modules/react/cjs/react-jsx-runtime.production.min.js");var r=function AddressDetailBox(e){var s=e.receivingStatus,a=s===void 0?null:s,l=e.onReceivingStatus,t=e.obj,r=t===void 0?{target_user_name:"暂无",purchaser_phone:"暂无"}:t,u=e.navSelect,m=e.showBtn,v=m===void 0?true:m,f=e.showWhatFont,p=f===void 0?"":f,x=e.isReadonly,j=x===void 0?false:x,h=e.icon;return(0,c.jsxs)(n.View,{className:i["default"].addressBox,children:[(0,c.jsxs)(n.View,{className:i["default"].topBox,onClick:function onClick(){return u===null||u===void 0?void 0:u(r)},children:[(0,c.jsx)(n.View,{className:i["default"].cirle,children:h!==null&&h!==void 0?h:(0,c.jsx)(o["default"],{name:"icon-cangku1",size:60})}),a==1&&(0,c.jsx)(n.View,{className:i["default"].address,children:r.take_goods_address||"中华人民共和国广东省佛山市禅城区陆盈纺织仓库"}),(r===null||r===void 0?void 0:r.province_name)!=""&&a==2&&(0,c.jsxs)(n.View,{className:i["default"].address,children:[r===null||r===void 0?void 0:r.province_name,r===null||r===void 0?void 0:r.city_name,r===null||r===void 0?void 0:r.district_name,r===null||r===void 0?void 0:r.address_detail]}),(r===null||r===void 0?void 0:r.province_name)==""&&a==2&&(0,c.jsx)(n.View,{className:d()(i["default"].address,i["default"].empty),children:"请选择地址"}),a!==1&&!j?(0,c.jsx)(o["default"],{name:"icon-chakanquanbukehu",size:50}):null]}),(0,c.jsx)(n.View,{className:i["default"].line}),(0,c.jsxs)(n.View,{className:i["default"].bottom,children:[(0,c.jsxs)(n.View,{className:i["default"].leftbottom,children:[(0,c.jsx)(n.View,{className:i["default"].name,children:a===1?"谭先生":r.target_user_name}),(0,c.jsx)(n.View,{className:i["default"].phone,children:a===1?13242128982:r.purchaser_phone}),v&&(0,c.jsx)(n.View,{className:i["default"].reatBox,children:(0,c.jsxs)(n.View,{className:i["default"].updateBtn,children:[(0,c.jsxs)(n.View,{className:i["default"].updateBtn_list,children:[(0,c.jsx)(n.View,{className:d()(i["default"].updateBtn_item,a==1&&i["default"].updateBtn_item_select),onClick:function onClick(e){return l===null||l===void 0?void 0:l(e,1)},children:"自提"}),(0,c.jsx)(n.View,{className:d()(i["default"].updateBtn_item,a==2&&i["default"].updateBtn_item_select),onClick:function onClick(e){return l===null||l===void 0?void 0:l(e,2)},children:"物流"})]}),(0,c.jsx)(n.View,{style:{transform:a==1?"translateX(0)":"translateX(100%)"},className:d()(i["default"].updateBtn_select)})]})})]}),!v&&(0,c.jsx)(n.View,{className:i["default"].reatName,children:p})]})]})};s["default"]=(0,l.memo)(r)}}]);