s-material-react 1.7.6 → 1.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import o,{memo as s,useState as t,useEffect as i,useMemo as n,useContext as r,useRef as c,createContext as d,createElement as m,Fragment as p}from"react";import{useComponent as h,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import C from"classnames";import{getEnv as f,getTaro as b,navigatorHandler as y,getStorage as w,useImmutableCallback as S,navigatorBackImpl as x,setStorage as k}from"@brushes/utils";import{queryOcsconfigList as v,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as V,isEqual as L,isEmpty as T,noop as D,groupBy as P}from"lodash-es";import{useCube as R,useGoTop as z,useAfterSalesApply as M,useAfterSalesList as O,afterSalesTabConfig as F,useAfterSalesDetail as W,useAfterSalesChooseType as j,useAddressItem as G,useAddressList as E,useEditAddress as H,useMySetting as Y,useGoodsClassify as U,useGoods as K,useGoodDetail as Q,useBanner as q,useGoodCollection as Z,useGoodSpecAndPrice as $,useGoodFootprint as X,useGoodsShare as J,useGoodSkuStore as _,popupImplement as ee,usePromotion as ae,useAddCoupon as le,useCoupon as oe,useEvaluate as se,useAddShopping as te,useGoodSku as ie,useGoodsList as ne,useCartTop as re,useCartListNext as ce,useCartOperate as de,useOrderAddress as me,useOrderGood as pe,useOrderCoupon as he,useOrderInfo as ue,useOrderPay as ge,useOrderResult as Ne,useOrderResultResult as Ce,useOrderOperate as fe,orderStatusImpl as be,useOrderList as ye,orderStatusList as we,useOrderDetail as Se,useExpressInfo as xe,useEvaluateDetail as ke,useCollectionList as ve,useFootprint as Ie,useMarketingPromotion as Be,useCouponList as Ae,useAllCoupon as Ve,useNotice as Le,useNoticeDetail as Te,useArticleDetail as De}from"qj-b2c-store";import Pe from"dayjs";import{checkMobile as Re,ProvinceComponent as ze,CityComponent as Me,AreaComponent as Oe,navigatorLink as Fe}from"@brushes/shared-utils";import{DynamicForm as We}from"@brushes/mobile-form";const je=s((({width:a,height:l,top:o,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:r}=h();return e(r,{style:{width:a,height:l,borderRadius:n,top:o,left:i,right:s,bottom:t},className:"components-service"})})),Ge=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=h();return e(i,{onClick:o,className:C(l,t?`${l}-${t}`:"",a),style:s})},Ee=s((({value:a,textIndent:l,fontSize:o,textAlign:s,color:t,backgroundColor:i,fontWeight:n,textDecoration:r,fontStyle:c,paddingTop:d,paddingLeft:m,paddingRight:p,paddingBottom:u})=>{const{View:g}=h();return e(g,{className:"components-title",style:{paddingTop:d,paddingBottom:u},children:e(g,{style:{fontSize:o,textAlign:s,color:t,backgroundColor:i,fontWeight:n,textDecoration:r,fontStyle:c,paddingLeft:m,paddingRight:p,textIndent:l},children:a})})})),He=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:r,lineColor:c,fontWeight:d,fontStyle:m,textDecoration:p})=>{const{View:u}=h();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:n,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${c}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:p,fontSize:`${i}px`,color:r},children:o})]})},Ye=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:r}=h();return e(r,{style:{paddingTop:i,paddingBottom:n},children:e(r,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function Ue(e,a){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(l[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(l[o[s]]=e[o[s]])}return l}function Ke(e,a,l,o){return new(l||(l=Promise))((function(s,t){function i(e){try{r(o.next(e))}catch(e){t(e)}}function n(e){try{r(o.throw(e))}catch(e){t(e)}}function r(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(i,n)}r((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const Qe=(e="b2c")=>{const[a,l]=t([]),o=n((()=>f()),[]);i((()=>{Ke(void 0,void 0,void 0,(function*(){const e=yield s();l(r(e))}))}),[]);const s=()=>Ke(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield v();case"b2b":return yield A().then((e=>e.list))}})),r=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=V(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${V(o,"ocserviceConfRemark")}: ${V(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${V(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;b().showActionSheet({itemList:a})}}},qe={label:""},Ze=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",$e=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",Xe=(e,a)=>{const l=Math.floor(e/1e3)%60,o=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${o}分钟 ${l}秒${a}`},Je=e=>1===String(e).indexOf(".")?_e(e):ea(e),_e=e=>{const a=Number(e).toFixed(0),l=(Number(e)-Number(a)).toFixed(2),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+"."+String(l).slice(2)},ea=e=>{const a=Number(e).toFixed(0),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+".00"},aa=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const la=e=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?aa+e:e?aa+"/paas/shop/"+e:e),[e]),oa=s((({item:a,position:l,direction:o})=>{var s,t;const{Image:i,View:n}=h(),r=la(a.imgUrl);return e(i,{mode:"scaleToFill",src:r,style:{width:"100%",height:"100%",paddingBottom:"top"===l&&"vertical"===o?"30px":"",marginTop:"top"===l&&"horizontal"===o?"30px":""},onClick:y.bind(null,null===(s=a.link)||void 0===s?void 0:s.value,null===(t=a.link)||void 0===t?void 0:t.params)})})),sa=s((({Position:o="none",className:s="",className1:t="",defaultValue:i=[],type:r,autoplay:c,autoplayInterval:d,direction:m,loop:p,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f,selectImg:b,imgHeight:y,fontsize:w=16,textAlign:S="center",fontColor:x="#000000",backGroundColor:k="#ffffff"})=>{const v=n((()=>C({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=h(),A=R(i,b||[]),V=a=>e(B,{className:t,style:{fontSize:w,zIndex:99,justifyContent:"left"===S?"flex-start":"center"===S?"center":"flex-end",color:x,backgroundColor:k},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f},children:e(I,{imgHeight:y,data:A,className:v,type:r,autoplay:c,autoplayInterval:d,direction:m,loop:p,interval:5e3,vertical:"vertical"===m,render:s=>a(l,{children:["top"===o||"bottom"===o?V(s):null,e(oa,{item:s,position:o,direction:m})]})})})})),ta=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:i,autoplay:r,autoplayInterval:c,direction:d,loop:m,selectImg:p,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:f=0,fontsize:b=16,textAlign:y="center",fontColor:w="#000000",backGroundColor:S="#ffffff",otherStyles:x=[],ImgShadow:k=!1,Position:v="top"})=>{const{View:I}=h(),B=n((()=>C("silder-title",{"silder-tops1":"top"===v&&"horizontal"===d,"silder-bottoms":"bottom"===v&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===v,"silder-tops":"vertical"===d&&"top"===v},...x)),[x,v]);return e(I,{style:{padding:`${N}px ${f}px`},children:e(sa,{Position:v,defaultValue:t,type:i,autoplay:r,autoplayInterval:c,direction:d,loop:m,selectImg:p,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:w,backGroundColor:S,className:C({"outer-shadow":k}),className1:B})})})),ia=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:r})=>{const{View:c}=h();return e(c,{style:{paddingTop:t,paddingBottom:i},children:e("video",{className:"components-video",src:a,poster:l,autoPlay:o,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:r}})})})),na=({src:a,borderRadius:l})=>{const{Image:o}=h(),s=la(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},ra=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:r}=h(),c=R(l,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:c.map(((l,s)=>a(n,{className:"classifyNavItem",onClick:()=>{var e,a;return y(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(na,{src:l.imgUrl,borderRadius:o}),e(r,{className:"label",children:l.title})]},s)))})})})),ca=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=h(),t=la(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},da=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:r,layout:c,marginTop:d,marginBottom:m})=>{const{View:p}=h(),u=R(a,l);return e(p,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${c}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(p,{className:"classifyNav-item",onClick:()=>{var e,l;return y(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(ca,{src:a.imgUrl,imgBoxShadow:r,imgRadius:n})},l)))})},ma=s(da),pa=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:r,fontColor:c,tagBgColor:d,otherStyle:m,layout:p,marginTop:u,marginBottom:g})=>{const{View:N}=h(),f=R(a,l),b=n((()=>C("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:f.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return y(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{width:4===p?"74px":"60px"},children:e(N,{className:b,style:{fontSize:r,color:c},children:a.title})},l)))})})),ha=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:r,layout:c}=a,{View:d}=h(),m=la(r.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return y(null===(e=r.link)||void 0===e?void 0:e.value,null===(a=r.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===c?"74px":"60px",height:4===c?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:r.title})})})},ua=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:r,fontSize:c,fontColor:d,tagBgColor:m,otherStyle:p,layout:u,marginTop:g,marginBottom:N})=>{const{View:C}=h(),f=R(a,l);return e(C,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:f.map(((a,l)=>e(ha,{layout:u,item:a,imgRadius:n,imgBoxShadow:r,fontSize:c,fontColor:d,tagBgColor:m,otherStyle:p},l)))})})),ga=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=n((()=>f()),[]),{View:i}=h(),{goTop:r}=z();return e(i,{className:"backTop",onClick:r,style:{padding:t?"0":"10px"},children:e(Ge,{style:{display:"inline-block",color:o,fontSize:s,backgroundColor:l,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Na=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=h(),i=la(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>{var e,a;return y(null===(e=o.link)||void 0===e?void 0:e.value,null===(a=o.link)||void 0===a?void 0:a.params)}})},Ca=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:r,paddingTop:c,paddingBottom:d,selectImg:m})=>{const{View:p}=h(),u=R(a,m);return e(p,{style:{paddingTop:c,paddingBottom:d,paddingLeft:r,paddingRight:r},children:e(p,{className:`cube-type${l}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:u.map(((a,t)=>e(Na,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),fa=o.createContext(null),ba=s((()=>{const{View:a}=h(),{tip:l}=r(fa);return e(a,{className:"afterSalesApplyTip",children:l})}));const ya=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:r}=a,c=Ue(a,["bottomHeight","children","id","heightWrap"]);const d=n((()=>f()),[]),m=function(e){const[a,l]=t(0);return i((()=>{if(!f()||!e)return;const a=b().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),p=function(e=""){return n((()=>{if(!f())return 0;const a=b(),l=a.getStorageSync("safeArea"),o=a.getStorageSync("tabBarHeight")||0;return l+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{View:u}=h(),g=n((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(s){return{height:`calc(${b().getSystemInfoSync().windowHeight+"px"} - ${m+p}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,p]);return e(u,Object.assign({},c,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":p}),id:s,children:o}))},wa=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=h(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:p,popupLoading:u}=r(fa);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(ya,{children:a(i,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:p,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Sa=s((()=>{const{View:l}=h(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=r(fa);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(Ge,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(l,{className:"price",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款金额"})]}),e(l,{className:"allPrice",children:e(l,{className:"single",children:Ze(i)})})]}),e(wa,{popupShow:s})]})})),xa=s((()=>{const{View:l,TextArea:o,Textarea:s}=h(),t=s||o,{handleChooseImg:i,imgGroup:n,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:p}=r(fa);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:p}),a(l,{className:"imgGroup",children:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(Ge,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(Ge,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),ka=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:r,paddingRight:c,paddingBottom:d})=>{const{View:m,WrapLoading:p}=h(),{tip:u,reasonList:g,popupVisible:N,popupLoading:C,handlePopupShow:f,handleChooseReason:b,reason:y,handleChooseImg:w,imgGroup:S,placeholder:x,handleDelImg:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:V}=M({contractBillcode:o,skuCode:s});return e(p,{loading:V,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:r,paddingRight:c},children:a(fa.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:C,handlePopupShow:f,handleChooseReason:b,reason:y,handleChooseImg:w,imgGroup:S,placeholder:x,handleDelImg:k,limit:v,goodsNum:t,goodsPrice:i,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(ba,{}),e(Sa,{}),e(xa,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},va={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Ia={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ba=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:i,Image:n}=h();return a(i,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(i,{className:"title",children:[a(i,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(i,{className:"rPart",children:[e(Ge,{style:{color:null===(s=va[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=va[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:va[l.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src:l.ocRefundGoodsList[0].dataPic,className:"img"})}),a(i,{className:"rPart",children:[e(i,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(i,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(i,{className:"tip",children:[e(i,{class:"lPart",children:Ia[l.refundType][l.dataState]}),e(Ge,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Aa=s((()=>{const{View:a}=h();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Va=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=h(),{afterSalesList:i,goAfterSalesDetail:n,loading:r,haseData:c}=O(a,l);return e(t,{loading:r,children:e(o,{className:"tabContent",children:e(ya,{id:"tabContent",children:e(s,{children:c?i.map((a=>e(Ba,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Aa,{})})})})})})),La=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=h();return e(i,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:F,render:l=>e(Va,{item:l,refreshNum:a})})})})),Ta=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:r,children:c})=>{const{View:d,Image:m,SmoothView:p}=h(),u=Ze(i),g=n((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(d,{className:"card-item",children:[e(m,{src:o,alt:"",className:"card-item-img"}),a(d,{className:"card-item-info",children:[a(d,{className:"card-item-info-container",children:[e(p,{className:"card-item-info-container-title",children:s}),e(p,{className:"card-item-info-container-price",children:u})]}),a(d,{className:"card-item-info-sub",children:[e(p,{className:"sku",children:r}),e(p,{className:"count",children:g})]}),c]})]})})},Da=(e,a)=>{if("B01"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"}[a]}if("B02"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}[a]}},Pa=o.createContext(null),Ra=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Pa),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=h();return e(d,{popupVisible:o,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(ya,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:l.map(((l,o)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),za=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Pa),{View:n,Input:c}=h();return a(l,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:o,children:e(n,""===s?{style:{color:"#000"},children:"请填写"}:{children:s})})]}),a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流单号"})]}),e(n,{className:"sender_input",children:e(c,{type:"number",placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(n,{className:"expressInfo",children:e(n,{className:"expressInfo_btn",onClick:i,children:"提交物流信息"})}),e(Ra,{})]})})),Ma=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:r,submitExpressInfo:c,handleCancelAfterSales:d,companyList:m,popupShow:p,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:C,loading:f}=W({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:w,refundMoney:S,refundMeo:x,refundEx:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:V,packageCode:L,packageBillno:T}=r,{View:D,Image:P,WrapLoading:R}=h();return e(R,{loading:f,children:e(D,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(Pa.Provider,{value:{companyList:m,popupShow:p,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:C,submitExpressInfo:c},children:[a(D,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(D,{className:"left_text",children:Da(v,b)}),e(D,{className:"right_time",children:Pe(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(D,{className:"afterSalesDetailContent",children:a(D,{className:"refundDetail",children:[e(D,{className:"title",children:"退款信息"}),e(D,{className:"goodsDetail",children:null==w?void 0:w.map(((a,l)=>e(Ta,{dataPic:a.dataPic,pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"退款原因"}),e(D,{className:"right",children:k})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"退款金额"}),e(D,{className:"right",children:S})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"描述说明"}),e(D,{className:"right",children:x})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"补充凭证"}),e(D,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(P,{src:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"申请时间"}),e(D,{className:"right",children:Pe(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"退款编号"}),e(D,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[b>0?a(D,{className:"merchantMsg",children:[e(D,{className:"title",children:"商家信息"}),a(D,{className:"name",children:[B,"  ",A]}),e(D,{className:"address",children:V})]}):"",1===b?a(D,{className:"writeMsg",children:[e(D,{className:"wlMsg",children:"物流信息"}),e(za,{})]}):"",b>1?a(D,{className:"writeMsg",children:[e(D,{className:"wlMsg",children:"物流信息"}),a(D,{className:"express_content",children:[e(D,{className:"name",children:"物流单号"}),e(D,{className:"code",children:T})]}),a(D,{className:"express_content",children:[e(D,{className:"name",children:"物流公司"}),e(D,{className:"code",children:N})]}),a(D,{className:"express_content",children:[e(D,{className:"name",children:"物流公司编码"}),e(D,{className:"code",children:L})]})]}):""]}):""})]})}),0===b?e(D,{className:"footerBtn",children:e(D,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),Oa=o.createContext(null),Fa=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=h(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:p}=r(Oa),{goodsName:u,skuName:g,dataPic:N}=m;return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:N,className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:Ze(p)})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(Ge,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>n((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),i?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Wa={1:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],2:[{label:"仅退款(无需退货)",value:"B01"}],3:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],4:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}]},ja=(e=2)=>Wa[e],Ga=s((({afterSalesType:l=2,contractBillcode:o,skuCode:s})=>{const{View:t}=h(),{goApply:i,goodsNum:n}=r(Oa);return e(t,{children:a(t,{className:"afterSalesTypeType",children:[e(t,{className:"title",children:"售后类型"}),ja(+l).map(((l,r)=>a(t,{className:"item",onClick:i.bind(null,l.value,o,s,n),children:[e(t,{className:"headline",children:l.label}),e(Ge,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},r)))]})})})),Ea=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:r,paddingBottom:c}=l,{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,loading:C,goodsPrice:f}=j({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=h();return e(y,{loading:C,children:e(b,{className:"afterSalesType",style:{paddingTop:i,paddingLeft:n,paddingRight:r,paddingBottom:c},children:a(Oa.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:f},children:[e(Fa,{}),e(Ga,{afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},Ha=({setDefault:a,checked:l})=>{const{SmoothCheckbox:o,Checkbox:s}=h();return e(o,{onChange:a,children:e(s,{checked:l,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},Ya=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:i}=h(),{handlerImpl:n}=G(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(Ha,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{className:"del",onClick:o,children:"删除"})]})]})},Ua=s((()=>{const{View:a,Skeleton:o}=h(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),Ka=s((({url:l,title:o,subTitle:s,link:t,style:i})=>{const{View:n,Image:r}=h();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(r,{className:"img",src:l}),e(n,{className:"title",children:o}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),Qa=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:r}=h(),{list:c,delAddress:d,setDefault:m,skullShow:p}=E(a);return e(r,{className:"addressListWrap",style:{paddingTop:i+"px",marginBottom:t+"px"},children:p?e(Ua,{}):e(r,{className:"addressList",children:c.length?c.map(((a,l)=>e(Ya,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(Ka,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),qa=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=h();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>y("addressEditor"),children:"+ 新增地址"})})})),Za=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],$a=[{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"text",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:Re}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:ze}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Me}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Oe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",label:"设置默认地址",name:"addressDefault",extraProps:{color:"#000"}}],Xa=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=h(),{Button:r}=g,{onSubmit:c}=H();return e(n,{className:"addressDetail",style:{paddingBottom:i+"px",paddingTop:t+"px"},children:e(We,{footer:e(r,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:Za,onSubmit:c,fields:$a})})})),Ja=s((()=>{const{View:l}=h(),o=e=>{y(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(l,{className:"myAgreementList",children:e(l,{className:"list",children:s.current.map(((s,t)=>a(l,{className:"item",onClick:o.bind(null,s.type),children:[e(l,{children:s.label}),e(l,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),_a=()=>{const{View:l}=h(),{mySettingGoBind:o,mySettingLogout:s}=Y();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(Ge,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},el=s(_a),al=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:r}=h();return e(l,{children:o.map((l=>e(i,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(i,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:l.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{className:`container container_columns${t}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:t})=>a(i,{onClick:()=>y("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(r,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:ll}=g,ol=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:r}=h(),{activeKey:c,setActiveKey:d,navList:m,flag:p}=U();return e(n,{children:e(ya,{id:"goodsClassify",children:e(r,{children:a(n,{style:{height:p?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{className:"side",children:e(ll,{activeKey:c,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(ll.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===c?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(al,{navList:m,activeKey:c,cell:l})})]})})})})})),sl=d(null),tl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(sl),{View:d,ScrollView:m}=h(),[p,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),i(`${a}`),n("0"),p&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!0),children:e(u,{value:"paixusort-jiang"})})]}),p?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!1),children:e(u,{value:"paixusort-sheng"})})}),e(ya,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),il=s((({thirdList:l})=>{const{View:o,Image:s}=h(),{picShadow:t,layout:i}=r(sl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:l.map(((l,i)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>y("goodList",{classtreeCode:l.classtreeCode}),children:[e(s,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},i)))})})),nl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(sl),m=n((()=>f()),[]),{secondList:p,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=n((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=n((()=>{var e;return(null===(e=o[l])||void 0===e?void 0:e.childList)||[]}),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:g,ScrollView:N,SideBar:C}=h();return e(g,{children:e(ya,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(C,{activeKey:s,onChange:t,children:p.map(((a,l)=>e(C.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},l)))}),e(il,{thirdList:u})]})})})})})),rl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:r,layout:c})=>{const{View:d}=h(),{navList:m,activeKey:p,setActiveKey:u}=U(),[g,N]=t("0"),[C,f]=t("0");return e(sl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:C,setSCoe:f,navList:m,activeKey:p,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:r,layout:c},children:a(d,{className:"goodsClassifyOne",children:[e(tl,{}),e(nl,{})]})})})),cl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:i,Image:n}=h();return e(i,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(i,{className:"level3ArrItem",onClick:()=>y("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:l.goodsClassName})]},o)))})})),dl=s((({navList:l,activeKey:o,layout:s,picShadow:n})=>{var r;const[c,d]=t(0);i((()=>{d(l.findIndex(m))}),[o,c]);const m=e=>e.goodsClassCode===o,{View:p,Image:u}=h();return a(p,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:V(l[c],"goodsClassLogo"),mode:"widthFix"}),null===(r=V(l[c],"childList"))||void 0===r?void 0:r.map(((l,o)=>a(p,{children:["0"===l.goodsClassHide?e(p,{className:"level2Title",children:l.goodsClassName}):"",e(cl,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:ml}=g,pl=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:r}=h(),{activeKey:c,setActiveKey:d,navList:m,flag:p}=U();return e(r,{className:"goodsClassifyTwo",children:e(ya,{id:"goodsClassifyTwo",children:a(r,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(r,{className:"side",children:e(ml,{activeKey:c,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(ml.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(r,{className:"main",children:e(dl,{navList:m,activeKey:c,layout:i,picShadow:n})})]})})})})),hl="data:image/png;base64,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",ul="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",gl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:r,paddingRight:c,sticky:d,fontsize:m,paddings:p,otherStyles:u=[],__pageConfig:g})=>{const{View:N,Image:f}=h(),b=n((()=>C("txt",...u)),[u]);return e(N,{onClick:()=>y("search"),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:c},className:d?"boxpositon":"",children:a(N,{className:"components-search",style:{backgroundColor:t,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(f,{src:hl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:b,style:{color:s,display:"inline-block",fontSize:m},children:l})]})})})),Nl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:r,paddingRight:c,sticky:d,fontsize:m,paddings:p,otherStyles:u=["mockWeight","mockItalic"]})=>{const{View:g,Image:N}=h(),f=n((()=>C("txt",...u)),[u]);return e(g,{onClick:()=>y("search"),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:c},className:d?"boxPosition":"",children:a(g,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(g,{style:{width:"80%"},children:[e(N,{src:hl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:f,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(g,{className:["seachBtn",i?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Cl=s((({placeholder:l,placeholderText:o,history:s,historyText:i,paddingBottom:r,paddingTop:c})=>{const d=n((()=>f()),[]),{View:m,Text:p,Input:u}=h(),[g,N]=t((()=>w("history")||[])),C=S((e=>Ke(void 0,void 0,void 0,(function*(){d&&(N((a=>{if(!a.includes(e.detail.value)&&e.detail.value){const l=a.concat(e.detail.value);return k("history",l),l}return a})),v(e.detail.value))})))),v=S((e=>{y("goodList",{searchParam:e})}));return a(m,{className:"searchPage",style:{paddingTop:c,paddingBottom:r},children:[a(m,{className:"search-title",children:[e("img",{src:hl,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:C},l?{placeholder:o}:{})),e(p,{className:"btn",onClick:()=>x(),children:"取消"})]}),s?a(m,{className:"historyWrap",children:[a(m,{className:"title",children:[a(m,{className:"label",children:[e(m,{className:"icon"}),i]}),e(Ge,{onClick:()=>Ke(void 0,void 0,void 0,(function*(){(yield b()).removeStorageSync("history"),N([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(m,{className:"content",children:g.map(((a,l)=>e(m,{onClick:()=>v(a),className:"historyItem",children:a},l)))})]}):null]})})),fl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:p="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:w,goodsName:S=!0,goodsPrice:x=!0,goodsCar:k=!0,goodsBorder:v=!0,goodsShadow:B=!1,marginGap:A=10})=>{const[D,P]=t(l),R=c(),{View:z,Text:M}=h();return i((()=>{L(R.current,u)||(R.current=u,T(u)?P(l):Ke(void 0,void 0,void 0,(function*(){try{const e=yield I({[p]:u.toString(),distinctField:"goodsNo"}),a=V(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(z,{style:{paddingTop:N,paddingBottom:f},children:e(z,{className:C({[`goods-${o}`]:!0}),style:{display:"grid",gap:A,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:b,paddingRight:w},children:D.map(((l,o)=>a(z,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:v?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(z,{className:"goods-img",style:{backgroundImage:`url(${l.dataPic})`}}),a(z,{className:"space",children:[e(z,{className:"titleType",style:{display:S?"block":"none"},children:l.goodsName}),e(z,{className:"subTitle",children:l.brandName}),d&&a(z,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(z,{className:"price",children:[a(z,{style:{fontSize:18},children:[x?Ze(l.pricesetNprice):"",1===g&&e(M,{className:"markedPrice",children:Ze(l.pricesetMakeprice)})]}),e(z,{className:"anticon",style:{display:k?"block":"none"},children:e(Ge,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),bl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:r,wrapBorderColor:c,wrapBgColor:d,wrapShadow:m,goodsRadius:p,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:C,marginLeft:f,marginRight:b})=>{const{View:w}=h(),{list:S}=K({defaultValue:l,goods:o},n);return e(w,{className:"goodsSlider",style:{borderRadius:r,borderColor:c,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:C,marginLeft:f,marginRight:b},children:S.map(((l,o)=>a(w,{className:"goodsSliderItem",style:{borderRadius:p,backgroundColor:u,marginRight:`${g}px`},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(w,{className:"img",style:{backgroundImage:`url(${l.dataPic})`}}),a(w,{className:"board",children:[e(w,{className:"title",children:l.goodsName}),a(w,{className:"info",children:[a(w,{className:"lPart",children:[s?e(w,{className:"price",children:Ze(l.pricesetNprice)}):null,t?e(w,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null]}),i?e(w,{className:"rPart",children:e(Ge,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),yl=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:r,salesNum:c,price:d,apiKey:m="goodsCode",goodsRadius:p,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:C,btnColor:b,btnRadius:w})=>{const S=n((()=>f()),[]),{list:x}=K({defaultValue:l,goods:o},m),{SmoothSwiper:k,View:v,Image:I}=h(),[B,A]=t(0);return a(v,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:x,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(v,{className:["goodsSlideshowItem",""+(l.goodsCode===x[B].goodsCode&&S?"active":"")].join(" "),style:{borderRadius:p,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:l.dataPic,mode:"widthFix"}),r?e(v,{className:"goodsName",children:l.goodsShowname}):null,c?a(v,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(v,{className:"price",children:Ze(l.pricesetNprice)}):null,i?e(v,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:C,color:b,borderRadius:w},children:N})]})})]})})),wl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[]}=Q(o,s),i=q(t);return e(sa,{selectImg:i,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Sl=l=>{const{SmoothView:o,View:s}=h(),{handleCollect:t,collection:i}=Z(l);return a(s,{onClick:t,children:[T(i.dataObj)?e(Ge,{value:"star-fill",style:{fontSize:20}}):e(Ge,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:T(i.dataObj)?"收藏":"已收藏"})]})},xl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n}=h(),{rsSkuDomainList:r}=Q(l,t),{goodInfo:c}=$(r);return X(l),a(i,{className:"goodsDetail-topInfo",children:[a(i,{className:"lPart",children:[e(n,{className:"name",children:c.goodsName}),e(n,{className:"price",style:{display:o?"block":"none"},children:Ze(c.pricesetNprice)})]}),e(i,{className:"rPart",style:{display:s?"flex":"none"},children:e(Sl,{goodsName:c.goodsName,pricesetNprice:c.pricesetNprice,dataPic:c.dataPic,skuCode:l})})]})},kl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=h(),{handleCollect:i,collection:n}=Z(l),{handleShare:r}=J();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:T(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:r,children:"分享"}):null]})})),vl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:r}=h(),{rsSkuDomainList:c}=Q(t,i),{goodInfo:d}=$(c);return _((e=>e.spec)),X(t),a(n,{className:"goodsDetail-info-one",children:[e(r,{className:"price",style:{display:l?"block":"none"},children:Ze(d.pricesetNprice)}),e(r,{className:"title",children:d.goodsName}),e(kl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:t})]})})),Il=s((()=>{const{Text:e}=h(),l=_((e=>e.count)),o=_((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Bl=({dispatchPageStore:o})=>{const{View:s,Text:t}=h(),{openPopup:i}=ee(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"规格"}),a(s,{className:"info",children:[e(Il,{}),e("img",{src:ul,alt:"",className:"icon"})]})]})})},Al=({skuCode:l,scene:o})=>{const{View:s,Text:t}=h(),{rsSkuDomainList:i}=Q(l,o),{goodInfo:n}=$(i),r=ae(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:r.length?r.map((({discName:a},l)=>e(s,{className:"item",children:a},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},Vl=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponOnceNums:r,couponOnceNumd:c,promotionEndtime:d})=>{const{View:m,Text:p}=h(),{save:u,isPick:g}=le(),N=n((()=>r-c),[r,c]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(p,{className:"title",children:i}),a(p,{className:"date",children:[Pe(l).format("YYYY-MM-DD")," - ",Pe(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>u({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),Ll=()=>{const{View:a,Image:l}=h();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Tl=o=>{var{skuCode:s,scene:t}=o;Ue(o,["skuCode","scene"]);const{View:i,Text:n,Popup:r,Image:c}=h(),{rsSkuDomainList:d}=Q(s,t),{goodInfo:p}=$(d),{coupon:u,visible:g,setVisible:N}=oe(d,p.skuCode);return a(l,{children:[a(i,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(c,{src:ul,alt:"",className:"icon"})]})]}),e(r,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(ya,{children:u.length>0?u.map(((e,a)=>m(Vl,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Ll,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Dl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:n}=h(),[r,c]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);i((()=>{if(s){const e=[...r];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";c(e)}}),[]);const d=e=>{if(!l){for(let a=0;a<r.length;a++)r[a].icon=a>e?"star":"star-fill";c([...r]),a(e+1)}};return e(n,{children:r.map(((a,l)=>e(Ge,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Pl=({item:l})=>{const{View:o,Image:s}=h();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl,className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Dl,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]})},Rl=({evaluateArr:l})=>{const{View:o}=h();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e(Pl,{item:a},l)))]}):e(Ka,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},zl=({goodsRemark:a})=>{const{View:l}=h(),o=n((()=>a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[a]);return e(l,{className:"goodsDetail-info",children:e("div",{dangerouslySetInnerHTML:{__html:o||""}})})},Ml=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:i,evaluateImg:r})=>{const{Text:c}=h(),d=n((()=>i?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(l,{children:d.map(((l,t)=>e(p,{children:a(c,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(c,{className:"line"})]})},t)))})},Ol=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:i,scene:n})=>{const{View:r}=h(),[c,d]=t(0),{goodsRemark:m,goodsCode:p}=Q(i,n),u=se(p);return a(r,{className:"goodsDetailTab",children:[e(r,{className:"tabs",children:e(Ml,{tabActive:c,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(r,{className:"group",children:0===c?e(zl,{goodsRemark:m}):e(Rl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Fl=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:r}=h(),c=_((e=>e.offShelf));return a(n,{className:"sizeArr",children:[e(r,{className:"title",children:l}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(n,{className:C({sizeItem:!0,active:s[i]===a.specValueValue,offShelf:s[i]===a.specValueValue&&c}),onClick:o.bind(null,a.specValueValue,i),children:a.specValueValue},l)))})]})},Wl=s((({handleStep:l})=>{const{View:o,NumStep:s}=h(),t=_((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),jl=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:r}=h(),{skuList:c}=o;return a(l,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(n,{src:i.dataPic,alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:i.goodsName}),e(r,{className:"price",children:Ze(i.pricesetNprice)}),a(r,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),c.map(((a,l)=>e(Fl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},Gl=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=h(),r=_((e=>e.isNeedButton)),c=_((e=>e.offShelf));return c?e(n,{className:C({btnWrap:!0,offShelf:c}),children:e(i,{className:"btn",children:"已下架"})}):e(l,{children:r?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:o,children:"立即购买"})]})})},El=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=h(),{spec:r,goodInfo:c}=$(t),{handleChooseSize:d,handleStep:m,addCardImpl:p,cashImpl:u,addShoppingImpl:g}=te(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(ya,{children:e(n,{children:a(i,{className:"content",children:[e(jl,{skuInfo:s,handleChooseSize:d,spec:r,goodInfo:c}),e(Wl,{handleStep:m.bind(null,c.goodsNum,c.goodsMinnum)})]})})}),e(Gl,{cashImpl:u,addShoppingImpl:g,addCardImpl:p})]})})),Hl=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=h();return e(i,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(El,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},Yl=s((({serverShow:o,cartShow:s,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:r,rPartBgColor:c,rPartStyle:d,dispatchPageStore:m,skuCode:p,platform:u,scene:g})=>{const{View:N,IconMobile:C,Text:f}=h(),b=_((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:S}=Q(p,g),{goodInfo:x}=$(w),{servicePopup:k}=Qe(u),{addCardPopup:v,buyOpenPopup:I}=ee(m);return a(N,{className:"goodsDetailHandleBar",children:[a(N,{className:"linkGroup server",onClick:k,style:{display:o?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"客服"})]}),a(N,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:s?"block":"none"},children:[e(C,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"购物车"})]}),e(N,{className:"goods-detail-btn-group",children:b?e(N,{className:"btn addCart offShelf",children:e(f,{className:"btn",children:"已下架"})}):a(l,{children:["26"===S?null:e(N,{className:"btn addCart",onClick:v,style:{color:t,backgroundColor:i,borderTopLeftRadius:n,borderBottomLeftRadius:n},children:"加入购物车"}),e(N,{onClick:I,className:"btn buy",style:{color:r,backgroundColor:c,borderTopRightRadius:d,borderBottomRightRadius:d},children:"10"===x.goodsPro?"预售抢购":"立即购买"})]})})]})})),Ul=o=>{var{$_dataSource:s={},dispatchPageStore:t=D,skuCode:i,scene:n}=o,r=Ue(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:c,goodsCode:d,rsSkuDomainList:m}=Q(i,n),p=ie(c,m),{popupVisible:h}=s;return a(l,{children:[e(Yl,Object.assign({skuCode:i},r,{dispatchPageStore:t})),e(Hl,{dispatchPageStore:t,popupVisible:h,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Kl=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:r,rBtnFontColor:c,rBtnColor:d,rBtnStyle:m,dispatchPageStore:p,skuCode:u,scene:g,platform:N})=>{const{View:C,IconMobile:f}=h(),{rsSkuDomainList:b}=Q(u,g),{goodInfo:w}=$(b),{servicePopup:S}=Qe(N),{addCardPopup:x,buyOpenPopup:k}=ee(p);return a(C,{className:"goodsDetailHandleBarOne",children:[a(C,{className:"linkGroup server",onClick:S,style:{display:l?"block":"none"},children:[e(f,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:o?"block":"none"},children:[e(f,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"购物车"})]}),a(C,{className:"goods-detail-one-btn-group",children:[e(C,{className:"btn addCart",onClick:x,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(C,{onClick:k,className:"btn buy",style:{border:`1px solid ${r}`,color:c,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===w.goodsPro?"预售抢购":"立即购买"})]})]})})),Ql=o=>{var{popupVisible:s=!1,dispatchPageStore:t=D,skuCode:i,scene:n}=o,r=Ue(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:c,goodsCode:d,rsSkuDomainList:m}=Q(i,n),p=ie(c,m);return a(l,{children:[e(Kl,Object.assign({skuCode:i},r,{dispatchPageStore:t})),e(Hl,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},ql=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Zl=({setParams:l,activeColor:o})=>{const{View:s}=h(),[i,n]=t(0),[r,c]=t(ql);return e(s,{className:"sortWrap",children:r.map((({order:t,sortField:r,name:d},m)=>a(s,{className:"sortItem "+(i===m?"active":""),onClick:()=>((e,a,o)=>{n(a),o&&c((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(r,m,t),style:{color:i===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(Ge,{style:{color:i===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Ge,{style:{color:i===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},$l=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:i=!0,goodsPrice:r=!0,lineationGoods:c=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:p=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:f={}})=>{const{View:b,Loading:y,SmoothView:w,Image:S,ScrollView:x,IconMobile:k}=h(),[v,I]=t({}),{loading:B,getData:A,list:V}=ne(l,o,v),L=n((()=>C("textBox",{btm:!r&&!c})),[r,c]),T=n((()=>C("name",{boxNone:!i})),[i]),D=n((()=>C("middle_margin",{boxNone:!d})),[d]),P=n((()=>C("goodDetail",{boxNone:!r&&!c&&!m})),[r,c,m]),R=n((()=>C({detailContent:!(T.includes("boxNone")&&D.includes("boxNone")&&P.includes("boxNone"))})),[T,D,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(Zl,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(ya,{id:"listWrap",children:a(x,{onScroll:()=>A(v),children:[e(b,{className:"list",style:{gap:g},children:V.map((l=>a(b,{onClick:()=>Fe(f,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(S,{src:l.dataPic,className:"img"}),a(b,{className:R,children:[e(w,{className:T,children:l.goodsName}),a(b,{className:D,children:["12已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:L,children:[e(w,{className:"price",style:{display:r?"block":"none"},children:Ze(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:c?"block":"none"},children:Ze(l.pricesetMakeprice)})]}),e(b,{style:{display:m?"block":"none"},children:e(k,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),Xl=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:i,btnShape:r})=>{const{View:c}=h(),{cartIsEditor:d}=l,{editorImpl:m}=re(a),p=n((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?i:"",borderRadius:o?r:""})),[o,s,t,i,r]);return e(c,{className:"cart-edit",children:e(c,{className:"btn",onClick:m,style:p,children:d?"完成":"编辑"})})},Jl=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:i}=h();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(i,{"data-code":o,checked:o,value:s})})]})})),_l=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:r,SmoothRadio:c}=h();return e(i,{popupVisible:o,popupHandler:s,children:e(r,{className:"goodsDetail-coupon-popup",children:e(ya,{children:e(n,{children:e(c,{onChange:a,children:t.map(((e,a)=>m(Jl,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},eo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,pricesetNprice:r,handleStep:c})=>{const{View:d,SmoothView:m,NumStep:p}=h();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",t," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:Ze(r)}),0===s&&e(p,{count:i,handleStep:c.bind(null,n,i)})]})]})})})),ao=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:i}=h(),r=n((()=>{let a="";switch(o){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==o?e(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(i,{className:"cart-item-image",children:[r,e(t,{className:"img",src:l,onClick:()=>y("goodDetail",{skuCode:s})})]})})),lo=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:i}=h(),r=n((()=>(a||0===o)&&s.includes(l+"")),[s,a,l,o]);return e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==o,checked:r,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),oo=({promotion:o=[],updatePm:s,shoppingGoodsId:i,promotionCode:r})=>{const{View:c}=h(),[d,m]=t(!1),p=n((()=>((o||[]).find((e=>e.promotionCode===r))||{}).promotionName),[o]);return a(l,{children:[a(c,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(c,{children:p}),e(c,{children:"修改"})]}),e(c,{onClick:e=>{e.target.dataset.code&&(m(!1),s(i,"-"))},children:e(_l,{promotionCode:r,onChange:e=>{m(!1),s(i,e.detail.value)},promotion:o||[],visible:d,setVisible:m})})]})},so=s((l=>{var{item:o}=l,s=Ue(l,["item"]);const{View:t}=h(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(lo,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(ao,{dataState:o.dataState,dataPic:o.dataPic,skuCode:o.skuCode}),e(eo,Object.assign({},o,s))]})})),to=o=>{var{shoppingGoodsList:s=[]}=o,t=Ue(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(p,{children:[e(so,Object.assign({},t,{item:l})),l.pmPromotionList?e(oo,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},io=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=h(),i=n((()=>T(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Fe(o,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),i]})},no=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:i,SmoothView:n}=h();return a(i,{className:"cart-dis-title",children:[e(n,{className:"tips",children:s}),e(n,{className:"title",children:o}),l&&e(io,{link:t,disNextMsg:l})]})},ro=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:r,WrapLoading:c,View:d}=h(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:C,onChange:f,handleStep:b,updatePm:y}=ce(o,u,s);return e(c,{loading:N,children:e(d,{className:"cart-wrap",children:e(r,{onChange:f,children:C.length?e(l,{children:C.map((({memberCname:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:r,shoppingGoodsList:c},h)=>a(p,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:n},children:[t?e(no,{link:i,disNextMsg:s,promotionName:t,pbName:r}):null,e(to,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:c,cartItemRadius:n})]})]},h)))}):e(Ka,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},co=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:i="#000000",countBtnShape:r="20px"})=>{const{View:c,SmoothView:d,SmoothCheckbox:m,Checkbox:p}=h(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:C}=l,{toOrderImpl:f,deleteCart:b,selectAll:y,cartDetail:w}=de(N,u,o),S=n((()=>({border:`1px solid ${s}`,color:t,background:i,borderRadius:r})),[s,t,i,r]);return a(c,{className:"cart-dashboard",children:[e(c,{className:"choose",children:e(m,{onChange:y,children:e(p,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),C?e(c,{className:"del",children:e(c,{onClick:b,className:"btn",children:"删除"})}):a(c,{className:"check",children:[a(c,{className:"priceGroup",children:[a(c,{className:"discount",children:["优惠: ",e(d,{className:"data",children:Ze(g)})]}),a(c,{className:"all",children:["总计: ",e(d,{className:"data",children:Ze(w.amount)})]})]}),a(c,{onClick:f,className:"btn",style:S,children:["结算(",w.num,")"]})]})]})},mo=({address:a})=>e(l,{children:T(a)?e(ho,{}):e(po,{address:a})}),po=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=h(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},ho=()=>{const{View:o,Text:s}=h();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},uo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=h(),i=me(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(mo,{address:i})})},go=s((({couponStart:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponEnd:n})=>{const{View:r,Text:c,Radio:d}=h();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(c,{className:"title",children:i}),a(c,{className:"date",children:[Pe(l).format("YYYY-MM-DD")," - ",Pe(n).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(d,{value:t})})]})})})),No=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{View:n,Text:r,Popup:c,SmoothRadio:d,ScrollView:p}=h(),{shoppingGoodsList:u}=pe({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:g,visible:N,setVisible:C,selectCoupon:f,onChange:b}=he(u);return a(l,{children:[a(n,{className:"coupon-select",onClick:()=>C(0!==g.length),children:[e(r,{className:"label",children:"使用优惠"}),a(n,{className:"info",children:[e(r,{className:"label",children:f?`已选择: ${f}`:0===g.length?"暂无可用优惠券":"请选择优惠券"}),0===g.length?null:e("img",{src:ul,alt:"",className:"icon"})]})]}),e(c,{popupVisible:N,popupHandler:C,children:e(n,{className:"goodsDetail-coupon-popup",children:e(ya,{children:e(p,{children:e(d,{onChange:b,children:g.map(((e,a)=>m(go,Object.assign({},e,{key:a}))))})})})})})]})},Co=({shippingMethod:l=1})=>{const{View:o}=h();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},fo=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s})=>{const{View:t}=h(),{list:i}=pe({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s});return e(t,{className:"place-order-goods",children:i.map(((a,l)=>e(Ta,Object.assign({},a),l)))})},bo=({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{SmoothView:i,View:n}=h(),{payState:r,disCount:c,freight:d,payPrice:m,rebMoney:p}=pe({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t}),{shoppingCountPrice:u,comDisMoney:g}=ue(r);return e(n,{style:{paddingBottom:80},children:a(n,{className:"price placeOrder-blcWrap",children:[e(n,{className:"title",children:"价格明细"}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"商品总金额"}),e(i,{className:"value",children:Ze(u)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"返利金额"}),e(i,{className:"value",children:Ze(-p.current)})]}),a(n,{className:"coupon placeOrder-blcItem",children:[e(n,{className:"label",children:"优惠金额"}),e(i,{className:"value",children:Ze(g+c)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"运费"}),e(i,{className:"value",children:Ze(d)})]}),a(n,{className:"all placeOrder-blcItem",children:[e(n,{className:"label",children:"总计"}),e(i,{className:"value",style:{color:"#000"},children:Ze(m)})]})]})})},yo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:r,shoppingGoodsId:c})=>{const{View:d,Text:m,WrapLoading:p}=h(),{payPrice:u,list:g,payState:N,ocContractSettlList:C}=pe({refreshNum:i,goodsNum:n,skuId:r,shoppingGoodsId:c}),{savePayPrice:f,loading:b}=ge({ocContractSettlList:C,payState:N,list:g},r,n,c);return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",Ze(u)]}),e(p,{loading:b,children:e(d,{className:"btn",onClick:f,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},wo=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:r,paddingTop:c,paddingBottom:d,color:m})=>{const p=n((()=>f()),[]),{View:u,Text:g,Radio:N,IconMobile:C,WrapLoading:b,SmoothRadio:y}=h(),{paymentImpl:w,channelList:S,contract:x,handleRadio:k,loading:v}=Ne({contractBillcode:l,contractBbillcode:o});return i((()=>{console.log("打印下当前的channelList",S)}),[]),a(u,{className:"paymentModeWrap",style:{height:p?"inherit":"667px",paddingBottom:d+"px",paddingTop:c+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(C,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",x.current.contractBillcode," | 总金额:",Ze(x.current.dataBmoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(y,{onChange:k,children:null==S?void 0:S.map((l=>a(u,{className:"paymentItem",children:[e(C,{value:l.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:l.fchannelName}),e(N,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",l.faccountAmount,"元"]}),a(u,{children:["支付金额:",Ze(x.current.dataBmoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(b,{loading:v,children:e(u,{className:"btnGroup",onClick:w,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:r},className:"payment",children:"立即支付"})})})]})})),So=({dataObj:l})=>{const{View:o,Text:s}=h();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:Ze(l.dataBmoney)})]})]})},xo=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:i,leftBorderRadius:n,rightValue:r,rightAddHref:c,rightColor:d,rightButtonColor:m,rightBorderColor:p,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:C,Text:f,IconMobile:b,WrapLoading:S}=h(),{result:x,loading:k}=Ce(l||(w("contractBillcode")||{}).contractBillcode);return e(C,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:k,children:a(C,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(b,{value:x.icon,style:{fontSize:"35px",color:x.color}}),a(C,{className:"tips",children:[e(f,{className:"title",children:x.msg}),e(f,{className:"tip",children:x.info})]}),"success"===x.sysRecode&&e(So,{dataObj:x.dataObj}),a(C,{className:"btnGroup",style:{marginTop:20},children:[e(C,{className:"btn black",onClick:()=>y(x.menuCode,{contractBillcode:x.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${i}`,borderRadius:1===n?"20px":"0px"},children:x.buttonText}),e(C,{style:{color:d,backgroundColor:m,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>y(c.value),className:"btn white",children:r})]})]})})})})),{Button:ko}=g,vo=a=>{var{dataState:o}=a,s=Ue(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(Io,Object.assign({dataState:o},s))})},Io=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,r=Ue(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:c}=h();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:d,handlerImpl:m}=fe(Object.assign({dataState:l},r));return e(c,{className:"btnGroup",children:d.map(((a,l)=>e(ko,{style:{color:s,borderColor:t,backgroundColor:i},className:C({btn:!0,white:0===l,black:1===l}),onClick:()=>m(a.handler),shape:n,children:a.name},l)))})},{Button:Bo}=g,Ao=({contractPaydate:a,init:o,countdownCancel:s,contractId:n})=>{const{View:r,SmoothView:c}=h(),{resultTime:d}=((e,a,l,o)=>{const[s,n]=t("");return i((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,i=s.getTime()-(t.getTime()-3600);i<999&&i>0?l(o).then((()=>{a()})):i>1e3&&n(Xe(i,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,n);return e(l,{children:d?e(r,{className:"card-item-info-countDown",children:e(c,{children:d})}):null})};function Vo({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:r,contractAppraise:c,borderRadius:d,orderSpacing:m,contractPaydate:p,countdownCancel:u}){const{View:g}=h(),N=be(i);return a(g,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(g,{onClick:()=>y("orderDetail",{contractBillcode:l}),children:[a(g,{className:"topInfo",children:[a(g,{className:"orderNo",children:["订单号: ",l,e(Bo,{className:"copy",size:"mini",fill:"outline",children:"复制"})]}),e(g,{className:"status",children:N})]}),e(g,{className:"card-item-info-countDown"}),e(g,{className:"goodsItemWrap",children:t.map((a=>e(Ta,Object.assign({},a,{dataState:i,children:1===i&&e(Ao,{contractPaydate:p,init:r,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(g,{className:"allInfo",children:[a(g,{className:"totalNum",children:["共",s,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",Ze(o)]})]}),e(vo,{init:r,contractId:n,contractBillcode:l,dataState:i,contractAppraise:c})]})}const Lo=()=>{const{View:a,Image:l}=h();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const To=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t}){const{View:i,ScrollView:n,Loading:r}=h(),{onScroll:c,data:d,loading:p,init:u,countdownCancel:g}=ye(l,o);return e(i,{className:"orderListItemWrap",children:e(ya,{id:"orderListItemWrap",children:e(n,{onScroll:c,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(Vo,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:g})))),e(i,{children:p?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(Lo,{}),e(i,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})})})),Do=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12})=>{const{View:t,Tabs:i}=h();return e(t,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:we,render:l=>e(t,{className:"orderList",children:e(To,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Po}=g,Ro=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>f()),[]);return e(Po,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=b();if(""===a)return void e.showToast({title:"复制内容为空",icon:"error"});e.setClipboardData({data:a,success:()=>{e.showToast({title:"复制成功",icon:"success"}),o(!0)},fail:()=>{e.showToast({title:"复制失败",icon:"error"})}})}},children:l?"已复制":"复制"})})),zo=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:r,borderColor:c,btnColor:d,btnShape:m})=>{const{View:p,Text:u}=h(),{orderDetail:g,handleApplyBtn:N}=Se(o||""),C=e=>Pe(e).format("YYYY-MM-DD HH:mm:ss");return a(p,{className:"orderDetail",children:[e(p,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(p,{className:"orderDetailTopTitleContent",children:[a(p,{className:"icon_text",children:["待收货"===be(g.dataState)?e(Ge,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:be(g.dataState)})]}),e(p,{className:"subTitleWrap",children:C(g.gmtCreate)})]})}),e(p,{className:"orderDetailContent",style:{paddingTop:r+"px",paddingBottom:n+"px"},children:a(p,{style:{position:"relative",top:-26},children:[a(p,{className:"addressInfo",children:[e(p,{className:"lPart",children:e(Ge,{value:"dizhi"})}),a(p,{className:"mPart",children:[a(p,{className:"personInfo",children:[e(u,{className:"personName",children:g.goodsReceiptMem}),e(u,{className:"personPhone",children:g.goodsReceiptPhone})]}),e(p,{className:"address",children:g.goodsReceiptArrdess})]}),e(p,{className:"rPart"})]}),a(p,{className:"orderDetailGoodsWrap",children:[g.goodsList.map((o=>a(l,{children:[e(Ta,Object.assign({},o),o.contractGoodsId),Number(g.dataState)>1&&Number(g.dataState)<5?e(p,{className:"orderBtn",onClick:N.bind(null,o,g.dataState),children:"申请退款"}):""]}))),a(p,{className:"priceInfo",children:[a(p,{className:"priceInfoFloor top",children:[a(p,{className:"totalNum",children:["共",g.goodsNum,"件商品"]}),a(p,{className:"totalPrice",children:["合计 ",parseFloat((g.dataBmoney-g.refundMoney).toFixed(2))]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"商品总额"}),a(p,{className:"totalPrice",children:["¥",g.contractInmoney]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"优惠"}),a(p,{className:"totalPrice",children:["¥",g.goodsPmoney]})]})]})]}),s&&a(p,{className:"express",children:[e(p,{className:"label",children:"配送方式"}),e(p,{className:"name",children:"快递"})]}),a(p,{className:"orderInfo",children:[e(p,{className:"orderInfoItem",children:e(p,{className:"label",children:"订单信息"})}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"订单编号"}),a(p,{className:"context_copy",children:[e(p,{className:"name",children:g.contractBillcode}),e(Ro,{copyContent:g.contractBillcode})]})]}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"下单时间"}),e(p,{className:"name",children:C(g.gmtCreate)})]})]}),e(p,{className:"btnGroupFooter",children:e(vo,{borderColor:c,btnColor:d,btnShape:m,color:i,contractBillcode:g.contractBillcode,contractId:g.contractId,dataState:g.dataState})})]})})]})})),Mo=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:i}=h(),n=V(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),r=V(o,"packageList.length",l.count),c=V(o,"packageList[0].expressName",l.expressName),d=V(o,"packageList[0].packageBillno",l.packageBillno),m=V(s,"state",l.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",r," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",c]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},Oo=({defaultValue:l,detail:o})=>{const{View:s}=h(),t=V(o,"message",l.message),i=V(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.map(((l,o)=>a(s,{className:"step",children:[e(s,{className:"time",children:l.time}),e(s,{children:l.context})]},o))):e(s,{className:"noInfo",children:t})})},Fo=s((({code:l,defaultValue:o})=>{const{View:s}=h(),{info:t,detail:i,stateObj:n}=xe(l);return a(s,{className:"expressInfo",children:[e(Mo,{info:t,detail:i,stateObj:n,defaultValue:o}),e(Oo,{detail:i,defaultValue:o})]})})),Wo=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:n,userNickname:r,refreshNum:c})=>{const{View:d,Text:m,IconMobile:p,Image:u}=h(),{servicePopup:g}=Qe(),[N,C]=t(r),[f,b]=t(n);return i((()=>{C(w("userNickname")),b(w("userAvatar"))}),[c]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(p,{value:"bianzu",onClick:()=>y("/account/setting/index")}),e(p,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>y("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(u,{src:f,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),jo=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:r,Image:c}=h(),[d,m]=t({});i((()=>{Ke(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const p=(e,a)=>{4!==e.id?y("orderlist",{indexId:a+1}):y("afterSalesList")};return a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>y("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:p.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(r,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12},children:e(c,{src:l.imgUrl,className:"icon"})})),e(n,{className:"subTitle",children:l.label})]},o)))})]})})),Go=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:i,IconMobile:n,Image:r}=h();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>y(l.link.value),children:[a(t,{className:"lPart",children:[e(r,{src:l.imgUrl,className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),Eo=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=h(),{Rate:r}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{className:"userName",children:s.userName}),e(r,{readOnly:!0,value:s.rate,style:{"--star-size":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,l)=>e(n,{src:a.imgUrl,className:"img"},l)))})]})},Ho=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],Yo=s((()=>{const[o,s]=t("1"),{View:i}=h(),n=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(l,{children:[e(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:Ho.map(((a,l)=>e(Eo,{itemData:a},l)))})]})})),Uo=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:C}=ke(l),{Button:f}=g,{View:b,Image:y,TextArea:w,Textarea:S}=h(),x=w||S,k=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(p,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:l.dataPic,className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:l.goodsName}),e(b,{className:"goodsSize",children:l.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(Dl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(x,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:C.bind(null,s)})})]},s))),e(f,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),Ko=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:r}=h();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.collectOpcode}),children:[e(i,{src:l.collectOppic,className:"img"}),a(t,{className:"info",children:[e(r,{className:"title",children:l.collectOpcont}),a(r,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Qo=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:r,checked:c,handleSelectAll:d,selectAllChecked:m}=ve(),{View:p,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:C,Image:f}=h();return e(p,{className:"collectList",children:0===l.length?e(p,{className:"noDate",children:e(f,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(p,{className:"hasDate",children:[e(p,{className:"topBar",children:e(p,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(ya,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:r,children:[e(g,{onChange:i,style:{height:"100%"},children:l.map((a=>e(Ko,{item:a,edit:o,checked:c},a.collectId)))}),o?a(p,{className:"handleBar",children:[e(p,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(C,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),qo=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:i,SmoothView:r}=h(),c=n((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(i,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:l.footprintOppic,className:"img"}),a(s,{className:"info",children:[e(r,{className:"title",children:l.footprintOpcont}),e(r,{className:"price",children:c})]})]})]})},Zo=({item:o,edit:s})=>{const{View:t}=h();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(qo,{footprintItem:a,edit:s},l)))]})},$o=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Pe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(Zo,{item:a,edit:o},l)))})},Xo=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:i}=h(),{footprintList:n,edit:r,setEdit:c,getSelectItem:d,delItem:m,getData:p,loading:u}=Ie();return e(i,{loading:u,children:e(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>c(!r),children:r?"完成":"编辑"})}),e(ya,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(s,{onChange:d,children:e($o,{footprintList:n,edit:r})}),r?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Jo=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],_o=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=h();return e(s,{className:"promotionListTab",children:Jo.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),es=({data:l})=>{const{View:o}=h(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,promotionEndtime:r}=l;return a(o,{className:"promotionItem",children:[a(o,{className:"lPart",children:[e(o,{className:"round"}),e(o,{className:"tagBg",children:a(o,{className:"txt",children:["官方",s]})}),e(o,{className:"rule",children:i.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Pe(n).format("YYYY-MM-DD")," ~ ",Pe(r).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},as=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(Jo[0].val),{list:r,getData:c}=Be({params:i}),{View:d,ScrollView:m}=h();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(_o,{activeColor:l,setParams:n,params:i}),e(d,{children:e(ya,{id:"listWrap",children:e(m,{onScroll:()=>c(),children:r.map(((a,l)=>e(es,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=h(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const ls=()=>{const{View:a,Image:l}=h();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},os=({list:o,coe:s,config:t,backgroundColor:i,color:n})=>{const{View:r,Text:c}=h();return e(l,{children:o.length?o.map(((o,d)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName}`,style:{backgroundColor:i,color:n},children:a(r,{className:"coupon-content",children:[e(r,{className:"price",children:e(c,{className:"num",children:o.pbName})}),a(r,{className:"couponListItem-info",children:[e(c,{className:"title",children:o.discName}),a(c,{className:"date",children:["有效期至:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}),t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===s.current?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},d))):e(ls,{})})},ss=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:r,ScrollView:c}=h(),{coe:d,getList:m,config:p,switchTab:u,list:g=[]}=Ae();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:p.current.map(((l,o)=>a(n,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(r,{className:"icon"})]},l.id)))}),e(ya,{id:"couponTab",bottomHeight:"60",children:e(c,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(os,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:p})})})})]})})),ts=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:r,ruleColor:c,timeColor:d,paddingTop:m,paddingBottom:p})=>{const{View:u}=h(),{list:g,takeCoupon:N,takeList:C}=Ve({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${p}px`},children:g.map(((l,o)=>{const m=V(l,"pbName"),p=V(l,"pmPromotionDiscountList"),h=V(p.at(-1),"discName"),g=V(l,"promotionName"),f=Pe(V(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Pe(V(l,"promotionEndtime")).format("YYYY-MM-DD"),y=V(l,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:n},children:m}),e(u,{className:"rule",style:{color:c},children:h})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:r},children:g}),a(u,{className:"validity",style:{color:d},children:[f," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||C.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),is=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:r,titleColor:c,timeColor:d,gap:m,paddingTop:p,paddingBottom:u})=>{const{View:g}=h(),{list:N,takeCoupon:C,takeList:f}=Ve({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:p,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=V(l,"pbName"),p=V(l,"pmPromotionDiscountList"),h=V(p.at(-1),"discName"),u=V(l,"promotionName"),N=Pe(V(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Pe(V(l,"promotionEndtime")).format("YYYY-MM-DD"),y=V(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:n},children:m}),e(g,{className:"rule",style:{color:r},children:h}),e(g,{className:"info",style:{color:c},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||f.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>C({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),ns=s((l=>{var{type:o=1,coupons:s=[]}=l,t=Ue(l,["type","coupons"]);const{View:i}=h();return a(i,{className:"getCouponOne",children:[1===o?e(ts,Object.assign({coupons:s},t)):null,2===o?e(is,Object.assign({coupons:s},t)):null]})})),rs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=Le(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},cs=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:r}=h(),{info:c}=Te(l);return a(n,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{className:"title",children:c.noticeTitle}),c.noticePicurl?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl}):null,c.noticePicurl1?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl1}):null,c.noticePicurl2?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl2}):null,c.noticePicurl3?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl3}):null,e(n,{className:"content",children:c.noticeContext})]})})),ds=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=De(l),{View:r,ScrollView:c}=h(),{doclistContent:d,doclistTitle:m,doclistTitle4:p}=n;return e(r,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(ya,{id:"a",children:a(c,{children:[e(r,{className:"title",children:m}),e(r,{className:"author",children:p}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:d||""}})]})})})}));export{Xa as AddressDetail,Qa as AddressList,qa as AddressListBtn,ka as AfterSalesApply,Ma as AfterSalesDetail,La as AfterSalesList,Ea as AfterSalesType,as as AllPromotionList,ds as ArticleDetail,ga as BackTop,ro as CartList,co as CartOperate,Xl as CartTop,ra as ClassifyNav,ma as ClassifyNavOne,da as ClassifyNavOneJsx,ua as ClassifyNavThree,pa as ClassifyNavTwo,Qo as CollectionList,ss as CouponList,Ca as Cube,Uo as EvaluateDetail,Yo as EvaluateList,Fo as ExpressInfo,Xo as FootPrint,ns as GetCouponOne,fl as Goods,ol as GoodsClassify,rl as GoodsClassifyOne,pl as GoodsClassifyTwo,Ol as GoodsDetailAndEvaluate,wl as GoodsDetailBanner,Tl as GoodsDetailCoupon,Ul as GoodsDetailHandleBar,Ql as GoodsDetailHandleBarOne,xl as GoodsDetailInfo,vl as GoodsDetailInfoOne,Al as GoodsDetailPromotion,Bl as GoodsDetailSku,$l as GoodsList,bl as GoodsSlider,yl as GoodsSlideshow,Ye as Line,Wo as MineData,Go as MineFunction,jo as MineOrderEntry,Ja as MyAgreementList,el as MySetting,_a as MySettingJsx,rs as Notice,cs as NoticeDetail,zo as OrderDetail,Do as OrderList,wo as PaymentMode,uo as PlaceOrderAddress,No as PlaceOrderCoupon,Co as PlaceOrderDelivery,fo as PlaceOrderGood,bo as PlaceOrderInfo,yo as PlaceOrderOperate,xo as PlaceOrderResult,Ge as QjMobileIcon,gl as Search,Cl as SearchPage,Nl as SearchStyleTwo,je as Service,ta as Slider,He as TextLine,Ee as Title,Je as ToPrice,ia as Video,qe as addressIdConst,Ze as fixPrice,$e as fixPrice1,Xe as formatTime,Qe as useService};
1
+ import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import o,{memo as s,useState as t,useEffect as i,useMemo as n,useContext as r,useRef as c,createContext as d,createElement as m,Fragment as p}from"react";import{useComponent as h,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import C from"classnames";import{getEnv as f,getTaro as b,navigatorHandler as y,getStorage as w,navigatorBackImpl as S,setStorage as x}from"@brushes/utils";import{queryOcsconfigList as k,find as v,getContractNumbers as I}from"qj-b2c-api";import{queryOcserviceConfPageByMember as B}from"qj-b2b-api";import{get as A,isEqual as V,isEmpty as L,noop as T,groupBy as D}from"lodash-es";import{useCube as P,useGoTop as R,useAfterSalesApply as z,useAfterSalesList as M,afterSalesTabConfig as O,useAfterSalesDetail as F,useAfterSalesChooseType as W,useAddressItem as j,useAddressList as G,useEditAddress as E,useMySetting as H,useGoodsClassify as Y,useGoods as U,useGoodDetail as K,useBanner as Q,useGoodCollection as q,useGoodSpecAndPrice as Z,useGoodFootprint as $,useGoodsShare as X,useGoodSkuStore as J,popupImplement as _,usePromotion as ee,useAddCoupon as ae,useCoupon as le,useEvaluate as oe,useAddShopping as se,useGoodSku as te,useGoodsList as ie,useCartTop as ne,useCartListNext as re,useCartOperate as ce,useOrderAddress as de,useOrderGood as me,useOrderCoupon as pe,useOrderInfo as he,useOrderPay as ue,useOrderResult as ge,useOrderResultResult as Ne,useOrderOperate as Ce,orderStatusImpl as fe,useOrderList as be,orderStatusList as ye,useOrderDetail as we,useExpressInfo as Se,useEvaluateDetail as xe,useCollectionList as ke,useFootprint as ve,useMarketingPromotion as Ie,useCouponList as Be,useAllCoupon as Ae,useNotice as Ve,useNoticeDetail as Le,useArticleDetail as Te}from"qj-b2c-store";import De from"dayjs";import{checkMobile as Pe,ProvinceComponent as Re,CityComponent as ze,AreaComponent as Me,navigatorLink as Oe}from"@brushes/shared-utils";import{DynamicForm as Fe}from"@brushes/mobile-form";const We=s((({width:a,height:l,top:o,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:r}=h();return e(r,{style:{width:a,height:l,borderRadius:n,top:o,left:i,right:s,bottom:t},className:"components-service"})})),je=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=h();return e(i,{onClick:o,className:C(l,t?`${l}-${t}`:"",a),style:s})},Ge=s((({value:a,textIndent:l,fontSize:o,textAlign:s,color:t,backgroundColor:i,fontWeight:n,textDecoration:r,fontStyle:c,paddingTop:d,paddingLeft:m,paddingRight:p,paddingBottom:u})=>{const{View:g}=h();return e(g,{className:"components-title",style:{paddingTop:d,paddingBottom:u},children:e(g,{style:{fontSize:o,textAlign:s,color:t,backgroundColor:i,fontWeight:n,textDecoration:r,fontStyle:c,paddingLeft:m,paddingRight:p,textIndent:l},children:a})})})),Ee=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:r,lineColor:c,fontWeight:d,fontStyle:m,textDecoration:p})=>{const{View:u}=h();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:n,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${c}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:p,fontSize:`${i}px`,color:r},children:o})]})},He=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:r}=h();return e(r,{style:{paddingTop:i,paddingBottom:n},children:e(r,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function Ye(e,a){var l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(l[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(l[o[s]]=e[o[s]])}return l}function Ue(e,a,l,o){return new(l||(l=Promise))((function(s,t){function i(e){try{r(o.next(e))}catch(e){t(e)}}function n(e){try{r(o.throw(e))}catch(e){t(e)}}function r(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(i,n)}r((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const Ke=(e="b2c")=>{const[a,l]=t([]),o=n((()=>f()),[]);i((()=>{Ue(void 0,void 0,void 0,(function*(){const e=yield s();l(r(e))}))}),[]);const s=()=>Ue(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield k();case"b2b":return yield B().then((e=>e.list))}})),r=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=A(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${A(o,"ocserviceConfRemark")}: ${A(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${A(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;b().showActionSheet({itemList:a})}}},Qe={label:""},qe=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Ze=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",$e=(e,a)=>{const l=Math.floor(e/1e3)%60,o=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${o}分钟 ${l}秒${a}`},Xe=e=>1===String(e).indexOf(".")?Je(e):_e(e),Je=e=>{const a=Number(e).toFixed(0),l=(Number(e)-Number(a)).toFixed(2),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+"."+String(l).slice(2)},_e=e=>{const a=Number(e).toFixed(0),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+".00"},ea=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const aa=e=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ea+e:e?ea+"/paas/shop"+e:e),[e]),la=s((({item:a,position:l,direction:o})=>{var s,t;const{Image:i,View:n}=h(),r=aa(a.imgUrl);return e(i,{mode:"scaleToFill",src:r,style:{width:"100%",height:"100%",paddingBottom:"top"===l&&"vertical"===o?"30px":"",marginTop:"top"===l&&"horizontal"===o?"30px":""},onClick:y.bind(null,null===(s=a.link)||void 0===s?void 0:s.value,null===(t=a.link)||void 0===t?void 0:t.params)})})),oa=s((({Position:o="none",className:s="",className1:t="",defaultValue:i=[],type:r,autoplay:c,autoplayInterval:d,direction:m,loop:p,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f,selectImg:b,imgHeight:y,fontsize:w=16,textAlign:S="center",fontColor:x="#000000",backGroundColor:k="#ffffff"})=>{const v=n((()=>C({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=h(),A=P(i,b||[]),V=a=>e(B,{className:t,style:{fontSize:w,zIndex:99,justifyContent:"left"===S?"flex-start":"center"===S?"center":"flex-end",color:x,backgroundColor:k},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f},children:e(I,{imgHeight:y,data:A,className:v,type:r,autoplay:c,autoplayInterval:d,direction:m,loop:p,interval:5e3,vertical:"vertical"===m,render:s=>a(l,{children:["top"===o||"bottom"===o?V(s):null,e(la,{item:s,position:o,direction:m})]})})})})),sa=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:i,autoplay:r,autoplayInterval:c,direction:d,loop:m,selectImg:p,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:f=0,fontsize:b=16,textAlign:y="center",fontColor:w="#000000",backGroundColor:S="#ffffff",otherStyles:x=[],ImgShadow:k=!1,Position:v="top"})=>{const{View:I}=h(),B=n((()=>C("silder-title",{"silder-tops1":"top"===v&&"horizontal"===d,"silder-bottoms":"bottom"===v&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===v,"silder-tops":"vertical"===d&&"top"===v},...x)),[x,v]);return e(I,{style:{padding:`${N}px ${f}px`},children:e(oa,{Position:v,defaultValue:t,type:i,autoplay:r,autoplayInterval:c,direction:d,loop:m,selectImg:p,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:w,backGroundColor:S,className:C({"outer-shadow":k}),className1:B})})})),ta=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:r})=>{const{View:c}=h();return e(c,{style:{paddingTop:t,paddingBottom:i},children:e("video",{className:"components-video",src:a,poster:l,autoPlay:o,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:r}})})})),ia=({src:a,borderRadius:l})=>{const{Image:o}=h(),s=aa(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},na=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:r}=h(),c=P(l,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:c.map(((l,s)=>a(n,{className:"classifyNavItem",onClick:()=>{var e,a;return y(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(ia,{src:l.imgUrl,borderRadius:o}),e(r,{className:"label",children:l.title})]},s)))})})})),ra=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=h(),t=aa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},ca=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:r,layout:c,marginTop:d,marginBottom:m})=>{const{View:p}=h(),u=P(a,l);return e(p,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${c}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(p,{className:"classifyNav-item",onClick:()=>{var e,l;return y(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(ra,{src:a.imgUrl,imgBoxShadow:r,imgRadius:n})},l)))})},da=s(ca),ma=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:r,fontColor:c,tagBgColor:d,otherStyle:m,layout:p,marginTop:u,marginBottom:g})=>{const{View:N}=h(),f=P(a,l),b=n((()=>C("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:f.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return y(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{width:4===p?"74px":"60px"},children:e(N,{className:b,style:{fontSize:r,color:c},children:a.title})},l)))})})),pa=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:r,layout:c}=a,{View:d}=h(),m=aa(r.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return y(null===(e=r.link)||void 0===e?void 0:e.value,null===(a=r.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===c?"74px":"60px",height:4===c?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:r.title})})})},ha=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:r,fontSize:c,fontColor:d,tagBgColor:m,otherStyle:p,layout:u,marginTop:g,marginBottom:N})=>{const{View:C}=h(),f=P(a,l);return e(C,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:f.map(((a,l)=>e(pa,{layout:u,item:a,imgRadius:n,imgBoxShadow:r,fontSize:c,fontColor:d,tagBgColor:m,otherStyle:p},l)))})})),ua=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=n((()=>f()),[]),{View:i}=h(),{goTop:r}=R();return e(i,{className:"backTop",onClick:r,style:{padding:t?"0":"10px"},children:e(je,{style:{display:"inline-block",color:o,fontSize:s,backgroundColor:l,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),ga=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=h(),i=aa(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>{var e,a;return y(null===(e=o.link)||void 0===e?void 0:e.value,null===(a=o.link)||void 0===a?void 0:a.params)}})},Na=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:r,paddingTop:c,paddingBottom:d,selectImg:m})=>{const{View:p}=h(),u=P(a,m);return e(p,{style:{paddingTop:c,paddingBottom:d,paddingLeft:r,paddingRight:r},children:e(p,{className:`cube-type${l}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:u.map(((a,t)=>e(ga,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Ca=o.createContext(null),fa=s((()=>{const{View:a}=h(),{tip:l}=r(Ca);return e(a,{className:"afterSalesApplyTip",children:l})}));const ba=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:r}=a,c=Ye(a,["bottomHeight","children","id","heightWrap"]);const d=n((()=>f()),[]),m=function(e){const[a,l]=t(0);return i((()=>{if(!f()||!e)return;const a=b().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),p=function(e=""){return n((()=>{if(!f())return 0;const a=b(),l=a.getStorageSync("safeArea"),o=a.getStorageSync("tabBarHeight")||0;return l+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{View:u}=h(),g=n((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(s){return{height:`calc(${b().getSystemInfoSync().windowHeight+"px"} - ${m+p}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,p]);return e(u,Object.assign({},c,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":p}),id:s,children:o}))},ya=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=h(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:p,popupLoading:u}=r(Ca);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(ba,{children:a(i,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:p,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),wa=s((()=>{const{View:l}=h(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=r(Ca);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(je,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(l,{className:"price",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款金额"})]}),e(l,{className:"allPrice",children:e(l,{className:"single",children:qe(i)})})]}),e(ya,{popupShow:s})]})})),Sa=s((()=>{const{View:l,TextArea:o,Textarea:s}=h(),t=s||o,{handleChooseImg:i,imgGroup:n,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:p}=r(Ca);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:p}),a(l,{className:"imgGroup",children:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(je,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(je,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),xa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:r,paddingRight:c,paddingBottom:d})=>{const{View:m,WrapLoading:p}=h(),{tip:u,reasonList:g,popupVisible:N,popupLoading:C,handlePopupShow:f,handleChooseReason:b,reason:y,handleChooseImg:w,imgGroup:S,placeholder:x,handleDelImg:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:V}=z({contractBillcode:o,skuCode:s});return e(p,{loading:V,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:r,paddingRight:c},children:a(Ca.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:C,handlePopupShow:f,handleChooseReason:b,reason:y,handleChooseImg:w,imgGroup:S,placeholder:x,handleDelImg:k,limit:v,goodsNum:t,goodsPrice:i,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(fa,{}),e(wa,{}),e(Sa,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},ka={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},va={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ia=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:i,Image:n}=h();return a(i,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(i,{className:"title",children:[a(i,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(i,{className:"rPart",children:[e(je,{style:{color:null===(s=ka[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=ka[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:ka[l.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src:l.ocRefundGoodsList[0].dataPic,className:"img"})}),a(i,{className:"rPart",children:[e(i,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(i,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(i,{className:"tip",children:[e(i,{class:"lPart",children:va[l.refundType][l.dataState]}),e(je,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ba=s((()=>{const{View:a}=h();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Aa=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=h(),{afterSalesList:i,goAfterSalesDetail:n,loading:r,haseData:c}=M(a,l);return e(t,{loading:r,children:e(o,{className:"tabContent",children:e(ba,{id:"tabContent",children:e(s,{children:c?i.map((a=>e(Ia,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Ba,{})})})})})})),Va=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=h();return e(i,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:O,render:l=>e(Aa,{item:l,refreshNum:a})})})})),La=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:r,children:c})=>{const{View:d,Image:m,SmoothView:p}=h(),u=qe(i),g=n((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(d,{className:"card-item",children:[e(m,{src:o,alt:"",className:"card-item-img"}),a(d,{className:"card-item-info",children:[a(d,{className:"card-item-info-container",children:[e(p,{className:"card-item-info-container-title",children:s}),e(p,{className:"card-item-info-container-price",children:u})]}),a(d,{className:"card-item-info-sub",children:[e(p,{className:"sku",children:r}),e(p,{className:"count",children:g})]}),c]})]})})},Ta=(e,a)=>{if("B01"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"}[a]}if("B02"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}[a]}},Da=o.createContext(null),Pa=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Da),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=h();return e(d,{popupVisible:o,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(ba,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:l.map(((l,o)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Ra=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Da),{View:n,Input:c}=h();return a(l,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:o,children:e(n,""===s?{style:{color:"#000"},children:"请填写"}:{children:s})})]}),a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流单号"})]}),e(n,{className:"sender_input",children:e(c,{type:"number",placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(n,{className:"expressInfo",children:e(n,{className:"expressInfo_btn",onClick:i,children:"提交物流信息"})}),e(Pa,{})]})})),za=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:r,submitExpressInfo:c,handleCancelAfterSales:d,companyList:m,popupShow:p,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:C,loading:f}=F({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:w,refundMoney:S,refundMeo:x,refundEx:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:V,packageCode:L,packageBillno:T}=r,{View:D,Image:P,WrapLoading:R}=h();return e(R,{loading:f,children:e(D,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(Da.Provider,{value:{companyList:m,popupShow:p,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:C,submitExpressInfo:c},children:[a(D,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(D,{className:"left_text",children:Ta(v,b)}),e(D,{className:"right_time",children:De(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(D,{className:"afterSalesDetailContent",children:a(D,{className:"refundDetail",children:[e(D,{className:"title",children:"退款信息"}),e(D,{className:"goodsDetail",children:null==w?void 0:w.map(((a,l)=>e(La,{dataPic:a.dataPic,pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"退款原因"}),e(D,{className:"right",children:k})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"退款金额"}),e(D,{className:"right",children:S})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"描述说明"}),e(D,{className:"right",children:x})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"补充凭证"}),e(D,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(P,{src:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"申请时间"}),e(D,{className:"right",children:De(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"退款编号"}),e(D,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[b>0?a(D,{className:"merchantMsg",children:[e(D,{className:"title",children:"商家信息"}),a(D,{className:"name",children:[B,"  ",A]}),e(D,{className:"address",children:V})]}):"",1===b?a(D,{className:"writeMsg",children:[e(D,{className:"wlMsg",children:"物流信息"}),e(Ra,{})]}):"",b>1?a(D,{className:"writeMsg",children:[e(D,{className:"wlMsg",children:"物流信息"}),a(D,{className:"express_content",children:[e(D,{className:"name",children:"物流单号"}),e(D,{className:"code",children:T})]}),a(D,{className:"express_content",children:[e(D,{className:"name",children:"物流公司"}),e(D,{className:"code",children:N})]}),a(D,{className:"express_content",children:[e(D,{className:"name",children:"物流公司编码"}),e(D,{className:"code",children:L})]})]}):""]}):""})]})}),0===b?e(D,{className:"footerBtn",children:e(D,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ma=o.createContext(null),Oa=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=h(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:p}=r(Ma),{goodsName:u,skuName:g,dataPic:N}=m;return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:N,className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:qe(p)})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(je,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>n((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),i?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Fa={1:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],2:[{label:"仅退款(无需退货)",value:"B01"}],3:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],4:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}]},Wa=(e=2)=>Fa[e],ja=s((({afterSalesType:l=2,contractBillcode:o,skuCode:s})=>{const{View:t}=h(),{goApply:i,goodsNum:n}=r(Ma);return e(t,{children:a(t,{className:"afterSalesTypeType",children:[e(t,{className:"title",children:"售后类型"}),Wa(+l).map(((l,r)=>a(t,{className:"item",onClick:i.bind(null,l.value,o,s,n),children:[e(t,{className:"headline",children:l.label}),e(je,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},r)))]})})})),Ga=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:r,paddingBottom:c}=l,{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,loading:C,goodsPrice:f}=W({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=h();return e(y,{loading:C,children:e(b,{className:"afterSalesType",style:{paddingTop:i,paddingLeft:n,paddingRight:r,paddingBottom:c},children:a(Ma.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:f},children:[e(Oa,{}),e(ja,{afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},Ea=({setDefault:a,checked:l})=>{const{SmoothCheckbox:o,Checkbox:s}=h();return e(o,{onChange:a,children:e(s,{checked:l,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},Ha=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:i}=h(),{handlerImpl:n}=j(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(Ea,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{className:"del",onClick:o,children:"删除"})]})]})},Ya=s((()=>{const{View:a,Skeleton:o}=h(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),Ua=s((({url:l,title:o,subTitle:s,link:t,style:i})=>{const{View:n,Image:r}=h();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(r,{className:"img",src:l}),e(n,{className:"title",children:o}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),Ka=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:r}=h(),{list:c,delAddress:d,setDefault:m,skullShow:p}=G(a);return e(r,{className:"addressListWrap",style:{paddingTop:i+"px",marginBottom:t+"px"},children:p?e(Ya,{}):e(r,{className:"addressList",children:c.length?c.map(((a,l)=>e(Ha,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(Ua,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),Qa=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=h();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>y("addressEditor"),children:"+ 新增地址"})})})),qa=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],Za=[{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"text",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:Pe}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Re}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:ze}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Me}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",label:"设置默认地址",name:"addressDefault",extraProps:{color:"#000"}}],$a=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=h(),{Button:r}=g,{onSubmit:c}=E();return e(n,{className:"addressDetail",style:{paddingBottom:i+"px",paddingTop:t+"px"},children:e(Fe,{footer:e(r,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:qa,onSubmit:c,fields:Za})})})),Xa=s((()=>{const{View:l}=h(),o=e=>{y(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(l,{className:"myAgreementList",children:e(l,{className:"list",children:s.current.map(((s,t)=>a(l,{className:"item",onClick:o.bind(null,s.type),children:[e(l,{children:s.label}),e(l,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),Ja=()=>{const{View:l}=h(),{mySettingGoBind:o,mySettingLogout:s}=H();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(je,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},_a=s(Ja),el=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:r}=h();return e(l,{children:o.map((l=>e(i,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(i,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:l.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{className:`container container_columns${t}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:t})=>a(i,{onClick:()=>y("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(r,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:al}=g,ll=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:r}=h(),{activeKey:c,setActiveKey:d,navList:m,flag:p}=Y();return e(n,{children:e(ba,{id:"goodsClassify",children:e(r,{children:a(n,{style:{height:p?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{className:"side",children:e(al,{activeKey:c,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(al.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===c?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(el,{navList:m,activeKey:c,cell:l})})]})})})})})),ol=d(null),sl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(ol),{View:d,ScrollView:m}=h(),[p,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),i(`${a}`),n("0"),p&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!0),children:e(u,{value:"paixusort-jiang"})})]}),p?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!1),children:e(u,{value:"paixusort-sheng"})})}),e(ba,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),tl=s((({thirdList:l})=>{const{View:o,Image:s}=h(),{picShadow:t,layout:i}=r(ol);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:l.map(((l,i)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>y("goodList",{classtreeCode:l.classtreeCode}),children:[e(s,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},i)))})})),il=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(ol),m=n((()=>f()),[]),{secondList:p,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=n((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=n((()=>{var e;return(null===(e=o[l])||void 0===e?void 0:e.childList)||[]}),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:g,ScrollView:N,SideBar:C}=h();return e(g,{children:e(ba,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(C,{activeKey:s,onChange:t,children:p.map(((a,l)=>e(C.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},l)))}),e(tl,{thirdList:u})]})})})})})),nl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:r,layout:c})=>{const{View:d}=h(),{navList:m,activeKey:p,setActiveKey:u}=Y(),[g,N]=t("0"),[C,f]=t("0");return e(ol.Provider,{value:{fCoe:g,setFCoe:N,sCoe:C,setSCoe:f,navList:m,activeKey:p,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:r,layout:c},children:a(d,{className:"goodsClassifyOne",children:[e(sl,{}),e(il,{})]})})})),rl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:i,Image:n}=h();return e(i,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(i,{className:"level3ArrItem",onClick:()=>y("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:l.goodsClassName})]},o)))})})),cl=s((({navList:l,activeKey:o,layout:s,picShadow:n})=>{var r;const[c,d]=t(0);i((()=>{d(l.findIndex(m))}),[o,c]);const m=e=>e.goodsClassCode===o,{View:p,Image:u}=h();return a(p,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:A(l[c],"goodsClassLogo"),mode:"widthFix"}),null===(r=A(l[c],"childList"))||void 0===r?void 0:r.map(((l,o)=>a(p,{children:["0"===l.goodsClassHide?e(p,{className:"level2Title",children:l.goodsClassName}):"",e(rl,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:dl}=g,ml=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:r}=h(),{activeKey:c,setActiveKey:d,navList:m,flag:p}=Y();return e(r,{className:"goodsClassifyTwo",children:e(ba,{id:"goodsClassifyTwo",children:a(r,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(r,{className:"side",children:e(dl,{activeKey:c,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(dl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(r,{className:"main",children:e(cl,{navList:m,activeKey:c,layout:i,picShadow:n})})]})})})})),pl="data:image/png;base64,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",hl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",ul=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:r,paddingRight:c,sticky:d,fontsize:m,paddings:p,otherStyles:u=[],__pageConfig:g})=>{const{View:N,Image:f}=h(),b=n((()=>C("txt",...u)),[u]);return e(N,{onClick:()=>y("search"),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:c},className:d?"boxpositon":"",children:a(N,{className:"components-search",style:{backgroundColor:t,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(f,{src:pl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:b,style:{color:s,display:"inline-block",fontSize:m},children:l})]})})})),gl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:r,paddingRight:c,sticky:d,fontsize:m,paddings:p,otherStyles:u=["mockWeight","mockItalic"]})=>{const{View:g,Image:N}=h(),f=n((()=>C("txt",...u)),[u]);return e(g,{onClick:()=>y("search"),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:c},className:d?"boxPosition":"",children:a(g,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(g,{style:{width:"80%"},children:[e(N,{src:pl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:f,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(g,{className:["seachBtn",i?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Nl=s((({placeholder:l,placeholderText:o,history:s,historyText:i,paddingBottom:r,paddingTop:c})=>{const d=n((()=>f()),[]),{View:m,Text:p,Input:u}=h(),[g,N]=t((()=>w("history")||[])),C=e=>{y("goodList",{searchParam:e})};return a(m,{className:"searchPage",style:{paddingTop:c,paddingBottom:r},children:[a(m,{className:"search-title",children:[e("img",{src:pl,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:e=>Ue(void 0,void 0,void 0,(function*(){d&&(N((a=>{if(!a.includes(e.detail.value)&&e.detail.value){const l=a.concat(e.detail.value);return x("history",l),l}return a})),C(e.detail.value))}))},l?{placeholder:o}:{})),e(p,{className:"btn",onClick:()=>S(),children:"取消"})]}),s?a(m,{className:"historyWrap",children:[a(m,{className:"title",children:[a(m,{className:"label",children:[e(m,{className:"icon"}),i]}),e(je,{onClick:()=>Ue(void 0,void 0,void 0,(function*(){(yield b()).removeStorageSync("history"),N([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(m,{className:"content",children:g.map(((a,l)=>e(m,{onClick:()=>C(a),className:"historyItem",children:a},l)))})]}):null]})})),Cl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:p="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:w,goodsName:S=!0,goodsPrice:x=!0,goodsCar:k=!0,goodsBorder:I=!0,goodsShadow:B=!1,marginGap:T=10})=>{const[D,P]=t(l),R=c(),{View:z,Text:M}=h();return i((()=>{V(R.current,u)||(R.current=u,L(u)?P(l):Ue(void 0,void 0,void 0,(function*(){try{const e=yield v({[p]:u.toString(),distinctField:"goodsNo"}),a=A(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(z,{style:{paddingTop:N,paddingBottom:f},children:e(z,{className:C({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:b,paddingRight:w},children:D.map(((l,o)=>a(z,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:I?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(z,{className:"goods-img",style:{backgroundImage:`url(${l.dataPic})`}}),a(z,{className:"space",children:[e(z,{className:"titleType",style:{display:S?"block":"none"},children:l.goodsName}),e(z,{className:"subTitle",children:l.brandName}),d&&a(z,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(z,{className:"price",children:[a(z,{style:{fontSize:18},children:[x?qe(l.pricesetNprice):"",1===g&&e(M,{className:"markedPrice",children:qe(l.pricesetMakeprice)})]}),e(z,{className:"anticon",style:{display:k?"block":"none"},children:e(je,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),fl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:r,wrapBorderColor:c,wrapBgColor:d,wrapShadow:m,goodsRadius:p,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:C,marginLeft:f,marginRight:b})=>{const{View:w}=h(),{list:S}=U({defaultValue:l,goods:o},n);return e(w,{className:"goodsSlider",style:{borderRadius:r,borderColor:c,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:C,marginLeft:f,marginRight:b},children:S.map(((l,o)=>a(w,{className:"goodsSliderItem",style:{borderRadius:p,backgroundColor:u,marginRight:`${g}px`},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(w,{className:"img",style:{backgroundImage:`url(${l.dataPic})`}}),a(w,{className:"board",children:[e(w,{className:"title",children:l.goodsName}),a(w,{className:"info",children:[a(w,{className:"lPart",children:[s?e(w,{className:"price",children:qe(l.pricesetNprice)}):null,t?e(w,{className:"marketPrice",children:qe(l.pricesetMakeprice)}):null]}),i?e(w,{className:"rPart",children:e(je,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),bl=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:r,salesNum:c,price:d,apiKey:m="goodsCode",goodsRadius:p,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:C,btnColor:b,btnRadius:w})=>{const S=n((()=>f()),[]),{list:x}=U({defaultValue:l,goods:o},m),{SmoothSwiper:k,View:v,Image:I}=h(),[B,A]=t(0);return a(v,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:x,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(v,{className:["goodsSlideshowItem",""+(l.goodsCode===x[B].goodsCode&&S?"active":"")].join(" "),style:{borderRadius:p,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:l.dataPic,mode:"widthFix"}),r?e(v,{className:"goodsName",children:l.goodsShowname}):null,c?a(v,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(v,{className:"price",children:qe(l.pricesetNprice)}):null,i?e(v,{className:"marketPrice",children:qe(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:C,color:b,borderRadius:w},children:N})]})})]})})),yl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[]}=K(o,s),i=Q(t);return e(oa,{selectImg:i,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},wl=l=>{const{SmoothView:o,View:s}=h(),{handleCollect:t,collection:i}=q(l);return a(s,{onClick:t,children:[L(i.dataObj)?e(je,{value:"star-fill",style:{fontSize:20}}):e(je,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:L(i.dataObj)?"收藏":"已收藏"})]})},Sl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n}=h(),{rsSkuDomainList:r}=K(l,t),{goodInfo:c}=Z(r);return $(l),a(i,{className:"goodsDetail-topInfo",children:[a(i,{className:"lPart",children:[e(n,{className:"name",children:c.goodsName}),e(n,{className:"price",style:{display:o?"block":"none"},children:qe(c.pricesetNprice)})]}),e(i,{className:"rPart",style:{display:s?"flex":"none"},children:e(wl,{goodsName:c.goodsName,pricesetNprice:c.pricesetNprice,dataPic:c.dataPic,skuCode:l})})]})},xl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=h(),{handleCollect:i,collection:n}=q(l),{handleShare:r}=X();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:L(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:r,children:"分享"}):null]})})),kl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:r}=h(),{rsSkuDomainList:c}=K(t,i),{goodInfo:d}=Z(c);return J((e=>e.spec)),$(t),a(n,{className:"goodsDetail-info-one",children:[e(r,{className:"price",style:{display:l?"block":"none"},children:qe(d.pricesetNprice)}),e(r,{className:"title",children:d.goodsName}),e(xl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:t})]})})),vl=s((()=>{const{Text:e}=h(),l=J((e=>e.count)),o=J((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Il=({dispatchPageStore:o})=>{const{View:s,Text:t}=h(),{openPopup:i}=_(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"规格"}),a(s,{className:"info",children:[e(vl,{}),e("img",{src:hl,alt:"",className:"icon"})]})]})})},Bl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=h(),{rsSkuDomainList:i}=K(l,o),{goodInfo:n}=Z(i),r=ee(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:r.length?r.map((({discName:a},l)=>e(s,{className:"item",children:a},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},Al=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponOnceNums:r,couponOnceNumd:c,promotionEndtime:d})=>{const{View:m,Text:p}=h(),{save:u,isPick:g}=ae(),N=n((()=>r-c),[r,c]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(p,{className:"title",children:i}),a(p,{className:"date",children:[De(l).format("YYYY-MM-DD")," - ",De(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>u({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),Vl=()=>{const{View:a,Image:l}=h();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Ll=o=>{var{skuCode:s,scene:t}=o;Ye(o,["skuCode","scene"]);const{View:i,Text:n,Popup:r,Image:c}=h(),{rsSkuDomainList:d}=K(s,t),{goodInfo:p}=Z(d),{coupon:u,visible:g,setVisible:N}=le(d,p.skuCode);return a(l,{children:[a(i,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(c,{src:hl,alt:"",className:"icon"})]})]}),e(r,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(ba,{children:u.length>0?u.map(((e,a)=>m(Al,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Vl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Tl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:n}=h(),[r,c]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);i((()=>{if(s){const e=[...r];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";c(e)}}),[]);const d=e=>{if(!l){for(let a=0;a<r.length;a++)r[a].icon=a>e?"star":"star-fill";c([...r]),a(e+1)}};return e(n,{children:r.map(((a,l)=>e(je,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Dl=({item:l})=>{const{View:o,Image:s}=h();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl,className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Tl,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]})},Pl=({evaluateArr:l})=>{const{View:o}=h();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e(Dl,{item:a},l)))]}):e(Ua,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Rl=({goodsRemark:a})=>{const{View:l}=h(),o=n((()=>a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[a]);return e(l,{className:"goodsDetail-info",children:e("div",{dangerouslySetInnerHTML:{__html:o||""}})})},zl=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:i,evaluateImg:r})=>{const{Text:c}=h(),d=n((()=>i?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(l,{children:d.map(((l,t)=>e(p,{children:a(c,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(c,{className:"line"})]})},t)))})},Ml=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:i,scene:n})=>{const{View:r}=h(),[c,d]=t(0),{goodsRemark:m,goodsCode:p}=K(i,n),u=oe(p);return a(r,{className:"goodsDetailTab",children:[e(r,{className:"tabs",children:e(zl,{tabActive:c,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(r,{className:"group",children:0===c?e(Rl,{goodsRemark:m}):e(Pl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Ol=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:r}=h(),c=J((e=>e.offShelf));return a(n,{className:"sizeArr",children:[e(r,{className:"title",children:l}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(n,{className:C({sizeItem:!0,active:s[i]===a.specValueValue,offShelf:s[i]===a.specValueValue&&c}),onClick:o.bind(null,a.specValueValue,i),children:a.specValueValue},l)))})]})},Fl=s((({handleStep:l})=>{const{View:o,NumStep:s}=h(),t=J((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),Wl=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:r}=h(),{skuList:c}=o;return a(l,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(n,{src:i.dataPic,alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:i.goodsName}),e(r,{className:"price",children:qe(i.pricesetNprice)}),a(r,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),c.map(((a,l)=>e(Ol,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},jl=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=h(),r=J((e=>e.isNeedButton)),c=J((e=>e.offShelf));return c?e(n,{className:C({btnWrap:!0,offShelf:c}),children:e(i,{className:"btn",children:"已下架"})}):e(l,{children:r?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:o,children:"立即购买"})]})})},Gl=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=h(),{spec:r,goodInfo:c}=Z(t),{handleChooseSize:d,handleStep:m,addCardImpl:p,cashImpl:u,addShoppingImpl:g}=se(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(ba,{children:e(n,{children:a(i,{className:"content",children:[e(Wl,{skuInfo:s,handleChooseSize:d,spec:r,goodInfo:c}),e(Fl,{handleStep:m.bind(null,c.goodsNum,c.goodsMinnum)})]})})}),e(jl,{cashImpl:u,addShoppingImpl:g,addCardImpl:p})]})})),El=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=h();return e(i,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(Gl,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},Hl=s((({serverShow:o,cartShow:s,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:r,rPartBgColor:c,rPartStyle:d,dispatchPageStore:m,skuCode:p,platform:u,scene:g})=>{const{View:N,IconMobile:C,Text:f}=h(),b=J((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:S}=K(p,g),{goodInfo:x}=Z(w),{servicePopup:k}=Ke(u),{addCardPopup:v,buyOpenPopup:I}=_(m);return a(N,{className:"goodsDetailHandleBar",children:[a(N,{className:"linkGroup server",onClick:k,style:{display:o?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"客服"})]}),a(N,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:s?"block":"none"},children:[e(C,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"购物车"})]}),e(N,{className:"goods-detail-btn-group",children:b?e(N,{className:"btn addCart offShelf",children:e(f,{className:"btn",children:"已下架"})}):a(l,{children:["26"===S?null:e(N,{className:"btn addCart",onClick:v,style:{color:t,backgroundColor:i,borderTopLeftRadius:n,borderBottomLeftRadius:n},children:"加入购物车"}),e(N,{onClick:I,className:"btn buy",style:{color:r,backgroundColor:c,borderTopRightRadius:d,borderBottomRightRadius:d},children:"10"===x.goodsPro?"预售抢购":"立即购买"})]})})]})})),Yl=o=>{var{$_dataSource:s={},dispatchPageStore:t=T,skuCode:i,scene:n}=o,r=Ye(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:c,goodsCode:d,rsSkuDomainList:m}=K(i,n),p=te(c,m),{popupVisible:h}=s;return a(l,{children:[e(Hl,Object.assign({skuCode:i},r,{dispatchPageStore:t})),e(El,{dispatchPageStore:t,popupVisible:h,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Ul=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:r,rBtnFontColor:c,rBtnColor:d,rBtnStyle:m,dispatchPageStore:p,skuCode:u,scene:g,platform:N})=>{const{View:C,IconMobile:f}=h(),{rsSkuDomainList:b}=K(u,g),{goodInfo:w}=Z(b),{servicePopup:S}=Ke(N),{addCardPopup:x,buyOpenPopup:k}=_(p);return a(C,{className:"goodsDetailHandleBarOne",children:[a(C,{className:"linkGroup server",onClick:S,style:{display:l?"block":"none"},children:[e(f,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:o?"block":"none"},children:[e(f,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"购物车"})]}),a(C,{className:"goods-detail-one-btn-group",children:[e(C,{className:"btn addCart",onClick:x,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(C,{onClick:k,className:"btn buy",style:{border:`1px solid ${r}`,color:c,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===w.goodsPro?"预售抢购":"立即购买"})]})]})})),Kl=o=>{var{popupVisible:s=!1,dispatchPageStore:t=T,skuCode:i,scene:n}=o,r=Ye(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:c,goodsCode:d,rsSkuDomainList:m}=K(i,n),p=te(c,m);return a(l,{children:[e(Ul,Object.assign({skuCode:i},r,{dispatchPageStore:t})),e(El,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Ql=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],ql=({setParams:l,activeColor:o})=>{const{View:s}=h(),[i,n]=t(0),[r,c]=t(Ql);return e(s,{className:"sortWrap",children:r.map((({order:t,sortField:r,name:d},m)=>a(s,{className:"sortItem "+(i===m?"active":""),onClick:()=>((e,a,o)=>{n(a),o&&c((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(r,m,t),style:{color:i===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(je,{style:{color:i===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(je,{style:{color:i===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Zl=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:i=!0,goodsPrice:r=!0,lineationGoods:c=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:p=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:f={}})=>{const{View:b,Loading:y,SmoothView:w,Image:S,ScrollView:x,IconMobile:k}=h(),[v,I]=t({}),{loading:B,getData:A,list:V}=ie(l,o,v),L=n((()=>C("textBox",{btm:!r&&!c})),[r,c]),T=n((()=>C("name",{boxNone:!i})),[i]),D=n((()=>C("middle_margin",{boxNone:!d})),[d]),P=n((()=>C("goodDetail",{boxNone:!r&&!c&&!m})),[r,c,m]),R=n((()=>C({detailContent:!(T.includes("boxNone")&&D.includes("boxNone")&&P.includes("boxNone"))})),[T,D,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(ql,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(ba,{id:"listWrap",children:a(x,{onScroll:()=>A(v),children:[e(b,{className:"list",style:{gap:g},children:V.map((l=>a(b,{onClick:()=>Oe(f,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(S,{src:l.dataPic,className:"img"}),a(b,{className:R,children:[e(w,{className:T,children:l.goodsName}),a(b,{className:D,children:["12已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:L,children:[e(w,{className:"price",style:{display:r?"block":"none"},children:qe(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:c?"block":"none"},children:qe(l.pricesetMakeprice)})]}),e(b,{style:{display:m?"block":"none"},children:e(k,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),$l=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:i,btnShape:r})=>{const{View:c}=h(),{cartIsEditor:d}=l,{editorImpl:m}=ne(a),p=n((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?i:"",borderRadius:o?r:""})),[o,s,t,i,r]);return e(c,{className:"cart-edit",children:e(c,{className:"btn",onClick:m,style:p,children:d?"完成":"编辑"})})},Xl=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:i}=h();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(i,{"data-code":o,checked:o,value:s})})]})})),Jl=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:r,SmoothRadio:c}=h();return e(i,{popupVisible:o,popupHandler:s,children:e(r,{className:"goodsDetail-coupon-popup",children:e(ba,{children:e(n,{children:e(c,{onChange:a,children:t.map(((e,a)=>m(Xl,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},_l=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,pricesetNprice:r,handleStep:c})=>{const{View:d,SmoothView:m,NumStep:p}=h();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",t," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:qe(r)}),0===s&&e(p,{count:i,handleStep:c.bind(null,n,i)})]})]})})})),eo=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:i}=h(),r=n((()=>{let a="";switch(o){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==o?e(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(i,{className:"cart-item-image",children:[r,e(t,{className:"img",src:l,onClick:()=>y("goodDetail",{skuCode:s})})]})})),ao=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:i}=h(),r=n((()=>(a||0===o)&&s.includes(l+"")),[s,a,l,o]);return e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==o,checked:r,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),lo=({promotion:o=[],updatePm:s,shoppingGoodsId:i,promotionCode:r})=>{const{View:c}=h(),[d,m]=t(!1),p=n((()=>((o||[]).find((e=>e.promotionCode===r))||{}).promotionName),[o]);return a(l,{children:[a(c,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(c,{children:p}),e(c,{children:"修改"})]}),e(c,{onClick:e=>{e.target.dataset.code&&(m(!1),s(i,"-"))},children:e(Jl,{promotionCode:r,onChange:e=>{m(!1),s(i,e.detail.value)},promotion:o||[],visible:d,setVisible:m})})]})},oo=s((l=>{var{item:o}=l,s=Ye(l,["item"]);const{View:t}=h(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(ao,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(eo,{dataState:o.dataState,dataPic:o.dataPic,skuCode:o.skuCode}),e(_l,Object.assign({},o,s))]})})),so=o=>{var{shoppingGoodsList:s=[]}=o,t=Ye(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(p,{children:[e(oo,Object.assign({},t,{item:l})),l.pmPromotionList?e(lo,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},to=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=h(),i=n((()=>L(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Oe(o,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),i]})},io=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:i,SmoothView:n}=h();return a(i,{className:"cart-dis-title",children:[e(n,{className:"tips",children:s}),e(n,{className:"title",children:o}),l&&e(to,{link:t,disNextMsg:l})]})},no=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:r,WrapLoading:c,View:d}=h(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:C,onChange:f,handleStep:b,updatePm:y}=re(o,u,s);return e(c,{loading:N,children:e(d,{className:"cart-wrap",children:e(r,{onChange:f,children:C.length?e(l,{children:C.map((({memberCname:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:r,shoppingGoodsList:c},h)=>a(p,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:n},children:[t?e(io,{link:i,disNextMsg:s,promotionName:t,pbName:r}):null,e(so,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:c,cartItemRadius:n})]})]},h)))}):e(Ua,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},ro=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:i="#000000",countBtnShape:r="20px"})=>{const{View:c,SmoothView:d,SmoothCheckbox:m,Checkbox:p}=h(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:C}=l,{toOrderImpl:f,deleteCart:b,selectAll:y,cartDetail:w}=ce(N,u,o),S=n((()=>({border:`1px solid ${s}`,color:t,background:i,borderRadius:r})),[s,t,i,r]);return a(c,{className:"cart-dashboard",children:[e(c,{className:"choose",children:e(m,{onChange:y,children:e(p,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),C?e(c,{className:"del",children:e(c,{onClick:b,className:"btn",children:"删除"})}):a(c,{className:"check",children:[a(c,{className:"priceGroup",children:[a(c,{className:"discount",children:["优惠: ",e(d,{className:"data",children:qe(g)})]}),a(c,{className:"all",children:["总计: ",e(d,{className:"data",children:qe(w.amount)})]})]}),a(c,{onClick:f,className:"btn",style:S,children:["结算(",w.num,")"]})]})]})},co=({address:a})=>e(l,{children:L(a)?e(po,{}):e(mo,{address:a})}),mo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=h(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},po=()=>{const{View:o,Text:s}=h();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},ho=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=h(),i=de(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(co,{address:i})})},uo=s((({couponStart:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponEnd:n})=>{const{View:r,Text:c,Radio:d}=h();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(c,{className:"title",children:i}),a(c,{className:"date",children:[De(l).format("YYYY-MM-DD")," - ",De(n).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(d,{value:t})})]})})})),go=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{View:n,Text:r,Popup:c,SmoothRadio:d,ScrollView:p}=h(),{shoppingGoodsList:u}=me({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:g,visible:N,setVisible:C,selectCoupon:f,onChange:b}=pe(u);return a(l,{children:[a(n,{className:"coupon-select",onClick:()=>C(0!==g.length),children:[e(r,{className:"label",children:"使用优惠"}),a(n,{className:"info",children:[e(r,{className:"label",children:f?`已选择: ${f}`:0===g.length?"暂无可用优惠券":"请选择优惠券"}),0===g.length?null:e("img",{src:hl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:N,popupHandler:C,children:e(n,{className:"goodsDetail-coupon-popup",children:e(ba,{children:e(p,{children:e(d,{onChange:b,children:g.map(((e,a)=>m(uo,Object.assign({},e,{key:a}))))})})})})})]})},No=({shippingMethod:l=1})=>{const{View:o}=h();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},Co=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s})=>{const{View:t}=h(),{list:i}=me({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s});return e(t,{className:"place-order-goods",children:i.map(((a,l)=>e(La,Object.assign({},a),l)))})},fo=({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{SmoothView:i,View:n}=h(),{payState:r,disCount:c,freight:d,payPrice:m,rebMoney:p}=me({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t}),{shoppingCountPrice:u,comDisMoney:g}=he(r);return e(n,{style:{paddingBottom:80},children:a(n,{className:"price placeOrder-blcWrap",children:[e(n,{className:"title",children:"价格明细"}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"商品总金额"}),e(i,{className:"value",children:qe(u)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"返利金额"}),e(i,{className:"value",children:qe(-p.current)})]}),a(n,{className:"coupon placeOrder-blcItem",children:[e(n,{className:"label",children:"优惠金额"}),e(i,{className:"value",children:qe(g+c)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"运费"}),e(i,{className:"value",children:qe(d)})]}),a(n,{className:"all placeOrder-blcItem",children:[e(n,{className:"label",children:"总计"}),e(i,{className:"value",style:{color:"#000"},children:qe(m)})]})]})})},bo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:r,shoppingGoodsId:c})=>{const{View:d,Text:m,WrapLoading:p}=h(),{payPrice:u,list:g,payState:N,ocContractSettlList:C}=me({refreshNum:i,goodsNum:n,skuId:r,shoppingGoodsId:c}),{savePayPrice:f,loading:b}=ue({ocContractSettlList:C,payState:N,list:g},r,n,c);return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",qe(u)]}),e(p,{loading:b,children:e(d,{className:"btn",onClick:f,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},yo=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:r,paddingTop:c,paddingBottom:d,color:m})=>{const p=n((()=>f()),[]),{View:u,Text:g,Radio:N,IconMobile:C,WrapLoading:b,SmoothRadio:y}=h(),{paymentImpl:w,channelList:S,contract:x,handleRadio:k,loading:v}=ge({contractBillcode:l,contractBbillcode:o});return i((()=>{console.log("打印下当前的channelList",S)}),[]),a(u,{className:"paymentModeWrap",style:{height:p?"inherit":"667px",paddingBottom:d+"px",paddingTop:c+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(C,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",x.current.contractBillcode," | 总金额:",qe(x.current.dataBmoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(y,{onChange:k,children:null==S?void 0:S.map((l=>a(u,{className:"paymentItem",children:[e(C,{value:l.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:l.fchannelName}),e(N,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",l.faccountAmount,"元"]}),a(u,{children:["支付金额:",qe(x.current.dataBmoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(b,{loading:v,children:e(u,{className:"btnGroup",onClick:w,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:r},className:"payment",children:"立即支付"})})})]})})),wo=({dataObj:l})=>{const{View:o,Text:s}=h();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:qe(l.dataBmoney)})]})]})},So=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:i,leftBorderRadius:n,rightValue:r,rightAddHref:c,rightColor:d,rightButtonColor:m,rightBorderColor:p,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:C,Text:f,IconMobile:b,WrapLoading:S}=h(),{result:x,loading:k}=Ne(l||(w("contractBillcode")||{}).contractBillcode);return e(C,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:k,children:a(C,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(b,{value:x.icon,style:{fontSize:"35px",color:x.color}}),a(C,{className:"tips",children:[e(f,{className:"title",children:x.msg}),e(f,{className:"tip",children:x.info})]}),"success"===x.sysRecode&&e(wo,{dataObj:x.dataObj}),a(C,{className:"btnGroup",style:{marginTop:20},children:[e(C,{className:"btn black",onClick:()=>y(x.menuCode,{contractBillcode:x.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${i}`,borderRadius:1===n?"20px":"0px"},children:x.buttonText}),e(C,{style:{color:d,backgroundColor:m,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>y(c.value),className:"btn white",children:r})]})]})})})})),{Button:xo}=g,ko=a=>{var{dataState:o}=a,s=Ye(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(vo,Object.assign({dataState:o},s))})},vo=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,r=Ye(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:c}=h();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:d,handlerImpl:m}=Ce(Object.assign({dataState:l},r));return e(c,{className:"btnGroup",children:d.map(((a,l)=>e(xo,{style:{color:s,borderColor:t,backgroundColor:i},className:C({btn:!0,white:0===l,black:1===l}),onClick:()=>m(a.handler),shape:n,children:a.name},l)))})},{Button:Io}=g,Bo=({contractPaydate:a,init:o,countdownCancel:s,contractId:n})=>{const{View:r,SmoothView:c}=h(),{resultTime:d}=((e,a,l,o)=>{const[s,n]=t("");return i((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,i=s.getTime()-(t.getTime()-3600);i<999&&i>0?l(o).then((()=>{a()})):i>1e3&&n($e(i,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,n);return e(l,{children:d?e(r,{className:"card-item-info-countDown",children:e(c,{children:d})}):null})};function Ao({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:r,contractAppraise:c,borderRadius:d,orderSpacing:m,contractPaydate:p,countdownCancel:u}){const{View:g}=h(),N=fe(i);return a(g,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(g,{onClick:()=>y("orderDetail",{contractBillcode:l}),children:[a(g,{className:"topInfo",children:[a(g,{className:"orderNo",children:["订单号: ",l,e(Io,{className:"copy",size:"mini",fill:"outline",children:"复制"})]}),e(g,{className:"status",children:N})]}),e(g,{className:"card-item-info-countDown"}),e(g,{className:"goodsItemWrap",children:t.map((a=>e(La,Object.assign({},a,{dataState:i,children:1===i&&e(Bo,{contractPaydate:p,init:r,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(g,{className:"allInfo",children:[a(g,{className:"totalNum",children:["共",s,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",qe(o)]})]}),e(ko,{init:r,contractId:n,contractBillcode:l,dataState:i,contractAppraise:c})]})}const Vo=()=>{const{View:a,Image:l}=h();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const Lo=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t}){const{View:i,ScrollView:n,Loading:r}=h(),{onScroll:c,data:d,loading:p,init:u,countdownCancel:g}=be(l,o);return e(i,{className:"orderListItemWrap",children:e(ba,{id:"orderListItemWrap",children:e(n,{onScroll:c,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(Ao,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:g})))),e(i,{children:p?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(Vo,{}),e(i,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})})})),To=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12})=>{const{View:t,Tabs:i}=h();return e(t,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:ye,render:l=>e(t,{className:"orderList",children:e(Lo,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Do}=g,Po=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>f()),[]);return e(Do,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=b();if(""===a)return void e.showToast({title:"复制内容为空",icon:"error"});e.setClipboardData({data:a,success:()=>{e.showToast({title:"复制成功",icon:"success"}),o(!0)},fail:()=>{e.showToast({title:"复制失败",icon:"error"})}})}},children:l?"已复制":"复制"})})),Ro=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:r,borderColor:c,btnColor:d,btnShape:m})=>{const{View:p,Text:u}=h(),{orderDetail:g,handleApplyBtn:N}=we(o||""),C=e=>De(e).format("YYYY-MM-DD HH:mm:ss");return a(p,{className:"orderDetail",children:[e(p,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(p,{className:"orderDetailTopTitleContent",children:[a(p,{className:"icon_text",children:["待收货"===fe(g.dataState)?e(je,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:fe(g.dataState)})]}),e(p,{className:"subTitleWrap",children:C(g.gmtCreate)})]})}),e(p,{className:"orderDetailContent",style:{paddingTop:r+"px",paddingBottom:n+"px"},children:a(p,{style:{position:"relative",top:-26},children:[a(p,{className:"addressInfo",children:[e(p,{className:"lPart",children:e(je,{value:"dizhi"})}),a(p,{className:"mPart",children:[a(p,{className:"personInfo",children:[e(u,{className:"personName",children:g.goodsReceiptMem}),e(u,{className:"personPhone",children:g.goodsReceiptPhone})]}),e(p,{className:"address",children:g.goodsReceiptArrdess})]}),e(p,{className:"rPart"})]}),a(p,{className:"orderDetailGoodsWrap",children:[g.goodsList.map((o=>a(l,{children:[e(La,Object.assign({},o),o.contractGoodsId),Number(g.dataState)>1&&Number(g.dataState)<5?e(p,{className:"orderBtn",onClick:N.bind(null,o,g.dataState),children:"申请退款"}):""]}))),a(p,{className:"priceInfo",children:[a(p,{className:"priceInfoFloor top",children:[a(p,{className:"totalNum",children:["共",g.goodsNum,"件商品"]}),a(p,{className:"totalPrice",children:["合计 ",parseFloat((g.dataBmoney-g.refundMoney).toFixed(2))]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"商品总额"}),a(p,{className:"totalPrice",children:["¥",g.contractInmoney]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"优惠"}),a(p,{className:"totalPrice",children:["¥",g.goodsPmoney]})]})]})]}),s&&a(p,{className:"express",children:[e(p,{className:"label",children:"配送方式"}),e(p,{className:"name",children:"快递"})]}),a(p,{className:"orderInfo",children:[e(p,{className:"orderInfoItem",children:e(p,{className:"label",children:"订单信息"})}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"订单编号"}),a(p,{className:"context_copy",children:[e(p,{className:"name",children:g.contractBillcode}),e(Po,{copyContent:g.contractBillcode})]})]}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"下单时间"}),e(p,{className:"name",children:C(g.gmtCreate)})]})]}),e(p,{className:"btnGroupFooter",children:e(ko,{borderColor:c,btnColor:d,btnShape:m,color:i,contractBillcode:g.contractBillcode,contractId:g.contractId,dataState:g.dataState})})]})})]})})),zo=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:i}=h(),n=A(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),r=A(o,"packageList.length",l.count),c=A(o,"packageList[0].expressName",l.expressName),d=A(o,"packageList[0].packageBillno",l.packageBillno),m=A(s,"state",l.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",r," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",c]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},Mo=({defaultValue:l,detail:o})=>{const{View:s}=h(),t=A(o,"message",l.message),i=A(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.map(((l,o)=>a(s,{className:"step",children:[e(s,{className:"time",children:l.time}),e(s,{children:l.context})]},o))):e(s,{className:"noInfo",children:t})})},Oo=s((({code:l,defaultValue:o})=>{const{View:s}=h(),{info:t,detail:i,stateObj:n}=Se(l);return a(s,{className:"expressInfo",children:[e(zo,{info:t,detail:i,stateObj:n,defaultValue:o}),e(Mo,{detail:i,defaultValue:o})]})})),Fo=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:n,userNickname:r,refreshNum:c})=>{const{View:d,Text:m,IconMobile:p,Image:u}=h(),{servicePopup:g}=Ke(),[N,C]=t(r),[f,b]=t(n);return i((()=>{C(w("userNickname")),b(w("userAvatar"))}),[c]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(p,{value:"bianzu",onClick:()=>y("/account/setting/index")}),e(p,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>y("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(u,{src:f,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),Wo=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:r,Image:c}=h(),[d,m]=t({});i((()=>{Ue(void 0,void 0,void 0,(function*(){try{const e=yield I();m(e.dataObj)}catch(e){}}))}),[]);const p=(e,a)=>{4!==e.id?y("orderlist",{indexId:a+1}):y("afterSalesList")};return a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>y("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:p.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(r,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12},children:e(c,{src:l.imgUrl,className:"icon"})})),e(n,{className:"subTitle",children:l.label})]},o)))})]})})),jo=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:i,IconMobile:n,Image:r}=h();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>y(l.link.value),children:[a(t,{className:"lPart",children:[e(r,{src:l.imgUrl,className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),Go=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=h(),{Rate:r}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{className:"userName",children:s.userName}),e(r,{readOnly:!0,value:s.rate,style:{"--star-size":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,l)=>e(n,{src:a.imgUrl,className:"img"},l)))})]})},Eo=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],Ho=s((()=>{const[o,s]=t("1"),{View:i}=h(),n=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(l,{children:[e(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:Eo.map(((a,l)=>e(Go,{itemData:a},l)))})]})})),Yo=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:C}=xe(l),{Button:f}=g,{View:b,Image:y,TextArea:w,Textarea:S}=h(),x=w||S,k=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(p,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:l.dataPic,className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:l.goodsName}),e(b,{className:"goodsSize",children:l.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(Tl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(x,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:C.bind(null,s)})})]},s))),e(f,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),Uo=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:r}=h();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.collectOpcode}),children:[e(i,{src:l.collectOppic,className:"img"}),a(t,{className:"info",children:[e(r,{className:"title",children:l.collectOpcont}),a(r,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Ko=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:r,checked:c,handleSelectAll:d,selectAllChecked:m}=ke(),{View:p,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:C,Image:f}=h();return e(p,{className:"collectList",children:0===l.length?e(p,{className:"noDate",children:e(f,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(p,{className:"hasDate",children:[e(p,{className:"topBar",children:e(p,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(ba,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:r,children:[e(g,{onChange:i,style:{height:"100%"},children:l.map((a=>e(Uo,{item:a,edit:o,checked:c},a.collectId)))}),o?a(p,{className:"handleBar",children:[e(p,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(C,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Qo=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:i,SmoothView:r}=h(),c=n((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(i,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:l.footprintOppic,className:"img"}),a(s,{className:"info",children:[e(r,{className:"title",children:l.footprintOpcont}),e(r,{className:"price",children:c})]})]})]})},qo=({item:o,edit:s})=>{const{View:t}=h();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(Qo,{footprintItem:a,edit:s},l)))]})},Zo=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?De(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=D(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(qo,{item:a,edit:o},l)))})},$o=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:i}=h(),{footprintList:n,edit:r,setEdit:c,getSelectItem:d,delItem:m,getData:p,loading:u}=ve();return e(i,{loading:u,children:e(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>c(!r),children:r?"完成":"编辑"})}),e(ba,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(s,{onChange:d,children:e(Zo,{footprintList:n,edit:r})}),r?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Xo=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Jo=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=h();return e(s,{className:"promotionListTab",children:Xo.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),_o=({data:l})=>{const{View:o}=h(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,promotionEndtime:r}=l;return a(o,{className:"promotionItem",children:[a(o,{className:"lPart",children:[e(o,{className:"round"}),e(o,{className:"tagBg",children:a(o,{className:"txt",children:["官方",s]})}),e(o,{className:"rule",children:i.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[De(n).format("YYYY-MM-DD")," ~ ",De(r).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},es=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(Xo[0].val),{list:r,getData:c}=Ie({params:i}),{View:d,ScrollView:m}=h();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(Jo,{activeColor:l,setParams:n,params:i}),e(d,{children:e(ba,{id:"listWrap",children:e(m,{onScroll:()=>c(),children:r.map(((a,l)=>e(_o,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=h(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const as=()=>{const{View:a,Image:l}=h();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},ls=({list:o,coe:s,config:t,backgroundColor:i,color:n})=>{const{View:r,Text:c}=h();return e(l,{children:o.length?o.map(((o,d)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName}`,style:{backgroundColor:i,color:n},children:a(r,{className:"coupon-content",children:[e(r,{className:"price",children:e(c,{className:"num",children:o.pbName})}),a(r,{className:"couponListItem-info",children:[e(c,{className:"title",children:o.discName}),a(c,{className:"date",children:["有效期至:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}),t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===s.current?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},d))):e(as,{})})},os=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:r,ScrollView:c}=h(),{coe:d,getList:m,config:p,switchTab:u,list:g=[]}=Be();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:p.current.map(((l,o)=>a(n,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(r,{className:"icon"})]},l.id)))}),e(ba,{id:"couponTab",bottomHeight:"60",children:e(c,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(ls,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:p})})})})]})})),ss=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:r,ruleColor:c,timeColor:d,paddingTop:m,paddingBottom:p})=>{const{View:u}=h(),{list:g,takeCoupon:N,takeList:C}=Ae({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${p}px`},children:g.map(((l,o)=>{const m=A(l,"pbName"),p=A(l,"pmPromotionDiscountList"),h=A(p.at(-1),"discName"),g=A(l,"promotionName"),f=De(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=De(A(l,"promotionEndtime")).format("YYYY-MM-DD"),y=A(l,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:n},children:m}),e(u,{className:"rule",style:{color:c},children:h})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:r},children:g}),a(u,{className:"validity",style:{color:d},children:[f," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||C.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),ts=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:r,titleColor:c,timeColor:d,gap:m,paddingTop:p,paddingBottom:u})=>{const{View:g}=h(),{list:N,takeCoupon:C,takeList:f}=Ae({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:p,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=A(l,"pbName"),p=A(l,"pmPromotionDiscountList"),h=A(p.at(-1),"discName"),u=A(l,"promotionName"),N=De(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=De(A(l,"promotionEndtime")).format("YYYY-MM-DD"),y=A(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:n},children:m}),e(g,{className:"rule",style:{color:r},children:h}),e(g,{className:"info",style:{color:c},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||f.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>C({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),is=s((l=>{var{type:o=1,coupons:s=[]}=l,t=Ye(l,["type","coupons"]);const{View:i}=h();return a(i,{className:"getCouponOne",children:[1===o?e(ss,Object.assign({coupons:s},t)):null,2===o?e(ts,Object.assign({coupons:s},t)):null]})})),ns=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=Ve(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},rs=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:r}=h(),{info:c}=Le(l);return a(n,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{className:"title",children:c.noticeTitle}),c.noticePicurl?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl}):null,c.noticePicurl1?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl1}):null,c.noticePicurl2?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl2}):null,c.noticePicurl3?e(r,{className:"img",mode:"widthFix",src:c.noticePicurl3}):null,e(n,{className:"content",children:c.noticeContext})]})})),cs=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Te(l),{View:r,ScrollView:c}=h(),{doclistContent:d,doclistTitle:m,doclistTitle4:p}=n;return e(r,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(ba,{id:"a",children:a(c,{children:[e(r,{className:"title",children:m}),e(r,{className:"author",children:p}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:d||""}})]})})})}));export{$a as AddressDetail,Ka as AddressList,Qa as AddressListBtn,xa as AfterSalesApply,za as AfterSalesDetail,Va as AfterSalesList,Ga as AfterSalesType,es as AllPromotionList,cs as ArticleDetail,ua as BackTop,no as CartList,ro as CartOperate,$l as CartTop,na as ClassifyNav,da as ClassifyNavOne,ca as ClassifyNavOneJsx,ha as ClassifyNavThree,ma as ClassifyNavTwo,Ko as CollectionList,os as CouponList,Na as Cube,Yo as EvaluateDetail,Ho as EvaluateList,Oo as ExpressInfo,$o as FootPrint,is as GetCouponOne,Cl as Goods,ll as GoodsClassify,nl as GoodsClassifyOne,ml as GoodsClassifyTwo,Ml as GoodsDetailAndEvaluate,yl as GoodsDetailBanner,Ll as GoodsDetailCoupon,Yl as GoodsDetailHandleBar,Kl as GoodsDetailHandleBarOne,Sl as GoodsDetailInfo,kl as GoodsDetailInfoOne,Bl as GoodsDetailPromotion,Il as GoodsDetailSku,Zl as GoodsList,fl as GoodsSlider,bl as GoodsSlideshow,He as Line,Fo as MineData,jo as MineFunction,Wo as MineOrderEntry,Xa as MyAgreementList,_a as MySetting,Ja as MySettingJsx,ns as Notice,rs as NoticeDetail,Ro as OrderDetail,To as OrderList,yo as PaymentMode,ho as PlaceOrderAddress,go as PlaceOrderCoupon,No as PlaceOrderDelivery,Co as PlaceOrderGood,fo as PlaceOrderInfo,bo as PlaceOrderOperate,So as PlaceOrderResult,je as QjMobileIcon,ul as Search,Nl as SearchPage,gl as SearchStyleTwo,We as Service,sa as Slider,Ee as TextLine,Ge as Title,Xe as ToPrice,ta as Video,Qe as addressIdConst,qe as fixPrice,Ze as fixPrice1,$e as formatTime,Ke as useService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.7.6",
3
+ "version": "1.7.7",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [