s-material-react 1.9.0 → 1.9.2

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