s-material-react 2.2.35 → 2.2.36
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 l}from"react/jsx-runtime";import o,{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 N,antdMobile as u,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 T}from"@brushes/utils";import b,{useRouter as x}from"@tarojs/taro";import{queryOcsconfigList as z,getAddress as k,find as S,goodsDetailQuery as A,getContractNumbers as L}from"qj-b2c-api";import{queryOcserviceConfPageByMember as j}from"qj-b2b-api";import{get as v,isEqual as B,isEmpty as O,noop as E,groupBy as P}from"lodash-es";import{useCube as Y,useGoTop as V,useAfterSalesApply as Q,useAfterSalesList as R,afterSalesTabConfig as U,useAfterSalesDetail as G,useAfterSalesChooseType as W,useAddressItem as F,useAddressList as Z,useEditAddress as H,useMySetting as K,usePickupPointItem as $,usePickupPointList as J,useGoodsClassify as q,useGoods as X,useGoodCollection as _,useGoodDetail as ee,goodStore as ae,useBanner as le,useGoodSpecAndPrice as oe,useGoodFootprint as se,useCreatePoster as te,useCreateMiniPoster as ie,useGoodsShare as ne,useGoodSkuStore as ce,popupImplement as re,usePromotion as de,useAddCoupon as me,useCoupon as he,useEvaluate as pe,useAddShopping as ge,useGoodSku as Ne,useGoodsList as ue,useCartTop as Me,useCartListNext as ye,getRadioValue as Ie,useCartOperate as Ce,useOrderAddress as De,useOrderPickupAddress as we,userAddressData as fe,useOrderGood as Te,useOrderCoupon as be,useOrderInfo as xe,useOrderPay as ze,useOrderResult as ke,useOrderResultResult as Se,useOrderOperate as Ae,orderStatusImpl as Le,useOrderList as je,orderStatusList as ve,useOrderDetail as Be,useExpressInfo as Oe,useEvaluateDetail as Ee,useEvaluateViewDetail as Pe,useCollectionList as Ye,useFootprint as Ve,useMemberSignin as Qe,useSigninDetail as Re,useMarketingPromotion as Ue,useCouponList as Ge,useAllCoupon as We,useNotice as Fe,useNoticeDetail as Ze,useArticleDetail as He}from"qj-b2c-store";import{fullPath as Ke,checkMobile as $e,ProvinceComponent as Je,CityComponent as qe,AreaComponent as Xe,navigatorLink as _e}from"@brushes/shared-utils";import ea from"dayjs";import{updateContractAddress as aa,deleteEvaluateGoods as la}from"b2c-api";import{DynamicForm as oa}from"@brushes/mobile-form";import{View as sa,Image as ta,RichText as ia}from"@tarojs/components";const na=s((({width:a,height:l,top:o,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:c}=g();return e(c,{style:{width:a,height:l,borderRadius:n,top:o,left:i,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=g();return e(i,{onClick:o,className:y(l,t?`${l}-${t}`:"",a),style:s})},ra=s((({value:o,shared:s,goPath:t,goPointsPath:i,textIndent:n,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:N,paddingTop:u,paddingLeft:M,paddingRight:y,paddingBottom:D})=>{const{View:w,IconMobile:f,Button:T}=g(),x=I(),z="WEB"===b.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:u,paddingBottom:D},children:[e(w,{onClick:()=>{var e;e=o,t?C("goodList",{searchParam:e}):i&&C("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:N,paddingLeft:M,paddingRight:y,textIndent:n},children:o}),s&&e(l,{children:z?e(w,{onClick:e=>{e.stopPropagation(),z?k():x?.showShareMenu?.({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(T,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})})),da=({TextLineBgColor:l,text:o,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:l,textAlign:n,margin:1===s?"0 10px":""},children:[e(p,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(p,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${i}px`,color:c},children:o})]})},ma=s((({borderStyle:a,borderRadius:l,height:o,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:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));const ha=(e="b2c")=>{const[a,l]=t([]),o=n((()=>D()),[]);i((()=>{(async()=>{const e=await s();l(c(e))})()}),[]);const s=async()=>{switch(e){case"b2c":return await z();case"b2b":return await j().then((e=>e.list))}},c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=v(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${v(o,"ocserviceConfRemark")}: ${v(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${v(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;I().showActionSheet({itemList:a})}}},pa={label:""},ga=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Na=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ua=(e,a)=>{const l=Math.floor(e/1e3)%60,o=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${o}分钟 ${l}秒${a}`},Ma=e=>1===String(e).indexOf(".")?ya(e):Ia(e),ya=e=>{const a=Number(e).toFixed(0),l=(Number(e)-Number(a)).toFixed(2),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+"."+String(l).slice(2)},Ia=e=>{const a=Number(e).toFixed(0),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+".00"},Ca=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Da=(e="")=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?Ca+e:e?Ca+"/paas/shop/"+e:e),[e]),wa=({src:a,style:l,actived:o})=>{const s=c(null);return i((()=>{s.current&&(o?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},fa=s((({item:a,isPlay:o,position:s,direction:t})=>{const{Image:i,View:n}=g(),c=Da(a.imgUrl);return e(l,{children:c.includes(".mp4")||c.includes(".webm")||c.includes(".avi")?e(wa,{actived:o,style:{height:"100%",overflow:"hidden"},src:c}):e(i,{mode:"scaleToFill",src:c,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:C.bind(null,a.link?.value,a.link?.params)})})})),Ta=s((({Position:o="none",className:s="",className1:t="",defaultValue:i=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:p,paddingBottom:N,paddingLeft:u,paddingRight:M,selectImg:I,imgHeight:C,fontsize:D=16,textAlign:w="center",fontColor:f="#000000",backGroundColor:T="#ffffff"})=>{const b=n((()=>y({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:x,View:z}=g(),k=Y(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:T},children:a.title});return e(z,{className:s,style:{paddingTop:p,paddingBottom:N,paddingLeft:u,paddingRight:M},children:e(x,{imgHeight:C,data:k,className:b,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(l,{children:["top"===o||"bottom"===o?S(s):null,e(fa,{isPlay:t===i,item:s,position:o,direction:m})]})})})})),ba=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:N,paddingTB:u=0,paddingLR:M=0,fontsize:I=16,textAlign:C="center",fontColor:D="#000000",backGroundColor:w="#ffffff",otherStyles:f=[],ImgShadow:T=!1,Position:b="top"})=>{const{View:x}=g(),z=n((()=>y("silder-title",{"silder-tops1":"top"===b&&"horizontal"===d,"silder-bottoms":"bottom"===b&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===b,"silder-tops":"vertical"===d&&"top"===b},...f)),[f,b]);return e(x,{style:{padding:`${u}px ${M}px`},children:e(Ta,{Position:b,defaultValue:t,type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:N,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:I,textAlign:C,fontColor:D,backGroundColor:w,className:y({"outer-shadow":T}),className1:z})})})),xa=s((({url:a,poster:l,autoplay:o,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:l,autoPlay:o,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:c}})})})),za=({src:a,borderRadius:l})=>{const{Image:o}=g(),s=Da(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},ka=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=g(),r=Y(l,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:r.map(((l,s)=>a(n,{className:"classifyNavItem",onClick:()=>(e=>{e.link?.value.includes("/extra/index")?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(e.link?.value,e.link?.params)})(l),children:[e(za,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),Sa=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=g(),t=Da(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},Aa=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=g(),p=Y(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:p.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>C(a.link?.value,a.link?.params),children:e(Sa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},l)))})},La=s(Aa),ja=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:p,marginBottom:N})=>{const{View:u}=g(),M=Y(a,l),I=n((()=>y("classifyNav-two-item-title",...m)),[m]);return e(u,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:N},children:M.map(((a,l)=>e(u,{className:"classifyNav-two-item",onClick:()=>C(a.link?.value,a.link?.params),style:{width:4===h?"74px":"60px"},children:e(u,{className:I,style:{fontSize:c,color:r},children:a.title})},l)))})})),va=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=g(),m=Da(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>C(c.link?.value,c.link?.params),style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ba=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:N,marginBottom:u})=>{const{View:M}=g(),y=Y(a,l);return e(M,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:u},children:y.map(((a,l)=>e(va,{layout:p,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Oa=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=n((()=>D()),[]),{View:i}=g(),{goTop:c}=V();return e(i,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ca,{style:{display:"inline-block",color:o,fontSize:s,backgroundColor:l,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Ea=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=g(),i=Da(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{e.link?.value.includes("/extra/index")?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(e.link?.value,e.link?.params)})(o)})},Pa=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=g(),p=Y(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:p.map(((a,t)=>e(Ea,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Ya=o.createContext(null),Va=s((()=>{const{View:a}=g(),{tip:l}=r(Ya);return e(a,{className:"afterSalesApplyTip",children:l})}));const Qa=({bottomHeight:a,children:l,id:o,heightWrap:s,...c})=>{const r=n((()=>D()),[]),d=function(e){const[a,l]=t(0);return i((()=>{if(!D()||!e)return;const a=I().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(o),m=function(e=""){return n((()=>{if(!D())return 0;const a=I(),l=+a.getStorageSync("safeArea"),o=+(a.getStorageSync("tabBarHeight")||0);return l+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(a),{View:h}=g(),p=n((()=>{if(!r)return o?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,I().getSystemInfoSync().windowHeight,d,m),o){return{height:`calc(${I().getSystemInfoSync().windowHeight+"px"} - ${d+m}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[d,m]);return e(h,{...c,style:{...p,paddingBottom:o?"":m},id:o,children:l})},Ra=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=g(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:p}=r(Ya);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:p,children:e(l,{className:"reasonPopup",children:e(Qa,{children:a(i,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Ua=s((()=>{const{View:l}=g(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=r(Ya);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(l,{className:"price",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款金额"})]}),e(l,{className:"allPrice",children:e(l,{className:"single",children:ga(i)})})]}),e(Ra,{popupShow:s})]})})),Ga=s((()=>{const{View:l,TextArea:o,Textarea:s}=g(),t=s||o,{handleChooseImg:i,imgGroup:n,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Ya);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(ca,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(ca,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Wa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=g(),{tip:p,reasonList:N,popupVisible:u,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:T,limit:b,goodsInfo:x,handleFillInReason:z,handleSubmit:k,loading:S}=Q({contractBillcode:o,skuCode:s});return e(h,{loading:S,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Ya.Provider,{value:{tip:p,reasonList:N,popupVisible:u,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:T,limit:b,goodsNum:t,goodsPrice:i,goodsInfo:x,handleFillInReason:z,handleSubmit:k},children:[e(Va,{}),e(Ua,{}),e(Ga,{}),e(m,{className:"submitBtn",onClick:k.bind(null,t,o,l,i),children:"确定"})]})})})},Fa={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Za={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ha=s((({data:l,goAfterSalesDetail:o})=>{const{View:s,Image:t}=g();return a(s,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(s,{className:"title",children:[a(s,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(s,{className:"rPart",children:[e(ca,{style:{color:Fa[l.refundType]?.color,fontSize:12},value:Fa[l.refundType]?.icon}),e(s,{className:"txt",children:Fa[l.refundType].label})]})]}),a(s,{className:"goodsInfo",children:[e(s,{className:"lPart",children:e(t,{src:Ke(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(s,{className:"rPart",children:[e(s,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(s,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]}),a(s,{className:"count",children:["订单编号: ",l.contractBbillcode]})]})]}),a(s,{className:"tip",children:[e(s,{class:"lPart",children:Za[l.refundType][l.dataState]}),e(ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ka=s((()=>{const{View:a}=g();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),$a=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=g(),{afterSalesList:i,goAfterSalesDetail:n,loading:c,haseData:r}=R(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(Qa,{id:"tabContent",children:e(s,{children:r?i.map((a=>e(Ha,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Ka,{})})})})})})),Ja=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=g();return e(i,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:U,render:l=>e($a,{item:l,refreshNum:a})})})})),qa=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:p,Image:N,SmoothView:u}=g(),M="06"===d?m+"积分":ga(i),y=n((()=>t?`x ${t}`:""),[t]),I=(e=>{const a="string"==typeof e?e:"";if(!/^https?:\/\//i.test(a))return a;const l=a.indexOf("/paas/");return-1===l?a:a.slice(l).replace(/\/+/g,"/")})(o);return e(l,{children:a(p,{className:"card-item",children:[e(N,{src:Ke(I),alt:"",className:"card-item-img"}),a(p,{className:"card-item-info",children:[a(p,{className:"card-item-info-container",children:[e(u,{className:"card-item-info-container-title",children:s}),e(u,{className:"card-item-info-container-price",children:M})]}),a(p,{className:"card-item-info-sub",children:[e(u,{className:"sku",children:c}),e(u,{className:"count",children:y})]}),e(p,{className:"card-item-info-sub",children:a(u,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Xa=(e,a)=>{if("B01"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"}[a]}if("B02"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}[a]}},_a=o.createContext(null),el=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(_a),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=g();return e(d,{popupVisible:o,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(Qa,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:l.map(((l,o)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),al=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(_a),{View:n,Input:c}=g();return a(l,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:o,children:e(n,""===s?{style:{color:"#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(el,{})]})})),ll=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:N,packageName:u,setPackageBillno:M,loading:y}=G({refundCode:o}),{contractBbillcode:I,dataState:C,gmtCreate:D,ocRefundGoodsList:w,refundMoney:f,refundMeo:T,refundEx:b,refundType:x,ocRefundFileList:z,goodsReceiptMem:k,goodsReceiptPhone:S,goodsReceiptArrdess:A,packageCode:L,packageBillno:j,packageName:v}=c,{View:B,Image:O,WrapLoading:E}=g();return e(E,{loading:y,children:e(B,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(_a.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:N,packageName:u,setPackageBillno:M,submitExpressInfo:r},children:[a(B,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(B,{className:"left_text",children:Xa(x,C)}),e(B,{className:"right_time",children:ea(D).format("YYYY-MM-DD HH:mm:ss")})]}),e(B,{className:"afterSalesDetailContent",children:a(B,{className:"refundDetail",children:[e(B,{className:"title",children:"退款信息"}),e(B,{className:"goodsDetail",children:w?.map(((a,l)=>e(qa,{dataPic:Ke(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"订单编号"}),e(B,{className:"right",children:I})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"退款原因"}),e(B,{className:"right",children:b})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"退款金额"}),e(B,{className:"right",children:f})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"描述说明"}),e(B,{className:"right",children:T})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"补充凭证"}),e(B,{className:"right",children:z?.map(((a,l)=>e(O,{src:Ke(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"申请时间"}),e(B,{className:"right",children:ea(D).format("YYYY-MM-DD HH:mm:ss")})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"退款编号"}),e(B,{className:"right",children:o})]}),e(l,{children:"B02"===x?a(l,{children:[C>0?a(B,{className:"merchantMsg",children:[e(B,{className:"title",children:"商家信息"}),a(B,{className:"name",children:[k," ",S]}),e(B,{className:"address",children:A})]}):"",1===C?a(B,{className:"writeMsg",children:[e(B,{className:"wlMsg",children:"物流信息"}),e(al,{})]}):"",C>1?a(B,{className:"writeMsg",children:[e(B,{className:"wlMsg",children:"物流信息"}),a(B,{className:"express_content",children:[e(B,{className:"name",children:"物流单号"}),e(B,{className:"code",children:j})]}),a(B,{className:"express_content",children:[e(B,{className:"name",children:"物流公司"}),e(B,{className:"code",children:v})]})]}):""]}):""})]})}),0===C?e(B,{className:"footerBtn",children:e(B,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),ol=o.createContext(null),sl=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=g(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(ol),{goodsName:p,skuName:N,dataPic:u}=m,M=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ga(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ke(u),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:p}),e(t,{className:"price",children:M})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:N}),a(l,{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(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),tl=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:i}=g(),{goApply:n,goodsNum:c}=r(ol);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),(d=o,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(i,{className:"item",onClick:n.bind(null,l.value,s,t,c),children:[e(i,{className:"headline",children:l.label}),e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),il=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:N,goApply:u,loading:M,goodsPrice:y}=W({contractBillcode:o,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(ol.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:N,goApply:u,goodsPrice:y},children:[e(sl,{}),e(tl,{contractGoodsSendnum:N.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},nl=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=g();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},cl=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:i}=g(),{handlerImpl:n}=F(l),c=x(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(nl,{itemData:l,checked:"1"===l?.addressDefault,setDefault:s}),a(t,{children:[e(i,{className:"del",style:{marginRight:20},onClick:()=>C("editAddress",{addressId:l.addressId}),children:"编辑"}),r.contractBillcode?e(i,{className:"del",onClick:async()=>{const e=l.provinceName+"-"+l.areaName+"-"+l.cityName+"-"+l.addressDetail;await aa({contractBillcode:r.contractBillcode,addressPhone:l.addressPhone,addressDetail:e,addressMember:l.addressMember}),C("orderDetail",{contractBillcode:r.contractBillcode})},children:"确认"}):e(i,{className:"del",onClick:o,children:"删除"})]})]})]})},rl=s((()=>{const{View:a,Skeleton:o}=g(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),dl=s((({url:l,title:o,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:l}),e(n,{className:"title",children:o}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>C(t),children:["去看看",e(N,{value:"xiangyou1"})]}):null]})})})),ml=s((({refreshNum:a,btnShape:l,btnColor:o,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(rl,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(cl,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},a?.addressId))):e(dl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),hl=s((({borderColor:a,color:l,btnColor:o,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:l,backgroundColor:o},className:"addressListBtn",onClick:()=>C("addressEditor"),children:"+ 新增地址"})})})),pl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],gl=[{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:$e}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Je}},{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:Xe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],Nl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:n,paddingBottom:c,addressId:r})=>{const{View:d}=g(),[m,h]=t({}),[p,N]=t(!!r),{Button:M}=u,{onSubmit:y}=H(r);if(i((()=>{(async()=>{if(r){N(!0);let e=await k({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),N(!1)}else N(!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:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:pl,onSubmit:y,fields:gl})})})),ul=s((()=>{const{View:l}=g(),o=e=>{C(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(l,{className:"myAgreementList",children:e(l,{className:"list",children:s.current.map(((s,t)=>a(l,{className:"item",onClick:o.bind(null,s.type),children:[e(l,{children:s.label}),e(l,{children:e(N,{value:"xiangyou1"})})]},t)))})})})),Ml=()=>{const{View:l}=g(),{mySettingGoBind:o,mySettingLogout:s}=K();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(ca,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},yl=s(Ml),Il=({itemData:l})=>{const{View:o,Text:s}=g(),{handlerImpl:t}=$(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},Cl=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,ScrollView:i,Loading:n}=g(),{list:c,loading:r,skullShow:d,onScroll:m}=J(l);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:o+"px"},children:d?e(rl,{}):e(t,{className:"addressList",children:e(Qa,{id:"pickupPointListWrap",children:e(i,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,l)=>e(Il,{itemData:a},a&&a.userinfoOcode||l))),r&&e(n,{})]}):e(dl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),Dl=s((({borderColor:a,color:l,btnColor:o,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:l,backgroundColor:o},className:"addressListBtn",onClick:async()=>{await w("导入成功","none")},children:"导入微信收件地址"})})})),wl=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:c}=g();return e(l,{children:o.map((l=>e(i,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:(l?.childList||[]).map((l=>a(i,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:l.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{className:`container container_columns${t}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:(l?.childList||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:t})=>a(i,{onClick:()=>C("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:fl}=u,Tl=s((({cell:l,color:o,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(Qa,{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(fl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(fl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(wl,{navList:m,activeKey:r,cell:l})})]})})})})})),bl=d(null),xl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(bl),{View:d,ScrollView:m}=g(),[h,p]=t(!1),u=(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:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>u(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!0),children:e(N,{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(N,{value:"paixusort-sheng"})})}),e(Qa,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>u(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),zl=s((({thirdList:l})=>{const{View:o,Image:s}=g(),{picShadow:t,layout:i}=r(bl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:l.map(((l,i)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>C("goodList",{classtreeCode:l.classtreeCode}),children:[e(s,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},i)))})})),kl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(bl),m=n((()=>D()),[]),{secondList:h,thirdList:p}=(({navList:e,fCoe:a,sCoe:l})=>{const o=n((()=>e[a]?.childList||[]),[a,e]),s=n((()=>o[l]?.childList||[]),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:N,ScrollView:u,SideBar:M}=g();return e(N,{children:e(Qa,{id:"goodsClassifyOneContent",children:e(u,{children:a(N,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(M,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(M.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},l)))}),e(zl,{thirdList:p})]})})})})})),Sl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r})=>{const{View:d}=g(),{navList:m,activeKey:h,setActiveKey:p}=q(),[N,u]=t("0"),[M,y]=t("0");return e(bl.Provider,{value:{fCoe:N,setFCoe:u,sCoe:M,setSCoe:y,navList:m,activeKey:h,setActiveKey:p,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(xl,{}),e(kl,{})]})})})),Al=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:i,Image:n}=g();return e(i,{className:"level3Arr",style:{gridTemplateColumns:`repeat(${o}, 1fr)`,...t},children:l.map(((l,o)=>a(i,{className:"level3ArrItem",onClick:()=>C("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:l.goodsClassName})]},o)))})})),Ll=s((({navList:l,activeKey:o,layout:s,picShadow:n})=>{const[c,r]=t(0);i((()=>{r(l.findIndex(d))}),[o,c]);const d=e=>e.goodsClassCode===o,{View:m,Image:h}=g();return a(m,{className:"goodsClassifyTwoContent",children:[e(h,{className:"firstLevelImg",src:v(l[c],"goodsClassLogo"),mode:"widthFix"}),v(l[c],"childList")?.map(((l,o)=>a(m,{children:["0"===l.goodsClassHide?e(m,{className:"level2Title",children:l.goodsClassName}):"",e(Al,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:jl}=u,vl=s((({selectFontColor:l,selectBlcShow:o,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(Qa,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(jl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(jl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Ll,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),Bl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHW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wMDEsMS4zMjE1NTgyMyAzNC4xNzk2MTEzLDEuODE5NTQzNTQgQzM0LjY3NzYyMjYsMi4zMTc1Mjg4NSAzNC42Nzc2NDM2LDMuMTI0OTQzNTkgMzQuMTc5NjU4MywzLjYyMjk1NDg0IEwxOC44NTI2ODI4LDE4Ljk1MDcyODUgQzE4LjM1NDY5NzUsMTkuNDQ4NzM5NyAxNy41NDcyODI4LDE5LjQ0ODc2MDggMTcuMDQ5MjcxNSwxOC45NTA3NzU0IEMxNi41NTEyNjAzLDE4LjQ1Mjc5MDEgMTYuNTUxMjM5MiwxNy42NDUzNzU0IDE3LjA0OTIyNDYsMTcuMTQ3MzY0MiBMMzIuMzc2MiwxLjgxOTU5MDQ5IFoiIGlkPSLot6/lvoQtMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",Pl=s((({value:l,urlPath:o="search",iconShow:s,fontColor:t,backgroundColor:i,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:p,otherStyles:N=[],__pageConfig:u})=>{const{View:M,Image:I}=g(),D=n((()=>y("txt",...N)),[N]);return e(M,{onClick:()=>C(o),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:Bl,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:l})]})})})),Yl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:p,paddings:N,otherStyles:u=["mockWeight","mockItalic"],urlPath:M="search"})=>{const{View:I,Image:D}=g(),w=n((()=>y("txt",...u)),[u]),f=b.useRouter(),[T,x]=t("");return i((()=>{if(f?.params?.searchParam){const e=f.params.searchParam,a=decodeURIComponent(e);x(a)}}),[f?.params]),e(I,{onClick:()=>C(M),style:{paddingTop:N,paddingBottom:N,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:Bl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(I,T?{className:w,style:{color:s,display:"inline-block",fontSize:p},children:T}:{className:w,style:{color:s,display:"inline-block",fontSize:p},children:l})]}),e(I,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:p,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),Vl=s((({placeholder:l,placeholderText:o,history:s,historyText:i,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:p})=>{const N=c(null),u=n((()=>D()),[]),{View:M,Text:y,Input:w}=g(),[b,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:Bl,alt:""}),e(w,{ref:N,"confirm-type":"search",type:"text",className:"content",value:z,onInput:e=>k(e.detail.value),onConfirm:async e=>{u&&(x((a=>{if(!a.includes(N.current.value||e.detail.value)&&(N.current.value||e.detail.value)){const l=a.concat(N.current.value||e.detail.value);return T("history",l),l}return a})),S(N.current.value||e.detail.value))},...l?{placeholder:o}:{}}),e(y,{className:"btn",onClick:()=>{const e=z.trim();e&&(x((a=>{if(!a.includes(e)){const l=a.concat(e);return T("history",l),l}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:async()=>{(await I()).removeStorageSync("history"),x([])},value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(M,{className:"content",children:b.map(((a,l)=>e(M,{onClick:()=>S(a),className:"historyItem",children:a},l)))})]}):null]})})),Ql=s((({defaultValue:l=[],classCode:o="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:p=[],markedPrice:N,paddingTop:u,paddingBottom:M,paddingLeft:I,paddingRight:D,goodsName:w=!0,goodsPrice:f=!0,goodsCar:T=!0,goodsBorder:b=!0,goodsShadow:x=!1,marginGap:z=10})=>{const[k,A]=t(l),L=c(),{View:j,Text:E}=g();return i((()=>{B(L.current,p)||(L.current=p,O(p)?A(l):(async()=>{try{const e=await S({[h]:p.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=v(e,"list",[]);A(a)}catch(e){A(l)}})())}),[p]),e(j,{style:{paddingTop:u,paddingBottom:M},children:e(j,{className:y({[`goods-${o}`]:!0}),style:{display:"grid",gap:z,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:I,paddingRight:D},children:k.map(((l,o)=>a(j,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:b?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:l.skuCode}),className:["goods "+(x?"outer-shadow":"")].join(" "),children:[e(j,{className:"goods-img",style:{backgroundImage:`url(${Ke(l.dataPic)})`}}),a(j,{className:"space",children:[e(j,{className:"titleType",style:{display:w?"block":"none"},children:l.goodsName}),e(j,{className:"subTitle",children:l.brandName}),a(j,{className:"price",children:[a(j,{style:{fontSize:18},children:[f?ga(l.pricesetNprice):"",1===N&&e(E,{className:"markedPrice",children:ga(l.pricesetMakeprice)})]}),e(j,{className:"anticon",style:{display:T?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Rl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:N,marginTop:u,marginBottom:M,marginLeft:y,marginRight:I})=>{const{View:D}=g(),{list:w}=X({defaultValue:l,goods:o},n);return e(D,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:M,marginLeft:y,marginRight:I},children:w.map(((l,o)=>a(D,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${N}px`},onClick:()=>C("goodDetail",{skuCode:l.skuCode}),children:[e(D,{className:"img",style:{backgroundImage:`url(${Ke(l.dataPic)})`}}),a(D,{className:"board",children:[e(D,{className:"title",children:l.goodsName}),a(D,{className:"info",children:[a(D,{className:"lPart",children:[s?e(D,{className:"price",children:ga(l.pricesetNprice)}):null,t?e(D,{className:"marketPrice",children:ga(l.pricesetMakeprice)}):null]}),i?e(D,{className:"rPart",children:e(ca,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Ul=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:p,goodsShadow:N,btnText:u,btnBg:M,btnColor:y,btnRadius:I})=>{const w=n((()=>D()),[]),{list:f}=X({defaultValue:l,goods:o},m),{SmoothSwiper:T,View:b,Image:x}=g(),[z,k]=t(0);return a(b,{className:"goodsSlideshow",children:[e(x,{src:s,className:"bg",mode:"widthFix"}),e(T,{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:l=>a(b,{className:["goodsSlideshowItem",""+(l.goodsCode===f[z].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:h,borderStyle:p?"solid":"none",boxShadow:N?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:l.skuCode}),children:[e(x,{className:"logo",src:Ke(l.dataPic),mode:"widthFix"}),c?e(b,{className:"goodsName",children:l.goodsShowname}):null,r?a(b,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(b,{className:"price",children:ga(l.pricesetNprice)}):null,i?e(b,{className:"marketPrice",children:ga(l.pricesetMakeprice)}):null,e(b,{className:"btn",style:{backgroundColor:M,color:y,borderRadius:I},children:u})]})})]})}));var Gl=new class{events={};on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const l=this.events[e];l&&l.forEach((e=>e(...a)))}off(e,a){const l=this.events[e];l&&(this.events[e]=l.filter((e=>e!==a)))}};const Wl=s((({Position:o="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:p,loop:N,paddingTop:u,paddingBottom:M,paddingLeft:I,paddingRight:C,selectImg:D,imgHeight:w,collectParams:f,fontsize:T=16,textAlign:x="center",fontColor:z="#000000",backGroundColor:k="#ffffff"})=>{const S="WEB"===b.getEnv(),A=n((()=>y({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===p}))),{handleCollect:L,collection:j}=_(f),[v,B]=t(!1),{SmoothSwiper:E,View:P,Button:V}=g(),Q=Y(r,D||[]),R=a=>e(P,{className:c,style:{fontSize:T,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:z,backgroundColor:k},children:a.title});return i((()=>{const e=e=>{B(e)};return Gl.on("IsCollectionShow",e),()=>{Gl.off("IsCollectionShow",e)}}),[]),a(P,{className:s,style:{position:"relative",paddingTop:u,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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MTQuNjY2NjAxNiw4LjgyMTc1NzgxIEMxNy4yNDIzMDQ3LDguODIxNzU3ODEgMTkuMzM4NTU0NywxMC45MTc5Njg4IDE5LjMzODU1NDcsMTMuNDkzNjcxOSBDMTkuMzM4NTU0NywxNi4wNjkzNzUgMTcuMjQyMzA0NywxOC4xNjU2MjUgMTQuNjY2NjAxNiwxOC4xNjU2MjUgWiBNMTQuNjY2NjAxNiwxMS4zNzAwNzgxIEMxMy40OTUzMTI1LDExLjM3MDA3ODEgMTIuNTQzMDA3OCwxMi4zMjI0MjE5IDEyLjU0MzAwNzgsMTMuNDkzNjcxOSBDMTIuNTQzMDA3OCwxNC42NjQ5NjA5IDEzLjQ5NTM1MTYsMTUuNjE3MzA0NyAxNC42NjY2MDE2LDE1LjYxNzMwNDcgQzE1LjgzNzg1MTYsMTUuNjE3MzA0NyAxNi43OTAyMzQ0LDE0LjY2NDk2MDkgMTYuNzkwMjM0NCwxMy40OTM2NzE5IEMxNi43OTAyMzQ0LDEyLjMyMjQyMTkgMTUuODM3ODkwNiwxMS4zNzAwNzgxIDE0LjY2NjYwMTYsMTEuMzcwMDc4MSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",onClick:()=>{Gl.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:El,onClick:e=>{e.stopPropagation(),Gl.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(V,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${El})`,backgroundSize:"100% 100%",width:20,height:20,padding:0},className:"wx-share-button"})}),e(P,{onClick:L,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2,display:v?"flex":"none"},children:O(j.dataObj)?e("img",{src:"data:image/svg+xml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0ODgzIEMzLjEyNDIzMDQ0LDE0LjE4NDEwOTIgMy40Njk5NTgwNiwxNC4wMDAxNDgyIDMuODQyMjQ5MDYsMTMuOTA4MDE2NSBMNy44MzY1MjExNCwxMi45MTk1NDQ2IEMxMS4xNjU4ODI5LDEyLjA5NTYxOTYgMTQuMDQwOTA1Niw5LjkxNDI1NjI5IDE1LjgyMDA5MjYsNi44NjIxNzY4NyBMMTcuOTU0NjAyOSwzLjIwMDU2MzQyIFoiIGlkPSLmmJ/lvaIiIGZpbGw9IiMzNEMwQkMiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",style:{width:"100%",height:"100%"},alt:"收藏"})})]}),e(E,{imgHeight:w,data:Q,className:A,type:d,autoplay:m,autoplayInterval:h,direction:p,loop:N,interval:5e3,vertical:"vertical"===p,render:(s,t,i)=>a(l,{children:["top"===o||"bottom"===o?R(s):null,e(fa,{isPlay:t===i,item:s,position:o,direction:p})]})})]})})),Fl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:i,memberCode:n=""}=ee(o,s),c=ae.getState();ae.setState({...c,memberCode:n}),console.log(24,n);const r=le(t),{goodInfo:d}=oe(i),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ke(d.dataPic),skuCode:o};return e(Wl,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})};function Zl(l){const{content:o,position:s="top"}=l,[i,n]=t(!1);return a(sa,{className:"tooltip-wrap",children:[e(sa,{className:"tooltip-icon",onClick:()=>n(!i),children:e(ta,{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(sa,{className:`tooltip-popup tooltip-${s}`,children:[o,e(sa,{className:"tooltip-arrow"})]})]})}const Hl=({shareShow:a,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{if(!D())return;return"WEB"===I().getEnv()?e(l,{children:a?e(Kl,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s}):null}):e($l,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s})},Kl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Button:n}=g(),{save:c,canvasRef:r,width:d,height:m}=te(o,s,t);return e(i,{className:"share",children:l?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:()=>o(!1),children:"关闭海报"})}),e(i,{className:"dashboard-item",onClick:c,children:e(n,{className:"txt",children:"保存图片"})})]})]}):null})},$l=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Canvas:n,Button:c}=g(),{save:r,width:d,height:m}=ie(o,s,t,l);return e(i,{style:{zIndex:l?1e3:-10,opacity:l?1:0},className:"share",children:a(i,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[l&&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=b.createCanvasContext("canvas");e.clearRect(0,0,d,m),e.draw(!0),o(!1)},children:"关闭海报"})}),e(i,{className:"dashboard-item",onClick:r,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},Jl=({skuCode:l,priceShow:o,collectionShow:s,scene:n})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:p,Button:N,IconMobile:u}=g(),{rsSkuDomainList:M,rsGoodsFileDomainList:y,goodsDayinfo:C}=ee(l,n),{goodInfo:D}=oe(M);console.log("goodInfo",D);const w=D.mpriceStairDomainListMap||{},f=Object.values(w),T=f.length>0?f[0]:[],x=T.length>0?T.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";se(l);const z=I(),k="WEB"===b.getEnv();Gl.emit("IsCollectionShow",{collectionShow:s}),i((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&S()};return Gl.on("bannerImageClick",e),()=>{Gl.off("bannerImageClick",e)}}),[]);const S=()=>{k?z.setClipboardData({data:window.location.href,success:()=>{z.showToast({title:"复制成功",icon:"success"})},fail:()=>{z.showToast({title:"复制失败",icon:"none"})}}):z?.showShareMenu?.({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})};return a(d,{className:"goodsDetail-topInfo",children:[e(Hl,{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:o?"block":"none"},children:["会员价:",ga(D.pricesetNprice)]}),a(m,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ga(D.pricesetNprice)]}),x?e(d,{className:"page",children:e(Zl,{content:x,position:"right"})}):null]})})]})]})},ql=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=g(),{handleCollect:i,collection:n}=_(l),{handleShare:c}=ne();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:O(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Xl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=g(),{rsSkuDomainList:r}=ee(t,i),{goodInfo:d}=oe(r);return ce((e=>e.spec)),se(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ga(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(ql,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ke(d.dataPic),skuCode:t})]})})),_l=s((()=>{const{Text:e}=g(),l=ce((e=>e.count)),o=ce((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),eo=({dispatchPageStore:o})=>{const{View:s,Text:t}=g(),{openPopup:i}=re(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(_l,{}),e("img",{src:Ol,alt:"",className:"icon"})]})]})})},ao=({skuCode:l,scene:o})=>{const{View:s,Text:t}=g(),{rsSkuDomainList:i}=ee(l,o),{goodInfo:n}=oe(i),c=de(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},l)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},lo=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=g(),{save:p,isPick:N}=me(),u=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:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:i}),a(h,{className:"date",children:[ea(l).format("YYYY-MM-DD")," - ",ea(d).format("YYYY-MM-DD")]})]}),e(m,u>0?{className:N?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:t,couponAmount:1}),children:N?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),oo=()=>{const{View:a,Image:l}=g();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},so=({skuCode:o,scene:s,...t})=>{const{View:i,Text:n,Popup:c,Image:r}=g(),{rsSkuDomainList:d}=ee(o,s),{goodInfo:h}=oe(d),{coupon:p,visible:N,setVisible:u}=he(d,h.skuCode);return a(l,{children:["26"==h.goodsType?null:a(i,{className:"goodsDetail-coupon",onClick:()=>u(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(r,{src:Ol,alt:"",className:"icon"})]})]}),e(c,{popupVisible:N,popupHandler:u,children:e(i,{className:"goodsDetail-coupon-popup",children:e(Qa,{children:p.length>0?p.map(((e,a)=>m(lo,{...e,key:a}))):a(i,{className:"NoDataImg",children:[e(oo,{}),e(i,{className:"btn",onClick:()=>u(!1),children:"确定"})]})})})})]})},to=({onChange:a,readOnly:l=!1,size:o=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(!l){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,l)=>e(ca,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},io=({item:l})=>{const{View:o,Image:s,Text:t,Button:i}=g(),n=D(),c=I();f("user");const{userInfoCode:r}=f("user")||{userInfoCode:""};return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(to,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),a(o,{className:"pj-wrapper",children:[a(o,{className:"flex-1",children:[e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent}),l.evaluateGoodsImgs&&JSON.parse(l.evaluateGoodsImgs).length>0&&e(o,{className:"img-group",children:JSON.parse(l.evaluateGoodsImgs).map((a=>e(s,{src:Ke(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),l.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(async e=>{try{const a=e.evaluateGoodsId;if(!a)return;await la({evaluateGoodsId:a,isLocalMock:!n}),await w("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}})(l)},children:"删除"}):null]}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},no=({evaluateArr:l})=>{const{View:o}=g();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e(io,{item:a},l)))]}):e(dl,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},co=process.env.REACT_APP_BASE_URL,ro=({goodsRemark:a})=>{const{View:l}=g(),o=n((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${co}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(l,{className:"goodsDetail-info",children:e(ia,{nodes:o})})},mo=({goodsRemark:l})=>{const{View:o}=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((async e=>{if(e){d(!0);try{const a=await A({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}),[]);i((()=>{p(m)}),[m,p]);const N=s.rsPropertiesValueDomainList||[];return a(o,{className:"goodsDetail-info",children:[N.length>0&&e(o,{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:N.map(((l,s)=>a(o,{style:{marginRight:25,marginLeft:10},children:[" ",e(o,{style:{color:"black",fontSize:13,fontWeight:500},children:l.propertiesName}),e(o,{style:{color:"gray",fontSize:11},children:l.propertiesValueValue||"--"})]},s)))}),r&&e(o,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},ho=({tabActive:o,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(l,{children:d.map(((l,t)=>e(p,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},po=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:i,scene:n})=>{const{View:c}=g(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=ee(i,n),p=pe(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(ho,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(ro,{goodsRemark:m}):2===r?e(no,{evaluateArr:p,evaluateImgShow:o,evaluateImg:s}):1===r?e(mo,{goodsRemark:m}):null})]})},go=({skuName:l,handleChooseSize:o,goodsShowname:s,skuOption:t,index:i})=>{const{View:n,Text:c}=g(),r=ce((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:l}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(n,{className:y({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:o.bind(null,a.specValueValue,i),children:a.specValueValue},l)))})]})},{Stepper:No}=u,uo=({count:a,handleStep:l,goodsNum:o,goodsMinnum:s})=>{const{View:t}=g(),i=s||1,n=o||999;return e(t,{className:"numStep",style:{width:"100px"},children:e(No,{value:a,min:i,max:n,onChange:e=>{if(null===e||isNaN(e))return;const o=Math.floor(e);if(o!==a+1)if(o!==a-1){if(o<i)w(`不能小于${i}`,"none");else if(o>n)w("超库存","none");else if(o!==a){const e=ae.getState();ae.setState({...e,count:o})}}else l("minus");else l("plus")}})})},Mo=s((({handleStep:l,goodsNum:o,goodsMinnum:s})=>{const{View:t}=g(),i=ce((e=>e.count));return a(t,{className:"countWrap",children:[e(t,{className:"label",children:"购买数量"}),e(uo,{count:i,handleStep:l,goodsNum:o,goodsMinnum:s})]})})),yo=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=g(),{skuList:r}=o,d=i&&"06"===i.goodsType?i.pricesetRefrice+"积分":ga(i.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:Ke(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,l)=>e(go,{goodsShowname:i.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},Io=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=g(),c=ce((e=>e.isNeedButton)),r=ce((e=>e.offShelf));return r?e(n,{className:y({btnWrap:!0,offShelf:r}),children:e(i,{className:"btn",children:"已下架"})}):e(l,{children:c?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:o,children:"立即购买"})]})})},Co=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=g(),{spec:c,goodInfo:r}=oe(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:N}=ge(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(Qa,{children:e(n,{children:a(i,{className:"content",children:[e(yo,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Mo,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),goodsNum:r.goodsNum,goodsMinnum:r.goodsMinnum})]})})}),e(Io,{cashImpl:p,addShoppingImpl:N,addCardImpl:h})]})})),Do=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=g();return e(i,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(Co,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},wo=s((({serverShow:o,cartShow:s,lPartShow:n,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:p,rPartText:N,dispatchPageStore:u,skuCode:M,platform:y,scene:I})=>{const{View:D,IconMobile:w,Text:f}=g(),T=ce((e=>e.offShelf)),{rsSkuDomainList:x,goodPro:z}=ee(M,I),{goodInfo:k}=oe(x);ha(y);const{addCardPopup:S,buyOpenPopup:A}=re(u),[L,j]=t("10px");return i((()=>{const e=(()=>{try{const e=b.getSystemInfoSync(),a=b.getEnv();if(a===b.ENV_TYPE.WEAPP||a===b.ENV_TYPE.ALIPAY||a===b.ENV_TYPE.SWAN||a===b.ENV_TYPE.TT||a===b.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 l=e.model.toLowerCase();(l.includes("iphone x")||l.includes("iphone 11")||l.includes("iphone 12")||l.includes("iphone 13")||l.includes("iphone 14")||l.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:()=>{const e=b.requirePlugin("myPlugin");e._$configAppKey("aedc9c55479bc8755e93ce57df0c21a8"),e._$configAppId("wx1a29bb679e0c3ff0"),e._$setUserInfo({userId:"",data:[{key:"real_name",value:""},{key:"mobile_phone",value:""}]}),b.navigateTo({url:"plugin://myPlugin/chat"})},style:{display:o?"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:T?e(D,{className:"btn addCart offShelf",children:e(f,{className:"btn",children:"已下架"})}):a(l,{children:["26"===z||!1===n?null:e(D,{className:"btn addCart",onClick:S,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(D,{onClick:A,className:"btn buy",style:{color:m,backgroundColor:h,borderTopRightRadius:p,borderBottomRightRadius:p,...!1===n?{borderTopLeftRadius:p,borderBottomLeftRadius:p}:{}},children:N||("10"===k.goodsPro?"预售抢购":"立即购买")})]})})]})})),fo=({$_dataSource:o={},dispatchPageStore:s=E,skuCode:t,scene:i,...n})=>{const{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=ee(t,i),m=Ne(c,d),{popupVisible:h}=o;return a(l,{children:[e(wo,{skuCode:t,...n,dispatchPageStore:s}),e(Do,{dispatchPageStore:s,popupVisible:h,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},To=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:p,scene:N,platform:u})=>{const{View:M,IconMobile:y}=g(),{rsSkuDomainList:I}=ee(p,N),{goodInfo:D}=oe(I),{servicePopup:w}=ha(u),{addCardPopup:f,buyOpenPopup:T}=re(h);return a(M,{className:"goodsDetailHandleBarOne",children:[a(M,{className:"linkGroup server",onClick:w,style:{display:l?"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:o?"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:T,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===D.goodsPro?"预售抢购":"立即购买"})]})]})})),bo=({popupVisible:o=!1,dispatchPageStore:s=E,skuCode:t,scene:i,...n})=>{const{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=ee(t,i),m=Ne(c,d);return a(l,{children:[e(To,{skuCode:t,...n,dispatchPageStore:s}),e(Do,{dispatchPageStore:s,popupVisible:o,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},xo=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],zo=({setParams:l,activeColor:o})=>{const{View:s}=g(),[i,n]=t(0),[c,r]=t(xo);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,o)=>{n(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:i===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ca,{style:{color:i===m&&"asc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:i===m&&"asc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},ko=s((({classtreeCode:l="",searchParam:o="",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:N=!0,goodsGap:u=10,paddingLR:M=0,__link__:I={}})=>{console.log(111,I);const{View:C,Loading:D,SmoothView:w,Image:f,ScrollView:T,IconMobile:b}=g(),[x,z]=t({}),{loading:k,getData:S,list:A}=ue(l,o,x,i),L=n((()=>y("textBox",{btm:!r&&!d})),[r,d]),j=n((()=>y("name",{boxNone:!c})),[c]),v=n((()=>y("middle_margin",{boxNone:!m})),[m]),B=n((()=>y("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),O=n((()=>y({detailContent:!(j.includes("boxNone")&&v.includes("boxNone")&&B.includes("boxNone"))})),[j,v,B]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(zo,{setParams:z,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${M}px`},children:e(Qa,{id:"listWrap",children:a(T,{onScroll:()=>S(x),children:[e(C,{className:"list",style:{gap:u},children:A.map((l=>a(C,{onClick:()=>_e(I,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:N?"4px 4px 4px #969292":""},children:[e(f,{src:Ke(l.dataPic),className:"img"}),a(C,{className:O,children:[e(w,{className:j,children:l.goodsName}),a(C,{className:v,children:["已售:",l.goodsNum]}),a(C,{className:B,children:[a(C,{className:L,children:[e(w,{className:"price",style:{display:r?"block":"none"},children:ga(l.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ga(l.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(b,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),k?e(D,{}):null]})})})]})})),So=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:i,btnShape:c})=>{const{View:r}=g(),{cartIsEditor:d}=l,{editorImpl:m}=Me(a),h=n((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?i:"",borderRadius:o?c:""})),[o,s,t,i,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Ao=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:i}=g();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(i,{"data-code":o,checked:o,value:s})})]})})),Lo=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:c,SmoothRadio:r}=g();return e(i,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Qa,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Ao,{checked:e.promotionCode===l,...e,key:a})))})})})})})},jo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=g();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",t," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ga(c)}),0===s&&e(h,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),vo=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:i}=g(),c=n((()=>{let a="";switch(o){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==o?e(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(i,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>C("goodDetail",{skuCode:s})})]})})),Bo=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:i}=g(),c=n((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),Oo=({promotion:o=[],updatePm:s,shoppingGoodsId:i,promotionCode:c})=>{const{View:r}=g(),[d,m]=t(!1),h=n((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{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(Lo,{promotionCode:c,onChange:e=>{m(!1),s(i,Ie(e))},promotion:o||[],visible:d,setVisible:m})})]})},Eo=s((({item:l,...o})=>{const{View:s}=g(),{select:t,cartIsEditor:i}=o;return a(s,{className:"cart-list-item",children:[e(Bo,{cartIsEditor:i,dataState:l.dataState,select:t,shoppingGoodsId:l.shoppingGoodsId}),e(vo,{dataState:l.dataState,dataPic:Ke(l.dataPic),skuCode:l.skuCode}),e(jo,{...l,...o})]})})),Po=({shoppingGoodsList:o=[],...s})=>e(l,{children:o.map(((l,o)=>a(p,{children:[e(Eo,{...s,item:l}),l.pmPromotionList?e(Oo,{promotionCode:s.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:s.updatePm,promotion:l.pmPromotionList}):null]},o)))}),Yo=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=g(),i=n((()=>O(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>_e(o,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),i]})},Vo=({disNextMsg:l,promotionName:o,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:o}),l&&e(Yo,{link:t,disNextMsg:l})]})},Qo=({refreshNum:o,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:N}=t,{loading:u,cartList:M,onChange:y,handleStep:I,updatePm:C}=ye(o,h,s);return console.log(286,m),e(r,{loading:u,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:y,children:M.length?e(l,{children:M.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},h)=>a(p,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:n},children:[t?e(Vo,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(Po,{cartIsEditor:N,promotionCode:o,handleStep:I,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(dl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Ro=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:i="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=g(),{cartInfo:p,cartDisMoney:N,cartSelect:u,cartIsEditor:M}=l,{toOrderImpl:y,deleteCart:I,clearAll:C,selectAll:D,ids:w,cartDetail:f}=Ce(u,p,o),T=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===u.length?["true"]:[],onChange:D,children:e(h,{checked:p.length===u.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:ga(N)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ga(f.amount)})]})]}),a(r,{onClick:y,className:"btn",style:T,children:["结算(",f.num,")"]})]})]})},Uo=({address:a})=>e(l,{children:O(a)?e(Wo,{}):e(Go,{address:a})}),Go=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=g(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Wo=()=>{const{View:o,Text:s}=g();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Fo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:i=""})=>{const{View:n}=g(),c=De(a,o,l,s,t,i);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(Uo,{address:c})})},Zo=({address:a})=>e(l,{children:O(a)?e(Ko,{}):e(Ho,{address:a})}),Ho=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=g(),i=n((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:i=""}=l;return{displayName:t,displayPhone:i,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children: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"}})]})},Ko=()=>{const{View:o,Text:s}=g();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},$o=({refreshNum:a})=>{const{View:l}=g(),o=we(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Zo,{address:o})})},Jo=({tabActive:o,setTabActive:s})=>{const{Text:t}=g();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,i)=>e(p,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},qo=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:n="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=g(),[h,p]=t("0");return i((()=>{fe.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(Jo,{tabActive:h,setTabActive:p})})]}),e(d,{className:"content",children:"0"===h?e(Fo,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r}):e($o,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:n})})]})},Xo=s((({couponStart:l,pbName:o,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:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:n}),a(d,{className:"date",children:[ea(l).format("YYYY-MM-DD")," - ",ea(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:i})})]})})})),_o=s((({couponStart:l,pbName:o,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:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:i}),a(r,{className:"date",children:[ea(l).format("YYYY-MM-DD")," - ",ea(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),es=({refreshNum:o,couponType:s=!0,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:p,Popup:N,Form:u,SmoothRadio:M,Button:y,SmoothCheckbox:I,ScrollView:C,Radio:D,Image:w}=g(),{shoppingGoodsList:f}=Te({refreshNum:o,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:T,visible:b,couponValue:x=[],setVisible:z,selectCoupon:k,onChange:S,onCreditChange:A,confirmImpl:L,resetImpl:j,contractPmode:v,onPayChange:B,payList:O,payName:E,creditList:P,creditInfo:Y,selectCredit:V,creditVisible:Q,payVisible:R,setPayVisible:U,handleChooseImg:G,contractEcurl:W,setCreditVisible:F}=be(f,s);return console.log("shoppingGoodsList",f),a(l,{children:[f.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(l,{children:[a(h,{className:"coupon-select",onClick:()=>z(0!==T.length),children:[e(p,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(p,{className:"label",children:k?`已选择: ${k}`:0===T.length?"暂无可用优惠券":"请选择优惠券"}),0===T.length?null:e("img",{src:Ol,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===T.length?null:e("img",{src:Ol,alt:"",className:"icon"})]})]})]}),Y.urechargeId&&"0"===v&&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===T.length?null:e("img",{src:Ol,alt:"",className:"icon"})]})]}),"1"===v&&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(N,{popupVisible:R,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Qa,{children:e(C,{children:e(M,{value:v||"",onChange:B,children:O?.length>0&&O.map(((l,o)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(D,{checked:l.ptfpmodeType===v,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(N,{popupVisible:Q,popupHandler:F,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Qa,{children:e(C,{children:e(M,{onChange:A,children:P?.length>0&&P.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(D,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(N,{popupVisible:b,popupHandler:z,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Qa,{children:e(C,{children:s?e(I,{value:x?.length>0?x.map((e=>e.couponNo)):[],onChange:S,children:T?.length>0&&T.map((e=>m(Xo,{isDisabled:2===x.length,...e,key:e.couponNo})))},"visible"):e(M,{value:x?.length>0?x[0].couponNo:"",onChange:S,children:T.map(((e,a)=>m(_o,{...e,key:a})))},"visible")})}),a(h,{className:"place-footer",children:[e(y,{className:"operate reset",onClick:j,children:"重置"}),e(y,{className:"operate",onClick:L,children:"确认"})]})]})})]})},as=({shippingMethod:l=1})=>{const{View:o}=g();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},ls=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:i,longContractgoodsBeanStr:n,scontractCode:c})=>{const{View:r}=g(),{list:d}=Te({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:i,shoppingGoodsId:t,longContractgoodsBeanStr:n,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(qa,{...a},o)))})))})},os=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i,goodsBeanStr:n,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:p,Textarea:N}=g(),u=N||p,M=Te({refreshNum:o,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,T=M.pointsDeduction||0,b=M.urDiscount||0,{shoppingCountPrice:x,comDisMoney:z,changeContent:k,shoppingType:S,pricesetRefrice:A}=xe(y),L=ga(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:ga(x)})]}),null!==T&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===S?T+"积分":ga(T)]})]}),"06"===S?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ga(b)]})]}),"06"===S?null:a(l,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ga(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ga(-f.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ga(-(z+I))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ga(D)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(u,{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":L})]})]})})},ss=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:p,Text:N,WrapLoading:u}=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:T}=ze({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 b=ga(Math.max(M-C,0));return a(p,{className:"placeOrderFooter",children:[a(N,{className:"price",children:["合计: ",r?"0.00":b]}),e(u,{loading:T,children:e(p,{className:"btn",onClick:f,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ts=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=n((()=>D()),[]),{View:p,Text:N,Radio:u,IconMobile:M,WrapLoading:y,SmoothRadio:I}=g(),{paymentImpl:C,channelList:w,contract:f,handleRadio:T,loading:b}=ke({contractBillcode:l,contractBbillcode:o});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(N,{className:"title",children:[e(M,{value:"roundcheck"}),"订单提交成功"]}),a(p,{className:"info",children:["订单号:",f.current.contractBillcode," | 总金额:",ga(f.current.contMoney+(f.current.logMoney||0)),"元"]}),a(p,{className:"info",children:["还需支付:",ga(f.current.orderMoney),"元"]})]}),e(p,{className:"paymentGroup",children:e(I,{onChange:T,children:w?.map((l=>a(p,{className:"paymentItem",children:[e(M,{value:l.fchannelBankImgurl}),a(p,{children:[a(p,{className:"base",children:[e(N,{children:l.fchannelName}),e(u,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(p,{className:"info",children:[a(p,{children:["账户余额:",l.faccountAmount,"元"]}),a(p,{children:["支付金额:",ga(f.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(p,{id:"v_html"}),e(y,{loading:b,children:e(p,{className:"btnGroup",onClick:C,children:e(p,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),is=({dataObj:l})=>{const{View:o,Text:s}=g();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ga(l.dataBmoney)})]})]})},ns=s((({code:l,goodsBeanStr:o,borderRadius:s,leftColor:t,leftButtonColor:i,leftBorderColor:n,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:N,paddingTop:u,paddingBottom:M})=>{const{View:y,Text:I,IconMobile:D,WrapLoading:w}=g(),{result:T,loading:b}=Se(l||(f("contractBillcode")||{}).contractBillcode,o);return e(y,{className:"placeOrderResult",style:{paddingTop:u,paddingBottom:M},children:e(w,{loading:b,children:a(y,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(D,{value:T.icon,style:{fontSize:"35px",color:T.color}}),a(y,{className:"tips",children:[e(I,{className:"title",children:T.msg}),e(I,{className:"tip",children:T.info})]}),"success"===T.sysRecode&&e(is,{dataObj:T.dataObj}),a(y,{className:"btnGroup",style:{marginTop:20},children:[e(y,{className:"btn black",onClick:()=>o?C("orderlist"):C(T.menuCode,{contractBillcode:T.dataObj.contractBillcode}),style:{color:t,backgroundColor:i,border:`1px solid ${n}`,borderRadius:1===c?"20px":"0px"},children:T.buttonText}),e(y,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===N?"20px":"0px"},onClick:()=>C(d.value),className:"btn white",children:r})]})]})})})})),{Button:cs}=u,rs=({dataState:a,...o})=>e(l,{children:["-1"].includes(a+"")?null:e(ds,{dataState:a,...o})}),ds=({dataState:a,contractAppraise:l,contractType:o,color:s,borderColor:t,btnColor:i,btnShape:n,...c})=>{const{View:r}=g();4!==a&&4!==a||1===l?4!==a&&4!==a||1!==l||(a=5):a=4;const{operateArray:d,handlerImpl:m}=Ae({dataState:a,contractAppraise:l,contractType:o,...c});return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(cs,{style:{color:s,borderColor:t,backgroundColor:i},className:y({btn:!0,white:l<d.length-1,black:l===d.length-1}),onClick:()=>m(a.handler),shape:n,children:a.name},l)))})},{Button:ms}=u,hs=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>D()),[]),i=n((()=>s?I():null),[s]),c=async e=>{if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const l=document.execCommand("copy");if(document.body.removeChild(a),!l)throw new Error("复制失败")},r=(e,a="success")=>{s&&i&&i.showToast?i.showToast({title:e,icon:a}):alert(e)};return e(ms,{className:"copy",size:"mini",fill:"outline",onClick:async()=>{if(a)try{s&&i&&i.setClipboardData?(await new Promise(((e,l)=>{i.setClipboardData({data:a,success:e,fail:l})})),r("复制成功","success"),o(!0)):(await c(a),r("复制成功","success"),o(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")},children:l?"已复制":"复制"})})),ps=({contractPaydate:a,init:o,countdownCancel:s,contractId:n})=>{const{View:c,SmoothView:r}=g(),{resultTime:d}=((e,a,l,o)=>{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?l(o).then((()=>{b.eventCenter.trigger("switchOrderTab")})):t>1e3&&n(ua(t,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(a)}}),[s]),{resultTime:s}})(a,0,s,n);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function gs({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:p,countdownCancel:N}){const{View:u}=g(),M=Le(i,r);return a(u,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(u,{children:[a(u,{className:"topInfo",children:[a(u,{className:"orderNo",children:["订单号: ",l,e(hs,{copyContent:l})]}),e(u,{className:"status",children:M})]}),e(u,{className:"card-item-info-countDown"}),e(u,{className:"goodsItemWrap",onClick:()=>C("orderDetail",{contractBillcode:l}),children:t.map((a=>e(qa,{...a,dataState:i,children:1===i&&e(ps,{contractPaydate:h,init:c,countdownCancel:N,contractId:n})},a.contractGoodsId)))})]}),a(u,{className:"allInfo",children:[a(u,{className:"totalNum",children:["共",s,"件商品"]}),a(u,{className:"totalPrice",children:["合计 ",ga(o)]})]}),e(rs,{init:c,contractType:p,contractId:n,contractBillcode:l,dataState:i,contractAppraise:r,dataBmoney:o})]})}const Ns=()=>{const{View:a,Image:l}=g();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const us=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:i}){const{View:n,ScrollView:c,Loading:r}=g(),{onScroll:d,data:h,loading:p,init:N,countdownCancel:u}=je(l,o,i);return e(n,{className:"orderListItemWrap",children:e(Qa,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(n,{children:[h.map(((e,a)=>m(gs,{init:N,...e,key:a,borderRadius:s,orderSpacing:t,countdownCancel:u}))),e(n,{children:p?e(r,{}):null})]}):a(n,{className:"nodata_img",children:[e(Ns,{}),e(n,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Ms=process.env.TARO_ENV;let ys=ve;if(console.log("platform",Ms),"h5"==Ms){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(ys=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=b.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(ys=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Is=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12,contractType:n=""})=>{const{View:c,Tabs:r}=g(),[d,m]=t(l);return i((()=>{const e=()=>{const e=ys.findIndex((e=>"-1"===e.code));m(e)};return b.eventCenter.on("switchOrderTab",e),()=>{b.eventCenter.off("switchOrderTab",e)}}),[]),e(c,{className:"order-container",children:e(r,{defaultIndex:+d,tabs:ys,render:l=>e(c,{className:"orderList",children:e(us,{contractType:n,item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})},d)})})),Cs=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:h})=>{const{View:N,Text:u,Image:M}=g(),{orderDetail:y,handleApplyBtn:I,creditMoney:D,packageRemark:w,expressName:f}=Be(o||""),T=e=>ea(e).format("YYYY-MM-DD HH:mm:ss");return a(N,{className:"orderDetail",children:[e(N,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(N,{className:"orderDetailTopTitleContent",children:[a(N,{className:"icon_text",children:["待收货"===Le(y.dataState)?e(ca,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:Le(y.dataState,y.contractAppraise)})]}),e(N,{className:"subTitleWrap",children:T(y.gmtCreate)})]})}),e(N,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:n+"px"},children:a(N,{style:{position:"relative",top:-26},children:[a(N,{className:"addressInfo",children:[e(N,{className:"lPart",children:e(ca,{value:"dizhi"})}),a(N,{className:"mPart",children:[a(N,{className:"personInfo",children:[e(u,{className:"personName",children:y.goodsReceiptMem}),e(u,{className:"personPhone",children:y.goodsReceiptPhone})]}),e(N,{className:"address",children:y.goodsReceiptArrdess})]}),e(N,{className:"rPart",children:[1,2,3].includes(Number(y?.dataState))&&e(u,{onClick:()=>C("addressList",{contractBillcode:y.contractBillcode}),children:"编辑"})})]}),a(N,{className:"orderDetailGoodsWrap",children:[y.goodsList.map((o=>e(l,{children:a("view",{onClick:()=>{C("goodDetail",{skuCode:o.skuCode})},children:[e(qa,{...o},o.contractGoodsId),e(N,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),C(h,{skuCode:o.skuCode})},children:"商品快照"}),Number(y.dataState)>1&&Number(y.dataState)<4&&"06"!==y.contractType?e(N,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),I.bind(null,o,y.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(N,{className:"priceInfo",children:"06"!=y.contractType?a(p,{children:[a(N,{className:"priceInfoFloor top",children:[a(N,{className:"totalNum",children:["共",y.goodsNum,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",parseFloat((y.dataBmoney-y.refundMoney).toFixed(2))]})]}),a(N,{className:"priceInfoFloor",children:[e(N,{className:"totalNum",children:"商品总额"}),a(N,{className:"totalPrice",children:["¥",y.contractInmoney]})]}),a(N,{className:"priceInfoFloor",children:[e(N,{className:"totalNum",children:"优惠"}),a(N,{className:"totalPrice",children:["¥",-y.goodsPmoney]})]}),a(N,{className:"priceInfoFloor",children:[e(N,{className:"totalNum",children:"客服电话"}),e(N,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(l,{children:[a(N,{className:"express",children:[e(N,{className:"label",children:"物流信息"}),e(N,{className:"name",children:f||"暂无物流信息"})]}),a(N,{className:"express",children:[e(N,{className:"label",children:"配送信息"}),e(N,{className:"name",children:"1"===y.contractPumode?"自提":"快递"})]})]}),"06"!==y.contractType&&a(N,{className:"express",children:[e(N,{className:"label",children:"发票信息"}),e(N,{className:"name",children:0===y.contractInvstate?"未开票":1===y.contractInvstate?"已提交":"已开票"})]}),a(N,{className:"orderInfo",children:[e(N,{className:"orderInfoItem",children:e(N,{style:{fontSize:14},children:"订单信息"})}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"运费"}),a(N,{className:"name",children:["¥",y.goodsLogmoney]})]}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"买家留言"}),e(N,{className:"name",children:w||"-"})]}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"订单编号"}),a(N,{className:"context_copy",children:[e(N,{className:"name",children:y.contractBillcode}),e(hs,{copyContent:y.contractBillcode})]})]}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"下单时间"}),e(N,{className:"name",children:T(y.gmtCreate)})]}),"06"!=y.contractType?a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"授信金额"}),e(N,{className:"name",children:ga(-D)})]}):"",a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"支付方式"}),e(N,{className:"name",children:e(N,{className:"name",children:"0"===y.contractPmode?"线上支付":"线下支付"})})]}),"1"===y.contractPmode&&a(N,{className:"orderInfoItem container-img-top",children:[e(N,{className:"label",children:"付款凭证"}),e(N,{className:"name",children:e(M,{mode:"widthFix",style:{width:100},src:Ke(y.contractEcurl)})})]})]}),e(N,{className:"btnGroupFooter",children:e(rs,{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})})]})})]})})),Ds=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:i}=g(),n=v(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=v(o,"packageList.length",l.count),r=v(o,"packageList[0].expressName",l.expressName),d=v(o,"packageList[0].packageBillno",l.packageBillno),m=v(s,"state",l.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",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]})]})]})},ws=({defaultValue:l,detail:o})=>{const{View:s}=g(),t=v(o,"message",l.message),i=v(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.map(((l,o)=>a(s,{className:"step",children:[e(s,{className:"time",children:l.time}),e(s,{children:l.context})]},o))):e(s,{className:"noInfo",children:t})})},fs=s((({code:l,defaultValue:o})=>{const{View:s}=g(),{info:t,detail:i,stateObj:n}=Oe(l);return a(s,{className:"expressInfo",children:[e(Ds,{info:t,detail:i,stateObj:n,defaultValue:o}),e(ws,{detail:i,defaultValue:o})]})})),Ts=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:n,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:p}=g(),{servicePopup:N}=ha(),[u,M]=t(c),[y,I]=t(n);return i((()=>{M(f("userNickname")),I(f("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>C("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:N})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:u||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(p,{src:y,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),bs=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:c,Image:r}=g(),[d,m]=t({}),[h,p]=t(0),N=async()=>{try{const e=await L();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}};i((()=>{const e=f("myPageShowNum")||0;p(e),N();const a=setInterval((()=>{const e=f("myPageShowNum")||0;e!==h&&(p(e),N())}),500);return()=>{clearInterval(a)}}),[h]);const u=(e,a)=>{4!==e.id?C("orderlist",{indexId:a+1}):C("afterSalesList")};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>C("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:u.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,{...d[l.code]>0?{content:d[l.code]}:{},color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})}),e(n,{className:"subTitle",children:l.label})]},o)))})]})})),xs=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:i,IconMobile:n,Image:c}=g();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>C(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ke(l.imgUrl),className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),zs=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=g(),{Rate:c}=u;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,l)=>e(n,{src:a.imgUrl,className:"img"},l)))})]})},ks=[{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"}]}],Ss=s((()=>{const[o,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(l,{children:[e(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:ks.map(((a,l)=>e(zs,{itemData:a},l)))})]})})),As=s((({code:l,borderRadius:o,borderColor:s,color:i,buttonColor:n,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:N,Submit:M,changeContent:y,addImg:C,removeImg:D,getImgUrls:w}=Ee(l),{Button:f}=u,{View:T,Image:b,TextArea:x,Textarea:z}=g(),k=z||x,S="WEAPP"===I().getEnv(),A="undefined"!=typeof window,[L,j]=t(0),v=c("宝贝满足你吗?分享一下它吧"),B=e=>{j(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(L).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){(e.tempFilePaths||e.tempFiles?.map((e=>e.path))||[]).forEach((e=>{C(L,e)}))}})}else if(A){const e=3-w(L).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const l=a.target.files;l&&l.length>0&&Array.from(l).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(L,a)}))},a.click()}})()};return a(T,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((l,s)=>a(p,{children:[a(T,{className:"topInfo",children:[a(T,{className:"lPart",children:[e(b,{src:Ke(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(T,{className:"goodsInfo",children:[e(T,{className:"goodsName",children:l.goodsName}),e(T,{className:"goodsSize",children:l.skuName})]})]}),e(T,{className:"rPart",children:a(T,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(T,{className:"rate",children:[e(T,{className:"title",children:"商品评价"}),e(to,{onChange:N.bind(null,s)})]}),e(T,{className:"evaluate",children:e(k,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:y.bind(null,s)})}),a(T,{className:"upload-imgs",children:[e(T,{className:"upload-title",children:"上传图片 (最多3张)"}),a(T,{className:"img-list",children:[a(T,{className:"upload-btn",onClick:()=>B(s),children:[e(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(T,{className:"upload-text",children:"上传图片"})]}),w(s).map(((l,o)=>a(T,{className:"img-item",children:[e(b,{className:"preview-img",src:l,onClick:()=>(e=>{if(S){const a=I(),l=w(L);a.previewImage({current:e,urls:l})}else A&&window.open(e,"_blank")})(l)}),e(T,{className:"delete-btn",onClick:()=>D(s,o),children:"×"})]},o)))]})]})]},s))),e(f,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:M,children:"提交"})]})})),Ls=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,isNeedDelete:n,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:h}=Pe(l),{Button:N}=u,{View:M,Image:y,Text:I}=g();return a(M,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(p,{children:[a(M,{className:"topInfo",children:[a(M,{className:"lPart",children:[e(y,{src:Ke(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(M,{className:"goodsInfo",children:[e(M,{className:"goodsName",children:l.goodsName}),e(M,{className:"goodsSize",children:l.skuName})]})]}),e(M,{className:"rPart",children:l.pricesetNprice&&a(M,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(M,{className:"rate",children:[e(M,{className:"title",children:"商品评价"}),e(to,{readOnly:!0,count:l.evaluateScopeReList?.length||0})]}),e(M,{className:"evaluate",children:e(M,{className:"content",children:e(I,{children:l.evaluateGoodsContent||""})})}),l.evaluateGoodsImgs&&e(M,{className:"evaluate-imgs",children:(()=>{let a=[];const s=l.evaluateGoodsImgs;if("string"==typeof s&&s.startsWith("["))try{a=JSON.parse(s)}catch{a=[]}else"string"==typeof s&&(a=s.split(",").filter(Boolean));return a.map(((a,l)=>e(y,{className:"evaluate-img",src:Ke(a),style:{borderRadius:1===o?"10px":"0px"}},l)))})()})]},s))),m.length?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:h,children:"删除"}):null]})})),js=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=g(),r=s.includes(l.collectCode);return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(l.dataState)||C("goodDetail",{skuCode:l.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(i,{src:Ke(l.collectOppic),className:"img"}),e(t,{className:[2,3].includes(l.dataState)?"tag":"",children:[2,3].includes(l.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},vs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,setChecked:d,handleSelectAll:m,selectAllChecked:h,setSelectAllChecked:p}=Ye(),{View:N,ScrollView:u,SmoothCheckbox:M,Checkbox:y,Button:I,Image:C}=g();return e(N,{className:"collectList",children:0===l.length?e(N,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(N,{className:"hasDate",children:[e(N,{className:"topBar",children:e(N,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Qa,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(M,{value:r,onChange:i,style:{height:"100%"},children:l.map((a=>e(js,{item:a,edit:o,checked:r},a.collectId)))}),o?a(N,{className:"handleBar",children:[e(N,{className:"checkAll",style:{width:"130px"},children:e(y,{value:"1",checked:h,onChange:()=>{if(!h){const e=l.map((e=>e.collectCode));d(e),p(!0)}else d([]),p(!1)},children:"全选"})}),e(I,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Bs=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=g();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:l.collectOpcode}),children:[e(i,{src:Ke(l.shopdeInfo?.shopdeLogo),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),e(c,{className:"scope",children:l.shopdeInfo?.shopdeScope})]})]})]})},Os=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ye(1),{View:h,ScrollView:p,SmoothCheckbox:N,Checkbox:u,Button:M,Image:y}=g();return e(h,{className:"collectList",children:0===l.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(!o),children:o?"完成":"编辑"})}),e(Qa,{id:"topBar",children:a(p,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(N,{value:r,onChange:i,style:{height:"100%"},children:l.map(((a,l)=>e(Bs,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",style:{width:"130px"},children:e(N,{onChange:d,children:e(u,{value:"1",checked:m,children:"全选"})})}),e(M,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Es=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:i,SmoothView:c}=g(),r=n((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(i,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ke(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Ps=({item:o,edit:s})=>{const{View:t}=g();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:o?.title})}),o.option.map(((a,l)=>e(Es,{footprintItem:a,edit:s},l)))]})},Ys=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?ea(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(Ps,{item:a,edit:o},l)))})},Vs=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:i}=g(),{footprintList:n,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:p,checked:N}=Ve();return e(i,{loading:p,children:e(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(Qa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:N,onChange:d,children:e(Ys,{footprintList:n,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Qs=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:i})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=g(),{signedDates:p,pointsNum:N,loading:u,signing:M,handleSignin:y}=Qe(),I=ea(),C=I.format("YYYY-MM-DD"),D=n((()=>p.includes(C)),[p,C]),w=n((()=>{const e=I.year(),a=I.month(),l=ea(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,i=l.subtract(t,"day"),n=o.day(),c=0===n?0:7-n,r=o.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:u,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,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:w.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[N>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:N})," 积分"]})}),e(d,{className:"signinButton",disabled:D||M,onClick:y,style:{backgroundColor:o,opacity:D?.3:1,borderRadius:1===s?"22px":"8px"},children:M?"签到中...":D?"已签到":l})]})]})})})),Rs=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:i})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=g(),[h,p]=t((()=>ea())),[N,u]=t(!1),[M,y]=t((()=>ea().year())),[I,C]=t((()=>ea().month()+1)),{signinDetails:D,loading:w,refresh:f}=Re(h),T=n((()=>h.format("YYYY年MM月")),[h]),b=n((()=>Array.from({length:12},((e,a)=>a+1))),[]),x=n((()=>D.sort(((e,a)=>ea(a.date).valueOf()-ea(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:l}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;y(e),C(a),u(!0)},children:[e(r,{className:"dateText",children:T}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:x.length>0?x.map(((l,s)=>{const t=ea(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:N,popupHandler:u,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:b.map((l=>e(c,{className:"monthItem "+(I===l?"active":""),onClick:()=>(e=>{C(e);const a=ea(`${M}-${String(e).padStart(2,"0")}-01`);p(a),u(!1)})(l),style:I===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),Us=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Gs=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=g();return e(s,{className:"promotionListTab",children:Us.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),Ws=({data:l})=>{const{View:o}=g(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,promotionEndtime:c}=l;return a(o,{className:"promotionItem",children:[a(o,{className:"lPart",children:[e(o,{className:"round"}),e(o,{className:"tagBg",children:a(o,{className:"txt",children:["官方",s]})}),e(o,{className:"rule",children:i.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[ea(n).format("YYYY-MM-DD")," ~ ",ea(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Fs=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(Us[0].val),{list:c,getData:r}=Ue({params:i}),{View:d,ScrollView:m}=g();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(Gs,{activeColor:l,setParams:n,params:i}),e(d,{children:e(Qa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Ws,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=g(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Zs=()=>{const{View:a,Image:l}=g();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Hs=({list:o,coe:s,config:t,backgroundColor:i,color:n,shopName:c})=>{const{View:r,Text:d}=g();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:i,color:n},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",ea(o.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",ea(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",ea(o.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Zs,{})})},Ks=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:c,ScrollView:r}=g(),{coe:d,getList:m,config:h,switchTab:p,list:N=[]}=Ge();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:h.current.map(((l,o)=>a(n,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>p(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(Qa,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Hs,{backgroundColor:l,color:o,queue:i,list:N,coe:d,config:h})})})})]})})),$s=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:p}=g(),{list:N,takeCoupon:u,takeList:M}=We({defaultValue:l,coupons:o});return e(p,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:N.map(((l,o)=>{const m=v(l,"pbName"),h=v(l,"pmPromotionDiscountList"),g=v(h.at(-1),"discName"),N=v(l,"promotionName"),y=ea(v(l,"promotionBegintime")).format("YYYY-MM-DD"),I=ea(v(l,"promotionEndtime")).format("YYYY-MM-DD"),C=v(l,"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:N}),a(p,{className:"validity",style:{color:d},children:[y," - ",I]})]})]}),e(p,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||M.includes(o)?e(p,{className:"txt",children:"已 领 取"}):e(p,{className:"txt",onClick:()=>u({promotionCode:C,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Js=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:N}=g(),{list:u,takeCoupon:M,takeList:y}=We({defaultValue:l,coupons:o});return e(N,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m},children:u.map(((l,o)=>{const m=v(l,"pbName"),h=v(l,"pmPromotionDiscountList"),p=v(h.at(-1),"discName"),g=v(l,"promotionName"),u=ea(v(l,"promotionBegintime")).format("YYYY-MM-DD"),I=ea(v(l,"promotionEndtime")).format("YYYY-MM-DD"),C=v(l,"promotionCode");return a(N,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(N,{className:"lPart",children:[e(N,{className:"type",style:{color:n},children:m}),e(N,{className:"rule",style:{color:c},children:p}),e(N,{className:"info",style:{color:r},children:g}),a(N,{className:"validity",style:{color:d},children:[u," - ",I]})]}),e(N,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||y.includes(o)?e(N,{className:"txt",children:"已 领 取"}):e(N,{className:"txt",onClick:()=>M({promotionCode:C,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),qs=s((({type:l=1,coupons:o=[],...s})=>{const{View:t}=g();return a(t,{className:"getCouponOne",children:[1===l?e($s,{coupons:o,...s}):null,2===l?e(Js,{coupons:o,...s}):null]})})),Xs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=Fe(o);return e(M,{navigator:i,color:s,speed:l,direction:a,content:t})},_s=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=g(),{info:r}=Ze(l);return a(n,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(n,{className:"content",children:r.noticeContext})]})})),et=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=He(l),{View:c,ScrollView:r}=g(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:p}=n;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(Qa,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:p}),a(c,{className:"time",children:["发布时间:",ea(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{Nl as AddressDetail,ml as AddressList,hl as AddressListBtn,Wa as AfterSalesApply,ll as AfterSalesDetail,Ja as AfterSalesList,il as AfterSalesType,Fs as AllPromotionList,et as ArticleDetail,Oa as BackTop,Qo as CartList,Ro as CartOperate,So as CartTop,ka as ClassifyNav,La as ClassifyNavOne,Aa as ClassifyNavOneJsx,Ba as ClassifyNavThree,ja as ClassifyNavTwo,vs as CollectionList,Os as CollectionShopList,Ks as CouponList,Pa as Cube,As as EvaluateDetail,Ss as EvaluateList,Ls as EvaluateViewDetail,fs as ExpressInfo,Vs as FootPrint,qs as GetCouponOne,Ql as Goods,Tl as GoodsClassify,Sl as GoodsClassifyOne,vl as GoodsClassifyTwo,po as GoodsDetailAndEvaluate,Fl as GoodsDetailBanner,so as GoodsDetailCoupon,fo as GoodsDetailHandleBar,bo as GoodsDetailHandleBarOne,Jl as GoodsDetailInfo,Xl as GoodsDetailInfoOne,ao as GoodsDetailPromotion,eo as GoodsDetailSku,ko as GoodsList,Rl as GoodsSlider,Ul as GoodsSlideshow,ma as Line,Qs as MemberSignin,Ts as MineData,xs as MineFunction,bs as MineOrderEntry,ul as MyAgreementList,yl as MySetting,Ml as MySettingJsx,Xs as Notice,_s as NoticeDetail,Cs as OrderDetail,Is as OrderList,ts as PaymentMode,Cl as PickupPointList,Fo as PlaceOrderAddress,qo as PlaceOrderAddressTabs,es as PlaceOrderCoupon,as as PlaceOrderDelivery,ls as PlaceOrderGood,os as PlaceOrderInfo,ss as PlaceOrderOperate,ns as PlaceOrderResult,ca as QjMobileIcon,Pl as Search,Vl as SearchPage,Yl as SearchStyleTwo,na as Service,Rs as SigninDetail,ba as Slider,da as TextLine,ra as Title,Ma as ToPrice,xa as Video,Dl as WechatAddressBtn,pa as addressIdConst,ga as fixPrice,Na as fixPrice1,ua as formatTime,ha 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 N,antdMobile as u,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 T}from"@brushes/utils";import b,{useRouter as x}from"@tarojs/taro";import{queryOcsconfigList as z,getAddress as k,find as S,goodsDetailQuery as A,getContractNumbers as L}from"qj-b2c-api";import{queryOcserviceConfPageByMember as j}from"qj-b2b-api";import{get as v,isEqual as B,isEmpty as O,noop as E,groupBy as P}from"lodash-es";import{useCube as Y,useGoTop as V,useAfterSalesApply as Q,useAfterSalesList as R,afterSalesTabConfig as U,useAfterSalesDetail as G,useAfterSalesChooseType as W,useAddressItem as F,useAddressList as Z,useEditAddress as H,useMySetting as K,usePickupPointItem as $,usePickupPointList as J,useGoodsClassify as q,useGoods as X,useGoodCollection as _,useGoodDetail as ee,goodStore as ae,useBanner as oe,useGoodSpecAndPrice as le,useGoodFootprint as se,useCreatePoster as te,useCreateMiniPoster as ie,useGoodsShare as ne,useGoodSkuStore as ce,popupImplement as re,usePromotion as de,useAddCoupon as me,useCoupon as he,useEvaluate as pe,useAddShopping as ge,useGoodSku as Ne,useGoodsList as ue,useCartTop as Me,useCartListNext as ye,getRadioValue as Ie,useCartOperate as Ce,useOrderAddress as De,useOrderPickupAddress as we,userAddressData as fe,useOrderGood as Te,useOrderCoupon as be,useOrderInfo as xe,useOrderPay as ze,useOrderResult as ke,useOrderResultResult as Se,useOrderOperate as Ae,orderStatusImpl as Le,useOrderList as je,orderStatusList as ve,useOrderDetail as Be,useExpressInfo as Oe,useEvaluateDetail as Ee,useEvaluateViewDetail as Pe,useCollectionList as Ye,useFootprint as Ve,useMemberSignin as Qe,useSigninDetail as Re,useMarketingPromotion as Ue,useCouponList as Ge,useAllCoupon as We,useNotice as Fe,useNoticeDetail as Ze,useArticleDetail as He}from"qj-b2c-store";import{fullPath as Ke,checkMobile as $e,ProvinceComponent as Je,CityComponent as qe,AreaComponent as Xe,navigatorLink as _e}from"@brushes/shared-utils";import ea from"dayjs";import{updateContractAddress as aa,deleteEvaluateGoods as oa}from"b2c-api";import{DynamicForm as la}from"@brushes/mobile-form";import{View as sa,Image as ta,RichText as ia}from"@tarojs/components";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:N,paddingTop:u,paddingLeft:M,paddingRight:y,paddingBottom:D})=>{const{View:w,IconMobile:f,Button:T}=g(),x=I(),z="WEB"===b.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:u,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:N,paddingLeft:M,paddingRight:y,textIndent:n},children:l}),s&&e(o,{children:z?e(w,{onClick:e=>{e.stopPropagation(),z?k():x?.showShareMenu?.({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},children:e(f,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(T,{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"}})})}));const ha=(e="b2c")=>{const[a,o]=t([]),l=n((()=>D()),[]);i((()=>{(async()=>{const e=await s();o(c(e))})()}),[]);const s=async()=>{switch(e){case"b2c":return await z();case"b2b":return await j().then((e=>e.list))}},c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=v(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${v(l,"ocserviceConfRemark")}: ${v(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${v(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;I().showActionSheet({itemList:a})}}},pa={label:""},ga=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Na=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ua=(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}`},Ma=e=>1===String(e).indexOf(".")?ya(e):Ia(e),ya=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)},Ia=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"},Ca=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Da=(e="")=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?Ca+e:e?Ca+"/paas/shop/"+e:e),[e]),wa=({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})},fa=s((({item:a,isPlay:l,position:s,direction:t})=>{const{Image:i,View:n}=g(),c=Da(a.imgUrl);return e(o,{children:c.includes(".mp4")||c.includes(".webm")||c.includes(".avi")?e(wa,{actived:l,style:{height:"100%",overflow:"hidden"},src:c}):e(i,{mode:"scaleToFill",src:c,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:C.bind(null,a.link?.value,a.link?.params)})})})),Ta=s((({Position:l="none",className:s="",className1:t="",defaultValue:i=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:p,paddingBottom:N,paddingLeft:u,paddingRight:M,selectImg:I,imgHeight:C,fontsize:D=16,textAlign:w="center",fontColor:f="#000000",backGroundColor:T="#ffffff"})=>{const b=n((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:x,View:z}=g(),k=Y(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:T},children:a.title});return e(z,{className:s,style:{paddingTop:p,paddingBottom:N,paddingLeft:u,paddingRight:M},children:e(x,{imgHeight:C,data:k,className:b,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(fa,{isPlay:t===i,item:s,position:l,direction:m})]})})})})),ba=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:N,paddingTB:u=0,paddingLR:M=0,fontsize:I=16,textAlign:C="center",fontColor:D="#000000",backGroundColor:w="#ffffff",otherStyles:f=[],ImgShadow:T=!1,Position:b="top"})=>{const{View:x}=g(),z=n((()=>y("silder-title",{"silder-tops1":"top"===b&&"horizontal"===d,"silder-bottoms":"bottom"===b&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===b,"silder-tops":"vertical"===d&&"top"===b},...f)),[f,b]);return e(x,{style:{padding:`${u}px ${M}px`},children:e(Ta,{Position:b,defaultValue:t,type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:N,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:I,textAlign:C,fontColor:D,backGroundColor:w,className:y({"outer-shadow":T}),className1:z})})})),xa=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}})})})),za=({src:a,borderRadius:o})=>{const{Image:l}=g(),s=Da(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},ka=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=g(),r=Y(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=>{e.link?.value.includes("/extra/index")?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(e.link?.value,e.link?.params)})(o),children:[e(za,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),Sa=({src:a,imgRadius:o,imgBoxShadow:l})=>{const{Image:s}=g(),t=Da(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none"}})},Aa=({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=Y(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:()=>C(a.link?.value,a.link?.params),children:e(Sa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},o)))})},La=s(Aa),ja=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:N})=>{const{View:u}=g(),M=Y(a,o),I=n((()=>y("classifyNav-two-item-title",...m)),[m]);return e(u,{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:N},children:M.map(((a,o)=>e(u,{className:"classifyNav-two-item",onClick:()=>C(a.link?.value,a.link?.params),style:{width:4===h?"74px":"60px"},children:e(u,{className:I,style:{fontSize:c,color:r},children:a.title})},o)))})})),va=a=>{const{imgRadius:o,imgBoxShadow:l,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=g(),m=Da(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>C(c.link?.value,c.link?.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})})})},Ba=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:N,marginBottom:u})=>{const{View:M}=g(),y=Y(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:N,marginBottom:u},children:y.map(((a,o)=>e(va,{layout:p,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},o)))})})),Oa=s((({position:a=10,bg:o,color:l,fontSize:s})=>{const t=n((()=>D()),[]),{View:i}=g(),{goTop:c}=V();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"})})})),Ea=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=g(),i=Da(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=>{e.link?.value.includes("/extra/index")?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(e.link?.value,e.link?.params)})(l)})},Pa=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=Y(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(Ea,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Ya=l.createContext(null),Va=s((()=>{const{View:a}=g(),{tip:o}=r(Ya);return e(a,{className:"afterSalesApplyTip",children:o})}));const Qa=({bottomHeight:a,children:o,id:l,heightWrap:s,...c})=>{const r=n((()=>D()),[]),d=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}(l),m=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)}),[])}(a),{View:h}=g(),p=n((()=>{if(!r)return l?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,I().getSystemInfoSync().windowHeight,d,m),l){return{height:`calc(${I().getSystemInfoSync().windowHeight+"px"} - ${d+m}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[d,m]);return e(h,{...c,style:{...p,paddingBottom:l?"":m},id:l,children:o})},Ra=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(Ya);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:p,children:e(o,{className:"reasonPopup",children:e(Qa,{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)))})]})})})})})})),Ua=s((()=>{const{View:o}=g(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:i}=r(Ya);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:ga(i)})})]}),e(Ra,{popupShow:s})]})})),Ga=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(Ya);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)))]})]})]})})),Wa=({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:N,popupVisible:u,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:T,limit:b,goodsInfo:x,handleFillInReason:z,handleSubmit:k,loading:S}=Q({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(Ya.Provider,{value:{tip:p,reasonList:N,popupVisible:u,popupLoading:M,handlePopupShow:y,handleChooseReason:I,reason:C,handleChooseImg:D,imgGroup:w,placeholder:f,handleDelImg:T,limit:b,goodsNum:t,goodsPrice:i,goodsInfo:x,handleFillInReason:z,handleSubmit:k},children:[e(Va,{}),e(Ua,{}),e(Ga,{}),e(m,{className:"submitBtn",onClick:k.bind(null,t,l,o,i),children:"确定"})]})})})},Fa={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Za={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ha=s((({data:o,goAfterSalesDetail:l})=>{const{View:s,Image:t}=g();return a(s,{className:"afterSalesListItem",onClick:l.bind(null,o.refundCode),children:[a(s,{className:"title",children:[a(s,{className:"lPart",children:["服务单号: ",o.refundCode]}),a(s,{className:"rPart",children:[e(ca,{style:{color:Fa[o.refundType]?.color,fontSize:12},value:Fa[o.refundType]?.icon}),e(s,{className:"txt",children:Fa[o.refundType].label})]})]}),a(s,{className:"goodsInfo",children:[e(s,{className:"lPart",children:e(t,{src:Ke(o.ocRefundGoodsList[0].dataPic),className:"img"})}),a(s,{className:"rPart",children:[e(s,{className:"goodsName",children:o.ocRefundGoodsList[0].goodsName}),a(s,{className:"count",children:["申请数量: ",o.ocRefundGoodsList[0].refundGoodsNum]}),a(s,{className:"count",children:["订单编号: ",o.contractBbillcode]})]})]}),a(s,{className:"tip",children:[e(s,{class:"lPart",children:Za[o.refundType][o.dataState]}),e(ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ka=s((()=>{const{View:a}=g();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),$a=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=g(),{afterSalesList:i,goAfterSalesDetail:n,loading:c,haseData:r}=R(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(Qa,{id:"tabContent",children:e(s,{children:r?i.map((a=>e(Ha,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(Ka,{})})})})})})),Ja=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:U,render:o=>e($a,{item:o,refreshNum:a})})})})),qa=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:p,Image:N,SmoothView:u}=g(),M="06"===d?m+"积分":ga(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(N,{src:Ke(I),alt:"",className:"card-item-img"}),a(p,{className:"card-item-info",children:[a(p,{className:"card-item-info-container",children:[e(u,{className:"card-item-info-container-title",children:s}),e(u,{className:"card-item-info-container-price",children:M})]}),a(p,{className:"card-item-info-sub",children:[e(u,{className:"sku",children:c}),e(u,{className:"count",children:y})]}),e(p,{className:"card-item-info-sub",children:a(u,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Xa=(e,a)=>{if("B01"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"}[a]}if("B02"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}[a]}},_a=l.createContext(null),eo=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(_a),{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(Qa,{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)))})]})})})})})),ao=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(_a),{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(eo,{})]})})),oo=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:N,packageName:u,setPackageBillno:M,loading:y}=G({refundCode:l}),{contractBbillcode:I,dataState:C,gmtCreate:D,ocRefundGoodsList:w,refundMoney:f,refundMeo:T,refundEx:b,refundType:x,ocRefundFileList:z,goodsReceiptMem:k,goodsReceiptPhone:S,goodsReceiptArrdess:A,packageCode:L,packageBillno:j,packageName:v}=c,{View:B,Image:O,WrapLoading:E}=g();return e(E,{loading:y,children:e(B,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(_a.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:N,packageName:u,setPackageBillno:M,submitExpressInfo:r},children:[a(B,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(B,{className:"left_text",children:Xa(x,C)}),e(B,{className:"right_time",children:ea(D).format("YYYY-MM-DD HH:mm:ss")})]}),e(B,{className:"afterSalesDetailContent",children:a(B,{className:"refundDetail",children:[e(B,{className:"title",children:"退款信息"}),e(B,{className:"goodsDetail",children:w?.map(((a,o)=>e(qa,{dataPic:Ke(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},o)))}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"订单编号"}),e(B,{className:"right",children:I})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"退款原因"}),e(B,{className:"right",children:b})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"退款金额"}),e(B,{className:"right",children:f})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"描述说明"}),e(B,{className:"right",children:T})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"补充凭证"}),e(B,{className:"right",children:z?.map(((a,o)=>e(O,{src:Ke(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"申请时间"}),e(B,{className:"right",children:ea(D).format("YYYY-MM-DD HH:mm:ss")})]}),a(B,{className:"refund_Detail",children:[e(B,{className:"left",children:"退款编号"}),e(B,{className:"right",children:l})]}),e(o,{children:"B02"===x?a(o,{children:[C>0?a(B,{className:"merchantMsg",children:[e(B,{className:"title",children:"商家信息"}),a(B,{className:"name",children:[k," ",S]}),e(B,{className:"address",children:A})]}):"",1===C?a(B,{className:"writeMsg",children:[e(B,{className:"wlMsg",children:"物流信息"}),e(ao,{})]}):"",C>1?a(B,{className:"writeMsg",children:[e(B,{className:"wlMsg",children:"物流信息"}),a(B,{className:"express_content",children:[e(B,{className:"name",children:"物流单号"}),e(B,{className:"code",children:j})]}),a(B,{className:"express_content",children:[e(B,{className:"name",children:"物流公司"}),e(B,{className:"code",children:v})]})]}):""]}):""})]})}),0===C?e(B,{className:"footerBtn",children:e(B,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),lo=l.createContext(null),so=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=g(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(lo),{goodsName:p,skuName:N,dataPic:u}=m,M=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ga(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:Ke(u),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:N}),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]})]})]})})),to=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:i}=g(),{goApply:n,goodsNum:c}=r(lo);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})),io=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:N,goApply:u,loading:M,goodsPrice:y}=W({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(lo.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:N,goApply:u,goodsPrice:y},children:[e(so,{}),e(to,{contractGoodsSendnum:N.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},no=({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:"设为默认地址"})})},co=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:i}=g(),{handlerImpl:n}=F(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(no,{itemData:o,checked:"1"===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:async()=>{const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;await aa({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),C("orderDetail",{contractBillcode:r.contractBillcode})},children:"确认"}):e(i,{className:"del",onClick:l,children:"删除"})]})]})]})},ro=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)))})})})})),mo=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(N,{value:"xiangyou1"})]}):null]})})})),ho=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(ro,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(co,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},a?.addressId))):e(mo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),po=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:"+ 新增地址"})})})),go=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],No=[{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:$e}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Je}},{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:Xe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],uo=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:n,paddingBottom:c,addressId:r})=>{const{View:d}=g(),[m,h]=t({}),[p,N]=t(!!r),{Button:M}=u,{onSubmit:y}=H(r);if(i((()=>{(async()=>{if(r){N(!0);let e=await k({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),N(!1)}else N(!1)})()}),[r]),!p)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:n+"px"},children:e(la,{initialValues:m,footer:e(M,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:go,onSubmit:y,fields:No})})})),Mo=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(N,{value:"xiangyou1"})})]},t)))})})})),yo=()=>{const{View:o}=g(),{mySettingGoBind:l,mySettingLogout:s}=K();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:"退出登录"})]})},Io=s(yo),Co=({itemData:o})=>{const{View:l,Text:s}=g(),{handlerImpl:t}=$(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||""]})})]})})},Do=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,ScrollView:i,Loading:n}=g(),{list:c,loading:r,skullShow:d,onScroll:m}=J(o);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:d?e(ro,{}):e(t,{className:"addressList",children:e(Qa,{id:"pickupPointListWrap",children:e(i,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,o)=>e(Co,{itemData:a},a&&a.userinfoOcode||o))),r&&e(n,{})]}):e(mo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),wo=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:async()=>{await w("导入成功","none")},children:"导入微信收件地址"})})})),fo=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:(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:(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:To}=u,bo=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(Qa,{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(To,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(To.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(fo,{navList:m,activeKey:r,cell:o})})]})})})})})),xo=d(null),zo=s((()=>{const{navList:o,activeKey:l,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(xo),{View:d,ScrollView:m}=g(),[h,p]=t(!1),u=(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:()=>u(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(N,{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(N,{value:"paixusort-sheng"})})}),e(Qa,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:o.map(((a,o)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>u(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))})})})]}):null]})})),ko=s((({thirdList:o})=>{const{View:l,Image:s}=g(),{picShadow:t,layout:i}=r(xo);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)))})})),So=s((()=>{const{navList:o,fCoe:l,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(xo),m=n((()=>D()),[]),{secondList:h,thirdList:p}=(({navList:e,fCoe:a,sCoe:o})=>{const l=n((()=>e[a]?.childList||[]),[a,e]),s=n((()=>l[o]?.childList||[]),[o,a,e]);return{secondList:l,thirdList:s}})({navList:o,fCoe:l,sCoe:s}),{View:N,ScrollView:u,SideBar:M}=g();return e(N,{children:e(Qa,{id:"goodsClassifyOneContent",children:e(u,{children:a(N,{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(ko,{thirdList:p})]})})})})})),Ao=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(),[N,u]=t("0"),[M,y]=t("0");return e(xo.Provider,{value:{fCoe:N,setFCoe:u,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(zo,{}),e(So,{})]})})})),Lo=s((({childList:o,layout:l,picShadow:s,style:t})=>{const{View:i,Image:n}=g();return e(i,{className:"level3Arr",style:{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)))})})),jo=s((({navList:o,activeKey:l,layout:s,picShadow:n})=>{const[c,r]=t(0);i((()=>{r(o.findIndex(d))}),[l,c]);const d=e=>e.goodsClassCode===l,{View:m,Image:h}=g();return a(m,{className:"goodsClassifyTwoContent",children:[e(h,{className:"firstLevelImg",src:v(o[c],"goodsClassLogo"),mode:"widthFix"}),v(o[c],"childList")?.map(((o,l)=>a(m,{children:["0"===o.goodsClassHide?e(m,{className:"level2Title",children:o.goodsClassName}):"",e(Lo,{childList:o.childList,layout:s,picShadow:n,style:{marginTop:"0"===o.goodsClassHide?"":"30px"}})]},l)))]})})),{SideBar:vo}=u,Bo=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(Qa,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(vo,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(vo.Item,{title:a.goodsClassName,className:[l?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":o}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(jo,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),Oo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcU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nplcm8iPjwvcGF0aD4KICAgICAgICAgICAgPHBhdGggZD0iTTMyLjM3NjIsMS44MTk1OTA0OSBDMzIuODc0MTg1MywxLjMyMTU3OTI1IDMzLjY4MTYwMDEsMS4zMjE1NTgyMyAzNC4xNzk2MTEzLDEuODE5NTQzNTQgQzM0LjY3NzYyMjYsMi4zMTc1Mjg4NSAzNC42Nzc2NDM2LDMuMTI0OTQzNTkgMzQuMTc5NjU4MywzLjYyMjk1NDg0IEwxOC44NTI2ODI4LDE4Ljk1MDcyODUgQzE4LjM1NDY5NzUsMTkuNDQ4NzM5NyAxNy41NDcyODI4LDE5LjQ0ODc2MDggMTcuMDQ5MjcxNSwxOC45NTA3NzU0IEMxNi41NTEyNjAzLDE4LjQ1Mjc5MDEgMTYuNTUxMjM5MiwxNy42NDUzNzU0IDE3LjA0OTIyNDYsMTcuMTQ3MzY0MiBMMzIuMzc2MiwxLjgxOTU5MDQ5IFoiIGlkPSLot6/lvoQtMiIgZmlsbC1ydWxlPSJub256ZXJvIj48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",Yo=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:N=[],__pageConfig:u})=>{const{View:M,Image:I}=g(),D=n((()=>y("txt",...N)),[N]);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:Oo,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})]})})})),Vo=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:p,paddings:N,otherStyles:u=["mockWeight","mockItalic"],urlPath:M="search"})=>{const{View:I,Image:D}=g(),w=n((()=>y("txt",...u)),[u]),f=b.useRouter(),[T,x]=t("");return i((()=>{if(f?.params?.searchParam){const e=f.params.searchParam,a=decodeURIComponent(e);x(a)}}),[f?.params]),e(I,{onClick:()=>C(M),style:{paddingTop:N,paddingBottom:N,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:Oo,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(I,T?{className:w,style:{color:s,display:"inline-block",fontSize:p},children:T}:{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:"搜索"})]})})})),Qo=s((({placeholder:o,placeholderText:l,history:s,historyText:i,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:p})=>{const N=c(null),u=n((()=>D()),[]),{View:M,Text:y,Input:w}=g(),[b,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:Oo,alt:""}),e(w,{ref:N,"confirm-type":"search",type:"text",className:"content",value:z,onInput:e=>k(e.detail.value),onConfirm:async e=>{u&&(x((a=>{if(!a.includes(N.current.value||e.detail.value)&&(N.current.value||e.detail.value)){const o=a.concat(N.current.value||e.detail.value);return T("history",o),o}return a})),S(N.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 T("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:async()=>{(await I()).removeStorageSync("history"),x([])},value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(M,{className:"content",children:b.map(((a,o)=>e(M,{onClick:()=>S(a),className:"historyItem",children:a},o)))})]}):null]})})),Ro=s((({defaultValue:o=[],classCode:l="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:p=[],markedPrice:N,paddingTop:u,paddingBottom:M,paddingLeft:I,paddingRight:D,goodsName:w=!0,goodsPrice:f=!0,goodsCar:T=!0,goodsBorder:b=!0,goodsShadow:x=!1,marginGap:z=10})=>{const[k,A]=t(o),L=c(),{View:j,Text:E}=g();return i((()=>{B(L.current,p)||(L.current=p,O(p)?A(o):(async()=>{try{const e=await S({[h]:p.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=v(e,"list",[]);A(a)}catch(e){A(o)}})())}),[p]),e(j,{style:{paddingTop:u,paddingBottom:M},children:e(j,{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(j,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:b?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),className:["goods "+(x?"outer-shadow":"")].join(" "),children:[e(j,{className:"goods-img",style:{backgroundImage:`url(${Ke(o.dataPic)})`}}),a(j,{className:"space",children:[e(j,{className:"titleType",style:{display:w?"block":"none"},children:o.goodsName}),e(j,{className:"subTitle",children:o.brandName}),a(j,{className:"price",children:[a(j,{style:{fontSize:18},children:[f?ga(o.pricesetNprice):"",1===N&&e(E,{className:"markedPrice",children:ga(o.pricesetMakeprice)})]}),e(j,{className:"anticon",style:{display:T?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})})),Uo=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:N,marginTop:u,marginBottom:M,marginLeft:y,marginRight:I})=>{const{View:D}=g(),{list:w}=X({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:u,marginBottom:M,marginLeft:y,marginRight:I},children:w.map(((o,l)=>a(D,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${N}px`},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(D,{className:"img",style:{backgroundImage:`url(${Ke(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:ga(o.pricesetNprice)}):null,t?e(D,{className:"marketPrice",children:ga(o.pricesetMakeprice)}):null]}),i?e(D,{className:"rPart",children:e(ca,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},l)))})})),Go=s((({defaultValue:o,goods:l,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:p,goodsShadow:N,btnText:u,btnBg:M,btnColor:y,btnRadius:I})=>{const w=n((()=>D()),[]),{list:f}=X({defaultValue:o,goods:l},m),{SmoothSwiper:T,View:b,Image:x}=g(),[z,k]=t(0);return a(b,{className:"goodsSlideshow",children:[e(x,{src:s,className:"bg",mode:"widthFix"}),e(T,{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(b,{className:["goodsSlideshowItem",""+(o.goodsCode===f[z].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:h,borderStyle:p?"solid":"none",boxShadow:N?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(x,{className:"logo",src:Ke(o.dataPic),mode:"widthFix"}),c?e(b,{className:"goodsName",children:o.goodsShowname}):null,r?a(b,{className:"salesNum",children:["销量:",o.goodsSalesvolume]}):null,d?e(b,{className:"price",children:ga(o.pricesetNprice)}):null,i?e(b,{className:"marketPrice",children:ga(o.pricesetMakeprice)}):null,e(b,{className:"btn",style:{backgroundColor:M,color:y,borderRadius:I},children:u})]})})]})}));var Wo=new class{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 Fo=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:p,loop:N,paddingTop:u,paddingBottom:M,paddingLeft:I,paddingRight:C,selectImg:D,imgHeight:w,collectParams:f,fontsize:T=16,textAlign:x="center",fontColor:z="#000000",backGroundColor:k="#ffffff"})=>{const S="WEB"===b.getEnv(),A=n((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===p}))),{handleCollect:L,collection:j}=_(f),[v,B]=t(!1),{SmoothSwiper:E,View:P,Button:V}=g(),Q=Y(r,D||[]),R=a=>e(P,{className:c,style:{fontSize:T,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:z,backgroundColor:k},children:a.title});return i((()=>{const e=e=>{B(e)};return Wo.on("IsCollectionShow",e),()=>{Wo.off("IsCollectionShow",e)}}),[]),a(P,{className:s,style:{position:"relative",paddingTop:u,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+CiAgICA8ZyBpZD0iaWNvbi9pbWciIHN0cm9rZT0ibm9uZSIgZmlsbD0ibm9uZSIgeGxpbms6aHJlZj0iI3BhdGgtMSIgZmlsbC1ydWxlPSJub256ZXJvIj4KICAgICAgICA8ZyBpZD0i54Wn54mHIiBmaWxsPSIjRkZGRkZGIj4KICAgICAgICAgICAgPHBhdGggZD0iTTMyLjc4Njg4NTIsMiBDMzUuNjY2MDA5LDIgMzgsNC4zMzM5OTA5OCAzOCw3LjIxMzExNDc1IEwzOCwzMi43ODY4ODUyIEMzOCwzNS42NjYwMDkgMzUuNjY2MDA5LDM4IDMyLjc4Njg4NTIsMzggTDcuMjEzMTE0NzUsMzggQzQuMzMzOTkwOTgsMzggMiwzNS42NjYwMDkgMiwzMi43ODY4ODUyIEwyLDcuMjEzMTE0NzUgQzIsNC4zMzM5OTA5OCA0LjMzMzk5MDk4LDIgNy4yMTMxMTQ3NSwyIEwzMi43ODY4ODUyLDIgWiBNMz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YuMDY5NDE0MSA5Ljk5NDY0ODQ0LDEzLjQ5MzY3MTkgQzkuOTk0NjQ4NDQsMTAuOTE3OTI5NyAxMi4wOTA4OTg0LDguODIxNzU3ODEgMTQuNjY2NjAxNiw4LjgyMTc1NzgxIEMxNy4yNDIzMDQ3LDguODIxNzU3ODEgMTkuMzM4NTU0NywxMC45MTc5Njg4IDE5LjMzODU1NDcsMTMuNDkzNjcxOSBDMTkuMzM4NTU0NywxNi4wNjkzNzUgMTcuMjQyMzA0NywxOC4xNjU2MjUgMTQuNjY2NjAxNiwxOC4xNjU2MjUgWiBNMTQuNjY2NjAxNiwxMS4zNzAwNzgxIEMxMy40OTUzMTI1LDExLjM3MDA3ODEgMTIuNTQzMDA3OCwxMi4zMjI0MjE5IDEyLjU0MzAwNzgsMTMuNDkzNjcxOSBDMTIuNTQzMDA3OCwxNC42NjQ5NjA5IDEzLjQ5NTM1MTYsMTUuNjE3MzA0NyAxNC42NjY2MDE2LDE1LjYxNzMwNDcgQzE1LjgzNzg1MTYsMTUuNjE3MzA0NyAxNi43OTAyMzQ0LDE0LjY2NDk2MDkgMTYuNzkwMjM0NCwxMy40OTM2NzE5IEMxNi43OTAyMzQ0LDEyLjMyMjQyMTkgMTUuODM3ODkwNiwxMS4zNzAwNzgxIDE0LjY2NjYwMTYsMTEuMzcwMDc4MSBaIiBpZD0i5b2i54q2Ij48L3BhdGg+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4=\n",onClick:()=>{Wo.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:Po,onClick:e=>{e.stopPropagation(),Wo.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(V,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Po})`,backgroundSize:"100% 100%",width:20,height:20,padding:0},className:"wx-share-button"})}),e(P,{onClick:L,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:2,display:v?"flex":"none"},children:O(j.dataObj)?e("img",{src:"data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB3aWR0aD0iNDBweCIgaGVpZ2h0PSI0MHB4IiB2aWV3Qm94PSIwIDAgNDAgNDAiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+CiAgICA8dGl0bGU+aWNvbi9zYzwvdGl0bGU+CiAgICA8ZGVmcz4KICAgICAgICA8cGF0aCBkPSJNMCwwIEw0MCwwIEw0MCw0MCBMMCw0MCBMMCwwIFoiIGlkPSJwYXRoLTEiPjwvcGF0aD4KICAgIDwvZGVmcz4KICAgIDxnIGlkPSJpY29uL3NjIiBzdHJva2U9Im5vbmUiIGZpbGw9Im5vbmUiIHhsaW5rOmhyZWY9IiNwYXRoLTEiIGZpbGwtcnVsZT0ibm9uemVybyI+CiAgICAgICAgPHBhdGggZD0iTTE3Ljk1NDYwMjksMy4yMDA2MTgxOCBDMTguNjQyMjA3OCwyLjAyMTAyMjk0IDIwLjExNTI2NTEsMS42NDY5MDY1IDIxLjI0NDc2ODUsMi4zNjUwMDU3MyBDMjEuNTcxNTc1NywyLjU3Mjc3ODUgMjEuODQ1OTQ2NywyLjg1OTMxNzQ3IDIyLjA0NDg5NjQsMy4yMDA2MTgxOCBMMjQuMTc5NDA2Nyw2Ljg2MjM5ODY3IEMyNS45NTg1OTM3LDkuOTE0NjE3MzIgMjguODMzNjE2NSwxMi4wOTYwODAyIDMyLjE2Mjk3ODIsMTIuOTIwMDQyNyBMMzYuMTU3MjUwMiwxMy45MDg1NTk3IEMzNy40NDM5NTM0LDE0LjIyNjk5NzcgMzguMjM5ODQ5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i41NzgyNzg4OCwxNy45NzA0NTIgQzEuNzE2NTM4OTcsMTYuOTIzMDMxOCAxLjgzMTA0MjI0LDE1LjM0NDQwNDEgMi44MzQwMjkwOSwxNC40NDQ0ODgzIEMzLjEyNDIzMDQ0LDE0LjE4NDEwOTIgMy40Njk5NTgwNiwxNC4wMDAxNDgyIDMuODQyMjQ5MDYsMTMuOTA4MDE2NSBMNy44MzY1MjExNCwxMi45MTk1NDQ2IEMxMS4xNjU4ODI5LDEyLjA5NTYxOTYgMTQuMDQwOTA1Niw5LjkxNDI1NjI5IDE1LjgyMDA5MjYsNi44NjIxNzY4NyBMMTcuOTU0NjAyOSwzLjIwMDU2MzQyIFoiIGlkPSLmmJ/lvaIiIGZpbGw9IiMzNEMwQkMiPjwvcGF0aD4KICAgIDwvZz4KPC9zdmc+",style:{width:"100%",height:"100%"},alt:"收藏"})})]}),e(E,{imgHeight:w,data:Q,className:A,type:d,autoplay:m,autoplayInterval:h,direction:p,loop:N,interval:5e3,vertical:"vertical"===p,render:(s,t,i)=>a(o,{children:["top"===l||"bottom"===l?R(s):null,e(fa,{isPlay:t===i,item:s,position:l,direction:p})]})})]})})),Zo=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:i,memberCode:n=""}=ee(l,s),c=ae.getState();ae.setState({...c,memberCode:n}),console.log(24,n);const r=oe(t),{goodInfo:d}=le(i),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ke(d.dataPic),skuCode:l};return e(Fo,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function Ho(o){const{content:l,position:s="top"}=o,[i,n]=t(!1);return a(sa,{className:"tooltip-wrap",children:[e(sa,{className:"tooltip-icon",onClick:()=>n(!i),children:e(ta,{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(sa,{className:`tooltip-popup tooltip-${s}`,children:[l,e(sa,{className:"tooltip-arrow"})]})]})}const Ko=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!D())return;return"WEB"===I().getEnv()?e(o,{children:a?e($o,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(Jo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},$o=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Button:n}=g(),{save:c,canvasRef:r,width:d,height:m}=te(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})},Jo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:i,Canvas:n,Button:c}=g(),{save:r,width:d,height:m}=ie(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=b.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:"保存图片"})})]})]})})},qo=({skuCode:o,priceShow:l,collectionShow:s,scene:n})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:p,Button:N,IconMobile:u}=g(),{rsSkuDomainList:M,rsGoodsFileDomainList:y,goodsDayinfo:C}=ee(o,n),{goodInfo:D}=le(M);console.log("goodInfo",D);const w=D.mpriceStairDomainListMap||{},f=Object.values(w),T=f.length>0?f[0]:[],x=T.length>0?T.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";se(o);const z=I(),k="WEB"===b.getEnv();Wo.emit("IsCollectionShow",{collectionShow:s}),i((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&S()};return Wo.on("bannerImageClick",e),()=>{Wo.off("bannerImageClick",e)}}),[]);const S=()=>{k?z.setClipboardData({data:window.location.href,success:()=>{z.showToast({title:"复制成功",icon:"success"})},fail:()=>{z.showToast({title:"复制失败",icon:"none"})}}):z?.showShareMenu?.({withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})};return a(d,{className:"goodsDetail-topInfo",children:[e(Ko,{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:["会员价:",ga(D.pricesetNprice)]}),a(m,{className:"price",style:{display:l?"block":"none"},children:["促销价:",ga(D.pricesetNprice)]}),x?e(d,{className:"page",children:e(Ho,{content:x,position:"right"})}):null]})})]})]})},Xo=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=g(),{handleCollect:i,collection:n}=_(o),{handleShare:c}=ne();return a(t,{className:"handleBar",children:[l?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:O(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),_o=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=g(),{rsSkuDomainList:r}=ee(t,i),{goodInfo:d}=le(r);return ce((e=>e.spec)),se(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:ga(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Xo,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ke(d.dataPic),skuCode:t})]})})),el=s((()=>{const{Text:e}=g(),o=ce((e=>e.count)),l=ce((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",o," 规格: ",l.toString()]})})),al=({dispatchPageStore:l})=>{const{View:s,Text:t}=g(),{openPopup:i}=re(l);return e(o,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(el,{}),e("img",{src:Eo,alt:"",className:"icon"})]})]})})},ol=({skuCode:o,scene:l})=>{const{View:s,Text:t}=g(),{rsSkuDomainList:i}=ee(o,l),{goodInfo:n}=le(i),c=de(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:"暂无促销活动"})})]})},ll=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:N}=me(),u=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:[ea(o).format("YYYY-MM-DD")," - ",ea(d).format("YYYY-MM-DD")]})]}),e(m,u>0?{className:N?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:t,couponAmount:1}),children:N?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),sl=()=>{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"})})},tl=({skuCode:l,scene:s,...t})=>{const{View:i,Text:n,Popup:c,Image:r}=g(),{rsSkuDomainList:d}=ee(l,s),{goodInfo:h}=le(d),{coupon:p,visible:N,setVisible:u}=he(d,h.skuCode);return a(o,{children:["26"==h.goodsType?null:a(i,{className:"goodsDetail-coupon",onClick:()=>u(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(r,{src:Eo,alt:"",className:"icon"})]})]}),e(c,{popupVisible:N,popupHandler:u,children:e(i,{className:"goodsDetail-coupon-popup",children:e(Qa,{children:p.length>0?p.map(((e,a)=>m(ll,{...e,key:a}))):a(i,{className:"NoDataImg",children:[e(sl,{}),e(i,{className:"btn",onClick:()=>u(!1),children:"确定"})]})})})})]})},il=({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)))})},nl=({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(il,{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:Ke(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(async e=>{try{const a=e.evaluateGoodsId;if(!a)return;await oa({evaluateGoodsId:a,isLocalMock:!n}),await 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]})},cl=({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(nl,{item:a},o)))]}):e(mo,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},rl=process.env.REACT_APP_BASE_URL,dl=({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="${rl}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ia,{nodes:l})})},ml=({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((async e=>{if(e){d(!0);try{const a=await A({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}),[]);i((()=>{p(m)}),[m,p]);const N=s.rsPropertiesValueDomainList||[];return a(l,{className:"goodsDetail-info",children:[N.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:N.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:"加载中..."})]})},hl=({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)))})},pl=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:i,scene:n})=>{const{View:c}=g(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=ee(i,n),p=pe(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(hl,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(dl,{goodsRemark:m}):2===r?e(cl,{evaluateArr:p,evaluateImgShow:l,evaluateImg:s}):1===r?e(ml,{goodsRemark:m}):null})]})},gl=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:i})=>{const{View:n,Text:c}=g(),r=ce((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:Nl}=u,ul=({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(Nl,{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=ae.getState();ae.setState({...e,count:l})}}else o("minus");else o("plus")}})})},Ml=s((({handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=g(),i=ce((e=>e.count));return a(t,{className:"countWrap",children:[e(t,{className:"label",children:"购买数量"}),e(ul,{count:i,handleStep:o,goodsNum:l,goodsMinnum:s})]})})),yl=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=g(),{skuList:r}=l,d=i&&"06"===i.goodsType?i.pricesetRefrice+"积分":ga(i.pricesetNprice);return a(o,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:Ke(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(gl,{goodsShowname:i.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},Il=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=g(),c=ce((e=>e.isNeedButton)),r=ce((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:"立即购买"})]})})},Cl=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=g(),{spec:c,goodInfo:r}=le(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:N}=ge(l,s,t,o);return a(i,{className:"goodsDetail-size-popup",children:[e(Qa,{children:e(n,{children:a(i,{className:"content",children:[e(yl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Ml,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),goodsNum:r.goodsNum,goodsMinnum:r.goodsMinnum})]})})}),e(Il,{cashImpl:p,addShoppingImpl:N,addCardImpl:h})]})})),Dl=({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(Cl,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},wl=s((({serverShow:l,cartShow:s,lPartShow:n,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:p,rPartText:N,dispatchPageStore:u,skuCode:M,platform:y,scene:I})=>{const{View:D,IconMobile:w,Text:f}=g(),T=ce((e=>e.offShelf)),{rsSkuDomainList:x,goodPro:z}=ee(M,I),{goodInfo:k}=le(x);ha(y);const{addCardPopup:S,buyOpenPopup:A}=re(u),[L,j]=t("10px"),v="WEAPP"===b.getEnv();return i((()=>{const e=(()=>{try{const e=b.getSystemInfoSync(),a=b.getEnv();if(a===b.ENV_TYPE.WEAPP||a===b.ENV_TYPE.ALIPAY||a===b.ENV_TYPE.SWAN||a===b.ENV_TYPE.TT||a===b.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:()=>{if(v){const e=getStorage("user")||{},a=b.requirePlugin("myPlugin");a._$configAppKey("aedc9c55479bc8755e93ce57df0c21a8"),a._$configAppId("wx1a29bb679e0c3ff0"),a._$setUserInfo({userId:e.userId||"",data:[{key:"real_name",value:e.userPhone||""},{key:"mobile_phone",value:e.userNickname||""}]}),b.navigateTo({url:"plugin://myPlugin/chat"})}else!function(){const e="https://qiyukf.com/script/aedc9c55479bc8755e93ce57df0c21a8.js?templateId=8142060&shuntId=8142060&sessionInvite=false&hidden=0",a=document.querySelector(`script[src="${e}"]`);a&&a.remove();const o=document.createElement("script");o.src=e,o.type="text/javascript",o.async=!0,o.onload=()=>{const e=localStorage.getItem("user"),a=JSON.parse(e||"{}");a?ysf("config",{uid:a?.userCode,name:a?.userNickname,mobile:a?.userPhone,authToken:"authToken",level:1,success(){ysf.open()}}):(ysf.logoff(),ysf("config",{uid:"",name:"",mobile:"",success(){ysf.open()}}))},o.onerror=()=>{console.error("七鱼客服脚本加载失败")},document.body.appendChild(o)}()},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:T?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:S,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(D,{onClick:A,className:"btn buy",style:{color:m,backgroundColor:h,borderTopRightRadius:p,borderBottomRightRadius:p,...!1===n?{borderTopLeftRadius:p,borderBottomLeftRadius:p}:{}},children:N||("10"===k.goodsPro?"预售抢购":"立即购买")})]})})]})})),fl=({$_dataSource:l={},dispatchPageStore:s=E,skuCode:t,scene:i,...n})=>{const{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=ee(t,i),m=Ne(c,d),{popupVisible:h}=l;return a(o,{children:[e(wl,{skuCode:t,...n,dispatchPageStore:s}),e(Dl,{dispatchPageStore:s,popupVisible:h,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},Tl=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:N,platform:u})=>{const{View:M,IconMobile:y}=g(),{rsSkuDomainList:I}=ee(p,N),{goodInfo:D}=le(I),{servicePopup:w}=ha(u),{addCardPopup:f,buyOpenPopup:T}=re(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:T,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===D.goodsPro?"预售抢购":"立即购买"})]})]})})),bl=({popupVisible:l=!1,dispatchPageStore:s=E,skuCode:t,scene:i,...n})=>{const{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=ee(t,i),m=Ne(c,d);return a(o,{children:[e(Tl,{skuCode:t,...n,dispatchPageStore:s}),e(Dl,{dispatchPageStore:s,popupVisible:l,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},xl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],zl=({setParams:o,activeColor:l})=>{const{View:s}=g(),[i,n]=t(0),[c,r]=t(xl);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)))})},kl=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:N=!0,goodsGap:u=10,paddingLR:M=0,__link__:I={}})=>{console.log(111,I);const{View:C,Loading:D,SmoothView:w,Image:f,ScrollView:T,IconMobile:b}=g(),[x,z]=t({}),{loading:k,getData:S,list:A}=ue(o,l,x,i),L=n((()=>y("textBox",{btm:!r&&!d})),[r,d]),j=n((()=>y("name",{boxNone:!c})),[c]),v=n((()=>y("middle_margin",{boxNone:!m})),[m]),B=n((()=>y("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),O=n((()=>y({detailContent:!(j.includes("boxNone")&&v.includes("boxNone")&&B.includes("boxNone"))})),[j,v,B]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(zl,{setParams:z,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${M}px`},children:e(Qa,{id:"listWrap",children:a(T,{onScroll:()=>S(x),children:[e(C,{className:"list",style:{gap:u},children:A.map((o=>a(C,{onClick:()=>_e(I,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:N?"4px 4px 4px #969292":""},children:[e(f,{src:Ke(o.dataPic),className:"img"}),a(C,{className:O,children:[e(w,{className:j,children:o.goodsName}),a(C,{className:v,children:["已售:",o.goodsNum]}),a(C,{className:B,children:[a(C,{className:L,children:[e(w,{className:"price",style:{display:r?"block":"none"},children:ga(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ga(o.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(b,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},o.skuCode)))}),k?e(D,{}):null]})})})]})})),Sl=({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}=Me(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?"完成":"编辑"})})},Al=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})})]})})),Ll=({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(Qa,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Al,{checked:e.promotionCode===o,...e,key:a})))})})})})})},jl=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:ga(c)}),0===s&&e(h,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),vl=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})})]})})),Bl=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"}})})})),Ol=({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(Ll,{promotionCode:c,onChange:e=>{m(!1),s(i,Ie(e))},promotion:l||[],visible:d,setVisible:m})})]})},El=s((({item:o,...l})=>{const{View:s}=g(),{select:t,cartIsEditor:i}=l;return a(s,{className:"cart-list-item",children:[e(Bl,{cartIsEditor:i,dataState:o.dataState,select:t,shoppingGoodsId:o.shoppingGoodsId}),e(vl,{dataState:o.dataState,dataPic:Ke(o.dataPic),skuCode:o.skuCode}),e(jl,{...o,...l})]})})),Pl=({shoppingGoodsList:l=[],...s})=>e(o,{children:l.map(((o,l)=>a(p,{children:[e(El,{...s,item:o}),o.pmPromotionList?e(Ol,{promotionCode:s.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:s.updatePm,promotion:o.pmPromotionList}):null]},l)))}),Yl=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=g(),i=n((()=>O(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>_e(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]})},Vl=({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(Yl,{link:t,disNextMsg:o})]})},Ql=({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:N}=t,{loading:u,cartList:M,onChange:y,handleStep:I,updatePm:C}=ye(l,h,s);return console.log(286,m),e(r,{loading:u,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(Vl,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(Pl,{cartIsEditor:N,promotionCode:l,handleStep:I,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(mo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Rl=({$_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:N,cartSelect:u,cartIsEditor:M}=o,{toOrderImpl:y,deleteCart:I,clearAll:C,selectAll:D,ids:w,cartDetail:f}=Ce(u,p,l),T=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===u.length?["true"]:[],onChange:D,children:e(h,{checked:p.length===u.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:ga(N)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ga(f.amount)})]})]}),a(r,{onClick:y,className:"btn",style:T,children:["结算(",f.num,")"]})]})]})},Ul=({address:a})=>e(o,{children:O(a)?e(Wl,{}):e(Gl,{address:a})}),Gl=({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"}})]})},Wl=()=>{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"})]})},Fl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:i=""})=>{const{View:n}=g(),c=De(a,l,o,s,t,i);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(Ul,{address:c})})},Zl=({address:a})=>e(o,{children:O(a)?e(Kl,{}):e(Hl,{address:a})}),Hl=({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"}})]})},Kl=()=>{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"})]})},$l=({refreshNum:a})=>{const{View:o}=g(),l=we(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Zl,{address:l})})},Jl=({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)))})},ql=({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((()=>{fe.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(Jl,{tabActive:h,setTabActive:p})})]}),e(d,{className:"content",children:"0"===h?e(Fl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r}):e($l,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:n})})]})},Xl=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:[ea(o).format("YYYY-MM-DD")," - ",ea(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:i})})]})})})),_l=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:[ea(o).format("YYYY-MM-DD")," - ",ea(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),es=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:i,shoppingGoodsId:n,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:p,Popup:N,Form:u,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:T,visible:b,couponValue:x=[],setVisible:z,selectCoupon:k,onChange:S,onCreditChange:A,confirmImpl:L,resetImpl:j,contractPmode:v,onPayChange:B,payList:O,payName:E,creditList:P,creditInfo:Y,selectCredit:V,creditVisible:Q,payVisible:R,setPayVisible:U,handleChooseImg:G,contractEcurl:W,setCreditVisible:F}=be(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!==T.length),children:[e(p,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(p,{className:"label",children:k?`已选择: ${k}`:0===T.length?"暂无可用优惠券":"请选择优惠券"}),0===T.length?null:e("img",{src:Eo,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===T.length?null:e("img",{src:Eo,alt:"",className:"icon"})]})]})]}),Y.urechargeId&&"0"===v&&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===T.length?null:e("img",{src:Eo,alt:"",className:"icon"})]})]}),"1"===v&&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(N,{popupVisible:R,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Qa,{children:e(C,{children:e(M,{value:v||"",onChange:B,children:O?.length>0&&O.map(((o,l)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(D,{checked:o.ptfpmodeType===v,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(N,{popupVisible:Q,popupHandler:F,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Qa,{children:e(C,{children:e(M,{onChange:A,children: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(N,{popupVisible:b,popupHandler:z,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Qa,{children:e(C,{children:s?e(I,{value:x?.length>0?x.map((e=>e.couponNo)):[],onChange:S,children:T?.length>0&&T.map((e=>m(Xl,{isDisabled:2===x.length,...e,key:e.couponNo})))},"visible"):e(M,{value:x?.length>0?x[0].couponNo:"",onChange:S,children:T.map(((e,a)=>m(_l,{...e,key:a})))},"visible")})}),a(h,{className:"place-footer",children:[e(y,{className:"operate reset",onClick:j,children:"重置"}),e(y,{className:"operate",onClick:L,children:"确认"})]})]})})]})},as=({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:"快递"})]})})},os=({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(qa,{...a},l)))})))})},ls=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:i,goodsBeanStr:n,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:p,Textarea:N}=g(),u=N||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,T=M.pointsDeduction||0,b=M.urDiscount||0,{shoppingCountPrice:x,comDisMoney:z,changeContent:k,shoppingType:S,pricesetRefrice:A}=xe(y),L=ga(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:ga(x)})]}),null!==T&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===S?T+"积分":ga(T)]})]}),"06"===S?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ga(b)]})]}),"06"===S?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ga(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ga(-f.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ga(-(z+I))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ga(D)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(u,{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":L})]})]})})},ss=({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:N,WrapLoading:u}=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:T}=ze({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 b=ga(Math.max(M-C,0));return a(p,{className:"placeOrderFooter",children:[a(N,{className:"price",children:["合计: ",r?"0.00":b]}),e(u,{loading:T,children:e(p,{className:"btn",onClick:f,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ts=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=n((()=>D()),[]),{View:p,Text:N,Radio:u,IconMobile:M,WrapLoading:y,SmoothRadio:I}=g(),{paymentImpl:C,channelList:w,contract:f,handleRadio:T,loading:b}=ke({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(N,{className:"title",children:[e(M,{value:"roundcheck"}),"订单提交成功"]}),a(p,{className:"info",children:["订单号:",f.current.contractBillcode," | 总金额:",ga(f.current.contMoney+(f.current.logMoney||0)),"元"]}),a(p,{className:"info",children:["还需支付:",ga(f.current.orderMoney),"元"]})]}),e(p,{className:"paymentGroup",children:e(I,{onChange:T,children:w?.map((o=>a(p,{className:"paymentItem",children:[e(M,{value:o.fchannelBankImgurl}),a(p,{children:[a(p,{className:"base",children:[e(N,{children:o.fchannelName}),e(u,{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:["支付金额:",ga(f.current.orderMoney),"元"]})]}):null]})]},o.fchannelCode)))})})]}),e(p,{id:"v_html"}),e(y,{loading:b,children:e(p,{className:"btnGroup",onClick:C,children:e(p,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),is=({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:ga(o.dataBmoney)})]})]})},ns=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:N,paddingTop:u,paddingBottom:M})=>{const{View:y,Text:I,IconMobile:D,WrapLoading:w}=g(),{result:T,loading:b}=Se(o||(f("contractBillcode")||{}).contractBillcode,l);return e(y,{className:"placeOrderResult",style:{paddingTop:u,paddingBottom:M},children:e(w,{loading:b,children:a(y,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(D,{value:T.icon,style:{fontSize:"35px",color:T.color}}),a(y,{className:"tips",children:[e(I,{className:"title",children:T.msg}),e(I,{className:"tip",children:T.info})]}),"success"===T.sysRecode&&e(is,{dataObj:T.dataObj}),a(y,{className:"btnGroup",style:{marginTop:20},children:[e(y,{className:"btn black",onClick:()=>l?C("orderlist"):C(T.menuCode,{contractBillcode:T.dataObj.contractBillcode}),style:{color:t,backgroundColor:i,border:`1px solid ${n}`,borderRadius:1===c?"20px":"0px"},children:T.buttonText}),e(y,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===N?"20px":"0px"},onClick:()=>C(d.value),className:"btn white",children:r})]})]})})})})),{Button:cs}=u,rs=({dataState:a,...l})=>e(o,{children:["-1"].includes(a+"")?null:e(ds,{dataState:a,...l})}),ds=({dataState:a,contractAppraise:o,contractType:l,color:s,borderColor:t,btnColor:i,btnShape:n,...c})=>{const{View:r}=g();4!==a&&4!==a||1===o?4!==a&&4!==a||1!==o||(a=5):a=4;const{operateArray:d,handlerImpl:m}=Ae({dataState:a,contractAppraise:o,contractType:l,...c});return e(r,{className:"btnGroup",children:d.map(((a,o)=>e(cs,{style:{color:s,borderColor:t,backgroundColor:i},className:y({btn:!0,white:o<d.length-1,black:o===d.length-1}),onClick:()=>m(a.handler),shape:n,children:a.name},o)))})},{Button:ms}=u,hs=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=n((()=>D()),[]),i=n((()=>s?I():null),[s]),c=async e=>{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(ms,{className:"copy",size:"mini",fill:"outline",onClick:async()=>{if(a)try{s&&i&&i.setClipboardData?(await new Promise(((e,o)=>{i.setClipboardData({data:a,success:e,fail:o})})),r("复制成功","success"),l(!0)):(await c(a),r("复制成功","success"),l(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")},children:o?"已复制":"复制"})})),ps=({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((()=>{b.eventCenter.trigger("switchOrderTab")})):t>1e3&&n(ua(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 gs({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:N}){const{View:u}=g(),M=Le(i,r);return a(u,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(u,{children:[a(u,{className:"topInfo",children:[a(u,{className:"orderNo",children:["订单号: ",o,e(hs,{copyContent:o})]}),e(u,{className:"status",children:M})]}),e(u,{className:"card-item-info-countDown"}),e(u,{className:"goodsItemWrap",onClick:()=>C("orderDetail",{contractBillcode:o}),children:t.map((a=>e(qa,{...a,dataState:i,children:1===i&&e(ps,{contractPaydate:h,init:c,countdownCancel:N,contractId:n})},a.contractGoodsId)))})]}),a(u,{className:"allInfo",children:[a(u,{className:"totalNum",children:["共",s,"件商品"]}),a(u,{className:"totalPrice",children:["合计 ",ga(l)]})]}),e(rs,{init:c,contractType:p,contractId:n,contractBillcode:o,dataState:i,contractAppraise:r,dataBmoney:l})]})}const Ns=()=>{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 us=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:N,countdownCancel:u}=je(o,l,i);return e(n,{className:"orderListItemWrap",children:e(Qa,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(n,{children:[h.map(((e,a)=>m(gs,{init:N,...e,key:a,borderRadius:s,orderSpacing:t,countdownCancel:u}))),e(n,{children:p?e(r,{}):null})]}):a(n,{className:"nodata_img",children:[e(Ns,{}),e(n,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Ms=process.env.TARO_ENV;let ys=ve;if(console.log("platform",Ms),"h5"==Ms){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(ys=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=b.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(ys=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Is=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=ys.findIndex((e=>"-1"===e.code));m(e)};return b.eventCenter.on("switchOrderTab",e),()=>{b.eventCenter.off("switchOrderTab",e)}}),[]),e(c,{className:"order-container",children:e(r,{defaultIndex:+d,tabs:ys,render:o=>e(c,{className:"orderList",children:e(us,{contractType:n,item:o,orderSpacing:s,refreshNum:a,borderRadius:l})})},d)})})),Cs=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:h})=>{const{View:N,Text:u,Image:M}=g(),{orderDetail:y,handleApplyBtn:I,creditMoney:D,packageRemark:w,expressName:f}=Be(l||""),T=e=>ea(e).format("YYYY-MM-DD HH:mm:ss");return a(N,{className:"orderDetail",children:[e(N,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(N,{className:"orderDetailTopTitleContent",children:[a(N,{className:"icon_text",children:["待收货"===Le(y.dataState)?e(ca,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:Le(y.dataState,y.contractAppraise)})]}),e(N,{className:"subTitleWrap",children:T(y.gmtCreate)})]})}),e(N,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:n+"px"},children:a(N,{style:{position:"relative",top:-26},children:[a(N,{className:"addressInfo",children:[e(N,{className:"lPart",children:e(ca,{value:"dizhi"})}),a(N,{className:"mPart",children:[a(N,{className:"personInfo",children:[e(u,{className:"personName",children:y.goodsReceiptMem}),e(u,{className:"personPhone",children:y.goodsReceiptPhone})]}),e(N,{className:"address",children:y.goodsReceiptArrdess})]}),e(N,{className:"rPart",children:[1,2,3].includes(Number(y?.dataState))&&e(u,{onClick:()=>C("addressList",{contractBillcode:y.contractBillcode}),children:"编辑"})})]}),a(N,{className:"orderDetailGoodsWrap",children:[y.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{C("goodDetail",{skuCode:l.skuCode})},children:[e(qa,{...l},l.contractGoodsId),e(N,{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(N,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),I.bind(null,l,y.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(N,{className:"priceInfo",children:"06"!=y.contractType?a(p,{children:[a(N,{className:"priceInfoFloor top",children:[a(N,{className:"totalNum",children:["共",y.goodsNum,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",parseFloat((y.dataBmoney-y.refundMoney).toFixed(2))]})]}),a(N,{className:"priceInfoFloor",children:[e(N,{className:"totalNum",children:"商品总额"}),a(N,{className:"totalPrice",children:["¥",y.contractInmoney]})]}),a(N,{className:"priceInfoFloor",children:[e(N,{className:"totalNum",children:"优惠"}),a(N,{className:"totalPrice",children:["¥",-y.goodsPmoney]})]}),a(N,{className:"priceInfoFloor",children:[e(N,{className:"totalNum",children:"客服电话"}),e(N,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(o,{children:[a(N,{className:"express",children:[e(N,{className:"label",children:"物流信息"}),e(N,{className:"name",children:f||"暂无物流信息"})]}),a(N,{className:"express",children:[e(N,{className:"label",children:"配送信息"}),e(N,{className:"name",children:"1"===y.contractPumode?"自提":"快递"})]})]}),"06"!==y.contractType&&a(N,{className:"express",children:[e(N,{className:"label",children:"发票信息"}),e(N,{className:"name",children:0===y.contractInvstate?"未开票":1===y.contractInvstate?"已提交":"已开票"})]}),a(N,{className:"orderInfo",children:[e(N,{className:"orderInfoItem",children:e(N,{style:{fontSize:14},children:"订单信息"})}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"运费"}),a(N,{className:"name",children:["¥",y.goodsLogmoney]})]}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"买家留言"}),e(N,{className:"name",children:w||"-"})]}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"订单编号"}),a(N,{className:"context_copy",children:[e(N,{className:"name",children:y.contractBillcode}),e(hs,{copyContent:y.contractBillcode})]})]}),a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"下单时间"}),e(N,{className:"name",children:T(y.gmtCreate)})]}),"06"!=y.contractType?a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"授信金额"}),e(N,{className:"name",children:ga(-D)})]}):"",a(N,{className:"orderInfoItem",children:[e(N,{className:"label",children:"支付方式"}),e(N,{className:"name",children:e(N,{className:"name",children:"0"===y.contractPmode?"线上支付":"线下支付"})})]}),"1"===y.contractPmode&&a(N,{className:"orderInfoItem container-img-top",children:[e(N,{className:"label",children:"付款凭证"}),e(N,{className:"name",children:e(M,{mode:"widthFix",style:{width:100},src:Ke(y.contractEcurl)})})]})]}),e(N,{className:"btnGroupFooter",children:e(rs,{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})})]})})]})})),Ds=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:i}=g(),n=v(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=v(l,"packageList.length",o.count),r=v(l,"packageList[0].expressName",o.expressName),d=v(l,"packageList[0].packageBillno",o.packageBillno),m=v(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]})]})]})},ws=({defaultValue:o,detail:l})=>{const{View:s}=g(),t=v(l,"message",o.message),i=v(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})})},fs=s((({code:o,defaultValue:l})=>{const{View:s}=g(),{info:t,detail:i,stateObj:n}=Oe(o);return a(s,{className:"expressInfo",children:[e(Ds,{info:t,detail:i,stateObj:n,defaultValue:l}),e(ws,{detail:i,defaultValue:l})]})})),Ts=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:n,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:p}=g(),{servicePopup:N}=ha(),[u,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:N})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:u||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(p,{src:y,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),bs=s((({title:o,columnList:l})=>{const{View:s,Text:n,Badge:c,Image:r}=g(),[d,m]=t({}),[h,p]=t(0),N=async()=>{try{const e=await L();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}};i((()=>{const e=f("myPageShowNum")||0;p(e),N();const a=setInterval((()=>{const e=f("myPageShowNum")||0;e!==h&&(p(e),N())}),500);return()=>{clearInterval(a)}}),[h]);const u=(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:u.bind(null,o,l),className:"contentItem",style:{display:o.show?"block":"none"},children:[e(c,{...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)))})]})})),xs=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:Ke(o.imgUrl),className:"icon"}),e(i,{className:"label",children:o.link.label})]}),e(n,{value:"xiangyou1"})]},l)))})})),zs=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=g(),{Rate:c}=u;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)))})]})},ks=[{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"}]}],Ss=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:ks.map(((a,o)=>e(zs,{itemData:a},o)))})]})})),As=s((({code:o,borderRadius:l,borderColor:s,color:i,buttonColor:n,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:N,Submit:M,changeContent:y,addImg:C,removeImg:D,getImgUrls:w}=Ee(o),{Button:f}=u,{View:T,Image:b,TextArea:x,Textarea:z}=g(),k=z||x,S="WEAPP"===I().getEnv(),A="undefined"!=typeof window,[L,j]=t(0),v=c("宝贝满足你吗?分享一下它吧"),B=e=>{j(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(L).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){(e.tempFilePaths||e.tempFiles?.map((e=>e.path))||[]).forEach((e=>{C(L,e)}))}})}else if(A){const e=3-w(L).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(L,a)}))},a.click()}})()};return a(T,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((o,s)=>a(p,{children:[a(T,{className:"topInfo",children:[a(T,{className:"lPart",children:[e(b,{src:Ke(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(T,{className:"goodsInfo",children:[e(T,{className:"goodsName",children:o.goodsName}),e(T,{className:"goodsSize",children:o.skuName})]})]}),e(T,{className:"rPart",children:a(T,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(T,{className:"rate",children:[e(T,{className:"title",children:"商品评价"}),e(il,{onChange:N.bind(null,s)})]}),e(T,{className:"evaluate",children:e(k,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:y.bind(null,s)})}),a(T,{className:"upload-imgs",children:[e(T,{className:"upload-title",children:"上传图片 (最多3张)"}),a(T,{className:"img-list",children:[a(T,{className:"upload-btn",onClick:()=>B(s),children:[e(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(T,{className:"upload-text",children:"上传图片"})]}),w(s).map(((o,l)=>a(T,{className:"img-item",children:[e(b,{className:"preview-img",src:o,onClick:()=>(e=>{if(S){const a=I(),o=w(L);a.previewImage({current:e,urls:o})}else A&&window.open(e,"_blank")})(o)}),e(T,{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:"提交"})]})})),Ls=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:i,isNeedDelete:n,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:h}=Pe(o),{Button:N}=u,{View:M,Image:y,Text:I}=g();return a(M,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>a(p,{children:[a(M,{className:"topInfo",children:[a(M,{className:"lPart",children:[e(y,{src:Ke(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(il,{readOnly:!0,count:o.evaluateScopeReList?.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{a=[]}else"string"==typeof s&&(a=s.split(",").filter(Boolean));return a.map(((a,o)=>e(y,{className:"evaluate-img",src:Ke(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s))),m.length?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:h,children:"删除"}):null]})})),js=({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:Ke(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," 元"]})]})]})]})},vs=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}=Ye(),{View:N,ScrollView:u,SmoothCheckbox:M,Checkbox:y,Button:I,Image:C}=g();return e(N,{className:"collectList",children:0===o.length?e(N,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(N,{className:"hasDate",children:[e(N,{className:"topBar",children:e(N,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(Qa,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(M,{value:r,onChange:i,style:{height:"100%"},children:o.map((a=>e(js,{item:a,edit:l,checked:r},a.collectId)))}),l?a(N,{className:"handleBar",children:[e(N,{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]})})]})})})),Bs=({item:o,edit:l,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=g();return a(t,{className:"collectItem",children:[l?e(n,{className:"lPart",value:o.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:o.collectOpcode}),children:[e(i,{src:Ke(o.shopdeInfo?.shopdeLogo),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:o.collectOpcont}),e(c,{className:"scope",children:o.shopdeInfo?.shopdeScope})]})]})]})},Os=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ye(1),{View:h,ScrollView:p,SmoothCheckbox:N,Checkbox:u,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(Qa,{id:"topBar",children:a(p,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(N,{value:r,onChange:i,style:{height:"100%"},children:o.map(((a,o)=>e(Bs,{item:a,edit:l,checked:r},a.collectId||o)))}),l?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",style:{width:"130px"},children:e(N,{onChange:d,children:e(u,{value:"1",checked:m,children:"全选"})})}),e(M,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Es=({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:Ke(o.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:o.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Ps=({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:l?.title})}),l.option.map(((a,o)=>e(Es,{footprintItem:a,edit:s},o)))]})},Ys=({footprintList:a,edit:l})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?ea(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=P(e,"gmtCreate");return Object.keys(o).map((e=>({title:e||"",option:o[e]})))}),[a]);return e(o,{children:s.map(((a,o)=>e(Ps,{item:a,edit:l},o)))})},Vs=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:N}=Ve();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(Qa,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:N,onChange:d,children:e(Ys,{footprintList:n,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Qs=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:N,loading:u,signing:M,handleSignin:y}=Qe(),I=ea(),C=I.format("YYYY-MM-DD"),D=n((()=>p.includes(C)),[p,C]),w=n((()=>{const e=I.year(),a=I.month(),o=ea(`${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:u,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:[N>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:N})," 积分"]})}),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})]})]})})})),Rs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:i})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=g(),[h,p]=t((()=>ea())),[N,u]=t(!1),[M,y]=t((()=>ea().year())),[I,C]=t((()=>ea().month()+1)),{signinDetails:D,loading:w,refresh:f}=Re(h),T=n((()=>h.format("YYYY年MM月")),[h]),b=n((()=>Array.from({length:12},((e,a)=>a+1))),[]),x=n((()=>D.sort(((e,a)=>ea(a.date).valueOf()-ea(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),u(!0)},children:[e(r,{className:"dateText",children:T}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:x.length>0?x.map(((o,s)=>{const t=ea(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:N,popupHandler:u,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:b.map((o=>e(c,{className:"monthItem "+(I===o?"active":""),onClick:()=>(e=>{C(e);const a=ea(`${M}-${String(e).padStart(2,"0")}-01`);p(a),u(!1)})(o),style:I===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Us=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Gs=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=g();return e(s,{className:"promotionListTab",children:Us.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},i)))})})),Ws=({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:[ea(n).format("YYYY-MM-DD")," ~ ",ea(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},Fs=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[i,n]=t(Us[0].val),{list:c,getData:r}=Ue({params:i}),{View:d,ScrollView:m}=g();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Gs,{activeColor:o,setParams:n,params:i}),e(d,{children:e(Qa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(Ws,{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 Zs=()=>{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"})})},Hs=({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:["有效期至:",ea(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",ea(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",ea(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(Zs,{})})},Ks=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:N=[]}=Ge();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(Qa,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Hs,{backgroundColor:o,color:l,queue:i,list:N,coe:d,config:h})})})})]})})),$s=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:N,takeCoupon:u,takeList:M}=We({defaultValue:o,coupons:l});return e(p,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:N.map(((o,l)=>{const m=v(o,"pbName"),h=v(o,"pmPromotionDiscountList"),g=v(h.at(-1),"discName"),N=v(o,"promotionName"),y=ea(v(o,"promotionBegintime")).format("YYYY-MM-DD"),I=ea(v(o,"promotionEndtime")).format("YYYY-MM-DD"),C=v(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:N}),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:()=>u({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Js=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:N}=g(),{list:u,takeCoupon:M,takeList:y}=We({defaultValue:o,coupons:l});return e(N,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m},children:u.map(((o,l)=>{const m=v(o,"pbName"),h=v(o,"pmPromotionDiscountList"),p=v(h.at(-1),"discName"),g=v(o,"promotionName"),u=ea(v(o,"promotionBegintime")).format("YYYY-MM-DD"),I=ea(v(o,"promotionEndtime")).format("YYYY-MM-DD"),C=v(o,"promotionCode");return a(N,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(N,{className:"lPart",children:[e(N,{className:"type",style:{color:n},children:m}),e(N,{className:"rule",style:{color:c},children:p}),e(N,{className:"info",style:{color:r},children:g}),a(N,{className:"validity",style:{color:d},children:[u," - ",I]})]}),e(N,{className:"rPart",style:{backgroundColor:i},children:-1===o.availabledate||y.includes(l)?e(N,{className:"txt",children:"已 领 取"}):e(N,{className:"txt",onClick:()=>M({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),qs=s((({type:o=1,coupons:l=[],...s})=>{const{View:t}=g();return a(t,{className:"getCouponOne",children:[1===o?e($s,{coupons:l,...s}):null,2===o?e(Js,{coupons:l,...s}):null]})})),Xs=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:i}=Fe(l);return e(M,{navigator:i,color:s,speed:o,direction:a,content:t})},_s=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})]})})),et=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=He(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(Qa,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:p}),a(c,{className:"time",children:["发布时间:",ea(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{uo as AddressDetail,ho as AddressList,po as AddressListBtn,Wa as AfterSalesApply,oo as AfterSalesDetail,Ja as AfterSalesList,io as AfterSalesType,Fs as AllPromotionList,et as ArticleDetail,Oa as BackTop,Ql as CartList,Rl as CartOperate,Sl as CartTop,ka as ClassifyNav,La as ClassifyNavOne,Aa as ClassifyNavOneJsx,Ba as ClassifyNavThree,ja as ClassifyNavTwo,vs as CollectionList,Os as CollectionShopList,Ks as CouponList,Pa as Cube,As as EvaluateDetail,Ss as EvaluateList,Ls as EvaluateViewDetail,fs as ExpressInfo,Vs as FootPrint,qs as GetCouponOne,Ro as Goods,bo as GoodsClassify,Ao as GoodsClassifyOne,Bo as GoodsClassifyTwo,pl as GoodsDetailAndEvaluate,Zo as GoodsDetailBanner,tl as GoodsDetailCoupon,fl as GoodsDetailHandleBar,bl as GoodsDetailHandleBarOne,qo as GoodsDetailInfo,_o as GoodsDetailInfoOne,ol as GoodsDetailPromotion,al as GoodsDetailSku,kl as GoodsList,Uo as GoodsSlider,Go as GoodsSlideshow,ma as Line,Qs as MemberSignin,Ts as MineData,xs as MineFunction,bs as MineOrderEntry,Mo as MyAgreementList,Io as MySetting,yo as MySettingJsx,Xs as Notice,_s as NoticeDetail,Cs as OrderDetail,Is as OrderList,ts as PaymentMode,Do as PickupPointList,Fl as PlaceOrderAddress,ql as PlaceOrderAddressTabs,es as PlaceOrderCoupon,as as PlaceOrderDelivery,os as PlaceOrderGood,ls as PlaceOrderInfo,ss as PlaceOrderOperate,ns as PlaceOrderResult,ca as QjMobileIcon,Yo as Search,Qo as SearchPage,Vo as SearchStyleTwo,na as Service,Rs as SigninDetail,ba as Slider,da as TextLine,ra as Title,Ma as ToPrice,xa as Video,wo as WechatAddressBtn,pa as addressIdConst,ga as fixPrice,Na as fixPrice1,ua as formatTime,ha as useService};
|