s-material-react 2.2.32 → 2.2.33
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.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a,Fragment as o}from"react/jsx-runtime";import l,{memo as s,useState as t,useEffect as i,useMemo as n,useRef as c,useContext as r,createContext as d,createElement as m,useCallback as h,Fragment as p}from"react";import{useComponent as g,IconMobile as u,antdMobile as N,NoticeBar as M}from"@brushes/simulate-component";import y from"classnames";import{getTaro as I,navigatorHandler as C,getEnv as D,taroMessage as w,getStorage as f,setStorage as b}from"@brushes/utils";import T,{useRouter as x}from"@tarojs/taro";import{queryOcsconfigList as z,updateContractAddress as k,getAddress as S,find as A,goodsDetailQuery as v,getContractNumbers as L}from"qj-b2c-api";import{queryOcserviceConfPageByMember as j}from"qj-b2b-api";import{get as O,isEqual as B,isEmpty as E,noop as P,groupBy as Y}from"lodash-es";import{useCube as V,useGoTop as Q,useAfterSalesApply as R,useAfterSalesList as U,afterSalesTabConfig as G,useAfterSalesDetail as W,useAfterSalesChooseType as F,useAddressItem as H,useAddressList as Z,useEditAddress as K,useMySetting as $,usePickupPointItem as J,usePickupPointList as X,useGoodsClassify as q,useGoods as _,useGoodCollection as ee,useGoodDetail as ae,goodStore as oe,useBanner as le,useGoodSpecAndPrice as se,useGoodFootprint as te,useCreatePoster as ie,useCreateMiniPoster as ne,useGoodsShare as ce,useGoodSkuStore as re,popupImplement as de,usePromotion as me,useAddCoupon as he,useCoupon as pe,useEvaluate as ge,useAddShopping as ue,useGoodSku as Ne,useGoodsList as Me,useCartTop as ye,useCartListNext as Ie,getRadioValue as Ce,useCartOperate as De,useOrderAddress as we,useOrderPickupAddress as fe,userAddressData as be,useOrderGood as Te,useOrderCoupon as xe,useOrderInfo as ze,useOrderPay as ke,useOrderResult as Se,useOrderResultResult as Ae,useOrderOperate as ve,orderStatusImpl as Le,useOrderList as je,orderStatusList as Oe,useOrderDetail as Be,useExpressInfo as Ee,useEvaluateDetail as Pe,useEvaluateViewDetail as Ye,useCollectionList as Ve,useFootprint as Qe,useMemberSignin as Re,useSigninDetail as Ue,useMarketingPromotion as Ge,useCouponList as We,useAllCoupon as Fe,useNotice as He,useNoticeDetail as Ze,useArticleDetail as Ke}from"qj-b2c-store";import{fullPath as $e,checkMobile as Je,ProvinceComponent as Xe,CityComponent as qe,AreaComponent as _e,navigatorLink as ea}from"@brushes/shared-utils";import aa from"dayjs";import{DynamicForm as oa}from"@brushes/mobile-form";import{View as la,Image as sa,RichText as ta}from"@tarojs/components";import{deleteEvaluateGoods as ia}from"b2c-api";const na=s((({width:a,height:o,top:l,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:c}=g();return e(c,{style:{width:a,height:o,borderRadius:n,top:l,left:i,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=g();return e(i,{onClick:l,className:y(o,t?`${o}-${t}`:"",a),style:s})},ra=s((({value:l,shared:s,goPath:t,goPointsPath:i,textIndent:n,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:u,paddingTop:N,paddingLeft:M,paddingRight:y,paddingBottom:D})=>{const{View:w,IconMobile:f,Button:b}=g(),x=I(),z="WEB"===T.getEnv(),k=()=>{const e=I();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(w,{className:"components-title",style:{paddingTop:N,paddingBottom:D},children:[e(w,{onClick:()=>{var e;e=l,t?C("goodList",{searchParam:e}):i&&C("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:u,paddingLeft:M,paddingRight:y,textIndent:n},children:l}),s&&e(o,{children:z?e(w,{onClick:e=>{var a;e.stopPropagation(),z?k():null===(a=null==x?void 0:x.showShareMenu)||void 0===a||a.call(x,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(b,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})})),da=({TextLineBgColor:o,text:l,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:p}=g();return a(p,{className:"textLine",style:{backgroundColor:o,textAlign:n,margin:1===s?"0 10px":""},children:[e(p,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(p,{className:"txt",style:{backgroundColor:o,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${i}px`,color:c},children:l})]})},ma=s((({borderStyle:a,borderRadius:o,height:l,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:c}=g();return e(c,{style:{paddingTop:i,paddingBottom:n},children:e(c,{style:{borderRadius:o+"%",borderStyle:a,width:s+"%",height:l+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ha(e,a){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&a.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(o[l[s]]=e[l[s]])}return o}function pa(e,a,o,l){return new(o||(o=Promise))((function(s,t){function i(e){try{c(l.next(e))}catch(e){t(e)}}function n(e){try{c(l.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(i,n)}c((l=l.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ga=(e="b2c")=>{const[a,o]=t([]),l=n((()=>D()),[]);i((()=>{pa(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>pa(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield z();case"b2b":return yield j().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=O(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${O(l,"ocserviceConfRemark")}: ${O(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${O(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;I().showActionSheet({itemList:a})}}},ua={label:""},Na=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Ma=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ya=(e,a)=>{const o=Math.floor(e/1e3)%60,l=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${l}分钟 ${o}秒${a}`},Ia=e=>1===String(e).indexOf(".")?Ca(e):Da(e),Ca=e=>{const a=Number(e).toFixed(0),o=(Number(e)-Number(a)).toFixed(2),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+"."+String(o).slice(2)},Da=e=>{const a=Number(e).toFixed(0),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+".00"},wa=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const fa=(e="")=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?wa+e:e?wa+"/paas/shop/"+e:e),[e]),ba=({src:a,style:o,actived:l})=>{const s=c(null);return i((()=>{s.current&&(l?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)))}),[l]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:o,src:a})},Ta=s((({item:a,isPlay:l,position:s,direction:t})=>{var i,n;const{Image:c,View:r}=g(),d=fa(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(ba,{actived:l,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:C.bind(null,null===(i=a.link)||void 0===i?void 0:i.value,null===(n=a.link)||void 0===n?void 0:n.params)})})})),xa=s((({Position:l="none",className:s="",className1:t="",defaultValue:i=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:p,paddingBottom:u,paddingLeft:N,paddingRight:M,selectImg:I,imgHeight:C,fontsize:D=16,textAlign:w="center",fontColor:f="#000000",backGroundColor:b="#ffffff"})=>{const T=n((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:x,View:z}=g(),k=V(i,I||[]),S=a=>e(z,{className:t,style:{fontSize:D,zIndex:99,justifyContent:"left"===w?"flex-start":"center"===w?"center":"flex-end",color:f,backgroundColor:b},children:a.title});return e(z,{className:s,style:{paddingTop:p,paddingBottom:u,paddingLeft:N,paddingRight:M},children:e(x,{imgHeight:C,data:k,className:T,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(o,{children:["top"===l||"bottom"===l?S(s):null,e(Ta,{isPlay:t===i,item:s,position:l,direction:m})]})})})})),za=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTB:N=0,paddingLR:M=0,fontsize:I=16,textAlign:C="center",fontColor:D="#000000",backGroundColor:w="#ffffff",otherStyles:f=[],ImgShadow:b=!1,Position:T="top"})=>{const{View:x}=g(),z=n((()=>y("silder-title",{"silder-tops1":"top"===T&&"horizontal"===d,"silder-bottoms":"bottom"===T&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===T,"silder-tops":"vertical"===d&&"top"===T},...f)),[f,T]);return e(x,{style:{padding:`${N}px ${M}px`},children:e(xa,{Position:T,defaultValue:t,type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:I,textAlign:C,fontColor:D,backGroundColor:w,className:y({"outer-shadow":b}),className1:z})})})),ka=s((({url:a,poster:o,autoplay:l,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:c})=>{const{View:r}=g();return e(r,{style:{paddingTop:t,paddingBottom:i},children:e("video",{className:"components-video",src:a,poster:o,autoPlay:l,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:c}})})})),Sa=({src:a,borderRadius:o})=>{const{Image:l}=g(),s=fa(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},Aa=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=g(),r=V(o,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:r.map(((o,s)=>a(n,{className:"classifyNavItem",onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(o),children:[e(Sa,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),va=({src:a,imgRadius:o,imgBoxShadow:l})=>{const{Image:s}=g(),t=fa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none"}})},La=({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=g(),p=V(a,o);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:l,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:p.map(((a,o)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},children:e(va,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},o)))})},ja=s(La),Oa=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:p,marginBottom:u})=>{const{View:N}=g(),M=V(a,o),I=n((()=>y("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:u},children:M.map(((a,o)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:I,style:{fontSize:c,color:r},children:a.title})},o)))})})),Ba=a=>{const{imgRadius:o,imgBoxShadow:l,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=g(),m=fa(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return C(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:o,boxShadow:l?"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:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ea=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:u,marginBottom:N})=>{const{View:M}=g(),y=V(a,o);return e(M,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:N},children:y.map(((a,o)=>e(Ba,{layout:p,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},o)))})})),Pa=s((({position:a=10,bg:o,color:l,fontSize:s})=>{const t=n((()=>D()),[]),{View:i}=g(),{goTop:c}=Q();return e(i,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ca,{style:{display:"inline-block",color:l,fontSize:s,backgroundColor:o,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Ya=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=g(),i=fa(l.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===o?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},Va=s((({defaultValue:a,type:o,borderRadius:l,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=g(),p=V(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${o}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:p.map(((a,t)=>e(Ya,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Qa=l.createContext(null),Ra=s((()=>{const{View:a}=g(),{tip:o}=r(Qa);return e(a,{className:"afterSalesApplyTip",children:o})}));const Ua=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=ha(a,["bottomHeight","children","id","heightWrap"]);const d=n((()=>D()),[]),m=function(e){const[a,o]=t(0);return i((()=>{if(!D()||!e)return;const a=I().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;o(a)}})).exec()}))})),a}(s),h=function(e=""){return n((()=>{if(!D())return 0;const a=I(),o=+a.getStorageSync("safeArea"),l=+(a.getStorageSync("tabBarHeight")||0);return o+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?l:0)+(e?+e:0)}),[])}(o),{View:p}=g(),u=n((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,I().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${I().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(p,Object.assign({},r,{style:Object.assign(Object.assign({},u),{paddingBottom:s?"":h}),id:s,children:l}))},Ga=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=g(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:p}=r(Qa);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:p,children:e(o,{className:"reasonPopup",children:e(Ua,{children:a(i,{children:[e(o,{className:"title",children:"退款原因"}),e(l,{onChange:h,children:m.map(((l,t)=>a(o,{className:"reasonItem",children:[e(o,{className:"label",children:l.flagSettingInfo}),e(s,{value:l.flagSettingInfo})]},t)))})]})})})})})})),Wa=s((()=>{const{View:o}=g(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:i}=r(Qa);return a(o,{className:"afterSalesApplyFillIn",children:[a(o,{className:"reason",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款原因"})]}),e(o,{className:"choose",onClick:l,children:t?e(o,{className:"chooseResult",children:t}):a(o,{children:["请选择",e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(o,{className:"price",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款金额"})]}),e(o,{className:"allPrice",children:e(o,{className:"single",children:Na(i)})})]}),e(Ga,{popupShow:s})]})})),Fa=s((()=>{const{View:o,TextArea:l,Textarea:s}=g(),t=s||l,{handleChooseImg:i,imgGroup:n,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Qa);return a(o,{className:"afterSalesApplySubFillIn",children:[e(o,{className:"title",children:"补充描述和凭证"}),a(o,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(o,{className:"imgGroup",children:[n.length<m?e(o,{className:"add",onClick:i,children:a(o,{className:"addContent",children:[e(ca,{value:"shangchuanpingzheng"}),e(o,{className:"word",children:"上传凭证"}),a(o,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,l)=>e(o,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(o,{className:"cancel",onClick:d.bind(null,l),children:e(ca,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),Ha=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=g(),{tip:p,reasonList:u,popupVisible:N,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:b,limit:T,goodsInfo:x,handleFillInReason:z,handleSubmit:k,loading:S}=R({contractBillcode:l,skuCode:s});return e(h,{loading:S,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Qa.Provider,{value:{tip:p,reasonList:u,popupVisible:N,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:b,limit:T,goodsNum:t,goodsPrice:i,goodsInfo:x,handleFillInReason:z,handleSubmit:k},children:[e(Ra,{}),e(Wa,{}),e(Fa,{}),e(m,{className:"submitBtn",onClick:k.bind(null,t,l,o,i),children:"确定"})]})})})},Za={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Ka={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},$a=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:i,Image:n}=g();return a(i,{className:"afterSalesListItem",onClick:l.bind(null,o.refundCode),children:[a(i,{className:"title",children:[a(i,{className:"lPart",children:["服务单号: ",o.refundCode]}),a(i,{className:"rPart",children:[e(ca,{style:{color:null===(s=Za[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Za[o.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:Za[o.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src:$e(o.ocRefundGoodsList[0].dataPic),className:"img"})}),a(i,{className:"rPart",children:[e(i,{className:"goodsName",children:o.ocRefundGoodsList[0].goodsName}),a(i,{className:"count",children:["申请数量: ",o.ocRefundGoodsList[0].refundGoodsNum]}),a(i,{className:"count",children:["订单编号: ",o.contractBbillcode]})]})]}),a(i,{className:"tip",children:[e(i,{class:"lPart",children:Ka[o.refundType][o.dataState]}),e(ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ja=s((()=>{const{View:a}=g();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Xa=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=g(),{afterSalesList:i,goAfterSalesDetail:n,loading:c,haseData:r}=U(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(Ua,{id:"tabContent",children:e(s,{children:r?i.map((a=>e($a,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Ja,{})})})})})})),qa=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=g();return e(i,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:G,render:o=>e(Xa,{item:o,refreshNum:a})})})})),_a=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:p,Image:u,SmoothView:N}=g(),M="06"===d?m+"积分":Na(i),y=n((()=>t?`x ${t}`:""),[t]),I=(e=>{const a="string"==typeof e?e:"";if(!/^https?:\/\//i.test(a))return a;const o=a.indexOf("/paas/");return-1===o?a:a.slice(o).replace(/\/+/g,"/")})(l);return e(o,{children:a(p,{className:"card-item",children:[e(u,{src:$e(I),alt:"",className:"card-item-img"}),a(p,{className:"card-item-info",children:[a(p,{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:M})]}),a(p,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:y})]}),e(p,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},eo=(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]}},ao=l.createContext(null),oo=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(ao),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=g();return e(d,{popupVisible:l,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(Ua,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:o.map(((o,l)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:o.expressName}),e(c,{value:`${o.expressName}-${o.expressCode}`})]},l)))})]})})})})})),lo=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(ao),{View:n,Input:c}=g();return a(o,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:l,children:e(n,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流单号"})]}),e(n,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(n,{className:"expressInfo",children:e(n,{className:"expressInfo_btn",onClick:i,children:"提交物流信息"})}),e(oo,{})]})})),so=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:u,packageName:N,setPackageBillno:M,loading:y}=W({refundCode:l}),{contractBbillcode:I,dataState:C,gmtCreate:D,ocRefundGoodsList:w,refundMoney:f,refundMeo:b,refundEx:T,refundType:x,ocRefundFileList:z,goodsReceiptMem:k,goodsReceiptPhone:S,goodsReceiptArrdess:A,packageCode:v,packageBillno:L,packageName:j}=c,{View:O,Image:B,WrapLoading:E}=g();return e(E,{loading:y,children:e(O,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(ao.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:u,packageName:N,setPackageBillno:M,submitExpressInfo:r},children:[a(O,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(O,{className:"left_text",children:eo(x,C)}),e(O,{className:"right_time",children:aa(D).format("YYYY-MM-DD HH:mm:ss")})]}),e(O,{className:"afterSalesDetailContent",children:a(O,{className:"refundDetail",children:[e(O,{className:"title",children:"退款信息"}),e(O,{className:"goodsDetail",children:null==w?void 0:w.map(((a,o)=>e(_a,{dataPic:$e(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},o)))}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"订单编号"}),e(O,{className:"right",children:I})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款原因"}),e(O,{className:"right",children:T})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款金额"}),e(O,{className:"right",children:f})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"描述说明"}),e(O,{className:"right",children:b})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"补充凭证"}),e(O,{className:"right",children:null==z?void 0:z.map(((a,o)=>e(B,{src:$e(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"申请时间"}),e(O,{className:"right",children:aa(D).format("YYYY-MM-DD HH:mm:ss")})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款编号"}),e(O,{className:"right",children:l})]}),e(o,{children:"B02"===x?a(o,{children:[C>0?a(O,{className:"merchantMsg",children:[e(O,{className:"title",children:"商家信息"}),a(O,{className:"name",children:[k," ",S]}),e(O,{className:"address",children:A})]}):"",1===C?a(O,{className:"writeMsg",children:[e(O,{className:"wlMsg",children:"物流信息"}),e(lo,{})]}):"",C>1?a(O,{className:"writeMsg",children:[e(O,{className:"wlMsg",children:"物流信息"}),a(O,{className:"express_content",children:[e(O,{className:"name",children:"物流单号"}),e(O,{className:"code",children:L})]}),a(O,{className:"express_content",children:[e(O,{className:"name",children:"物流公司"}),e(O,{className:"code",children:j})]})]}):""]}):""})]})}),0===C?e(O,{className:"footerBtn",children:e(O,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),to=l.createContext(null),io=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=g(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(to),{goodsName:p,skuName:u,dataPic:N}=m,M=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":Na(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:$e(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:p}),e(t,{className:"price",children:M})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:u}),a(o,{className:"stepWrap",children:[e(ca,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>n((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),i?e(o,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),no=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:i}=g(),{goApply:n,goodsNum:c}=r(to);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),(d=l,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((o,l)=>a(i,{className:"item",onClick:n.bind(null,o.value,s,t,c),children:[e(i,{className:"headline",children:o.label}),e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),co=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:u,goApply:N,loading:M,goodsPrice:y}=F({contractBillcode:l,skuCode:s}),{View:I,WrapLoading:C}=g();return e(C,{loading:M,children:e(I,{className:"afterSalesType",style:{paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r},children:a(to.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:u,goApply:N,goodsPrice:y},children:[e(io,{}),e(no,{contractGoodsSendnum:u.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},ro=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=g();return e(s,{value:o?[l.addressId]:[],onChange:a,children:e(t,{value:l.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},mo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:i}=g(),{handlerImpl:n}=H(o),c=x(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[o.addressMember," ",o.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[o.provinceName," ",o.areaName," ",o.cityName," ",o.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(ro,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(i,{className:"del",style:{marginRight:20},onClick:()=>C("editAddress",{addressId:o.addressId}),children:"编辑"}),r.contractBillcode?e(i,{className:"del",onClick:()=>pa(void 0,void 0,void 0,(function*(){const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;yield k({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),C("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(i,{className:"del",onClick:l,children:"删除"})]})]})]})},ho=s((()=>{const{View:a,Skeleton:l}=g(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})})),po=s((({url:o,title:l,subTitle:s,link:t,style:i})=>{const{View:n,Image:c}=g();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(c,{className:"img",src:o}),e(n,{className:"title",children:l}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>C(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),go=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:c}=g(),{list:r,delAddress:d,setDefault:m,skullShow:h}=Z(a);return e(c,{className:"addressListWrap",style:{paddingTop:i+"px",marginBottom:t+"px"},children:h?e(ho,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(mo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(po,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),uo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=g();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>C("addressEditor"),children:"+ 新增地址"})})})),No=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],Mo=[{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:Je}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Xe}},{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:"收货人详细地址不能为空"}]}],yo=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:n,paddingBottom:c,addressId:r})=>{const{View:d}=g(),[m,h]=t({}),[p,u]=t(!!r),{Button:M}=N,{onSubmit:y}=K(r);if(i((()=>{pa(void 0,void 0,void 0,(function*(){if(r){u(!0);let e=yield S({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),u(!1)}else u(!1)}))}),[r]),!p)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:n+"px"},children:e(oa,{initialValues:m,footer:e(M,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:No,onSubmit:y,fields:Mo})})})),Io=s((()=>{const{View:o}=g(),l=e=>{C(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(o,{className:"myAgreementList",children:e(o,{className:"list",children:s.current.map(((s,t)=>a(o,{className:"item",onClick:l.bind(null,s.type),children:[e(o,{children:s.label}),e(o,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),Co=()=>{const{View:o}=g(),{mySettingGoBind:l,mySettingLogout:s}=$();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(ca,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},Do=s(Co),wo=({itemData:o})=>{const{View:l,Text:s}=g(),{handlerImpl:t}=J(o);return e(l,{className:"addressItem",children:a(l,{className:"upInfo",onClick:t,children:[e(l,{className:"userInfo",children:(o.addressMember||"")+" "+(o.addressPhone||"")}),e(l,{className:"addressInfo",children:a(s,{className:"address",children:[o.provinceName||""," ",o.areaName||""," ",o.cityName||""," ",o.addressDetail||""]})})]})})},fo=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,ScrollView:i,Loading:n}=g(),{list:c,loading:r,skullShow:d,onScroll:m}=X(o);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:d?e(ho,{}):e(t,{className:"addressList",children:e(Ua,{id:"pickupPointListWrap",children:e(i,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,o)=>e(wo,{itemData:a},a&&a.userinfoOcode||o))),r&&e(n,{})]}):e(po,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),bo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=g();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>pa(void 0,void 0,void 0,(function*(){yield w("导入成功","none")})),children:"导入微信收件地址"})})})),To=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:c}=g();return e(o,{children:l.map((o=>e(i,{className:["content",s===`${o.goodsClassCode}`?" active":""].join(""),children:((null==o?void 0:o.childList)||[]).map((o=>a(i,{className:"classifyFloor",children:["0"===o.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:o.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{className:`container container_columns${t}`,style:{marginTop:"0"===o.goodsClassHide?"":"20px"},children:((null==o?void 0:o.childList)||[]).map((({classtreeCode:o,goodsClassCode:l,goodsClassLogo:s,goodsClassName:t})=>a(i,{onClick:()=>C("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:xo}=N,zo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:c}=g(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=q();return e(n,{children:e(Ua,{id:"goodsClassify",children:e(c,{children:a(n,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{className:"side",children:e(xo,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(xo.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(To,{navList:m,activeKey:r,cell:o})})]})})})})})),ko=d(null),So=s((()=>{const{navList:o,activeKey:l,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(ko),{View:d,ScrollView:m}=g(),[h,p]=t(!1),N=(e,a)=>{s.bind(null,e)(),i(`${a}`),n("0"),h&&p(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:o.map(((a,o)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!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:()=>p(!1),children:e(u,{value:"paixusort-sheng"})})}),e(Ua,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:o.map(((a,o)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))})})})]}):null]})})),Ao=s((({thirdList:o})=>{const{View:l,Image:s}=g(),{picShadow:t,layout:i}=r(ko);return e(l,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:o.map(((o,i)=>a(l,{className:"goodsClassifyOneFloorItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(s,{src:o.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(l,{className:"title",children:o.goodsClassName})]},i)))})})),vo=s((()=>{const{navList:o,fCoe:l,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(ko),m=n((()=>D()),[]),{secondList:h,thirdList:p}=(({navList:e,fCoe:a,sCoe:o})=>{const l=n((()=>{var o;return(null===(o=e[a])||void 0===o?void 0:o.childList)||[]}),[a,e]),s=n((()=>{var e;return(null===(e=l[o])||void 0===e?void 0:e.childList)||[]}),[o,a,e]);return{secondList:l,thirdList:s}})({navList:o,fCoe:l,sCoe:s}),{View:u,ScrollView:N,SideBar:M}=g();return e(u,{children:e(Ua,{id:"goodsClassifyOneContent",children:e(N,{children:a(u,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(M,{activeKey:s,onChange:t,children:h.map(((a,o)=>e(M.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},o)))}),e(Ao,{thirdList:p})]})})})})})),Lo=s((({selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r})=>{const{View:d}=g(),{navList:m,activeKey:h,setActiveKey:p}=q(),[u,N]=t("0"),[M,y]=t("0");return e(ko.Provider,{value:{fCoe:u,setFCoe:N,sCoe:M,setSCoe:y,navList:m,activeKey:h,setActiveKey:p,selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(So,{}),e(vo,{})]})})})),jo=s((({childList:o,layout:l,picShadow:s,style:t})=>{const{View:i,Image:n}=g();return e(i,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${l}, 1fr)`},t),children:o.map(((o,l)=>a(i,{className:"level3ArrItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(n,{src:o.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:o.goodsClassName})]},l)))})})),Oo=s((({navList:o,activeKey:l,layout:s,picShadow:n})=>{var c;const[r,d]=t(0);i((()=>{d(o.findIndex(m))}),[l,r]);const m=e=>e.goodsClassCode===l,{View:h,Image:p}=g();return a(h,{className:"goodsClassifyTwoContent",children:[e(p,{className:"firstLevelImg",src:O(o[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=O(o[r],"childList"))||void 0===c?void 0:c.map(((o,l)=>a(h,{children:["0"===o.goodsClassHide?e(h,{className:"level2Title",children:o.goodsClassName}):"",e(jo,{childList:o.childList,layout:s,picShadow:n,style:{marginTop:"0"===o.goodsClassHide?"":"30px"}})]},l)))]})})),{SideBar:Bo}=N,Eo=s((({selectFontColor:o,selectBlcShow:l,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:c}=g(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=q();return e(c,{className:"goodsClassifyTwo",children:e(Ua,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Bo,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Bo.Item,{title:a.goodsClassName,className:[l?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":o}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Oo,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),Po="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJ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zMTc1Mjg4NSAzNC42Nzc2NDM2LDMuMTI0OTQzNTkgMzQuMTc5NjU4MywzLjYyMjk1NDg0IEwxOC44NTI2ODI4LDE4Ljk1MDcyODUgQzE4LjM1NDY5NzUsMTkuNDQ4NzM5NyAxNy41NDcyODI4LDE5LjQ0ODc2MDggMTcuMDQ5MjcxNSwxOC45NTA3NzU0IEMxNi41NTEyNjAzLDE4LjQ1Mjc5MDEgMTYuNTUxMjM5MiwxNy42NDUzNzU0IDE3LjA0OTIyNDYsMTcuMTQ3MzY0MiBMMzIuMzc2MiwxLjgxOTU5MDQ5IFoiIGlkPSLot6/lvoQtMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",Qo=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:i,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:p,otherStyles:u=[],__pageConfig:N})=>{const{View:M,Image:I}=g(),D=n((()=>y("txt",...u)),[u]);return e(M,{onClick:()=>C(l),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(M,{className:"components-search",style:{backgroundColor:i,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(I,{src:Po,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(M,{className:D,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),Ro=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:p,paddings:u,otherStyles:N=["mockWeight","mockItalic"],urlPath:M="search"})=>{const{View:I,Image:D}=g(),w=n((()=>y("txt",...N)),[N]),f=T.useRouter(),[b,x]=t("");return i((()=>{var e;if(null===(e=null==f?void 0:f.params)||void 0===e?void 0:e.searchParam){const e=f.params.searchParam,a=decodeURIComponent(e);x(a)}}),[null==f?void 0:f.params]),e(I,{onClick:()=>C(M),style:{paddingTop:u,paddingBottom:u,paddingLeft:d,paddingRight:m},className:h?"boxPosition":"",children:a(I,{className:"components-search",style:{border:`1px solid ${c}`,borderRadius:r?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff",marginTop:"8px"},children:[a(I,{style:{width:"80%"},children:[e(D,{src:Po,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(I,b?{className:w,style:{color:s,display:"inline-block",fontSize:p},children:b}:{className:w,style:{color:s,display:"inline-block",fontSize:p},children:o})]}),e(I,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:p,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),Uo=s((({placeholder:o,placeholderText:l,history:s,historyText:i,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:p})=>{const u=c(null),N=n((()=>D()),[]),{View:M,Text:y,Input:w}=g(),[T,x]=t((()=>f("history")||[])),[z,k]=t(""),S=e=>{C(p?"PointsGoodsList":"goodList",{searchParam:e})};return a(M,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(M,{className:"search-title",children:[e("img",{src:Po,alt:""}),e(w,Object.assign({ref:u,"confirm-type":"search",type:"text",className:"content",value:z,onInput:e=>k(e.detail.value),onConfirm:e=>pa(void 0,void 0,void 0,(function*(){N&&(x((a=>{if(!a.includes(u.current.value||e.detail.value)&&(u.current.value||e.detail.value)){const o=a.concat(u.current.value||e.detail.value);return b("history",o),o}return a})),S(u.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(y,{className:"btn",onClick:()=>{const e=z.trim();e&&(x((a=>{if(!a.includes(e)){const o=a.concat(e);return b("history",o),o}return a})),S(e))},children:"搜索"})]}),s?a(M,{className:"historyWrap",children:[a(M,{className:"title",children:[e(M,{className:"label",style:{fontSize:m,color:h},children:i}),e(ca,{onClick:()=>pa(void 0,void 0,void 0,(function*(){(yield I()).removeStorageSync("history"),x([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(M,{className:"content",children:T.map(((a,o)=>e(M,{onClick:()=>S(a),className:"historyItem",children:a},o)))})]}):null]})})),Go=s((({defaultValue:o=[],classCode:l="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:p=[],markedPrice:u,paddingTop:N,paddingBottom:M,paddingLeft:I,paddingRight:D,goodsName:w=!0,goodsPrice:f=!0,goodsCar:b=!0,goodsBorder:T=!0,goodsShadow:x=!1,marginGap:z=10})=>{const[k,S]=t(o),v=c(),{View:L,Text:j}=g();return i((()=>{B(v.current,p)||(v.current=p,E(p)?S(o):pa(void 0,void 0,void 0,(function*(){try{const e=yield A({[h]:p.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=O(e,"list",[]);S(a)}catch(e){S(o)}})))}),[p]),e(L,{style:{paddingTop:N,paddingBottom:M},children:e(L,{className:y({[`goods-${l}`]:!0}),style:{display:"grid",gap:z,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:I,paddingRight:D},children:k.map(((o,l)=>a(L,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:T?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),className:["goods "+(x?"outer-shadow":"")].join(" "),children:[e(L,{className:"goods-img",style:{backgroundImage:`url(${$e(o.dataPic)})`}}),a(L,{className:"space",children:[e(L,{className:"titleType",style:{display:w?"block":"none"},children:o.goodsName}),e(L,{className:"subTitle",children:o.brandName}),a(L,{className:"price",children:[a(L,{style:{fontSize:18},children:[f?Na(o.pricesetNprice):"",1===u&&e(j,{className:"markedPrice",children:Na(o.pricesetMakeprice)})]}),e(L,{className:"anticon",style:{display:b?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})})),Wo=s((({defaultValue:o,goods:l,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:u,marginTop:N,marginBottom:M,marginLeft:y,marginRight:I})=>{const{View:D}=g(),{list:w}=_({defaultValue:o,goods:l},n);return e(D,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:M,marginLeft:y,marginRight:I},children:w.map(((o,l)=>a(D,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${u}px`},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(D,{className:"img",style:{backgroundImage:`url(${$e(o.dataPic)})`}}),a(D,{className:"board",children:[e(D,{className:"title",children:o.goodsName}),a(D,{className:"info",children:[a(D,{className:"lPart",children:[s?e(D,{className:"price",children:Na(o.pricesetNprice)}):null,t?e(D,{className:"marketPrice",children:Na(o.pricesetMakeprice)}):null]}),i?e(D,{className:"rPart",children:e(ca,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},l)))})})),Fo=s((({defaultValue:o,goods:l,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:p,goodsShadow:u,btnText:N,btnBg:M,btnColor:y,btnRadius:I})=>{const w=n((()=>D()),[]),{list:f}=_({defaultValue:o,goods:l},m),{SmoothSwiper:b,View:T,Image:x}=g(),[z,k]=t(0);return a(T,{className:"goodsSlideshow",children:[e(x,{src:s,className:"bg",mode:"widthFix"}),e(b,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:f,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{k(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:o=>a(T,{className:["goodsSlideshowItem",""+(o.goodsCode===f[z].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:h,borderStyle:p?"solid":"none",boxShadow:u?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(x,{className:"logo",src:$e(o.dataPic),mode:"widthFix"}),c?e(T,{className:"goodsName",children:o.goodsShowname}):null,r?a(T,{className:"salesNum",children:["销量:",o.goodsSalesvolume]}):null,d?e(T,{className:"price",children:Na(o.pricesetNprice)}):null,i?e(T,{className:"marketPrice",children:Na(o.pricesetMakeprice)}):null,e(T,{className:"btn",style:{backgroundColor:M,color:y,borderRadius:I},children:N})]})})]})}));var Ho=new class{constructor(){this.events={}}on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const o=this.events[e];o&&o.forEach((e=>e(...a)))}off(e,a){const o=this.events[e];o&&(this.events[e]=o.filter((e=>e!==a)))}};const Zo=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:p,loop:u,paddingTop:N,paddingBottom:M,paddingLeft:I,paddingRight:C,selectImg:D,imgHeight:w,collectParams:f,fontsize:b=16,textAlign:x="center",fontColor:z="#000000",backGroundColor:k="#ffffff"})=>{const S="WEB"===T.getEnv(),A=n((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===p}))),{handleCollect:v,collection:L}=ee(f),[j,O]=t(!1),{SmoothSwiper:B,View:P,Button:Y}=g(),Q=V(r,D||[]),R=a=>e(P,{className:c,style:{fontSize:b,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:z,backgroundColor:k},children:a.title});return i((()=>{const e=e=>{O(e)};return Ho.on("IsCollectionShow",e),()=>{Ho.off("IsCollectionShow",e)}}),[]),a(P,{className:s,style:{position:"relative",paddingTop:N,paddingBottom:M,paddingLeft:I,paddingRight:C},children:[a(P,{style:{position:"absolute",top:10,right:10,zIndex:9,display:"flex",gap:10},children:[e(P,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2},children:e("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDBweCIgaGVpZ2h0PSI0MHB4IiB2aWV3Qm94PSIwIDAgNDAgNDAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbi9pbWc8L3RpdGxlPgogICAgPGRlZnM+CiAgICAgICAgPHBhdGggZD0iTTAsMCBMNDAsMCBMNDAsNDAgTDAsNDAgTDAsMCBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0iaWNvbi9pbWciIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI3BhdGgtMSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICA8ZyBpZD0i54Wn54mHIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgPHBhdGggZD0iTTMyLjc4Njg4NTIsMiBDMzUuNjY2MDA5LDIgMzgsNC4zMzM5OTA5OCAzOCw3LjIxMzExNDc1IEwzOCwzMi43ODY4ODUyIEMzOCwzNS42NjYwMDkgMzUuNjY2MDA5LDM4IDMyLjc4Njg4NTIsMzggTDcuMjEzMTE0NzUsMzggQzQuMzMzOTkwOTgsMzggMiwzNS42NjYwMDkgMiwzMi43ODY4ODUyIEwyLDcuMjEzMTE0NzUgQzIsNC4zMzM5OTA5OCA0LjMzMzk5MDk4LDIgNy4yMTMxMTQ3NSwyIEwzMi43ODY4ODUyLDIgWiBNMzIuNzg2ODg1Miw0LjU1NzM3NzA1IEw3LjIxMzExNDc1LDQuNTU3Mzc3MDUgQzUuNzQ2MzkxMzIsNC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xMi4wOTA4OTg0LDguODIxNzU3ODEgMTQuNjY2NjAxNiw4LjgyMTc1NzgxIEMxNy4yNDIzMDQ3LDguODIxNzU3ODEgMTkuMzM4NTU0NywxMC45MTc5Njg4IDE5LjMzODU1NDcsMTMuNDkzNjcxOSBDMTkuMzM4NTU0NywxNi4wNjkzNzUgMTcuMjQyMzA0NywxOC4xNjU2MjUgMTQuNjY2NjAxNiwxOC4xNjU2MjUgWiBNMTQuNjY2NjAxNiwxMS4zNzAwNzgxIEMxMy40OTUzMTI1LDExLjM3MDA3ODEgMTIuNTQzMDA3OCwxMi4zMjI0MjE5IDEyLjU0MzAwNzgsMTMuNDkzNjcxOSBDMTIuNTQzMDA3OCwxNC42NjQ5NjA5IDEzLjQ5NTM1MTYsMTUuNjE3MzA0NyAxNC42NjY2MDE2LDE1LjYxNzMwNDcgQzE1LjgzNzg1MTYsMTUuNjE3MzA0NyAxNi43OTAyMzQ0LDE0LjY2NDk2MDkgMTYuNzkwMjM0NCwxMy40OTM2NzE5IEMxNi43OTAyMzQ0LDEyLjMyMjQyMTkgMTUuODM3ODkwNiwxMS4zNzAwNzgxIDE0LjY2NjYwMTYsMTEuMzcwMDc4MSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",onClick:()=>{Ho.emit("bannerImageClick","poster")},style:{width:"100%",height:"100%"},alt:"生成海报"})}),e(P,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2},children:S?e("img",{src:Vo,onClick:e=>{e.stopPropagation(),Ho.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(Y,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Vo})`,backgroundSize:"100% 100%",width:20,height:20,padding:0},className:"wx-share-button"})}),e(P,{onClick:v,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2,display:j?"flex":"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jM0NDQwNDEgMi44MzQwMjkwOSwxNC40NDQ0ODgzIEMzLjEyNDIzMDQ0LDE0LjE4NDEwOTIgMy40Njk5NTgwNiwxNC4wMDAxNDgyIDMuODQyMjQ5MDYsMTMuOTA4MDE2NSBMNy44MzY1MjExNCwxMi45MTk1NDQ2IEMxMS4xNjU4ODI5LDEyLjA5NTYxOTYgMTQuMDQwOTA1Niw5LjkxNDI1NjI5IDE1LjgyMDA5MjYsNi44NjIxNzY4NyBMMTcuOTU0NjAyOSwzLjIwMDU2MzQyIFoiIGlkPSLmmJ/lvaIiIGZpbGw9IiMzNEMwQkMiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",style:{width:"100%",height:"100%"},alt:"收藏"})})]}),e(B,{imgHeight:w,data:Q,className:A,type:d,autoplay:m,autoplayInterval:h,direction:p,loop:u,interval:5e3,vertical:"vertical"===p,render:(s,t,i)=>a(o,{children:["top"===l||"bottom"===l?R(s):null,e(Ta,{isPlay:t===i,item:s,position:l,direction:p})]})})]})})),Ko=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:i,memberCode:n=""}=ae(l,s),c=oe.getState();oe.setState(Object.assign(Object.assign({},c),{memberCode:n})),console.log(24,n);const r=le(t),{goodInfo:d}=se(i),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:$e(d.dataPic),skuCode:l};return e(Zo,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function $o(o){const{content:l,position:s="top"}=o,[i,n]=t(!1);return a(la,{className:"tooltip-wrap",children:[e(la,{className:"tooltip-icon",onClick:()=>n(!i),children:e(sa,{src:`data:image/svg+xml,${encodeURIComponent('\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">\n <circle cx="12" cy="12" r="10" fill="none" stroke="#666" stroke-width="1.5"/>\n <text x="12" y="16" text-anchor="middle" font-family="system-ui" font-size="12" font-weight="bold" fill="#666">?</text>\n </svg>\n ')}`,mode:"aspectFit",style:{width:"24px",height:"24px"}})}),i&&a(la,{className:`tooltip-popup tooltip-${s}`,children:[l,e(la,{className:"tooltip-arrow"})]})]})}const Jo=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!D())return;return"WEB"===I().getEnv()?e(o,{children:a?e(Xo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(qo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},Xo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Button:n}=g(),{save:c,canvasRef:r,width:d,height:m}=ie(l,s,t);return e(i,{className:"share",children:o?a(i,{className:"share-content",style:{margin:"80px auto"},onClick:e=>{e.stopPropagation()},children:[e(i,{id:"share-canvas-id",className:"share-canvas",children:e("canvas",{ref:r,width:d,height:m,style:{width:`${d}px`,height:`${m}px`}})}),a(i,{className:"dashboard",children:[e(i,{className:"dashboard-item",children:e(n,{className:"txt",onClick:()=>l(!1),children:"关闭海报"})}),e(i,{className:"dashboard-item",onClick:c,children:e(n,{className:"txt",children:"保存图片"})})]})]}):null})},qo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Canvas:n,Button:c}=g(),{save:r,width:d,height:m}=ne(l,s,t,o);return e(i,{style:{zIndex:o?1e3:-10,opacity:o?1:0},className:"share",children:a(i,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[o&&e(i,{className:"share-canvas",id:"share-canvas-id",children:e(n,{"canvas-id":"canvas",style:{width:`${d}px`,height:`${m}px`,position:"absolute"}})}),a(i,{className:"dashboard",children:[e(i,{className:"dashboard-item",children:e(c,{className:"txt",onClick:()=>{const e=T.createCanvasContext("canvas");e.clearRect(0,0,d,m),e.draw(!0),l(!1)},children:"关闭海报"})}),e(i,{className:"dashboard-item",onClick:r,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},_o=({skuCode:o,priceShow:l,collectionShow:s,scene:n})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:p,Button:u,IconMobile:N}=g(),{rsSkuDomainList:M,rsGoodsFileDomainList:y,goodsDayinfo:C}=ae(o,n),{goodInfo:D}=se(M);console.log("goodInfo",D);const w=D.mpriceStairDomainListMap||{},f=Object.values(w),b=f.length>0?f[0]:[],x=b.length>0?b.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";te(o);const z=I(),k="WEB"===T.getEnv();Ho.emit("IsCollectionShow",{collectionShow:s}),i((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&S()};return Ho.on("bannerImageClick",e),()=>{Ho.off("bannerImageClick",e)}}),[]);const S=()=>{var e;k?z.setClipboardData({data:window.location.href,success:()=>{z.showToast({title:"复制成功",icon:"success"})},fail:()=>{z.showToast({title:"复制失败",icon:"none"})}}):null===(e=null==z?void 0:z.showShareMenu)||void 0===e||e.call(z,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})};return a(d,{className:"goodsDetail-topInfo",children:[e(Jo,{goodsName:D.goodsName,shareShow:c,setShareShow:r,rsGoodsFileDomainList:y}),a(d,{className:"lPart",children:[a(m,{className:"name",style:{display:"flex",alignItems:"center"},children:["16"==D.goodsType?e(d,{className:"pre-sale",children:"预售商品"}):null,D.goodsName]}),"16"==D.goodsType&&C&&a(m,{className:"price",children:["预计发货时间:",C,"天内"]}),e(d,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:a(d,{style:{display:"flex",flexDirection:"column"},children:[a(m,{className:"price",style:{display:l?"block":"none"},children:["会员价:",Na(D.pricesetNprice)]}),a(m,{className:"price",style:{display:l?"block":"none"},children:["促销价:",Na(D.pricesetNprice)]}),x?e(d,{className:"page",children:e($o,{content:x,position:"right"})}):null]})})]})]})},el=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=g(),{handleCollect:i,collection:n}=ee(o),{handleShare:c}=ce();return a(t,{className:"handleBar",children:[l?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:E(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),al=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=g(),{rsSkuDomainList:r}=ae(t,i),{goodInfo:d}=se(r);return re((e=>e.spec)),te(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:Na(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(el,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:$e(d.dataPic),skuCode:t})]})})),ol=s((()=>{const{Text:e}=g(),o=re((e=>e.count)),l=re((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",o," 规格: ",l.toString()]})})),ll=({dispatchPageStore:l})=>{const{View:s,Text:t}=g(),{openPopup:i}=de(l);return e(o,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(ol,{}),e("img",{src:Yo,alt:"",className:"icon"})]})]})})},sl=({skuCode:o,scene:l})=>{const{View:s,Text:t}=g(),{rsSkuDomainList:i}=ae(o,l),{goodInfo:n}=se(i),c=me(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},o)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},o))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},tl=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:i,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=g(),{save:p,isPick:u}=he(),N=n((()=>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:l}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:i}),a(h,{className:"date",children:[aa(o).format("YYYY-MM-DD")," - ",aa(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:u?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:t,couponAmount:1}),children:u?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),il=()=>{const{View:a,Image:o}=g();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},nl=l=>{var{skuCode:s,scene:t}=l;ha(l,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=g(),{rsSkuDomainList:d}=ae(s,t),{goodInfo:h}=se(d),{coupon:p,visible:u,setVisible:N}=pe(d,h.skuCode);return a(o,{children:["26"==h.goodsType?null:a(i,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(r,{src:Yo,alt:"",className:"icon"})]})]}),e(c,{popupVisible:u,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(Ua,{children:p.length>0?p.map(((e,a)=>m(tl,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(il,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},cl=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:n}=g(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);i((()=>{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(!o){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(n,{children:c.map(((a,o)=>e(ca,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},rl=({item:o})=>{const{View:l,Image:s,Text:t,Button:i}=g(),n=D(),c=I();f("user");const{userInfoCode:r}=f("user")||{userInfoCode:""};return a(l,{className:"rateItem",children:[a(l,{className:"topInfo",children:[a(l,{className:"lPart",children:[e(s,{src:o.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(l,{className:"userInfo",children:[e(l,{className:"name",children:o.userName}),e(cl,{readOnly:!0,size:14,count:o.evaluateScopeReList.length})]})]}),e(l,{className:"rPart",children:`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`})]}),a(l,{className:"pj-wrapper",children:[a(l,{className:"flex-1",children:[e(l,{className:"size",children:o.skuName}),e(l,{className:"content",children:o.evaluateGoodsContent}),o.evaluateGoodsImgs&&JSON.parse(o.evaluateGoodsImgs).length>0&&e(l,{className:"img-group",children:JSON.parse(o.evaluateGoodsImgs).map((a=>e(s,{src:$e(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{pa(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield ia({evaluateGoodsId:a,isLocalMock:!n}),yield w("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(o)},children:"删除"}):null]}),o.shopReply&&o.shopReply.length?e(l,{className:"merchant-reply",children:o.shopReply.map((({evaluateReplyContent:o},s)=>a(l,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:o})]},s)))}):null]})},dl=({evaluateArr:o})=>{const{View:l}=g();return console.log(7,o),e(l,{className:"goodsDetailEvaluate",children:o.length?a(l,{children:[a(l,{className:"topInfo",children:["评价 (",o.length,")"]}),o.slice(0,5).map(((a,o)=>e(rl,{item:a},o)))]}):e(po,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ml=process.env.REACT_APP_BASE_URL,hl=({goodsRemark:a})=>{const{View:o}=g(),l=n((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${ml}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ta,{nodes:l})})},pl=({goodsRemark:o})=>{const{View:l}=g(),[s,c]=t({}),[r,d]=t(!1),m=n((()=>{const e=window.location.hash.split("?")[1]||"";return new URLSearchParams(e).get("skuCode")||""}),[window.location.hash]),p=h((e=>pa(void 0,void 0,void 0,(function*(){if(e){d(!0);try{const a=yield v({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}))),[]);i((()=>{p(m)}),[m,p]);const u=s.rsPropertiesValueDomainList||[];return a(l,{className:"goodsDetail-info",children:[u.length>0&&e(l,{style:{fontSize:12,marginTop:10,display:"grid",borderRadius:6,background:"#fff",border:"solid 1px #f1f1f1",padding:"10px 40px",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px"},children:u.map(((o,s)=>a(l,{style:{marginRight:25,marginLeft:10},children:[" ",e(l,{style:{color:"black",fontSize:13,fontWeight:500},children:o.propertiesName}),e(l,{style:{color:"gray",fontSize:11},children:o.propertiesValueValue||"--"})]},s)))}),r&&e(l,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},gl=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:i,evaluateImg:c})=>{const{Text:r}=g(),d=n((()=>i?[{title:"商品详情",id:"1"},{title:"商品规格",id:"3"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(o,{children:d.map(((o,t)=>e(p,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},ul=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:i,scene:n})=>{const{View:c}=g(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=ae(i,n),p=ge(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(gl,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(hl,{goodsRemark:m}):2===r?e(dl,{evaluateArr:p,evaluateImgShow:l,evaluateImg:s}):1===r?e(pl,{goodsRemark:m}):null})]})},Nl=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:i})=>{const{View:n,Text:c}=g(),r=re((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(n,{className:"sizeArr",children:[e(c,{className:"title",children:o}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,o)=>e(n,{className:y({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:l.bind(null,a.specValueValue,i),children:a.specValueValue},o)))})]})},{Stepper:Ml}=N,yl=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=g(),i=s||1,n=l||999;return e(t,{className:"numStep",style:{width:"100px"},children:e(Ml,{value:a,min:i,max:n,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l!==a+1)if(l!==a-1){if(l<i)w(`不能小于${i}`,"none");else if(l>n)w("超库存","none");else if(l!==a){const e=oe.getState();oe.setState(Object.assign(Object.assign({},e),{count:l}))}}else o("minus");else o("plus")}})})},Il=s((({handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=g(),i=re((e=>e.count));return a(t,{className:"countWrap",children:[e(t,{className:"label",children:"购买数量"}),e(yl,{count:i,handleStep:o,goodsNum:l,goodsMinnum:s})]})})),Cl=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=g(),{skuList:r}=l,d=i&&"06"===i.goodsType?i.pricesetRefrice+"积分":Na(i.pricesetNprice);return a(o,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:$e(i.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",i.goodsNum]})]})]}),r.map(((a,o)=>e(Nl,{goodsShowname:i.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},Dl=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=g(),c=re((e=>e.isNeedButton)),r=re((e=>e.offShelf));return r?e(n,{className:y({btnWrap:!0,offShelf:r}),children:e(i,{className:"btn",children:"已下架"})}):e(o,{children:c?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:l,children:"立即购买"})]})})},wl=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=g(),{spec:c,goodInfo:r}=se(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:u}=ue(l,s,t,o);return a(i,{className:"goodsDetail-size-popup",children:[e(Ua,{children:e(n,{children:a(i,{className:"content",children:[e(Cl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Il,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),goodsNum:r.goodsNum,goodsMinnum:r.goodsMinnum})]})})}),e(Dl,{cashImpl:p,addShoppingImpl:u,addCardImpl:h})]})})),fl=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=g();return e(i,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(wl,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},bl=s((({serverShow:l,cartShow:s,lPartShow:n,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:p,rPartText:u,dispatchPageStore:N,skuCode:M,platform:y,scene:I})=>{const{View:D,IconMobile:w,Text:f}=g(),b=re((e=>e.offShelf)),{rsSkuDomainList:x,goodPro:z}=ae(M,I),{goodInfo:k}=se(x),{servicePopup:S}=ga(y),{addCardPopup:A,buyOpenPopup:v}=de(N),[L,j]=t("10px");return i((()=>{const e=(()=>{try{const e=T.getSystemInfoSync(),a=T.getEnv();if(a===T.ENV_TYPE.WEAPP||a===T.ENV_TYPE.ALIPAY||a===T.ENV_TYPE.SWAN||a===T.ENV_TYPE.TT||a===T.ENV_TYPE.JD){let a=0;if(e.safeArea&&e.safeArea.bottom)a=e.screenHeight-e.safeArea.bottom;else if(e.safeAreaInsets&&e.safeAreaInsets.bottom)a=e.safeAreaInsets.bottom;else if(e.model){const o=e.model.toLowerCase();(o.includes("iphone x")||o.includes("iphone 11")||o.includes("iphone 12")||o.includes("iphone 13")||o.includes("iphone 14")||o.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();j(e)}),[]),a(D,{className:"goodsDetailHandleBar",style:{paddingBottom:L},children:[a(D,{className:"linkGroup server",onClick:S,style:{display:l?"block":"none"},children:[e(w,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(D,{className:"txt",children:"客服"})]}),a(D,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:s?"block":"none"},children:[e(w,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(D,{className:"txt",children:"购物车"})]}),e(D,{className:"goods-detail-btn-group",children:b?e(D,{className:"btn addCart offShelf",children:e(f,{className:"btn",children:"已下架"})}):a(o,{children:["26"===z||!1===n?null:e(D,{className:"btn addCart",onClick:A,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(D,{onClick:v,className:"btn buy",style:Object.assign({color:m,backgroundColor:h,borderTopRightRadius:p,borderBottomRightRadius:p},!1===n?{borderTopLeftRadius:p,borderBottomLeftRadius:p}:{}),children:u||("10"===k.goodsPro?"预售抢购":"立即购买")})]})})]})})),Tl=l=>{var{$_dataSource:s={},dispatchPageStore:t=P,skuCode:i,scene:n}=l,c=ha(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ae(i,n),h=Ne(r,m),{popupVisible:p}=s;return a(o,{children:[e(bl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(fl,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},xl=s((({serverShow:o,cartShow:l,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:p,scene:u,platform:N})=>{const{View:M,IconMobile:y}=g(),{rsSkuDomainList:I}=ae(p,u),{goodInfo:D}=se(I),{servicePopup:w}=ga(N),{addCardPopup:f,buyOpenPopup:b}=de(h);return a(M,{className:"goodsDetailHandleBarOne",children:[a(M,{className:"linkGroup server",onClick:w,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(M,{className:"txt",children:"客服"})]}),a(M,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:l?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(M,{className:"txt",children:"购物车"})]}),a(M,{className:"goods-detail-one-btn-group",children:[e(M,{className:"btn addCart",onClick:f,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(M,{onClick:b,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===D.goodsPro?"预售抢购":"立即购买"})]})]})})),zl=l=>{var{popupVisible:s=!1,dispatchPageStore:t=P,skuCode:i,scene:n}=l,c=ha(l,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ae(i,n),h=Ne(r,m);return a(o,{children:[e(xl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(fl,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},kl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Sl=({setParams:o,activeColor:l})=>{const{View:s}=g(),[i,n]=t(0),[c,r]=t(kl);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(i===m?"active":""),onClick:()=>((e,a,l)=>{n(a),l&&r((e=>(e[a].order="asc"===l?"desc":"asc",[...e]))),o({sortField:e,order:l})})(c,m,t),style:{color:i===m?l:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ca,{style:{color:i===m&&"asc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:i===m&&"asc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Al=s((({classtreeCode:o="",searchParam:l="",activeColor:s="#e54e29",isHotSale:i=!1,goodsName:c=!0,goodsPrice:r=!0,lineationGoods:d=!0,salesQuantity:m=!0,goodsCar:h=!0,borderRadius:p=!0,goodsColor:u=!0,goodsGap:N=10,paddingLR:M=0,__link__:I={}})=>{console.log(111,I);const{View:C,Loading:D,SmoothView:w,Image:f,ScrollView:b,IconMobile:T}=g(),[x,z]=t({}),{loading:k,getData:S,list:A}=Me(o,l,x,i),v=n((()=>y("textBox",{btm:!r&&!d})),[r,d]),L=n((()=>y("name",{boxNone:!c})),[c]),j=n((()=>y("middle_margin",{boxNone:!m})),[m]),O=n((()=>y("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),B=n((()=>y({detailContent:!(L.includes("boxNone")&&j.includes("boxNone")&&O.includes("boxNone"))})),[L,j,O]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(Sl,{setParams:z,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${M}px`},children:e(Ua,{id:"listWrap",children:a(b,{onScroll:()=>S(x),children:[e(C,{className:"list",style:{gap:N},children:A.map((o=>a(C,{onClick:()=>ea(I,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(f,{src:$e(o.dataPic),className:"img"}),a(C,{className:B,children:[e(w,{className:L,children:o.goodsName}),a(C,{className:j,children:["已售:",o.goodsNum]}),a(C,{className:O,children:[a(C,{className:v,children:[e(w,{className:"price",style:{display:r?"block":"none"},children:Na(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:Na(o.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(T,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},o.skuCode)))}),k?e(D,{}):null]})})})]})})),vl=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:i,btnShape:c})=>{const{View:r}=g(),{cartIsEditor:d}=o,{editorImpl:m}=ye(a),h=n((()=>({border:l?`2px solid ${s}`:"",color:l?t:"",background:l?i:"",borderRadius:l?c:""})),[l,s,t,i,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Ll=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:i}=g();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:o}),e(t,{className:"choose",children:e(i,{"data-code":l,checked:l,value:s})})]})})),jl=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:c,SmoothRadio:r}=g();return e(i,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ua,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Ll,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},Ol=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=g();return e(o,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:l}),a(d,{className:"cartItem-size",children:["规格:",t," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:Na(c)}),0===s&&e(h,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),Bl=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:i}=g(),c=n((()=>{let a="";switch(l){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!==l?e(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[l]);return a(i,{className:"cart-item-image",children:[c,e(t,{className:"img",src:o,onClick:()=>C("goodDetail",{skuCode:s})})]})})),El=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:i}=g(),c=n((()=>(a||0===l)&&s.includes(o)),[s,a,o,l]);return console.log(106,typeof o),e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==l,checked:c,value:o,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),Pl=({promotion:l=[],updatePm:s,shoppingGoodsId:i,promotionCode:c})=>{const{View:r}=g(),[d,m]=t(!1),h=n((()=>((l||[]).find((e=>e.promotionCode===c))||{}).promotionName),[l]);return a(o,{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(i,"-"))},children:e(jl,{promotionCode:c,onChange:e=>{m(!1),s(i,Ce(e))},promotion:l||[],visible:d,setVisible:m})})]})},Yl=s((o=>{var{item:l}=o,s=ha(o,["item"]);const{View:t}=g(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(El,{cartIsEditor:n,dataState:l.dataState,select:i,shoppingGoodsId:l.shoppingGoodsId}),e(Bl,{dataState:l.dataState,dataPic:$e(l.dataPic),skuCode:l.skuCode}),e(Ol,Object.assign({},l,s))]})})),Vl=l=>{var{shoppingGoodsList:s=[]}=l,t=ha(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(p,{children:[e(Yl,Object.assign({},t,{item:o})),o.pmPromotionList?e(Pl,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},Ql=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=g(),i=n((()=>E(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>ea(l,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[l]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:o}),i]})},Rl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:i,SmoothView:n}=g();return a(i,{className:"cart-dis-title",children:[e(n,{className:"tips",children:s}),e(n,{className:"title",children:l}),o&&e(Ql,{link:t,disNextMsg:o})]})},Ul=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=g(),{cartSelect:m,cartUpdateCount:h,cartIsEditor:u}=t,{loading:N,cartList:M,onChange:y,handleStep:I,updatePm:C}=Ie(l,h,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:y,children:M.length?e(o,{children:M.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},h)=>a(p,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:n},children:[t?e(Rl,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(Vl,{cartIsEditor:u,promotionCode:l,handleStep:I,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(po,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Gl=({$_dataSource:o={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:l,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:i="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=g(),{cartInfo:p,cartDisMoney:u,cartSelect:N,cartIsEditor:M}=o,{toOrderImpl:y,deleteCart:I,clearAll:C,selectAll:D,ids:w,cartDetail:f}=De(N,p,l),b=n((()=>({border:`1px solid ${s}`,color:t,background:i,borderRadius:c})),[s,t,i,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:p.length===N.length?["true"]:[],onChange:D,children:e(h,{checked:p.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,M?{className:"del",children:[w.length?e(r,{onClick:C,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:I,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:Na(u)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:Na(f.amount)})]})]}),a(r,{onClick:y,className:"btn",style:b,children:["结算(",f.num,")"]})]})]})},Wl=({address:a})=>e(o,{children:E(a)?e(Hl,{}):e(Fl,{address:a})}),Fl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=g(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:l,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=o;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+l+s+t}}),[o]);return a(l,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(l,{className:"left",children:[a(l,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Hl=()=>{const{View:l,Text:s}=g();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Zl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:i=""})=>{const{View:n}=g(),c=we(a,l,o,s,t,i);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(Wl,{address:c})})},Kl=({address:a})=>e(o,{children:E(a)?e(Jl,{}):e($l,{address:a})}),$l=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=g(),i=n((()=>{const{provinceName:e,cityName:a,areaName:l,addressDetail:s,addressMember:t="",addressPhone:i=""}=o;return{displayName:t,displayPhone:i,address:(e||"")+(a||"")+(l||"")+(s||"")}}),[o]);return a(l,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(l,{className:"left",children:[a(l,{className:"left-title",children:[e(s,{children:i.displayName}),e(s,{className:"left-padding",children:i.displayPhone})]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Jl=()=>{const{View:l,Text:s}=g();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Xl=({refreshNum:a})=>{const{View:o}=g(),l=fe(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Kl,{address:l})})},ql=({tabActive:l,setTabActive:s})=>{const{Text:t}=g();return e(o,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((o,i)=>e(p,{children:a(t,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(t,{className:"line"})]})},o.id)))})},_l=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:n="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=g(),[h,p]=t("0");return i((()=>{be.contractPumode=h}),[h]),a(d,{className:"placeOrderAddressTabs",children:[a(d,{className:"delivery-header",children:[e(m,{className:"delivery-label",children:"配送方式:"}),e(d,{className:"tabs",children:e(ql,{tabActive:h,setTabActive:p})})]}),e(d,{className:"content",children:"0"===h?e(Zl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(Xl,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:n})})]})},es=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:i,promotionName:n,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=g();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:l}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:n}),a(d,{className:"date",children:[aa(o).format("YYYY-MM-DD")," - ",aa(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:i})})]})})})),as=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:i,couponEnd:n})=>{const{View:c,Text:r,Radio:d}=g();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:l}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:i}),a(r,{className:"date",children:[aa(o).format("YYYY-MM-DD")," - ",aa(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),os=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:p,Popup:u,Form:N,SmoothRadio:M,Button:y,SmoothCheckbox:I,ScrollView:C,Radio:D,Image:w}=g(),{shoppingGoodsList:f}=Te({refreshNum:l,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:b,visible:T,couponValue:x=[],setVisible:z,selectCoupon:k,onChange:S,onCreditChange:A,confirmImpl:v,resetImpl:L,contractPmode:j,onPayChange:O,payList:B,payName:E,creditList:P,creditInfo:Y,selectCredit:V,creditVisible:Q,payVisible:R,setPayVisible:U,handleChooseImg:G,contractEcurl:W,setCreditVisible:F}=xe(f,s);return console.log("shoppingGoodsList",f),a(o,{children:[f.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(o,{children:[a(h,{className:"coupon-select",onClick:()=>z(0!==b.length),children:[e(p,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(p,{className:"label",children:k?`已选择: ${k}`:0===b.length?"暂无可用优惠券":"请选择优惠券"}),0===b.length?null:e("img",{src:Yo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>U(!0),children:[e(p,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(p,{className:"label",children:E?`已选择: ${E}`:"请选择支付方式"}),0===b.length?null:e("img",{src:Yo,alt:"",className:"icon"})]})]})]}),Y.urechargeId&&"0"===j&&a(h,{className:"coupon-select",onClick:()=>F(0!==P.length),children:[e(p,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(p,{className:"label",children:V?0===+V?"不使用":`已选择: ${V}%`:"请选择授信"}),0===b.length?null:e("img",{src:Yo,alt:"",className:"icon"})]})]}),"1"===j&&a(h,{className:"coupon-select",children:[e(p,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:G,children:W?e(w,{src:W,className:"img",alt:W,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(u,{popupVisible:R,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ua,{children:e(C,{children:e(M,{value:j||"",onChange:O,children:(null==B?void 0:B.length)>0&&B.map(((o,l)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(D,{checked:o.ptfpmodeType===j,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(u,{popupVisible:Q,popupHandler:F,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ua,{children:e(C,{children:e(M,{onChange:A,children:(null==P?void 0:P.length)>0&&P.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(D,{value:o.flagSettingInfo}),0===o.flagSettingInfo?"不使用":`${o.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(u,{popupVisible:T,popupHandler:z,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ua,{children:e(C,{children:s?e(I,{value:(null==x?void 0:x.length)>0?x.map((e=>e.couponNo)):[],onChange:S,children:(null==b?void 0:b.length)>0&&b.map((e=>m(es,Object.assign({isDisabled:2===x.length},e,{key:e.couponNo}))))},"visible"):e(M,{value:(null==x?void 0:x.length)>0?x[0].couponNo:"",onChange:S,children:b.map(((e,a)=>m(as,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(y,{className:"operate reset",onClick:L,children:"重置"}),e(y,{className:"operate",onClick:v,children:"确认"})]})]})})]})},ls=({shippingMethod:o=1})=>{const{View:l}=g();return e(l,{className:"info placeOrder-blcWrap",style:1===o?{display:"block"}:{display:"none"},children:a(l,{className:"express placeOrder-blcItem",children:[e(l,{className:"label",children:"配送方式"}),e(l,{className:"value",children:"快递"})]})})},ss=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:i,longContractgoodsBeanStr:n,scontractCode:c})=>{const{View:r}=g(),{list:d}=Te({refreshNum:a,goodsNum:l,skuId:s,goodsBeanStr:i,shoppingGoodsId:t,longContractgoodsBeanStr:n,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],l)=>e(o,{children:(a||[]).map(((a,o)=>e(_a,Object.assign({},a),l)))})))})},ts=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:i,goodsBeanStr:n,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:p,Textarea:u}=g(),N=u||p,M=Te({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:i,goodsBeanStr:n,longContractgoodsBeanStr:c,scontractCode:r}),{payState:y,disCount:I,creditMoney:C,freight:D,payPrice:w,rebMoney:f}=M,b=M.pointsDeduction||0,T=M.urDiscount||0,{shoppingCountPrice:x,comDisMoney:z,changeContent:k,shoppingType:S,pricesetRefrice:A}=ze(y),v=Na(Math.max(w-C,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===S?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:Na(x)})]}),null!==b&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===S?b+"积分":Na(b)]})]}),"06"===S?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",Na(T)]})]}),"06"===S?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:Na(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:Na(-f.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:Na(-(z+I))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:Na(D)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:k})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:n?"0.00":v})]})]})})},is=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:p,Text:u,WrapLoading:N}=g(),{payPrice:M,list:y,payState:I,creditMoney:C,ocContractSettlList:D,pointsDeduction:w}=Te({refreshNum:i,goodsNum:n,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:f,loading:b}=ke({ocContractSettlList:D,payState:I,list:y,goodsBeanStr:r},d,Math.max(M-C,0));I&&I.length>0&&(I[0].shoppingType,I[0].pricesetRefrice);const T=Na(Math.max(M-C,0));return a(p,{className:"placeOrderFooter",children:[a(u,{className:"price",children:["合计: ",r?"0.00":T]}),e(N,{loading:b,children:e(p,{className:"btn",onClick:f,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ns=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=n((()=>D()),[]),{View:p,Text:u,Radio:N,IconMobile:M,WrapLoading:y,SmoothRadio:I}=g(),{paymentImpl:C,channelList:w,contract:f,handleRadio:b,loading:T}=Se({contractBillcode:o,contractBbillcode:l});return i((()=>{console.log("打印下当前的channelList",w),window.onPaymentFullfilled=e=>{console.log(e,"orderId-----------"),reLaunchHandler("result",{code:e})}}),[]),a(p,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(p,{className:"paymentMode",children:[a(p,{className:"topInfo",children:[a(u,{className:"title",children:[e(M,{value:"roundcheck"}),"订单提交成功"]}),a(p,{className:"info",children:["订单号:",f.current.contractBillcode," | 总金额:",Na(f.current.contMoney+(f.current.logMoney||0)),"元"]}),a(p,{className:"info",children:["还需支付:",Na(f.current.orderMoney),"元"]})]}),e(p,{className:"paymentGroup",children:e(I,{onChange:b,children:null==w?void 0:w.map((o=>a(p,{className:"paymentItem",children:[e(M,{value:o.fchannelBankImgurl}),a(p,{children:[a(p,{className:"base",children:[e(u,{children:o.fchannelName}),e(N,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]}),"1"===o.ptfchannelAmt?a(p,{className:"info",children:[a(p,{children:["账户余额:",o.faccountAmount,"元"]}),a(p,{children:["支付金额:",Na(f.current.orderMoney),"元"]})]}):null]})]},o.fchannelCode)))})})]}),e(p,{id:"v_html"}),e(y,{loading:T,children:e(p,{className:"btnGroup",onClick:C,children:e(p,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),cs=({dataObj:o})=>{const{View:l,Text:s}=g();return a(l,{className:"placeOrderResultWrap",children:[a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:o.contractBillcode})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:Na(o.dataBmoney)})]})]})},rs=s((({code:o,goodsBeanStr:l,borderRadius:s,leftColor:t,leftButtonColor:i,leftBorderColor:n,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:u,paddingTop:N,paddingBottom:M})=>{const{View:y,Text:I,IconMobile:D,WrapLoading:w}=g(),{result:b,loading:T}=Ae(o||(f("contractBillcode")||{}).contractBillcode,l);return e(y,{className:"placeOrderResult",style:{paddingTop:N,paddingBottom:M},children:e(w,{loading:T,children:a(y,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(D,{value:b.icon,style:{fontSize:"35px",color:b.color}}),a(y,{className:"tips",children:[e(I,{className:"title",children:b.msg}),e(I,{className:"tip",children:b.info})]}),"success"===b.sysRecode&&e(cs,{dataObj:b.dataObj}),a(y,{className:"btnGroup",style:{marginTop:20},children:[e(y,{className:"btn black",onClick:()=>l?C("orderlist"):C(b.menuCode,{contractBillcode:b.dataObj.contractBillcode}),style:{color:t,backgroundColor:i,border:`1px solid ${n}`,borderRadius:1===c?"20px":"0px"},children:b.buttonText}),e(y,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>C(d.value),className:"btn white",children:r})]})]})})})})),{Button:ds}=N,ms=a=>{var{dataState:l}=a,s=ha(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(hs,Object.assign({dataState:l},s))})},hs=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:i,btnColor:n,btnShape:c}=a,r=ha(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=g();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=ve(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e(ds,{style:{color:t,borderColor:i,backgroundColor:n},className:y({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},{Button:ps}=N,gs=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=n((()=>D()),[]),i=n((()=>s?I():null),[s]),c=e=>pa(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 o=document.execCommand("copy");if(document.body.removeChild(a),!o)throw new Error("复制失败")})),r=(e,a="success")=>{s&&i&&i.showToast?i.showToast({title:e,icon:a}):alert(e)};return e(ps,{className:"copy",size:"mini",fill:"outline",onClick:()=>pa(void 0,void 0,void 0,(function*(){if(a)try{s&&i&&i.setClipboardData?(yield new Promise(((e,o)=>{i.setClipboardData({data:a,success:e,fail:o})})),r("复制成功","success"),l(!0)):(yield c(a),r("复制成功","success"),l(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:o?"已复制":"复制"})})),us=({contractPaydate:a,init:l,countdownCancel:s,contractId:n})=>{const{View:c,SmoothView:r}=g(),{resultTime:d}=((e,a,o,l)=>{const[s,n]=t("");return i((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,i=s.getTime()-(t.getTime()-3600);i<999&&i>0?o(l).then((()=>{a()})):i>1e3&&n(ya(i,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,l,s,n);return e(o,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function Ns({contractBillcode:o,dataBmoney:l,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:p,countdownCancel:u}){const{View:N}=g(),M=Le(i,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:["订单号: ",o,e(gs,{copyContent:o})]}),e(N,{className:"status",children:M})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>C("orderDetail",{contractBillcode:o}),children:t.map((a=>e(_a,Object.assign({},a,{dataState:i,children:1===i&&e(us,{contractPaydate:h,init:c,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",Na(l)]})]}),e(ms,{init:c,contractType:p,contractId:n,contractBillcode:o,dataState:i,contractAppraise:r,dataBmoney:l})]})}const Ms=()=>{const{View:a,Image:o}=g();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ys=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:i}){const{View:n,ScrollView:c,Loading:r}=g(),{onScroll:d,data:h,loading:p,init:u,countdownCancel:N}=je(o,l,i);return e(n,{className:"orderListItemWrap",children:e(Ua,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(n,{children:[h.map(((e,a)=>m(Ns,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(n,{children:p?e(r,{}):null})]}):a(n,{className:"nodata_img",children:[e(Ms,{}),e(n,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Is=process.env.TARO_ENV;let Cs=Oe;if(console.log("platform",Is),"h5"==Is){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(Cs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=T.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(Cs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Ds=s((({refreshNum:a=0,indexId:o=0,borderRadius:l=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:i,Tabs:n}=g();return e(i,{className:"order-container",children:e(n,{defaultIndex:+o,tabs:Cs,render:o=>e(i,{className:"orderList",children:e(ys,{contractType:t,item:o,orderSpacing:s,refreshNum:a,borderRadius:l})})})})})),ws=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:h})=>{const{View:u,Text:N,Image:M}=g(),{orderDetail:y,handleApplyBtn:I,creditMoney:D,packageRemark:w,expressName:f}=Be(l||""),b=e=>aa(e).format("YYYY-MM-DD HH:mm:ss");return a(u,{className:"orderDetail",children:[e(u,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(u,{className:"orderDetailTopTitleContent",children:[a(u,{className:"icon_text",children:["待收货"===Le(y.dataState)?e(ca,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Le(y.dataState,y.contractAppraise)})]}),e(u,{className:"subTitleWrap",children:b(y.gmtCreate)})]})}),e(u,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:n+"px"},children:a(u,{style:{position:"relative",top:-26},children:[a(u,{className:"addressInfo",children:[e(u,{className:"lPart",children:e(ca,{value:"dizhi"})}),a(u,{className:"mPart",children:[a(u,{className:"personInfo",children:[e(N,{className:"personName",children:y.goodsReceiptMem}),e(N,{className:"personPhone",children:y.goodsReceiptPhone})]}),e(u,{className:"address",children:y.goodsReceiptArrdess})]}),e(u,{className:"rPart",children:[1,2,3].includes(Number(null==y?void 0:y.dataState))&&e(N,{onClick:()=>C("addressList",{contractBillcode:y.contractBillcode}),children:"编辑"})})]}),a(u,{className:"orderDetailGoodsWrap",children:[y.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{C("goodDetail",{skuCode:l.skuCode})},children:[e(_a,Object.assign({},l),l.contractGoodsId),e(u,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),C(h,{skuCode:l.skuCode})},children:"商品快照"}),Number(y.dataState)>1&&Number(y.dataState)<4&&"06"!==y.contractType?e(u,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),I.bind(null,l,y.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(u,{className:"priceInfo",children:"06"!=y.contractType?a(p,{children:[a(u,{className:"priceInfoFloor top",children:[a(u,{className:"totalNum",children:["共",y.goodsNum,"件商品"]}),a(u,{className:"totalPrice",children:["合计 ",parseFloat((y.dataBmoney-y.refundMoney).toFixed(2))]})]}),a(u,{className:"priceInfoFloor",children:[e(u,{className:"totalNum",children:"商品总额"}),a(u,{className:"totalPrice",children:["¥",y.contractInmoney]})]}),a(u,{className:"priceInfoFloor",children:[e(u,{className:"totalNum",children:"优惠"}),a(u,{className:"totalPrice",children:["¥",-y.goodsPmoney]})]}),a(u,{className:"priceInfoFloor",children:[e(u,{className:"totalNum",children:"客服电话"}),e(u,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(o,{children:[a(u,{className:"express",children:[e(u,{className:"label",children:"物流信息"}),e(u,{className:"name",children:f||"暂无物流信息"})]}),a(u,{className:"express",children:[e(u,{className:"label",children:"配送信息"}),e(u,{className:"name",children:"1"===y.contractPumode?"自提":"快递"})]})]}),"06"!==y.contractType&&a(u,{className:"express",children:[e(u,{className:"label",children:"发票信息"}),e(u,{className:"name",children:0===y.contractInvstate?"未开票":1===y.contractInvstate?"已提交":"已开票"})]}),a(u,{className:"orderInfo",children:[e(u,{className:"orderInfoItem",children:e(u,{style:{fontSize:14},children:"订单信息"})}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"运费"}),a(u,{className:"name",children:["¥",y.goodsLogmoney]})]}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"买家留言"}),e(u,{className:"name",children:w||"-"})]}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"订单编号"}),a(u,{className:"context_copy",children:[e(u,{className:"name",children:y.contractBillcode}),e(gs,{copyContent:y.contractBillcode})]})]}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"下单时间"}),e(u,{className:"name",children:b(y.gmtCreate)})]}),"06"!=y.contractType?a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"授信金额"}),e(u,{className:"name",children:Na(-D)})]}):"",a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"支付方式"}),e(u,{className:"name",children:e(u,{className:"name",children:"0"===y.contractPmode?"线上支付":"线下支付"})})]}),"1"===y.contractPmode&&a(u,{className:"orderInfoItem container-img-top",children:[e(u,{className:"label",children:"付款凭证"}),e(u,{className:"name",children:e(M,{mode:"widthFix",style:{width:100},src:$e(y.contractEcurl)})})]})]}),e(u,{className:"btnGroupFooter",children:e(ms,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:y.contractBillcode,contractId:y.contractId,contractType:y.contractType,dataState:y.dataState,contractInvstate:y.contractInvstate,dataBmoney:y.dataBmoney,contractAppraise:y.contractAppraise})})]})})]})})),fs=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:i}=g(),n=O(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=O(l,"packageList.length",o.count),r=O(l,"packageList[0].expressName",o.expressName),d=O(l,"packageList[0].packageBillno",o.packageBillno),m=O(s,"state",o.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",c," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",r]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},bs=({defaultValue:o,detail:l})=>{const{View:s}=g(),t=O(l,"message",o.message),i=O(l,"data",o.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.map(((o,l)=>a(s,{className:"step",children:[e(s,{className:"time",children:o.time}),e(s,{children:o.context})]},l))):e(s,{className:"noInfo",children:t})})},Ts=s((({code:o,defaultValue:l})=>{const{View:s}=g(),{info:t,detail:i,stateObj:n}=Ee(o);return a(s,{className:"expressInfo",children:[e(fs,{info:t,detail:i,stateObj:n,defaultValue:l}),e(bs,{detail:i,defaultValue:l})]})})),xs=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:n,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:p}=g(),{servicePopup:u}=ga(),[N,M]=t(c),[y,I]=t(n);return i((()=>{M(f("userNickname")),I(f("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${l}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>C("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:u})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(p,{src:y,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),zs=s((({title:o,columnList:l})=>{const{View:s,Text:n,Badge:c,Image:r}=g(),[d,m]=t({}),[h,p]=t(0),u=()=>pa(void 0,void 0,void 0,(function*(){try{const e=yield L();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}}));i((()=>{const e=f("myPageShowNum")||0;p(e),u();const a=setInterval((()=>{const e=f("myPageShowNum")||0;e!==h&&(p(e),u())}),500);return()=>{clearInterval(a)}}),[h]);const N=(e,a)=>{4!==e.id?C("orderlist",{indexId:a+1}):C("afterSalesList")};return console.log(333,l,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:o}),e(s,{className:"more",onClick:()=>C("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:N.bind(null,o,l),className:"contentItem",style:{display:o.show?"block":"none"},children:[e(c,Object.assign({},d[o.code]>0?{content:d[o.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:o.imgUrl,className:"icon"})})),e(n,{className:"subTitle",children:o.label})]},l)))})]})})),ks=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:i,IconMobile:n,Image:c}=g();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>C(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:$e(o.imgUrl),className:"icon"}),e(i,{className:"label",children:o.link.label})]}),e(n,{value:"xiangyou1"})]},l)))})})),Ss=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=g(),{Rate:c}=N;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":l,"--active-color":o}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,o)=>e(n,{src:a.imgUrl,className:"img"},o)))})]})},As=[{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"}]}],vs=s((()=>{const[l,s]=t("1"),{View:i}=g(),n=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(o,{children:[e(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===l?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:As.map(((a,o)=>e(Ss,{itemData:a},o)))})]})})),Ls=s((({code:o,borderRadius:l,borderColor:s,color:i,buttonColor:n,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:u,Submit:M,changeContent:y,addImg:C,removeImg:D,getImgUrls:w}=Pe(o),{Button:f}=N,{View:b,Image:T,TextArea:x,Textarea:z}=g(),k=z||x,S="WEAPP"===I().getEnv(),A="undefined"!=typeof window,[v,L]=t(0),j=c("宝贝满足你吗?分享一下它吧"),O=e=>{L(e);if(w(e).length>=3)if(S){I().showToast({title:"最多上传3张图片",icon:"none"})}else A&&alert("最多上传3张图片");else(()=>{if(S){const e=I(),a=3-w(v).length;if(a<=0)return void e.showToast({title:"最多上传3张图片",icon:"none"});e.chooseImage({count:a,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){var a;(e.tempFilePaths||(null===(a=e.tempFiles)||void 0===a?void 0:a.map((e=>e.path)))||[]).forEach((e=>{C(v,e)}))}})}else if(A){const e=3-w(v).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const o=a.target.files;o&&o.length>0&&Array.from(o).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(v,a)}))},a.click()}})()};return a(b,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((o,s)=>a(p,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(T,{src:$e(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:o.goodsName}),e(b,{className:"goodsSize",children:o.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(cl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(k,{className:"content",placeholder:j.current,rows:5,maxLength:30,onInput:y.bind(null,s)})}),a(b,{className:"upload-imgs",children:[e(b,{className:"upload-title",children:"上传图片 (最多3张)"}),a(b,{className:"img-list",children:[a(b,{className:"upload-btn",onClick:()=>O(s),children:[e(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(b,{className:"upload-text",children:"上传图片"})]}),w(s).map(((o,l)=>a(b,{className:"img-item",children:[e(T,{className:"preview-img",src:o,onClick:()=>(e=>{if(S){const a=I(),o=w(v);a.previewImage({current:e,urls:o})}else A&&window.open(e,"_blank")})(o)}),e(b,{className:"delete-btn",onClick:()=>D(s,l),children:"×"})]},l)))]})]})]},s))),e(f,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:M,children:"提交"})]})})),js=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:i,isNeedDelete:n,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:h}=Ye(o),{Button:u}=N,{View:M,Image:y,Text:I}=g();return a(M,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(p,{children:[a(M,{className:"topInfo",children:[a(M,{className:"lPart",children:[e(y,{src:$e(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(M,{className:"goodsInfo",children:[e(M,{className:"goodsName",children:o.goodsName}),e(M,{className:"goodsSize",children:o.skuName})]})]}),e(M,{className:"rPart",children:o.pricesetNprice&&a(M,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(M,{className:"rate",children:[e(M,{className:"title",children:"商品评价"}),e(cl,{readOnly:!0,count:(null===(t=o.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(M,{className:"evaluate",children:e(M,{className:"content",children:e(I,{children:o.evaluateGoodsContent||""})})}),o.evaluateGoodsImgs&&e(M,{className:"evaluate-imgs",children:(()=>{let a=[];const s=o.evaluateGoodsImgs;if("string"==typeof s&&s.startsWith("["))try{a=JSON.parse(s)}catch(e){a=[]}else"string"==typeof s&&(a=s.split(",").filter(Boolean));return a.map(((a,o)=>e(y,{className:"evaluate-img",src:$e(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s)})),m.length?e(u,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:h,children:"删除"}):null]})})),Os=({item:o,edit:l,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=g(),r=s.includes(o.collectCode);return a(t,{className:"collectItem",children:[l?e(n,{className:"lPart",value:o.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(o.dataState)||C("goodDetail",{skuCode:o.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(i,{src:$e(o.collectOppic),className:"img"}),e(t,{className:[2,3].includes(o.dataState)?"tag":"",children:[2,3].includes(o.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:o.collectOpcont}),a(c,{className:"price",children:[o.collectOpnum," 元"]})]})]})]})},Bs=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,setChecked:d,handleSelectAll:m,selectAllChecked:h,setSelectAllChecked:p}=Ve(),{View:u,ScrollView:N,SmoothCheckbox:M,Checkbox:y,Button:I,Image:C}=g();return e(u,{className:"collectList",children:0===o.length?e(u,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(u,{className:"hasDate",children:[e(u,{className:"topBar",children:e(u,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(Ua,{id:"topBar",children:a(N,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(M,{value:r,onChange:i,style:{height:"100%"},children:o.map((a=>e(Os,{item:a,edit:l,checked:r},a.collectId)))}),l?a(u,{className:"handleBar",children:[e(u,{className:"checkAll",style:{width:"130px"},children:e(y,{value:"1",checked:h,onChange:()=>{if(!h){const e=o.map((e=>e.collectCode));d(e),p(!0)}else d([]),p(!1)},children:"全选"})}),e(I,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Es=({item:o,edit:l,checked:s})=>{var t,i;const{View:n,Image:c,Checkbox:r,SmoothView:d}=g();return a(n,{className:"collectItem",children:[l?e(r,{className:"lPart",value:o.collectCode,checked:s}):null,a(n,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:o.collectOpcode}),children:[e(c,{src:$e(null===(t=o.shopdeInfo)||void 0===t?void 0:t.shopdeLogo),className:"img"}),a(n,{className:"info",children:[e(d,{className:"title",children:o.collectOpcont}),e(d,{className:"scope",children:null===(i=o.shopdeInfo)||void 0===i?void 0:i.shopdeScope})]})]})]})},Ps=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ve(1),{View:h,ScrollView:p,SmoothCheckbox:u,Checkbox:N,Button:M,Image:y}=g();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(y,{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(!l),children:l?"完成":"编辑"})}),e(Ua,{id:"topBar",children:a(p,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(u,{value:r,onChange:i,style:{height:"100%"},children:o.map(((a,o)=>e(Es,{item:a,edit:l,checked:r},a.collectId||o)))}),l?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",style:{width:"130px"},children:e(u,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(M,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Ys=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:i,SmoothView:c}=g(),r=n((()=>o.footprintOpnum?`${o.footprintOpnum}元`:""),[o.footprintOpnum]);return a(s,{className:"footprintItem",children:[l?e(s,{className:"lPart",children:e(i,{value:o.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:$e(o.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:o.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Vs=({item:l,edit:s})=>{const{View:t}=g();return a(t,{className:"footPrint",children:[e(o,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==l?void 0:l.title})}),l.option.map(((a,o)=>e(Ys,{footprintItem:a,edit:s},o)))]})},Qs=({footprintList:a,edit:l})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?aa(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=Y(e,"gmtCreate");return Object.keys(o).map((e=>({title:e||"",option:o[e]})))}),[a]);return e(o,{children:s.map(((a,o)=>e(Vs,{item:a,edit:l},o)))})},Rs=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:i}=g(),{footprintList:n,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:p,checked:u}=Qe();return e(i,{loading:p,children:e(o,{className:"footprint",children:a(o,{className:"hasDate",children:[e(o,{className:"topBar",children:e(o,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(Ua,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:u,onChange:d,children:e(Qs,{footprintList:n,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Us=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:i})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=g(),{signedDates:p,pointsNum:u,loading:N,signing:M,handleSignin:y}=Re(),I=aa(),C=I.format("YYYY-MM-DD"),D=n((()=>p.includes(C)),[p,C]),w=n((()=>{const e=I.year(),a=I.month(),o=aa(`${e}-${a+1}-01`),l=o.endOf("month"),s=o.day(),t=0===s?6:s-1,i=o.subtract(t,"day"),n=l.day(),c=0===n?0:7-n,r=l.add(c,"day"),d=[];let m=i;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(I,"day"),isSigned:p.includes(e)}),m=m.add(1,"day")}return d}),[I,p]),f=n((()=>I.format("YYYY年MM月")),[I]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:i+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:f})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,o)=>e(c,{className:"weekDay",children:e(r,{children:a})},o)))}),e(c,{className:"calendarGrid",children:w.map(((o,s)=>a(c,{className:`calendarDay ${o.isCurrentMonth?"":"otherMonth"} ${o.isToday?"today":""} ${o.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:o.isToday?{color:l}:{},children:o.date.date()}),o.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:[u>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:u})," 积分"]})}),e(d,{className:"signinButton",disabled:D||M,onClick:y,style:{backgroundColor:l,opacity:D?.3:1,borderRadius:1===s?"22px":"8px"},children:M?"签到中...":D?"已签到":o})]})]})})})),Gs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:i})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=g(),[h,p]=t((()=>aa())),[u,N]=t(!1),[M,y]=t((()=>aa().year())),[I,C]=t((()=>aa().month()+1)),{signinDetails:D,loading:w,refresh:f}=Ue(h),b=n((()=>h.format("YYYY年MM月")),[h]),T=n((()=>Array.from({length:12},((e,a)=>a+1))),[]),x=n((()=>D.sort(((e,a)=>aa(a.date).valueOf()-aa(e.date).valueOf()))),[D]);return e(m,{loading:w,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:i+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:o}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;y(e),C(a),N(!0)},children:[e(r,{className:"dateText",children:b}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:x.length>0?x.map(((o,s)=>{const t=aa(o.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:l},children:["+",o.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:u,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{y((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[M,"年"]}),e(c,{className:"yearArrow",onClick:()=>{y((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:T.map((o=>e(c,{className:"monthItem "+(I===o?"active":""),onClick:()=>(e=>{C(e);const a=aa(`${M}-${String(e).padStart(2,"0")}-01`);p(a),N(!1)})(o),style:I===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Ws=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Fs=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=g();return e(s,{className:"promotionListTab",children:Ws.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},i)))})})),Hs=({data:o})=>{const{View:l}=g(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,promotionEndtime:c}=o;return a(l,{className:"promotionItem",children:[a(l,{className:"lPart",children:[e(l,{className:"round"}),e(l,{className:"tagBg",children:a(l,{className:"txt",children:["官方",s]})}),e(l,{className:"rule",children:i.at(-1).discName}),e(l,{className:"title",children:t}),a(l,{className:"time",children:[aa(n).format("YYYY-MM-DD")," ~ ",aa(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},Zs=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[i,n]=t(Ws[0].val),{list:c,getData:r}=Ge({params:i}),{View:d,ScrollView:m}=g();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Fs,{activeColor:o,setParams:n,params:i}),e(d,{children:e(Ua,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(Hs,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=g(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})}));const Ks=()=>{const{View:a,Image:o}=g();return e(a,{className:"noData",children:e(o,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},$s=({list:l,coe:s,config:t,backgroundColor:i,color:n,shopName:c})=>{const{View:r,Text:d}=g();return e(o,{children:l.length?l.map(((l,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===l.dataState?"overdue":""}`,style:{backgroundColor:i,color:n},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:l.pbName}),e(d,{className:"title",children:l.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||l.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",l.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",aa(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",aa(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",aa(l.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===l.dataState?e(o,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Ks,{})})},Js=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:c,ScrollView:r}=g(),{coe:d,getList:m,config:h,switchTab:p,list:u=[]}=We();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:h.current.map(((o,l)=>a(n,{className:"couponTabItem "+(d.current===l?"active":""),onClick:()=>p(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(Ua,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e($s,{backgroundColor:o,color:l,queue:i,list:u,coe:d,config:h})})})})]})})),Xs=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:p}=g(),{list:u,takeCoupon:N,takeList:M}=Fe({defaultValue:o,coupons:l});return e(p,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:u.map(((o,l)=>{const m=O(o,"pbName"),h=O(o,"pmPromotionDiscountList"),g=O(h.at(-1),"discName"),u=O(o,"promotionName"),y=aa(O(o,"promotionBegintime")).format("YYYY-MM-DD"),I=aa(O(o,"promotionEndtime")).format("YYYY-MM-DD"),C=O(o,"promotionCode");return a(p,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(p,{className:"lPart",children:[a(p,{className:"intro",children:[e(p,{className:"type",style:{color:n},children:m}),e(p,{className:"rule",style:{color:r},children:g})]}),a(p,{className:"info",children:[e(p,{className:"title",style:{color:c},children:u}),a(p,{className:"validity",style:{color:d},children:[y," - ",I]})]})]}),e(p,{className:"rPart",style:{backgroundColor:i},children:-1===o.availabledate||M.includes(l)?e(p,{className:"txt",children:"已 领 取"}):e(p,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),qs=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:u}=g(),{list:N,takeCoupon:M,takeList:y}=Fe({defaultValue:o,coupons:l});return e(u,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=O(o,"pbName"),h=O(o,"pmPromotionDiscountList"),p=O(h.at(-1),"discName"),g=O(o,"promotionName"),N=aa(O(o,"promotionBegintime")).format("YYYY-MM-DD"),I=aa(O(o,"promotionEndtime")).format("YYYY-MM-DD"),C=O(o,"promotionCode");return a(u,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[e(u,{className:"type",style:{color:n},children:m}),e(u,{className:"rule",style:{color:c},children:p}),e(u,{className:"info",style:{color:r},children:g}),a(u,{className:"validity",style:{color:d},children:[N," - ",I]})]}),e(u,{className:"rPart",style:{backgroundColor:i},children:-1===o.availabledate||y.includes(l)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>M({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),_s=s((o=>{var{type:l=1,coupons:s=[]}=o,t=ha(o,["type","coupons"]);const{View:i}=g();return a(i,{className:"getCouponOne",children:[1===l?e(Xs,Object.assign({coupons:s},t)):null,2===l?e(qs,Object.assign({coupons:s},t)):null]})})),et=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:i}=He(l);return e(M,{navigator:i,color:s,speed:o,direction:a,content:t})},at=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=g(),{info:r}=Ze(o);return a(n,{className:"noticeDetailContainer",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(n,{className:"content",children:r.noticeContext})]})})),ot=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Ke(o),{View:c,ScrollView:r}=g(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:p}=n;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(Ua,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:p}),a(c,{className:"time",children:["发布时间:",aa(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{yo as AddressDetail,go as AddressList,uo as AddressListBtn,Ha as AfterSalesApply,so as AfterSalesDetail,qa as AfterSalesList,co as AfterSalesType,Zs as AllPromotionList,ot as ArticleDetail,Pa as BackTop,Ul as CartList,Gl as CartOperate,vl as CartTop,Aa as ClassifyNav,ja as ClassifyNavOne,La as ClassifyNavOneJsx,Ea as ClassifyNavThree,Oa as ClassifyNavTwo,Bs as CollectionList,Ps as CollectionShopList,Js as CouponList,Va as Cube,Ls as EvaluateDetail,vs as EvaluateList,js as EvaluateViewDetail,Ts as ExpressInfo,Rs as FootPrint,_s as GetCouponOne,Go as Goods,zo as GoodsClassify,Lo as GoodsClassifyOne,Eo as GoodsClassifyTwo,ul as GoodsDetailAndEvaluate,Ko as GoodsDetailBanner,nl as GoodsDetailCoupon,Tl as GoodsDetailHandleBar,zl as GoodsDetailHandleBarOne,_o as GoodsDetailInfo,al as GoodsDetailInfoOne,sl as GoodsDetailPromotion,ll as GoodsDetailSku,Al as GoodsList,Wo as GoodsSlider,Fo as GoodsSlideshow,ma as Line,Us as MemberSignin,xs as MineData,ks as MineFunction,zs as MineOrderEntry,Io as MyAgreementList,Do as MySetting,Co as MySettingJsx,et as Notice,at as NoticeDetail,ws as OrderDetail,Ds as OrderList,ns as PaymentMode,fo as PickupPointList,Zl as PlaceOrderAddress,_l as PlaceOrderAddressTabs,os as PlaceOrderCoupon,ls as PlaceOrderDelivery,ss as PlaceOrderGood,ts as PlaceOrderInfo,is as PlaceOrderOperate,rs as PlaceOrderResult,ca as QjMobileIcon,Qo as Search,Uo as SearchPage,Ro as SearchStyleTwo,na as Service,Gs as SigninDetail,za as Slider,da as TextLine,ra as Title,Ia as ToPrice,ka as Video,bo as WechatAddressBtn,ua as addressIdConst,Na as fixPrice,Ma as fixPrice1,ya as formatTime,ga as useService};
|
|
1
|
+
import{jsx as e,jsxs as a,Fragment as o}from"react/jsx-runtime";import l,{memo as s,useState as t,useEffect as i,useMemo as n,useRef as c,useContext as r,createContext as d,createElement as m,useCallback as h,Fragment as p}from"react";import{useComponent as g,IconMobile as u,antdMobile as N,NoticeBar as M}from"@brushes/simulate-component";import y from"classnames";import{getTaro as I,navigatorHandler as C,getEnv as D,taroMessage as w,getStorage as f,setStorage as b}from"@brushes/utils";import T,{useRouter as x}from"@tarojs/taro";import{queryOcsconfigList as z,updateContractAddress as k,getAddress as S,find as A,goodsDetailQuery as v,getContractNumbers as L}from"qj-b2c-api";import{queryOcserviceConfPageByMember as j}from"qj-b2b-api";import{get as O,isEqual as B,isEmpty as E,noop as P,groupBy as Y}from"lodash-es";import{useCube as V,useGoTop as Q,useAfterSalesApply as R,useAfterSalesList as U,afterSalesTabConfig as G,useAfterSalesDetail as W,useAfterSalesChooseType as F,useAddressItem as H,useAddressList as Z,useEditAddress as K,useMySetting as $,usePickupPointItem as J,usePickupPointList as X,useGoodsClassify as q,useGoods as _,useGoodCollection as ee,useGoodDetail as ae,goodStore as oe,useBanner as le,useGoodSpecAndPrice as se,useGoodFootprint as te,useCreatePoster as ie,useCreateMiniPoster as ne,useGoodsShare as ce,useGoodSkuStore as re,popupImplement as de,usePromotion as me,useAddCoupon as he,useCoupon as pe,useEvaluate as ge,useAddShopping as ue,useGoodSku as Ne,useGoodsList as Me,useCartTop as ye,useCartListNext as Ie,getRadioValue as Ce,useCartOperate as De,useOrderAddress as we,useOrderPickupAddress as fe,userAddressData as be,useOrderGood as Te,useOrderCoupon as xe,useOrderInfo as ze,useOrderPay as ke,useOrderResult as Se,useOrderResultResult as Ae,useOrderOperate as ve,orderStatusImpl as Le,useOrderList as je,orderStatusList as Oe,useOrderDetail as Be,useExpressInfo as Ee,useEvaluateDetail as Pe,useEvaluateViewDetail as Ye,useCollectionList as Ve,useFootprint as Qe,useMemberSignin as Re,useSigninDetail as Ue,useMarketingPromotion as Ge,useCouponList as We,useAllCoupon as Fe,useNotice as He,useNoticeDetail as Ze,useArticleDetail as Ke}from"qj-b2c-store";import{fullPath as $e,checkMobile as Je,ProvinceComponent as Xe,CityComponent as qe,AreaComponent as _e,navigatorLink as ea}from"@brushes/shared-utils";import aa from"dayjs";import{DynamicForm as oa}from"@brushes/mobile-form";import{View as la,Image as sa,RichText as ta}from"@tarojs/components";import{deleteEvaluateGoods as ia}from"b2c-api";const na=s((({width:a,height:o,top:l,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:c}=g();return e(c,{style:{width:a,height:o,borderRadius:n,top:l,left:i,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=g();return e(i,{onClick:l,className:y(o,t?`${o}-${t}`:"",a),style:s})},ra=s((({value:l,shared:s,goPath:t,goPointsPath:i,textIndent:n,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:u,paddingTop:N,paddingLeft:M,paddingRight:y,paddingBottom:D})=>{const{View:w,IconMobile:f,Button:b}=g(),x=I(),z="WEB"===T.getEnv(),k=()=>{const e=I();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(w,{className:"components-title",style:{paddingTop:N,paddingBottom:D},children:[e(w,{onClick:()=>{var e;e=l,t?C("goodList",{searchParam:e}):i&&C("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:u,paddingLeft:M,paddingRight:y,textIndent:n},children:l}),s&&e(o,{children:z?e(w,{onClick:e=>{var a;e.stopPropagation(),z?k():null===(a=null==x?void 0:x.showShareMenu)||void 0===a||a.call(x,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(b,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})})),da=({TextLineBgColor:o,text:l,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:p}=g();return a(p,{className:"textLine",style:{backgroundColor:o,textAlign:n,margin:1===s?"0 10px":""},children:[e(p,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(p,{className:"txt",style:{backgroundColor:o,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${i}px`,color:c},children:l})]})},ma=s((({borderStyle:a,borderRadius:o,height:l,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:c}=g();return e(c,{style:{paddingTop:i,paddingBottom:n},children:e(c,{style:{borderRadius:o+"%",borderStyle:a,width:s+"%",height:l+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ha(e,a){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&a.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(o[l[s]]=e[l[s]])}return o}function pa(e,a,o,l){return new(o||(o=Promise))((function(s,t){function i(e){try{c(l.next(e))}catch(e){t(e)}}function n(e){try{c(l.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(i,n)}c((l=l.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ga=(e="b2c")=>{const[a,o]=t([]),l=n((()=>D()),[]);i((()=>{pa(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>pa(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield z();case"b2b":return yield j().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=O(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${O(l,"ocserviceConfRemark")}: ${O(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${O(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;I().showActionSheet({itemList:a})}}},ua={label:""},Na=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Ma=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ya=(e,a)=>{const o=Math.floor(e/1e3)%60,l=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${l}分钟 ${o}秒${a}`},Ia=e=>1===String(e).indexOf(".")?Ca(e):Da(e),Ca=e=>{const a=Number(e).toFixed(0),o=(Number(e)-Number(a)).toFixed(2),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+"."+String(o).slice(2)},Da=e=>{const a=Number(e).toFixed(0),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+".00"},wa=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const fa=(e="")=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?wa+e:e?wa+"/paas/shop/"+e:e),[e]),ba=({src:a,style:o,actived:l})=>{const s=c(null);return i((()=>{s.current&&(l?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)))}),[l]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:o,src:a})},Ta=s((({item:a,isPlay:l,position:s,direction:t})=>{var i,n;const{Image:c,View:r}=g(),d=fa(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(ba,{actived:l,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:C.bind(null,null===(i=a.link)||void 0===i?void 0:i.value,null===(n=a.link)||void 0===n?void 0:n.params)})})})),xa=s((({Position:l="none",className:s="",className1:t="",defaultValue:i=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:p,paddingBottom:u,paddingLeft:N,paddingRight:M,selectImg:I,imgHeight:C,fontsize:D=16,textAlign:w="center",fontColor:f="#000000",backGroundColor:b="#ffffff"})=>{const T=n((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:x,View:z}=g(),k=V(i,I||[]),S=a=>e(z,{className:t,style:{fontSize:D,zIndex:99,justifyContent:"left"===w?"flex-start":"center"===w?"center":"flex-end",color:f,backgroundColor:b},children:a.title});return e(z,{className:s,style:{paddingTop:p,paddingBottom:u,paddingLeft:N,paddingRight:M},children:e(x,{imgHeight:C,data:k,className:T,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(o,{children:["top"===l||"bottom"===l?S(s):null,e(Ta,{isPlay:t===i,item:s,position:l,direction:m})]})})})})),za=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTB:N=0,paddingLR:M=0,fontsize:I=16,textAlign:C="center",fontColor:D="#000000",backGroundColor:w="#ffffff",otherStyles:f=[],ImgShadow:b=!1,Position:T="top"})=>{const{View:x}=g(),z=n((()=>y("silder-title",{"silder-tops1":"top"===T&&"horizontal"===d,"silder-bottoms":"bottom"===T&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===T,"silder-tops":"vertical"===d&&"top"===T},...f)),[f,T]);return e(x,{style:{padding:`${N}px ${M}px`},children:e(xa,{Position:T,defaultValue:t,type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:I,textAlign:C,fontColor:D,backGroundColor:w,className:y({"outer-shadow":b}),className1:z})})})),ka=s((({url:a,poster:o,autoplay:l,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:c})=>{const{View:r}=g();return e(r,{style:{paddingTop:t,paddingBottom:i},children:e("video",{className:"components-video",src:a,poster:o,autoPlay:l,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:c}})})})),Sa=({src:a,borderRadius:o})=>{const{Image:l}=g(),s=fa(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},Aa=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=g(),r=V(o,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:r.map(((o,s)=>a(n,{className:"classifyNavItem",onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(o),children:[e(Sa,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),va=({src:a,imgRadius:o,imgBoxShadow:l})=>{const{Image:s}=g(),t=fa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none"}})},La=({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=g(),p=V(a,o);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:l,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:p.map(((a,o)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},children:e(va,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},o)))})},ja=s(La),Oa=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:p,marginBottom:u})=>{const{View:N}=g(),M=V(a,o),I=n((()=>y("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:u},children:M.map(((a,o)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:I,style:{fontSize:c,color:r},children:a.title})},o)))})})),Ba=a=>{const{imgRadius:o,imgBoxShadow:l,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=g(),m=fa(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return C(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:o,boxShadow:l?"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:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ea=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:u,marginBottom:N})=>{const{View:M}=g(),y=V(a,o);return e(M,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:N},children:y.map(((a,o)=>e(Ba,{layout:p,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},o)))})})),Pa=s((({position:a=10,bg:o,color:l,fontSize:s})=>{const t=n((()=>D()),[]),{View:i}=g(),{goTop:c}=Q();return e(i,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ca,{style:{display:"inline-block",color:l,fontSize:s,backgroundColor:o,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Ya=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=g(),i=fa(l.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===o?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},Va=s((({defaultValue:a,type:o,borderRadius:l,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=g(),p=V(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${o}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:p.map(((a,t)=>e(Ya,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Qa=l.createContext(null),Ra=s((()=>{const{View:a}=g(),{tip:o}=r(Qa);return e(a,{className:"afterSalesApplyTip",children:o})}));const Ua=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=ha(a,["bottomHeight","children","id","heightWrap"]);const d=n((()=>D()),[]),m=function(e){const[a,o]=t(0);return i((()=>{if(!D()||!e)return;const a=I().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;o(a)}})).exec()}))})),a}(s),h=function(e=""){return n((()=>{if(!D())return 0;const a=I(),o=+a.getStorageSync("safeArea"),l=+(a.getStorageSync("tabBarHeight")||0);return o+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?l:0)+(e?+e:0)}),[])}(o),{View:p}=g(),u=n((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,I().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${I().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(p,Object.assign({},r,{style:Object.assign(Object.assign({},u),{paddingBottom:s?"":h}),id:s,children:l}))},Ga=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=g(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:p}=r(Qa);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:p,children:e(o,{className:"reasonPopup",children:e(Ua,{children:a(i,{children:[e(o,{className:"title",children:"退款原因"}),e(l,{onChange:h,children:m.map(((l,t)=>a(o,{className:"reasonItem",children:[e(o,{className:"label",children:l.flagSettingInfo}),e(s,{value:l.flagSettingInfo})]},t)))})]})})})})})})),Wa=s((()=>{const{View:o}=g(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:i}=r(Qa);return a(o,{className:"afterSalesApplyFillIn",children:[a(o,{className:"reason",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款原因"})]}),e(o,{className:"choose",onClick:l,children:t?e(o,{className:"chooseResult",children:t}):a(o,{children:["请选择",e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(o,{className:"price",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款金额"})]}),e(o,{className:"allPrice",children:e(o,{className:"single",children:Na(i)})})]}),e(Ga,{popupShow:s})]})})),Fa=s((()=>{const{View:o,TextArea:l,Textarea:s}=g(),t=s||l,{handleChooseImg:i,imgGroup:n,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Qa);return a(o,{className:"afterSalesApplySubFillIn",children:[e(o,{className:"title",children:"补充描述和凭证"}),a(o,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(o,{className:"imgGroup",children:[n.length<m?e(o,{className:"add",onClick:i,children:a(o,{className:"addContent",children:[e(ca,{value:"shangchuanpingzheng"}),e(o,{className:"word",children:"上传凭证"}),a(o,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,l)=>e(o,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(o,{className:"cancel",onClick:d.bind(null,l),children:e(ca,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),Ha=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=g(),{tip:p,reasonList:u,popupVisible:N,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:b,limit:T,goodsInfo:x,handleFillInReason:z,handleSubmit:k,loading:S}=R({contractBillcode:l,skuCode:s});return e(h,{loading:S,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Qa.Provider,{value:{tip:p,reasonList:u,popupVisible:N,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:b,limit:T,goodsNum:t,goodsPrice:i,goodsInfo:x,handleFillInReason:z,handleSubmit:k},children:[e(Ra,{}),e(Wa,{}),e(Fa,{}),e(m,{className:"submitBtn",onClick:k.bind(null,t,l,o,i),children:"确定"})]})})})},Za={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Ka={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},$a=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:i,Image:n}=g();return a(i,{className:"afterSalesListItem",onClick:l.bind(null,o.refundCode),children:[a(i,{className:"title",children:[a(i,{className:"lPart",children:["服务单号: ",o.refundCode]}),a(i,{className:"rPart",children:[e(ca,{style:{color:null===(s=Za[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Za[o.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:Za[o.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src:$e(o.ocRefundGoodsList[0].dataPic),className:"img"})}),a(i,{className:"rPart",children:[e(i,{className:"goodsName",children:o.ocRefundGoodsList[0].goodsName}),a(i,{className:"count",children:["申请数量: ",o.ocRefundGoodsList[0].refundGoodsNum]}),a(i,{className:"count",children:["订单编号: ",o.contractBbillcode]})]})]}),a(i,{className:"tip",children:[e(i,{class:"lPart",children:Ka[o.refundType][o.dataState]}),e(ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ja=s((()=>{const{View:a}=g();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Xa=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=g(),{afterSalesList:i,goAfterSalesDetail:n,loading:c,haseData:r}=U(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(Ua,{id:"tabContent",children:e(s,{children:r?i.map((a=>e($a,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Ja,{})})})})})})),qa=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=g();return e(i,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:G,render:o=>e(Xa,{item:o,refreshNum:a})})})})),_a=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:p,Image:u,SmoothView:N}=g(),M="06"===d?m+"积分":Na(i),y=n((()=>t?`x ${t}`:""),[t]),I=(e=>{const a="string"==typeof e?e:"";if(!/^https?:\/\//i.test(a))return a;const o=a.indexOf("/paas/");return-1===o?a:a.slice(o).replace(/\/+/g,"/")})(l);return e(o,{children:a(p,{className:"card-item",children:[e(u,{src:$e(I),alt:"",className:"card-item-img"}),a(p,{className:"card-item-info",children:[a(p,{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:M})]}),a(p,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:y})]}),e(p,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},eo=(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]}},ao=l.createContext(null),oo=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(ao),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=g();return e(d,{popupVisible:l,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(Ua,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:o.map(((o,l)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:o.expressName}),e(c,{value:`${o.expressName}-${o.expressCode}`})]},l)))})]})})})})})),lo=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(ao),{View:n,Input:c}=g();return a(o,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:l,children:e(n,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流单号"})]}),e(n,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(n,{className:"expressInfo",children:e(n,{className:"expressInfo_btn",onClick:i,children:"提交物流信息"})}),e(oo,{})]})})),so=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:u,packageName:N,setPackageBillno:M,loading:y}=W({refundCode:l}),{contractBbillcode:I,dataState:C,gmtCreate:D,ocRefundGoodsList:w,refundMoney:f,refundMeo:b,refundEx:T,refundType:x,ocRefundFileList:z,goodsReceiptMem:k,goodsReceiptPhone:S,goodsReceiptArrdess:A,packageCode:v,packageBillno:L,packageName:j}=c,{View:O,Image:B,WrapLoading:E}=g();return e(E,{loading:y,children:e(O,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(ao.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:u,packageName:N,setPackageBillno:M,submitExpressInfo:r},children:[a(O,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(O,{className:"left_text",children:eo(x,C)}),e(O,{className:"right_time",children:aa(D).format("YYYY-MM-DD HH:mm:ss")})]}),e(O,{className:"afterSalesDetailContent",children:a(O,{className:"refundDetail",children:[e(O,{className:"title",children:"退款信息"}),e(O,{className:"goodsDetail",children:null==w?void 0:w.map(((a,o)=>e(_a,{dataPic:$e(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},o)))}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"订单编号"}),e(O,{className:"right",children:I})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款原因"}),e(O,{className:"right",children:T})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款金额"}),e(O,{className:"right",children:f})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"描述说明"}),e(O,{className:"right",children:b})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"补充凭证"}),e(O,{className:"right",children:null==z?void 0:z.map(((a,o)=>e(B,{src:$e(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"申请时间"}),e(O,{className:"right",children:aa(D).format("YYYY-MM-DD HH:mm:ss")})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款编号"}),e(O,{className:"right",children:l})]}),e(o,{children:"B02"===x?a(o,{children:[C>0?a(O,{className:"merchantMsg",children:[e(O,{className:"title",children:"商家信息"}),a(O,{className:"name",children:[k," ",S]}),e(O,{className:"address",children:A})]}):"",1===C?a(O,{className:"writeMsg",children:[e(O,{className:"wlMsg",children:"物流信息"}),e(lo,{})]}):"",C>1?a(O,{className:"writeMsg",children:[e(O,{className:"wlMsg",children:"物流信息"}),a(O,{className:"express_content",children:[e(O,{className:"name",children:"物流单号"}),e(O,{className:"code",children:L})]}),a(O,{className:"express_content",children:[e(O,{className:"name",children:"物流公司"}),e(O,{className:"code",children:j})]})]}):""]}):""})]})}),0===C?e(O,{className:"footerBtn",children:e(O,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),to=l.createContext(null),io=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=g(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(to),{goodsName:p,skuName:u,dataPic:N}=m,M=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":Na(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:$e(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:p}),e(t,{className:"price",children:M})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:u}),a(o,{className:"stepWrap",children:[e(ca,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>n((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),i?e(o,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),no=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:i}=g(),{goApply:n,goodsNum:c}=r(to);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),(d=l,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((o,l)=>a(i,{className:"item",onClick:n.bind(null,o.value,s,t,c),children:[e(i,{className:"headline",children:o.label}),e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),co=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:u,goApply:N,loading:M,goodsPrice:y}=F({contractBillcode:l,skuCode:s}),{View:I,WrapLoading:C}=g();return e(C,{loading:M,children:e(I,{className:"afterSalesType",style:{paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r},children:a(to.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:u,goApply:N,goodsPrice:y},children:[e(io,{}),e(no,{contractGoodsSendnum:u.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},ro=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=g();return e(s,{value:o?[l.addressId]:[],onChange:a,children:e(t,{value:l.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},mo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:i}=g(),{handlerImpl:n}=H(o),c=x(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[o.addressMember," ",o.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[o.provinceName," ",o.areaName," ",o.cityName," ",o.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(ro,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(i,{className:"del",style:{marginRight:20},onClick:()=>C("editAddress",{addressId:o.addressId}),children:"编辑"}),r.contractBillcode?e(i,{className:"del",onClick:()=>pa(void 0,void 0,void 0,(function*(){const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;yield k({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),C("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(i,{className:"del",onClick:l,children:"删除"})]})]})]})},ho=s((()=>{const{View:a,Skeleton:l}=g(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})})),po=s((({url:o,title:l,subTitle:s,link:t,style:i})=>{const{View:n,Image:c}=g();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(c,{className:"img",src:o}),e(n,{className:"title",children:l}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>C(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),go=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:c}=g(),{list:r,delAddress:d,setDefault:m,skullShow:h}=Z(a);return e(c,{className:"addressListWrap",style:{paddingTop:i+"px",marginBottom:t+"px"},children:h?e(ho,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(mo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(po,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),uo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=g();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>C("addressEditor"),children:"+ 新增地址"})})})),No=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],Mo=[{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:Je}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Xe}},{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:"收货人详细地址不能为空"}]}],yo=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:n,paddingBottom:c,addressId:r})=>{const{View:d}=g(),[m,h]=t({}),[p,u]=t(!!r),{Button:M}=N,{onSubmit:y}=K(r);if(i((()=>{pa(void 0,void 0,void 0,(function*(){if(r){u(!0);let e=yield S({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),u(!1)}else u(!1)}))}),[r]),!p)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:n+"px"},children:e(oa,{initialValues:m,footer:e(M,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:No,onSubmit:y,fields:Mo})})})),Io=s((()=>{const{View:o}=g(),l=e=>{C(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(o,{className:"myAgreementList",children:e(o,{className:"list",children:s.current.map(((s,t)=>a(o,{className:"item",onClick:l.bind(null,s.type),children:[e(o,{children:s.label}),e(o,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),Co=()=>{const{View:o}=g(),{mySettingGoBind:l,mySettingLogout:s}=$();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(ca,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},Do=s(Co),wo=({itemData:o})=>{const{View:l,Text:s}=g(),{handlerImpl:t}=J(o);return e(l,{className:"addressItem",children:a(l,{className:"upInfo",onClick:t,children:[e(l,{className:"userInfo",children:(o.addressMember||"")+" "+(o.addressPhone||"")}),e(l,{className:"addressInfo",children:a(s,{className:"address",children:[o.provinceName||""," ",o.areaName||""," ",o.cityName||""," ",o.addressDetail||""]})})]})})},fo=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,ScrollView:i,Loading:n}=g(),{list:c,loading:r,skullShow:d,onScroll:m}=X(o);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:d?e(ho,{}):e(t,{className:"addressList",children:e(Ua,{id:"pickupPointListWrap",children:e(i,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,o)=>e(wo,{itemData:a},a&&a.userinfoOcode||o))),r&&e(n,{})]}):e(po,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),bo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=g();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>pa(void 0,void 0,void 0,(function*(){yield w("导入成功","none")})),children:"导入微信收件地址"})})})),To=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:c}=g();return e(o,{children:l.map((o=>e(i,{className:["content",s===`${o.goodsClassCode}`?" active":""].join(""),children:((null==o?void 0:o.childList)||[]).map((o=>a(i,{className:"classifyFloor",children:["0"===o.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:o.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{className:`container container_columns${t}`,style:{marginTop:"0"===o.goodsClassHide?"":"20px"},children:((null==o?void 0:o.childList)||[]).map((({classtreeCode:o,goodsClassCode:l,goodsClassLogo:s,goodsClassName:t})=>a(i,{onClick:()=>C("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:xo}=N,zo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:c}=g(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=q();return e(n,{children:e(Ua,{id:"goodsClassify",children:e(c,{children:a(n,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{className:"side",children:e(xo,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(xo.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(To,{navList:m,activeKey:r,cell:o})})]})})})})})),ko=d(null),So=s((()=>{const{navList:o,activeKey:l,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(ko),{View:d,ScrollView:m}=g(),[h,p]=t(!1),N=(e,a)=>{s.bind(null,e)(),i(`${a}`),n("0"),h&&p(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:o.map(((a,o)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!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:()=>p(!1),children:e(u,{value:"paixusort-sheng"})})}),e(Ua,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:o.map(((a,o)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))})})})]}):null]})})),Ao=s((({thirdList:o})=>{const{View:l,Image:s}=g(),{picShadow:t,layout:i}=r(ko);return e(l,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:o.map(((o,i)=>a(l,{className:"goodsClassifyOneFloorItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(s,{src:o.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(l,{className:"title",children:o.goodsClassName})]},i)))})})),vo=s((()=>{const{navList:o,fCoe:l,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(ko),m=n((()=>D()),[]),{secondList:h,thirdList:p}=(({navList:e,fCoe:a,sCoe:o})=>{const l=n((()=>{var o;return(null===(o=e[a])||void 0===o?void 0:o.childList)||[]}),[a,e]),s=n((()=>{var e;return(null===(e=l[o])||void 0===e?void 0:e.childList)||[]}),[o,a,e]);return{secondList:l,thirdList:s}})({navList:o,fCoe:l,sCoe:s}),{View:u,ScrollView:N,SideBar:M}=g();return e(u,{children:e(Ua,{id:"goodsClassifyOneContent",children:e(N,{children:a(u,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(M,{activeKey:s,onChange:t,children:h.map(((a,o)=>e(M.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},o)))}),e(Ao,{thirdList:p})]})})})})})),Lo=s((({selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r})=>{const{View:d}=g(),{navList:m,activeKey:h,setActiveKey:p}=q(),[u,N]=t("0"),[M,y]=t("0");return e(ko.Provider,{value:{fCoe:u,setFCoe:N,sCoe:M,setSCoe:y,navList:m,activeKey:h,setActiveKey:p,selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(So,{}),e(vo,{})]})})})),jo=s((({childList:o,layout:l,picShadow:s,style:t})=>{const{View:i,Image:n}=g();return e(i,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${l}, 1fr)`},t),children:o.map(((o,l)=>a(i,{className:"level3ArrItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(n,{src:o.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:o.goodsClassName})]},l)))})})),Oo=s((({navList:o,activeKey:l,layout:s,picShadow:n})=>{var c;const[r,d]=t(0);i((()=>{d(o.findIndex(m))}),[l,r]);const m=e=>e.goodsClassCode===l,{View:h,Image:p}=g();return a(h,{className:"goodsClassifyTwoContent",children:[e(p,{className:"firstLevelImg",src:O(o[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=O(o[r],"childList"))||void 0===c?void 0:c.map(((o,l)=>a(h,{children:["0"===o.goodsClassHide?e(h,{className:"level2Title",children:o.goodsClassName}):"",e(jo,{childList:o.childList,layout:s,picShadow:n,style:{marginTop:"0"===o.goodsClassHide?"":"30px"}})]},l)))]})})),{SideBar:Bo}=N,Eo=s((({selectFontColor:o,selectBlcShow:l,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:c}=g(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=q();return e(c,{className:"goodsClassifyTwo",children:e(Ua,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Bo,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Bo.Item,{title:a.goodsClassName,className:[l?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":o}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Oo,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),Po="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+13j0T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iwzLjc5MDg1NjI4IDMyLjIwOTE0MzcsMi43NDY1OTQwMSAzMC45MjA5ODA5LDIuNzQ2NTk0MDEgTDIxLjgwNTYxMzIsMi43NDY1OTQwMSBDMjEuMDQ3MTYyMiwyLjc0NjU5NDAxIDIwLjQzMjMxNjIsMi4xMzE3NDc5OSAyMC40MzIzMTYyLDEuMzczMjk3IEMyMC40MzIzMTYyLDAuNjE0ODQ2MDExIDIxLjA0NzE2MjIsMCAyMS44MDU2MTMyLDAgTDMwLjkyMDk4MDksMCBaIiBpZD0i6Lev5b6EIiBmaWxsLXJ1bGU9Im5vbnplcm8iPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTMyLjM3NjIsMS44MTk1OTA0OSBDMzIuODc0MTg1MywxLjMyMTU3OTI1IDMzLjY4MTYwMDEsMS4zMjE1NTgyMyAzNC4xNzk2MTEzLDEuODE5NTQzNTQgQzM0LjY3NzYyMjYsMi4zMTc1Mjg4NSAzNC42Nzc2NDM2LDMuMTI0OTQzNTkgMzQuMTc5NjU4MywzLjYyMjk1NDg0IEwxOC44NTI2ODI4LDE4Ljk1MDcyODUgQzE4LjM1NDY5NzUsMTkuNDQ4NzM5NyAxNy41NDcyODI4LDE5LjQ0ODc2MDggMTcuMDQ5MjcxNSwxOC45NTA3NzU0IEMxNi41NTEyNjAzLDE4LjQ1Mjc5MDEgMTYuNTUxMjM5MiwxNy42NDUzNzU0IDE3LjA0OTIyNDYsMTcuMTQ3MzY0MiBMMzIuMzc2MiwxLjgxOTU5MDQ5IFoiIGlkPSLot6/lvoQtMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",Qo=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:i,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:p,otherStyles:u=[],__pageConfig:N})=>{const{View:M,Image:I}=g(),D=n((()=>y("txt",...u)),[u]);return e(M,{onClick:()=>C(l),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(M,{className:"components-search",style:{backgroundColor:i,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(I,{src:Po,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(M,{className:D,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),Ro=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:p,paddings:u,otherStyles:N=["mockWeight","mockItalic"],urlPath:M="search"})=>{const{View:I,Image:D}=g(),w=n((()=>y("txt",...N)),[N]),f=T.useRouter(),[b,x]=t("");return i((()=>{var e;if(null===(e=null==f?void 0:f.params)||void 0===e?void 0:e.searchParam){const e=f.params.searchParam,a=decodeURIComponent(e);x(a)}}),[null==f?void 0:f.params]),e(I,{onClick:()=>C(M),style:{paddingTop:u,paddingBottom:u,paddingLeft:d,paddingRight:m},className:h?"boxPosition":"",children:a(I,{className:"components-search",style:{border:`1px solid ${c}`,borderRadius:r?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff",marginTop:"8px"},children:[a(I,{style:{width:"80%"},children:[e(D,{src:Po,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(I,b?{className:w,style:{color:s,display:"inline-block",fontSize:p},children:b}:{className:w,style:{color:s,display:"inline-block",fontSize:p},children:o})]}),e(I,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:p,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),Uo=s((({placeholder:o,placeholderText:l,history:s,historyText:i,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:p})=>{const u=c(null),N=n((()=>D()),[]),{View:M,Text:y,Input:w}=g(),[T,x]=t((()=>f("history")||[])),[z,k]=t(""),S=e=>{C(p?"PointsGoodsList":"goodList",{searchParam:e})};return a(M,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(M,{className:"search-title",children:[e("img",{src:Po,alt:""}),e(w,Object.assign({ref:u,"confirm-type":"search",type:"text",className:"content",value:z,onInput:e=>k(e.detail.value),onConfirm:e=>pa(void 0,void 0,void 0,(function*(){N&&(x((a=>{if(!a.includes(u.current.value||e.detail.value)&&(u.current.value||e.detail.value)){const o=a.concat(u.current.value||e.detail.value);return b("history",o),o}return a})),S(u.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(y,{className:"btn",onClick:()=>{const e=z.trim();e&&(x((a=>{if(!a.includes(e)){const o=a.concat(e);return b("history",o),o}return a})),S(e))},children:"搜索"})]}),s?a(M,{className:"historyWrap",children:[a(M,{className:"title",children:[e(M,{className:"label",style:{fontSize:m,color:h},children:i}),e(ca,{onClick:()=>pa(void 0,void 0,void 0,(function*(){(yield I()).removeStorageSync("history"),x([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(M,{className:"content",children:T.map(((a,o)=>e(M,{onClick:()=>S(a),className:"historyItem",children:a},o)))})]}):null]})})),Go=s((({defaultValue:o=[],classCode:l="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:p=[],markedPrice:u,paddingTop:N,paddingBottom:M,paddingLeft:I,paddingRight:D,goodsName:w=!0,goodsPrice:f=!0,goodsCar:b=!0,goodsBorder:T=!0,goodsShadow:x=!1,marginGap:z=10})=>{const[k,S]=t(o),v=c(),{View:L,Text:j}=g();return i((()=>{B(v.current,p)||(v.current=p,E(p)?S(o):pa(void 0,void 0,void 0,(function*(){try{const e=yield A({[h]:p.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=O(e,"list",[]);S(a)}catch(e){S(o)}})))}),[p]),e(L,{style:{paddingTop:N,paddingBottom:M},children:e(L,{className:y({[`goods-${l}`]:!0}),style:{display:"grid",gap:z,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:I,paddingRight:D},children:k.map(((o,l)=>a(L,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:T?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),className:["goods "+(x?"outer-shadow":"")].join(" "),children:[e(L,{className:"goods-img",style:{backgroundImage:`url(${$e(o.dataPic)})`}}),a(L,{className:"space",children:[e(L,{className:"titleType",style:{display:w?"block":"none"},children:o.goodsName}),e(L,{className:"subTitle",children:o.brandName}),a(L,{className:"price",children:[a(L,{style:{fontSize:18},children:[f?Na(o.pricesetNprice):"",1===u&&e(j,{className:"markedPrice",children:Na(o.pricesetMakeprice)})]}),e(L,{className:"anticon",style:{display:b?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})})),Wo=s((({defaultValue:o,goods:l,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:u,marginTop:N,marginBottom:M,marginLeft:y,marginRight:I})=>{const{View:D}=g(),{list:w}=_({defaultValue:o,goods:l},n);return e(D,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:M,marginLeft:y,marginRight:I},children:w.map(((o,l)=>a(D,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${u}px`},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(D,{className:"img",style:{backgroundImage:`url(${$e(o.dataPic)})`}}),a(D,{className:"board",children:[e(D,{className:"title",children:o.goodsName}),a(D,{className:"info",children:[a(D,{className:"lPart",children:[s?e(D,{className:"price",children:Na(o.pricesetNprice)}):null,t?e(D,{className:"marketPrice",children:Na(o.pricesetMakeprice)}):null]}),i?e(D,{className:"rPart",children:e(ca,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},l)))})})),Fo=s((({defaultValue:o,goods:l,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:p,goodsShadow:u,btnText:N,btnBg:M,btnColor:y,btnRadius:I})=>{const w=n((()=>D()),[]),{list:f}=_({defaultValue:o,goods:l},m),{SmoothSwiper:b,View:T,Image:x}=g(),[z,k]=t(0);return a(T,{className:"goodsSlideshow",children:[e(x,{src:s,className:"bg",mode:"widthFix"}),e(b,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:f,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{k(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:o=>a(T,{className:["goodsSlideshowItem",""+(o.goodsCode===f[z].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:h,borderStyle:p?"solid":"none",boxShadow:u?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(x,{className:"logo",src:$e(o.dataPic),mode:"widthFix"}),c?e(T,{className:"goodsName",children:o.goodsShowname}):null,r?a(T,{className:"salesNum",children:["销量:",o.goodsSalesvolume]}):null,d?e(T,{className:"price",children:Na(o.pricesetNprice)}):null,i?e(T,{className:"marketPrice",children:Na(o.pricesetMakeprice)}):null,e(T,{className:"btn",style:{backgroundColor:M,color:y,borderRadius:I},children:N})]})})]})}));var Ho=new class{constructor(){this.events={}}on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const o=this.events[e];o&&o.forEach((e=>e(...a)))}off(e,a){const o=this.events[e];o&&(this.events[e]=o.filter((e=>e!==a)))}};const Zo=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:p,loop:u,paddingTop:N,paddingBottom:M,paddingLeft:I,paddingRight:C,selectImg:D,imgHeight:w,collectParams:f,fontsize:b=16,textAlign:x="center",fontColor:z="#000000",backGroundColor:k="#ffffff"})=>{const S="WEB"===T.getEnv(),A=n((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===p}))),{handleCollect:v,collection:L}=ee(f),[j,O]=t(!1),{SmoothSwiper:B,View:P,Button:Y}=g(),Q=V(r,D||[]),R=a=>e(P,{className:c,style:{fontSize:b,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:z,backgroundColor:k},children:a.title});return i((()=>{const e=e=>{O(e)};return Ho.on("IsCollectionShow",e),()=>{Ho.off("IsCollectionShow",e)}}),[]),a(P,{className:s,style:{position:"relative",paddingTop:N,paddingBottom:M,paddingLeft:I,paddingRight:C},children:[a(P,{style:{position:"absolute",top:10,right:10,zIndex:9,display:"flex",gap:10},children:[e(P,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2},children:e("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDBweCIgaGVpZ2h0PSI0MHB4IiB2aWV3Qm94PSIwIDAgNDAgNDAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbi9pbWc8L3RpdGxlPgogICAgPGRlZnM+CiAgICAgICAgPHBhdGggZD0iTTAsMCBMNDAsMCBMNDAsNDAgTDAsNDAgTDAsMCBaIiBpZD0icGF0aC0xIj48L3BhdGg+CiAgICA8L2RlZnM+CiAgICA8ZyBpZD0iaWNvbi9pbWciIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI3BhdGgtMSIgZm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yLjMyMjQyMTkgMTUuODM3ODkwNiwxMS4zNzAwNzgxIDE0LjY2NjYwMTYsMTEuMzcwMDc4MSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",onClick:()=>{Ho.emit("bannerImageClick","poster")},style:{width:"100%",height:"100%"},alt:"生成海报"})}),e(P,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2},children:S?e("img",{src:Vo,onClick:e=>{e.stopPropagation(),Ho.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(Y,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Vo})`,backgroundSize:"100% 100%",width:20,height:20,padding:0},className:"wx-share-button"})}),e(P,{onClick:v,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2,display:j?"flex":"none"},children:E(L.dataObj)?e("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDBweCIgaGVpZ2h0PSI0MHB4IiB2aWV3Qm94PSIwIDAgNDAgNDAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbi9zYzwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNMCwwIEw0MCwwIEw0MCw0MCBMMCw0MCBMMCwwIFoiIGlkPSJwYXRoLTEiPjwvcGF0aD4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJpY29uL3NjIiBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNwYXRoLTEiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAg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uNzc2NjExNCwzNC43NzcwMzA3IDE4LjIyMjg4NzksMzQuNzc3MDMwNyAxNS4wNjU2MzExLDM2LjE1NDEwNTkgTDExLjI3NzgzNTMsMzcuODA2MTk4MiBDMTAuMDU3NjQ1OCwzOC4zMzgzOTg0IDguNjU1MzU1NDYsMzcuNzM2ODUyMiA4LjE0NTczMjA5LDM2LjQ2MjYwNzEgQzcuOTk4Mjc5MTIsMzYuMDkzOTIwNyA3LjkzNzU3OTU1LDM1LjY5MzcwMDcgNy45Njg3MTg0LDM1LjI5NTQ3NSBMOC4zMDI4MDM5OSwzMS4wMjI5NTIzIEM4LjU4MTI3NTY5LDI3LjQ2MTY1OTMgNy40ODMxMTQ3MSwyMy45MzIxMzkyIDUuMjUzMzUxMDMsMjEuMjIxOTI1NCBMMi41NzgyNzg4OCwxNy45NzA0NTIgQzEuNzE2NTM4OTcsMTYuOTIzMDMxOCAxLjgzMTA0MjI0LDE1LjM0NDQwNDEgMi44MzQwMjkwOSwxNC40NDQ0ODgzIEMzLjEyNDIzMDQ0LDE0LjE4NDEwOTIgMy40Njk5NTgwNiwxNC4wMDAxNDgyIDMuODQyMjQ5MDYsMTMuOTA4MDE2NSBMNy44MzY1MjExNCwxMi45MTk1NDQ2IEMxMS4xNjU4ODI5LDEyLjA5NTYxOTYgMTQuMDQwOTA1Niw5LjkxNDI1NjI5IDE1LjgyMDA5MjYsNi44NjIxNzY4NyBMMTcuOTU0NjAyOSwzLjIwMDU2MzQyIFoiIGlkPSLmmJ/lvaIiIGZpbGw9IiMzNEMwQkMiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",style:{width:"100%",height:"100%"},alt:"收藏"})})]}),e(B,{imgHeight:w,data:Q,className:A,type:d,autoplay:m,autoplayInterval:h,direction:p,loop:u,interval:5e3,vertical:"vertical"===p,render:(s,t,i)=>a(o,{children:["top"===l||"bottom"===l?R(s):null,e(Ta,{isPlay:t===i,item:s,position:l,direction:p})]})})]})})),Ko=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:i,memberCode:n=""}=ae(l,s),c=oe.getState();oe.setState(Object.assign(Object.assign({},c),{memberCode:n})),console.log(24,n);const r=le(t),{goodInfo:d}=se(i),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:$e(d.dataPic),skuCode:l};return e(Zo,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function $o(o){const{content:l,position:s="top"}=o,[i,n]=t(!1);return a(la,{className:"tooltip-wrap",children:[e(la,{className:"tooltip-icon",onClick:()=>n(!i),children:e(sa,{src:`data:image/svg+xml,${encodeURIComponent('\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">\n <circle cx="12" cy="12" r="10" fill="none" stroke="#666" stroke-width="1.5"/>\n <text x="12" y="16" text-anchor="middle" font-family="system-ui" font-size="12" font-weight="bold" fill="#666">?</text>\n </svg>\n ')}`,mode:"aspectFit",style:{width:"24px",height:"24px"}})}),i&&a(la,{className:`tooltip-popup tooltip-${s}`,children:[l,e(la,{className:"tooltip-arrow"})]})]})}const Jo=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!D())return;return"WEB"===I().getEnv()?e(o,{children:a?e(Xo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(qo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},Xo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Button:n}=g(),{save:c,canvasRef:r,width:d,height:m}=ie(l,s,t);return e(i,{className:"share",children:o?a(i,{className:"share-content",style:{margin:"80px auto"},onClick:e=>{e.stopPropagation()},children:[e(i,{id:"share-canvas-id",className:"share-canvas",children:e("canvas",{ref:r,width:d,height:m,style:{width:`${d}px`,height:`${m}px`}})}),a(i,{className:"dashboard",children:[e(i,{className:"dashboard-item",children:e(n,{className:"txt",onClick:()=>l(!1),children:"关闭海报"})}),e(i,{className:"dashboard-item",onClick:c,children:e(n,{className:"txt",children:"保存图片"})})]})]}):null})},qo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Canvas:n,Button:c}=g(),{save:r,width:d,height:m}=ne(l,s,t,o);return e(i,{style:{zIndex:o?1e3:-10,opacity:o?1:0},className:"share",children:a(i,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[o&&e(i,{className:"share-canvas",id:"share-canvas-id",children:e(n,{"canvas-id":"canvas",style:{width:`${d}px`,height:`${m}px`,position:"absolute"}})}),a(i,{className:"dashboard",children:[e(i,{className:"dashboard-item",children:e(c,{className:"txt",onClick:()=>{const e=T.createCanvasContext("canvas");e.clearRect(0,0,d,m),e.draw(!0),l(!1)},children:"关闭海报"})}),e(i,{className:"dashboard-item",onClick:r,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},_o=({skuCode:o,priceShow:l,collectionShow:s,scene:n})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:p,Button:u,IconMobile:N}=g(),{rsSkuDomainList:M,rsGoodsFileDomainList:y,goodsDayinfo:C}=ae(o,n),{goodInfo:D}=se(M);console.log("goodInfo",D);const w=D.mpriceStairDomainListMap||{},f=Object.values(w),b=f.length>0?f[0]:[],x=b.length>0?b.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";te(o);const z=I(),k="WEB"===T.getEnv();Ho.emit("IsCollectionShow",{collectionShow:s}),i((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&S()};return Ho.on("bannerImageClick",e),()=>{Ho.off("bannerImageClick",e)}}),[]);const S=()=>{var e;k?z.setClipboardData({data:window.location.href,success:()=>{z.showToast({title:"复制成功",icon:"success"})},fail:()=>{z.showToast({title:"复制失败",icon:"none"})}}):null===(e=null==z?void 0:z.showShareMenu)||void 0===e||e.call(z,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})};return a(d,{className:"goodsDetail-topInfo",children:[e(Jo,{goodsName:D.goodsName,shareShow:c,setShareShow:r,rsGoodsFileDomainList:y}),a(d,{className:"lPart",children:[a(m,{className:"name",style:{display:"flex",alignItems:"center"},children:["16"==D.goodsType?e(d,{className:"pre-sale",children:"预售商品"}):null,D.goodsName]}),"16"==D.goodsType&&C&&a(m,{className:"price",children:["预计发货时间:",C,"天内"]}),e(d,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:a(d,{style:{display:"flex",flexDirection:"column"},children:[a(m,{className:"price",style:{display:l?"block":"none"},children:["会员价:",Na(D.pricesetNprice)]}),a(m,{className:"price",style:{display:l?"block":"none"},children:["促销价:",Na(D.pricesetNprice)]}),x?e(d,{className:"page",children:e($o,{content:x,position:"right"})}):null]})})]})]})},el=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=g(),{handleCollect:i,collection:n}=ee(o),{handleShare:c}=ce();return a(t,{className:"handleBar",children:[l?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:E(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),al=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=g(),{rsSkuDomainList:r}=ae(t,i),{goodInfo:d}=se(r);return re((e=>e.spec)),te(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:Na(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(el,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:$e(d.dataPic),skuCode:t})]})})),ol=s((()=>{const{Text:e}=g(),o=re((e=>e.count)),l=re((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",o," 规格: ",l.toString()]})})),ll=({dispatchPageStore:l})=>{const{View:s,Text:t}=g(),{openPopup:i}=de(l);return e(o,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(ol,{}),e("img",{src:Yo,alt:"",className:"icon"})]})]})})},sl=({skuCode:o,scene:l})=>{const{View:s,Text:t}=g(),{rsSkuDomainList:i}=ae(o,l),{goodInfo:n}=se(i),c=me(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},o)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},o))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},tl=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:i,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=g(),{save:p,isPick:u}=he(),N=n((()=>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:l}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:i}),a(h,{className:"date",children:[aa(o).format("YYYY-MM-DD")," - ",aa(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:u?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:t,couponAmount:1}),children:u?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),il=()=>{const{View:a,Image:o}=g();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},nl=l=>{var{skuCode:s,scene:t}=l;ha(l,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=g(),{rsSkuDomainList:d}=ae(s,t),{goodInfo:h}=se(d),{coupon:p,visible:u,setVisible:N}=pe(d,h.skuCode);return a(o,{children:["26"==h.goodsType?null:a(i,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(r,{src:Yo,alt:"",className:"icon"})]})]}),e(c,{popupVisible:u,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(Ua,{children:p.length>0?p.map(((e,a)=>m(tl,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(il,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},cl=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:n}=g(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);i((()=>{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(!o){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(n,{children:c.map(((a,o)=>e(ca,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},rl=({item:o})=>{const{View:l,Image:s,Text:t,Button:i}=g(),n=D(),c=I();f("user");const{userInfoCode:r}=f("user")||{userInfoCode:""};return a(l,{className:"rateItem",children:[a(l,{className:"topInfo",children:[a(l,{className:"lPart",children:[e(s,{src:o.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(l,{className:"userInfo",children:[e(l,{className:"name",children:o.userName}),e(cl,{readOnly:!0,size:14,count:o.evaluateScopeReList.length})]})]}),e(l,{className:"rPart",children:`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`})]}),a(l,{className:"pj-wrapper",children:[a(l,{className:"flex-1",children:[e(l,{className:"size",children:o.skuName}),e(l,{className:"content",children:o.evaluateGoodsContent}),o.evaluateGoodsImgs&&JSON.parse(o.evaluateGoodsImgs).length>0&&e(l,{className:"img-group",children:JSON.parse(o.evaluateGoodsImgs).map((a=>e(s,{src:$e(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{pa(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield ia({evaluateGoodsId:a,isLocalMock:!n}),yield w("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(o)},children:"删除"}):null]}),o.shopReply&&o.shopReply.length?e(l,{className:"merchant-reply",children:o.shopReply.map((({evaluateReplyContent:o},s)=>a(l,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:o})]},s)))}):null]})},dl=({evaluateArr:o})=>{const{View:l}=g();return console.log(7,o),e(l,{className:"goodsDetailEvaluate",children:o.length?a(l,{children:[a(l,{className:"topInfo",children:["评价 (",o.length,")"]}),o.slice(0,5).map(((a,o)=>e(rl,{item:a},o)))]}):e(po,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ml=process.env.REACT_APP_BASE_URL,hl=({goodsRemark:a})=>{const{View:o}=g(),l=n((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${ml}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ta,{nodes:l})})},pl=({goodsRemark:o})=>{const{View:l}=g(),[s,c]=t({}),[r,d]=t(!1),m=n((()=>{const e=window.location.hash.split("?")[1]||"";return new URLSearchParams(e).get("skuCode")||""}),[window.location.hash]),p=h((e=>pa(void 0,void 0,void 0,(function*(){if(e){d(!0);try{const a=yield v({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}))),[]);i((()=>{p(m)}),[m,p]);const u=s.rsPropertiesValueDomainList||[];return a(l,{className:"goodsDetail-info",children:[u.length>0&&e(l,{style:{fontSize:12,marginTop:10,display:"grid",borderRadius:6,background:"#fff",border:"solid 1px #f1f1f1",padding:"10px 40px",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px"},children:u.map(((o,s)=>a(l,{style:{marginRight:25,marginLeft:10},children:[" ",e(l,{style:{color:"black",fontSize:13,fontWeight:500},children:o.propertiesName}),e(l,{style:{color:"gray",fontSize:11},children:o.propertiesValueValue||"--"})]},s)))}),r&&e(l,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},gl=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:i,evaluateImg:c})=>{const{Text:r}=g(),d=n((()=>i?[{title:"商品详情",id:"1"},{title:"商品规格",id:"3"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(o,{children:d.map(((o,t)=>e(p,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},ul=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:i,scene:n})=>{const{View:c}=g(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=ae(i,n),p=ge(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(gl,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(hl,{goodsRemark:m}):2===r?e(dl,{evaluateArr:p,evaluateImgShow:l,evaluateImg:s}):1===r?e(pl,{goodsRemark:m}):null})]})},Nl=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:i})=>{const{View:n,Text:c}=g(),r=re((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(n,{className:"sizeArr",children:[e(c,{className:"title",children:o}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,o)=>e(n,{className:y({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:l.bind(null,a.specValueValue,i),children:a.specValueValue},o)))})]})},{Stepper:Ml}=N,yl=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=g(),i=s||1,n=l||999;return e(t,{className:"numStep",style:{width:"100px"},children:e(Ml,{value:a,min:i,max:n,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l!==a+1)if(l!==a-1){if(l<i)w(`不能小于${i}`,"none");else if(l>n)w("超库存","none");else if(l!==a){const e=oe.getState();oe.setState(Object.assign(Object.assign({},e),{count:l}))}}else o("minus");else o("plus")}})})},Il=s((({handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=g(),i=re((e=>e.count));return a(t,{className:"countWrap",children:[e(t,{className:"label",children:"购买数量"}),e(yl,{count:i,handleStep:o,goodsNum:l,goodsMinnum:s})]})})),Cl=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=g(),{skuList:r}=l,d=i&&"06"===i.goodsType?i.pricesetRefrice+"积分":Na(i.pricesetNprice);return a(o,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:$e(i.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",i.goodsNum]})]})]}),r.map(((a,o)=>e(Nl,{goodsShowname:i.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},Dl=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=g(),c=re((e=>e.isNeedButton)),r=re((e=>e.offShelf));return r?e(n,{className:y({btnWrap:!0,offShelf:r}),children:e(i,{className:"btn",children:"已下架"})}):e(o,{children:c?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:l,children:"立即购买"})]})})},wl=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=g(),{spec:c,goodInfo:r}=se(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:u}=ue(l,s,t,o);return a(i,{className:"goodsDetail-size-popup",children:[e(Ua,{children:e(n,{children:a(i,{className:"content",children:[e(Cl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Il,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),goodsNum:r.goodsNum,goodsMinnum:r.goodsMinnum})]})})}),e(Dl,{cashImpl:p,addShoppingImpl:u,addCardImpl:h})]})})),fl=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=g();return e(i,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(wl,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},bl=s((({serverShow:l,cartShow:s,lPartShow:n,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:p,rPartText:u,dispatchPageStore:N,skuCode:M,platform:y,scene:I})=>{const{View:D,IconMobile:w,Text:f}=g(),b=re((e=>e.offShelf)),{rsSkuDomainList:x,goodPro:z}=ae(M,I),{goodInfo:k}=se(x),{servicePopup:S}=ga(y),{addCardPopup:A,buyOpenPopup:v}=de(N),[L,j]=t("10px");return i((()=>{const e=(()=>{try{const e=T.getSystemInfoSync(),a=T.getEnv();if(a===T.ENV_TYPE.WEAPP||a===T.ENV_TYPE.ALIPAY||a===T.ENV_TYPE.SWAN||a===T.ENV_TYPE.TT||a===T.ENV_TYPE.JD){let a=0;if(e.safeArea&&e.safeArea.bottom)a=e.screenHeight-e.safeArea.bottom;else if(e.safeAreaInsets&&e.safeAreaInsets.bottom)a=e.safeAreaInsets.bottom;else if(e.model){const o=e.model.toLowerCase();(o.includes("iphone x")||o.includes("iphone 11")||o.includes("iphone 12")||o.includes("iphone 13")||o.includes("iphone 14")||o.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();j(e)}),[]),a(D,{className:"goodsDetailHandleBar",style:{paddingBottom:L},children:[a(D,{className:"linkGroup server",onClick:S,style:{display:l?"block":"none"},children:[e(w,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(D,{className:"txt",children:"客服"})]}),a(D,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:s?"block":"none"},children:[e(w,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(D,{className:"txt",children:"购物车"})]}),e(D,{className:"goods-detail-btn-group",children:b?e(D,{className:"btn addCart offShelf",children:e(f,{className:"btn",children:"已下架"})}):a(o,{children:["26"===z||!1===n?null:e(D,{className:"btn addCart",onClick:A,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(D,{onClick:v,className:"btn buy",style:Object.assign({color:m,backgroundColor:h,borderTopRightRadius:p,borderBottomRightRadius:p},!1===n?{borderTopLeftRadius:p,borderBottomLeftRadius:p}:{}),children:u||("10"===k.goodsPro?"预售抢购":"立即购买")})]})})]})})),Tl=l=>{var{$_dataSource:s={},dispatchPageStore:t=P,skuCode:i,scene:n}=l,c=ha(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ae(i,n),h=Ne(r,m),{popupVisible:p}=s;return a(o,{children:[e(bl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(fl,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},xl=s((({serverShow:o,cartShow:l,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:p,scene:u,platform:N})=>{const{View:M,IconMobile:y}=g(),{rsSkuDomainList:I}=ae(p,u),{goodInfo:D}=se(I),{servicePopup:w}=ga(N),{addCardPopup:f,buyOpenPopup:b}=de(h);return a(M,{className:"goodsDetailHandleBarOne",children:[a(M,{className:"linkGroup server",onClick:w,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(M,{className:"txt",children:"客服"})]}),a(M,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:l?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(M,{className:"txt",children:"购物车"})]}),a(M,{className:"goods-detail-one-btn-group",children:[e(M,{className:"btn addCart",onClick:f,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(M,{onClick:b,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===D.goodsPro?"预售抢购":"立即购买"})]})]})})),zl=l=>{var{popupVisible:s=!1,dispatchPageStore:t=P,skuCode:i,scene:n}=l,c=ha(l,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ae(i,n),h=Ne(r,m);return a(o,{children:[e(xl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(fl,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},kl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Sl=({setParams:o,activeColor:l})=>{const{View:s}=g(),[i,n]=t(0),[c,r]=t(kl);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(i===m?"active":""),onClick:()=>((e,a,l)=>{n(a),l&&r((e=>(e[a].order="asc"===l?"desc":"asc",[...e]))),o({sortField:e,order:l})})(c,m,t),style:{color:i===m?l:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ca,{style:{color:i===m&&"asc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:i===m&&"asc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Al=s((({classtreeCode:o="",searchParam:l="",activeColor:s="#e54e29",isHotSale:i=!1,goodsName:c=!0,goodsPrice:r=!0,lineationGoods:d=!0,salesQuantity:m=!0,goodsCar:h=!0,borderRadius:p=!0,goodsColor:u=!0,goodsGap:N=10,paddingLR:M=0,__link__:I={}})=>{console.log(111,I);const{View:C,Loading:D,SmoothView:w,Image:f,ScrollView:b,IconMobile:T}=g(),[x,z]=t({}),{loading:k,getData:S,list:A}=Me(o,l,x,i),v=n((()=>y("textBox",{btm:!r&&!d})),[r,d]),L=n((()=>y("name",{boxNone:!c})),[c]),j=n((()=>y("middle_margin",{boxNone:!m})),[m]),O=n((()=>y("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),B=n((()=>y({detailContent:!(L.includes("boxNone")&&j.includes("boxNone")&&O.includes("boxNone"))})),[L,j,O]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(Sl,{setParams:z,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${M}px`},children:e(Ua,{id:"listWrap",children:a(b,{onScroll:()=>S(x),children:[e(C,{className:"list",style:{gap:N},children:A.map((o=>a(C,{onClick:()=>ea(I,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(f,{src:$e(o.dataPic),className:"img"}),a(C,{className:B,children:[e(w,{className:L,children:o.goodsName}),a(C,{className:j,children:["已售:",o.goodsNum]}),a(C,{className:O,children:[a(C,{className:v,children:[e(w,{className:"price",style:{display:r?"block":"none"},children:Na(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:Na(o.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(T,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},o.skuCode)))}),k?e(D,{}):null]})})})]})})),vl=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:i,btnShape:c})=>{const{View:r}=g(),{cartIsEditor:d}=o,{editorImpl:m}=ye(a),h=n((()=>({border:l?`2px solid ${s}`:"",color:l?t:"",background:l?i:"",borderRadius:l?c:""})),[l,s,t,i,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Ll=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:i}=g();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:o}),e(t,{className:"choose",children:e(i,{"data-code":l,checked:l,value:s})})]})})),jl=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:c,SmoothRadio:r}=g();return e(i,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ua,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Ll,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},Ol=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=g();return e(o,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:l}),a(d,{className:"cartItem-size",children:["规格:",t," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:Na(c)}),0===s&&e(h,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),Bl=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:i}=g(),c=n((()=>{let a="";switch(l){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!==l?e(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[l]);return a(i,{className:"cart-item-image",children:[c,e(t,{className:"img",src:o,onClick:()=>C("goodDetail",{skuCode:s})})]})})),El=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:i}=g(),c=n((()=>(a||0===l)&&s.includes(o)),[s,a,o,l]);return console.log(106,typeof o),e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==l,checked:c,value:o,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),Pl=({promotion:l=[],updatePm:s,shoppingGoodsId:i,promotionCode:c})=>{const{View:r}=g(),[d,m]=t(!1),h=n((()=>((l||[]).find((e=>e.promotionCode===c))||{}).promotionName),[l]);return a(o,{children:[h&&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(i,"-"))},children:e(jl,{promotionCode:c,onChange:e=>{m(!1),s(i,Ce(e))},promotion:l||[],visible:d,setVisible:m})})]})},Yl=s((o=>{var{item:l}=o,s=ha(o,["item"]);const{View:t}=g(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(El,{cartIsEditor:n,dataState:l.dataState,select:i,shoppingGoodsId:l.shoppingGoodsId}),e(Bl,{dataState:l.dataState,dataPic:$e(l.dataPic),skuCode:l.skuCode}),e(Ol,Object.assign({},l,s))]})})),Vl=l=>{var{shoppingGoodsList:s=[]}=l,t=ha(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(p,{children:[e(Yl,Object.assign({},t,{item:o})),o.pmPromotionList?e(Pl,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},Ql=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=g(),i=n((()=>E(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>ea(l,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[l]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:o}),i]})},Rl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:i,SmoothView:n}=g();return a(i,{className:"cart-dis-title",children:[e(n,{className:"tips",children:s}),e(n,{className:"title",children:l}),o&&e(Ql,{link:t,disNextMsg:o})]})},Ul=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=g(),{cartSelect:m,cartUpdateCount:h,cartIsEditor:u}=t,{loading:N,cartList:M,onChange:y,handleStep:I,updatePm:C}=Ie(l,h,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:y,children:M.length?e(o,{children:M.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},h)=>a(p,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:n},children:[t?e(Rl,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(Vl,{cartIsEditor:u,promotionCode:l,handleStep:I,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(po,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Gl=({$_dataSource:o={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:l,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:i="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=g(),{cartInfo:p,cartDisMoney:u,cartSelect:N,cartIsEditor:M}=o,{toOrderImpl:y,deleteCart:I,clearAll:C,selectAll:D,ids:w,cartDetail:f}=De(N,p,l),b=n((()=>({border:`1px solid ${s}`,color:t,background:i,borderRadius:c})),[s,t,i,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:p.length===N.length?["true"]:[],onChange:D,children:e(h,{checked:p.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,M?{className:"del",children:[w.length?e(r,{onClick:C,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:I,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:Na(u)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:Na(f.amount)})]})]}),a(r,{onClick:y,className:"btn",style:b,children:["结算(",f.num,")"]})]})]})},Wl=({address:a})=>e(o,{children:E(a)?e(Hl,{}):e(Fl,{address:a})}),Fl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=g(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:l,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=o;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+l+s+t}}),[o]);return a(l,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(l,{className:"left",children:[a(l,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Hl=()=>{const{View:l,Text:s}=g();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Zl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:i=""})=>{const{View:n}=g(),c=we(a,l,o,s,t,i);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(Wl,{address:c})})},Kl=({address:a})=>e(o,{children:E(a)?e(Jl,{}):e($l,{address:a})}),$l=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=g(),i=n((()=>{const{provinceName:e,cityName:a,areaName:l,addressDetail:s,addressMember:t="",addressPhone:i=""}=o;return{displayName:t,displayPhone:i,address:(e||"")+(a||"")+(l||"")+(s||"")}}),[o]);return a(l,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(l,{className:"left",children:[a(l,{className:"left-title",children:[e(s,{children:i.displayName}),e(s,{className:"left-padding",children:i.displayPhone})]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Jl=()=>{const{View:l,Text:s}=g();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Xl=({refreshNum:a})=>{const{View:o}=g(),l=fe(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Kl,{address:l})})},ql=({tabActive:l,setTabActive:s})=>{const{Text:t}=g();return e(o,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((o,i)=>e(p,{children:a(t,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(t,{className:"line"})]})},o.id)))})},_l=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:n="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=g(),[h,p]=t("0");return i((()=>{be.contractPumode=h}),[h]),a(d,{className:"placeOrderAddressTabs",children:[a(d,{className:"delivery-header",children:[e(m,{className:"delivery-label",children:"配送方式:"}),e(d,{className:"tabs",children:e(ql,{tabActive:h,setTabActive:p})})]}),e(d,{className:"content",children:"0"===h?e(Zl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(Xl,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:n})})]})},es=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:i,promotionName:n,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=g();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:l}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:n}),a(d,{className:"date",children:[aa(o).format("YYYY-MM-DD")," - ",aa(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:i})})]})})})),as=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:i,couponEnd:n})=>{const{View:c,Text:r,Radio:d}=g();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:l}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:i}),a(r,{className:"date",children:[aa(o).format("YYYY-MM-DD")," - ",aa(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),os=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:p,Popup:u,Form:N,SmoothRadio:M,Button:y,SmoothCheckbox:I,ScrollView:C,Radio:D,Image:w}=g(),{shoppingGoodsList:f}=Te({refreshNum:l,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:b,visible:T,couponValue:x=[],setVisible:z,selectCoupon:k,onChange:S,onCreditChange:A,confirmImpl:v,resetImpl:L,contractPmode:j,onPayChange:O,payList:B,payName:E,creditList:P,creditInfo:Y,selectCredit:V,creditVisible:Q,payVisible:R,setPayVisible:U,handleChooseImg:G,contractEcurl:W,setCreditVisible:F}=xe(f,s);return console.log("shoppingGoodsList",f),a(o,{children:[f.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(o,{children:[a(h,{className:"coupon-select",onClick:()=>z(0!==b.length),children:[e(p,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(p,{className:"label",children:k?`已选择: ${k}`:0===b.length?"暂无可用优惠券":"请选择优惠券"}),0===b.length?null:e("img",{src:Yo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>U(!0),children:[e(p,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(p,{className:"label",children:E?`已选择: ${E}`:"请选择支付方式"}),0===b.length?null:e("img",{src:Yo,alt:"",className:"icon"})]})]})]}),Y.urechargeId&&"0"===j&&a(h,{className:"coupon-select",onClick:()=>F(0!==P.length),children:[e(p,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(p,{className:"label",children:V?0===+V?"不使用":`已选择: ${V}%`:"请选择授信"}),0===b.length?null:e("img",{src:Yo,alt:"",className:"icon"})]})]}),"1"===j&&a(h,{className:"coupon-select",children:[e(p,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:G,children:W?e(w,{src:W,className:"img",alt:W,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(u,{popupVisible:R,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ua,{children:e(C,{children:e(M,{value:j||"",onChange:O,children:(null==B?void 0:B.length)>0&&B.map(((o,l)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(D,{checked:o.ptfpmodeType===j,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(u,{popupVisible:Q,popupHandler:F,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ua,{children:e(C,{children:e(M,{onChange:A,children:(null==P?void 0:P.length)>0&&P.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(D,{value:o.flagSettingInfo}),0===o.flagSettingInfo?"不使用":`${o.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(u,{popupVisible:T,popupHandler:z,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ua,{children:e(C,{children:s?e(I,{value:(null==x?void 0:x.length)>0?x.map((e=>e.couponNo)):[],onChange:S,children:(null==b?void 0:b.length)>0&&b.map((e=>m(es,Object.assign({isDisabled:2===x.length},e,{key:e.couponNo}))))},"visible"):e(M,{value:(null==x?void 0:x.length)>0?x[0].couponNo:"",onChange:S,children:b.map(((e,a)=>m(as,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(y,{className:"operate reset",onClick:L,children:"重置"}),e(y,{className:"operate",onClick:v,children:"确认"})]})]})})]})},ls=({shippingMethod:o=1})=>{const{View:l}=g();return e(l,{className:"info placeOrder-blcWrap",style:1===o?{display:"block"}:{display:"none"},children:a(l,{className:"express placeOrder-blcItem",children:[e(l,{className:"label",children:"配送方式"}),e(l,{className:"value",children:"快递"})]})})},ss=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:i,longContractgoodsBeanStr:n,scontractCode:c})=>{const{View:r}=g(),{list:d}=Te({refreshNum:a,goodsNum:l,skuId:s,goodsBeanStr:i,shoppingGoodsId:t,longContractgoodsBeanStr:n,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],l)=>e(o,{children:(a||[]).map(((a,o)=>e(_a,Object.assign({},a),l)))})))})},ts=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:i,goodsBeanStr:n,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:p,Textarea:u}=g(),N=u||p,M=Te({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:i,goodsBeanStr:n,longContractgoodsBeanStr:c,scontractCode:r}),{payState:y,disCount:I,creditMoney:C,freight:D,payPrice:w,rebMoney:f}=M,b=M.pointsDeduction||0,T=M.urDiscount||0,{shoppingCountPrice:x,comDisMoney:z,changeContent:k,shoppingType:S,pricesetRefrice:A}=ze(y),v=Na(Math.max(w-C,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===S?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:Na(x)})]}),null!==b&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===S?b+"积分":Na(b)]})]}),"06"===S?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",Na(T)]})]}),"06"===S?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:Na(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:Na(-f.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:Na(-(z+I))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:Na(D)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:k})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:n?"0.00":v})]})]})})},is=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:p,Text:u,WrapLoading:N}=g(),{payPrice:M,list:y,payState:I,creditMoney:C,ocContractSettlList:D,pointsDeduction:w}=Te({refreshNum:i,goodsNum:n,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:f,loading:b}=ke({ocContractSettlList:D,payState:I,list:y,goodsBeanStr:r},d,Math.max(M-C,0));I&&I.length>0&&(I[0].shoppingType,I[0].pricesetRefrice);const T=Na(Math.max(M-C,0));return a(p,{className:"placeOrderFooter",children:[a(u,{className:"price",children:["合计: ",r?"0.00":T]}),e(N,{loading:b,children:e(p,{className:"btn",onClick:f,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ns=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=n((()=>D()),[]),{View:p,Text:u,Radio:N,IconMobile:M,WrapLoading:y,SmoothRadio:I}=g(),{paymentImpl:C,channelList:w,contract:f,handleRadio:b,loading:T}=Se({contractBillcode:o,contractBbillcode:l});return i((()=>{console.log("打印下当前的channelList",w),window.onPaymentFullfilled=e=>{console.log(e,"orderId-----------"),reLaunchHandler("result",{code:e})}}),[]),a(p,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(p,{className:"paymentMode",children:[a(p,{className:"topInfo",children:[a(u,{className:"title",children:[e(M,{value:"roundcheck"}),"订单提交成功"]}),a(p,{className:"info",children:["订单号:",f.current.contractBillcode," | 总金额:",Na(f.current.contMoney+(f.current.logMoney||0)),"元"]}),a(p,{className:"info",children:["还需支付:",Na(f.current.orderMoney),"元"]})]}),e(p,{className:"paymentGroup",children:e(I,{onChange:b,children:null==w?void 0:w.map((o=>a(p,{className:"paymentItem",children:[e(M,{value:o.fchannelBankImgurl}),a(p,{children:[a(p,{className:"base",children:[e(u,{children:o.fchannelName}),e(N,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]}),"1"===o.ptfchannelAmt?a(p,{className:"info",children:[a(p,{children:["账户余额:",o.faccountAmount,"元"]}),a(p,{children:["支付金额:",Na(f.current.orderMoney),"元"]})]}):null]})]},o.fchannelCode)))})})]}),e(p,{id:"v_html"}),e(y,{loading:T,children:e(p,{className:"btnGroup",onClick:C,children:e(p,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),cs=({dataObj:o})=>{const{View:l,Text:s}=g();return a(l,{className:"placeOrderResultWrap",children:[a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:o.contractBillcode})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:Na(o.dataBmoney)})]})]})},rs=s((({code:o,goodsBeanStr:l,borderRadius:s,leftColor:t,leftButtonColor:i,leftBorderColor:n,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:u,paddingTop:N,paddingBottom:M})=>{const{View:y,Text:I,IconMobile:D,WrapLoading:w}=g(),{result:b,loading:T}=Ae(o||(f("contractBillcode")||{}).contractBillcode,l);return e(y,{className:"placeOrderResult",style:{paddingTop:N,paddingBottom:M},children:e(w,{loading:T,children:a(y,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(D,{value:b.icon,style:{fontSize:"35px",color:b.color}}),a(y,{className:"tips",children:[e(I,{className:"title",children:b.msg}),e(I,{className:"tip",children:b.info})]}),"success"===b.sysRecode&&e(cs,{dataObj:b.dataObj}),a(y,{className:"btnGroup",style:{marginTop:20},children:[e(y,{className:"btn black",onClick:()=>l?C("orderlist"):C(b.menuCode,{contractBillcode:b.dataObj.contractBillcode}),style:{color:t,backgroundColor:i,border:`1px solid ${n}`,borderRadius:1===c?"20px":"0px"},children:b.buttonText}),e(y,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>C(d.value),className:"btn white",children:r})]})]})})})})),{Button:ds}=N,ms=a=>{var{dataState:l}=a,s=ha(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(hs,Object.assign({dataState:l},s))})},hs=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:i,btnColor:n,btnShape:c}=a,r=ha(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=g();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=ve(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e(ds,{style:{color:t,borderColor:i,backgroundColor:n},className:y({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},{Button:ps}=N,gs=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=n((()=>D()),[]),i=n((()=>s?I():null),[s]),c=e=>pa(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 o=document.execCommand("copy");if(document.body.removeChild(a),!o)throw new Error("复制失败")})),r=(e,a="success")=>{s&&i&&i.showToast?i.showToast({title:e,icon:a}):alert(e)};return e(ps,{className:"copy",size:"mini",fill:"outline",onClick:()=>pa(void 0,void 0,void 0,(function*(){if(a)try{s&&i&&i.setClipboardData?(yield new Promise(((e,o)=>{i.setClipboardData({data:a,success:e,fail:o})})),r("复制成功","success"),l(!0)):(yield c(a),r("复制成功","success"),l(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:o?"已复制":"复制"})})),us=({contractPaydate:a,init:l,countdownCancel:s,contractId:n})=>{const{View:c,SmoothView:r}=g(),{resultTime:d}=((e,a,o,l)=>{const[s,n]=t("");return i((()=>{const a=setTimeout((()=>{const a=new Date(e),s=new Date,t=a.getTime()-(s.getTime()-3600);t<999&&t>0?o(l).then((()=>{T.eventCenter.trigger("switchOrderTab")})):t>1e3&&n(ya(t,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(a)}}),[s]),{resultTime:s}})(a,0,s,n);return e(o,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function Ns({contractBillcode:o,dataBmoney:l,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:p,countdownCancel:u}){const{View:N}=g(),M=Le(i,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:["订单号: ",o,e(gs,{copyContent:o})]}),e(N,{className:"status",children:M})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>C("orderDetail",{contractBillcode:o}),children:t.map((a=>e(_a,Object.assign({},a,{dataState:i,children:1===i&&e(us,{contractPaydate:h,init:c,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",Na(l)]})]}),e(ms,{init:c,contractType:p,contractId:n,contractBillcode:o,dataState:i,contractAppraise:r,dataBmoney:l})]})}const Ms=()=>{const{View:a,Image:o}=g();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ys=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:i}){const{View:n,ScrollView:c,Loading:r}=g(),{onScroll:d,data:h,loading:p,init:u,countdownCancel:N}=je(o,l,i);return e(n,{className:"orderListItemWrap",children:e(Ua,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(n,{children:[h.map(((e,a)=>m(Ns,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(n,{children:p?e(r,{}):null})]}):a(n,{className:"nodata_img",children:[e(Ms,{}),e(n,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Is=process.env.TARO_ENV;let Cs=Oe;if(console.log("platform",Is),"h5"==Is){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(Cs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=T.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(Cs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Ds=s((({refreshNum:a=0,indexId:o=0,borderRadius:l=!1,orderSpacing:s=12,contractType:n=""})=>{const{View:c,Tabs:r}=g(),[d,m]=t(o);return i((()=>{const e=()=>{const e=Cs.findIndex((e=>"-1"===e.code));m(e)};return T.eventCenter.on("switchOrderTab",e),()=>{T.eventCenter.off("switchOrderTab",e)}}),[]),e(c,{className:"order-container",children:e(r,{defaultIndex:+d,tabs:Cs,render:o=>e(c,{className:"orderList",children:e(ys,{contractType:n,item:o,orderSpacing:s,refreshNum:a,borderRadius:l})})},d)})})),ws=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:h})=>{const{View:u,Text:N,Image:M}=g(),{orderDetail:y,handleApplyBtn:I,creditMoney:D,packageRemark:w,expressName:f}=Be(l||""),b=e=>aa(e).format("YYYY-MM-DD HH:mm:ss");return a(u,{className:"orderDetail",children:[e(u,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(u,{className:"orderDetailTopTitleContent",children:[a(u,{className:"icon_text",children:["待收货"===Le(y.dataState)?e(ca,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Le(y.dataState,y.contractAppraise)})]}),e(u,{className:"subTitleWrap",children:b(y.gmtCreate)})]})}),e(u,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:n+"px"},children:a(u,{style:{position:"relative",top:-26},children:[a(u,{className:"addressInfo",children:[e(u,{className:"lPart",children:e(ca,{value:"dizhi"})}),a(u,{className:"mPart",children:[a(u,{className:"personInfo",children:[e(N,{className:"personName",children:y.goodsReceiptMem}),e(N,{className:"personPhone",children:y.goodsReceiptPhone})]}),e(u,{className:"address",children:y.goodsReceiptArrdess})]}),e(u,{className:"rPart",children:[1,2,3].includes(Number(null==y?void 0:y.dataState))&&e(N,{onClick:()=>C("addressList",{contractBillcode:y.contractBillcode}),children:"编辑"})})]}),a(u,{className:"orderDetailGoodsWrap",children:[y.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{C("goodDetail",{skuCode:l.skuCode})},children:[e(_a,Object.assign({},l),l.contractGoodsId),e(u,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),C(h,{skuCode:l.skuCode})},children:"商品快照"}),Number(y.dataState)>1&&Number(y.dataState)<4&&"06"!==y.contractType?e(u,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),I.bind(null,l,y.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(u,{className:"priceInfo",children:"06"!=y.contractType?a(p,{children:[a(u,{className:"priceInfoFloor top",children:[a(u,{className:"totalNum",children:["共",y.goodsNum,"件商品"]}),a(u,{className:"totalPrice",children:["合计 ",parseFloat((y.dataBmoney-y.refundMoney).toFixed(2))]})]}),a(u,{className:"priceInfoFloor",children:[e(u,{className:"totalNum",children:"商品总额"}),a(u,{className:"totalPrice",children:["¥",y.contractInmoney]})]}),a(u,{className:"priceInfoFloor",children:[e(u,{className:"totalNum",children:"优惠"}),a(u,{className:"totalPrice",children:["¥",-y.goodsPmoney]})]}),a(u,{className:"priceInfoFloor",children:[e(u,{className:"totalNum",children:"客服电话"}),e(u,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(o,{children:[a(u,{className:"express",children:[e(u,{className:"label",children:"物流信息"}),e(u,{className:"name",children:f||"暂无物流信息"})]}),a(u,{className:"express",children:[e(u,{className:"label",children:"配送信息"}),e(u,{className:"name",children:"1"===y.contractPumode?"自提":"快递"})]})]}),"06"!==y.contractType&&a(u,{className:"express",children:[e(u,{className:"label",children:"发票信息"}),e(u,{className:"name",children:0===y.contractInvstate?"未开票":1===y.contractInvstate?"已提交":"已开票"})]}),a(u,{className:"orderInfo",children:[e(u,{className:"orderInfoItem",children:e(u,{style:{fontSize:14},children:"订单信息"})}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"运费"}),a(u,{className:"name",children:["¥",y.goodsLogmoney]})]}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"买家留言"}),e(u,{className:"name",children:w||"-"})]}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"订单编号"}),a(u,{className:"context_copy",children:[e(u,{className:"name",children:y.contractBillcode}),e(gs,{copyContent:y.contractBillcode})]})]}),a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"下单时间"}),e(u,{className:"name",children:b(y.gmtCreate)})]}),"06"!=y.contractType?a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"授信金额"}),e(u,{className:"name",children:Na(-D)})]}):"",a(u,{className:"orderInfoItem",children:[e(u,{className:"label",children:"支付方式"}),e(u,{className:"name",children:e(u,{className:"name",children:"0"===y.contractPmode?"线上支付":"线下支付"})})]}),"1"===y.contractPmode&&a(u,{className:"orderInfoItem container-img-top",children:[e(u,{className:"label",children:"付款凭证"}),e(u,{className:"name",children:e(M,{mode:"widthFix",style:{width:100},src:$e(y.contractEcurl)})})]})]}),e(u,{className:"btnGroupFooter",children:e(ms,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:y.contractBillcode,contractId:y.contractId,contractType:y.contractType,dataState:y.dataState,contractInvstate:y.contractInvstate,dataBmoney:y.dataBmoney,contractAppraise:y.contractAppraise})})]})})]})})),fs=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:i}=g(),n=O(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=O(l,"packageList.length",o.count),r=O(l,"packageList[0].expressName",o.expressName),d=O(l,"packageList[0].packageBillno",o.packageBillno),m=O(s,"state",o.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",c," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",r]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},bs=({defaultValue:o,detail:l})=>{const{View:s}=g(),t=O(l,"message",o.message),i=O(l,"data",o.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.map(((o,l)=>a(s,{className:"step",children:[e(s,{className:"time",children:o.time}),e(s,{children:o.context})]},l))):e(s,{className:"noInfo",children:t})})},Ts=s((({code:o,defaultValue:l})=>{const{View:s}=g(),{info:t,detail:i,stateObj:n}=Ee(o);return a(s,{className:"expressInfo",children:[e(fs,{info:t,detail:i,stateObj:n,defaultValue:l}),e(bs,{detail:i,defaultValue:l})]})})),xs=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:n,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:p}=g(),{servicePopup:u}=ga(),[N,M]=t(c),[y,I]=t(n);return i((()=>{M(f("userNickname")),I(f("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${l}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>C("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:u})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(p,{src:y,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),zs=s((({title:o,columnList:l})=>{const{View:s,Text:n,Badge:c,Image:r}=g(),[d,m]=t({}),[h,p]=t(0),u=()=>pa(void 0,void 0,void 0,(function*(){try{const e=yield L();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}}));i((()=>{const e=f("myPageShowNum")||0;p(e),u();const a=setInterval((()=>{const e=f("myPageShowNum")||0;e!==h&&(p(e),u())}),500);return()=>{clearInterval(a)}}),[h]);const N=(e,a)=>{4!==e.id?C("orderlist",{indexId:a+1}):C("afterSalesList")};return console.log(333,l,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:o}),e(s,{className:"more",onClick:()=>C("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:N.bind(null,o,l),className:"contentItem",style:{display:o.show?"block":"none"},children:[e(c,Object.assign({},d[o.code]>0?{content:d[o.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:o.imgUrl,className:"icon"})})),e(n,{className:"subTitle",children:o.label})]},l)))})]})})),ks=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:i,IconMobile:n,Image:c}=g();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>C(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:$e(o.imgUrl),className:"icon"}),e(i,{className:"label",children:o.link.label})]}),e(n,{value:"xiangyou1"})]},l)))})})),Ss=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=g(),{Rate:c}=N;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":l,"--active-color":o}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,o)=>e(n,{src:a.imgUrl,className:"img"},o)))})]})},As=[{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"}]}],vs=s((()=>{const[l,s]=t("1"),{View:i}=g(),n=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(o,{children:[e(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===l?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:As.map(((a,o)=>e(Ss,{itemData:a},o)))})]})})),Ls=s((({code:o,borderRadius:l,borderColor:s,color:i,buttonColor:n,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:u,Submit:M,changeContent:y,addImg:C,removeImg:D,getImgUrls:w}=Pe(o),{Button:f}=N,{View:b,Image:T,TextArea:x,Textarea:z}=g(),k=z||x,S="WEAPP"===I().getEnv(),A="undefined"!=typeof window,[v,L]=t(0),j=c("宝贝满足你吗?分享一下它吧"),O=e=>{L(e);if(w(e).length>=3)if(S){I().showToast({title:"最多上传3张图片",icon:"none"})}else A&&alert("最多上传3张图片");else(()=>{if(S){const e=I(),a=3-w(v).length;if(a<=0)return void e.showToast({title:"最多上传3张图片",icon:"none"});e.chooseImage({count:a,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){var a;(e.tempFilePaths||(null===(a=e.tempFiles)||void 0===a?void 0:a.map((e=>e.path)))||[]).forEach((e=>{C(v,e)}))}})}else if(A){const e=3-w(v).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const o=a.target.files;o&&o.length>0&&Array.from(o).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(v,a)}))},a.click()}})()};return a(b,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((o,s)=>a(p,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(T,{src:$e(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:o.goodsName}),e(b,{className:"goodsSize",children:o.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(cl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(k,{className:"content",placeholder:j.current,rows:5,maxLength:30,onInput:y.bind(null,s)})}),a(b,{className:"upload-imgs",children:[e(b,{className:"upload-title",children:"上传图片 (最多3张)"}),a(b,{className:"img-list",children:[a(b,{className:"upload-btn",onClick:()=>O(s),children:[e(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(b,{className:"upload-text",children:"上传图片"})]}),w(s).map(((o,l)=>a(b,{className:"img-item",children:[e(T,{className:"preview-img",src:o,onClick:()=>(e=>{if(S){const a=I(),o=w(v);a.previewImage({current:e,urls:o})}else A&&window.open(e,"_blank")})(o)}),e(b,{className:"delete-btn",onClick:()=>D(s,l),children:"×"})]},l)))]})]})]},s))),e(f,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:M,children:"提交"})]})})),js=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:i,isNeedDelete:n,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:h}=Ye(o),{Button:u}=N,{View:M,Image:y,Text:I}=g();return a(M,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(p,{children:[a(M,{className:"topInfo",children:[a(M,{className:"lPart",children:[e(y,{src:$e(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(M,{className:"goodsInfo",children:[e(M,{className:"goodsName",children:o.goodsName}),e(M,{className:"goodsSize",children:o.skuName})]})]}),e(M,{className:"rPart",children:o.pricesetNprice&&a(M,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(M,{className:"rate",children:[e(M,{className:"title",children:"商品评价"}),e(cl,{readOnly:!0,count:(null===(t=o.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(M,{className:"evaluate",children:e(M,{className:"content",children:e(I,{children:o.evaluateGoodsContent||""})})}),o.evaluateGoodsImgs&&e(M,{className:"evaluate-imgs",children:(()=>{let a=[];const s=o.evaluateGoodsImgs;if("string"==typeof s&&s.startsWith("["))try{a=JSON.parse(s)}catch(e){a=[]}else"string"==typeof s&&(a=s.split(",").filter(Boolean));return a.map(((a,o)=>e(y,{className:"evaluate-img",src:$e(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s)})),m.length?e(u,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:h,children:"删除"}):null]})})),Os=({item:o,edit:l,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=g(),r=s.includes(o.collectCode);return a(t,{className:"collectItem",children:[l?e(n,{className:"lPart",value:o.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(o.dataState)||C("goodDetail",{skuCode:o.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(i,{src:$e(o.collectOppic),className:"img"}),e(t,{className:[2,3].includes(o.dataState)?"tag":"",children:[2,3].includes(o.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:o.collectOpcont}),a(c,{className:"price",children:[o.collectOpnum," 元"]})]})]})]})},Bs=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,setChecked:d,handleSelectAll:m,selectAllChecked:h,setSelectAllChecked:p}=Ve(),{View:u,ScrollView:N,SmoothCheckbox:M,Checkbox:y,Button:I,Image:C}=g();return e(u,{className:"collectList",children:0===o.length?e(u,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(u,{className:"hasDate",children:[e(u,{className:"topBar",children:e(u,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(Ua,{id:"topBar",children:a(N,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(M,{value:r,onChange:i,style:{height:"100%"},children:o.map((a=>e(Os,{item:a,edit:l,checked:r},a.collectId)))}),l?a(u,{className:"handleBar",children:[e(u,{className:"checkAll",style:{width:"130px"},children:e(y,{value:"1",checked:h,onChange:()=>{if(!h){const e=o.map((e=>e.collectCode));d(e),p(!0)}else d([]),p(!1)},children:"全选"})}),e(I,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Es=({item:o,edit:l,checked:s})=>{var t,i;const{View:n,Image:c,Checkbox:r,SmoothView:d}=g();return a(n,{className:"collectItem",children:[l?e(r,{className:"lPart",value:o.collectCode,checked:s}):null,a(n,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:o.collectOpcode}),children:[e(c,{src:$e(null===(t=o.shopdeInfo)||void 0===t?void 0:t.shopdeLogo),className:"img"}),a(n,{className:"info",children:[e(d,{className:"title",children:o.collectOpcont}),e(d,{className:"scope",children:null===(i=o.shopdeInfo)||void 0===i?void 0:i.shopdeScope})]})]})]})},Ps=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ve(1),{View:h,ScrollView:p,SmoothCheckbox:u,Checkbox:N,Button:M,Image:y}=g();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(y,{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(!l),children:l?"完成":"编辑"})}),e(Ua,{id:"topBar",children:a(p,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(u,{value:r,onChange:i,style:{height:"100%"},children:o.map(((a,o)=>e(Es,{item:a,edit:l,checked:r},a.collectId||o)))}),l?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",style:{width:"130px"},children:e(u,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(M,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Ys=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:i,SmoothView:c}=g(),r=n((()=>o.footprintOpnum?`${o.footprintOpnum}元`:""),[o.footprintOpnum]);return a(s,{className:"footprintItem",children:[l?e(s,{className:"lPart",children:e(i,{value:o.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:$e(o.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:o.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Vs=({item:l,edit:s})=>{const{View:t}=g();return a(t,{className:"footPrint",children:[e(o,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==l?void 0:l.title})}),l.option.map(((a,o)=>e(Ys,{footprintItem:a,edit:s},o)))]})},Qs=({footprintList:a,edit:l})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?aa(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=Y(e,"gmtCreate");return Object.keys(o).map((e=>({title:e||"",option:o[e]})))}),[a]);return e(o,{children:s.map(((a,o)=>e(Vs,{item:a,edit:l},o)))})},Rs=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:i}=g(),{footprintList:n,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:p,checked:u}=Qe();return e(i,{loading:p,children:e(o,{className:"footprint",children:a(o,{className:"hasDate",children:[e(o,{className:"topBar",children:e(o,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(Ua,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:u,onChange:d,children:e(Qs,{footprintList:n,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Us=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:i})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=g(),{signedDates:p,pointsNum:u,loading:N,signing:M,handleSignin:y}=Re(),I=aa(),C=I.format("YYYY-MM-DD"),D=n((()=>p.includes(C)),[p,C]),w=n((()=>{const e=I.year(),a=I.month(),o=aa(`${e}-${a+1}-01`),l=o.endOf("month"),s=o.day(),t=0===s?6:s-1,i=o.subtract(t,"day"),n=l.day(),c=0===n?0:7-n,r=l.add(c,"day"),d=[];let m=i;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(I,"day"),isSigned:p.includes(e)}),m=m.add(1,"day")}return d}),[I,p]),f=n((()=>I.format("YYYY年MM月")),[I]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:i+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:f})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,o)=>e(c,{className:"weekDay",children:e(r,{children:a})},o)))}),e(c,{className:"calendarGrid",children:w.map(((o,s)=>a(c,{className:`calendarDay ${o.isCurrentMonth?"":"otherMonth"} ${o.isToday?"today":""} ${o.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:o.isToday?{color:l}:{},children:o.date.date()}),o.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:[u>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:u})," 积分"]})}),e(d,{className:"signinButton",disabled:D||M,onClick:y,style:{backgroundColor:l,opacity:D?.3:1,borderRadius:1===s?"22px":"8px"},children:M?"签到中...":D?"已签到":o})]})]})})})),Gs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:i})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=g(),[h,p]=t((()=>aa())),[u,N]=t(!1),[M,y]=t((()=>aa().year())),[I,C]=t((()=>aa().month()+1)),{signinDetails:D,loading:w,refresh:f}=Ue(h),b=n((()=>h.format("YYYY年MM月")),[h]),T=n((()=>Array.from({length:12},((e,a)=>a+1))),[]),x=n((()=>D.sort(((e,a)=>aa(a.date).valueOf()-aa(e.date).valueOf()))),[D]);return e(m,{loading:w,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:i+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:o}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;y(e),C(a),N(!0)},children:[e(r,{className:"dateText",children:b}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:x.length>0?x.map(((o,s)=>{const t=aa(o.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:l},children:["+",o.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:u,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{y((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[M,"年"]}),e(c,{className:"yearArrow",onClick:()=>{y((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:T.map((o=>e(c,{className:"monthItem "+(I===o?"active":""),onClick:()=>(e=>{C(e);const a=aa(`${M}-${String(e).padStart(2,"0")}-01`);p(a),N(!1)})(o),style:I===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Ws=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Fs=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=g();return e(s,{className:"promotionListTab",children:Ws.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},i)))})})),Hs=({data:o})=>{const{View:l}=g(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,promotionEndtime:c}=o;return a(l,{className:"promotionItem",children:[a(l,{className:"lPart",children:[e(l,{className:"round"}),e(l,{className:"tagBg",children:a(l,{className:"txt",children:["官方",s]})}),e(l,{className:"rule",children:i.at(-1).discName}),e(l,{className:"title",children:t}),a(l,{className:"time",children:[aa(n).format("YYYY-MM-DD")," ~ ",aa(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},Zs=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[i,n]=t(Ws[0].val),{list:c,getData:r}=Ge({params:i}),{View:d,ScrollView:m}=g();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Fs,{activeColor:o,setParams:n,params:i}),e(d,{children:e(Ua,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(Hs,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=g(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})}));const Ks=()=>{const{View:a,Image:o}=g();return e(a,{className:"noData",children:e(o,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},$s=({list:l,coe:s,config:t,backgroundColor:i,color:n,shopName:c})=>{const{View:r,Text:d}=g();return e(o,{children:l.length?l.map(((l,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===l.dataState?"overdue":""}`,style:{backgroundColor:i,color:n},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:l.pbName}),e(d,{className:"title",children:l.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||l.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",l.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",aa(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",aa(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",aa(l.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===l.dataState?e(o,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Ks,{})})},Js=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:c,ScrollView:r}=g(),{coe:d,getList:m,config:h,switchTab:p,list:u=[]}=We();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:h.current.map(((o,l)=>a(n,{className:"couponTabItem "+(d.current===l?"active":""),onClick:()=>p(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(Ua,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e($s,{backgroundColor:o,color:l,queue:i,list:u,coe:d,config:h})})})})]})})),Xs=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:p}=g(),{list:u,takeCoupon:N,takeList:M}=Fe({defaultValue:o,coupons:l});return e(p,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:u.map(((o,l)=>{const m=O(o,"pbName"),h=O(o,"pmPromotionDiscountList"),g=O(h.at(-1),"discName"),u=O(o,"promotionName"),y=aa(O(o,"promotionBegintime")).format("YYYY-MM-DD"),I=aa(O(o,"promotionEndtime")).format("YYYY-MM-DD"),C=O(o,"promotionCode");return a(p,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(p,{className:"lPart",children:[a(p,{className:"intro",children:[e(p,{className:"type",style:{color:n},children:m}),e(p,{className:"rule",style:{color:r},children:g})]}),a(p,{className:"info",children:[e(p,{className:"title",style:{color:c},children:u}),a(p,{className:"validity",style:{color:d},children:[y," - ",I]})]})]}),e(p,{className:"rPart",style:{backgroundColor:i},children:-1===o.availabledate||M.includes(l)?e(p,{className:"txt",children:"已 领 取"}):e(p,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),qs=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:u}=g(),{list:N,takeCoupon:M,takeList:y}=Fe({defaultValue:o,coupons:l});return e(u,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=O(o,"pbName"),h=O(o,"pmPromotionDiscountList"),p=O(h.at(-1),"discName"),g=O(o,"promotionName"),N=aa(O(o,"promotionBegintime")).format("YYYY-MM-DD"),I=aa(O(o,"promotionEndtime")).format("YYYY-MM-DD"),C=O(o,"promotionCode");return a(u,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[e(u,{className:"type",style:{color:n},children:m}),e(u,{className:"rule",style:{color:c},children:p}),e(u,{className:"info",style:{color:r},children:g}),a(u,{className:"validity",style:{color:d},children:[N," - ",I]})]}),e(u,{className:"rPart",style:{backgroundColor:i},children:-1===o.availabledate||y.includes(l)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>M({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),_s=s((o=>{var{type:l=1,coupons:s=[]}=o,t=ha(o,["type","coupons"]);const{View:i}=g();return a(i,{className:"getCouponOne",children:[1===l?e(Xs,Object.assign({coupons:s},t)):null,2===l?e(qs,Object.assign({coupons:s},t)):null]})})),et=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:i}=He(l);return e(M,{navigator:i,color:s,speed:o,direction:a,content:t})},at=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=g(),{info:r}=Ze(o);return a(n,{className:"noticeDetailContainer",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(n,{className:"content",children:r.noticeContext})]})})),ot=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Ke(o),{View:c,ScrollView:r}=g(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:p}=n;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(Ua,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:p}),a(c,{className:"time",children:["发布时间:",aa(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{yo as AddressDetail,go as AddressList,uo as AddressListBtn,Ha as AfterSalesApply,so as AfterSalesDetail,qa as AfterSalesList,co as AfterSalesType,Zs as AllPromotionList,ot as ArticleDetail,Pa as BackTop,Ul as CartList,Gl as CartOperate,vl as CartTop,Aa as ClassifyNav,ja as ClassifyNavOne,La as ClassifyNavOneJsx,Ea as ClassifyNavThree,Oa as ClassifyNavTwo,Bs as CollectionList,Ps as CollectionShopList,Js as CouponList,Va as Cube,Ls as EvaluateDetail,vs as EvaluateList,js as EvaluateViewDetail,Ts as ExpressInfo,Rs as FootPrint,_s as GetCouponOne,Go as Goods,zo as GoodsClassify,Lo as GoodsClassifyOne,Eo as GoodsClassifyTwo,ul as GoodsDetailAndEvaluate,Ko as GoodsDetailBanner,nl as GoodsDetailCoupon,Tl as GoodsDetailHandleBar,zl as GoodsDetailHandleBarOne,_o as GoodsDetailInfo,al as GoodsDetailInfoOne,sl as GoodsDetailPromotion,ll as GoodsDetailSku,Al as GoodsList,Wo as GoodsSlider,Fo as GoodsSlideshow,ma as Line,Us as MemberSignin,xs as MineData,ks as MineFunction,zs as MineOrderEntry,Io as MyAgreementList,Do as MySetting,Co as MySettingJsx,et as Notice,at as NoticeDetail,ws as OrderDetail,Ds as OrderList,ns as PaymentMode,fo as PickupPointList,Zl as PlaceOrderAddress,_l as PlaceOrderAddressTabs,os as PlaceOrderCoupon,ls as PlaceOrderDelivery,ss as PlaceOrderGood,ts as PlaceOrderInfo,is as PlaceOrderOperate,rs as PlaceOrderResult,ca as QjMobileIcon,Qo as Search,Uo as SearchPage,Ro as SearchStyleTwo,na as Service,Gs as SigninDetail,za as Slider,da as TextLine,ra as Title,Ia as ToPrice,ka as Video,bo as WechatAddressBtn,ua as addressIdConst,Na as fixPrice,Ma as fixPrice1,ya as formatTime,ga as useService};
|