s-material-react 2.0.33 → 2.0.35

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import o,{memo as s,useState as t,useEffect as n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,Fragment as h}from"react";import{useComponent as p,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import f from"classnames";import{getTaro as C,navigatorHandler as b,getEnv as y,reLaunchHandler as S,taroMessage as x,getStorage as w,setStorage as v}from"@brushes/utils";import{queryOcsconfigList as k,getAddress as I,find as B,getContractNumbers as T}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as D,isEmpty as L,isEqual as V,noop as P,groupBy as R}from"lodash-es";import{useCube as M,useGoTop as O,useAfterSalesApply as z,useAfterSalesList as F,afterSalesTabConfig as G,useAfterSalesDetail as Y,useAfterSalesChooseType as W,useAddressItem as j,useAddressList as E,useEditAddress as H,useMySetting as U,usePickupPointItem as K,usePickupPointList as Q,useGoodsClassify as $,useGoods as q,useGoodDetail as Z,goodStore as X,useBanner as J,useGoodCollection as _,useGoodSpecAndPrice as ee,useGoodFootprint as ae,useCreatePoster as le,useCreateMiniPoster as oe,useGoodsShare as se,useGoodSkuStore as te,popupImplement as ne,usePromotion as ie,useAddCoupon as ce,useCoupon as re,useEvaluate as de,useAddShopping as me,useGoodSku as he,useGoodsList as pe,useCartTop as ue,useCartListNext as ge,getRadioValue as Ne,useCartOperate as fe,useOrderAddress as Ce,useOrderPickupAddress as be,userAddressData as ye,useOrderGood as Se,useOrderCoupon as xe,useOrderInfo as we,useOrderPay as ve,useOrderResult as ke,useOrderResultResult as Ie,useOrderOperate as Be,orderStatusImpl as Te,useOrderList as Ae,orderStatusList as De,useOrderDetail as Le,useExpressInfo as Ve,useEvaluateDetail as Pe,useEvaluateViewDetail as Re,useCollectionList as Me,useFootprint as Oe,useMemberSignin as ze,useSigninDetail as Fe,useMarketingPromotion as Ge,useCouponList as Ye,useAllCoupon as We,useNotice as je,useNoticeDetail as Ee,useArticleDetail as He}from"qj-b2c-store";import{fullPath as Ue,checkMobile as Ke,ProvinceComponent as Qe,CityComponent as $e,AreaComponent as qe,navigatorLink as Ze}from"@brushes/shared-utils";import Xe from"dayjs";import{DynamicForm as Je}from"@brushes/mobile-form";import{deleteEvaluateGoods as _e}from"b2c-api";const ea=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),aa=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},la=s((({value:l,shared:o,goPath:s,goPointsPath:t,textIndent:n,fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingTop:g,paddingLeft:N,paddingRight:f,paddingBottom:y})=>{const{View:S,IconMobile:x}=p(),w=()=>{console.log(107,window.location.href);const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(S,{className:"components-title",style:{paddingTop:g,paddingBottom:y},children:[e(S,{onClick:()=>{var e;e=l,s?b("goodList",{searchParam:e}):t&&b("PointsGoodsList",{searchParam:e})},style:{fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingLeft:N,paddingRight:f,textIndent:n},children:l}),o&&e(S,{onClick:e=>{e.stopPropagation(),w()},children:e(x,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),oa=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:i,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:h,fontSize:`${n}px`,color:c},children:o})]})},sa=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=p();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ta(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 na(e,a,l,o){return new(l||(l=Promise))((function(s,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(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(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ia=(e="b2c")=>{const[a,l]=t([]),o=i((()=>y()),[]);n((()=>{na(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>na(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield k();case"b2b":return yield A().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=D(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${D(o,"ocserviceConfRemark")}: ${D(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${D(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;C().showActionSheet({itemList:a})}}},ca={label:""},ra=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",da=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ma=(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}`},ha=e=>1===String(e).indexOf(".")?pa(e):ua(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)},ua=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"},ga=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Na=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ga+e:e?ga+"/paas/shop/"+e:e),[e]),fa=({src:a,style:l,actived:o})=>{const s=c(null);return n((()=>{s.current&&(o?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},Ca=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=Na(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(fa,{actived:o,style:{height:"100%",overflow:"hidden"},src:d}):e(c,{mode:"scaleToFill",src:d,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:b.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),ba=s((({Position:o="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:b,imgHeight:y,fontsize:S=16,textAlign:x="center",fontColor:w="#000000",backGroundColor:v="#ffffff"})=>{const k=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),T=M(n,b||[]),A=a=>e(B,{className:t,style:{fontSize:S,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:w,backgroundColor:v},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C},children:e(I,{imgHeight:y,data:T,className:k,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?A(s):null,e(Ca,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),ya=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:C=0,fontsize:b=16,textAlign:y="center",fontColor:S="#000000",backGroundColor:x="#ffffff",otherStyles:w=[],ImgShadow:v=!1,Position:k="top"})=>{const{View:I}=p(),B=i((()=>f("silder-title",{"silder-tops1":"top"===k&&"horizontal"===d,"silder-bottoms":"bottom"===k&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===k,"silder-tops":"vertical"===d&&"top"===k},...w)),[w,k]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(ba,{Position:k,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:S,backGroundColor:x,className:f({"outer-shadow":v}),className1:B})})})),Sa=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:n},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:i,paddingRight:c}})})})),xa=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=Na(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},wa=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=M(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>{var e,a;return b(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(xa,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),va=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=Na(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},ka=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=M(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,l;return b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(va,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},l)))})},Ia=s(ka),Ba=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),C=M(a,l),y=i((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:C.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return b(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===h?"74px":"60px"},children:e(N,{className:y,style:{fontSize:c,color:r},children:a.title})},l)))})})),Ta=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=p(),m=Na(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return b(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Aa=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),C=M(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:C.map(((a,l)=>e(Ta,{layout:u,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Da=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=i((()=>y()),[]),{View:n}=p(),{goTop:c}=O();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(aa,{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"})})})),La=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=Na(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,l,o;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?S("/extra/index"):b(null===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(o)})},Va=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=M(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(La,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Pa=o.createContext(null),Ra=s((()=>{const{View:a}=p(),{tip:l}=r(Pa);return e(a,{className:"afterSalesApplyTip",children:l})}));const Ma=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=ta(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>y()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!y()||!e)return;const a=C().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!y())return 0;const a=C(),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}=p(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,C().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${C().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:o}))},Oa=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Pa);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(Ma,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),za=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(Pa);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(aa,{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:ra(n)})})]}),e(Oa,{popupShow:s})]})})),Fa=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Pa);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:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(aa,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(aa,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Ga=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:v,limit:k,goodsInfo:I,handleFillInReason:B,handleSubmit:T,loading:A}=z({contractBillcode:o,skuCode:s});return e(h,{loading:A,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Pa.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:v,limit:k,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:B,handleSubmit:T},children:[e(Ra,{}),e(za,{}),e(Fa,{}),e(m,{className:"submitBtn",onClick:T.bind(null,t,o,l,n),children:"确定"})]})})})},Ya={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Wa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},ja=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(aa,{style:{color:null===(s=Ya[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ya[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ya[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Ue(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Wa[l.refundType][l.dataState]}),e(aa,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ea=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ha=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=F(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(Ma,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(ja,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(Ea,{})})})})})})),Ua=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:G,render:l=>e(Ha,{item:l,refreshNum:a})})})})),Ka=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ra(n),C=i((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:Ue(o),alt:"",className:"card-item-img"}),a(u,{className:"card-item-info",children:[a(u,{className:"card-item-info-container",children:[e(N,{className:"card-item-info-container-title",children:s}),e(N,{className:"card-item-info-container-price",children:f})]}),a(u,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:C})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Qa=(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]}},$a=o.createContext(null),qa=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r($a),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(Ma,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Za=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r($a),{View:i,Input:c}=p();return a(l,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:o,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(qa,{})]})})),Xa=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:C}=Y({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:S,refundMoney:x,refundMeo:w,refundEx:v,refundType:k,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:T,goodsReceiptArrdess:A,packageCode:D,packageBillno:L,packageName:V}=c,{View:P,Image:R,WrapLoading:M}=p();return e(M,{loading:C,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a($a.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Qa(k,b)}),e(P,{className:"right_time",children:Xe(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==S?void 0:S.map(((a,l)=>e(Ka,{dataPic:Ue(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:v})]}),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:w})]}),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:Ue(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:Xe(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"===k?a(l,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[B,"  ",T]}),e(P,{className:"address",children:A})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e(Za,{})]}):"",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:L})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:V})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ja=o.createContext(null),_a=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Ja),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ra(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ue(N),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(aa,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),el=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Ja);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(aa,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),al=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:C}=W({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=p();return e(y,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ja.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(_a,{}),e(el,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},ll=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},ol=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=j(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(ll,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>b("addressEditor",{addressId:l.addressId}),children:"编辑"}),e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},sl=s((()=>{const{View:a,Skeleton:o}=p(),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)))})})})})),tl=s((({url:l,title:o,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>b(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),nl=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=E(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(sl,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(ol,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(tl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),il=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>b("addressEditor"),children:"+ 新增地址"})})})),cl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],rl=[{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:Ke}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Qe}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:$e}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:qe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],dl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({addressDefault:!1}),{Button:u}=g,{onSubmit:N}=H(r);if(n((()=>{na(void 0,void 0,void 0,(function*(){if(r){let e=yield I({addressId:r});e.addressDefault="1"===e.addressDefault,h(e)}}))}),[]),!r||!L(m))return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(Je,{initialValues:m,footer:e(u,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:cl,onSubmit:N,fields:rl})})})),ml=s((()=>{const{View:l}=p(),o=e=>{b(`/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)))})})})),hl=()=>{const{View:l}=p(),{mySettingGoBind:o,mySettingLogout:s}=U();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(aa,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},pl=s(hl),ul=({itemData:l})=>{const{View:o,Text:s}=p(),{handlerImpl:t}=K(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},gl=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=p(),{list:c,loading:r,skullShow:d,onScroll:m}=Q(l);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:o+"px"},children:d?e(sl,{}):e(t,{className:"addressList",children:e(Ma,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,l)=>e(ul,{itemData:a},a&&a.userinfoOcode||l))),r&&e(i,{})]}):e(tl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),Nl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>na(void 0,void 0,void 0,(function*(){yield x("导入成功","none")})),children:"导入微信收件地址"})})})),fl=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{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(n,{onClick:()=>b("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:Cl}=g,bl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=$();return e(i,{children:e(Ma,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(Cl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(Cl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(fl,{navList:m,activeKey:r,cell:l})})]})})})})})),yl=d(null),Sl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(yl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&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"})})]}),h?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(Ma,{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]})})),xl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:n}=r(yl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:l.map(((l,n)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>b("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})]},n)))})})),wl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(yl),m=i((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=i((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=i((()=>{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:f}=p();return e(g,{children:e(Ma,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},l)))}),e(xl,{thirdList:u})]})})})})})),vl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=$(),[g,N]=t("0"),[f,C]=t("0");return e(yl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(Sl,{}),e(wl,{})]})})})),kl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:n,Image:i}=p();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(n,{className:"level3ArrItem",onClick:()=>b("goodList",{classtreeCode:l.classtreeCode}),children:[e(i,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:l.goodsClassName})]},o)))})})),Il=s((({navList:l,activeKey:o,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:D(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=D(l[r],"childList"))||void 0===c?void 0:c.map(((l,o)=>a(h,{children:["0"===l.goodsClassHide?e(h,{className:"level2Title",children:l.goodsClassName}):"",e(kl,{childList:l.childList,layout:s,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Bl}=g,Tl=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=$();return e(c,{className:"goodsClassifyTwo",children:e(Ma,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Bl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Bl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Il,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Zud7L0i/s88Nmi2lW965/f7aT6td0xi3r4xMC+wFmBs5cXx8WA0zdYqB8D1wA+16Dv3l0OCYBHAw/pPeL/daDu/g3lCeZ5+5sKfZ8ZuAJwZeBawHEq9GkXvwWuU9TLlbqs080QAFCp8xzgDhWGrCHn0KKNc3tteb6eALheeZ1ob+grq78CNyvjryCKOl30ndS6Ubj4nvc3XMe45t+13j0TeEax4PXsLt1cY5PKqesDzqkreVTdtgC4ax9V27UGwPOAO/YYsV+8KlcX//c9+qnV1DuDR1kfQP8DuC7w1lqD6tNPSwD4BHpoj8EpIC+N3+vRR6umHgnPBjRJd6E/A1cBPtKlcc02rQBwlyKgLmP9RdkmJ/GFbDEBXxTaAR4IHK3DRH8NXAb4Soe21Zq0AIDPqQ8DGnay5G3ed/OPsg1H5PfV8ArgVB3G8A1Ac/dox1ttAPi29i1+ug7CeFK5aHlRmhu5+L5OLtFh4C8f0w5SEwD29UZg/6QQ9Lw5CHhKst3U2LVnvLYofbJjux1wSLZRDf6aALhX0fJlxvV34NblqZhpN1VeNZwupB5MGfJSeMHidZRp15u3FgBOC3y1eOBGB+WX75v4JdEGM+FTphq6suZt7z++LpTLYFQLAK8vWrPMwO8LPC3TYEa8XoDfAlw1OWYvwK9KtunFXgMAVwP0iMmQ5/39Mw1myHv88s5XixilnxTjlEasQagvADzzfMeeJTFalR8+ndSIbXdSc2icgWCI0lOLo0yUvxdfXwB42fG8i5LKDy87U9TuReeQ5btRiSuItvtTCXIZJCilDwDUfhk4YShWlNSBvynKvI34jCXIXAqfUFzim4ugDwC0jL0uMcI3d9ARJLqfNKsKMsPO/DtC3gH0jtYK2pT6AMCzTTVmhNzWDPD4boR5m/LcufhFRKenIU2/wqbUFQAXAD6TGNkji/dvosm2Y9WP4NPA+YIz82Mx2rmpXqArAHy/3zs4kcG2s+B4xmS7QVEXR8dwudbu5V0A4NPvB0A0OtegD71pFtphNv5CIt5RtbJ2gmbUBQB6uEZt9UbIeJn5WbMZzK/jWyXU3+6efmjaCppQFwC8MIFKw6mN8l3ofxI4NqDGz6wlETInwtsijF14ugDAAEgvJxFqOvjIACbK49auISxC3re0mzShLAAMnIhq8dRkaSXU5LvQUSWg1U+39ggZUOKrqwllAXAb4EXBkXhU1IgFCP7crNi8DBouFsl4YuzDKYBftphhFgDq/aPODiZ6MLfOQruXgN5DPgsjZICKUVDVKQsAlT+R7UjlxamnHBRZXZL5DjOaQb2PdbOvThkAyOuzxLx760jvoK4+8+v63i7/blCqcoqQTiI6i1SnDAC80KkAipBbv0fAQnuWgPcAI598Fq4jVcgXXsfU5d8zALhSyZkX+Z1F9x+REnwROHeA1SSWBqtWtwtkAHB74AWBwcpiFKxBoQttLQHN6ZrVI6RGsLpGNQMA8/k8OTJS4OLAJ4K8m8z2xBITEZGBafNMelGVMgBwW39Y8Ne94OgAsdDWEjARptHPEdL3ImOCj/SZSnqQMQF7YZxTfF9IWA2YjH429D1Cag8/GGHM8GR2gIwR6ITlyZgZyybyZiyDJtI01qAqZQCQ0QIaJ9fMhFlVAuN25lM5ellWa2gATlXKAMCECMb9R8g8gBZjWGhrCWReVuZUzAbgrJV/BgC6Kj9gbY87GCzesMkOoEExcR/AQJAINXEPywDAFG/mx4mQ4VAqORbaWgLq+M0tHKHRXwH3KNm8I4M1z957IowbzmP6PI1CETLMzIwiVSmzA2QuLD5vvDMstLUE/EiuGBCSPgFerM01WJUyAHALMhgkQubzu2eEccN5zHYayZksX5e0O2vFmwGAZmDNwZE27+oQG792sNuMISNPk26ZZLs6RRZz5x+NIta8vT4F55jwqbqQ99ChW3/0nvTihBNpavxZAETPLAeh/Vo79kK7l8BjEwEzd03GFYZlngWAUT4mRoyQGUDmnvkrMs+uPB8rVtNIe93wmqSbzwLA553ne4QsuGg61IX+XwInKbb9SN0EvYYMImmSUSULAJ8iZvmwiuc68vz35moUzEJHlcCdgOcGhWIZ28hTMdjdUdmyALC1JsnojXQ7ZwLrJPDSyHqDlwx2oLrYamRNqAsAMiphy7icv8nI59upVUnU6EVlL3+zUrXRQews7uwEzAhmJe6FdkhAJZlFJiPU/APqAgAHbqq3S0VmUN66Xh4X2hHi9Z1ELSJd8KIGuE7y7QoAq4BYDSRKnnc+ezadMiZ1b/3mVmjqWtcVAJZdsxxaJKjBRbe4snEFm0zZfMpmXj+gtcC6AsBxZXwE5TdRhAkjNpUyMQDKSB2KupSm1AcAXgaPACLKDCfhjqG7+GjVMZpKcuvOMwo0ezKPkK+n6pFAuw6zDwDsy2oXRgFFyciiPlXEor8zJT49pLWJ+MFEya3fI6A59QWAaWJNF5spmnTzUmOn+eQm8gPWE8pE9lpyR9+L5l+/8ukLAPvIuIvLr0+BlsLq7k0TWfCdh5HJAbBqZ8naaBa23lOuAQDftt4FolmvHLQp5i2Zpl1hu5IKMN24I3aTlQzMBmZircGoBgAcrPbqZyVH/UlgvxIjn2w6efbzlAyfmY/CQBpDxZupfXcntVoAMA/uxzskMXCrM//N3ya/pPEBetnThStbR9BAURVFg1ItADhoUW9IeLbkum9db70mQZg7+XRz24+m0V3N149HC+vgKfVqAsDJmBbu+R1WUW9jU9AOUiWjw/giTYzetRiGz74M/bYk3tJGMDjVBoATyD57VpP27LMq9xz9CI2ZNHw+c+Fbzds5ZwpvVAVJCwBYIOlwwIwWWTLwwUwk2Qtl9ndq8Zu3R5V413LyHnvWWh6tgHQLAChccwnr9ZI9C1cLY3kZbebfr7VSDfpRvatbV0bDt7thmPfH19AoIGgFACfqpVD3MS2HXcgyM+Yk0hO5ekhUlwGVNt7uze2TKQK17ue8++j3p1Z1UGoJACfixeidHc/GlSDUGAoC7Q6D35J3Wo2Tw3/DudV5RJJlZhdylJ2gNQAUgrd78+LqUdyHzFJuiXmBMFhlzbLFGxlt5Y6+c1g3/8FBMAQAnLQXHZU+hov1JauQGKFkLT6fXS12BTV45uRxm3drHkpOymbQ42DIianm9DiIRMNGQeIb2qrb+s77x9y7XQDhy0WQqr/3QqaxKurnEB1rhm+wnWBIACgAC06Y6OgiGWkkeF189Qkap/xbY5NPLf8YYeNCq6jxDPdMN+mCz9WaoNx1uDrAZGoHr9oPAoKhAeDk/LIsiHjQwFtrAkdVWL2n6PyiYsvqIF1A1vw4GAMAK+nuDxj23PWZWGWVGnWiIsyMKtZXkqyuPkkQjAkABWPs4MGARaW3A6m7MKWuauFdgzk9arynWEgjS82Og7EBsBKEFy9zCuk0OlfylaP2cqv0eJPbCaYCABddM7J2AEvSzulYMIGzETzR2n5ePD0OJrETTAkAqy/fG/qBJSll1qliyN3jy2W791WTdeCczE4wRQCsFnGfon0znaql56dAnuuHlbA4o52yC7/zHCaxE0wZADsLSzdptXLerH2/D026ah9aXi0GuNSi0UEwFwCsBL43cOmirfPieNFGGjuVN7ppebHzi49WS+0CjFFBMDcA7Cpg7wsCwtzECtJXhH/2Da6EW7qp79Qa+mbXNc0oZm3zQ6a4Gw0EcwfAntZZ1auGJwGy+uP/UzunWlgX7CNL/qIutoMgvlJso4BguwIgJfkJMQ/+OlgAMKHVL0PpsxOYkU1DWzipxAKA6QHAEfXZCVLhZQsApgmAviDQKTcUZ7AAYLoA6AMCjWt6S62lBQBrRTQ6Q5fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Dl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Ll=s((({value:l,urlPath:o="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:C,Image:y}=p(),S=i((()=>f("txt",...g)),[g]);return e(C,{onClick:()=>b(o),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(C,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(y,{src:Al,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,{className:S,style:{color:t,display:"inline-block",fontSize:h},children:l})]})})})),Vl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"],urlPath:g="search"})=>{const{View:N,Image:C}=p(),y=i((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>b(g),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(N,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(N,{style:{width:"80%"},children:[e(C,{src:Al,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})]}),e(N,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Pl=s((({placeholder:l,placeholderText:o,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>y()),[]),{View:f,Text:S,Input:x}=p(),[k,I]=t((()=>w("history")||[])),[B,T]=t(""),A=e=>{b(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:Al,alt:""}),e(x,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:B,onInput:e=>T(e.detail.value),onConfirm:e=>na(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const l=a.concat(g.current.value||e.detail.value);return v("history",l),l}return a})),A(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(S,{className:"btn",onClick:()=>{const e=B.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return v("history",l),l}return a})),A(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(aa,{onClick:()=>na(void 0,void 0,void 0,(function*(){(yield C()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:k.map(((a,l)=>e(f,{onClick:()=>A(a),className:"historyItem",children:a},l)))})]}):null]})})),Rl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:C,paddingLeft:y,paddingRight:S,goodsName:x=!0,goodsPrice:w=!0,goodsCar:v=!0,goodsBorder:k=!0,goodsShadow:I=!1,marginGap:T=10})=>{const[A,P]=t(l),R=c(),{View:M,Text:O}=p();return n((()=>{V(R.current,u)||(R.current=u,L(u)?P(l):na(void 0,void 0,void 0,(function*(){try{const e=yield B({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=D(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:C},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:S},children:A.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:k?"1px solid #000000":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${Ue(l.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:x?"block":"none"},children:l.goodsName}),e(M,{className:"subTitle",children:l.brandName}),d&&a(M,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(M,{className:"price",children:[a(M,{style:{fontSize:18},children:[w?ra(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ra(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:v?"block":"none"},children:e(aa,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Ml=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:C,marginRight:y})=>{const{View:S}=p(),{list:x}=q({defaultValue:l,goods:o},i);return e(S,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:C,marginRight:y},children:x.map(((l,o)=>a(S,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(S,{className:"img",style:{backgroundImage:`url(${Ue(l.dataPic)})`}}),a(S,{className:"board",children:[e(S,{className:"title",children:l.goodsName}),a(S,{className:"info",children:[a(S,{className:"lPart",children:[s?e(S,{className:"price",children:ra(l.pricesetNprice)}):null,t?e(S,{className:"marketPrice",children:ra(l.pricesetMakeprice)}):null]}),n?e(S,{className:"rPart",children:e(aa,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Ol=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:C,btnRadius:S})=>{const x=i((()=>y()),[]),{list:w}=q({defaultValue:l,goods:o},m),{SmoothSwiper:v,View:k,Image:I}=p(),[B,T]=t(0);return a(k,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(v,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:w,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{T(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(k,{className:["goodsSlideshowItem",""+(l.goodsCode===w[B].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:Ue(l.dataPic),mode:"widthFix"}),c?e(k,{className:"goodsName",children:l.goodsShowname}):null,r?a(k,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(k,{className:"price",children:ra(l.pricesetNprice)}):null,n?e(k,{className:"marketPrice",children:ra(l.pricesetMakeprice)}):null,e(k,{className:"btn",style:{backgroundColor:f,color:C,borderRadius:S},children:N})]})})]})})),zl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:n=""}=Z(o,s),i=X.getState();X.setState(Object.assign(Object.assign({},i),{memberCode:n})),console.log(24,n);const c=J(t);return e(ba,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Fl=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:n}=_(l);return a(s,{onClick:t,children:[L(n.dataObj)?e(aa,{value:"star-fill",style:{fontSize:20}}):e(aa,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:L(n.dataObj)?"收藏":"已收藏"})]})},Gl=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:o,goodsName:s})=>{if(!y())return;return"WEB"===C().getEnv()?e(Yl,{goodsName:s,shareShow:a,setShareShow:l,rsGoodsFileDomainList:o}):e(Wl,{goodsName:s,shareShow:a,setShareShow:l,rsGoodsFileDomainList:o})},Yl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r}=le(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",onClick:e=>{e.stopPropagation()},children:[e(n,{className:"share-canvas",style:{height:580},children:e("canvas",{ref:r,width:300,height:580,style:{width:"300px",height:"580px"}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Wl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Canvas:i,Image:c,Button:r}=p(),{save:d}=oe(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",onClick:e=>{e.stopPropagation()},children:[e(n,{className:"share-canvas",children:e(i,{"canvas-id":"canvas",style:{width:"300px",height:"570px",position:"fixed",zIndex:999}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(r,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:d,children:e(r,{className:"txt",children:"保存图片"})})]})]}):null})},jl=({skuCode:l,priceShow:o,collectionShow:s,scene:n})=>{const[i,c]=t(!1),{View:r,SmoothView:d,Canvas:m,Image:h,Button:u,IconMobile:g}=p(),{rsSkuDomainList:N,rsGoodsFileDomainList:f}=Z(l,n),{goodInfo:b}=ee(N);ae(l);return a(r,{className:"goodsDetail-topInfo",children:[i&&e(Gl,{goodsName:b.goodsName,shareShow:i,setShareShow:c,rsGoodsFileDomainList:f}),a(r,{className:"lPart",children:[e(d,{className:"name",children:b.goodsName}),a(r,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(r,{style:{display:"flex",flexDirection:"column"},children:[a(d,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ra(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ra(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ra(.9*b.pricesetNprice)]})]}),e(u,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>c(!0),children:"生成海报"}),e(r,{onClick:e=>{e.stopPropagation(),(()=>{const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(g,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(r,{className:"rPart",style:{display:s?"flex":"none"},children:e(Fl,{goodsName:b.goodsName,pricesetNprice:b.pricesetNprice,dataPic:Ue(b.dataPic),skuCode:l})})]})},El=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=_(l),{handleShare:c}=se();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:L(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Hl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=Z(t,n),{goodInfo:d}=ee(r);return te((e=>e.spec)),ae(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ra(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(El,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:t})]})})),Ul=s((()=>{const{Text:e}=p(),l=te((e=>e.count)),o=te((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Kl=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=ne(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Ul,{}),e("img",{src:Dl,alt:"",className:"icon"})]})]})})},Ql=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=Z(l,o),{goodInfo:i}=ee(n),c=ie(n,i.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.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},$l=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ce(),N=i((()=>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(h,{className:"title",children:n}),a(h,{className:"date",children:[Xe(l).format("YYYY-MM-DD")," - ",Xe(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:"已领完"})]})})})),ql=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Zl=o=>{var{skuCode:s,scene:t}=o;ta(o,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=Z(s,t),{goodInfo:h}=ee(d),{coupon:u,visible:g,setVisible:N}=re(d,h.skuCode);return a(l,{children:[a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:Dl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(Ma,{children:u.length>0?u.map(((e,a)=>m($l,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(ql,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Xl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:i}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(s){const e=[...c];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<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(i,{children:c.map(((a,l)=>e(aa,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Jl=({item:l})=>{const{View:o,Image:s,Text:t,Button:n}=p(),i=y(),c=C();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Xl,{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()}`})]}),a(o,{className:"pj-wrapper",children:[a(o,{className:"flex-1",children:[e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]}),e(t,{className:"del-txt",onClick:()=>{(e=>{na(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield _e({evaluateGoodsId:a,isLocalMock:!i}),yield x("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(l)},children:"删除"})]}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},_l=({evaluateArr:l})=>{const{View:o}=p();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(Jl,{item:a},l)))]}):e(tl,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},eo=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>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||""}})})},ao=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(l,{children:d.map(((l,t)=>e(h,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},lo=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=Z(n,i),u=de(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(ao,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(eo,{goodsRemark:m}):e(_l,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},oo=({skuName:l,handleChooseSize:o,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=p(),r=te((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(i,{className:f({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)))})]})},so=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=te((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),to=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n})=>{const{Image:i,View:c}=p(),{skuList:r}=o,d=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ra(n.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(i,{src:Ue(n.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:n.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",n.goodsSupplynum||"100"]})]})]}),r.map(((a,l)=>e(oo,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},no=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=te((e=>e.isNeedButton)),r=te((e=>e.offShelf));return r?e(i,{className:f({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(l,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:o,children:"立即购买"})]})})},io=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=ee(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=me(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(Ma,{children:e(i,{children:a(n,{className:"content",children:[e(to,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(so,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(no,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),co=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(io,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},ro=s((({serverShow:o,cartShow:s,lPartShow:t,lPartColor:n,lPartBgColor:i,lPartStyle:c,rPartColor:r,rPartBgColor:d,rPartStyle:m,rPartText:h,dispatchPageStore:u,skuCode:g,platform:N,scene:f})=>{const{View:C,IconMobile:y,Text:S}=p(),x=te((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:v}=Z(g,f),{goodInfo:k}=ee(w),{servicePopup:I}=ia(N),{addCardPopup:B,buyOpenPopup:T}=ne(u);return a(C,{className:"goodsDetailHandleBar",children:[a(C,{className:"linkGroup server",onClick:I,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:s?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"购物车"})]}),e(C,{className:"goods-detail-btn-group",children:x?e(C,{className:"btn addCart offShelf",children:e(S,{className:"btn",children:"已下架"})}):a(l,{children:["26"===v||!1===t?null:e(C,{className:"btn addCart",onClick:B,style:{color:n,backgroundColor:i,borderTopLeftRadius:c,borderBottomLeftRadius:c},children:"加入购物车"}),e(C,{onClick:T,className:"btn buy",style:Object.assign({color:r,backgroundColor:d,borderTopRightRadius:m,borderBottomRightRadius:m},!1===t?{borderTopLeftRadius:m,borderBottomLeftRadius:m}:{}),children:h||("10"===k.goodsPro?"预售抢购":"立即购买")})]})})]})})),mo=o=>{var{$_dataSource:s={},dispatchPageStore:t=P,skuCode:n,scene:i}=o,c=ta(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=Z(n,i),h=he(r,m),{popupVisible:p}=s;return a(l,{children:[e(ro,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(co,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},ho=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:C}=p(),{rsSkuDomainList:y}=Z(u,g),{goodInfo:S}=ee(y),{servicePopup:x}=ia(N),{addCardPopup:w,buyOpenPopup:v}=ne(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:l?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:o?"block":"none"},children:[e(C,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"购物车"})]}),a(f,{className:"goods-detail-one-btn-group",children:[e(f,{className:"btn addCart",onClick:w,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0"},children:"加入购物车"}),e(f,{onClick:v,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===S.goodsPro?"预售抢购":"立即购买"})]})]})})),po=o=>{var{popupVisible:s=!1,dispatchPageStore:t=P,skuCode:n,scene:i}=o,c=ta(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=Z(n,i),h=he(r,m);return a(l,{children:[e(ho,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(co,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},uo=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],go=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(uo);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===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,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(aa,{style:{color:n===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(aa,{style:{color:n===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},No=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:n=!0,goodsPrice:c=!0,lineationGoods:r=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:h=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:C={}})=>{console.log(111,C);const{View:b,Loading:y,SmoothView:S,Image:x,ScrollView:w,IconMobile:v}=p(),[k,I]=t({}),{loading:B,getData:T,list:A}=pe(l,o,k),D=i((()=>f("textBox",{btm:!c&&!r})),[c,r]),L=i((()=>f("name",{boxNone:!n})),[n]),V=i((()=>f("middle_margin",{boxNone:!d})),[d]),P=i((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=i((()=>f({detailContent:!(L.includes("boxNone")&&V.includes("boxNone")&&P.includes("boxNone"))})),[L,V,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(go,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Ma,{id:"listWrap",children:a(w,{onScroll:()=>T(k),children:[e(b,{className:"list",style:{gap:g},children:A.map((l=>a(b,{onClick:()=>Ze(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:Ue(l.dataPic),className:"img"}),a(b,{className:R,children:[e(S,{className:L,children:l.goodsName}),a(b,{className:V,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:D,children:[e(S,{className:"price",style:{display:c?"block":"none"},children:ra(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:ra(l.pricesetMakeprice)})]}),e(b,{style:{display:m?"block":"none"},children:e(v,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),fo=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=ue(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Co=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),bo=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ma,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Co,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},yo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();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 ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ra(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),So=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{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(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>b("goodDetail",{skuCode:s})})]})})),xo=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),wo=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((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:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(bo,{promotionCode:c,onChange:e=>{m(!1),s(n,Ne(e))},promotion:o||[],visible:d,setVisible:m})})]})},vo=s((l=>{var{item:o}=l,s=ta(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(xo,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(So,{dataState:o.dataState,dataPic:Ue(o.dataPic),skuCode:o.skuCode}),e(yo,Object.assign({},o,s))]})})),ko=o=>{var{shoppingGoodsList:s=[]}=o,t=ta(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(vo,Object.assign({},t,{item:l})),l.pmPromotionList?e(wo,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},Io=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>L(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Ze(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}),n]})},Bo=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:o}),l&&e(Io,{link:t,disNextMsg:l})]})},To=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:C,handleStep:b,updatePm:y}=ge(o,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:C,children:f.length?e(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Bo,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(ko,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(tl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Ao=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=l,{toOrderImpl:C,deleteCart:b,clearAll:y,selectAll:S,ids:x,cartDetail:w}=fe(N,u,o);console.log("_dataSource:",l);const v=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:S,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[x.length?e(r,{onClick:y,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ra(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ra(w.amount)})]})]}),a(r,{onClick:C,className:"btn",style:v,children:["结算(",w.num,")"]})]})]})},Do=({address:a})=>e(l,{children:L(a)?e(Vo,{}):e(Lo,{address:a})}),Lo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,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: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(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Vo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Po=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",longContractgoodsBeanStr:t=""})=>{const{View:n}=p(),i=Ce(a,o,l,s,t);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>b("addressList"),children:e(Do,{address:i})})},Ro=({address:a})=>e(l,{children:L(a)?e(Oo,{}):e(Mo,{address:a})}),Mo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[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:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Oo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},zo=({refreshNum:a})=>{const{View:l}=p(),o=be(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>b("pickupPointList"),children:e(Ro,{address:o})})},Fo=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,n)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Go=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:i="",longContractgoodsBeanStr:c=""})=>{const{View:r,Text:d}=p(),[m,h]=t("0");return n((()=>{ye.contractPumode=m}),[m]),a(r,{className:"placeOrderAddressTabs",children:[a(r,{className:"delivery-header",children:[e(d,{className:"delivery-label",children:"配送方式:"}),e(r,{className:"tabs",children:e(Fo,{tabActive:m,setTabActive:h})})]}),e(r,{className:"content",children:"0"===m?e(Po,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,longContractgoodsBeanStr:c}):e(zo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Yo=s((({couponStart:l,pbName:o,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();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(d,{className:"title",children:i}),a(d,{className:"date",children:[Xe(l).format("YYYY-MM-DD")," - ",Xe(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Wo=s((({couponStart:l,pbName:o,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();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:n}),a(r,{className:"date",children:[Xe(l).format("YYYY-MM-DD")," - ",Xe(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),jo=({refreshNum:o,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:u,Popup:g,Form:N,SmoothRadio:f,Button:C,SmoothCheckbox:b,ScrollView:y,Radio:S,Image:x}=p(),{shoppingGoodsList:w}=Se({refreshNum:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:v,visible:k,couponValue:I=[],setVisible:B,selectCoupon:T,onChange:A,onCreditChange:D,confirmImpl:L,resetImpl:V,contractPmode:P,onPayChange:R,payList:M,payName:O,creditList:z,creditInfo:F,selectCredit:G,creditVisible:Y,payVisible:W,setPayVisible:j,handleChooseImg:E,contractEcurl:H,setCreditVisible:U}=xe(w,s);return a(l,{children:[w.some((e=>"06"===e.goodsType))?null:a(l,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==v.length),children:[e(u,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(u,{className:"label",children:T?`已选择: ${T}`:0===v.length?"暂无可用优惠券":"请选择优惠券"}),0===v.length?null:e("img",{src:Dl,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>j(!0),children:[e(u,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(u,{className:"label",children:O?`已选择: ${O}`:"请选择支付方式"}),0===v.length?null:e("img",{src:Dl,alt:"",className:"icon"})]})]})]}),F.urechargeId&&"0"===P&&a(h,{className:"coupon-select",onClick:()=>U(0!==z.length),children:[e(u,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(u,{className:"label",children:G?0===+G?"不使用":`已选择: ${G}%`:"请选择授信"}),0===v.length?null:e("img",{src:Dl,alt:"",className:"icon"})]})]}),"1"===P&&a(h,{className:"coupon-select",children:[e(u,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:E,children:H?e(x,{src:H,className:"img",alt:H,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(g,{popupVisible:W,popupHandler:j,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ma,{children:e(y,{children:e(f,{value:P||"",onChange:R,children:(null==M?void 0:M.length)>0&&M.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{checked:l.ptfpmodeType===P,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(g,{popupVisible:Y,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ma,{children:e(y,{children:e(f,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(g,{popupVisible:k,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ma,{children:e(y,{children:s?e(b,{value:(null==I?void 0:I.length)>0?I.map((e=>e.couponNo)):[],onChange:A,children:(null==v?void 0:v.length)>0&&v.map((e=>m(Yo,Object.assign({isDisabled:2===I.length},e,{key:e.couponNo}))))},"visible"):e(f,{value:(null==I?void 0:I.length)>0?I[0].couponNo:"",onChange:A,children:v.map(((e,a)=>m(Wo,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(C,{className:"operate reset",onClick:V,children:"重置"}),e(C,{className:"operate",onClick:L,children:"确认"})]})]})})]})},Eo=({shippingMethod:l=1})=>{const{View:o}=p();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:"快递"})]})})},Ho=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=Se({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Ka,Object.assign({},a),o)))})))})},Uo=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=Se({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:C,disCount:b,creditMoney:y,freight:S,payPrice:x,rebMoney:w}=f,v=f.pointsDeduction||0,k=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:B,changeContent:T,shoppingType:A,pricesetRefrice:D}=we(C),L=ra(Math.max(x-y,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===A?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ra(I)})]}),null!==v&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===A?v+"积分":ra(v)]})]}),"06"===A?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ra(k)]})]}),"06"===A?null:a(l,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ra(-y)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ra(-w.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ra(-(B+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ra(S)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:T})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":L})]})]})})},Ko=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:C,payState:b,creditMoney:y,ocContractSettlList:S,pointsDeduction:x}=Se({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:w,loading:v}=ve({ocContractSettlList:S,payState:b,list:C,goodsBeanStr:r},d,Math.max(f-y,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const k=ra(Math.max(f-y,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",r?"0.00":k]}),e(N,{loading:v,children:e(u,{className:"btn",onClick:w,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},Qo=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:C,SmoothRadio:b}=p(),{paymentImpl:S,channelList:x,contract:w,handleRadio:v,loading:k}=ke({contractBillcode:l,contractBbillcode:o});return n((()=>{console.log("打印下当前的channelList",x)}),[]),a(u,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(f,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",w.current.contractBillcode," | 总金额:",ra(w.current.contMoney+(w.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ra(w.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(b,{onChange:v,children:null==x?void 0:x.map((l=>a(u,{className:"paymentItem",children:[e(f,{value:l.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:l.fchannelName}),e(N,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",l.faccountAmount,"元"]}),a(u,{children:["支付金额:",ra(w.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(C,{loading:k,children:e(u,{className:"btnGroup",onClick:S,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),$o=({dataObj:l})=>{const{View:o,Text:s}=p();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:ra(l.dataBmoney)})]})]})},qo=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:n,leftBorderRadius:i,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:y,WrapLoading:S}=p(),{result:x,loading:v}=Ie(l||(w("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:v,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(y,{value:x.icon,style:{fontSize:"35px",color:x.color}}),a(f,{className:"tips",children:[e(C,{className:"title",children:x.msg}),e(C,{className:"tip",children:x.info})]}),"success"===x.sysRecode&&e($o,{dataObj:x.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>b(x.menuCode,{contractBillcode:x.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${n}`,borderRadius:1===i?"20px":"0px"},children:x.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>b(r.value),className:"btn white",children:c})]})]})})})})),{Button:Zo}=g,Xo=a=>{var{dataState:o}=a,s=ta(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Jo,Object.assign({dataState:o},s))})},Jo=a=>{var{dataState:l,contractAppraise:o,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=ta(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:m,handlerImpl:h}=Be(Object.assign({dataState:l,contractAppraise:o,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,l)=>e(Zo,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:l<m.length-1,black:l===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},l)))})},{Button:_o}=g,es=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=i((()=>y()),[]),n=i((()=>s?C():null),[s]),c=e=>na(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const l=document.execCommand("copy");if(document.body.removeChild(a),!l)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(_o,{className:"copy",size:"mini",fill:"outline",onClick:()=>na(void 0,void 0,void 0,(function*(){if(a)try{s&&n&&n.setClipboardData?(yield new Promise(((e,l)=>{n.setClipboardData({data:a,success:e,fail:l})})),r("复制成功","success"),o(!0)):(yield c(a),r("复制成功","success"),o(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:l?"已复制":"复制"})})),as=({contractPaydate:a,init:o,countdownCancel:s,contractId:i})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,i]=t("");return n((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,n=s.getTime()-(t.getTime()-3600);n<999&&n>0?l(o).then((()=>{a()})):n>1e3&&i(ma(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,i);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function ls({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:n,contractId:i,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:u,countdownCancel:g}){const{View:N}=p(),f=Te(n,r);return a(N,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(N,{children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",l,e(es,{copyContent:l})]}),e(N,{className:"status",children:f})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>b("orderDetail",{contractBillcode:l}),children:t.map((a=>e(Ka,Object.assign({},a,{dataState:n,children:1===n&&e(as,{contractPaydate:h,init:c,countdownCancel:g,contractId:i})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",ra(o)]})]}),e(Xo,{init:c,contractType:u,contractId:i,contractBillcode:l,dataState:n,contractAppraise:r,dataBmoney:o})]})}const os=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ss=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=p(),{onScroll:d,data:h,loading:u,init:g,countdownCancel:N}=Ae(l,o,n);return e(i,{className:"orderListItemWrap",children:e(Ma,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(ls,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:u?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(os,{}),e(i,{className:"nodata-btn",onClick:()=>b("goodList"),children:"前往购物"})]})})})})})),ts=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:n,Tabs:i}=p();return e(n,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:De,render:l=>e(n,{className:"orderList",children:e(ss,{contractType:t,item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),ns=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:C,handleApplyBtn:y,creditMoney:S,packageRemark:x}=Le(o||""),w=e=>Xe(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Te(C.dataState)?e(aa,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Te(C.dataState)})]}),e(g,{className:"subTitleWrap",children:w(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(aa,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:C.goodsReceiptMem}),e(N,{className:"personPhone",children:C.goodsReceiptPhone})]}),e(g,{className:"address",children:C.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[C.goodsList.map((o=>a(l,{children:[e(Ka,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{b(u,{skuCode:o.skuCode})},children:"商品快照"}),Number(C.dataState)>1&&Number(C.dataState)<5&&"06"!==C.contractType?e(g,{className:"orderBtn maxWidth",onClick:y.bind(null,o,C.dataState),children:"申请退款(取消订单)"}):""]}))),e(g,{className:"priceInfo",children:"06"!=C.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",C.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((C.dataBmoney-C.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",C.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-C.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(l,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:"韵达快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===C.contractPumode?"自提":"快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:"未开票"})]})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",C.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:x||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(es,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:w(C.gmtCreate)})]}),"06"!=C.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ra(-S)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===C.contractPmode?"线上支付":"线下支付"})})]}),"1"===C.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:Ue(C.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Xo,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:C.contractBillcode,contractId:C.contractId,contractType:C.contractType,dataState:C.dataState,dataBmoney:C.dataBmoney})})]})})]})})),is=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=D(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=D(o,"packageList.length",l.count),r=D(o,"packageList[0].expressName",l.expressName),d=D(o,"packageList[0].packageBillno",l.packageBillno),m=D(s,"state",l.result)||"-1";return a(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},cs=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=D(o,"message",l.message),n=D(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.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})})},rs=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Ve(l);return a(s,{className:"expressInfo",children:[e(is,{info:t,detail:n,stateObj:i,defaultValue:o}),e(cs,{detail:n,defaultValue:o})]})})),ds=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=ia(),[N,f]=t(c),[C,y]=t(i);return n((()=>{f(w("userNickname")),y(w("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>b("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>b("/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:C,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),ms=s((({title:l,columnList:o})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({});n((()=>{na(void 0,void 0,void 0,(function*(){try{const e=yield T();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?b("orderlist",{indexId:a+1}):b("afterSalesList")};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>b("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:h.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),hs=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>b(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ue(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),ps=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{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(i,{src:a.imgUrl,className:"img"},l)))})]})},us=[{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"}]}],gs=s((()=>{const[o,s]=t("1"),{View:n}=p(),i=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(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:us.map(((a,l)=>e(ps,{itemData:a},l)))})]})})),Ns=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,buttonBorderRadius:i,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Pe(l),{Button:C}=g,{View:b,Image:y,TextArea:S,Textarea:x}=p(),w=x||S,v=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:Ue(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(Xl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(w,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(C,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),fs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Re(l),{Button:N}=g,{View:f,Image:C,Text:b}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(C,{src:Ue(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Xl,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),m.length&&i?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),Cs=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.collectOpcode}),children:[e(n,{src:Ue(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},bs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Me(),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Ma,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map((a=>e(Cs,{item:a,edit:o,checked:r},a.collectId)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),ys=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("merchantShop",{memberCode:l.collectOpcode}),children:[e(n,{src:Ue(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},Ss=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Me(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Ma,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map(((a,l)=>e(ys,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),xs=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>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:()=>b("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ue(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},ws=({item:o,edit:s})=>{const{View:t}=p();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(xs,{footprintItem:a,edit:s},l)))]})},vs=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Xe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=R(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(ws,{item:a,edit:o},l)))})},ks=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Oe();return e(n,{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(Ma,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{onChange:d,children:e(vs,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Is=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:C}=ze(),b=Xe(),y=b.format("YYYY-MM-DD"),S=i((()=>u.includes(y)),[u,y]),x=i((()=>{const e=b.year(),a=b.month(),l=Xe(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[b,u]),w=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:w})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:x.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:S||f,onClick:C,style:{backgroundColor:o,opacity:S?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":S?"已签到":l})]})]})})})),Bs=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Xe())),[g,N]=t(!1),[f,C]=t((()=>Xe().year())),[b,y]=t((()=>Xe().month()+1)),{signinDetails:S,loading:x,refresh:w}=Fe(h),v=i((()=>h.format("YYYY年MM月")),[h]),k=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>S.sort(((e,a)=>Xe(a.date).valueOf()-Xe(e.date).valueOf()))),[S]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:l}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;C(e),y(a),N(!0)},children:[e(r,{className:"dateText",children:v}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((l,s)=>{const t=Xe(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{C((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{C((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:k.map((l=>e(c,{className:"monthItem "+(b===l?"active":""),onClick:()=>(e=>{y(e);const a=Xe(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:b===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),Ts=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],As=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:Ts.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),Ds=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,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:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Xe(i).format("YYYY-MM-DD")," ~ ",Xe(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Ls=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[n,i]=t(Ts[0].val),{list:c,getData:r}=Ge({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(As,{activeColor:l,setParams:i,params:n}),e(d,{children:e(Ma,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Ds,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=p(),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 Vs=()=>{const{View:a,Image:l}=p();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"})})},Ps=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Xe(o.gmtModified).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Xe(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",Xe(o.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Vs,{})})},Rs=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ye();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(Ma,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ps,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),Ms=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=We({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=D(l,"pbName"),h=D(l,"pmPromotionDiscountList"),p=D(h.at(-1),"discName"),g=D(l,"promotionName"),C=Xe(D(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Xe(D(l,"promotionEndtime")).format("YYYY-MM-DD"),y=D(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:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},children:-1===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Os=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:C}=We({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=D(l,"pbName"),h=D(l,"pmPromotionDiscountList"),p=D(h.at(-1),"discName"),u=D(l,"promotionName"),N=Xe(D(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Xe(D(l,"promotionEndtime")).format("YYYY-MM-DD"),y=D(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),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:n},children:-1===l.availabledate||C.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),zs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=ta(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(Ms,Object.assign({coupons:s},t)):null,2===o?e(Os,Object.assign({coupons:s},t)):null]})})),Fs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=je(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},Gs=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=Ee(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{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(i,{className:"content",children:r.noticeContext})]})})),Ys=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=He(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(Ma,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Xe(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{dl as AddressDetail,nl as AddressList,il as AddressListBtn,Ga as AfterSalesApply,Xa as AfterSalesDetail,Ua as AfterSalesList,al as AfterSalesType,Ls as AllPromotionList,Ys as ArticleDetail,Da as BackTop,To as CartList,Ao as CartOperate,fo as CartTop,wa as ClassifyNav,Ia as ClassifyNavOne,ka as ClassifyNavOneJsx,Aa as ClassifyNavThree,Ba as ClassifyNavTwo,bs as CollectionList,Ss as CollectionShopList,Rs as CouponList,Va as Cube,Ns as EvaluateDetail,gs as EvaluateList,fs as EvaluateViewDetail,rs as ExpressInfo,ks as FootPrint,zs as GetCouponOne,Rl as Goods,bl as GoodsClassify,vl as GoodsClassifyOne,Tl as GoodsClassifyTwo,lo as GoodsDetailAndEvaluate,zl as GoodsDetailBanner,Zl as GoodsDetailCoupon,mo as GoodsDetailHandleBar,po as GoodsDetailHandleBarOne,jl as GoodsDetailInfo,Hl as GoodsDetailInfoOne,Ql as GoodsDetailPromotion,Kl as GoodsDetailSku,No as GoodsList,Ml as GoodsSlider,Ol as GoodsSlideshow,sa as Line,Is as MemberSignin,ds as MineData,hs as MineFunction,ms as MineOrderEntry,ml as MyAgreementList,pl as MySetting,hl as MySettingJsx,Fs as Notice,Gs as NoticeDetail,ns as OrderDetail,ts as OrderList,Qo as PaymentMode,gl as PickupPointList,Po as PlaceOrderAddress,Go as PlaceOrderAddressTabs,jo as PlaceOrderCoupon,Eo as PlaceOrderDelivery,Ho as PlaceOrderGood,Uo as PlaceOrderInfo,Ko as PlaceOrderOperate,qo as PlaceOrderResult,aa as QjMobileIcon,Ll as Search,Pl as SearchPage,Vl as SearchStyleTwo,ea as Service,Bs as SigninDetail,ya as Slider,oa as TextLine,la as Title,ha as ToPrice,Sa as Video,Nl as WechatAddressBtn,ca as addressIdConst,ra as fixPrice,da as fixPrice1,ma 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 n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,Fragment as h}from"react";import{useComponent as p,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import f from"classnames";import{getTaro as C,navigatorHandler as b,getEnv as y,taroMessage as S,getStorage as w,setStorage as x}from"@brushes/utils";import{queryOcsconfigList as v,getAddress as k,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as T}from"qj-b2b-api";import{get as A,isEmpty as D,isEqual as L,noop as V,groupBy as P}from"lodash-es";import{useCube as R,useGoTop as M,useAfterSalesApply as O,useAfterSalesList as z,afterSalesTabConfig as F,useAfterSalesDetail as G,useAfterSalesChooseType as Y,useAddressItem as W,useAddressList as j,useEditAddress as E,useMySetting as H,usePickupPointItem as U,usePickupPointList as K,useGoodsClassify as Q,useGoods as $,useGoodDetail as q,goodStore as Z,useBanner as X,useGoodCollection as J,useGoodSpecAndPrice as _,useGoodFootprint as ee,useCreatePoster as ae,useCreateMiniPoster as le,useGoodsShare as oe,useGoodSkuStore as se,popupImplement as te,usePromotion as ne,useAddCoupon as ie,useCoupon as ce,useEvaluate as re,useAddShopping as de,useGoodSku as me,useGoodsList as he,useCartTop as pe,useCartListNext as ue,getRadioValue as ge,useCartOperate as Ne,useOrderAddress as fe,useOrderPickupAddress as Ce,userAddressData as be,useOrderGood as ye,useOrderCoupon as Se,useOrderInfo as we,useOrderPay as xe,useOrderResult as ve,useOrderResultResult as ke,useOrderOperate as Ie,orderStatusImpl as Be,useOrderList as Te,orderStatusList as Ae,useOrderDetail as De,useExpressInfo as Le,useEvaluateDetail as Ve,useEvaluateViewDetail as Pe,useCollectionList as Re,useFootprint as Me,useMemberSignin as Oe,useSigninDetail as ze,useMarketingPromotion as Fe,useCouponList as Ge,useAllCoupon as Ye,useNotice as We,useNoticeDetail as je,useArticleDetail as Ee}from"qj-b2c-store";import{fullPath as He,checkMobile as Ue,ProvinceComponent as Ke,CityComponent as Qe,AreaComponent as $e,navigatorLink as qe}from"@brushes/shared-utils";import Ze from"dayjs";import{DynamicForm as Xe}from"@brushes/mobile-form";import{deleteEvaluateGoods as Je}from"b2c-api";const _e=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),ea=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},aa=s((({value:l,shared:o,goPath:s,goPointsPath:t,textIndent:n,fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingTop:g,paddingLeft:N,paddingRight:f,paddingBottom:y})=>{const{View:S,IconMobile:w}=p(),x=()=>{console.log(107,window.location.href);const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(S,{className:"components-title",style:{paddingTop:g,paddingBottom:y},children:[e(S,{onClick:()=>{var e;e=l,s?b("goodList",{searchParam:e}):t&&b("PointsGoodsList",{searchParam:e})},style:{fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingLeft:N,paddingRight:f,textIndent:n},children:l}),o&&e(S,{onClick:e=>{e.stopPropagation(),x()},children:e(w,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),la=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:i,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:h,fontSize:`${n}px`,color:c},children:o})]})},oa=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=p();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));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 n(e){try{c(o.next(e))}catch(e){t(e)}}function i(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(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const na=(e="b2c")=>{const[a,l]=t([]),o=i((()=>y()),[]);n((()=>{ta(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>ta(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield v();case"b2b":return yield T().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=A(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${A(o,"ocserviceConfRemark")}: ${A(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${A(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;C().showActionSheet({itemList:a})}}},ia={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(".")?ha(e):pa(e),ha=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)},pa=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"},ua=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const ga=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ua+e:e?ua+"/paas/shop/"+e:e),[e]),Na=({src:a,style:l,actived:o})=>{const s=c(null);return n((()=>{s.current&&(o?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},fa=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=ga(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Na,{actived:o,style:{height:"100%",overflow:"hidden"},src:d}):e(c,{mode:"scaleToFill",src:d,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:b.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),Ca=s((({Position:o="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:b,imgHeight:y,fontsize:S=16,textAlign:w="center",fontColor:x="#000000",backGroundColor:v="#ffffff"})=>{const k=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),T=R(n,b||[]),A=a=>e(B,{className:t,style:{fontSize:S,zIndex:99,justifyContent:"left"===w?"flex-start":"center"===w?"center":"flex-end",color:x,backgroundColor:v},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C},children:e(I,{imgHeight:y,data:T,className:k,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?A(s):null,e(fa,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),ba=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:C=0,fontsize:b=16,textAlign:y="center",fontColor:S="#000000",backGroundColor:w="#ffffff",otherStyles:x=[],ImgShadow:v=!1,Position:k="top"})=>{const{View:I}=p(),B=i((()=>f("silder-title",{"silder-tops1":"top"===k&&"horizontal"===d,"silder-bottoms":"bottom"===k&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===k,"silder-tops":"vertical"===d&&"top"===k},...x)),[x,k]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(Ca,{Position:k,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:S,backGroundColor:w,className:f({"outer-shadow":v}),className1:B})})})),ya=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:n},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:i,paddingRight:c}})})})),Sa=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=ga(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},wa=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=R(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>{var e,a;return b(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(Sa,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),xa=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=ga(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},va=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=R(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,l;return b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(xa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},l)))})},ka=s(va),Ia=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),C=R(a,l),y=i((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:C.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return b(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===h?"74px":"60px"},children:e(N,{className:y,style:{fontSize:c,color:r},children:a.title})},l)))})})),Ba=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=p(),m=ga(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return b(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ta=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),C=R(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:C.map(((a,l)=>e(Ba,{layout:u,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Aa=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=i((()=>y()),[]),{View:n}=p(),{goTop:c}=M();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ea,{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"})})})),Da=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=ga(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,l,o;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href="http://47.102.147.197:8816/#/":b(null===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(o)})},La=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Da,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Va=o.createContext(null),Pa=s((()=>{const{View:a}=p(),{tip:l}=r(Va);return e(a,{className:"afterSalesApplyTip",children:l})}));const Ra=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=sa(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>y()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!y()||!e)return;const a=C().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!y())return 0;const a=C(),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}=p(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,C().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${C().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:o}))},Ma=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Va);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(Ra,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Oa=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(Va);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(ea,{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(Ma,{popupShow:s})]})})),za=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Va);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:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(ea,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(ea,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Fa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:w,placeholder:x,handleDelImg:v,limit:k,goodsInfo:I,handleFillInReason:B,handleSubmit:T,loading:A}=O({contractBillcode:o,skuCode:s});return e(h,{loading:A,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Va.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:w,placeholder:x,handleDelImg:v,limit:k,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:B,handleSubmit:T},children:[e(Pa,{}),e(Oa,{}),e(za,{}),e(m,{className:"submitBtn",onClick:T.bind(null,t,o,l,n),children:"确定"})]})})})},Ga={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:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(ea,{style:{color:null===(s=Ga[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ga[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ga[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:He(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Ya[l.refundType][l.dataState]}),e(ea,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ea=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(Ra,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Wa,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ha=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:l=>e(Ea,{item:l,refreshNum:a})})})})),Ua=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ca(n),C=i((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:He(o),alt:"",className:"card-item-img"}),a(u,{className:"card-item-info",children:[a(u,{className:"card-item-info-container",children:[e(N,{className:"card-item-info-container-title",children:s}),e(N,{className:"card-item-info-container-price",children:f})]}),a(u,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:C})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ka=(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]}},Qa=o.createContext(null),$a=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Qa),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(Ra,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),qa=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(Qa),{View:i,Input:c}=p();return a(l,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:o,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e($a,{})]})})),Za=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:C}=G({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:S,refundMoney:w,refundMeo:x,refundEx:v,refundType:k,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:T,goodsReceiptArrdess:A,packageCode:D,packageBillno:L,packageName:V}=c,{View:P,Image:R,WrapLoading:M}=p();return e(M,{loading:C,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(Qa.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Ka(k,b)}),e(P,{className:"right_time",children:Ze(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==S?void 0:S.map(((a,l)=>e(Ua,{dataPic:He(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:v})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款金额"}),e(P,{className:"right",children:w})]}),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:null==I?void 0:I.map(((a,l)=>e(R,{src:He(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:Ze(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"===k?a(l,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[B,"  ",T]}),e(P,{className:"address",children:A})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e(qa,{})]}):"",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:L})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:V})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Xa=o.createContext(null),Ja=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Xa),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ca(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:He(N),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(ea,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),_a=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Xa);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(ea,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),el=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:C}=Y({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=p();return e(y,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Xa.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(Ja,{}),e(_a,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},al=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},ll=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=W(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(al,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>b("addressEditor",{addressId:l.addressId}),children:"编辑"}),e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},ol=s((()=>{const{View:a,Skeleton:o}=p(),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)))})})})})),sl=s((({url:l,title:o,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>b(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),tl=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=j(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(ol,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(ll,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(sl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),nl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>b("addressEditor"),children:"+ 新增地址"})})})),il=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],cl=[{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:Ue}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Ke}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Qe}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:$e}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],rl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({addressDefault:!1}),{Button:u}=g,{onSubmit:N}=E(r);if(n((()=>{ta(void 0,void 0,void 0,(function*(){if(r){let e=yield k({addressId:r});e.addressDefault="1"===e.addressDefault,h(e)}}))}),[]),!r||!D(m))return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(Xe,{initialValues:m,footer:e(u,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:il,onSubmit:N,fields:cl})})})),dl=s((()=>{const{View:l}=p(),o=e=>{b(`/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)))})})})),ml=()=>{const{View:l}=p(),{mySettingGoBind:o,mySettingLogout:s}=H();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(ea,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},hl=s(ml),pl=({itemData:l})=>{const{View:o,Text:s}=p(),{handlerImpl:t}=U(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},ul=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=p(),{list:c,loading:r,skullShow:d,onScroll:m}=K(l);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:o+"px"},children:d?e(ol,{}):e(t,{className:"addressList",children:e(Ra,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,l)=>e(pl,{itemData:a},a&&a.userinfoOcode||l))),r&&e(i,{})]}):e(sl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),gl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>ta(void 0,void 0,void 0,(function*(){yield S("导入成功","none")})),children:"导入微信收件地址"})})})),Nl=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{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(n,{onClick:()=>b("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:fl}=g,Cl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(i,{children:e(Ra,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(fl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(fl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(Nl,{navList:m,activeKey:r,cell:l})})]})})})})})),bl=d(null),yl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(bl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&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"})})]}),h?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(Ra,{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]})})),Sl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:n}=r(bl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:l.map(((l,n)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>b("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})]},n)))})})),wl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(bl),m=i((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=i((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=i((()=>{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:f}=p();return e(g,{children:e(Ra,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},l)))}),e(Sl,{thirdList:u})]})})})})})),xl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=Q(),[g,N]=t("0"),[f,C]=t("0");return e(bl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(yl,{}),e(wl,{})]})})})),vl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:n,Image:i}=p();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(n,{className:"level3ArrItem",onClick:()=>b("goodList",{classtreeCode:l.classtreeCode}),children:[e(i,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:l.goodsClassName})]},o)))})})),kl=s((({navList:l,activeKey:o,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:A(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=A(l[r],"childList"))||void 0===c?void 0:c.map(((l,o)=>a(h,{children:["0"===l.goodsClassHide?e(h,{className:"level2Title",children:l.goodsClassName}):"",e(vl,{childList:l.childList,layout:s,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Il}=g,Bl=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(c,{className:"goodsClassifyTwo",children:e(Ra,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Il,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Il.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(kl,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),Tl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Zud7L0i/s88Nmi2lW965/f7aT6td0xi3r4xMC+wFmBs5cXx8WA0zdYqB8D1wA+16Dv3l0OCYBHAw/pPeL/daDu/g3lCeZ5+5sKfZ8ZuAJwZeBawHEq9GkXvwWuU9TLlbqs080QAFCp8xzgDhWGrCHn0KKNc3tteb6eALheeZ1ob+grq78CNyvjryCKOl30ndS6Ubj4nvc3XMe45t+13j0TeEax4PXsLt1cY5PKqesDzqkreVTdtgC4ax9V27UGwPOAO/YYsV+8KlcX//c9+qnV1DuDR1kfQP8DuC7w1lqD6tNPSwD4BHpoj8EpIC+N3+vRR6umHgnPBjRJd6E/A1cBPtKlcc02rQBwlyKgLmP9RdkmJ/GFbDEBXxTaAR4IHK3DRH8NXAb4Soe21Zq0AIDPqQ8DGnay5G3ed/OPsg1H5PfV8ArgVB3G8A1Ac/dox1ttAPi29i1+ug7CeFK5aHlRmhu5+L5OLtFh4C8f0w5SEwD29UZg/6QQ9Lw5CHhKst3U2LVnvLYofbJjux1wSLZRDf6aALhX0fJlxvV34NblqZhpN1VeNZwupB5MGfJSeMHidZRp15u3FgBOC3y1eOBGB+WX75v4JdEGM+FTphq6suZt7z++LpTLYFQLAK8vWrPMwO8LPC3TYEa8XoDfAlw1OWYvwK9KtunFXgMAVwP0iMmQ5/39Mw1myHv88s5XixilnxTjlEasQagvADzzfMeeJTFalR8+ndSIbXdSc2icgWCI0lOLo0yUvxdfXwB42fG8i5LKDy87U9TuReeQ5btRiSuItvtTCXIZJCilDwDUfhk4YShWlNSBvynKvI34jCXIXAqfUFzim4ugDwC0jL0uMcI3d9ARJLqfNKsKMsPO/DtC3gH0jtYK2pT6AMCzTTVmhNzWDPD4boR5m/LcufhFRKenIU2/wqbUFQAXAD6TGNkji/dvosm2Y9WP4NPA+YIz82Mx2rmpXqArAHy/3zs4kcG2s+B4xmS7QVEXR8dwudbu5V0A4NPvB0A0OtegD71pFtphNv5CIt5RtbJ2gmbUBQB6uEZt9UbIeJn5WbMZzK/jWyXU3+6efmjaCppQFwC8MIFKw6mN8l3ofxI4NqDGz6wlETInwtsijF14ugDAAEgvJxFqOvjIACbK49auISxC3re0mzShLAAMnIhq8dRkaSXU5LvQUSWg1U+39ggZUOKrqwllAXAb4EXBkXhU1IgFCP7crNi8DBouFsl4YuzDKYBftphhFgDq/aPODiZ6MLfOQruXgN5DPgsjZICKUVDVKQsAlT+R7UjlxamnHBRZXZL5DjOaQb2PdbOvThkAyOuzxLx760jvoK4+8+v63i7/blCqcoqQTiI6i1SnDAC80KkAipBbv0fAQnuWgPcAI598Fq4jVcgXXsfU5d8zALhSyZkX+Z1F9x+REnwROHeA1SSWBqtWtwtkAHB74AWBwcpiFKxBoQttLQHN6ZrVI6RGsLpGNQMA8/k8OTJS4OLAJ4K8m8z2xBITEZGBafNMelGVMgBwW39Y8Ne94OgAsdDWEjARptHPEdL3ImOCj/SZSnqQMQF7YZxTfF9IWA2YjH429D1Cag8/GGHM8GR2gIwR6ITlyZgZyybyZiyDJtI01qAqZQCQ0QIaJ9fMhFlVAuN25lM5ellWa2gATlXKAMCECMb9R8g8gBZjWGhrCWReVuZUzAbgrJV/BgC6Kj9gbY87GCzesMkOoEExcR/AQJAINXEPywDAFG/mx4mQ4VAqORbaWgLq+M0tHKHRXwH3KNm8I4M1z957IowbzmP6PI1CETLMzIwiVSmzA2QuLD5vvDMstLUE/EiuGBCSPgFerM01WJUyAHALMhgkQubzu2eEccN5zHYayZksX5e0O2vFmwGAZmDNwZE27+oQG792sNuMISNPk26ZZLs6RRZz5x+NIta8vT4F55jwqbqQ99ChW3/0nvTihBNpavxZAETPLAeh/Vo79kK7l8BjEwEzd03GFYZlngWAUT4mRoyQGUDmnvkrMs+uPB8rVtNIe93wmqSbzwLA553ne4QsuGg61IX+XwInKbb9SN0EvYYMImmSUSULAJ8iZvmwiuc68vz35moUzEJHlcCdgOcGhWIZ28hTMdjdUdmyALC1JsnojXQ7ZwLrJPDSyHqDlwx2oLrYamRNqAsAMiphy7icv8nI59upVUnU6EVlL3+zUrXRQews7uwEzAhmJe6FdkhAJZlFJiPU/APqAgAHbqq3S0VmUN66Xh4X2hHi9Z1ELSJd8KIGuE7y7QoAq4BYDSRKnnc+ezadMiZ1b/3mVmjqWtcVAJZdsxxaJKjBRbe4snEFm0zZfMpmXj+gtcC6AsBxZXwE5TdRhAkjNpUyMQDKSB2KupSm1AcAXgaPACLKDCfhjqG7+GjVMZpKcuvOMwo0ezKPkK+n6pFAuw6zDwDsy2oXRgFFyciiPlXEor8zJT49pLWJ+MFEya3fI6A59QWAaWJNF5spmnTzUmOn+eQm8gPWE8pE9lpyR9+L5l+/8ukLAPvIuIvLr0+BlsLq7k0TWfCdh5HJAbBqZ8naaBa23lOuAQDftt4FolmvHLQp5i2Zpl1hu5IKMN24I3aTlQzMBmZircGoBgAcrPbqZyVH/UlgvxIjn2w6efbzlAyfmY/CQBpDxZupfXcntVoAMA/uxzskMXCrM//N3ya/pPEBetnThStbR9BAURVFg1ItADhoUW9IeLbkum9db70mQZg7+XRz24+m0V3N149HC+vgKfVqAsDJmBbu+R1WUW9jU9AOUiWjw/giTYzetRiGz74M/bYk3tJGMDjVBoATyD57VpP27LMq9xz9CI2ZNHw+c+Fbzds5ZwpvVAVJCwBYIOlwwIwWWTLwwUwk2Qtl9ndq8Zu3R5V413LyHnvWWh6tgHQLAChccwnr9ZI9C1cLY3kZbebfr7VSDfpRvatbV0bDt7thmPfH19AoIGgFACfqpVD3MS2HXcgyM+Yk0hO5ekhUlwGVNt7uze2TKQK17ue8++j3p1Z1UGoJACfixeidHc/GlSDUGAoC7Q6D35J3Wo2Tw3/DudV5RJJlZhdylJ2gNQAUgrd78+LqUdyHzFJuiXmBMFhlzbLFGxlt5Y6+c1g3/8FBMAQAnLQXHZU+hov1JauQGKFkLT6fXS12BTV45uRxm3drHkpOymbQ42DIianm9DiIRMNGQeIb2qrb+s77x9y7XQDhy0WQqr/3QqaxKurnEB1rhm+wnWBIACgAC06Y6OgiGWkkeF189Qkap/xbY5NPLf8YYeNCq6jxDPdMN+mCz9WaoNx1uDrAZGoHr9oPAoKhAeDk/LIsiHjQwFtrAkdVWL2n6PyiYsvqIF1A1vw4GAMAK+nuDxj23PWZWGWVGnWiIsyMKtZXkqyuPkkQjAkABWPs4MGARaW3A6m7MKWuauFdgzk9arynWEgjS82Og7EBsBKEFy9zCuk0OlfylaP2cqv0eJPbCaYCABddM7J2AEvSzulYMIGzETzR2n5ePD0OJrETTAkAqy/fG/qBJSll1qliyN3jy2W791WTdeCczE4wRQCsFnGfon0znaql56dAnuuHlbA4o52yC7/zHCaxE0wZADsLSzdptXLerH2/D026ah9aXi0GuNSi0UEwFwCsBL43cOmirfPieNFGGjuVN7ppebHzi49WS+0CjFFBMDcA7Cpg7wsCwtzECtJXhH/2Da6EW7qp79Qa+mbXNc0oZm3zQ6a4Gw0EcwfAntZZ1auGJwGy+uP/UzunWlgX7CNL/qIutoMgvlJso4BguwIgJfkJMQ/+OlgAMKHVL0PpsxOYkU1DWzipxAKA6QHAEfXZCVLhZQsApgmAviDQKTcUZ7AAYLoA6AMCjWt6S62lBQBrRTQ6Q5fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Dl=s((({value:l,urlPath:o="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:C,Image:y}=p(),S=i((()=>f("txt",...g)),[g]);return e(C,{onClick:()=>b(o),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(C,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(y,{src:Tl,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,{className:S,style:{color:t,display:"inline-block",fontSize:h},children:l})]})})})),Ll=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"],urlPath:g="search"})=>{const{View:N,Image:C}=p(),y=i((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>b(g),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(N,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(N,{style:{width:"80%"},children:[e(C,{src:Tl,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})]}),e(N,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Vl=s((({placeholder:l,placeholderText:o,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>y()),[]),{View:f,Text:S,Input:v}=p(),[k,I]=t((()=>w("history")||[])),[B,T]=t(""),A=e=>{b(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:Tl,alt:""}),e(v,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:B,onInput:e=>T(e.detail.value),onConfirm:e=>ta(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const l=a.concat(g.current.value||e.detail.value);return x("history",l),l}return a})),A(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(S,{className:"btn",onClick:()=>{const e=B.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return x("history",l),l}return a})),A(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(ea,{onClick:()=>ta(void 0,void 0,void 0,(function*(){(yield C()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:k.map(((a,l)=>e(f,{onClick:()=>A(a),className:"historyItem",children:a},l)))})]}):null]})})),Pl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:C,paddingLeft:y,paddingRight:S,goodsName:w=!0,goodsPrice:x=!0,goodsCar:v=!0,goodsBorder:k=!0,goodsShadow:B=!1,marginGap:T=10})=>{const[V,P]=t(l),R=c(),{View:M,Text:O}=p();return n((()=>{L(R.current,u)||(R.current=u,D(u)?P(l):ta(void 0,void 0,void 0,(function*(){try{const e=yield I({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=A(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:C},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:S},children:V.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:k?"1px solid #000000":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${He(l.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:w?"block":"none"},children:l.goodsName}),e(M,{className:"subTitle",children:l.brandName}),d&&a(M,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(M,{className:"price",children:[a(M,{style:{fontSize:18},children:[x?ca(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ca(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:v?"block":"none"},children:e(ea,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Rl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:C,marginRight:y})=>{const{View:S}=p(),{list:w}=$({defaultValue:l,goods:o},i);return e(S,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:C,marginRight:y},children:w.map(((l,o)=>a(S,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(S,{className:"img",style:{backgroundImage:`url(${He(l.dataPic)})`}}),a(S,{className:"board",children:[e(S,{className:"title",children:l.goodsName}),a(S,{className:"info",children:[a(S,{className:"lPart",children:[s?e(S,{className:"price",children:ca(l.pricesetNprice)}):null,t?e(S,{className:"marketPrice",children:ca(l.pricesetMakeprice)}):null]}),n?e(S,{className:"rPart",children:e(ea,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Ml=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:C,btnRadius:S})=>{const w=i((()=>y()),[]),{list:x}=$({defaultValue:l,goods:o},m),{SmoothSwiper:v,View:k,Image:I}=p(),[B,T]=t(0);return a(k,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(v,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:x,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{T(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(k,{className:["goodsSlideshowItem",""+(l.goodsCode===x[B].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:He(l.dataPic),mode:"widthFix"}),c?e(k,{className:"goodsName",children:l.goodsShowname}):null,r?a(k,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(k,{className:"price",children:ca(l.pricesetNprice)}):null,n?e(k,{className:"marketPrice",children:ca(l.pricesetMakeprice)}):null,e(k,{className:"btn",style:{backgroundColor:f,color:C,borderRadius:S},children:N})]})})]})})),Ol=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:n=""}=q(o,s),i=Z.getState();Z.setState(Object.assign(Object.assign({},i),{memberCode:n})),console.log(24,n);const c=X(t);return e(Ca,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},zl=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:n}=J(l);return a(s,{onClick:t,children:[D(n.dataObj)?e(ea,{value:"star-fill",style:{fontSize:20}}):e(ea,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:D(n.dataObj)?"收藏":"已收藏"})]})},Fl=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:o,goodsName:s})=>{if(!y())return;return"WEB"===C().getEnv()?e(Gl,{goodsName:s,shareShow:a,setShareShow:l,rsGoodsFileDomainList:o}):e(Yl,{goodsName:s,shareShow:a,setShareShow:l,rsGoodsFileDomainList:o})},Gl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r}=ae(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",onClick:e=>{e.stopPropagation()},children:[e(n,{className:"share-canvas",style:{height:580},children:e("canvas",{ref:r,width:300,height:580,style:{width:"300px",height:"580px"}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Yl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Canvas:i,Image:c,Button:r}=p(),{save:d}=le(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",onClick:e=>{e.stopPropagation()},children:[e(n,{className:"share-canvas",children:e(i,{"canvas-id":"canvas",style:{width:"300px",height:"570px",position:"fixed",zIndex:999}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(r,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:d,children:e(r,{className:"txt",children:"保存图片"})})]})]}):null})},Wl=({skuCode:l,priceShow:o,collectionShow:s,scene:n})=>{const[i,c]=t(!1),{View:r,SmoothView:d,Canvas:m,Image:h,Button:u,IconMobile:g}=p(),{rsSkuDomainList:N,rsGoodsFileDomainList:f}=q(l,n),{goodInfo:b}=_(N);ee(l);return a(r,{className:"goodsDetail-topInfo",children:[i&&e(Fl,{goodsName:b.goodsName,shareShow:i,setShareShow:c,rsGoodsFileDomainList:f}),a(r,{className:"lPart",children:[e(d,{className:"name",children:b.goodsName}),a(r,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(r,{style:{display:"flex",flexDirection:"column"},children:[a(d,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ca(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ca(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ca(.9*b.pricesetNprice)]})]}),e(u,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>c(!0),children:"生成海报"}),e(r,{onClick:e=>{e.stopPropagation(),(()=>{const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(g,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(r,{className:"rPart",style:{display:s?"flex":"none"},children:e(zl,{goodsName:b.goodsName,pricesetNprice:b.pricesetNprice,dataPic:He(b.dataPic),skuCode:l})})]})},jl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=J(l),{handleShare:c}=oe();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:D(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),El=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,n),{goodInfo:d}=_(r);return se((e=>e.spec)),ee(t),a(i,{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(jl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:He(d.dataPic),skuCode:t})]})})),Hl=s((()=>{const{Text:e}=p(),l=se((e=>e.count)),o=se((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Ul=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=te(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Hl,{}),e("img",{src:Al,alt:"",className:"icon"})]})]})})},Kl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=q(l,o),{goodInfo:i}=_(n),c=ne(n,i.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.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},Ql=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ie(),N=i((()=>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(h,{className:"title",children:n}),a(h,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(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:"已领完"})]})})})),$l=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},ql=o=>{var{skuCode:s,scene:t}=o;sa(o,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ce(d,h.skuCode);return a(l,{children:[a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:Al,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(Ra,{children:u.length>0?u.map(((e,a)=>m(Ql,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e($l,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Zl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:i}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(s){const e=[...c];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<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(i,{children:c.map(((a,l)=>e(ea,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Xl=({item:l})=>{const{View:o,Image:s,Text:t,Button:n}=p(),i=y(),c=C();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Zl,{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()}`})]}),a(o,{className:"pj-wrapper",children:[a(o,{className:"flex-1",children:[e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]}),e(t,{className:"del-txt",onClick:()=>{(e=>{ta(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield Je({evaluateGoodsId:a,isLocalMock:!i}),yield S("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(l)},children:"删除"})]}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},Jl=({evaluateArr:l})=>{const{View:o}=p();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(Xl,{item:a},l)))]}):e(sl,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},_l=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>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||""}})})},eo=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(l,{children:d.map(((l,t)=>e(h,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},ao=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(n,i),u=re(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(eo,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(_l,{goodsRemark:m}):e(Jl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},lo=({skuName:l,handleChooseSize:o,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=p(),r=se((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(i,{className:f({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)))})]})},oo=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=se((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),so=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n})=>{const{Image:i,View:c}=p(),{skuList:r}=o,d=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ca(n.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(i,{src:He(n.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:n.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",n.goodsSupplynum||"100"]})]})]}),r.map(((a,l)=>e(lo,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},to=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=se((e=>e.isNeedButton)),r=se((e=>e.offShelf));return r?e(i,{className:f({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(l,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:o,children:"立即购买"})]})})},no=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=de(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(Ra,{children:e(i,{children:a(n,{className:"content",children:[e(so,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(oo,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(to,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),io=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(no,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},co=s((({serverShow:o,cartShow:s,lPartShow:t,lPartColor:n,lPartBgColor:i,lPartStyle:c,rPartColor:r,rPartBgColor:d,rPartStyle:m,rPartText:h,dispatchPageStore:u,skuCode:g,platform:N,scene:f})=>{const{View:C,IconMobile:y,Text:S}=p(),w=se((e=>e.offShelf)),{rsSkuDomainList:x,goodPro:v}=q(g,f),{goodInfo:k}=_(x),{servicePopup:I}=na(N),{addCardPopup:B,buyOpenPopup:T}=te(u);return a(C,{className:"goodsDetailHandleBar",children:[a(C,{className:"linkGroup server",onClick:I,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:s?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"购物车"})]}),e(C,{className:"goods-detail-btn-group",children:w?e(C,{className:"btn addCart offShelf",children:e(S,{className:"btn",children:"已下架"})}):a(l,{children:["26"===v||!1===t?null:e(C,{className:"btn addCart",onClick:B,style:{color:n,backgroundColor:i,borderTopLeftRadius:c,borderBottomLeftRadius:c},children:"加入购物车"}),e(C,{onClick:T,className:"btn buy",style:Object.assign({color:r,backgroundColor:d,borderTopRightRadius:m,borderBottomRightRadius:m},!1===t?{borderTopLeftRadius:m,borderBottomLeftRadius:m}:{}),children:h||("10"===k.goodsPro?"预售抢购":"立即购买")})]})})]})})),ro=o=>{var{$_dataSource:s={},dispatchPageStore:t=V,skuCode:n,scene:i}=o,c=sa(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m),{popupVisible:p}=s;return a(l,{children:[e(co,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(io,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},mo=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:C}=p(),{rsSkuDomainList:y}=q(u,g),{goodInfo:S}=_(y),{servicePopup:w}=na(N),{addCardPopup:x,buyOpenPopup:v}=te(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:w,style:{display:l?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:o?"block":"none"},children:[e(C,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"购物车"})]}),a(f,{className:"goods-detail-one-btn-group",children:[e(f,{className:"btn addCart",onClick:x,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0"},children:"加入购物车"}),e(f,{onClick:v,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===S.goodsPro?"预售抢购":"立即购买"})]})]})})),ho=o=>{var{popupVisible:s=!1,dispatchPageStore:t=V,skuCode:n,scene:i}=o,c=sa(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m);return a(l,{children:[e(mo,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(io,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},po=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],uo=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(po);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===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,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ea,{style:{color:n===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ea,{style:{color:n===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},go=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:n=!0,goodsPrice:c=!0,lineationGoods:r=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:h=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:C={}})=>{console.log(111,C);const{View:b,Loading:y,SmoothView:S,Image:w,ScrollView:x,IconMobile:v}=p(),[k,I]=t({}),{loading:B,getData:T,list:A}=he(l,o,k),D=i((()=>f("textBox",{btm:!c&&!r})),[c,r]),L=i((()=>f("name",{boxNone:!n})),[n]),V=i((()=>f("middle_margin",{boxNone:!d})),[d]),P=i((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=i((()=>f({detailContent:!(L.includes("boxNone")&&V.includes("boxNone")&&P.includes("boxNone"))})),[L,V,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(uo,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Ra,{id:"listWrap",children:a(x,{onScroll:()=>T(k),children:[e(b,{className:"list",style:{gap:g},children:A.map((l=>a(b,{onClick:()=>qe(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(w,{src:He(l.dataPic),className:"img"}),a(b,{className:R,children:[e(S,{className:L,children:l.goodsName}),a(b,{className:V,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:D,children:[e(S,{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(v,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),No=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=pe(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},fo=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),Co=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ra,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(fo,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},bo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();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 ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ca(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),yo=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{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(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>b("goodDetail",{skuCode:s})})]})})),So=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),wo=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((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:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(Co,{promotionCode:c,onChange:e=>{m(!1),s(n,ge(e))},promotion:o||[],visible:d,setVisible:m})})]})},xo=s((l=>{var{item:o}=l,s=sa(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(So,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(yo,{dataState:o.dataState,dataPic:He(o.dataPic),skuCode:o.skuCode}),e(bo,Object.assign({},o,s))]})})),vo=o=>{var{shoppingGoodsList:s=[]}=o,t=sa(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(xo,Object.assign({},t,{item:l})),l.pmPromotionList?e(wo,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},ko=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>D(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>qe(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}),n]})},Io=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:o}),l&&e(ko,{link:t,disNextMsg:l})]})},Bo=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:C,handleStep:b,updatePm:y}=ue(o,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:C,children:f.length?e(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Io,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(vo,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(sl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},To=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=l,{toOrderImpl:C,deleteCart:b,clearAll:y,selectAll:S,ids:w,cartDetail:x}=Ne(N,u,o);console.log("_dataSource:",l);const v=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:S,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[w.length?e(r,{onClick:y,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:b,className:"btn",children:"删除"})]}:{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(x.amount)})]})]}),a(r,{onClick:C,className:"btn",style:v,children:["结算(",x.num,")"]})]})]})},Ao=({address:a})=>e(l,{children:D(a)?e(Lo,{}):e(Do,{address:a})}),Do=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,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: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(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Lo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Vo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",longContractgoodsBeanStr:t=""})=>{const{View:n}=p(),i=fe(a,o,l,s,t);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>b("addressList"),children:e(Ao,{address:i})})},Po=({address:a})=>e(l,{children:D(a)?e(Mo,{}):e(Ro,{address:a})}),Ro=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[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:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Mo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Oo=({refreshNum:a})=>{const{View:l}=p(),o=Ce(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>b("pickupPointList"),children:e(Po,{address:o})})},zo=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,n)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Fo=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:i="",longContractgoodsBeanStr:c=""})=>{const{View:r,Text:d}=p(),[m,h]=t("0");return n((()=>{be.contractPumode=m}),[m]),a(r,{className:"placeOrderAddressTabs",children:[a(r,{className:"delivery-header",children:[e(d,{className:"delivery-label",children:"配送方式:"}),e(r,{className:"tabs",children:e(zo,{tabActive:m,setTabActive:h})})]}),e(r,{className:"content",children:"0"===m?e(Vo,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,longContractgoodsBeanStr:c}):e(Oo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Go=s((({couponStart:l,pbName:o,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();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(d,{className:"title",children:i}),a(d,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Yo=s((({couponStart:l,pbName:o,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();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:n}),a(r,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Wo=({refreshNum:o,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:u,Popup:g,Form:N,SmoothRadio:f,Button:C,SmoothCheckbox:b,ScrollView:y,Radio:S,Image:w}=p(),{shoppingGoodsList:x}=ye({refreshNum:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:v,visible:k,couponValue:I=[],setVisible:B,selectCoupon:T,onChange:A,onCreditChange:D,confirmImpl:L,resetImpl:V,contractPmode:P,onPayChange:R,payList:M,payName:O,creditList:z,creditInfo:F,selectCredit:G,creditVisible:Y,payVisible:W,setPayVisible:j,handleChooseImg:E,contractEcurl:H,setCreditVisible:U}=Se(x,s);return a(l,{children:[x.some((e=>"06"===e.goodsType))?null:a(l,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==v.length),children:[e(u,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(u,{className:"label",children:T?`已选择: ${T}`:0===v.length?"暂无可用优惠券":"请选择优惠券"}),0===v.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>j(!0),children:[e(u,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(u,{className:"label",children:O?`已选择: ${O}`:"请选择支付方式"}),0===v.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]})]}),F.urechargeId&&"0"===P&&a(h,{className:"coupon-select",onClick:()=>U(0!==z.length),children:[e(u,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(u,{className:"label",children:G?0===+G?"不使用":`已选择: ${G}%`:"请选择授信"}),0===v.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]}),"1"===P&&a(h,{className:"coupon-select",children:[e(u,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:E,children:H?e(w,{src:H,className:"img",alt:H,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(g,{popupVisible:W,popupHandler:j,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ra,{children:e(y,{children:e(f,{value:P||"",onChange:R,children:(null==M?void 0:M.length)>0&&M.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{checked:l.ptfpmodeType===P,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(g,{popupVisible:Y,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ra,{children:e(y,{children:e(f,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(g,{popupVisible:k,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ra,{children:e(y,{children:s?e(b,{value:(null==I?void 0:I.length)>0?I.map((e=>e.couponNo)):[],onChange:A,children:(null==v?void 0:v.length)>0&&v.map((e=>m(Go,Object.assign({isDisabled:2===I.length},e,{key:e.couponNo}))))},"visible"):e(f,{value:(null==I?void 0:I.length)>0?I[0].couponNo:"",onChange:A,children:v.map(((e,a)=>m(Yo,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(C,{className:"operate reset",onClick:V,children:"重置"}),e(C,{className:"operate",onClick:L,children:"确认"})]})]})})]})},jo=({shippingMethod:l=1})=>{const{View:o}=p();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:"快递"})]})})},Eo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=ye({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Ua,Object.assign({},a),o)))})))})},Ho=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=ye({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:C,disCount:b,creditMoney:y,freight:S,payPrice:w,rebMoney:x}=f,v=f.pointsDeduction||0,k=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:B,changeContent:T,shoppingType:A,pricesetRefrice:D}=we(C),L=ca(Math.max(w-y,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===A?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ca(I)})]}),null!==v&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===A?v+"积分":ca(v)]})]}),"06"===A?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ca(k)]})]}),"06"===A?null:a(l,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ca(-y)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ca(-x.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ca(-(B+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ca(S)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:T})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":L})]})]})})},Uo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:C,payState:b,creditMoney:y,ocContractSettlList:S,pointsDeduction:w}=ye({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:x,loading:v}=xe({ocContractSettlList:S,payState:b,list:C,goodsBeanStr:r},d,Math.max(f-y,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const k=ca(Math.max(f-y,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",r?"0.00":k]}),e(N,{loading:v,children:e(u,{className:"btn",onClick:x,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},Ko=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:C,SmoothRadio:b}=p(),{paymentImpl:S,channelList:w,contract:x,handleRadio:v,loading:k}=ve({contractBillcode:l,contractBbillcode:o});return n((()=>{console.log("打印下当前的channelList",w)}),[]),a(u,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(f,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",x.current.contractBillcode," | 总金额:",ca(x.current.contMoney+(x.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ca(x.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(b,{onChange:v,children:null==w?void 0:w.map((l=>a(u,{className:"paymentItem",children:[e(f,{value:l.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:l.fchannelName}),e(N,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",l.faccountAmount,"元"]}),a(u,{children:["支付金额:",ca(x.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(C,{loading:k,children:e(u,{className:"btnGroup",onClick:S,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Qo=({dataObj:l})=>{const{View:o,Text:s}=p();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)})]})]})},$o=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:n,leftBorderRadius:i,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:y,WrapLoading:S}=p(),{result:x,loading:v}=ke(l||(w("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:v,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(y,{value:x.icon,style:{fontSize:"35px",color:x.color}}),a(f,{className:"tips",children:[e(C,{className:"title",children:x.msg}),e(C,{className:"tip",children:x.info})]}),"success"===x.sysRecode&&e(Qo,{dataObj:x.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>b(x.menuCode,{contractBillcode:x.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${n}`,borderRadius:1===i?"20px":"0px"},children:x.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>b(r.value),className:"btn white",children:c})]})]})})})})),{Button:qo}=g,Zo=a=>{var{dataState:o}=a,s=sa(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Xo,Object.assign({dataState:o},s))})},Xo=a=>{var{dataState:l,contractAppraise:o,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=sa(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:m,handlerImpl:h}=Ie(Object.assign({dataState:l,contractAppraise:o,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,l)=>e(qo,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:l<m.length-1,black:l===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},l)))})},{Button:Jo}=g,_o=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=i((()=>y()),[]),n=i((()=>s?C():null),[s]),c=e=>ta(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const l=document.execCommand("copy");if(document.body.removeChild(a),!l)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(Jo,{className:"copy",size:"mini",fill:"outline",onClick:()=>ta(void 0,void 0,void 0,(function*(){if(a)try{s&&n&&n.setClipboardData?(yield new Promise(((e,l)=>{n.setClipboardData({data:a,success:e,fail:l})})),r("复制成功","success"),o(!0)):(yield c(a),r("复制成功","success"),o(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:l?"已复制":"复制"})})),es=({contractPaydate:a,init:o,countdownCancel:s,contractId:i})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,i]=t("");return n((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,n=s.getTime()-(t.getTime()-3600);n<999&&n>0?l(o).then((()=>{a()})):n>1e3&&i(da(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,i);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function as({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:n,contractId:i,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:u,countdownCancel:g}){const{View:N}=p(),f=Be(n,r);return a(N,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(N,{children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",l,e(_o,{copyContent:l})]}),e(N,{className:"status",children:f})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>b("orderDetail",{contractBillcode:l}),children:t.map((a=>e(Ua,Object.assign({},a,{dataState:n,children:1===n&&e(es,{contractPaydate:h,init:c,countdownCancel:g,contractId:i})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",ca(o)]})]}),e(Zo,{init:c,contractType:u,contractId:i,contractBillcode:l,dataState:n,contractAppraise:r,dataBmoney:o})]})}const ls=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const os=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=p(),{onScroll:d,data:h,loading:u,init:g,countdownCancel:N}=Te(l,o,n);return e(i,{className:"orderListItemWrap",children:e(Ra,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(as,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:u?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(ls,{}),e(i,{className:"nodata-btn",onClick:()=>b("goodList"),children:"前往购物"})]})})})})})),ss=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:n,Tabs:i}=p();return e(n,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:Ae,render:l=>e(n,{className:"orderList",children:e(os,{contractType:t,item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),ts=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:C,handleApplyBtn:y,creditMoney:S,packageRemark:w}=De(o||""),x=e=>Ze(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Be(C.dataState)?e(ea,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Be(C.dataState)})]}),e(g,{className:"subTitleWrap",children:x(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(ea,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:C.goodsReceiptMem}),e(N,{className:"personPhone",children:C.goodsReceiptPhone})]}),e(g,{className:"address",children:C.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[C.goodsList.map((o=>a(l,{children:[e(Ua,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{b(u,{skuCode:o.skuCode})},children:"商品快照"}),Number(C.dataState)>1&&Number(C.dataState)<5&&"06"!==C.contractType?e(g,{className:"orderBtn maxWidth",onClick:y.bind(null,o,C.dataState),children:"申请退款(取消订单)"}):""]}))),e(g,{className:"priceInfo",children:"06"!=C.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",C.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((C.dataBmoney-C.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",C.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-C.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(l,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:"韵达快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===C.contractPumode?"自提":"快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:"未开票"})]})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",C.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:w||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(_o,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:x(C.gmtCreate)})]}),"06"!=C.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ca(-S)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===C.contractPmode?"线上支付":"线下支付"})})]}),"1"===C.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:He(C.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Zo,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:C.contractBillcode,contractId:C.contractId,contractType:C.contractType,dataState:C.dataState,dataBmoney:C.dataBmoney})})]})})]})})),ns=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=A(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=A(o,"packageList.length",l.count),r=A(o,"packageList[0].expressName",l.expressName),d=A(o,"packageList[0].packageBillno",l.packageBillno),m=A(s,"state",l.result)||"-1";return a(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},is=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=A(o,"message",l.message),n=A(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.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})})},cs=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Le(l);return a(s,{className:"expressInfo",children:[e(ns,{info:t,detail:n,stateObj:i,defaultValue:o}),e(is,{detail:n,defaultValue:o})]})})),rs=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=na(),[N,f]=t(c),[C,y]=t(i);return n((()=>{f(w("userNickname")),y(w("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>b("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>b("/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:C,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),ds=s((({title:l,columnList:o})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({});n((()=>{ta(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?b("orderlist",{indexId:a+1}):b("afterSalesList")};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>b("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:h.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),ms=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>b(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:He(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),hs=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{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(i,{src:a.imgUrl,className:"img"},l)))})]})},ps=[{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"}]}],us=s((()=>{const[o,s]=t("1"),{View:n}=p(),i=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(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:ps.map(((a,l)=>e(hs,{itemData:a},l)))})]})})),gs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,buttonBorderRadius:i,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Ve(l),{Button:C}=g,{View:b,Image:y,TextArea:S,Textarea:w}=p(),x=w||S,v=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:He(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(Zl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(x,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(C,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),Ns=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Pe(l),{Button:N}=g,{View:f,Image:C,Text:b}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(C,{src:He(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Zl,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),m.length&&i?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),fs=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.collectOpcode}),children:[e(n,{src:He(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Cs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Ra,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map((a=>e(fs,{item:a,edit:o,checked:r},a.collectId)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),bs=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("merchantShop",{memberCode:l.collectOpcode}),children:[e(n,{src:He(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},ys=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Ra,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map(((a,l)=>e(bs,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Ss=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>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:()=>b("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:He(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},ws=({item:o,edit:s})=>{const{View:t}=p();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(Ss,{footprintItem:a,edit:s},l)))]})},xs=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(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(ws,{item:a,edit:o},l)))})},vs=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Me();return e(n,{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(Ra,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{onChange:d,children:e(xs,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),ks=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:C}=Oe(),b=Ze(),y=b.format("YYYY-MM-DD"),S=i((()=>u.includes(y)),[u,y]),w=i((()=>{const e=b.year(),a=b.month(),l=Ze(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[b,u]),x=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:x})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:w.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:S||f,onClick:C,style:{backgroundColor:o,opacity:S?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":S?"已签到":l})]})]})})})),Is=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Ze())),[g,N]=t(!1),[f,C]=t((()=>Ze().year())),[b,y]=t((()=>Ze().month()+1)),{signinDetails:S,loading:w,refresh:x}=ze(h),v=i((()=>h.format("YYYY年MM月")),[h]),k=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>S.sort(((e,a)=>Ze(a.date).valueOf()-Ze(e.date).valueOf()))),[S]);return e(m,{loading:w,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:l}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;C(e),y(a),N(!0)},children:[e(r,{className:"dateText",children:v}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((l,s)=>{const t=Ze(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{C((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{C((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:k.map((l=>e(c,{className:"monthItem "+(b===l?"active":""),onClick:()=>(e=>{y(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:b===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),Bs=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ts=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:Bs.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),As=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,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:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Ds=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[n,i]=t(Bs[0].val),{list:c,getData:r}=Fe({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(Ts,{activeColor:l,setParams:i,params:n}),e(d,{children:e(Ra,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(As,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Ls=()=>{const{View:a,Image:l}=p();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"})})},Vs=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Ze(o.gmtModified).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",Ze(o.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Ls,{})})},Ps=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ge();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(Ra,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Vs,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),Rs=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=Ye({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=A(l,"pbName"),h=A(l,"pmPromotionDiscountList"),p=A(h.at(-1),"discName"),g=A(l,"promotionName"),C=Ze(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(A(l,"promotionEndtime")).format("YYYY-MM-DD"),y=A(l,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},children:-1===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ms=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:C}=Ye({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=A(l,"pbName"),h=A(l,"pmPromotionDiscountList"),p=A(h.at(-1),"discName"),u=A(l,"promotionName"),N=Ze(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(A(l,"promotionEndtime")).format("YYYY-MM-DD"),y=A(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),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:n},children:-1===l.availabledate||C.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Os=s((l=>{var{type:o=1,coupons:s=[]}=l,t=sa(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(Rs,Object.assign({coupons:s},t)):null,2===o?e(Ms,Object.assign({coupons:s},t)):null]})})),zs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=We(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},Fs=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=je(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{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(i,{className:"content",children:r.noticeContext})]})})),Gs=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=Ee(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(Ra,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Ze(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{rl as AddressDetail,tl as AddressList,nl as AddressListBtn,Fa as AfterSalesApply,Za as AfterSalesDetail,Ha as AfterSalesList,el as AfterSalesType,Ds as AllPromotionList,Gs as ArticleDetail,Aa as BackTop,Bo as CartList,To as CartOperate,No as CartTop,wa as ClassifyNav,ka as ClassifyNavOne,va as ClassifyNavOneJsx,Ta as ClassifyNavThree,Ia as ClassifyNavTwo,Cs as CollectionList,ys as CollectionShopList,Ps as CouponList,La as Cube,gs as EvaluateDetail,us as EvaluateList,Ns as EvaluateViewDetail,cs as ExpressInfo,vs as FootPrint,Os as GetCouponOne,Pl as Goods,Cl as GoodsClassify,xl as GoodsClassifyOne,Bl as GoodsClassifyTwo,ao as GoodsDetailAndEvaluate,Ol as GoodsDetailBanner,ql as GoodsDetailCoupon,ro as GoodsDetailHandleBar,ho as GoodsDetailHandleBarOne,Wl as GoodsDetailInfo,El as GoodsDetailInfoOne,Kl as GoodsDetailPromotion,Ul as GoodsDetailSku,go as GoodsList,Rl as GoodsSlider,Ml as GoodsSlideshow,oa as Line,ks as MemberSignin,rs as MineData,ms as MineFunction,ds as MineOrderEntry,dl as MyAgreementList,hl as MySetting,ml as MySettingJsx,zs as Notice,Fs as NoticeDetail,ts as OrderDetail,ss as OrderList,Ko as PaymentMode,ul as PickupPointList,Vo as PlaceOrderAddress,Fo as PlaceOrderAddressTabs,Wo as PlaceOrderCoupon,jo as PlaceOrderDelivery,Eo as PlaceOrderGood,Ho as PlaceOrderInfo,Uo as PlaceOrderOperate,$o as PlaceOrderResult,ea as QjMobileIcon,Dl as Search,Vl as SearchPage,Ll as SearchStyleTwo,_e as Service,Is as SigninDetail,ba as Slider,la as TextLine,aa as Title,ma as ToPrice,ya as Video,gl as WechatAddressBtn,ia as addressIdConst,ca as fixPrice,ra as fixPrice1,da as formatTime,na as useService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "2.0.33",
3
+ "version": "2.0.35",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [