s-material-react 1.8.7 → 1.8.8

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.
@@ -1,7 +1,6 @@
1
1
  @font-face {
2
2
  font-family: 'iconfont'; /* Project id 3540782 */
3
- src:
4
- url('//at.alicdn.com/t/c/font_3540782_bsflztyc45f.woff2?t=1686895966279') format('woff2'),
3
+ src: url('//at.alicdn.com/t/c/font_3540782_bsflztyc45f.woff2?t=1686895966279') format('woff2'),
5
4
  url('//at.alicdn.com/t/c/font_3540782_bsflztyc45f.woff?t=1686895966279') format('woff'),
6
5
  url('//at.alicdn.com/t/c/font_3540782_bsflztyc45f.ttf?t=1686895966279') format('truetype');
7
6
  }
@@ -10,7 +10,6 @@
10
10
  display: grid;
11
11
  grid-template-columns: 52px 1fr;
12
12
  font-size: 14px;
13
-
14
13
  .info {
15
14
  display: flex;
16
15
  justify-content: space-between;
@@ -144,6 +144,23 @@
144
144
  //grid-template-columns: 52px 1fr;
145
145
  font-size: 14px;
146
146
  border-bottom: 1px solid #dddddd;
147
+ .img-fields{
148
+ width: 100px;
149
+ height: 100px;
150
+ overflow: hidden;
151
+ border: 1px dashed #ccc;
152
+ box-sizing: border-box;
153
+ display: flex;
154
+ align-items: center;
155
+ justify-content: center;
156
+ border-radius: 6px;
157
+ color: #394259;
158
+
159
+ .img {
160
+ width: 100px;
161
+ display: block;
162
+ }
163
+ }
147
164
  }
148
165
 
149
166
  .info {
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 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 V,isEmpty as L,noop as T,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 G,useEditAddress as E,useMySetting as H,useGoodsClassify as Y,useGoods as U,useGoodDetail as K,useBanner as Q,useGoodCollection as q,useGoodSpecAndPrice as $,useGoodFootprint as Z,useCreatePoster as X,useGoodsShare as J,useGoodSkuStore as _,popupImplement as ee,usePromotion as ae,useAddCoupon as le,useCoupon as oe,useEvaluate as se,useAddShopping as te,useGoodSku as ie,useGoodsList as ne,useCartTop as ce,useCartListNext as re,getRadioValue as de,useCartOperate as me,useOrderAddress as pe,useOrderGood as he,useOrderCoupon as ue,useOrderInfo as ge,useOrderPay as Ne,useOrderResult as fe,useOrderResultResult as Ce,useOrderOperate as be,orderStatusImpl as ye,useOrderList as we,orderStatusList as Se,useOrderDetail as xe,useExpressInfo as ke,useEvaluateDetail as ve,useCollectionList as Ie,useFootprint as Be,useMarketingPromotion as Ae,useCouponList as Ve,useAllCoupon as Le,useNotice as Te,useNoticeDetail as De,useArticleDetail as Pe}from"qj-b2c-store";import Re from"dayjs";import{checkMobile as Me,ProvinceComponent as ze,CityComponent as Oe,AreaComponent as Fe,navigatorLink as je}from"@brushes/shared-utils";import{DynamicForm as We}from"@brushes/mobile-form";const Ge=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"})})),Ee=({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})},He=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})})})),Ye=({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})]})},Ue=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 Ke(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 Qe(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 qe=(e="b2c")=>{const[a,l]=t([]),o=n((()=>C()),[]);i((()=>{Qe(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>Qe(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})}}},$e={label:""},Ze=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Xe=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",Je=(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}`},_e=e=>1===String(e).indexOf(".")?ea(e):aa(e),ea=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)},aa=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"},la=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const oa=e=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?la+e:e?la+"/paas/shop/"+e:e),[e]),sa=({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})},ta=s((({item:a,isPlay:o,position:s,direction:t})=>{var i,n;const{Image:c,View:r}=h(),d=oa(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(sa,{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)})})})),ia=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:S="center",fontColor:x="#000000",backGroundColor:k="#ffffff"})=>{const v=n((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=h(),A=P(i,b||[]),V=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:p,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(l,{children:["top"===o||"bottom"===o?V(s):null,e(ta,{isPlay:t===i,item:s,position:o,direction:m})]})})})})),na=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:S="#ffffff",otherStyles:x=[],ImgShadow:k=!1,Position:v="top"})=>{const{View:I}=h(),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(ia,{Position:v,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:S,className:f({"outer-shadow":k}),className1:B})})})),ca=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}})})})),ra=({src:a,borderRadius:l})=>{const{Image:o}=h(),s=oa(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},da=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(ra,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),ma=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=h(),t=oa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},pa=({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(ma,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},l)))})},ha=s(pa),ua=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)))})})),ga=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=h(),m=oa(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})})})},Na=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(ga,{layout:u,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:p},l)))})})),fa=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(Ee,{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"})})})),Ca=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=h(),i=oa(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)}})},ba=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(Ca,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),ya=o.createContext(null),wa=s((()=>{const{View:a}=h(),{tip:l}=r(ya);return e(a,{className:"afterSalesApplyTip",children:l})}));const Sa=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=Ke(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}))},xa=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(ya);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(Sa,{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)))})]})})})})})})),ka=s((()=>{const{View:l}=h(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=r(ya);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(Ee,{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:Ze(i)})})]}),e(xa,{popupShow:s})]})})),va=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(ya);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:p}),a(l,{className:"imgGroup",children:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(Ee,{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(Ee,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Ia=({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:S,placeholder:x,handleDelImg:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:V}=M({contractBillcode:o,skuCode:s});return e(p,{loading:V,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(ya.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(wa,{}),e(ka,{}),e(va,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},Ba={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Aa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Va=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(Ee,{style:{color:null===(s=Ba[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ba[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:Ba[l.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src: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:Aa[l.refundType][l.dataState]}),e(Ee,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),La=s((()=>{const{View:a}=h();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ta=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(Sa,{id:"tabContent",children:e(s,{children:r?i.map((a=>e(Va,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(La,{})})})})})})),Da=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(Ta,{item:l,refreshNum:a})})})})),Pa=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r})=>{const{View:d,Image:m,SmoothView:p}=h(),u=Ze(i),g=n((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(d,{className:"card-item",children:[e(m,{src:o,alt:"",className:"card-item-img"}),a(d,{className:"card-item-info",children:[a(d,{className:"card-item-info-container",children:[e(p,{className:"card-item-info-container-title",children:s}),e(p,{className:"card-item-info-container-price",children:u})]}),a(d,{className:"card-item-info-sub",children:[e(p,{className:"sku",children:c}),e(p,{className:"count",children:g})]}),r]})]})})},Ra=(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]}},Ma=o.createContext(null),za=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Ma),{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(Sa,{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)))})]})})})})})),Oa=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Ma),{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:"#000"},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(za,{})]})})),Fa=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:S,refundMeo:x,refundEx:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:V,packageCode:L,packageBillno:T}=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(Ma.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:Ra(v,b)}),e(D,{className:"right_time",children:Re(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(Pa,{dataPic: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:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"申请时间"}),e(D,{className:"right",children:Re(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:V})]}):"",1===b?a(D,{className:"writeMsg",children:[e(D,{className:"wlMsg",children:"物流信息"}),e(Oa,{})]}):"",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:T})]}),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:L})]})]}):""]}):""})]})}),0===b?e(D,{className:"footerBtn",children:e(D,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),ja=o.createContext(null),Wa=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=h(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:p}=r(ja),{goodsName:u,skuName:g,dataPic:N}=m;return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:N,className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:Ze(p)})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(Ee,{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]})]})]})})),Ga={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"}]},Ea=(e=2)=>Ga[e],Ha=s((({afterSalesType:l=2,contractBillcode:o,skuCode:s})=>{const{View:t}=h(),{goApply:i,goodsNum:n}=r(ja);return e(t,{children:a(t,{className:"afterSalesTypeType",children:[e(t,{className:"title",children:"售后类型"}),Ea(+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(Ee,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},c)))]})})})),Ya=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(ja.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(Wa,{}),e(Ha,{afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},Ua=({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:"设为默认地址"})})},Ka=({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(Ua,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{className:"del",onClick:o,children:"删除"})]})]})},Qa=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)))})})})})),qa=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]})})})),$a=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}=G(a);return e(c,{className:"addressListWrap",style:{paddingTop:i+"px",marginBottom:t+"px"},children:p?e(Qa,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(Ka,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(qa,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),Za=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:"+ 新增地址"})})})),Xa=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],Ja=[{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:Me}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:ze}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Oe}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Fe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",label:"设置默认地址",name:"addressDefault",extraProps:{color:"#000"}}],_a=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=h(),{Button:c}=g,{onSubmit:r}=E();return e(n,{className:"addressDetail",style:{paddingBottom:i+"px",paddingTop:t+"px"},children:e(We,{footer:e(c,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:Xa,onSubmit:r,fields:Ja})})})),el=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)))})})})),al=()=>{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(Ee,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},ll=s(al),ol=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:sl}=g,tl=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(Sa,{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(sl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(sl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(ol,{navList:m,activeKey:r,cell:l})})]})})})})})),il=d(null),nl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(il),{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(Sa,{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]})})),cl=s((({thirdList:l})=>{const{View:o,Image:s}=h(),{picShadow:t,layout:i}=r(il);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)))})})),rl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(il),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(Sa,{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(cl,{thirdList:u})]})})})})})),dl=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(il.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(nl,{}),e(rl,{})]})})})),ml=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)))})})),pl=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(ml,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:hl}=g,ul=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(Sa,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(c,{className:"side",children:e(hl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(hl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(pl,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),gl="data:image/png;base64,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",Nl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",fl=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:gl,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})]})})})),Cl=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:gl,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:"搜索"})]})})})),bl=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:gl,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:e=>Qe(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(p,{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(Ee,{onClick:()=>Qe(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]})})),yl=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:S=!0,goodsPrice:x=!0,goodsCar:k=!0,goodsBorder:I=!0,goodsShadow:B=!1,marginGap:T=10})=>{const[D,P]=t(l),R=c(),{View:M,Text:z}=h();return i((()=>{V(R.current,u)||(R.current=u,L(u)?P(l):Qe(void 0,void 0,void 0,(function*(){try{const e=yield v({[p]:u.toString(),distinctField:"goodsNo"}),a=A(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:C},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft: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(${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?Ze(l.pricesetNprice):"",1===g&&e(z,{className:"markedPrice",children:Ze(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:k?"block":"none"},children:e(Ee,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),wl=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: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:p,backgroundColor:u,marginRight:`${g}px`},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(w,{className:"img",style:{backgroundImage:`url(${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:Ze(l.pricesetNprice)}):null,t?e(w,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null]}),i?e(w,{className:"rPart",children:e(Ee,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Sl=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 S=n((()=>C()),[]),{list:x}=U({defaultValue:l,goods:o},m),{SmoothSwiper:k,View:v,Image:I}=h(),[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:p,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src: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:Ze(l.pricesetNprice)}):null,i?e(v,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:f,color:b,borderRadius:w},children:N})]})})]})})),xl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[]}=K(o,s),i=Q(t);return e(ia,{selectImg:i,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},kl=l=>{const{SmoothView:o,View:s}=h(),{handleCollect:t,collection:i}=q(l);return a(s,{onClick:t,children:[L(i.dataObj)?e(Ee,{value:"star-fill",style:{fontSize:20}}):e(Ee,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:L(i.dataObj)?"收藏":"已收藏"})]})},vl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n,Button:c}=h(),{rsSkuDomainList:r}=K(l,t),{goodInfo:d}=$(r);Z(l);const{init:m,canvasRef:p}=X();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:Ze(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(kl,{goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:l})})]})},Il=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=h(),{handleCollect:i,collection:n}=q(l),{handleShare:c}=J();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:L(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Bl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=h(),{rsSkuDomainList:r}=K(t,i),{goodInfo:d}=$(r);return _((e=>e.spec)),Z(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:Ze(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Il,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:t})]})})),Al=s((()=>{const{Text:e}=h(),l=_((e=>e.count)),o=_((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Vl=({dispatchPageStore:o})=>{const{View:s,Text:t}=h(),{openPopup:i}=ee(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"规格"}),a(s,{className:"info",children:[e(Al,{}),e("img",{src:Nl,alt:"",className:"icon"})]})]})})},Ll=({skuCode:l,scene:o})=>{const{View:s,Text:t}=h(),{rsSkuDomainList:i}=K(l,o),{goodInfo:n}=$(i),c=ae(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:"暂无促销活动"})})]})},Tl=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}=le(),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:[Re(l).format("YYYY-MM-DD")," - ",Re(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:"已领完"})]})})})),Dl=()=>{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"})})},Pl=o=>{var{skuCode:s,scene:t}=o;Ke(o,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=h(),{rsSkuDomainList:d}=K(s,t),{goodInfo:p}=$(d),{coupon:u,visible:g,setVisible:N}=oe(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:Nl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(Sa,{children:u.length>0?u.map(((e,a)=>m(Tl,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Dl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Rl=({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(Ee,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Ml=({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(Rl,{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})]})},zl=({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(Ml,{item:a},l)))]}):e(qa,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Ol=({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||""}})})},Fl=({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)))})},jl=({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=se(p);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(Fl,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(Ol,{goodsRemark:m}):e(zl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Wl=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:c}=h(),r=_((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)))})]})},Gl=s((({handleStep:l})=>{const{View:o,NumStep:s}=h(),t=_((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),El=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=h(),{skuList:r}=o;return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:i.dataPic,alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:Ze(i.pricesetNprice)}),a(c,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),r.map(((a,l)=>e(Wl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},Hl=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=h(),c=_((e=>e.isNeedButton)),r=_((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:"立即购买"})]})})},Yl=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=h(),{spec:c,goodInfo:r}=$(t),{handleChooseSize:d,handleStep:m,addCardImpl:p,cashImpl:u,addShoppingImpl:g}=te(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(Sa,{children:e(n,{children:a(i,{className:"content",children:[e(El,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Gl,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(Hl,{cashImpl:u,addShoppingImpl:g,addCardImpl:p})]})})),Ul=({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(Yl,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},Kl=s((({serverShow:o,cartShow:s,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:c,rPartBgColor:r,rPartStyle:d,dispatchPageStore:m,skuCode:p,platform:u,scene:g})=>{const{View:N,IconMobile:f,Text:C}=h(),b=_((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:S}=K(p,g),{goodInfo:x}=$(w),{servicePopup:k}=qe(u),{addCardPopup:v,buyOpenPopup:I}=ee(m);return a(N,{className:"goodsDetailHandleBar",children:[a(N,{className:"linkGroup server",onClick:k,style:{display:o?"block":"none"},children:[e(f,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"客服"})]}),a(N,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:s?"block":"none"},children:[e(f,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"购物车"})]}),e(N,{className:"goods-detail-btn-group",children:b?e(N,{className:"btn addCart offShelf",children:e(C,{className:"btn",children:"已下架"})}):a(l,{children:["26"===S?null:e(N,{className:"btn addCart",onClick:v,style:{color:t,backgroundColor:i,borderTopLeftRadius:n,borderBottomLeftRadius:n},children:"加入购物车"}),e(N,{onClick:I,className:"btn buy",style:{color:c,backgroundColor:r,borderTopRightRadius:d,borderBottomRightRadius:d},children:"10"===x.goodsPro?"预售抢购":"立即购买"})]})})]})})),Ql=o=>{var{$_dataSource:s={},dispatchPageStore:t=T,skuCode:i,scene:n}=o,c=Ke(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=K(i,n),p=ie(r,m),{popupVisible:h}=s;return a(l,{children:[e(Kl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(Ul,{dispatchPageStore:t,popupVisible:h,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},ql=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}=$(b),{servicePopup:S}=qe(N),{addCardPopup:x,buyOpenPopup:k}=ee(p);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?"预售抢购":"立即购买"})]})]})})),$l=o=>{var{popupVisible:s=!1,dispatchPageStore:t=T,skuCode:i,scene:n}=o,c=Ke(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=K(i,n),p=ie(r,m);return a(l,{children:[e(ql,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(Ul,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Zl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Xl=({setParams:l,activeColor:o})=>{const{View:s}=h(),[i,n]=t(0),[c,r]=t(Zl);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(Ee,{style:{color:i===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Ee,{style:{color:i===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Jl=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:S,ScrollView:x,IconMobile:k}=h(),[v,I]=t({}),{loading:B,getData:A,list:V}=ne(l,o,v),L=n((()=>f("textBox",{btm:!c&&!r})),[c,r]),T=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:!(T.includes("boxNone")&&D.includes("boxNone")&&P.includes("boxNone"))})),[T,D,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(Xl,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Sa,{id:"listWrap",children:a(x,{onScroll:()=>A(v),children:[e(b,{className:"list",style:{gap:g},children:V.map((l=>a(b,{onClick:()=>je(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(S,{src:l.dataPic,className:"img"}),a(b,{className:R,children:[e(w,{className:T,children:l.goodsName}),a(b,{className:D,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:L,children:[e(w,{className:"price",style:{display:c?"block":"none"},children:Ze(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:Ze(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]})})})]})})),_l=({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}=ce(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?"完成":"编辑"})})},eo=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})})]})})),ao=({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(Sa,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(eo,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},lo=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:Ze(c)}),0===s&&e(p,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),oo=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})})]})})),so=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"}})})})),to=({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(ao,{promotionCode:c,onChange:e=>{m(!1),s(i,de(e))},promotion:o||[],visible:d,setVisible:m})})]})},io=s((l=>{var{item:o}=l,s=Ke(l,["item"]);const{View:t}=h(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(so,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(oo,{dataState:o.dataState,dataPic:o.dataPic,skuCode:o.skuCode}),e(lo,Object.assign({},o,s))]})})),no=o=>{var{shoppingGoodsList:s=[]}=o,t=Ke(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(p,{children:[e(io,Object.assign({},t,{item:l})),l.pmPromotionList?e(to,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},co=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=h(),i=n((()=>L(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>je(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]})},ro=({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(co,{link:t,disNextMsg:l})]})},mo=({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}=re(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((({memberCname: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(ro,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(no,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(qa,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},po=({$_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}=me(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(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:Ze(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:Ze(w.amount)})]})]}),a(r,{onClick:C,className:"btn",style:S,children:["结算(",w.num,")"]})]})]})},ho=({address:a})=>e(l,{children:L(a)?e(go,{}):e(uo,{address:a})}),uo=({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"}})]})},go=()=>{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"})]})},No=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=h(),i=pe(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(ho,{address:i})})},fo=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:[Re(l).format("YYYY-MM-DD")," - ",Re(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Co=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{View:n,Text:c,Popup:r,SmoothRadio:d,ScrollView:p,Radio:u,Button:g}=h(),{shoppingGoodsList:N}=he({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:f,visible:C,setVisible:b,selectCoupon:y,onChange:w,onCreditChange:S,payMode:x,onPayChange:k,payList:v,payName:I,creditList:B,creditInfo:A,selectCredit:V,creditVisible:L,payVisible:T,setPayVisible:D,setCreditVisible:P}=ue(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:Nl,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:Nl,alt:"",className:"icon"})]})]}),A.urechargeId&&"0"===x&&a(n,{className:"coupon-select",onClick:()=>P(0!==B.length),children:[e(c,{className:"label",children:"使用授信"}),a(n,{className:"info",children:[e(c,{className:"label",children:V?0===+V?"不使用":`已选择: ${V}%`:"请选择授信"}),0===f.length?null:e("img",{src:Nl,alt:"",className:"icon"})]})]}),e(r,{popupVisible:T,popupHandler:D,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(Sa,{children:e(p,{children:e(d,{value:"0",onChange:k,children:v.map(((l,o)=>a(n,{style:{marginBottom:5},children:[e(u,{value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(r,{popupVisible:L,popupHandler:P,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(Sa,{children:e(p,{children:e(d,{value:"10",onChange:S,children:B.map(((l,o)=>a(n,{style:{marginBottom:5},children:[typeof l.flagSettingInfo,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(Sa,{children:e(p,{children:e(d,{onChange:w,children:f.map(((e,a)=>m(fo,Object.assign({},e,{key:a}))))},"visible")})})})})]})},bo=({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:"快递"})]})})},yo=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s})=>{const{View:t}=h(),{list:i}=he({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s});return e(t,{className:"place-order-goods",children:i.map(((a,l)=>e(Pa,Object.assign({},a),l)))})},wo=({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{SmoothView:i,View:n}=h(),{payState:c,disCount:r,creditMoney:d,freight:m,payPrice:p,rebMoney:u}=he({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t}),{shoppingCountPrice:g,comDisMoney:N}=ge(c);return e(n,{style:{paddingBottom:80},children:a(n,{className:"price placeOrder-blcWrap",children:[e(n,{className:"title",children:"价格明细"}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"商品总金额"}),e(i,{className:"value",children:Ze(g)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"授信付款:"}),e(i,{className:"value",children:Ze(-d)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"返利金额"}),e(i,{className:"value",children:Ze(-u.current)})]}),a(n,{className:"coupon placeOrder-blcItem",children:[e(n,{className:"label",children:"优惠金额"}),e(i,{className:"value",children:Ze(N+r)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"运费"}),e(i,{className:"value",children:Ze(m)})]}),a(n,{className:"all placeOrder-blcItem",children:[e(n,{className:"label",children:"总计"}),e(i,{className:"value",style:{color:"#000"},children:Ze(Math.max(p-d,0))})]})]})})},So=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r})=>{const{View:d,Text:m,WrapLoading:p}=h(),{payPrice:u,list:g,payState:N,creditMoney:f,ocContractSettlList:C}=he({refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r}),{savePayPrice:b,loading:y}=Ne({ocContractSettlList:C,payState:N,list:g},c,n,r);return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",Ze(Math.max(u-f,0))]}),e(p,{loading:y,children:e(d,{className:"btn",onClick:b,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},xo=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:S,contract:x,handleRadio:k,loading:v}=fe({contractBillcode:l,contractBbillcode:o});return i((()=>{console.log("打印下当前的channelList",S)}),[]),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:["订单号:",x.current.contractBillcode," | 总金额:",Ze(x.current.contMoney+(x.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",Ze(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:["支付金额:",Ze(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:"立即支付"})})})]})})),ko=({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:Ze(l.dataBmoney)})]})]})},vo=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:S}=h(),{result:x,loading:k}=Ce(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(ko,{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 ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>y(r.value),className:"btn white",children:c})]})]})})})})),{Button:Io}=g,Bo=a=>{var{dataState:o}=a,s=Ke(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(Ao,Object.assign({dataState:o},s))})},Ao=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,c=Ke(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}=be(Object.assign({dataState:l},c));return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(Io,{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:Vo}=g,Lo=({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(Je(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 To({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=ye(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(Vo,{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(Pa,Object.assign({},a,{dataState:i,children:1===i&&e(Lo,{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:["合计 ",Ze(o)]})]}),e(Bo,{init:c,contractId:n,contractBillcode:l,dataState:i,contractAppraise:r})]})}const Do=()=>{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 Po=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}=we(l,o);return e(i,{className:"orderListItemWrap",children:e(Sa,{id:"orderListItemWrap",children:e(n,{onScroll:r,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(To,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(Do,{}),e(i,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})})})),Ro=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(Po,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Mo}=g,zo=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>C()),[]);return e(Mo,{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?"已复制":"复制"})})),Oo=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m})=>{const{View:p,Text:u}=h(),{orderDetail:g,handleApplyBtn:N}=xe(o||""),f=e=>Re(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:["待收货"===ye(g.dataState)?e(Ee,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:ye(g.dataState)})]}),e(p,{className:"subTitleWrap",children:f(g.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(Ee,{value:"dizhi"})}),a(p,{className:"mPart",children:[a(p,{className:"personInfo",children:[e(u,{className:"personName",children:g.goodsReceiptMem}),e(u,{className:"personPhone",children:g.goodsReceiptPhone})]}),e(p,{className:"address",children:g.goodsReceiptArrdess})]}),e(p,{className:"rPart"})]}),a(p,{className:"orderDetailGoodsWrap",children:[g.goodsList.map((o=>a(l,{children:[e(Pa,Object.assign({},o),o.contractGoodsId),Number(g.dataState)>1&&Number(g.dataState)<5?e(p,{className:"orderBtn",onClick:N.bind(null,o,g.dataState),children:"申请退款"}):""]}))),a(p,{className:"priceInfo",children:[a(p,{className:"priceInfoFloor top",children:[a(p,{className:"totalNum",children:["共",g.goodsNum,"件商品"]}),a(p,{className:"totalPrice",children:["合计 ",parseFloat((g.dataBmoney-g.refundMoney).toFixed(2))]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"商品总额"}),a(p,{className:"totalPrice",children:["¥",g.contractInmoney]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"运费"}),a(p,{className:"totalPrice",children:["¥",g.goodsLogmoney]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"优惠"}),a(p,{className:"totalPrice",children:["¥",g.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,{className:"label",children:"订单信息"})}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"订单编号"}),a(p,{className:"context_copy",children:[e(p,{className:"name",children:g.contractBillcode}),e(zo,{copyContent:g.contractBillcode})]})]}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"下单时间"}),e(p,{className:"name",children:f(g.gmtCreate)})]})]}),e(p,{className:"btnGroupFooter",children:e(Bo,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:g.contractBillcode,contractId:g.contractId,dataState:g.dataState})})]})})]})})),Fo=({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]})]})]})},jo=({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})})},Wo=s((({code:l,defaultValue:o})=>{const{View:s}=h(),{info:t,detail:i,stateObj:n}=ke(l);return a(s,{className:"expressInfo",children:[e(Fo,{info:t,detail:i,stateObj:n,defaultValue:o}),e(jo,{detail:i,defaultValue:o})]})})),Go=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}=qe(),[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"}})]})]})})),Eo=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:c,Image:r}=h(),[d,m]=t({});i((()=>{Qe(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}):y("afterSalesList")};return console.log(33,o),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)))})]})})),Ho=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:l.imgUrl,className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),Yo=({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)))})]})},Uo=[{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"}]}],Ko=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:Uo.map(((a,l)=>e(Yo,{itemData:a},l)))})]})})),Qo=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}=ve(l),{Button:C}=g,{View:b,Image:y,TextArea:w,Textarea:S}=h(),x=w||S,k=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: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(Rl,{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:"提交"})]})})),qo=({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," 元"]})]})]})]})},$o=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ie(),{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(Sa,{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(qo,{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]})})]})})})),Zo=({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:l.footprintOppic,className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Xo=({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(Zo,{footprintItem:a,edit:s},l)))]})},Jo=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Re(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(Xo,{item:a,edit:o},l)))})},_o=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}=Be();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(Sa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(s,{onChange:d,children:e(Jo,{footprintList:n,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),es=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],as=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=h();return e(s,{className:"promotionListTab",children:es.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),ls=({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:[Re(n).format("YYYY-MM-DD")," ~ ",Re(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},os=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(es[0].val),{list:c,getData:r}=Ae({params:i}),{View:d,ScrollView:m}=h();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(as,{activeColor:l,setParams:n,params:i}),e(d,{children:e(Sa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(ls,{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 ss=()=>{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"})})},ts=({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(ss,{})})},is=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(Sa,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(ts,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:p})})})})]})})),ns=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=Re(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Re(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)}))})})),cs=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=Re(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Re(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)}))})})),rs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=Ke(l,["type","coupons"]);const{View:i}=h();return a(i,{className:"getCouponOne",children:[1===o?e(ns,Object.assign({coupons:s},t)):null,2===o?e(cs,Object.assign({coupons:s},t)):null]})})),ds=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=Te(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},ms=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=h(),{info:r}=De(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})]})})),ps=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Pe(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(Sa,{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{_a as AddressDetail,$a as AddressList,Za as AddressListBtn,Ia as AfterSalesApply,Fa as AfterSalesDetail,Da as AfterSalesList,Ya as AfterSalesType,os as AllPromotionList,ps as ArticleDetail,fa as BackTop,mo as CartList,po as CartOperate,_l as CartTop,da as ClassifyNav,ha as ClassifyNavOne,pa as ClassifyNavOneJsx,Na as ClassifyNavThree,ua as ClassifyNavTwo,$o as CollectionList,is as CouponList,ba as Cube,Qo as EvaluateDetail,Ko as EvaluateList,Wo as ExpressInfo,_o as FootPrint,rs as GetCouponOne,yl as Goods,tl as GoodsClassify,dl as GoodsClassifyOne,ul as GoodsClassifyTwo,jl as GoodsDetailAndEvaluate,xl as GoodsDetailBanner,Pl as GoodsDetailCoupon,Ql as GoodsDetailHandleBar,$l as GoodsDetailHandleBarOne,vl as GoodsDetailInfo,Bl as GoodsDetailInfoOne,Ll as GoodsDetailPromotion,Vl as GoodsDetailSku,Jl as GoodsList,wl as GoodsSlider,Sl as GoodsSlideshow,Ue as Line,Go as MineData,Ho as MineFunction,Eo as MineOrderEntry,el as MyAgreementList,ll as MySetting,al as MySettingJsx,ds as Notice,ms as NoticeDetail,Oo as OrderDetail,Ro as OrderList,xo as PaymentMode,No as PlaceOrderAddress,Co as PlaceOrderCoupon,bo as PlaceOrderDelivery,yo as PlaceOrderGood,wo as PlaceOrderInfo,So as PlaceOrderOperate,vo as PlaceOrderResult,Ee as QjMobileIcon,fl as Search,bl as SearchPage,Cl as SearchStyleTwo,Ge as Service,na as Slider,Ye as TextLine,He as Title,_e as ToPrice,ca as Video,$e as addressIdConst,Ze as fixPrice,Xe as fixPrice1,Je as formatTime,qe 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 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 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 V,isEmpty as L,noop as T,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,useBanner as Q,useGoodCollection as q,useGoodSpecAndPrice as $,useGoodFootprint as Z,useCreatePoster as X,useGoodsShare as J,useGoodSkuStore as _,popupImplement as ee,usePromotion as ae,useAddCoupon as le,useCoupon as oe,useEvaluate as se,useAddShopping as te,useGoodSku as ie,useGoodsList as ne,useCartTop as ce,useCartListNext as re,getRadioValue as de,useCartOperate as me,useOrderAddress as pe,useOrderGood as he,useOrderCoupon as ue,useOrderInfo as ge,useOrderPay as Ne,useOrderResult as fe,useOrderResultResult as Ce,useOrderOperate as be,orderStatusImpl as ye,useOrderList as we,orderStatusList as xe,useOrderDetail as Se,useExpressInfo as ke,useEvaluateDetail as ve,useCollectionList as Ie,useFootprint as Be,useMarketingPromotion as Ae,useCouponList as Ve,useAllCoupon as Le,useNotice as Te,useNoticeDetail as De,useArticleDetail as Pe}from"qj-b2c-store";import Re from"dayjs";import{checkMobile as Me,ProvinceComponent as ze,CityComponent as Oe,AreaComponent as Fe,navigatorLink as je}from"@brushes/shared-utils";import{DynamicForm as We}from"@brushes/mobile-form";const Ee=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"})})),Ge=({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})},He=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})})})),Ye=({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})]})},Ue=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 Ke(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 Qe(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 qe=(e="b2c")=>{const[a,l]=t([]),o=n((()=>C()),[]);i((()=>{Qe(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>Qe(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})}}},$e={label:""},Ze=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Xe=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",Je=(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}`},_e=e=>1===String(e).indexOf(".")?ea(e):aa(e),ea=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)},aa=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"},la=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const oa=e=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?la+e:e?la+"/paas/shop/"+e:e),[e]),sa=({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})},ta=s((({item:a,isPlay:o,position:s,direction:t})=>{var i,n;const{Image:c,View:r}=h(),d=oa(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(sa,{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)})})})),ia=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:k="#ffffff"})=>{const v=n((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=h(),A=P(i,b||[]),V=a=>e(B,{className:t,style:{fontSize:w,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:S,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:p,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(l,{children:["top"===o||"bottom"===o?V(s):null,e(ta,{isPlay:t===i,item:s,position:o,direction:m})]})})})})),na=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:k=!1,Position:v="top"})=>{const{View:I}=h(),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},...S)),[S,v]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(ia,{Position:v,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":k}),className1:B})})})),ca=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}})})})),ra=({src:a,borderRadius:l})=>{const{Image:o}=h(),s=oa(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},da=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(ra,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),ma=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=h(),t=oa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},pa=({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(ma,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},l)))})},ha=s(pa),ua=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)))})})),ga=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=h(),m=oa(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})})})},Na=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(ga,{layout:u,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:p},l)))})})),fa=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(Ge,{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"})})})),Ca=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=h(),i=oa(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)}})},ba=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(Ca,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),ya=o.createContext(null),wa=s((()=>{const{View:a}=h(),{tip:l}=r(ya);return e(a,{className:"afterSalesApplyTip",children:l})}));const xa=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=Ke(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}))},Sa=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(ya);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(xa,{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)))})]})})})})})})),ka=s((()=>{const{View:l}=h(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=r(ya);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(Ge,{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:Ze(i)})})]}),e(Sa,{popupShow:s})]})})),va=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(ya);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:p}),a(l,{className:"imgGroup",children:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(Ge,{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(Ge,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Ia=({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:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:V}=M({contractBillcode:o,skuCode:s});return e(p,{loading:V,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(ya.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:w,imgGroup:x,placeholder:S,handleDelImg:k,limit:v,goodsNum:t,goodsPrice:i,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(wa,{}),e(ka,{}),e(va,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},Ba={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Aa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Va=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(Ge,{style:{color:null===(s=Ba[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ba[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:Ba[l.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src: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:Aa[l.refundType][l.dataState]}),e(Ge,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),La=s((()=>{const{View:a}=h();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ta=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(xa,{id:"tabContent",children:e(s,{children:r?i.map((a=>e(Va,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(La,{})})})})})})),Da=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(Ta,{item:l,refreshNum:a})})})})),Pa=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r})=>{const{View:d,Image:m,SmoothView:p}=h(),u=Ze(i),g=n((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(d,{className:"card-item",children:[e(m,{src:o,alt:"",className:"card-item-img"}),a(d,{className:"card-item-info",children:[a(d,{className:"card-item-info-container",children:[e(p,{className:"card-item-info-container-title",children:s}),e(p,{className:"card-item-info-container-price",children:u})]}),a(d,{className:"card-item-info-sub",children:[e(p,{className:"sku",children:c}),e(p,{className:"count",children:g})]}),r]})]})})},Ra=(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]}},Ma=o.createContext(null),za=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Ma),{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(xa,{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)))})]})})})})})),Oa=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Ma),{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:"#000"},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(za,{})]})})),Fa=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:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:V,packageCode:L,packageBillno:T}=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(Ma.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:Ra(v,b)}),e(D,{className:"right_time",children:Re(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(Pa,{dataPic: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: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:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(D,{className:"refund_Detail",children:[e(D,{className:"left",children:"申请时间"}),e(D,{className:"right",children:Re(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:V})]}):"",1===b?a(D,{className:"writeMsg",children:[e(D,{className:"wlMsg",children:"物流信息"}),e(Oa,{})]}):"",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:T})]}),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:L})]})]}):""]}):""})]})}),0===b?e(D,{className:"footerBtn",children:e(D,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),ja=o.createContext(null),Wa=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=h(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:p}=r(ja),{goodsName:u,skuName:g,dataPic:N}=m;return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:N,className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:Ze(p)})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(Ge,{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]})]})]})})),Ea={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"}]},Ga=(e=2)=>Ea[e],Ha=s((({afterSalesType:l=2,contractBillcode:o,skuCode:s})=>{const{View:t}=h(),{goApply:i,goodsNum:n}=r(ja);return e(t,{children:a(t,{className:"afterSalesTypeType",children:[e(t,{className:"title",children:"售后类型"}),Ga(+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(Ge,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},c)))]})})})),Ya=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(ja.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:p,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(Wa,{}),e(Ha,{afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},Ua=({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:"设为默认地址"})})},Ka=({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(Ua,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{className:"del",onClick:o,children:"删除"})]})]})},Qa=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)))})})})})),qa=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]})})})),$a=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(Qa,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(Ka,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(qa,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),Za=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:"+ 新增地址"})})})),Xa=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],Ja=[{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:Me}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:ze}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Oe}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Fe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",label:"设置默认地址",name:"addressDefault",extraProps:{color:"#000"}}],_a=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(We,{footer:e(c,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:Xa,onSubmit:r,fields:Ja})})})),el=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)))})})})),al=()=>{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(Ge,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},ll=s(al),ol=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:sl}=g,tl=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(xa,{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(sl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(sl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(n,{className:"main",children:e(ol,{navList:m,activeKey:r,cell:l})})]})})})})})),il=d(null),nl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(il),{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(xa,{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]})})),cl=s((({thirdList:l})=>{const{View:o,Image:s}=h(),{picShadow:t,layout:i}=r(il);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)))})})),rl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(il),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(xa,{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(cl,{thirdList:u})]})})})})})),dl=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(il.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(nl,{}),e(rl,{})]})})})),ml=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)))})})),pl=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(ml,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:hl}=g,ul=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(xa,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(c,{className:"side",children:e(hl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(hl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(pl,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),gl="data:image/png;base64,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",Nl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",fl=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:gl,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})]})})})),Cl=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:gl,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:"搜索"})]})})})),bl=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:gl,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:e=>Qe(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(Ge,{onClick:()=>Qe(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]})})),yl=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:k=!0,goodsBorder:I=!0,goodsShadow:B=!1,marginGap:T=10})=>{const[D,P]=t(l),R=c(),{View:M,Text:z}=h();return i((()=>{V(R.current,u)||(R.current=u,L(u)?P(l):Qe(void 0,void 0,void 0,(function*(){try{const e=yield v({[p]:u.toString(),distinctField:"goodsNo"}),a=A(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:C},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft: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(${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?Ze(l.pricesetNprice):"",1===g&&e(z,{className:"markedPrice",children:Ze(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:k?"block":"none"},children:e(Ge,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),wl=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(${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:Ze(l.pricesetNprice)}):null,t?e(w,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null]}),i?e(w,{className:"rPart",children:e(Ge,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),xl=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:k,View:v,Image:I}=h(),[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: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(v,{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: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:Ze(l.pricesetNprice)}):null,i?e(v,{className:"marketPrice",children:Ze(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:f,color:b,borderRadius:w},children:N})]})})]})})),Sl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[]}=K(o,s),i=Q(t);return e(ia,{selectImg:i,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},kl=l=>{const{SmoothView:o,View:s}=h(),{handleCollect:t,collection:i}=q(l);return a(s,{onClick:t,children:[L(i.dataObj)?e(Ge,{value:"star-fill",style:{fontSize:20}}):e(Ge,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:L(i.dataObj)?"收藏":"已收藏"})]})},vl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n,Button:c}=h(),{rsSkuDomainList:r}=K(l,t),{goodInfo:d}=$(r);Z(l);const{init:m,canvasRef:p}=X();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:Ze(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(kl,{goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:l})})]})},Il=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=h(),{handleCollect:i,collection:n}=q(l),{handleShare:c}=J();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:L(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Bl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=h(),{rsSkuDomainList:r}=K(t,i),{goodInfo:d}=$(r);return _((e=>e.spec)),Z(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:Ze(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Il,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:t})]})})),Al=s((()=>{const{Text:e}=h(),l=_((e=>e.count)),o=_((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Vl=({dispatchPageStore:o})=>{const{View:s,Text:t}=h(),{openPopup:i}=ee(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"规格"}),a(s,{className:"info",children:[e(Al,{}),e("img",{src:Nl,alt:"",className:"icon"})]})]})})},Ll=({skuCode:l,scene:o})=>{const{View:s,Text:t}=h(),{rsSkuDomainList:i}=K(l,o),{goodInfo:n}=$(i),c=ae(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:"暂无促销活动"})})]})},Tl=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}=le(),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:[Re(l).format("YYYY-MM-DD")," - ",Re(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:"已领完"})]})})})),Dl=()=>{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"})})},Pl=o=>{var{skuCode:s,scene:t}=o;Ke(o,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=h(),{rsSkuDomainList:d}=K(s,t),{goodInfo:p}=$(d),{coupon:u,visible:g,setVisible:N}=oe(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:Nl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(xa,{children:u.length>0?u.map(((e,a)=>m(Tl,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Dl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Rl=({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(Ge,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Ml=({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(Rl,{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})]})},zl=({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(Ml,{item:a},l)))]}):e(qa,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Ol=({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||""}})})},Fl=({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)))})},jl=({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=se(p);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(Fl,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(Ol,{goodsRemark:m}):e(zl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Wl=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:c}=h(),r=_((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)))})]})},El=s((({handleStep:l})=>{const{View:o,NumStep:s}=h(),t=_((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),Gl=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=h(),{skuList:r}=o;return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:i.dataPic,alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:Ze(i.pricesetNprice)}),a(c,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),r.map(((a,l)=>e(Wl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},Hl=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=h(),c=_((e=>e.isNeedButton)),r=_((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:"立即购买"})]})})},Yl=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=h(),{spec:c,goodInfo:r}=$(t),{handleChooseSize:d,handleStep:m,addCardImpl:p,cashImpl:u,addShoppingImpl:g}=te(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(xa,{children:e(n,{children:a(i,{className:"content",children:[e(Gl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(El,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(Hl,{cashImpl:u,addShoppingImpl:g,addCardImpl:p})]})})),Ul=({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(Yl,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},Kl=s((({serverShow:o,cartShow:s,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:c,rPartBgColor:r,rPartStyle:d,dispatchPageStore:m,skuCode:p,platform:u,scene:g})=>{const{View:N,IconMobile:f,Text:C}=h(),b=_((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:x}=K(p,g),{goodInfo:S}=$(w),{servicePopup:k}=qe(u),{addCardPopup:v,buyOpenPopup:I}=ee(m);return a(N,{className:"goodsDetailHandleBar",children:[a(N,{className:"linkGroup server",onClick:k,style:{display:o?"block":"none"},children:[e(f,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"客服"})]}),a(N,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:s?"block":"none"},children:[e(f,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(N,{className:"txt",children:"购物车"})]}),e(N,{className:"goods-detail-btn-group",children:b?e(N,{className:"btn addCart offShelf",children:e(C,{className:"btn",children:"已下架"})}):a(l,{children:["26"===x?null:e(N,{className:"btn addCart",onClick:v,style:{color:t,backgroundColor:i,borderTopLeftRadius:n,borderBottomLeftRadius:n},children:"加入购物车"}),e(N,{onClick:I,className:"btn buy",style:{color:c,backgroundColor:r,borderTopRightRadius:d,borderBottomRightRadius:d},children:"10"===S.goodsPro?"预售抢购":"立即购买"})]})})]})})),Ql=o=>{var{$_dataSource:s={},dispatchPageStore:t=T,skuCode:i,scene:n}=o,c=Ke(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=K(i,n),p=ie(r,m),{popupVisible:h}=s;return a(l,{children:[e(Kl,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(Ul,{dispatchPageStore:t,popupVisible:h,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},ql=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}=$(b),{servicePopup:x}=qe(N),{addCardPopup:S,buyOpenPopup:k}=ee(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:k,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===w.goodsPro?"预售抢购":"立即购买"})]})]})})),$l=o=>{var{popupVisible:s=!1,dispatchPageStore:t=T,skuCode:i,scene:n}=o,c=Ke(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=K(i,n),p=ie(r,m);return a(l,{children:[e(ql,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(Ul,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:p})]})},Zl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Xl=({setParams:l,activeColor:o})=>{const{View:s}=h(),[i,n]=t(0),[c,r]=t(Zl);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(Ge,{style:{color:i===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Ge,{style:{color:i===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Jl=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:k}=h(),[v,I]=t({}),{loading:B,getData:A,list:V}=ne(l,o,v),L=n((()=>f("textBox",{btm:!c&&!r})),[c,r]),T=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:!(T.includes("boxNone")&&D.includes("boxNone")&&P.includes("boxNone"))})),[T,D,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(Xl,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(xa,{id:"listWrap",children:a(S,{onScroll:()=>A(v),children:[e(b,{className:"list",style:{gap:g},children:V.map((l=>a(b,{onClick:()=>je(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:l.dataPic,className:"img"}),a(b,{className:R,children:[e(w,{className:T,children:l.goodsName}),a(b,{className:D,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:L,children:[e(w,{className:"price",style:{display:c?"block":"none"},children:Ze(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:Ze(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]})})})]})})),_l=({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}=ce(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?"完成":"编辑"})})},eo=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})})]})})),ao=({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(xa,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(eo,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},lo=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:Ze(c)}),0===s&&e(p,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),oo=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})})]})})),so=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"}})})})),to=({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(ao,{promotionCode:c,onChange:e=>{m(!1),s(i,de(e))},promotion:o||[],visible:d,setVisible:m})})]})},io=s((l=>{var{item:o}=l,s=Ke(l,["item"]);const{View:t}=h(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(so,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(oo,{dataState:o.dataState,dataPic:o.dataPic,skuCode:o.skuCode}),e(lo,Object.assign({},o,s))]})})),no=o=>{var{shoppingGoodsList:s=[]}=o,t=Ke(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(p,{children:[e(io,Object.assign({},t,{item:l})),l.pmPromotionList?e(to,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},co=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=h(),i=n((()=>L(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>je(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]})},ro=({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(co,{link:t,disNextMsg:l})]})},mo=({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}=re(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((({memberCname: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(ro,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(no,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:n})]})]},h)))}):e(qa,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},po=({$_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}=me(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:Ze(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:Ze(w.amount)})]})]}),a(r,{onClick:C,className:"btn",style:x,children:["结算(",w.num,")"]})]})]})},ho=({address:a})=>e(l,{children:L(a)?e(go,{}):e(uo,{address:a})}),uo=({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"}})]})},go=()=>{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"})]})},No=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=h(),i=pe(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(ho,{address:i})})},fo=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:[Re(l).format("YYYY-MM-DD")," - ",Re(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Co=({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}=he({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:f,visible:C,setVisible:b,selectCoupon:y,onChange:w,onCreditChange:x,contractPmode:S,onPayChange:k,payList:v,payName:I,creditList:B,creditInfo:A,selectCredit:V,creditVisible:L,payVisible:T,setPayVisible:D,handleChooseImg:P,contractEcurl:R,setCreditVisible:M}=ue(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:Nl,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:Nl,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:V?0===+V?"不使用":`已选择: ${V}%`:"请选择授信"}),0===f.length?null:e("img",{src:Nl,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:T,popupHandler:D,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(xa,{children:e(p,{children:e(d,{value:"0",onChange:k,children:v.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:L,popupHandler:M,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(xa,{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(xa,{children:e(p,{children:e(d,{onChange:w,children:f.map(((e,a)=>m(fo,Object.assign({},e,{key:a}))))},"visible")})})})})]})},bo=({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:"快递"})]})})},yo=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s})=>{const{View:t}=h(),{list:i}=he({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:s});return e(t,{className:"place-order-goods",children:i.map(((a,l)=>e(Pa,Object.assign({},a),l)))})},wo=({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{SmoothView:i,View:n}=h(),{payState:c,disCount:r,creditMoney:d,freight:m,payPrice:p,rebMoney:u}=he({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t}),{shoppingCountPrice:g,comDisMoney:N}=ge(c);return e(n,{style:{paddingBottom:80},children:a(n,{className:"price placeOrder-blcWrap",children:[e(n,{className:"title",children:"价格明细"}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"商品总金额"}),e(i,{className:"value",children:Ze(g)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"授信付款:"}),e(i,{className:"value",children:Ze(-d)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"返利金额"}),e(i,{className:"value",children:Ze(-u.current)})]}),a(n,{className:"coupon placeOrder-blcItem",children:[e(n,{className:"label",children:"优惠金额"}),e(i,{className:"value",children:Ze(N+r)})]}),a(n,{className:"express placeOrder-blcItem",children:[e(n,{className:"label",children:"运费"}),e(i,{className:"value",children:Ze(m)})]}),a(n,{className:"all placeOrder-blcItem",children:[e(n,{className:"label",children:"总计"}),e(i,{className:"value",style:{color:"#000"},children:Ze(Math.max(p-d,0))})]})]})})},xo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r})=>{const{View:d,Text:m,WrapLoading:p}=h(),{payPrice:u,list:g,payState:N,creditMoney:f,ocContractSettlList:C}=he({refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r}),{savePayPrice:b,loading:y}=Ne({ocContractSettlList:C,payState:N,list:g},r,Math.max(u-f,0));return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",Ze(Math.max(u-f,0))]}),e(p,{loading:y,children:e(d,{className:"btn",onClick:b,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},So=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:k,loading:v}=fe({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," | 总金额:",Ze(S.current.contMoney+(S.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",Ze(S.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(y,{onChange:k,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:["支付金额:",Ze(S.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:"立即支付"})})})]})})),ko=({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:Ze(l.dataBmoney)})]})]})},vo=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:k}=Ce(l||(w("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(x,{loading:k,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(ko,{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:Io}=g,Bo=a=>{var{dataState:o}=a,s=Ke(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(Ao,Object.assign({dataState:o},s))})},Ao=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,c=Ke(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}=be(Object.assign({dataState:l},c));return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(Io,{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:Vo}=g,Lo=({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(Je(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 To({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=ye(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(Vo,{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(Pa,Object.assign({},a,{dataState:i,children:1===i&&e(Lo,{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:["合计 ",Ze(o)]})]}),e(Bo,{init:c,contractId:n,contractBillcode:l,dataState:i,contractAppraise:r})]})}const Do=()=>{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 Po=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}=we(l,o);return e(i,{className:"orderListItemWrap",children:e(xa,{id:"orderListItemWrap",children:e(n,{onScroll:r,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(To,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(Do,{}),e(i,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})})})),Ro=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:xe,render:l=>e(t,{className:"orderList",children:e(Po,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Mo}=g,zo=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>C()),[]);return e(Mo,{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?"已复制":"复制"})})),Oo=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m})=>{const{View:p,Text:u}=h(),{orderDetail:g,handleApplyBtn:N}=Se(o||""),f=e=>Re(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:["待收货"===ye(g.dataState)?e(Ge,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:ye(g.dataState)})]}),e(p,{className:"subTitleWrap",children:f(g.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(Ge,{value:"dizhi"})}),a(p,{className:"mPart",children:[a(p,{className:"personInfo",children:[e(u,{className:"personName",children:g.goodsReceiptMem}),e(u,{className:"personPhone",children:g.goodsReceiptPhone})]}),e(p,{className:"address",children:g.goodsReceiptArrdess})]}),e(p,{className:"rPart"})]}),a(p,{className:"orderDetailGoodsWrap",children:[g.goodsList.map((o=>a(l,{children:[e(Pa,Object.assign({},o),o.contractGoodsId),Number(g.dataState)>1&&Number(g.dataState)<5?e(p,{className:"orderBtn",onClick:N.bind(null,o,g.dataState),children:"申请退款"}):""]}))),a(p,{className:"priceInfo",children:[a(p,{className:"priceInfoFloor top",children:[a(p,{className:"totalNum",children:["共",g.goodsNum,"件商品"]}),a(p,{className:"totalPrice",children:["合计 ",parseFloat((g.dataBmoney-g.refundMoney).toFixed(2))]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"商品总额"}),a(p,{className:"totalPrice",children:["¥",g.contractInmoney]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"运费"}),a(p,{className:"totalPrice",children:["¥",g.goodsLogmoney]})]}),a(p,{className:"priceInfoFloor",children:[e(p,{className:"totalNum",children:"优惠"}),a(p,{className:"totalPrice",children:["¥",g.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,{className:"label",children:"订单信息"})}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"订单编号"}),a(p,{className:"context_copy",children:[e(p,{className:"name",children:g.contractBillcode}),e(zo,{copyContent:g.contractBillcode})]})]}),a(p,{className:"orderInfoItem",children:[e(p,{className:"label",children:"下单时间"}),e(p,{className:"name",children:f(g.gmtCreate)})]})]}),e(p,{className:"btnGroupFooter",children:e(Bo,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:g.contractBillcode,contractId:g.contractId,dataState:g.dataState})})]})})]})})),Fo=({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]})]})]})},jo=({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})})},Wo=s((({code:l,defaultValue:o})=>{const{View:s}=h(),{info:t,detail:i,stateObj:n}=ke(l);return a(s,{className:"expressInfo",children:[e(Fo,{info:t,detail:i,stateObj:n,defaultValue:o}),e(jo,{detail:i,defaultValue:o})]})})),Eo=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}=qe(),[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"}})]})]})})),Go=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:c,Image:r}=h(),[d,m]=t({});i((()=>{Qe(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}):y("afterSalesList")};return console.log(33,o),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)))})]})})),Ho=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:l.imgUrl,className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),Yo=({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)))})]})},Uo=[{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"}]}],Ko=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:Uo.map(((a,l)=>e(Yo,{itemData:a},l)))})]})})),Qo=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}=ve(l),{Button:C}=g,{View:b,Image:y,TextArea:w,Textarea:x}=h(),S=w||x,k=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: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(Rl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(S,{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:"提交"})]})})),qo=({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," 元"]})]})]})]})},$o=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ie(),{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(xa,{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(qo,{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]})})]})})})),Zo=({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:l.footprintOppic,className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Xo=({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(Zo,{footprintItem:a,edit:s},l)))]})},Jo=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Re(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(Xo,{item:a,edit:o},l)))})},_o=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}=Be();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(xa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(s,{onChange:d,children:e(Jo,{footprintList:n,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),es=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],as=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=h();return e(s,{className:"promotionListTab",children:es.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),ls=({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:[Re(n).format("YYYY-MM-DD")," ~ ",Re(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},os=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(es[0].val),{list:c,getData:r}=Ae({params:i}),{View:d,ScrollView:m}=h();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(as,{activeColor:l,setParams:n,params:i}),e(d,{children:e(xa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(ls,{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 ss=()=>{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"})})},ts=({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(ss,{})})},is=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(xa,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(ts,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:p})})})})]})})),ns=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=Re(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Re(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)}))})})),cs=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=Re(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Re(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)}))})})),rs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=Ke(l,["type","coupons"]);const{View:i}=h();return a(i,{className:"getCouponOne",children:[1===o?e(ns,Object.assign({coupons:s},t)):null,2===o?e(cs,Object.assign({coupons:s},t)):null]})})),ds=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=Te(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},ms=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=h(),{info:r}=De(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})]})})),ps=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Pe(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(xa,{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{_a as AddressDetail,$a as AddressList,Za as AddressListBtn,Ia as AfterSalesApply,Fa as AfterSalesDetail,Da as AfterSalesList,Ya as AfterSalesType,os as AllPromotionList,ps as ArticleDetail,fa as BackTop,mo as CartList,po as CartOperate,_l as CartTop,da as ClassifyNav,ha as ClassifyNavOne,pa as ClassifyNavOneJsx,Na as ClassifyNavThree,ua as ClassifyNavTwo,$o as CollectionList,is as CouponList,ba as Cube,Qo as EvaluateDetail,Ko as EvaluateList,Wo as ExpressInfo,_o as FootPrint,rs as GetCouponOne,yl as Goods,tl as GoodsClassify,dl as GoodsClassifyOne,ul as GoodsClassifyTwo,jl as GoodsDetailAndEvaluate,Sl as GoodsDetailBanner,Pl as GoodsDetailCoupon,Ql as GoodsDetailHandleBar,$l as GoodsDetailHandleBarOne,vl as GoodsDetailInfo,Bl as GoodsDetailInfoOne,Ll as GoodsDetailPromotion,Vl as GoodsDetailSku,Jl as GoodsList,wl as GoodsSlider,xl as GoodsSlideshow,Ue as Line,Eo as MineData,Ho as MineFunction,Go as MineOrderEntry,el as MyAgreementList,ll as MySetting,al as MySettingJsx,ds as Notice,ms as NoticeDetail,Oo as OrderDetail,Ro as OrderList,So as PaymentMode,No as PlaceOrderAddress,Co as PlaceOrderCoupon,bo as PlaceOrderDelivery,yo as PlaceOrderGood,wo as PlaceOrderInfo,xo as PlaceOrderOperate,vo as PlaceOrderResult,Ge as QjMobileIcon,fl as Search,bl as SearchPage,Cl as SearchStyleTwo,Ee as Service,na as Slider,Ye as TextLine,He as Title,_e as ToPrice,ca as Video,$e as addressIdConst,Ze as fixPrice,Xe as fixPrice1,Je as formatTime,qe as useService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.8.7",
3
+ "version": "1.8.8",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [