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