s-material-react 1.6.6 → 1.6.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.
@@ -1,3 +1,4 @@
1
1
  export * from './useDynamicHeight';
2
2
  export * from './useCountDown';
3
3
  export * from './useDataPageQuery';
4
+ export * from './useFullPath';
@@ -0,0 +1 @@
1
+ export declare const useFullPath: (value: string) => string;
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,useMemo as t,useContext as i,useState as n,useEffect as c,useRef as r,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{navigatorHandler as f,getEnv as b,getTaro as y,getStorage as w,useImmutableCallback as S,navigatorBackImpl as k,setStorage as x}from"@brushes/utils";import{useCube as v,useGoTop as I,useAfterSalesApply as A,useAfterSalesList as B,afterSalesTabConfig as V,useAfterSalesDetail as L,useAfterSalesChooseType as T,useAddressItem as D,useAddressList as P,useEditAddress as R,useMySetting as z,useGoodsClassify as M,useGoods as O,useGoodDetail as F,useBanner as j,useGoodCollection as W,useGoodSpecAndPrice as G,useGoodFootprint as E,useGoodsShare as H,useGoodSkuStore as Y,popupImplement as U,usePromotion as Q,useAddCoupon as K,useCoupon as q,useEvaluate as Z,useAddShopping as $,useGoodSku as X,useGoodsList as J,useCartTop as _,useCartListNext as ee,useCartOperate as ae,useOrderAddress as le,useOrderGood as oe,useOrderCoupon as se,useOrderInfo as te,useOrderPay as ie,useOrderResult as ne,useOrderResultResult as ce,useOrderOperate as re,orderStatusImpl as de,useOrderList as me,orderStatusList as pe,useOrderDetail as he,useExpressInfo as ue,useEvaluateDetail as ge,useCollectionList as Ne,useFootprint as Ce,useMarketingPromotion as fe,useCouponList as be,useAllCoupon as ye,useNotice as we,useNoticeDetail as Se,useArticleDetail as ke}from"qj-mobile-store";import{queryOcsconfigList as xe,find as ve,getContractNumbers as Ie}from"qj-b2c-api";import{queryOcserviceConfPageByMember as Ae}from"qj-b2b-api";import{get as Be,isEqual as Ve,isEmpty as Le,noop as Te,groupBy as De}from"lodash-es";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 je}from"@brushes/mobile-form";const We=s((({width:a,height:l,top:o,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:c}=h();return e(c,{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:c,fontStyle:r,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:c,fontStyle:r,paddingLeft:m,paddingRight:p,textIndent:l},children:a})})})),He=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:c,lineColor:r,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} ${r}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:p,fontSize:`${i}px`,color:c},children:o})]})},Ye=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:c}=h();return e(c,{style:{paddingTop:i,paddingBottom:n},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})})),Ue=s((({item:a,position:l,direction:o})=>{var s,t;const{Image:i,View:n}=h();return e(i,{mode:"scaleToFill",src:a.imgUrl,style:{width:"100%",height:"100%",paddingBottom:"top"===l&&"vertical"===o?"30px":"",marginTop:"top"===l&&"horizontal"===o?"30px":""},onClick:f.bind(null,null===(s=a.link)||void 0===s?void 0:s.value,null===(t=a.link)||void 0===t?void 0:t.params)})})),Qe=s((({Position:o="none",className:s="",className1:i="",defaultValue:n=[],type:c,autoplay:r,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:k="#000000",backGroundColor:x="#ffffff"})=>{const I=t((()=>C({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:A,View:B}=h(),V=v(n,b||[]),L=a=>e(B,{className:i,style:{fontSize:w,zIndex:99,justifyContent:"left"===S?"flex-start":"center"===S?"center":"flex-end",color:k,backgroundColor:x},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f},children:e(A,{imgHeight:y,data:V,className:I,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:p,interval:5e3,vertical:"vertical"===m,render:s=>a(l,{children:["top"===o||"bottom"===o?L(s):null,e(Ue,{item:s,position:o,direction:m})]})})})})),Ke=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:i=[],type:n,autoplay:c,autoplayInterval:r,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:k=[],ImgShadow:x=!1,Position:v="top"})=>{console.log(62,m);const{View:I}=h(),A=t((()=>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},...k)),[k,v]);return e(I,{style:{padding:`${N}px ${f}px`},children:e(Qe,{Position:v,defaultValue:i,type:n,autoplay:c,autoplayInterval:r,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":x}),className1:A})})})),qe=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:c})=>{const{View:r}=h();return e(r,{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:c}})})})),Ze=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=h(),r=v(l,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:r.map(((l,s)=>a(n,{className:"classifyNavItem",onClick:()=>{var e,a;return f(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e("img",{src:l.imgUrl,alt:"",className:"img",style:{borderRadius:`${o}px`}}),e(c,{className:"label",children:l.title})]},s)))})})})),$e=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:p}=h(),u=v(a,l);return e(p,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 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 f(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e("img",{src:a.imgUrl,alt:"",className:"classifyNav-item-img",style:{borderRadius:n,boxShadow:c?"0px 0px 20px 5px #EEE":"none"}})},l)))})},Xe=s($e),Je=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:i,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:p,marginTop:u,marginBottom:g})=>{const{View:N}=h(),b=v(a,l),y=t((()=>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:i,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:b.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return f(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:y,style:{fontSize:c,color:r},children:a.title})},l)))})})),_e=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:p,layout:u,marginTop:g,marginBottom:N})=>{const{View:C}=h(),b=v(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:b.map(((a,l)=>e(C,{className:"classifyNav-three-item",onClick:()=>{var e,l;return f(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{backgroundImage:`url(${a.imgUrl})`,borderRadius:n,boxShadow:c?"0px 0px 20px 5px #EEE":"none",width:4===u?"74px":"60px",height:4===u?"74px":"60px"},children:e(C,{className:"classifyNav-three-item-tag",style:{backgroundColor:m},children:e(C,{className:["classifyNav-three-item-txt",...p].join(" "),style:{fontSize:r,color:d},children:a.title})})},l)))})})),ea=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const i=t((()=>b()),[]),{View:n}=h(),{goTop:c}=I();return e(n,{className:"backTop",onClick:c,style:{padding:i?"0":"10px"},children:e(Ge,{style:{display:"inline-block",color:o,fontSize:s,backgroundColor:l,position:i?"fixed":"relative",right:i?"20px":"0",bottom:i?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),aa=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:p,Image:u}=h(),g=v(a,m);return e(p,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(p,{className:`cube-type${l}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:g.map(((a,t)=>e(u,{className:"block "+(s?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:a.imgUrl,style:{width:"100%",borderRadius:o+"px"},onClick:()=>{var e,l;return f(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)}},t)))})})})),la=o.createContext(null),oa=s((()=>{const{View:a}=h(),{tip:l}=i(la);return e(a,{className:"afterSalesApplyTip",children:l})}));function sa(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 ta(e,a,l,o){return new(l||(l=Promise))((function(s,t){function i(e){try{c(o.next(e))}catch(e){t(e)}}function n(e){try{c(o.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(i,n)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ia=(e="b2c")=>{const[a,l]=n([]),o=t((()=>b()),[]);c((()=>{ta(void 0,void 0,void 0,(function*(){const e=yield s();l(i(e))}))}),[]);const s=()=>ta(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield xe();case"b2b":return yield Ae().then((e=>e.list))}})),i=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=Be(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${Be(o,"ocserviceConfRemark")}: ${Be(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${Be(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;y().showActionSheet({itemList:a})}}},na={label:""},ca=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",ra=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",da=(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}`},ma=e=>1===String(e).indexOf(".")?pa(e):ha(e),pa=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)},ha=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"};const ua=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:i}=a,r=sa(a,["bottomHeight","children","id","heightWrap"]);const d=t((()=>b()),[]),m=function(e){const[a,l]=n(0);return c((()=>{if(!b()||!e)return;const a=y().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),p=function(e=""){return t((()=>{if(!b())return 0;const a=y(),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=t((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(s){return{height:`calc(${y().getSystemInfoSync().windowHeight+"px"} - ${m+p}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,p]);return e(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":p}),id:s,children:o}))},ga=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:c}=h(),{handlePopupShow:r,popupVisible:d,reasonList:m,handleChooseReason:p,popupLoading:u}=i(la);return e(t,{popupVisible:d,popupHandler:r,children:e(c,{loading:u,children:e(l,{className:"reasonPopup",children:e(ua,{children:a(n,{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)))})]})})})})})})),Na=s((()=>{const{View:l}=h(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=i(la);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:ca(n)})})]}),e(ga,{popupShow:s})]})})),Ca=s((()=>{const{View:l,TextArea:o,Textarea:s}=h(),t=s||o,{handleChooseImg:n,imgGroup:c,placeholder:r,handleDelImg:d,limit:m,handleFillInReason:p}=i(la);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:r,rows:5,maxLength:200,style:{marginBottom:15},onInput:p}),a(l,{className:"imgGroup",children:[c.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(Ge,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[c.length,"/",m]})]})}):null,c.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)))]})]})]})})),fa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:c,paddingRight:r,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:k,handleDelImg:x,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:V,loading:L}=A({contractBillcode:o,skuCode:s});return e(p,{loading:L,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(la.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:C,handlePopupShow:f,handleChooseReason:b,reason:y,handleChooseImg:w,imgGroup:S,placeholder:k,handleDelImg:x,limit:v,goodsNum:t,goodsPrice:i,goodsInfo:I,handleFillInReason:B,handleSubmit:V},children:[e(oa,{}),e(Na,{}),e(Ca,{}),e(m,{className:"submitBtn",onClick:V.bind(null,t,o,l,i),children:"确定"})]})})})},ba={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},ya={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},wa=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=ba[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=ba[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:ba[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:ya[l.refundType][l.dataState]}),e(Ge,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Sa=s((()=>{const{View:a}=h();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),ka=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=h(),{afterSalesList:i,goAfterSalesDetail:n,loading:c,haseData:r}=B(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(ua,{id:"tabContent",children:e(s,{children:r?i.map((a=>e(wa,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Sa,{})})})})})})),xa=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:V,render:l=>e(ka,{item:l,refreshNum:a})})})})),va=({dataPic:o,goodsName:s,goodsCamount:i,pricesetNprice:n,skuName:c,children:r})=>{const{View:d,Image:m,SmoothView:p}=h(),u=ca(n),g=t((()=>i?`x ${i}`:""),[i]);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:c}),e(p,{className:"count",children:g})]}),r]})]})})},Ia=(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]}},Aa=o.createContext(null),Ba=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=i(Aa),{View:n,SmoothRadio:c,Radio:r,Popup:d,ScrollView:m}=h();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(ua,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(c,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(r,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Va=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=i(Aa),{View:c,Input:r}=h();return a(l,{children:[a(c,{className:"sender_content",children:[a(c,{className:"sender_name",children:[e(c,{className:"sender_icon",children:"*"}),e(c,{className:"sender_names",children:"物流公司"})]}),e(c,{className:"sender_input name_style",onClick:o,children:e(c,""===s?{style:{color:"#000"},children:"请填写"}:{children:s})})]}),a(c,{className:"sender_content",children:[a(c,{className:"sender_name",children:[e(c,{className:"sender_icon",children:"*"}),e(c,{className:"sender_names",children:"物流单号"})]}),e(c,{className:"sender_input",children:e(r,{type:"number",placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(c,{className:"expressInfo",children:e(c,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(Ba,{})]})})),La=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:p,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:C,loading:f}=L({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:w,refundMoney:S,refundMeo:k,refundEx:x,refundType:v,ocRefundFileList:I,goodsReceiptMem:A,goodsReceiptPhone:B,goodsReceiptArrdess:V,packageCode:T,packageBillno:D}=c,{View:P,Image:R,WrapLoading:z}=h();return e(z,{loading:f,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(Aa.Provider,{value:{companyList:m,popupShow:p,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:C,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Ia(v,b)}),e(P,{className:"right_time",children:Pe(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(P,{className:"afterSalesDetailContent",children:a(P,{className:"refundDetail",children:[e(P,{className:"title",children:"退款信息"}),e(P,{className:"goodsDetail",children:null==w?void 0:w.map(((a,l)=>e(va,{dataPic:a.dataPic,pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款原因"}),e(P,{className:"right",children:x})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款金额"}),e(P,{className:"right",children:S})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"描述说明"}),e(P,{className:"right",children:k})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"补充凭证"}),e(P,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(R,{src:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:Pe(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款编号"}),e(P,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[A,"  ",B]}),e(P,{className:"address",children:V})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e(Va,{})]}):"",b>1?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流单号"}),e(P,{className:"code",children:D})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:N})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司编码"}),e(P,{className:"code",children:T})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ta=o.createContext(null),Da=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=h(),{typeTip:n,setTypeTip:c,goodsNum:r,handleStep:d,goodsInfo:m,goodsPrice:p}=i(Ta),{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:ca(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:()=>c((e=>!e))}),e(s,{count:r,handleStep:d})]})]}),n?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Pa={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"}]},Ra=(e=2)=>Pa[e],za=s((({afterSalesType:l=2,contractBillcode:o,skuCode:s})=>{const{View:t}=h(),{goApply:n,goodsNum:c}=i(Ta);return e(t,{children:a(t,{className:"afterSalesTypeType",children:[e(t,{className:"title",children:"售后类型"}),Ra(+l).map(((l,i)=>a(t,{className:"item",onClick:n.bind(null,l.value,o,s,c),children:[e(t,{className:"headline",children:l.label}),e(Ge,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},i)))]})})})),Ma=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,loading:C,goodsPrice:f}=T({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:c,paddingBottom:r},children:a(Ta.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:f},children:[e(Da,{}),e(za,{afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},Oa=({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:"设为默认地址"})})},Fa=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:i}=h(),{handlerImpl:n}=D(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(Oa,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{className:"del",onClick:o,children:"删除"})]})]})},ja=s((()=>{const{View:a,Skeleton:o}=h(),s=r(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)))})})})})),Wa=s((({url:l,title:o,subTitle:s,link:t,style:i})=>{const{View:n,Image:c}=h();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(c,{className:"img",src:l}),e(n,{className:"title",children:o}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>f(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),Ga=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:c}=h(),{list:r,delAddress:d,setDefault:m,skullShow:p}=P(a);return e(c,{className:"addressListWrap",style:{paddingTop:i+"px",marginBottom:t+"px"},children:p?e(ja,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(Fa,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(Wa,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),Ea=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:()=>f("addressEditor"),children:"+ 新增地址"})})})),Ha=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],Ya=[{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"}}],Ua=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=h(),{Button:c}=g,{onSubmit:r}=R();return e(n,{className:"addressDetail",style:{paddingBottom:i+"px",paddingTop:t+"px"},children:e(je,{footer:e(c,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:Ha,onSubmit:r,fields:Ya})})})),Qa=s((()=>{const{View:l}=h(),o=e=>{f(`/account/agreement/index?type=${e}`)},s=r([{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)))})})})),Ka=()=>{const{View:l}=h(),{mySettingGoBind:o,mySettingLogout:s}=z();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:"退出登录"})]})},qa=s(Ka),Za=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:c}=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:()=>f("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:$a}=g,Xa=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:c}=h(),{activeKey:r,setActiveKey:d,navList:m,flag:p}=M();return e(n,{children:e(ua,{id:"goodsClassify",children:e(c,{children:a(n,{style:{height:p?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{className:"side",children:e($a,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e($a.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(Za,{navList:m,activeKey:r,cell:l})})]})})})})})),Ja=d(null),_a=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:t,setSCoe:c,selectFontColor:r}=i(Ja),{View:d,ScrollView:m}=h(),[p,g]=n(!1),N=(e,a)=>{s.bind(null,e)(),t(`${a}`),c("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}`?r:"#000",borderColor:o===`${a.goodsClassCode}`?r:"#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(ua,{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}`?r:"#000",borderColor:o===`${a.goodsClassCode}`?r:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),el=s((({thirdList:l})=>{const{View:o,Image:s}=h(),{picShadow:t,layout:n}=i(Ja);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:l.map(((l,i)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>f("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)))})})),al=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:n,selectFontColor:c,selectBlcShow:r,selectBlcStyle:d}=i(Ja),m=t((()=>b()),[]),{secondList:p,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=t((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=t((()=>{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(ua,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(C,{activeKey:s,onChange:n,children:p.map(((a,l)=>e(C.Item,{title:a.goodsClassName,className:[r?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":c,"--adm-color-primary":c}},l)))}),e(el,{thirdList:u})]})})})})})),ll=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:t,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=h(),{navList:m,activeKey:p,setActiveKey:u}=M(),[g,N]=n("0"),[C,f]=n("0");return e(Ja.Provider,{value:{fCoe:g,setFCoe:N,sCoe:C,setSCoe:f,navList:m,activeKey:p,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:t,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(_a,{}),e(al,{})]})})})),ol=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:()=>f("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)))})})),sl=s((({navList:l,activeKey:o,layout:s,picShadow:t})=>{var i;const[r,d]=n(0);c((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:p,Image:u}=h();return a(p,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:Be(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(i=Be(l[r],"childList"))||void 0===i?void 0:i.map(((l,o)=>a(p,{children:["0"===l.goodsClassHide?e(p,{className:"level2Title",children:l.goodsClassName}):"",e(ol,{childList:l.childList,layout:s,picShadow:t,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:tl}=g,il=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:c}=h(),{activeKey:r,setActiveKey:d,navList:m,flag:p}=M();return e(c,{className:"goodsClassifyTwo",children:e(ua,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(c,{className:"side",children:e(tl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(tl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(sl,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),nl="data:image/png;base64,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",cl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",rl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:i,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:p,otherStyles:u=[],__pageConfig:g})=>{const{View:N,Image:b}=h(),y=t((()=>C("txt",...u)),[u]);return e(N,{onClick:()=>f("search"),style:{paddingTop:p,paddingBottom:p,paddingLeft:c,paddingRight:r},className:d?"boxpositon":"",children:a(N,{className:"components-search",style:{backgroundColor:i,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(b,{src:nl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:y,style:{color:s,display:"inline-block",fontSize:m},children:l})]})})})),dl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:i,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:p,otherStyles:u=["mockWeight","mockItalic"]})=>{const{View:g,Image:N}=h(),b=t((()=>C("txt",...u)),[u]);return e(g,{onClick:()=>f("search"),style:{paddingTop:p,paddingBottom:p,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(g,{className:"components-search",style:{border:`1px solid ${i}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(g,{style:{width:"80%"},children:[e(N,{src:nl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:b,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(g,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:i,width:"20%",color:s},children:"搜索"})]})})})),ml=s((({placeholder:l,placeholderText:o,history:s,historyText:i,paddingBottom:c,paddingTop:r})=>{const d=t((()=>b()),[]),{View:m,Text:p,Input:u}=h(),[g,N]=n((()=>w("history")||[])),C=S((e=>ta(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})),v(e.detail.value))})))),v=S((e=>{f("goodList",{searchParam:e})}));return a(m,{className:"searchPage",style:{paddingTop:r,paddingBottom:c},children:[a(m,{className:"search-title",children:[e("img",{src:nl,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:C},l?{placeholder:o}:{})),e(p,{className:"btn",onClick:()=>k(),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:()=>ta(void 0,void 0,void 0,(function*(){(yield y()).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]})})),pl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:t=!1,cell:i,showSales:d=!0,gap:m=10,goods:p=[],markedPrice:u,paddingTop:g,paddingBottom:N,paddingLeft:b,paddingRight:y,goodsName:w=!0,goodsPrice:S=!0,goodsCar:k=!0,goodsBorder:x=!0,goodsShadow:v=!1,marginGap:I=10})=>{const[A,B]=n(l),V=r(),{View:L,Text:T}=h();return c((()=>{Ve(V.current,p)||(V.current=p,Le(p)?B(l):ta(void 0,void 0,void 0,(function*(){try{const e=yield ve({goodsCode:p.toString(),distinctField:"goodsNo"}),a=Be(e,"list",[]);B(a)}catch(e){B(l)}})))}),[p]),e(L,{style:{paddingTop:g,paddingBottom:N},children:e(L,{className:C({[`goods-${o}`]:!0}),style:{display:"grid",gap:I,marginBottom:s,gridTemplateColumns:`repeat(${i}, 1fr)`,paddingLeft:b,paddingRight:y},children:A.map(((l,o)=>a(L,{style:{overflow:"hidden",borderRadius:t?"8px":"0px",border:x?"1px solid #000000":""},onClick:()=>f("goodDetail",{skuCode:l.skuCode}),className:["goods "+(v?"outer-shadow":"")].join(" "),children:[e(L,{className:"goods-img",style:{backgroundImage:`url(${l.dataPic})`}}),a(L,{className:"space",children:[e(L,{className:"titleType",style:{display:w?"block":"none"},children:l.goodsName}),e(L,{className:"subTitle",children:l.brandName}),d&&a(L,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(L,{className:"price",children:[a(L,{style:{fontSize:18},children:[S?ca(l.pricesetNprice):"",1===u&&e(T,{className:"markedPrice",children:ca(l.pricesetMakeprice)})]}),e(L,{className:"anticon",style:{display:k?"block":"none"},children:e(Ge,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),hl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,wrapRadius:n,wrapBorderColor:c,wrapBgColor:r,wrapShadow:d,goodsRadius:m,goodsBgColor:p,goodsGap:u,marginTop:g,marginBottom:N,marginLeft:C,marginRight:b})=>{const{View:y}=h(),{list:w}=O({defaultValue:l,goods:o});return e(y,{className:"goodsSlider",style:{borderRadius:n,borderColor:c,backgroundColor:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N,marginLeft:C,marginRight:b},children:w.map(((l,o)=>a(y,{className:"goodsSliderItem",style:{borderRadius:m,backgroundColor:p,marginRight:`${u}px`},onClick:()=>f("goodDetail",{skuCode:l.skuCode}),children:[e(y,{className:"img",style:{backgroundImage:`url(${l.dataPic})`}}),a(y,{className:"board",children:[e(y,{className:"title",children:l.goodsName}),a(y,{className:"info",children:[a(y,{className:"lPart",children:[s?e(y,{className:"price",children:ca(l.pricesetNprice)}):null,t?e(y,{className:"marketPrice",children:ca(l.pricesetMakeprice)}):null]}),i?e(y,{className:"rPart",children:e(Ge,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),ul=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,goodsRadius:m,goodsBorder:p,goodsShadow:u,btnText:g,btnBg:N,btnColor:C,btnRadius:y})=>{const w=t((()=>b()),[]),{list:S}=O({defaultValue:l,goods:o}),{SmoothSwiper:k,View:x,Image:v}=h(),[I,A]=n(0);return a(x,{className:"goodsSlideshow",children:[e(v,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:S,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(x,{className:["goodsSlideshowItem",""+(l.goodsCode===S[I].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:m,borderStyle:p?"solid":"none",boxShadow:u?"0px 0px 20px 10px #ddd":""},onClick:()=>f("goodDetail",{skuCode:l.skuCode}),children:[e(v,{className:"logo",src:l.dataPic,mode:"widthFix"}),c?e(x,{className:"goodsName",children:l.goodsShowname}):null,r?a(x,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(x,{className:"price",children:ca(l.pricesetNprice)}):null,i?e(x,{className:"marketPrice",children:ca(l.pricesetMakeprice)}):null,e(x,{className:"btn",style:{backgroundColor:N,color:C,borderRadius:y},children:g})]})})]})})),gl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[]}=F(o,s),i=j(t);return e(Qe,{selectImg:i,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Nl=l=>{const{SmoothView:o,View:s}=h(),{handleCollect:t,collection:i}=W(l);return a(s,{onClick:t,children:[Le(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:Le(i.dataObj)?"收藏":"已收藏"})]})},Cl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n}=h(),{rsSkuDomainList:c}=F(l,t),{goodInfo:r}=G(c);return E(l),a(i,{className:"goodsDetail-topInfo",children:[a(i,{className:"lPart",children:[e(n,{className:"name",children:r.goodsName}),e(n,{className:"price",style:{display:o?"block":"none"},children:ca(r.pricesetNprice)})]}),e(i,{className:"rPart",style:{display:s?"flex":"none"},children:e(Nl,{goodsName:r.goodsName,pricesetNprice:r.pricesetNprice,dataPic:r.dataPic,skuCode:l})})]})},fl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=h(),{handleCollect:i,collection:n}=W(l),{handleShare:c}=H();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:Le(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),bl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=h(),{rsSkuDomainList:r}=F(t,i),{goodInfo:d}=G(r);return Y((e=>e.spec)),E(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ca(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(fl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:t})]})})),yl=s((()=>{const{Text:e}=h(),l=Y((e=>e.count)),o=Y((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),wl=({dispatchPageStore:o})=>{const{View:s,Text:t}=h(),{openPopup:i}=U(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"规格"}),a(s,{className:"info",children:[e(yl,{}),e("img",{src:cl,alt:"",className:"icon"})]})]})})},Sl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=h(),{rsSkuDomainList:i}=F(l,o),{goodInfo:n}=G(i),c=Q(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},l)=>e(s,{className:"item",children:a},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},kl=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:i,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:p}=h(),{save:u,isPick:g}=K(),N=t((()=>c-r),[c,r]);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:n}),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:i,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),xl=()=>{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"})})},vl=o=>{var{skuCode:s,scene:t}=o;sa(o,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=h(),{rsSkuDomainList:d}=F(s,t),{goodInfo:p}=G(d),{coupon:u,visible:g,setVisible:N}=q(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(r,{src:cl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(ua,{children:u.length>0?u.map(((e,a)=>m(kl,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(xl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Il=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:t}=h(),[i,r]=n([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);c((()=>{if(s){const e=[...i];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!l){for(let a=0;a<i.length;a++)i[a].icon=a>e?"star":"star-fill";r([...i]),a(e+1)}};return e(t,{children:i.map(((a,l)=>e(Ge,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Al=({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(Il,{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})]})},Bl=({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(Al,{item:a},l)))]}):e(Wa,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Vl=({goodsRemark:a})=>{const{View:l}=h(),o=t((()=>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||""}})})},Ll=({tabActive:o,setTabActive:s,evaluateShow:i,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=h(),d=t((()=>n?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[i]);return e(l,{children:d.map(((l,t)=>e(p,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},Tl=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:t,scene:i})=>{const{View:c}=h(),[r,d]=n(0),{goodsRemark:m,goodsCode:p}=F(t,i),u=Z(p);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(Ll,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(Vl,{goodsRemark:m}):e(Bl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Dl=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:c}=h(),r=Y((e=>e.offShelf));return a(n,{className:"sizeArr",children:[e(c,{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&&r}),onClick:o.bind(null,a.specValueValue,i),children:a.specValueValue},l)))})]})},Pl=s((({handleStep:l})=>{const{View:o,NumStep:s}=h(),t=Y((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),Rl=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=h(),{skuList:r}=o;return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:i.dataPic,alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:ca(i.pricesetNprice)}),a(c,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),r.map(((a,l)=>e(Dl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},zl=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=h(),c=Y((e=>e.isNeedButton)),r=Y((e=>e.offShelf));return r?e(n,{className:C({btnWrap:!0,offShelf:r}),children:e(i,{className:"btn",children:"已下架"})}):e(l,{children:c?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:"立即购买"})]})})},Ml=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=h(),{spec:c,goodInfo:r}=G(t),{handleChooseSize:d,handleStep:m,addCardImpl:p,cashImpl:u,addShoppingImpl:g}=$(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(ua,{children:e(n,{children:a(i,{className:"content",children:[e(Rl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Pl,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(zl,{cashImpl:u,addShoppingImpl:g,addCardImpl:p})]})})),Ol=({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(Ml,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},Fl=s((({serverShow:o,cartShow:s,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:c,rPartBgColor:r,rPartStyle:d,dispatchPageStore:m,skuCode:p,platform:u,scene:g})=>{const{View:N,IconMobile:C,Text:b}=h(),y=Y((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:S}=F(p,g),{goodInfo:k}=G(w),{servicePopup:x}=ia(u),{addCardPopup:v,buyOpenPopup:I}=U(m);return a(N,{className:"goodsDetailHandleBar",children:[a(N,{className:"linkGroup server",onClick:x,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:()=>f("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:y?e(N,{className:"btn addCart offShelf",children:e(b,{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:c,backgroundColor:r,borderTopRightRadius:d,borderBottomRightRadius:d},children:"10"===k.goodsPro?"预售抢购":"立即购买"})]})})]})})),jl=o=>{var{$_dataSource:s={},dispatchPageStore:t=Te,skuCode:i,scene:n}=o,c=sa(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=F(i,n),p=X(r,m),{popupVisible:h}=s;return a(l,{children:[e(Fl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(Ol,{dispatchPageStore:t,popupVisible:h,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Wl=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:p,skuCode:u,scene:g,platform:N})=>{const{View:C,IconMobile:b}=h(),{rsSkuDomainList:y}=F(u,g),{goodInfo:w}=G(y),{servicePopup:S}=ia(N),{addCardPopup:k,buyOpenPopup:x}=U(p);return a(C,{className:"goodsDetailHandleBarOne",children:[a(C,{className:"linkGroup server",onClick:S,style:{display:l?"block":"none"},children:[e(b,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>f("shopping"),style:{display:o?"block":"none"},children:[e(b,{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:k,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(C,{onClick:x,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===w.goodsPro?"预售抢购":"立即购买"})]})]})})),Gl=o=>{var{popupVisible:s=!1,dispatchPageStore:t=Te,skuCode:i,scene:n}=o,c=sa(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=F(i,n),p=X(r,m);return a(l,{children:[e(Wl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(Ol,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},El=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Hl=({setParams:l,activeColor:o})=>{const{View:s}=h(),[t,i]=n(0),[c,r]=n(El);return e(s,{className:"sortWrap",children:c.map((({order:n,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(t===m?"active":""),onClick:()=>((e,a,o)=>{i(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,n),style:{color:t===m?o:""},children:[d,n&&a(s,{className:"orderIcons",children:[e(Ge,{style:{color:t===m&&"desc"!==n?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Ge,{style:{color:t===m&&"desc"===n?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Yl=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:i=!0,goodsPrice:c=!0,lineationGoods:r=!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:k,IconMobile:x}=h(),[v,I]=n({}),{loading:A,getData:B,list:V}=J(l,o,v),L=t((()=>C("textBox",{btm:!c&&!r})),[c,r]),T=t((()=>C("name",{boxNone:!i})),[i]),D=t((()=>C("middle_margin",{boxNone:!d})),[d]),P=t((()=>C("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=t((()=>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(Hl,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(ua,{id:"listWrap",children:a(k,{onScroll:()=>B(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:c?"block":"none"},children:ca(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:ca(l.pricesetMakeprice)})]}),e(b,{style:{display:m?"block":"none"},children:e(x,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),A?e(y,{}):null]})})})]})})),Ul=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:i,btnColor:n,btnShape:c})=>{const{View:r}=h(),{cartIsEditor:d}=l,{editorImpl:m}=_(a),p=t((()=>({border:o?`2px solid ${s}`:"",color:o?i:"",background:o?n:"",borderRadius:o?c:""})),[o,s,i,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:p,children:d?"完成":"编辑"})})},Ql=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})})]})})),Kl=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:c,SmoothRadio:r}=h();return e(i,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(ua,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Ql,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},ql=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,pricesetNprice:c,handleStep:r})=>{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:ca(c)}),0===s&&e(p,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),Zl=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:i,View:n}=h(),c=t((()=>{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(n,{className:"bg",children:e(i,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(i,{className:"img",src:l,onClick:()=>f("goodDetail",{skuCode:s})})]})})),$l=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:i,Checkbox:n}=h(),c=t((()=>(a||0===o)&&s.includes(l+"")),[s,a,l,o]);return e(i,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),Xl=({promotion:o=[],updatePm:s,shoppingGoodsId:i,promotionCode:c})=>{const{View:r}=h(),[d,m]=n(!1),p=t((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{children:[a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:p}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(i,"-"))},children:e(Kl,{promotionCode:c,onChange:e=>{m(!1),s(i,e.detail.value)},promotion:o||[],visible:d,setVisible:m})})]})},Jl=s((l=>{var{item:o}=l,s=sa(l,["item"]);const{View:t}=h(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e($l,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(Zl,{dataState:o.dataState,dataPic:o.dataPic,skuCode:o.skuCode}),e(ql,Object.assign({},o,s))]})})),_l=o=>{var{shoppingGoodsList:s=[]}=o,t=sa(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(p,{children:[e(Jl,Object.assign({},t,{item:l})),l.pmPromotionList?e(Xl,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},eo=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:i}=h(),n=t((()=>Le(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Fe(o,{}),children:["去凑单",e(i,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),n]})},ao=({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(eo,{link:t,disNextMsg:l})]})},lo=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=h(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:C,onChange:f,handleStep:b,updatePm:y}=ee(o,u,s);return e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{onChange:f,children:C.length?e(l,{children:C.map((({memberCname:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},h)=>a(p,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:n},children:[t?e(ao,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(_l,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(Wa,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},oo=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:i="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:p}=h(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:C}=l,{toOrderImpl:f,deleteCart:b,selectAll:y,cartDetail:w}=ae(N,u,o),S=t((()=>({border:`1px solid ${s}`,color:i,background:n,borderRadius:c})),[s,i,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{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(r,{className:"del",children:e(r,{onClick:b,className:"btn",children:"删除"})}):a(r,{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ca(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ca(w.amount)})]})]}),a(r,{onClick:f,className:"btn",style:S,children:["结算(",w.num,")"]})]})]})},so=({address:a})=>e(l,{children:Le(a)?e(io,{}):e(to,{address:a})}),to=({address:l})=>{const{View:o,SmoothView:s,IconMobile:i}=h(),n=t((()=>{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(i,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:n.address})]}),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},io=()=>{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"})]})},no=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=h(),i=le(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>f("addressList"),children:e(so,{address:i})})},co=s((({couponStart:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponEnd:n})=>{const{View:c,Text:r,Radio:d}=h();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:i}),a(r,{className:"date",children:[Pe(l).format("YYYY-MM-DD")," - ",Pe(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),ro=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{View:n,Text:c,Popup:r,SmoothRadio:d,ScrollView:p}=h(),{shoppingGoodsList:u}=oe({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:g,visible:N,setVisible:C,selectCoupon:f,onChange:b}=se(u);return a(l,{children:[a(n,{className:"coupon-select",onClick:()=>C(0!==g.length),children:[e(c,{className:"label",children:"使用优惠"}),a(n,{className:"info",children:[e(c,{className:"label",children:f?`已选择: ${f}`:0===g.length?"暂无可用优惠券":"请选择优惠券"}),0===g.length?null:e("img",{src:cl,alt:"",className:"icon"})]})]}),e(r,{popupVisible:N,popupHandler:C,children:e(n,{className:"goodsDetail-coupon-popup",children:e(ua,{children:e(p,{children:e(d,{onChange:b,children:g.map(((e,a)=>m(co,Object.assign({},e,{key:a}))))})})})})})]})},mo=({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:"快递"})]})})},po=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s})=>{const{View:t}=h(),{list:i}=oe({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s});return e(t,{className:"place-order-goods",children:i.map(((a,l)=>e(va,Object.assign({},a),l)))})},ho=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{SmoothView:n,View:c}=h(),{payState:r,disCount:d,freight:m,payPrice:p}=oe({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{shoppingCountPrice:u,comDisMoney:g}=te(r);return e(l,{children:a(c,{className:"price placeOrder-blcWrap",children:[e(c,{className:"title",children:"价格明细"}),a(c,{className:"express placeOrder-blcItem",children:[e(c,{className:"label",children:"商品总金额"}),e(n,{className:"value",children:ca(u)})]}),a(c,{className:"coupon placeOrder-blcItem",children:[e(c,{className:"label",children:"优惠金额"}),e(n,{className:"value",children:ca(g+d)})]}),a(c,{className:"express placeOrder-blcItem",children:[e(c,{className:"label",children:"运费"}),e(n,{className:"value",children:ca(m)})]}),a(c,{className:"all placeOrder-blcItem",children:[e(c,{className:"label",children:"总计"}),e(n,{className:"value",style:{color:"#000"},children:ca(p)})]})]})})},uo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r})=>{const{View:d,Text:m,WrapLoading:p}=h(),{payPrice:u,list:g,payState:N,orderStoreInfo:C,ocContractSettlList:f}=oe({refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r}),{savePayPrice:b,loading:y}=ie({ocContractSettlList:f,payState:N,list:g},c,n,C,r);return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",ca(u)]}),e(p,{loading:y,children:e(d,{className:"btn",onClick:b,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},go=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:i,borderColor:n,paddingTop:c,paddingBottom:r,color:d})=>{const m=t((()=>b()),[]),{View:p,Text:u,Radio:g,IconMobile:N,WrapLoading:C,SmoothRadio:f}=h(),{paymentImpl:y,channelList:w,contract:S,handleRadio:k,loading:x}=ne({contractBillcode:l,contractBbillcode:o});return a(p,{className:"paymentModeWrap",style:{height:m?"inherit":"667px",paddingBottom:r+"px",paddingTop:c+"px"},children:[a(p,{className:"paymentMode",children:[a(p,{className:"topInfo",children:[a(u,{className:"title",children:[e(N,{value:"roundcheck"}),"订单提交成功"]}),a(p,{className:"info",children:["订单号:",S.current.contractBillcode," | 总金额:",ca(S.current.dataBmoney),"元"]})]}),e(p,{className:"paymentGroup",children:e(f,{onChange:k,children:null==w?void 0:w.map((l=>a(p,{className:"paymentItem",children:[e(N,{value:l.icon}),a(p,{children:[a(p,{className:"base",children:[e(u,{children:l.fchannelName}),e(g,{value:l.fchannelCode,className:"choose"})]}),"account"===l.value?a(p,{className:"info",children:[e(p,{children:"账户余额:0元"}),e(p,{children:"本单抵扣:5.4元"})]}):null]})]},l.fchannelCode)))})})]}),e(p,{id:"v_html"}),e(C,{loading:x,children:e(p,{className:"btnGroup",onClick:y,children:e(p,{style:{borderRadius:i,backgroundColor:s,color:d,borderColor:n},className:"payment",children:"立即支付"})})})]})})),No=({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:ca(l.dataBmoney)})]})]})},Co=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:i,leftBorderRadius:n,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:p,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:C,Text:b,IconMobile:y,WrapLoading:S}=h(),{result:k,loading:x}=ce(l||(w("contractBillcode")||{}).contractBillcode);return e(C,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:x,children:a(C,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(y,{value:k.icon,style:{fontSize:"35px",color:k.color}}),a(C,{className:"tips",children:[e(b,{className:"title",children:k.msg}),e(b,{className:"tip",children:k.info})]}),"success"===k.sysRecode&&e(No,{dataObj:k.dataObj}),a(C,{className:"btnGroup",style:{marginTop:20},children:[e(C,{className:"btn black",onClick:()=>f(k.menuCode,{contractBillcode:k.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${i}`,borderRadius:1===n?"20px":"0px"},children:k.buttonText}),e(C,{style:{color:d,backgroundColor:m,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>f(r.value),className:"btn white",children:c})]})]})})})})),{Button:fo}=g,bo=a=>{var{dataState:o}=a,s=sa(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(yo,Object.assign({dataState:o},s))})},yo=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,c=sa(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=h();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:d,handlerImpl:m}=re(Object.assign({dataState:l},c));return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(fo,{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:wo}=g,So=({contractPaydate:a,init:o,countdownCancel:s,contractId:t})=>{const{View:i,SmoothView:r}=h(),{resultTime:d}=((e,a,l,o)=>{const[s,t]=n("");return c((()=>{const s=setTimeout((()=>{const s=new Date(e),i=new Date,n=s.getTime()-(i.getTime()-3600);n<999&&n>0?l(o).then((()=>{a()})):n>1e3&&t(da(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,t);return e(l,{children:d?e(i,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function ko({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:p,countdownCancel:u}){const{View:g}=h(),N=de(i);return a(g,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(g,{onClick:()=>f("orderDetail",{contractBillcode:l}),children:[a(g,{className:"topInfo",children:[a(g,{className:"orderNo",children:["订单号: ",l,e(wo,{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(va,Object.assign({},a,{dataState:i,children:1===i&&e(So,{contractPaydate:p,init:c,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(g,{className:"allInfo",children:[a(g,{className:"totalNum",children:["共",s,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",ca(o)]})]}),e(bo,{init:c,contractId:n,contractBillcode:l,dataState:i,contractAppraise:r})]})}const xo=()=>{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 vo=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t}){const{View:i,ScrollView:n,Loading:c}=h(),{onScroll:r,data:d,loading:p,init:u,countdownCancel:g}=me(l,o);return e(i,{className:"orderListItemWrap",children:e(ua,{id:"orderListItemWrap",children:e(n,{onScroll:r,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(ko,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:g})))),e(i,{children:p?e(c,{}):null})]}):a(i,{className:"nodata_img",children:[e(xo,{}),e(i,{className:"nodata-btn",onClick:()=>f("goodList"),children:"前往购物"})]})})})})})),Io=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:pe,render:l=>e(t,{className:"orderList",children:e(vo,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Ao}=g,Bo=s((({copyContent:a=""})=>{const[l,o]=n(!1),s=t((()=>b()),[]);return e(Ao,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=y();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?"已复制":"复制"})})),Vo=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m})=>{const{View:p,Text:u}=h(),{orderDetail:g,handleApplyBtn:N}=he(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:["待收货"===de(g.dataState)?e(Ge,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:de(g.dataState)})]}),e(p,{className:"subTitleWrap",children:C(g.gmtCreate)})]})}),e(p,{className:"orderDetailContent",style:{paddingTop:c+"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(va,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(Bo,{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(bo,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:g.contractBillcode,contractId:g.contractId,dataState:g.dataState})})]})})]})})),Lo=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:i}=h(),n=Be(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=Be(o,"packageList.length",l.count),r=Be(o,"packageList[0].expressName",l.expressName),d=Be(o,"packageList[0].packageBillno",l.packageBillno),m=Be(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:["共 ",c," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",r]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},To=({defaultValue:l,detail:o})=>{const{View:s}=h(),t=Be(o,"message",l.message),i=Be(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})})},Do=s((({code:l,defaultValue:o})=>{const{View:s}=h(),{info:t,detail:i,stateObj:n}=ue(l);return a(s,{className:"expressInfo",children:[e(Lo,{info:t,detail:i,stateObj:n,defaultValue:o}),e(To,{detail:i,defaultValue:o})]})})),Po=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:t,userNickname:i,refreshNum:r})=>{const{View:d,Text:m,IconMobile:p,Image:u}=h(),{servicePopup:g}=ia(),[N,C]=n(i),[b,y]=n(t);return c((()=>{C(w("userNickname")),y(w("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(p,{value:"bianzu",onClick:()=>f("/account/setting/index")}),e(p,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>f("/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:b,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),Ro=s((({title:l,columnList:o})=>{const{View:s,Text:t,Badge:i,Image:r}=h(),[d,m]=n({});c((()=>{ta(void 0,void 0,void 0,(function*(){try{const e=yield Ie();m(e.dataObj)}catch(e){}}))}),[]);const p=(e,a)=>{4!==e.id?f("orderlist",{indexId:a+1}):f("afterSalesList")};return a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>f("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(i,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(t,{className:"subTitle",children:l.label})]},o)))})]})})),zo=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:i,IconMobile:n,Image:c}=h();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>f(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:l.imgUrl,className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),Mo=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=h(),{Rate:c}=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(c,{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)))})]})},Oo=[{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"}]}],Fo=s((()=>{const[o,s]=n("1"),{View:t}=h(),i=r([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),c=e=>{s(e)};return a(l,{children:[e(t,{className:"evaluateListTab",children:i.current.map((e=>a(t,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:c.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(t,{className:"evaluateListContent",children:Oo.map(((a,l)=>e(Mo,{itemData:a},l)))})]})})),jo=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:c,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:C}=ge(l),{Button:f}=g,{View:b,Image:y,TextArea:w,Textarea:S}=h(),k=w||S,x=r("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:c,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(Il,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(k,{className:"content",placeholder:x.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:"提交"})]})})),Wo=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=h();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>f("goodDetail",{skuCode:l.collectOpcode}),children:[e(i,{src:l.collectOppic,className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Go=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ne(),{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(ua,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:i,style:{height:"100%"},children:l.map((a=>e(Wo,{item:a,edit:o,checked:r},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]})})]})})})),Eo=({footprintItem:l,edit:o})=>{const{View:s,Image:i,Checkbox:n,SmoothView:c}=h(),r=t((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(n,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>f("goodDetail",{skuCode:l.footprintOpcode}),children:[e(i,{src:l.footprintOppic,className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Ho=({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(Eo,{footprintItem:a,edit:s},l)))]})},Yo=({footprintList:a,edit:o})=>{const s=t((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Pe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=De(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(Ho,{item:a,edit:o},l)))})},Uo=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:i}=h(),{footprintList:n,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:p,loading:u}=Ce();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:()=>r(!c),children:c?"完成":"编辑"})}),e(ua,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(s,{onChange:d,children:e(Yo,{footprintList:n,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Qo=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ko=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=h();return e(s,{className:"promotionListTab",children:Qo.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),qo=({data:l})=>{const{View:o}=h(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,promotionEndtime:c}=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(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Zo=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[t,i]=n(Qo[0].val),{list:c,getData:r}=fe({params:t}),{View:d,ScrollView:m}=h();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(Ko,{activeColor:l,setParams:i,params:t}),e(d,{children:e(ua,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(qo,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=h(),s=r(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 $o=()=>{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"})})},Xo=({list:o,coe:s,config:t,backgroundColor:i,color:n})=>{const{View:c,Text:r}=h();return e(l,{children:o.length?o.map(((o,d)=>e(c,{className:`couponListItem\n ${t.current[s.current].styleName}`,style:{backgroundColor:i,color:n},children:a(c,{className:"coupon-content",children:[e(c,{className:"price",children:e(r,{className:"num",children:o.pbName})}),a(c,{className:"couponListItem-info",children:[e(r,{className:"title",children:o.discName}),a(r,{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(c,{className:"btn",children:t.current[s.current].text}):null,2===s.current?e(l,{children:e(c,{className:"round",children:"已失效"})}):null]})]})},d))):e($o,{})})},Jo=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:c,ScrollView:r}=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(c,{className:"icon"})]},l.id)))}),e(ua,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Xo,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:p})})})})]})})),_o=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:p})=>{const{View:u}=h(),{list:g,takeCoupon:N,takeList:C}=ye({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${p}px`},children:g.map(((l,o)=>{const m=Be(l,"pbName"),p=Be(l,"pmPromotionDiscountList"),h=Be(p.at(-1),"discName"),g=Be(l,"promotionName"),f=Pe(Be(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Pe(Be(l,"promotionEndtime")).format("YYYY-MM-DD"),y=Be(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:r},children:h})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},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)}))})})),es=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:p,paddingBottom:u})=>{const{View:g}=h(),{list:N,takeCoupon:C,takeList:f}=ye({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=Be(l,"pbName"),p=Be(l,"pmPromotionDiscountList"),h=Be(p.at(-1),"discName"),u=Be(l,"promotionName"),N=Pe(Be(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Pe(Be(l,"promotionEndtime")).format("YYYY-MM-DD"),y=Be(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:c},children:h}),e(g,{className:"info",style:{color:r},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)}))})})),as=s((l=>{var{type:o=1,coupons:s=[]}=l,t=sa(l,["type","coupons"]);const{View:i}=h();return a(i,{className:"getCouponOne",children:[1===o?e(_o,Object.assign({coupons:s},t)):null,2===o?e(es,Object.assign({coupons:s},t)):null]})})),ls=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=we(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},os=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=h(),{info:r}=Se(l);return a(n,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(n,{className:"content",children:r.noticeContext})]})})),ss=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=ke(l),{View:c,ScrollView:r}=h(),{doclistContent:d,doclistTitle:m,doclistTitle4:p}=n;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(ua,{id:"a",children:a(r,{children:[e(c,{className:"title",children:m}),e(c,{className:"author",children:p}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:d||""}})]})})})}));export{Ua as AddressDetail,Ga as AddressList,Ea as AddressListBtn,fa as AfterSalesApply,La as AfterSalesDetail,xa as AfterSalesList,Ma as AfterSalesType,Zo as AllPromotionList,ss as ArticleDetail,ea as BackTop,lo as CartList,oo as CartOperate,Ul as CartTop,Ze as ClassifyNav,Xe as ClassifyNavOne,$e as ClassifyNavOneJsx,_e as ClassifyNavThree,Je as ClassifyNavTwo,Go as CollectionList,Jo as CouponList,aa as Cube,jo as EvaluateDetail,Fo as EvaluateList,Do as ExpressInfo,Uo as FootPrint,as as GetCouponOne,pl as Goods,Xa as GoodsClassify,ll as GoodsClassifyOne,il as GoodsClassifyTwo,Tl as GoodsDetailAndEvaluate,gl as GoodsDetailBanner,vl as GoodsDetailCoupon,jl as GoodsDetailHandleBar,Gl as GoodsDetailHandleBarOne,Cl as GoodsDetailInfo,bl as GoodsDetailInfoOne,Sl as GoodsDetailPromotion,wl as GoodsDetailSku,Yl as GoodsList,hl as GoodsSlider,ul as GoodsSlideshow,Ye as Line,Po as MineData,zo as MineFunction,Ro as MineOrderEntry,Qa as MyAgreementList,qa as MySetting,Ka as MySettingJsx,ls as Notice,os as NoticeDetail,Vo as OrderDetail,Io as OrderList,go as PaymentMode,no as PlaceOrderAddress,ro as PlaceOrderCoupon,mo as PlaceOrderDelivery,po as PlaceOrderGood,ho as PlaceOrderInfo,uo as PlaceOrderOperate,Co as PlaceOrderResult,Ge as QjMobileIcon,rl as Search,ml as SearchPage,dl as SearchStyleTwo,We as Service,Ke as Slider,He as TextLine,Ee as Title,ma as ToPrice,qe as Video,na as addressIdConst,ca as fixPrice,ra as fixPrice1,da as formatTime,ia 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,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 j,useAfterSalesChooseType as W,useAddressItem as G,useAddressList as E,useEditAddress as H,useMySetting as Y,useGoodsClassify as U,useGoods as Q,useGoodDetail as K,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-mobile-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 je}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"})})),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 Qe(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((()=>{Qe(void 0,void 0,void 0,(function*(){const e=yield s();l(r(e))}))}),[]);const s=()=>Qe(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,la=process.env.REACT_IMG_PATH||"",oa=e=>n((()=>/^(http|https):\/\//.test(e)?e:aa+la+e),[e]),sa=s((({item:a,position:l,direction:o})=>{var s,t;const{Image:i,View:n}=h(),r=oa(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)})})),ta=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(sa,{item:s,position:o,direction:m})]})})})})),ia=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(ta,{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})})})),na=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}})})})),ra=({src:a,borderRadius:l})=>{const{Image:o}=h(),s=oa(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},ca=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(ra,{src:l.imgUrl,borderRadius:o}),e(r,{className:"label",children:l.title})]},s)))})})})),da=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=h(),t=oa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},ma=({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(da,{src:a.imgUrl,imgBoxShadow:r,imgRadius:n})},l)))})},pa=s(ma),ha=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)))})})),ua=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:r,layout:c}=a,{View:d}=h(),m=oa(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})})})},ga=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(ua,{layout:u,item:a,imgRadius:n,imgBoxShadow:r,fontSize:c,fontColor:d,tagBgColor:m,otherStyle:p},l)))})})),Na=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"})})})),Ca=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=h(),i=oa(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)}})},fa=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(Ca,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),ba=o.createContext(null),ya=s((()=>{const{View:a}=h(),{tip:l}=r(ba);return e(a,{className:"afterSalesApplyTip",children:l})}));const wa=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}))},Sa=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(ba);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(wa,{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)))})]})})})})})})),xa=s((()=>{const{View:l}=h(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=r(ba);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(Sa,{popupShow:s})]})})),ka=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(ba);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)))]})]})]})})),va=({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(ba.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(ya,{}),e(xa,{}),e(ka,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},Ia={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Ba={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Aa=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=Ia[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ia[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:Ia[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:Ba[l.refundType][l.dataState]}),e(Ge,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Va=s((()=>{const{View:a}=h();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),La=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(wa,{id:"tabContent",children:e(s,{children:c?i.map((a=>e(Aa,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Va,{})})})})})})),Ta=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(La,{item:l,refreshNum:a})})})})),Da=({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]})]})})},Pa=(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]}},Ra=o.createContext(null),za=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Ra),{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(wa,{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)))})]})})})})})),Ma=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Ra),{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(za,{})]})})),Oa=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}=j({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(Ra.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:Pa(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(Da,{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(Ma,{})]}):"",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]})})})})),Fa=o.createContext(null),ja=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=h(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:p}=r(Fa),{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"}]},Ga=(e=2)=>Wa[e],Ea=s((({afterSalesType:l=2,contractBillcode:o,skuCode:s})=>{const{View:t}=h(),{goApply:i,goodsNum:n}=r(Fa);return e(t,{children:a(t,{className:"afterSalesTypeType",children:[e(t,{className:"title",children:"售后类型"}),Ga(+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)))]})})})),Ha=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(Fa.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:f},children:[e(ja,{}),e(Ea,{afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},Ya=({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:"设为默认地址"})})},Ua=({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(Ya,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{className:"del",onClick:o,children:"删除"})]})]})},Qa=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(Qa,{}):e(r,{className:"addressList",children:c.length?c.map(((a,l)=>e(Ua,{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:"您还没有添加过地址"})})})})),Za=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:"+ 新增地址"})})})),$a=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],Xa=[{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"}}],Ja=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(je,{footer:e(r,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:$a,onSubmit:c,fields:Xa})})})),_a=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)))})})})),el=()=>{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:"退出登录"})]})},al=s(el),ll=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:ol}=g,sl=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(wa,{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(ol,{activeKey:c,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(ol.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===c?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(ll,{navList:m,activeKey:c,cell:l})})]})})})})})),tl=d(null),il=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(tl),{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(wa,{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]})})),nl=s((({thirdList:l})=>{const{View:o,Image:s}=h(),{picShadow:t,layout:i}=r(tl);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)))})})),rl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(tl),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(wa,{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(nl,{thirdList:u})]})})})})})),cl=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(tl.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(il,{}),e(rl,{})]})})})),dl=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)))})})),ml=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(dl,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:pl}=g,hl=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(wa,{id:"goodsClassifyTwo",children:a(r,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(r,{className:"side",children:e(pl,{activeKey:c,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(pl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(r,{className:"main",children:e(ml,{navList:m,activeKey:c,layout:i,picShadow:n})})]})})})})),ul="data:image/png;base64,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",gl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Nl=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:ul,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})]})})})),Cl=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:ul,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:"搜索"})]})})})),fl=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=>Qe(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:ul,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:()=>Qe(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]})})),bl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,goods:p=[],markedPrice:u,paddingTop:g,paddingBottom:N,paddingLeft:f,paddingRight:b,goodsName:w=!0,goodsPrice:S=!0,goodsCar:x=!0,goodsBorder:k=!0,goodsShadow:v=!1,marginGap:B=10})=>{const[A,D]=t(l),P=c(),{View:R,Text:z}=h();return i((()=>{L(P.current,p)||(P.current=p,T(p)?D(l):Qe(void 0,void 0,void 0,(function*(){try{const e=yield I({goodsCode:p.toString(),distinctField:"goodsNo"}),a=V(e,"list",[]);D(a)}catch(e){D(l)}})))}),[p]),e(R,{style:{paddingTop:g,paddingBottom:N},children:e(R,{className:C({[`goods-${o}`]:!0}),style:{display:"grid",gap:B,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:f,paddingRight:b},children:A.map(((l,o)=>a(R,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:k?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),className:["goods "+(v?"outer-shadow":"")].join(" "),children:[e(R,{className:"goods-img",style:{backgroundImage:`url(${l.dataPic})`}}),a(R,{className:"space",children:[e(R,{className:"titleType",style:{display:w?"block":"none"},children:l.goodsName}),e(R,{className:"subTitle",children:l.brandName}),d&&a(R,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(R,{className:"price",children:[a(R,{style:{fontSize:18},children:[S?Ze(l.pricesetNprice):"",1===u&&e(z,{className:"markedPrice",children:Ze(l.pricesetMakeprice)})]}),e(R,{className:"anticon",style:{display:x?"block":"none"},children:e(Ge,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),yl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,wrapRadius:n,wrapBorderColor:r,wrapBgColor:c,wrapShadow:d,goodsRadius:m,goodsBgColor:p,goodsGap:u,marginTop:g,marginBottom:N,marginLeft:C,marginRight:f})=>{const{View:b}=h(),{list:w}=Q({defaultValue:l,goods:o});return e(b,{className:"goodsSlider",style:{borderRadius:n,borderColor:r,backgroundColor:c,boxShadow:d?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N,marginLeft:C,marginRight:f},children:w.map(((l,o)=>a(b,{className:"goodsSliderItem",style:{borderRadius:m,backgroundColor:p,marginRight:`${u}px`},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(b,{className:"img",style:{backgroundImage:`url(${l.dataPic})`}}),a(b,{className:"board",children:[e(b,{className:"title",children:l.goodsName}),a(b,{className:"info",children:[a(b,{className:"lPart",children:[s?e(b,{className:"price",children:Ze(l.pricesetNprice)}):null,t?e(b,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null]}),i?e(b,{className:"rPart",children:e(Ge,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),wl=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:r,salesNum:c,price:d,goodsRadius:m,goodsBorder:p,goodsShadow:u,btnText:g,btnBg:N,btnColor:C,btnRadius:b})=>{const w=n((()=>f()),[]),{list:S}=Q({defaultValue:l,goods:o}),{SmoothSwiper:x,View:k,Image:v}=h(),[I,B]=t(0);return a(k,{className:"goodsSlideshow",children:[e(v,{src:s,className:"bg",mode:"widthFix"}),e(x,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:S,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{B(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(k,{className:["goodsSlideshowItem",""+(l.goodsCode===S[I].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:m,borderStyle:p?"solid":"none",boxShadow:u?"0px 0px 20px 10px #ddd":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(v,{className:"logo",src:l.dataPic,mode:"widthFix"}),r?e(k,{className:"goodsName",children:l.goodsShowname}):null,c?a(k,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(k,{className:"price",children:Ze(l.pricesetNprice)}):null,i?e(k,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null,e(k,{className:"btn",style:{backgroundColor:N,color:C,borderRadius:b},children:g})]})})]})})),Sl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[]}=K(o,s),i=q(t);return e(ta,{selectImg:i,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},xl=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)?"收藏":"已收藏"})]})},kl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n}=h(),{rsSkuDomainList:r}=K(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(xl,{goodsName:c.goodsName,pricesetNprice:c.pricesetNprice,dataPic:c.dataPic,skuCode:l})})]})},vl=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]})})),Il=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:r}=h(),{rsSkuDomainList:c}=K(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(vl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:t})]})})),Bl=s((()=>{const{Text:e}=h(),l=_((e=>e.count)),o=_((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Al=({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(Bl,{}),e("img",{src:gl,alt:"",className:"icon"})]})]})})},Vl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=h(),{rsSkuDomainList:i}=K(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:"暂无促销活动"})})]})},Ll=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:"已领完"})]})})})),Tl=()=>{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"})})},Dl=o=>{var{skuCode:s,scene:t}=o;Ue(o,["skuCode","scene"]);const{View:i,Text:n,Popup:r,Image:c}=h(),{rsSkuDomainList:d}=K(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:gl,alt:"",className:"icon"})]})]}),e(r,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(wa,{children:u.length>0?u.map(((e,a)=>m(Ll,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Tl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Pl=({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)))})},Rl=({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(Pl,{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})]})},zl=({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(Rl,{item:a},l)))]}):e(Ka,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Ml=({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||""}})})},Ol=({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)))})},Fl=({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=se(p);return a(r,{className:"goodsDetailTab",children:[e(r,{className:"tabs",children:e(Ol,{tabActive:c,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(r,{className:"group",children:0===c?e(Ml,{goodsRemark:m}):e(zl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},jl=({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})]})})),Gl=({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(jl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},El=({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:"立即购买"})]})})},Hl=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(wa,{children:e(n,{children:a(i,{className:"content",children:[e(Gl,{skuInfo:s,handleChooseSize:d,spec:r,goodInfo:c}),e(Wl,{handleStep:m.bind(null,c.goodsNum,c.goodsMinnum)})]})})}),e(El,{cashImpl:u,addShoppingImpl:g,addCardImpl:p})]})})),Yl=({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(Hl,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},Ul=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}=K(p,g),{goodInfo:x}=$(w),{servicePopup:k}=Ke(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?"预售抢购":"立即购买"})]})})]})})),Ql=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}=K(i,n),p=ie(c,m),{popupVisible:h}=s;return a(l,{children:[e(Ul,Object.assign({skuCode:i},r,{dispatchPageStore:t})),e(Yl,{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}=K(u,g),{goodInfo:w}=$(b),{servicePopup:S}=Ke(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}=K(i,n),p=ie(c,m);return a(l,{children:[e(Kl,Object.assign({skuCode:i},r,{dispatchPageStore:t})),e(Yl,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Zl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],$l=({setParams:l,activeColor:o})=>{const{View:s}=h(),[i,n]=t(0),[r,c]=t(Zl);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)))})},Xl=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($l,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(wa,{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]})})})]})})),Jl=({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?"完成":"编辑"})})},_l=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})})]})})),eo=({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(wa,{children:e(n,{children:e(c,{onChange:a,children:t.map(((e,a)=>m(_l,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},ao=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)})]})]})})})),lo=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})})]})})),oo=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"}})})})),so=({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(eo,{promotionCode:r,onChange:e=>{m(!1),s(i,e.detail.value)},promotion:o||[],visible:d,setVisible:m})})]})},to=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(oo,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(lo,{dataState:o.dataState,dataPic:o.dataPic,skuCode:o.skuCode}),e(ao,Object.assign({},o,s))]})})),io=o=>{var{shoppingGoodsList:s=[]}=o,t=Ue(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(p,{children:[e(to,Object.assign({},t,{item:l})),l.pmPromotionList?e(so,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},no=({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]})},ro=({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(no,{link:t,disNextMsg:l})]})},co=({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(ro,{link:i,disNextMsg:s,promotionName:t,pbName:r}):null,e(io,{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"})})})})},mo=({$_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,")"]})]})]})},po=({address:a})=>e(l,{children:T(a)?e(uo,{}):e(ho,{address:a})}),ho=({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"}})]})},uo=()=>{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"})]})},go=({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(po,{address:i})})},No=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})})]})})})),Co=({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:gl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:N,popupHandler:C,children:e(n,{className:"goodsDetail-coupon-popup",children:e(wa,{children:e(p,{children:e(d,{onChange:b,children:g.map(((e,a)=>m(No,Object.assign({},e,{key:a}))))})})})})})]})},fo=({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:"快递"})]})})},bo=({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(Da,Object.assign({},a),l)))})},yo=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{SmoothView:n,View:r}=h(),{payState:c,disCount:d,freight:m,payPrice:p}=pe({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{shoppingCountPrice:u,comDisMoney:g}=ue(c);return e(l,{children:a(r,{className:"price placeOrder-blcWrap",children:[e(r,{className:"title",children:"价格明细"}),a(r,{className:"express placeOrder-blcItem",children:[e(r,{className:"label",children:"商品总金额"}),e(n,{className:"value",children:Ze(u)})]}),a(r,{className:"coupon placeOrder-blcItem",children:[e(r,{className:"label",children:"优惠金额"}),e(n,{className:"value",children:Ze(g+d)})]}),a(r,{className:"express placeOrder-blcItem",children:[e(r,{className:"label",children:"运费"}),e(n,{className:"value",children:Ze(m)})]}),a(r,{className:"all placeOrder-blcItem",children:[e(r,{className:"label",children:"总计"}),e(n,{className:"value",style:{color:"#000"},children:Ze(p)})]})]})})},wo=({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,orderStoreInfo:C,ocContractSettlList:f}=pe({refreshNum:i,goodsNum:n,skuId:r,shoppingGoodsId:c}),{savePayPrice:b,loading:y}=ge({ocContractSettlList:f,payState:N,list:g},r,n,C,c);return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",Ze(u)]}),e(p,{loading:y,children:e(d,{className:"btn",onClick:b,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},So=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:i,paddingTop:r,paddingBottom:c,color:d})=>{const m=n((()=>f()),[]),{View:p,Text:u,Radio:g,IconMobile:N,WrapLoading:C,SmoothRadio:b}=h(),{paymentImpl:y,channelList:w,contract:S,handleRadio:x,loading:k}=Ne({contractBillcode:l,contractBbillcode:o});return a(p,{className:"paymentModeWrap",style:{height:m?"inherit":"667px",paddingBottom:c+"px",paddingTop:r+"px"},children:[a(p,{className:"paymentMode",children:[a(p,{className:"topInfo",children:[a(u,{className:"title",children:[e(N,{value:"roundcheck"}),"订单提交成功"]}),a(p,{className:"info",children:["订单号:",S.current.contractBillcode," | 总金额:",Ze(S.current.dataBmoney),"元"]})]}),e(p,{className:"paymentGroup",children:e(b,{onChange:x,children:null==w?void 0:w.map((l=>a(p,{className:"paymentItem",children:[e(N,{value:l.icon}),a(p,{children:[a(p,{className:"base",children:[e(u,{children:l.fchannelName}),e(g,{value:l.fchannelCode,className:"choose"})]}),"account"===l.value?a(p,{className:"info",children:[e(p,{children:"账户余额:0元"}),e(p,{children:"本单抵扣:5.4元"})]}):null]})]},l.fchannelCode)))})})]}),e(p,{id:"v_html"}),e(C,{loading:k,children:e(p,{className:"btnGroup",onClick:y,children:e(p,{style:{borderRadius:t,backgroundColor:s,color:d,borderColor:i},className:"payment",children:"立即支付"})})})]})})),xo=({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)})]})]})},ko=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(xo,{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:vo}=g,Io=a=>{var{dataState:o}=a,s=Ue(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(Bo,Object.assign({dataState:o},s))})},Bo=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(vo,{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:Ao}=g,Vo=({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 Lo({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(Ao,{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(Da,Object.assign({},a,{dataState:i,children:1===i&&e(Vo,{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(Io,{init:r,contractId:n,contractBillcode:l,dataState:i,contractAppraise:c})]})}const To=()=>{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 Do=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(wa,{id:"orderListItemWrap",children:e(n,{onScroll:c,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(Lo,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(To,{}),e(i,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})})})),Po=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(Do,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Ro}=g,zo=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>f()),[]);return e(Ro,{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?"已复制":"复制"})})),Mo=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(Da,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(zo,{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(Io,{borderColor:c,btnColor:d,btnShape:m,color:i,contractBillcode:g.contractBillcode,contractId:g.contractId,dataState:g.dataState})})]})})]})})),Oo=({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]})]})]})},Fo=({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})})},jo=s((({code:l,defaultValue:o})=>{const{View:s}=h(),{info:t,detail:i,stateObj:n}=xe(l);return a(s,{className:"expressInfo",children:[e(Oo,{info:t,detail:i,stateObj:n,defaultValue:o}),e(Fo,{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}=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"}})]})]})})),Go=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:r,Image:c}=h(),[d,m]=t({});i((()=>{Qe(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)))})]})})),Eo=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)))})})),Ho=({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)))})]})},Yo=[{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"}]}],Uo=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:Yo.map(((a,l)=>e(Ho,{itemData:a},l)))})]})})),Qo=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(Pl,{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(wa,{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]})})]})})})),Zo=({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})]})]})]})},$o=({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(Zo,{footprintItem:a,edit:s},l)))]})},Xo=({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($o,{item:a,edit:o},l)))})},Jo=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(wa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(s,{onChange:d,children:e(Xo,{footprintList:n,edit:r})}),r?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),_o=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],es=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=h();return e(s,{className:"promotionListTab",children:_o.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),as=({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"})})]})},ls=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(_o[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(es,{activeColor:l,setParams:n,params:i}),e(d,{children:e(wa,{id:"listWrap",children:e(m,{onScroll:()=>c(),children:r.map(((a,l)=>e(as,{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 os=()=>{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"})})},ss=({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(os,{})})},ts=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(wa,{id:"couponTab",bottomHeight:"60",children:e(c,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(ss,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:p})})})})]})})),is=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)}))})})),ns=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)}))})})),rs=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(is,Object.assign({coupons:s},t)):null,2===o?e(ns,Object.assign({coupons:s},t)):null]})})),cs=({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})},ds=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})]})})),ms=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(wa,{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{Ja as AddressDetail,qa as AddressList,Za as AddressListBtn,va as AfterSalesApply,Oa as AfterSalesDetail,Ta as AfterSalesList,Ha as AfterSalesType,ls as AllPromotionList,ms as ArticleDetail,Na as BackTop,co as CartList,mo as CartOperate,Jl as CartTop,ca as ClassifyNav,pa as ClassifyNavOne,ma as ClassifyNavOneJsx,ga as ClassifyNavThree,ha as ClassifyNavTwo,qo as CollectionList,ts as CouponList,fa as Cube,Qo as EvaluateDetail,Uo as EvaluateList,jo as ExpressInfo,Jo as FootPrint,rs as GetCouponOne,bl as Goods,sl as GoodsClassify,cl as GoodsClassifyOne,hl as GoodsClassifyTwo,Fl as GoodsDetailAndEvaluate,Sl as GoodsDetailBanner,Dl as GoodsDetailCoupon,Ql as GoodsDetailHandleBar,ql as GoodsDetailHandleBarOne,kl as GoodsDetailInfo,Il as GoodsDetailInfoOne,Vl as GoodsDetailPromotion,Al as GoodsDetailSku,Xl as GoodsList,yl as GoodsSlider,wl as GoodsSlideshow,Ye as Line,Wo as MineData,Eo as MineFunction,Go as MineOrderEntry,_a as MyAgreementList,al as MySetting,el as MySettingJsx,cs as Notice,ds as NoticeDetail,Mo as OrderDetail,Po as OrderList,So as PaymentMode,go as PlaceOrderAddress,Co as PlaceOrderCoupon,fo as PlaceOrderDelivery,bo as PlaceOrderGood,yo as PlaceOrderInfo,wo as PlaceOrderOperate,ko as PlaceOrderResult,Ge as QjMobileIcon,Nl as Search,fl as SearchPage,Cl as SearchStyleTwo,We as Service,ia as Slider,He as TextLine,Ee as Title,Je as ToPrice,na as Video,qe as addressIdConst,Ze as fixPrice,$e as fixPrice1,Xe as formatTime,Ke as useService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.6.6",
3
+ "version": "1.6.7",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [