s-material-react 1.9.998 → 2.0.0

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,2 +1,3 @@
1
1
  @import './GoodsDetailInfoOne';
2
2
  @import './GoodsDetailHandleBarOne';
3
+ @import './share';
@@ -0,0 +1,67 @@
1
+ .share {
2
+ background-color: rgba(#000, 0.5);
3
+ position: fixed;
4
+ top: 0;
5
+ left: 0;
6
+ right: 0;
7
+ bottom: 0;
8
+ z-index: 999;
9
+ display: flex;
10
+ align-items: center;
11
+ justify-content: center;
12
+
13
+ &.hide {
14
+ z-index: -1;
15
+ }
16
+ &.show {
17
+ z-index: 999;
18
+ }
19
+
20
+ .share-content {
21
+ background-color: #fff;
22
+ width: 300PX;
23
+ height: 570px;
24
+ .share-canvas {
25
+ height: 570px;
26
+ }
27
+
28
+ .dashboard {
29
+ height: 40px;
30
+ width: 100%;
31
+ background-color: #FFFFFF;
32
+ border-bottom-left-radius: 10PX;
33
+ border-bottom-right-radius: 10PX;
34
+ display: flex;
35
+ justify-content: space-between;
36
+
37
+ .dashboard-item {
38
+ flex: 1;
39
+ text-align: center;
40
+ height: 100%;
41
+
42
+ .icon {
43
+ width: 44PX;
44
+ height: 44PX;
45
+ display: block;
46
+ margin: 0 auto 4PX;
47
+ }
48
+
49
+ .txt {
50
+ display: inline-block;
51
+ font-size: 12px;
52
+ color: #394259;
53
+ background-color: transparent;
54
+ border: 0 none;
55
+
56
+ &:after {
57
+ border: 0 none;
58
+ }
59
+ }
60
+ }
61
+
62
+
63
+ }
64
+ }
65
+
66
+
67
+ }
@@ -7,6 +7,7 @@
7
7
  &.white {
8
8
  --background-color: #fff;
9
9
  --border-color: #000;
10
+ margin-left: 10px;
10
11
  }
11
12
 
12
13
  &.black {
@@ -3,6 +3,7 @@ interface Otype {
3
3
  contractId?: string | number;
4
4
  dataState: string | number;
5
5
  contractBillcode?: string;
6
+ contractType?: string;
6
7
  contractAppraise?: number;
7
8
  dataBmoney?: string | number;
8
9
  color?: string;
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 n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,Fragment as h}from"react";import{useComponent as p,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import f from"classnames";import{getTaro as C,navigatorHandler as b,getEnv as y,taroMessage as S,getStorage as x,setStorage as w}from"@brushes/utils";import{queryOcsconfigList as k,getAddress as v,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as T,isEmpty as D,isEqual as V,noop as L,groupBy as P}from"lodash-es";import{useCube as R,useGoTop as M,useAfterSalesApply as O,useAfterSalesList as z,afterSalesTabConfig as F,useAfterSalesDetail as Y,useAfterSalesChooseType as W,useAddressItem as j,useAddressList as G,useEditAddress as E,useMySetting as H,usePickupPointItem as U,usePickupPointList as K,useGoodsClassify as Q,useGoods as $,useGoodDetail as q,goodStore as Z,useBanner as X,useGoodCollection as J,useGoodSpecAndPrice as _,useGoodFootprint as ee,useCreatePoster as ae,useGoodsShare as le,useGoodSkuStore as oe,popupImplement as se,usePromotion as te,useAddCoupon as ne,useCoupon as ie,useEvaluate as ce,useAddShopping as re,useGoodSku as de,useGoodsList as me,useCartTop as he,useCartListNext as pe,getRadioValue as ue,useCartOperate as ge,useOrderAddress as Ne,useOrderPickupAddress as fe,userAddressData as Ce,useOrderGood as be,useOrderCoupon as ye,useOrderInfo as Se,useOrderPay as xe,useOrderResult as we,useOrderResultResult as ke,useOrderOperate as ve,orderStatusImpl as Ie,useOrderList as Be,orderStatusList as Ae,useOrderDetail as Te,useExpressInfo as De,useEvaluateDetail as Ve,useEvaluateViewDetail as Le,useCollectionList as Pe,useFootprint as Re,useMemberSignin as Me,useSigninDetail as Oe,useMarketingPromotion as ze,useCouponList as Fe,useAllCoupon as Ye,useNotice as We,useNoticeDetail as je,useArticleDetail as Ge}from"qj-b2c-store";import{fullPath as Ee,checkMobile as He,ProvinceComponent as Ue,CityComponent as Ke,AreaComponent as Qe,navigatorLink as $e}from"@brushes/shared-utils";import qe from"dayjs";import{DynamicForm as Ze}from"@brushes/mobile-form";import Xe from"@tarojs/taro";const Je=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),_e=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},ea=s((({value:l,shared:o,goPath:s,goPointsPath:t,textIndent:n,fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingTop:g,paddingLeft:N,paddingRight:f,paddingBottom:y})=>{const{View:S,IconMobile:x}=p(),w=()=>{console.log(107,window.location.href);const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(S,{className:"components-title",style:{paddingTop:g,paddingBottom:y},children:[e(S,{onClick:()=>{var e;e=l,s?b("goodList",{searchParam:e}):t&&b("PointsGoodsList",{searchParam:e})},style:{fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingLeft:N,paddingRight:f,textIndent:n},children:l}),o&&e(S,{onClick:e=>{e.stopPropagation(),w()},children:e(x,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),aa=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:i,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${n}px`,color:c},children:o})]})},la=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=p();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function oa(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 sa(e,a,l,o){return new(l||(l=Promise))((function(s,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(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(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ta=(e="b2c")=>{const[a,l]=t([]),o=i((()=>y()),[]);n((()=>{sa(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>sa(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield k();case"b2b":return yield A().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=T(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${T(o,"ocserviceConfRemark")}: ${T(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${T(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;C().showActionSheet({itemList:a})}}},na={label:""},ia=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",ca=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ra=(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}`},da=e=>1===String(e).indexOf(".")?ma(e):ha(e),ma=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)},ha=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"},pa=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const ua=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?pa+e:e?pa+"/paas/shop/"+e:e),[e]),ga=({src:a,style:l,actived:o})=>{const s=c(null);return n((()=>{o?s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current.controls=!0})):(s.current.pause(),s.current.currentTime=0,s.current.controls=!1)}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},Na=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=ua(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(ga,{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:b.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),fa=s((({Position:o="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:b,imgHeight:y,fontsize:S=16,textAlign:x="center",fontColor:w="#000000",backGroundColor:k="#ffffff"})=>{const v=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),A=R(n,b||[]),T=a=>e(B,{className:t,style:{fontSize:S,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:w,backgroundColor:k},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C},children:e(I,{imgHeight:y,data:A,className:v,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?T(s):null,e(Na,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),Ca=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:C=0,fontsize:b=16,textAlign:y="center",fontColor:S="#000000",backGroundColor:x="#ffffff",otherStyles:w=[],ImgShadow:k=!1,Position:v="top"})=>{const{View:I}=p(),B=i((()=>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},...w)),[w,v]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(fa,{Position:v,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:S,backGroundColor:x,className:f({"outer-shadow":k}),className1:B})})})),ba=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:n},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:i,paddingRight:c}})})})),ya=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=ua(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},Sa=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=R(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>{var e,a;return b(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(ya,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),xa=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=ua(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},wa=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=R(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,l;return b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(xa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},l)))})},ka=s(wa),va=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),C=R(a,l),y=i((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"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 b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:y,style:{fontSize:c,color:r},children:a.title})},l)))})})),Ia=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=p(),m=ua(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return b(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:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ba=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),C=R(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:C.map(((a,l)=>e(Ia,{layout:u,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Aa=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=i((()=>y()),[]),{View:n}=p(),{goTop:c}=M();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(_e,{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"})})})),Ta=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=ua(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>{var e,a;return b(null===(e=o.link)||void 0===e?void 0:e.value,null===(a=o.link)||void 0===a?void 0:a.params)}})},Da=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Ta,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Va=o.createContext(null),La=s((()=>{const{View:a}=p(),{tip:l}=r(Va);return e(a,{className:"afterSalesApplyTip",children:l})}));const Pa=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=oa(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>y()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!y()||!e)return;const a=C().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!y())return 0;const a=C(),l=+a.getStorageSync("safeArea"),o=+(a.getStorageSync("tabBarHeight")||0);return l+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{View:u}=p(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,C().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${C().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:o}))},Ra=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Va);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(Pa,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Ma=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(Va);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(_e,{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:ia(n)})})]}),e(Ra,{popupShow:s})]})})),Oa=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Va);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(_e,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(_e,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),za=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:T}=O({contractBillcode:o,skuCode:s});return e(h,{loading:T,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Va.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:k,limit:v,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(La,{}),e(Ma,{}),e(Oa,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,n),children:"确定"})]})})})},Fa={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Ya={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Wa=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(_e,{style:{color:null===(s=Fa[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Fa[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Fa[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Ee(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Ya[l.refundType][l.dataState]}),e(_e,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ga=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(Pa,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Wa,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ea=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:l=>e(Ga,{item:l,refreshNum:a})})})})),Ha=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ia(n),C=i((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:Ee(o),alt:"",className:"card-item-img"}),a(u,{className:"card-item-info",children:[a(u,{className:"card-item-info-container",children:[e(N,{className:"card-item-info-container-title",children:s}),e(N,{className:"card-item-info-container-price",children:f})]}),a(u,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:C})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ua=(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]}},Ka=o.createContext(null),Qa=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Ka),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(Pa,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),$a=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(Ka),{View:i,Input:c}=p();return a(l,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:o,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(Qa,{})]})})),qa=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:C}=Y({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:S,refundMoney:x,refundMeo:w,refundEx:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:T,packageCode:D,packageBillno:V,packageName:L}=c,{View:P,Image:R,WrapLoading:M}=p();return e(M,{loading:C,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(Ka.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Ua(v,b)}),e(P,{className:"right_time",children:qe(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(P,{className:"afterSalesDetailContent",children:a(P,{className:"refundDetail",children:[e(P,{className:"title",children:"退款信息"}),e(P,{className:"goodsDetail",children:null==S?void 0:S.map(((a,l)=>e(Ha,{dataPic:Ee(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款原因"}),e(P,{className:"right",children:k})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款金额"}),e(P,{className:"right",children:x})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"描述说明"}),e(P,{className:"right",children:w})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"补充凭证"}),e(P,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(R,{src:Ee(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:qe(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款编号"}),e(P,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[B,"  ",A]}),e(P,{className:"address",children:T})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e($a,{})]}):"",b>1?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流单号"}),e(P,{className:"code",children:V})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:L})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Za=o.createContext(null),Xa=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Za),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ia(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ee(N),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(_e,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Ja=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Za);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(_e,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),_a=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:C}=W({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=p();return e(y,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Za.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(Xa,{}),e(Ja,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},el=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},al=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=j(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(el,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>b("addressEditor",{addressId:l.addressId}),children:"编辑"}),e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},ll=s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),ol=s((({url:l,title:o,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>b(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),sl=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=G(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(ll,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(al,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),tl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>b("addressEditor"),children:"+ 新增地址"})})})),nl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],il=[{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:He}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Ue}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Ke}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Qe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],cl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({addressDefault:!1}),{Button:u}=g,{onSubmit:N}=E(r);if(n((()=>{sa(void 0,void 0,void 0,(function*(){if(r){let e=yield v({addressId:r});e.addressDefault="1"===e.addressDefault,h(e)}}))}),[]),!r||!D(m))return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(Ze,{initialValues:m,footer:e(u,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:nl,onSubmit:N,fields:il})})})),rl=s((()=>{const{View:l}=p(),o=e=>{b(`/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)))})})})),dl=()=>{const{View:l}=p(),{mySettingGoBind:o,mySettingLogout:s}=H();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(_e,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},ml=s(dl),hl=({itemData:l})=>{const{View:o,Text:s}=p(),{handlerImpl:t}=U(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},pl=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=p(),{list:c,loading:r,skullShow:d,onScroll:m}=K(l);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:o+"px"},children:d?e(ll,{}):e(t,{className:"addressList",children:e(Pa,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,l)=>e(hl,{itemData:a},a&&a.userinfoOcode||l))),r&&e(i,{})]}):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),ul=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>sa(void 0,void 0,void 0,(function*(){yield S("导入成功","none")})),children:"导入微信收件地址"})})})),gl=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{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(n,{onClick:()=>b("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:Nl}=g,fl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(i,{children:e(Pa,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(Nl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(Nl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(gl,{navList:m,activeKey:r,cell:l})})]})})})})})),Cl=d(null),bl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(Cl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!0),children:e(u,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!1),children:e(u,{value:"paixusort-sheng"})})}),e(Pa,{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]})})),yl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:n}=r(Cl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:l.map(((l,n)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>b("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})]},n)))})})),Sl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(Cl),m=i((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=i((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=i((()=>{var e;return(null===(e=o[l])||void 0===e?void 0:e.childList)||[]}),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=p();return e(g,{children:e(Pa,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},l)))}),e(yl,{thirdList:u})]})})})})})),xl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=Q(),[g,N]=t("0"),[f,C]=t("0");return e(Cl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(bl,{}),e(Sl,{})]})})})),wl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:n,Image:i}=p();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(n,{className:"level3ArrItem",onClick:()=>b("goodList",{classtreeCode:l.classtreeCode}),children:[e(i,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:l.goodsClassName})]},o)))})})),kl=s((({navList:l,activeKey:o,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:T(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=T(l[r],"childList"))||void 0===c?void 0:c.map(((l,o)=>a(h,{children:["0"===l.goodsClassHide?e(h,{className:"level2Title",children:l.goodsClassName}):"",e(wl,{childList:l.childList,layout:s,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:vl}=g,Il=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(c,{className:"goodsClassifyTwo",children:e(Pa,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(vl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(vl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(kl,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),Bl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Zud7L0i/s88Nmi2lW965/f7aT6td0xi3r4xMC+wFmBs5cXx8WA0zdYqB8D1wA+16Dv3l0OCYBHAw/pPeL/daDu/g3lCeZ5+5sKfZ8ZuAJwZeBawHEq9GkXvwWuU9TLlbqs080QAFCp8xzgDhWGrCHn0KKNc3tteb6eALheeZ1ob+grq78CNyvjryCKOl30ndS6Ubj4nvc3XMe45t+13j0TeEax4PXsLt1cY5PKqesDzqkreVTdtgC4ax9V27UGwPOAO/YYsV+8KlcX//c9+qnV1DuDR1kfQP8DuC7w1lqD6tNPSwD4BHpoj8EpIC+N3+vRR6umHgnPBjRJd6E/A1cBPtKlcc02rQBwlyKgLmP9RdkmJ/GFbDEBXxTaAR4IHK3DRH8NXAb4Soe21Zq0AIDPqQ8DGnay5G3ed/OPsg1H5PfV8ArgVB3G8A1Ac/dox1ttAPi29i1+ug7CeFK5aHlRmhu5+L5OLtFh4C8f0w5SEwD29UZg/6QQ9Lw5CHhKst3U2LVnvLYofbJjux1wSLZRDf6aALhX0fJlxvV34NblqZhpN1VeNZwupB5MGfJSeMHidZRp15u3FgBOC3y1eOBGB+WX75v4JdEGM+FTphq6suZt7z++LpTLYFQLAK8vWrPMwO8LPC3TYEa8XoDfAlw1OWYvwK9KtunFXgMAVwP0iMmQ5/39Mw1myHv88s5XixilnxTjlEasQagvADzzfMeeJTFalR8+ndSIbXdSc2icgWCI0lOLo0yUvxdfXwB42fG8i5LKDy87U9TuReeQ5btRiSuItvtTCXIZJCilDwDUfhk4YShWlNSBvynKvI34jCXIXAqfUFzim4ugDwC0jL0uMcI3d9ARJLqfNKsKMsPO/DtC3gH0jtYK2pT6AMCzTTVmhNzWDPD4boR5m/LcufhFRKenIU2/wqbUFQAXAD6TGNkji/dvosm2Y9WP4NPA+YIz82Mx2rmpXqArAHy/3zs4kcG2s+B4xmS7QVEXR8dwudbu5V0A4NPvB0A0OtegD71pFtphNv5CIt5RtbJ2gmbUBQB6uEZt9UbIeJn5WbMZzK/jWyXU3+6efmjaCppQFwC8MIFKw6mN8l3ofxI4NqDGz6wlETInwtsijF14ugDAAEgvJxFqOvjIACbK49auISxC3re0mzShLAAMnIhq8dRkaSXU5LvQUSWg1U+39ggZUOKrqwllAXAb4EXBkXhU1IgFCP7crNi8DBouFsl4YuzDKYBftphhFgDq/aPODiZ6MLfOQruXgN5DPgsjZICKUVDVKQsAlT+R7UjlxamnHBRZXZL5DjOaQb2PdbOvThkAyOuzxLx760jvoK4+8+v63i7/blCqcoqQTiI6i1SnDAC80KkAipBbv0fAQnuWgPcAI598Fq4jVcgXXsfU5d8zALhSyZkX+Z1F9x+REnwROHeA1SSWBqtWtwtkAHB74AWBwcpiFKxBoQttLQHN6ZrVI6RGsLpGNQMA8/k8OTJS4OLAJ4K8m8z2xBITEZGBafNMelGVMgBwW39Y8Ne94OgAsdDWEjARptHPEdL3ImOCj/SZSnqQMQF7YZxTfF9IWA2YjH429D1Cag8/GGHM8GR2gIwR6ITlyZgZyybyZiyDJtI01qAqZQCQ0QIaJ9fMhFlVAuN25lM5ellWa2gATlXKAMCECMb9R8g8gBZjWGhrCWReVuZUzAbgrJV/BgC6Kj9gbY87GCzesMkOoEExcR/AQJAINXEPywDAFG/mx4mQ4VAqORbaWgLq+M0tHKHRXwH3KNm8I4M1z957IowbzmP6PI1CETLMzIwiVSmzA2QuLD5vvDMstLUE/EiuGBCSPgFerM01WJUyAHALMhgkQubzu2eEccN5zHYayZksX5e0O2vFmwGAZmDNwZE27+oQG792sNuMISNPk26ZZLs6RRZz5x+NIta8vT4F55jwqbqQ99ChW3/0nvTihBNpavxZAETPLAeh/Vo79kK7l8BjEwEzd03GFYZlngWAUT4mRoyQGUDmnvkrMs+uPB8rVtNIe93wmqSbzwLA553ne4QsuGg61IX+XwInKbb9SN0EvYYMImmSUSULAJ8iZvmwiuc68vz35moUzEJHlcCdgOcGhWIZ28hTMdjdUdmyALC1JsnojXQ7ZwLrJPDSyHqDlwx2oLrYamRNqAsAMiphy7icv8nI59upVUnU6EVlL3+zUrXRQews7uwEzAhmJe6FdkhAJZlFJiPU/APqAgAHbqq3S0VmUN66Xh4X2hHi9Z1ELSJd8KIGuE7y7QoAq4BYDSRKnnc+ezadMiZ1b/3mVmjqWtcVAJZdsxxaJKjBRbe4snEFm0zZfMpmXj+gtcC6AsBxZXwE5TdRhAkjNpUyMQDKSB2KupSm1AcAXgaPACLKDCfhjqG7+GjVMZpKcuvOMwo0ezKPkK+n6pFAuw6zDwDsy2oXRgFFyciiPlXEor8zJT49pLWJ+MFEya3fI6A59QWAaWJNF5spmnTzUmOn+eQm8gPWE8pE9lpyR9+L5l+/8ukLAPvIuIvLr0+BlsLq7k0TWfCdh5HJAbBqZ8naaBa23lOuAQDftt4FolmvHLQp5i2Zpl1hu5IKMN24I3aTlQzMBmZircGoBgAcrPbqZyVH/UlgvxIjn2w6efbzlAyfmY/CQBpDxZupfXcntVoAMA/uxzskMXCrM//N3ya/pPEBetnThStbR9BAURVFg1ItADhoUW9IeLbkum9db70mQZg7+XRz24+m0V3N149HC+vgKfVqAsDJmBbu+R1WUW9jU9AOUiWjw/giTYzetRiGz74M/bYk3tJGMDjVBoATyD57VpP27LMq9xz9CI2ZNHw+c+Fbzds5ZwpvVAVJCwBYIOlwwIwWWTLwwUwk2Qtl9ndq8Zu3R5V413LyHnvWWh6tgHQLAChccwnr9ZI9C1cLY3kZbebfr7VSDfpRvatbV0bDt7thmPfH19AoIGgFACfqpVD3MS2HXcgyM+Yk0hO5ekhUlwGVNt7uze2TKQK17ue8++j3p1Z1UGoJACfixeidHc/GlSDUGAoC7Q6D35J3Wo2Tw3/DudV5RJJlZhdylJ2gNQAUgrd78+LqUdyHzFJuiXmBMFhlzbLFGxlt5Y6+c1g3/8FBMAQAnLQXHZU+hov1JauQGKFkLT6fXS12BTV45uRxm3drHkpOymbQ42DIianm9DiIRMNGQeIb2qrb+s77x9y7XQDhy0WQqr/3QqaxKurnEB1rhm+wnWBIACgAC06Y6OgiGWkkeF189Qkap/xbY5NPLf8YYeNCq6jxDPdMN+mCz9WaoNx1uDrAZGoHr9oPAoKhAeDk/LIsiHjQwFtrAkdVWL2n6PyiYsvqIF1A1vw4GAMAK+nuDxj23PWZWGWVGnWiIsyMKtZXkqyuPkkQjAkABWPs4MGARaW3A6m7MKWuauFdgzk9arynWEgjS82Og7EBsBKEFy9zCuk0OlfylaP2cqv0eJPbCaYCABddM7J2AEvSzulYMIGzETzR2n5ePD0OJrETTAkAqy/fG/qBJSll1qliyN3jy2W791WTdeCczE4wRQCsFnGfon0znaql56dAnuuHlbA4o52yC7/zHCaxE0wZADsLSzdptXLerH2/D026ah9aXi0GuNSi0UEwFwCsBL43cOmirfPieNFGGjuVN7ppebHzi49WS+0CjFFBMDcA7Cpg7wsCwtzECtJXhH/2Da6EW7qp79Qa+mbXNc0oZm3zQ6a4Gw0EcwfAntZZ1auGJwGy+uP/UzunWlgX7CNL/qIutoMgvlJso4BguwIgJfkJMQ/+OlgAMKHVL0PpsxOYkU1DWzipxAKA6QHAEfXZCVLhZQsApgmAviDQKTcUZ7AAYLoA6AMCjWt6S62lBQBrRTQ6Q5fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Tl=s((({value:l,urlPath:o="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:C,Image:y}=p(),S=i((()=>f("txt",...g)),[g]);return e(C,{onClick:()=>b(o),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(C,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(y,{src:Bl,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,{className:S,style:{color:t,display:"inline-block",fontSize:h},children:l})]})})})),Dl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"],urlPath:g="search"})=>{const{View:N,Image:C}=p(),y=i((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>b(g),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(N,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(N,{style:{width:"80%"},children:[e(C,{src:Bl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:y,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(N,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Vl=s((({placeholder:l,placeholderText:o,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>y()),[]),{View:f,Text:S,Input:k}=p(),[v,I]=t((()=>x("history")||[])),[B,A]=t(""),T=e=>{b(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:Bl,alt:""}),e(k,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:B,onInput:e=>A(e.detail.value),onConfirm:e=>sa(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const l=a.concat(g.current.value||e.detail.value);return w("history",l),l}return a})),T(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(S,{className:"btn",onClick:()=>{const e=B.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return w("history",l),l}return a})),T(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(_e,{onClick:()=>sa(void 0,void 0,void 0,(function*(){(yield C()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:v.map(((a,l)=>e(f,{onClick:()=>T(a),className:"historyItem",children:a},l)))})]}):null]})})),Ll=s((({defaultValue:l=[],classCode:o="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:C,paddingLeft:y,paddingRight:S,goodsName:x=!0,goodsPrice:w=!0,goodsCar:k=!0,goodsBorder:v=!0,goodsShadow:B=!1,marginGap:A=10})=>{const[L,P]=t(l),R=c(),{View:M,Text:O}=p();return n((()=>{V(R.current,u)||(R.current=u,D(u)?P(l):sa(void 0,void 0,void 0,(function*(){try{const e=yield I({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=T(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:A,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:S},children:L.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:v?"1px solid #000000":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${Ee(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:[w?ia(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ia(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:k?"block":"none"},children:e(_e,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Pl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:C,marginRight:y})=>{const{View:S}=p(),{list:x}=$({defaultValue:l,goods:o},i);return e(S,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:C,marginRight:y},children:x.map(((l,o)=>a(S,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(S,{className:"img",style:{backgroundImage:`url(${Ee(l.dataPic)})`}}),a(S,{className:"board",children:[e(S,{className:"title",children:l.goodsName}),a(S,{className:"info",children:[a(S,{className:"lPart",children:[s?e(S,{className:"price",children:ia(l.pricesetNprice)}):null,t?e(S,{className:"marketPrice",children:ia(l.pricesetMakeprice)}):null]}),n?e(S,{className:"rPart",children:e(_e,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Rl=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:C,btnRadius:S})=>{const x=i((()=>y()),[]),{list:w}=$({defaultValue:l,goods:o},m),{SmoothSwiper:k,View:v,Image:I}=p(),[B,A]=t(0);return a(v,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:w,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===w[B].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:Ee(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:ia(l.pricesetNprice)}):null,n?e(v,{className:"marketPrice",children:ia(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:f,color:C,borderRadius:S},children:N})]})})]})})),Ml=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:n=""}=q(o,s),i=Z.getState();Z.setState(Object.assign(Object.assign({},i),{memberCode:n})),console.log(24,n);const c=X(t);return e(fa,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Ol=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:n}=J(l);return a(s,{onClick:t,children:[D(n.dataObj)?e(_e,{value:"star-fill",style:{fontSize:20}}):e(_e,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:D(n.dataObj)?"收藏":"已收藏"})]})},zl=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:n,SmoothView:i,Button:c,IconMobile:r}=p(),{rsSkuDomainList:d,rsGoodsFileDomainList:m}=q(l,t),{goodInfo:h}=_(d);ee(l);const{init:u,canvasRef:g}=ae();return a(n,{className:"goodsDetail-topInfo",children:[e("canvas",{ref:g,width:300,height:600,style:{display:"none",border:"1px solid #ccc",width:"300px",height:"600px"}}),a(n,{className:"lPart",children:[e(i,{className:"name",children:h.goodsName}),a(n,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(n,{style:{display:"flex",flexDirection:"column"},children:[a(i,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ia(h.pricesetNprice)]}),a(i,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ia(h.pricesetNprice)]}),a(i,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ia(.9*h.pricesetNprice)]})]}),e(c,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>u(m,h.goodsName),children:"生成海报"}),e(n,{onClick:e=>{e.stopPropagation(),(()=>{const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(r,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(n,{className:"rPart",style:{display:s?"flex":"none"},children:e(Ol,{goodsName:h.goodsName,pricesetNprice:h.pricesetNprice,dataPic:Ee(h.dataPic),skuCode:l})})]})},Fl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=J(l),{handleShare:c}=le();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:D(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Yl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,n),{goodInfo:d}=_(r);return oe((e=>e.spec)),ee(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ia(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Fl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ee(d.dataPic),skuCode:t})]})})),Wl=s((()=>{const{Text:e}=p(),l=oe((e=>e.count)),o=oe((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),jl=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=se(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Wl,{}),e("img",{src:Al,alt:"",className:"icon"})]})]})})},Gl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=q(l,o),{goodInfo:i}=_(n),c=te(n,i.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},l)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},El=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ne(),N=i((()=>c-r),[c,r]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(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:"已领完"})]})})})),Hl=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Ul=o=>{var{skuCode:s,scene:t}=o;oa(o,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ie(d,h.skuCode);return a(l,{children:[a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:Al,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(Pa,{children:u.length>0?u.map(((e,a)=>m(El,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(Hl,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Kl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:i}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{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(i,{children:c.map(((a,l)=>e(_e,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Ql=({item:l})=>{const{View:o,Image:s,Text:t}=p();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Kl,{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}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},$l=({evaluateArr:l})=>{const{View:o}=p();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e(Ql,{item:a},l)))]}):e(ol,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ql=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>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||""}})})},Zl=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(l,{children:d.map(((l,t)=>e(h,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},Xl=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(n,i),u=ce(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(Zl,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(ql,{goodsRemark:m}):e($l,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Jl=({skuName:l,handleChooseSize:o,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=p(),r=oe((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(i,{className:f({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)))})]})},_l=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=oe((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),eo=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n})=>{const{Image:i,View:c}=p(),{skuList:r}=o,d=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ia(n.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(i,{src:Ee(n.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:n.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",n.goodsSupplynum||"100"]})]})]}),r.map(((a,l)=>e(Jl,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},ao=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=oe((e=>e.isNeedButton)),r=oe((e=>e.offShelf));return r?e(i,{className:f({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(l,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:o,children:"立即购买"})]})})},lo=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=re(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(Pa,{children:e(i,{children:a(n,{className:"content",children:[e(eo,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(_l,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(ao,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),oo=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(lo,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},so=s((({serverShow:o,cartShow:s,lPartShow:t,lPartColor:n,lPartBgColor:i,lPartStyle:c,rPartColor:r,rPartBgColor:d,rPartStyle:m,rPartText:h,dispatchPageStore:u,skuCode:g,platform:N,scene:f})=>{const{View:C,IconMobile:y,Text:S}=p(),x=oe((e=>e.offShelf)),{rsSkuDomainList:w,goodPro:k}=q(g,f),{goodInfo:v}=_(w),{servicePopup:I}=ta(N),{addCardPopup:B,buyOpenPopup:A}=se(u);return a(C,{className:"goodsDetailHandleBar",children:[a(C,{className:"linkGroup server",onClick:I,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:s?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"购物车"})]}),e(C,{className:"goods-detail-btn-group",children:x?e(C,{className:"btn addCart offShelf",children:e(S,{className:"btn",children:"已下架"})}):a(l,{children:["26"===k||!1===t?null:e(C,{className:"btn addCart",onClick:B,style:{color:n,backgroundColor:i,borderTopLeftRadius:c,borderBottomLeftRadius:c},children:"加入购物车"}),e(C,{onClick:A,className:"btn buy",style:Object.assign({color:r,backgroundColor:d,borderTopRightRadius:m,borderBottomRightRadius:m},!1===t?{borderTopLeftRadius:m,borderBottomLeftRadius:m}:{}),children:h||("10"===v.goodsPro?"预售抢购":"立即购买")})]})})]})})),to=o=>{var{$_dataSource:s={},dispatchPageStore:t=L,skuCode:n,scene:i}=o,c=oa(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=de(r,m),{popupVisible:p}=s;return a(l,{children:[e(so,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(oo,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},no=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:C}=p(),{rsSkuDomainList:y}=q(u,g),{goodInfo:S}=_(y),{servicePopup:x}=ta(N),{addCardPopup:w,buyOpenPopup:k}=se(h);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:()=>b("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:w,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"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"===S.goodsPro?"预售抢购":"立即购买"})]})]})})),io=o=>{var{popupVisible:s=!1,dispatchPageStore:t=L,skuCode:n,scene:i}=o,c=oa(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=de(r,m);return a(l,{children:[e(no,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(oo,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},co=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],ro=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(co);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===m?"active":""),onClick:()=>((e,a,o)=>{i(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(_e,{style:{color:n===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(_e,{style:{color:n===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},mo=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:n=!0,goodsPrice:c=!0,lineationGoods:r=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:h=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:C={}})=>{console.log(111,C);const{View:b,Loading:y,SmoothView:S,Image:x,ScrollView:w,IconMobile:k}=p(),[v,I]=t({}),{loading:B,getData:A,list:T}=me(l,o,v),D=i((()=>f("textBox",{btm:!c&&!r})),[c,r]),V=i((()=>f("name",{boxNone:!n})),[n]),L=i((()=>f("middle_margin",{boxNone:!d})),[d]),P=i((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=i((()=>f({detailContent:!(V.includes("boxNone")&&L.includes("boxNone")&&P.includes("boxNone"))})),[V,L,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(ro,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Pa,{id:"listWrap",children:a(w,{onScroll:()=>A(v),children:[e(b,{className:"list",style:{gap:g},children:T.map((l=>a(b,{onClick:()=>$e(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:Ee(l.dataPic),className:"img"}),a(b,{className:R,children:[e(S,{className:V,children:l.goodsName}),a(b,{className:L,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:D,children:[e(S,{className:"price",style:{display:c?"block":"none"},children:ia(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:ia(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]})})})]})})),ho=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=he(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},po=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),uo=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Pa,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(po,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},go=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",t," X ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ia(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),No=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{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(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>b("goodDetail",{skuCode:s})})]})})),fo=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),Co=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{children:[a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(uo,{promotionCode:c,onChange:e=>{m(!1),s(n,ue(e))},promotion:o||[],visible:d,setVisible:m})})]})},bo=s((l=>{var{item:o}=l,s=oa(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(fo,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(No,{dataState:o.dataState,dataPic:Ee(o.dataPic),skuCode:o.skuCode}),e(go,Object.assign({},o,s))]})})),yo=o=>{var{shoppingGoodsList:s=[]}=o,t=oa(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(bo,Object.assign({},t,{item:l})),l.pmPromotionList?e(Co,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},So=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>D(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>$e(o,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),n]})},xo=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:o}),l&&e(So,{link:t,disNextMsg:l})]})},wo=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:C,handleStep:b,updatePm:y}=pe(o,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:C,children:f.length?e(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(xo,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(yo,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},ko=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=l,{toOrderImpl:C,deleteCart:b,clearAll:y,selectAll:S,ids:x,cartDetail:w}=ge(N,u,o),k=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:S,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[x.length?e(r,{onClick:y,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ia(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ia(w.amount)})]})]}),a(r,{onClick:C,className:"btn",style:k,children:["结算(",w.num,")"]})]})]})},vo=({address:a})=>e(l,{children:D(a)?e(Bo,{}):e(Io,{address:a})}),Io=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,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:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Bo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Ao=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",longContractgoodsBeanStr:t=""})=>{const{View:n}=p(),i=Ne(a,o,l,s,t);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>b("addressList"),children:e(vo,{address:i})})},To=({address:a})=>e(l,{children:D(a)?e(Vo,{}):e(Do,{address:a})}),Do=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Vo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Lo=({refreshNum:a})=>{const{View:l}=p(),o=fe(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>b("pickupPointList"),children:e(To,{address:o})})},Po=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,n)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Ro=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:i="",longContractgoodsBeanStr:c=""})=>{const{View:r,Text:d}=p(),[m,h]=t("0");return n((()=>{Ce.contractPumode=m}),[m]),a(r,{className:"placeOrderAddressTabs",children:[a(r,{className:"delivery-header",children:[e(d,{className:"delivery-label",children:"配送方式:"}),e(r,{className:"tabs",children:e(Po,{tabActive:m,setTabActive:h})})]}),e(r,{className:"content",children:"0"===m?e(Ao,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,longContractgoodsBeanStr:c}):e(Lo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Mo=s((({couponStart:l,pbName:o,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Oo=s((({couponStart:l,pbName:o,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),zo=({refreshNum:o,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:u,Popup:g,Form:N,SmoothRadio:f,Button:C,SmoothCheckbox:b,ScrollView:y,Radio:S,Image:x}=p(),{shoppingGoodsList:w}=be({refreshNum:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:k,visible:v,couponValue:I=[],setVisible:B,selectCoupon:A,onChange:T,onCreditChange:D,confirmImpl:V,resetImpl:L,contractPmode:P,onPayChange:R,payList:M,payName:O,creditList:z,creditInfo:F,selectCredit:Y,creditVisible:W,payVisible:j,setPayVisible:G,handleChooseImg:E,contractEcurl:H,setCreditVisible:U}=ye(w,s);return a(l,{children:[w.some((e=>"06"===e.goodsType))?null:a(l,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==k.length),children:[e(u,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(u,{className:"label",children:A?`已选择: ${A}`:0===k.length?"暂无可用优惠券":"请选择优惠券"}),0===k.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>G(!0),children:[e(u,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(u,{className:"label",children:O?`已选择: ${O}`:"请选择支付方式"}),0===k.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]})]}),F.urechargeId&&"0"===P&&a(h,{className:"coupon-select",onClick:()=>U(0!==z.length),children:[e(u,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(u,{className:"label",children:Y?0===+Y?"不使用":`已选择: ${Y}%`:"请选择授信"}),0===k.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]}),"1"===P&&a(h,{className:"coupon-select",children:[e(u,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:E,children:H?e(x,{src:H,className:"img",alt:H,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(g,{popupVisible:j,popupHandler:G,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Pa,{children:e(y,{children:e(f,{value:P||"",onChange:R,children:(null==M?void 0:M.length)>0&&M.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{checked:l.ptfpmodeType===P,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(g,{popupVisible:W,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Pa,{children:e(y,{children:e(f,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(g,{popupVisible:v,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Pa,{children:e(y,{children:s?e(b,{value:(null==I?void 0:I.length)>0?I.map((e=>e.couponNo)):[],onChange:T,children:(null==k?void 0:k.length)>0&&k.map((e=>m(Mo,Object.assign({isDisabled:2===I.length},e,{key:e.couponNo}))))},"visible"):e(f,{value:(null==I?void 0:I.length)>0?I[0].couponNo:"",onChange:T,children:k.map(((e,a)=>m(Oo,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(C,{className:"operate reset",onClick:L,children:"重置"}),e(C,{className:"operate",onClick:V,children:"确认"})]})]})})]})},Fo=({shippingMethod:l=1})=>{const{View:o}=p();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},Yo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=be({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Ha,Object.assign({},a),o)))})))})},Wo=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=be({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:C,disCount:b,creditMoney:y,freight:S,payPrice:x,rebMoney:w}=f,k=f.pointsDeduction||0,v=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:B,changeContent:A,shoppingType:T,pricesetRefrice:D}=Se(C),V=ia(Math.max(x-y,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===T?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ia(I)})]}),null!==k&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===T?k+"积分":ia(k)]})]}),"06"===T?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ia(v)]})]}),"06"===T?null:a(l,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ia(-y)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ia(-w.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ia(-(B+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ia(S)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:A})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":V})]})]})})},jo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:C,payState:b,creditMoney:y,ocContractSettlList:S,pointsDeduction:x}=be({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:w,loading:k}=xe({ocContractSettlList:S,payState:b,list:C,goodsBeanStr:r},d,Math.max(f-y,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const v=ia(Math.max(f-y,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",r?"0.00":v]}),e(N,{loading:k,children:e(u,{className:"btn",onClick:w,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},Go=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:C,SmoothRadio:b}=p(),{paymentImpl:S,channelList:x,contract:w,handleRadio:k,loading:v}=we({contractBillcode:l,contractBbillcode:o});return n((()=>{console.log("打印下当前的channelList",x)}),[]),a(u,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(f,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",w.current.contractBillcode," | 总金额:",ia(w.current.contMoney+(w.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ia(w.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(b,{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:["支付金额:",ia(w.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(C,{loading:v,children:e(u,{className:"btnGroup",onClick:S,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Eo=({dataObj:l})=>{const{View:o,Text:s}=p();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ia(l.dataBmoney)})]})]})},Ho=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:n,leftBorderRadius:i,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:y,WrapLoading:S}=p(),{result:w,loading:k}=ke(l||(x("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(y,{value:w.icon,style:{fontSize:"35px",color:w.color}}),a(f,{className:"tips",children:[e(C,{className:"title",children:w.msg}),e(C,{className:"tip",children:w.info})]}),"success"===w.sysRecode&&e(Eo,{dataObj:w.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>b(w.menuCode,{contractBillcode:w.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${n}`,borderRadius:1===i?"20px":"0px"},children:w.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>b(r.value),className:"btn white",children:c})]})]})})})})),{Button:Uo}=g,Ko=a=>{var{dataState:o}=a,s=oa(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Qo,Object.assign({dataState:o},s))})},Qo=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:n,btnShape:i}=a,c=oa(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:d,handlerImpl:m}=ve(Object.assign({dataState:l,contractAppraise:o},c));return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(Uo,{style:{color:s,borderColor:t,backgroundColor:n},className:f({btn:!0,white:0===l,black:1===l}),onClick:()=>m(a.handler),shape:i,children:a.name},l)))})},{Button:$o}=g,qo=({contractPaydate:a,init:o,countdownCancel:s,contractId:i})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,i]=t("");return n((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,n=s.getTime()-(t.getTime()-3600);n<999&&n>0?l(o).then((()=>{a()})):n>1e3&&i(ra(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,i);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function Zo({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:n,contractId:i,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:u,countdownCancel:g}){const{View:N}=p(),f=Ie(n,r);return a(N,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(N,{children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",l,e($o,{className:"copy",size:"mini",fill:"outline",onClick:e=>{e.stopPropagation(),e.preventDefault(),Xe.setClipboardData({data:l,success:()=>{Xe.showToast({title:"复制成功",icon:"success",duration:1e3})},fail:e=>{Xe.showToast({title:"复制失败",icon:"error",duration:1500})}})},children:"复制"})]}),e(N,{className:"status",children:f})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>b("orderDetail",{contractBillcode:l}),children:t.map((a=>e(Ha,Object.assign({},a,{dataState:n,children:1===n&&e(qo,{contractPaydate:h,init:c,countdownCancel:g,contractId:i})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",ia(o)]})]}),e(Ko,{init:c,contractType:u,contractId:i,contractBillcode:l,dataState:n,contractAppraise:r,dataBmoney:o})]})}const Xo=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const Jo=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=p(),{onScroll:d,data:h,loading:u,init:g,countdownCancel:N}=Be(l,o,n);return e(i,{className:"orderListItemWrap",children:e(Pa,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(Zo,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:u?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(Xo,{}),e(i,{className:"nodata-btn",onClick:()=>b("goodList"),children:"前往购物"})]})})})})})),_o=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:n,Tabs:i}=p();return e(n,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:Ae,render:l=>e(n,{className:"orderList",children:e(Jo,{contractType:t,item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:es}=g,as=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=i((()=>y()),[]);return e(es,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=C();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?"已复制":"复制"})})),ls=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:C,handleApplyBtn:y,creditMoney:S,packageRemark:x}=Te(o||""),w=e=>qe(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Ie(C.dataState)?e(_e,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Ie(C.dataState)})]}),e(g,{className:"subTitleWrap",children:w(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(_e,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:C.goodsReceiptMem}),e(N,{className:"personPhone",children:C.goodsReceiptPhone})]}),e(g,{className:"address",children:C.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[C.goodsList.map((o=>a(l,{children:[e(Ha,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{b(u,{skuCode:o.skuCode})},children:"商品快照"}),Number(C.dataState)>1&&Number(C.dataState)<5?e(g,{className:"orderBtn maxWidth",onClick:y.bind(null,o,C.dataState),children:"申请退款(取消订单)"}):""]}))),e(g,{className:"priceInfo",children:"06"!=C.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",C.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((C.dataBmoney-C.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",C.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-C.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(l,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:"韵达快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===C.contractPumode?"自提":"快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:"未开票"})]})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",C.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:x||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(as,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:w(C.gmtCreate)})]}),"06"!=C.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ia(-S)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===C.contractPmode?"线上支付":"线下支付"})})]}),"1"===C.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:Ee(C.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Ko,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:C.contractBillcode,contractId:C.contractId,dataState:C.dataState,dataBmoney:C.dataBmoney})})]})})]})})),os=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=T(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=T(o,"packageList.length",l.count),r=T(o,"packageList[0].expressName",l.expressName),d=T(o,"packageList[0].packageBillno",l.packageBillno),m=T(s,"state",l.result)||"-1";return a(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},ss=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=T(o,"message",l.message),n=T(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.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})})},ts=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=De(l);return a(s,{className:"expressInfo",children:[e(os,{info:t,detail:n,stateObj:i,defaultValue:o}),e(ss,{detail:n,defaultValue:o})]})})),ns=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=ta(),[N,f]=t(c),[C,y]=t(i);return n((()=>{f(x("userNickname")),y(x("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>b("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>b("/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"}})]})]})})),is=s((({title:l,columnList:o})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({});n((()=>{sa(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?b("orderlist",{indexId:a+1}):b("afterSalesList")};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>b("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:h.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),cs=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>b(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ee(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),rs=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{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(i,{src:a.imgUrl,className:"img"},l)))})]})},ds=[{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"}]}],ms=s((()=>{const[o,s]=t("1"),{View:n}=p(),i=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(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:ds.map(((a,l)=>e(rs,{itemData:a},l)))})]})})),hs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,buttonBorderRadius:i,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Ve(l),{Button:C}=g,{View:b,Image:y,TextArea:S,Textarea:x}=p(),w=x||S,k=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:Ee(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(Kl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(w,{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:n,borderRadius:1===i?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),ps=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Le(l),{Button:N}=g,{View:f,Image:C,Text:b}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(C,{src:Ee(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Kl,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),m.length&&i?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),us=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.collectOpcode}),children:[e(n,{src:Ee(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},gs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Pe(),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Pa,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map((a=>e(us,{item:a,edit:o,checked:r},a.collectId)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Ns=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("merchantShop",{memberCode:l.collectOpcode}),children:[e(n,{src:Ee(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},fs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Pe(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Pa,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map(((a,l)=>e(Ns,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Cs=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(n,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ee(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},bs=({item:o,edit:s})=>{const{View:t}=p();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(Cs,{footprintItem:a,edit:s},l)))]})},ys=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?qe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(bs,{item:a,edit:o},l)))})},Ss=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Re();return e(n,{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(Pa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{onChange:d,children:e(ys,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),xs=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:C}=Me(),b=qe(),y=b.format("YYYY-MM-DD"),S=i((()=>u.includes(y)),[u,y]),x=i((()=>{const e=b.year(),a=b.month(),l=qe(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[b,u]),w=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:w})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:x.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:S||f,onClick:C,style:{backgroundColor:o,opacity:S?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":S?"已签到":l})]})]})})})),ws=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>qe())),[g,N]=t(!1),[f,C]=t((()=>qe().year())),[b,y]=t((()=>qe().month()+1)),{signinDetails:S,loading:x,refresh:w}=Oe(h),k=i((()=>h.format("YYYY年MM月")),[h]),v=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>S.sort(((e,a)=>qe(a.date).valueOf()-qe(e.date).valueOf()))),[S]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:l}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;C(e),y(a),N(!0)},children:[e(r,{className:"dateText",children:k}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((l,s)=>{const t=qe(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{C((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{C((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:v.map((l=>e(c,{className:"monthItem "+(b===l?"active":""),onClick:()=>(e=>{y(e);const a=qe(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:b===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),ks=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],vs=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:ks.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),Is=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,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:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[qe(i).format("YYYY-MM-DD")," ~ ",qe(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Bs=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[n,i]=t(ks[0].val),{list:c,getData:r}=ze({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(vs,{activeColor:l,setParams:i,params:n}),e(d,{children:e(Pa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Is,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const As=()=>{const{View:a,Image:l}=p();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Ts=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",qe(o.gmtModified).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",qe(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",qe(o.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(As,{})})},Ds=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Fe();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(Pa,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ts,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),Vs=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=Ye({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=T(l,"pbName"),h=T(l,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),g=T(l,"promotionName"),C=qe(T(l,"promotionBegintime")).format("YYYY-MM-DD"),b=qe(T(l,"promotionEndtime")).format("YYYY-MM-DD"),y=T(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:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},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)}))})})),Ls=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:C}=Ye({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=T(l,"pbName"),h=T(l,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),u=T(l,"promotionName"),N=qe(T(l,"promotionBegintime")).format("YYYY-MM-DD"),b=qe(T(l,"promotionEndtime")).format("YYYY-MM-DD"),y=T(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),e(g,{className:"info",style:{color:r},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===l.availabledate||C.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ps=s((l=>{var{type:o=1,coupons:s=[]}=l,t=oa(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(Vs,Object.assign({coupons:s},t)):null,2===o?e(Ls,Object.assign({coupons:s},t)):null]})})),Rs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=We(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},Ms=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=je(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{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(i,{className:"content",children:r.noticeContext})]})})),Os=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=Ge(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(Pa,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",qe(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{cl as AddressDetail,sl as AddressList,tl as AddressListBtn,za as AfterSalesApply,qa as AfterSalesDetail,Ea as AfterSalesList,_a as AfterSalesType,Bs as AllPromotionList,Os as ArticleDetail,Aa as BackTop,wo as CartList,ko as CartOperate,ho as CartTop,Sa as ClassifyNav,ka as ClassifyNavOne,wa as ClassifyNavOneJsx,Ba as ClassifyNavThree,va as ClassifyNavTwo,gs as CollectionList,fs as CollectionShopList,Ds as CouponList,Da as Cube,hs as EvaluateDetail,ms as EvaluateList,ps as EvaluateViewDetail,ts as ExpressInfo,Ss as FootPrint,Ps as GetCouponOne,Ll as Goods,fl as GoodsClassify,xl as GoodsClassifyOne,Il as GoodsClassifyTwo,Xl as GoodsDetailAndEvaluate,Ml as GoodsDetailBanner,Ul as GoodsDetailCoupon,to as GoodsDetailHandleBar,io as GoodsDetailHandleBarOne,zl as GoodsDetailInfo,Yl as GoodsDetailInfoOne,Gl as GoodsDetailPromotion,jl as GoodsDetailSku,mo as GoodsList,Pl as GoodsSlider,Rl as GoodsSlideshow,la as Line,xs as MemberSignin,ns as MineData,cs as MineFunction,is as MineOrderEntry,rl as MyAgreementList,ml as MySetting,dl as MySettingJsx,Rs as Notice,Ms as NoticeDetail,ls as OrderDetail,_o as OrderList,Go as PaymentMode,pl as PickupPointList,Ao as PlaceOrderAddress,Ro as PlaceOrderAddressTabs,zo as PlaceOrderCoupon,Fo as PlaceOrderDelivery,Yo as PlaceOrderGood,Wo as PlaceOrderInfo,jo as PlaceOrderOperate,Ho as PlaceOrderResult,_e as QjMobileIcon,Tl as Search,Vl as SearchPage,Dl as SearchStyleTwo,Je as Service,ws as SigninDetail,Ca as Slider,aa as TextLine,ea as Title,da as ToPrice,ba as Video,ul as WechatAddressBtn,na as addressIdConst,ia as fixPrice,ca as fixPrice1,ra as formatTime,ta 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 n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,Fragment as h}from"react";import{useComponent as p,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import f from"classnames";import{getTaro as C,navigatorHandler as b,getEnv as y,taroMessage as S,getStorage as w,setStorage as x}from"@brushes/utils";import{queryOcsconfigList as k,getAddress as v,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as T}from"qj-b2b-api";import{get as A,isEmpty as D,isEqual as V,noop as L,groupBy as P}from"lodash-es";import{useCube as R,useGoTop as M,useAfterSalesApply as O,useAfterSalesList as z,afterSalesTabConfig as F,useAfterSalesDetail as Y,useAfterSalesChooseType as W,useAddressItem as G,useAddressList as j,useEditAddress as E,useMySetting as H,usePickupPointItem as U,usePickupPointList as K,useGoodsClassify as Q,useGoods as $,useGoodDetail as q,goodStore as Z,useBanner as X,useGoodCollection as J,useGoodSpecAndPrice as _,useGoodFootprint as ee,useCreatePoster as ae,useCreateMiniPoster as le,useGoodsShare as oe,useGoodSkuStore as se,popupImplement as te,usePromotion as ne,useAddCoupon as ie,useCoupon as ce,useEvaluate as re,useAddShopping as de,useGoodSku as me,useGoodsList as he,useCartTop as pe,useCartListNext as ue,getRadioValue as ge,useCartOperate as Ne,useOrderAddress as fe,useOrderPickupAddress as Ce,userAddressData as be,useOrderGood as ye,useOrderCoupon as Se,useOrderInfo as we,useOrderPay as xe,useOrderResult as ke,useOrderResultResult as ve,useOrderOperate as Ie,orderStatusImpl as Be,useOrderList as Te,orderStatusList as Ae,useOrderDetail as De,useExpressInfo as Ve,useEvaluateDetail as Le,useEvaluateViewDetail as Pe,useCollectionList as Re,useFootprint as Me,useMemberSignin as Oe,useSigninDetail as ze,useMarketingPromotion as Fe,useCouponList as Ye,useAllCoupon as We,useNotice as Ge,useNoticeDetail as je,useArticleDetail as Ee}from"qj-b2c-store";import{fullPath as He,checkMobile as Ue,ProvinceComponent as Ke,CityComponent as Qe,AreaComponent as $e,navigatorLink as qe}from"@brushes/shared-utils";import Ze from"dayjs";import{DynamicForm as Xe}from"@brushes/mobile-form";import Je from"@tarojs/taro";const _e=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),ea=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},aa=s((({value:l,shared:o,goPath:s,goPointsPath:t,textIndent:n,fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingTop:g,paddingLeft:N,paddingRight:f,paddingBottom:y})=>{const{View:S,IconMobile:w}=p(),x=()=>{console.log(107,window.location.href);const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(S,{className:"components-title",style:{paddingTop:g,paddingBottom:y},children:[e(S,{onClick:()=>{var e;e=l,s?b("goodList",{searchParam:e}):t&&b("PointsGoodsList",{searchParam:e})},style:{fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingLeft:N,paddingRight:f,textIndent:n},children:l}),o&&e(S,{onClick:e=>{e.stopPropagation(),x()},children:e(w,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),la=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:i,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${n}px`,color:c},children:o})]})},oa=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=p();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function sa(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 ta(e,a,l,o){return new(l||(l=Promise))((function(s,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(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(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const na=(e="b2c")=>{const[a,l]=t([]),o=i((()=>y()),[]);n((()=>{ta(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>ta(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield k();case"b2b":return yield T().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;C().showActionSheet({itemList:a})}}},ia={label:""},ca=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",ra=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",da=(e,a)=>{const l=Math.floor(e/1e3)%60,o=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${o}分钟 ${l}秒${a}`},ma=e=>1===String(e).indexOf(".")?ha(e):pa(e),ha=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)},pa=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"},ua=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const ga=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ua+e:e?ua+"/paas/shop/"+e:e),[e]),Na=({src:a,style:l,actived:o})=>{const s=c(null);return n((()=>{s.current&&(o?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},fa=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=ga(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Na,{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:b.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),Ca=s((({Position:o="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:b,imgHeight:y,fontsize:S=16,textAlign:w="center",fontColor:x="#000000",backGroundColor:k="#ffffff"})=>{const v=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),T=R(n,b||[]),A=a=>e(B,{className:t,style:{fontSize:S,zIndex:99,justifyContent:"left"===w?"flex-start":"center"===w?"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:T,className:v,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?A(s):null,e(fa,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),ba=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:C=0,fontsize:b=16,textAlign:y="center",fontColor:S="#000000",backGroundColor:w="#ffffff",otherStyles:x=[],ImgShadow:k=!1,Position:v="top"})=>{const{View:I}=p(),B=i((()=>f("silder-title",{"silder-tops1":"top"===v&&"horizontal"===d,"silder-bottoms":"bottom"===v&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===v,"silder-tops":"vertical"===d&&"top"===v},...x)),[x,v]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(Ca,{Position:v,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:S,backGroundColor:w,className:f({"outer-shadow":k}),className1:B})})})),ya=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:n},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:i,paddingRight:c}})})})),Sa=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=ga(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},wa=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=R(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>{var e,a;return b(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(Sa,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),xa=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=ga(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},ka=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=R(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,l;return b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(xa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},l)))})},va=s(ka),Ia=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),C=R(a,l),y=i((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"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 b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:y,style:{fontSize:c,color:r},children:a.title})},l)))})})),Ba=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=p(),m=ga(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return b(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:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ta=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),C=R(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:C.map(((a,l)=>e(Ba,{layout:u,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Aa=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=i((()=>y()),[]),{View:n}=p(),{goTop:c}=M();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ea,{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"})})})),Da=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=ga(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>{var e,a;return b(null===(e=o.link)||void 0===e?void 0:e.value,null===(a=o.link)||void 0===a?void 0:a.params)}})},Va=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Da,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),La=o.createContext(null),Pa=s((()=>{const{View:a}=p(),{tip:l}=r(La);return e(a,{className:"afterSalesApplyTip",children:l})}));const Ra=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=sa(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>y()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!y()||!e)return;const a=C().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!y())return 0;const a=C(),l=+a.getStorageSync("safeArea"),o=+(a.getStorageSync("tabBarHeight")||0);return l+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{View:u}=p(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,C().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${C().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:o}))},Ma=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(La);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(Ra,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Oa=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(La);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(ea,{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:ca(n)})})]}),e(Ma,{popupShow:s})]})})),za=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(La);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(ea,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(ea,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Fa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:w,placeholder:x,handleDelImg:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:T,loading:A}=O({contractBillcode:o,skuCode:s});return e(h,{loading:A,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(La.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:w,placeholder:x,handleDelImg:k,limit:v,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:B,handleSubmit:T},children:[e(Pa,{}),e(Oa,{}),e(za,{}),e(m,{className:"submitBtn",onClick:T.bind(null,t,o,l,n),children:"确定"})]})})})},Ya={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Wa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ga=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(ea,{style:{color:null===(s=Ya[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ya[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ya[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:He(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Wa[l.refundType][l.dataState]}),e(ea,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ea=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(Ra,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Ga,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ha=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:l=>e(Ea,{item:l,refreshNum:a})})})})),Ua=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ca(n),C=i((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:He(o),alt:"",className:"card-item-img"}),a(u,{className:"card-item-info",children:[a(u,{className:"card-item-info-container",children:[e(N,{className:"card-item-info-container-title",children:s}),e(N,{className:"card-item-info-container-price",children:f})]}),a(u,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:C})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ka=(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]}},Qa=o.createContext(null),$a=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Qa),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(Ra,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),qa=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(Qa),{View:i,Input:c}=p();return a(l,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:o,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e($a,{})]})})),Za=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:C}=Y({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:S,refundMoney:w,refundMeo:x,refundEx:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:T,goodsReceiptArrdess:A,packageCode:D,packageBillno:V,packageName:L}=c,{View:P,Image:R,WrapLoading:M}=p();return e(M,{loading:C,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(Qa.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Ka(v,b)}),e(P,{className:"right_time",children:Ze(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(P,{className:"afterSalesDetailContent",children:a(P,{className:"refundDetail",children:[e(P,{className:"title",children:"退款信息"}),e(P,{className:"goodsDetail",children:null==S?void 0:S.map(((a,l)=>e(Ua,{dataPic:He(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款原因"}),e(P,{className:"right",children:k})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款金额"}),e(P,{className:"right",children:w})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"描述说明"}),e(P,{className:"right",children:x})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"补充凭证"}),e(P,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(R,{src:He(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:Ze(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款编号"}),e(P,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[B,"  ",T]}),e(P,{className:"address",children:A})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e(qa,{})]}):"",b>1?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流单号"}),e(P,{className:"code",children:V})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:L})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Xa=o.createContext(null),Ja=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Xa),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ca(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:He(N),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{className:"stepWrap",children:[e(ea,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),_a=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Xa);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(ea,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),el=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:C}=W({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=p();return e(y,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Xa.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(Ja,{}),e(_a,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},al=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},ll=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=G(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(al,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>b("addressEditor",{addressId:l.addressId}),children:"编辑"}),e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},ol=s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),sl=s((({url:l,title:o,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>b(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),tl=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=j(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(ol,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(ll,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(sl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),nl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>b("addressEditor"),children:"+ 新增地址"})})})),il=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],cl=[{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:Ue}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Ke}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Qe}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:$e}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],rl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({addressDefault:!1}),{Button:u}=g,{onSubmit:N}=E(r);if(n((()=>{ta(void 0,void 0,void 0,(function*(){if(r){let e=yield v({addressId:r});e.addressDefault="1"===e.addressDefault,h(e)}}))}),[]),!r||!D(m))return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(Xe,{initialValues:m,footer:e(u,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:il,onSubmit:N,fields:cl})})})),dl=s((()=>{const{View:l}=p(),o=e=>{b(`/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)))})})})),ml=()=>{const{View:l}=p(),{mySettingGoBind:o,mySettingLogout:s}=H();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(ea,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},hl=s(ml),pl=({itemData:l})=>{const{View:o,Text:s}=p(),{handlerImpl:t}=U(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},ul=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=p(),{list:c,loading:r,skullShow:d,onScroll:m}=K(l);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:o+"px"},children:d?e(ol,{}):e(t,{className:"addressList",children:e(Ra,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,l)=>e(pl,{itemData:a},a&&a.userinfoOcode||l))),r&&e(i,{})]}):e(sl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),gl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>ta(void 0,void 0,void 0,(function*(){yield S("导入成功","none")})),children:"导入微信收件地址"})})})),Nl=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{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(n,{onClick:()=>b("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:fl}=g,Cl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(i,{children:e(Ra,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(fl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(fl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(Nl,{navList:m,activeKey:r,cell:l})})]})})})})})),bl=d(null),yl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(bl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!0),children:e(u,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!1),children:e(u,{value:"paixusort-sheng"})})}),e(Ra,{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]})})),Sl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:n}=r(bl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:l.map(((l,n)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>b("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})]},n)))})})),wl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(bl),m=i((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=i((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=i((()=>{var e;return(null===(e=o[l])||void 0===e?void 0:e.childList)||[]}),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=p();return e(g,{children:e(Ra,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},l)))}),e(Sl,{thirdList:u})]})})})})})),xl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=Q(),[g,N]=t("0"),[f,C]=t("0");return e(bl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(yl,{}),e(wl,{})]})})})),kl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:n,Image:i}=p();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(n,{className:"level3ArrItem",onClick:()=>b("goodList",{classtreeCode:l.classtreeCode}),children:[e(i,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:l.goodsClassName})]},o)))})})),vl=s((({navList:l,activeKey:o,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:A(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=A(l[r],"childList"))||void 0===c?void 0:c.map(((l,o)=>a(h,{children:["0"===l.goodsClassHide?e(h,{className:"level2Title",children:l.goodsClassName}):"",e(kl,{childList:l.childList,layout:s,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Il}=g,Bl=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(c,{className:"goodsClassifyTwo",children:e(Ra,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Il,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Il.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(vl,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),Tl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Zud7L0i/s88Nmi2lW965/f7aT6td0xi3r4xMC+wFmBs5cXx8WA0zdYqB8D1wA+16Dv3l0OCYBHAw/pPeL/daDu/g3lCeZ5+5sKfZ8ZuAJwZeBawHEq9GkXvwWuU9TLlbqs080QAFCp8xzgDhWGrCHn0KKNc3tteb6eALheeZ1ob+grq78CNyvjryCKOl30ndS6Ubj4nvc3XMe45t+13j0TeEax4PXsLt1cY5PKqesDzqkreVTdtgC4ax9V27UGwPOAO/YYsV+8KlcX//c9+qnV1DuDR1kfQP8DuC7w1lqD6tNPSwD4BHpoj8EpIC+N3+vRR6umHgnPBjRJd6E/A1cBPtKlcc02rQBwlyKgLmP9RdkmJ/GFbDEBXxTaAR4IHK3DRH8NXAb4Soe21Zq0AIDPqQ8DGnay5G3ed/OPsg1H5PfV8ArgVB3G8A1Ac/dox1ttAPi29i1+ug7CeFK5aHlRmhu5+L5OLtFh4C8f0w5SEwD29UZg/6QQ9Lw5CHhKst3U2LVnvLYofbJjux1wSLZRDf6aALhX0fJlxvV34NblqZhpN1VeNZwupB5MGfJSeMHidZRp15u3FgBOC3y1eOBGB+WX75v4JdEGM+FTphq6suZt7z++LpTLYFQLAK8vWrPMwO8LPC3TYEa8XoDfAlw1OWYvwK9KtunFXgMAVwP0iMmQ5/39Mw1myHv88s5XixilnxTjlEasQagvADzzfMeeJTFalR8+ndSIbXdSc2icgWCI0lOLo0yUvxdfXwB42fG8i5LKDy87U9TuReeQ5btRiSuItvtTCXIZJCilDwDUfhk4YShWlNSBvynKvI34jCXIXAqfUFzim4ugDwC0jL0uMcI3d9ARJLqfNKsKMsPO/DtC3gH0jtYK2pT6AMCzTTVmhNzWDPD4boR5m/LcufhFRKenIU2/wqbUFQAXAD6TGNkji/dvosm2Y9WP4NPA+YIz82Mx2rmpXqArAHy/3zs4kcG2s+B4xmS7QVEXR8dwudbu5V0A4NPvB0A0OtegD71pFtphNv5CIt5RtbJ2gmbUBQB6uEZt9UbIeJn5WbMZzK/jWyXU3+6efmjaCppQFwC8MIFKw6mN8l3ofxI4NqDGz6wlETInwtsijF14ugDAAEgvJxFqOvjIACbK49auISxC3re0mzShLAAMnIhq8dRkaSXU5LvQUSWg1U+39ggZUOKrqwllAXAb4EXBkXhU1IgFCP7crNi8DBouFsl4YuzDKYBftphhFgDq/aPODiZ6MLfOQruXgN5DPgsjZICKUVDVKQsAlT+R7UjlxamnHBRZXZL5DjOaQb2PdbOvThkAyOuzxLx760jvoK4+8+v63i7/blCqcoqQTiI6i1SnDAC80KkAipBbv0fAQnuWgPcAI598Fq4jVcgXXsfU5d8zALhSyZkX+Z1F9x+REnwROHeA1SSWBqtWtwtkAHB74AWBwcpiFKxBoQttLQHN6ZrVI6RGsLpGNQMA8/k8OTJS4OLAJ4K8m8z2xBITEZGBafNMelGVMgBwW39Y8Ne94OgAsdDWEjARptHPEdL3ImOCj/SZSnqQMQF7YZxTfF9IWA2YjH429D1Cag8/GGHM8GR2gIwR6ITlyZgZyybyZiyDJtI01qAqZQCQ0QIaJ9fMhFlVAuN25lM5ellWa2gATlXKAMCECMb9R8g8gBZjWGhrCWReVuZUzAbgrJV/BgC6Kj9gbY87GCzesMkOoEExcR/AQJAINXEPywDAFG/mx4mQ4VAqORbaWgLq+M0tHKHRXwH3KNm8I4M1z957IowbzmP6PI1CETLMzIwiVSmzA2QuLD5vvDMstLUE/EiuGBCSPgFerM01WJUyAHALMhgkQubzu2eEccN5zHYayZksX5e0O2vFmwGAZmDNwZE27+oQG792sNuMISNPk26ZZLs6RRZz5x+NIta8vT4F55jwqbqQ99ChW3/0nvTihBNpavxZAETPLAeh/Vo79kK7l8BjEwEzd03GFYZlngWAUT4mRoyQGUDmnvkrMs+uPB8rVtNIe93wmqSbzwLA553ne4QsuGg61IX+XwInKbb9SN0EvYYMImmSUSULAJ8iZvmwiuc68vz35moUzEJHlcCdgOcGhWIZ28hTMdjdUdmyALC1JsnojXQ7ZwLrJPDSyHqDlwx2oLrYamRNqAsAMiphy7icv8nI59upVUnU6EVlL3+zUrXRQews7uwEzAhmJe6FdkhAJZlFJiPU/APqAgAHbqq3S0VmUN66Xh4X2hHi9Z1ELSJd8KIGuE7y7QoAq4BYDSRKnnc+ezadMiZ1b/3mVmjqWtcVAJZdsxxaJKjBRbe4snEFm0zZfMpmXj+gtcC6AsBxZXwE5TdRhAkjNpUyMQDKSB2KupSm1AcAXgaPACLKDCfhjqG7+GjVMZpKcuvOMwo0ezKPkK+n6pFAuw6zDwDsy2oXRgFFyciiPlXEor8zJT49pLWJ+MFEya3fI6A59QWAaWJNF5spmnTzUmOn+eQm8gPWE8pE9lpyR9+L5l+/8ukLAPvIuIvLr0+BlsLq7k0TWfCdh5HJAbBqZ8naaBa23lOuAQDftt4FolmvHLQp5i2Zpl1hu5IKMN24I3aTlQzMBmZircGoBgAcrPbqZyVH/UlgvxIjn2w6efbzlAyfmY/CQBpDxZupfXcntVoAMA/uxzskMXCrM//N3ya/pPEBetnThStbR9BAURVFg1ItADhoUW9IeLbkum9db70mQZg7+XRz24+m0V3N149HC+vgKfVqAsDJmBbu+R1WUW9jU9AOUiWjw/giTYzetRiGz74M/bYk3tJGMDjVBoATyD57VpP27LMq9xz9CI2ZNHw+c+Fbzds5ZwpvVAVJCwBYIOlwwIwWWTLwwUwk2Qtl9ndq8Zu3R5V413LyHnvWWh6tgHQLAChccwnr9ZI9C1cLY3kZbebfr7VSDfpRvatbV0bDt7thmPfH19AoIGgFACfqpVD3MS2HXcgyM+Yk0hO5ekhUlwGVNt7uze2TKQK17ue8++j3p1Z1UGoJACfixeidHc/GlSDUGAoC7Q6D35J3Wo2Tw3/DudV5RJJlZhdylJ2gNQAUgrd78+LqUdyHzFJuiXmBMFhlzbLFGxlt5Y6+c1g3/8FBMAQAnLQXHZU+hov1JauQGKFkLT6fXS12BTV45uRxm3drHkpOymbQ42DIianm9DiIRMNGQeIb2qrb+s77x9y7XQDhy0WQqr/3QqaxKurnEB1rhm+wnWBIACgAC06Y6OgiGWkkeF189Qkap/xbY5NPLf8YYeNCq6jxDPdMN+mCz9WaoNx1uDrAZGoHr9oPAoKhAeDk/LIsiHjQwFtrAkdVWL2n6PyiYsvqIF1A1vw4GAMAK+nuDxj23PWZWGWVGnWiIsyMKtZXkqyuPkkQjAkABWPs4MGARaW3A6m7MKWuauFdgzk9arynWEgjS82Og7EBsBKEFy9zCuk0OlfylaP2cqv0eJPbCaYCABddM7J2AEvSzulYMIGzETzR2n5ePD0OJrETTAkAqy/fG/qBJSll1qliyN3jy2W791WTdeCczE4wRQCsFnGfon0znaql56dAnuuHlbA4o52yC7/zHCaxE0wZADsLSzdptXLerH2/D026ah9aXi0GuNSi0UEwFwCsBL43cOmirfPieNFGGjuVN7ppebHzi49WS+0CjFFBMDcA7Cpg7wsCwtzECtJXhH/2Da6EW7qp79Qa+mbXNc0oZm3zQ6a4Gw0EcwfAntZZ1auGJwGy+uP/UzunWlgX7CNL/qIutoMgvlJso4BguwIgJfkJMQ/+OlgAMKHVL0PpsxOYkU1DWzipxAKA6QHAEfXZCVLhZQsApgmAviDQKTcUZ7AAYLoA6AMCjWt6S62lBQBrRTQ6Q5fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Al="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Dl=s((({value:l,urlPath:o="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:C,Image:y}=p(),S=i((()=>f("txt",...g)),[g]);return e(C,{onClick:()=>b(o),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(C,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(y,{src:Tl,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,{className:S,style:{color:t,display:"inline-block",fontSize:h},children:l})]})})})),Vl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"],urlPath:g="search"})=>{const{View:N,Image:C}=p(),y=i((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>b(g),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(N,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(N,{style:{width:"80%"},children:[e(C,{src:Tl,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:y,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(N,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Ll=s((({placeholder:l,placeholderText:o,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>y()),[]),{View:f,Text:S,Input:k}=p(),[v,I]=t((()=>w("history")||[])),[B,T]=t(""),A=e=>{b(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:Tl,alt:""}),e(k,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:B,onInput:e=>T(e.detail.value),onConfirm:e=>ta(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const l=a.concat(g.current.value||e.detail.value);return x("history",l),l}return a})),A(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(S,{className:"btn",onClick:()=>{const e=B.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return x("history",l),l}return a})),A(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(ea,{onClick:()=>ta(void 0,void 0,void 0,(function*(){(yield C()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:v.map(((a,l)=>e(f,{onClick:()=>A(a),className:"historyItem",children:a},l)))})]}):null]})})),Pl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:C,paddingLeft:y,paddingRight:S,goodsName:w=!0,goodsPrice:x=!0,goodsCar:k=!0,goodsBorder:v=!0,goodsShadow:B=!1,marginGap:T=10})=>{const[L,P]=t(l),R=c(),{View:M,Text:O}=p();return n((()=>{V(R.current,u)||(R.current=u,D(u)?P(l):ta(void 0,void 0,void 0,(function*(){try{const e=yield I({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=A(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:C},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:S},children:L.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:v?"1px solid #000000":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${He(l.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:w?"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?ca(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ca(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:k?"block":"none"},children:e(ea,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Rl=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:C,marginRight:y})=>{const{View:S}=p(),{list:w}=$({defaultValue:l,goods:o},i);return e(S,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:C,marginRight:y},children:w.map(((l,o)=>a(S,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(S,{className:"img",style:{backgroundImage:`url(${He(l.dataPic)})`}}),a(S,{className:"board",children:[e(S,{className:"title",children:l.goodsName}),a(S,{className:"info",children:[a(S,{className:"lPart",children:[s?e(S,{className:"price",children:ca(l.pricesetNprice)}):null,t?e(S,{className:"marketPrice",children:ca(l.pricesetMakeprice)}):null]}),n?e(S,{className:"rPart",children:e(ea,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Ml=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:C,btnRadius:S})=>{const w=i((()=>y()),[]),{list:x}=$({defaultValue:l,goods:o},m),{SmoothSwiper:k,View:v,Image:I}=p(),[B,T]=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=>{T(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(v,{className:["goodsSlideshowItem",""+(l.goodsCode===x[B].goodsCode&&w?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:He(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:ca(l.pricesetNprice)}):null,n?e(v,{className:"marketPrice",children:ca(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:f,color:C,borderRadius:S},children:N})]})})]})})),Ol=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:n=""}=q(o,s),i=Z.getState();Z.setState(Object.assign(Object.assign({},i),{memberCode:n})),console.log(24,n);const c=X(t);return e(Ca,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},zl=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:n}=J(l);return a(s,{onClick:t,children:[D(n.dataObj)?e(ea,{value:"star-fill",style:{fontSize:20}}):e(ea,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:D(n.dataObj)?"收藏":"已收藏"})]})},Fl=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:o,goodsName:s})=>{if(!y())return;return"WEB"===C().getEnv()?e(Yl,{goodsName:s,shareShow:a,setShareShow:l,rsGoodsFileDomainList:o}):e(Wl,{goodsName:s,shareShow:a,setShareShow:l,rsGoodsFileDomainList:o})},Yl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r}=ae(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",onClick:e=>{e.stopPropagation()},children:[e(n,{className:"share-canvas",style:{height:580},children:e("canvas",{ref:r,width:300,height:580,style:{width:"300px",height:"580px"}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Wl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Canvas:i,Image:c,Button:r}=p(),{save:d}=le(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",onClick:e=>{e.stopPropagation()},children:[e(n,{className:"share-canvas",children:e(i,{"canvas-id":"canvas",style:{width:"300px",height:"570px",position:"fixed",zIndex:999}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(r,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:d,children:e(r,{className:"txt",children:"保存图片"})})]})]}):null})},Gl=({skuCode:l,priceShow:o,collectionShow:s,scene:n})=>{const[i,c]=t(!1),{View:r,SmoothView:d,Canvas:m,Image:h,Button:u,IconMobile:g}=p(),{rsSkuDomainList:N,rsGoodsFileDomainList:f}=q(l,n),{goodInfo:b}=_(N);ee(l);return a(r,{className:"goodsDetail-topInfo",children:[i&&e(Fl,{goodsName:b.goodsName,shareShow:i,setShareShow:c,rsGoodsFileDomainList:f}),a(r,{className:"lPart",children:[e(d,{className:"name",children:b.goodsName}),a(r,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(r,{style:{display:"flex",flexDirection:"column"},children:[a(d,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ca(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ca(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ca(.9*b.pricesetNprice)]})]}),e(u,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>c(!0),children:"生成海报"}),e(r,{onClick:e=>{e.stopPropagation(),(()=>{const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(g,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(r,{className:"rPart",style:{display:s?"flex":"none"},children:e(zl,{goodsName:b.goodsName,pricesetNprice:b.pricesetNprice,dataPic:He(b.dataPic),skuCode:l})})]})},jl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=J(l),{handleShare:c}=oe();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:D(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),El=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,n),{goodInfo:d}=_(r);return se((e=>e.spec)),ee(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ca(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(jl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:He(d.dataPic),skuCode:t})]})})),Hl=s((()=>{const{Text:e}=p(),l=se((e=>e.count)),o=se((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),Ul=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=te(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Hl,{}),e("img",{src:Al,alt:"",className:"icon"})]})]})})},Kl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=q(l,o),{goodInfo:i}=_(n),c=ne(n,i.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},l)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},Ql=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ie(),N=i((()=>c-r),[c,r]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(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:"已领完"})]})})})),$l=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},ql=o=>{var{skuCode:s,scene:t}=o;sa(o,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ce(d,h.skuCode);return a(l,{children:[a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:Al,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(Ra,{children:u.length>0?u.map(((e,a)=>m(Ql,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e($l,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Zl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:i}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{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(i,{children:c.map(((a,l)=>e(ea,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Xl=({item:l})=>{const{View:o,Image:s,Text:t}=p();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Zl,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},Jl=({evaluateArr:l})=>{const{View:o}=p();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e(Xl,{item:a},l)))]}):e(sl,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},_l=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>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||""}})})},eo=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(l,{children:d.map(((l,t)=>e(h,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},ao=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(n,i),u=re(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(eo,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(_l,{goodsRemark:m}):e(Jl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},lo=({skuName:l,handleChooseSize:o,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=p(),r=se((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(i,{className:f({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)))})]})},oo=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=se((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),so=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n})=>{const{Image:i,View:c}=p(),{skuList:r}=o,d=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ca(n.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(i,{src:He(n.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:n.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",n.goodsSupplynum||"100"]})]})]}),r.map(((a,l)=>e(lo,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},to=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=se((e=>e.isNeedButton)),r=se((e=>e.offShelf));return r?e(i,{className:f({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(l,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:o,children:"立即购买"})]})})},no=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=de(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(Ra,{children:e(i,{children:a(n,{className:"content",children:[e(so,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(oo,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(to,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),io=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(no,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},co=s((({serverShow:o,cartShow:s,lPartShow:t,lPartColor:n,lPartBgColor:i,lPartStyle:c,rPartColor:r,rPartBgColor:d,rPartStyle:m,rPartText:h,dispatchPageStore:u,skuCode:g,platform:N,scene:f})=>{const{View:C,IconMobile:y,Text:S}=p(),w=se((e=>e.offShelf)),{rsSkuDomainList:x,goodPro:k}=q(g,f),{goodInfo:v}=_(x),{servicePopup:I}=na(N),{addCardPopup:B,buyOpenPopup:T}=te(u);return a(C,{className:"goodsDetailHandleBar",children:[a(C,{className:"linkGroup server",onClick:I,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"客服"})]}),a(C,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:s?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(C,{className:"txt",children:"购物车"})]}),e(C,{className:"goods-detail-btn-group",children:w?e(C,{className:"btn addCart offShelf",children:e(S,{className:"btn",children:"已下架"})}):a(l,{children:["26"===k||!1===t?null:e(C,{className:"btn addCart",onClick:B,style:{color:n,backgroundColor:i,borderTopLeftRadius:c,borderBottomLeftRadius:c},children:"加入购物车"}),e(C,{onClick:T,className:"btn buy",style:Object.assign({color:r,backgroundColor:d,borderTopRightRadius:m,borderBottomRightRadius:m},!1===t?{borderTopLeftRadius:m,borderBottomLeftRadius:m}:{}),children:h||("10"===v.goodsPro?"预售抢购":"立即购买")})]})})]})})),ro=o=>{var{$_dataSource:s={},dispatchPageStore:t=L,skuCode:n,scene:i}=o,c=sa(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m),{popupVisible:p}=s;return a(l,{children:[e(co,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(io,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},mo=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:C}=p(),{rsSkuDomainList:y}=q(u,g),{goodInfo:S}=_(y),{servicePopup:w}=na(N),{addCardPopup:x,buyOpenPopup:k}=te(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:w,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:()=>b("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:n,borderRadius:1===i?"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"===S.goodsPro?"预售抢购":"立即购买"})]})]})})),ho=o=>{var{popupVisible:s=!1,dispatchPageStore:t=L,skuCode:n,scene:i}=o,c=sa(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m);return a(l,{children:[e(mo,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(io,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},po=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],uo=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(po);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===m?"active":""),onClick:()=>((e,a,o)=>{i(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ea,{style:{color:n===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ea,{style:{color:n===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},go=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:n=!0,goodsPrice:c=!0,lineationGoods:r=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:h=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:C={}})=>{console.log(111,C);const{View:b,Loading:y,SmoothView:S,Image:w,ScrollView:x,IconMobile:k}=p(),[v,I]=t({}),{loading:B,getData:T,list:A}=he(l,o,v),D=i((()=>f("textBox",{btm:!c&&!r})),[c,r]),V=i((()=>f("name",{boxNone:!n})),[n]),L=i((()=>f("middle_margin",{boxNone:!d})),[d]),P=i((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=i((()=>f({detailContent:!(V.includes("boxNone")&&L.includes("boxNone")&&P.includes("boxNone"))})),[V,L,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(uo,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Ra,{id:"listWrap",children:a(x,{onScroll:()=>T(v),children:[e(b,{className:"list",style:{gap:g},children:A.map((l=>a(b,{onClick:()=>qe(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(w,{src:He(l.dataPic),className:"img"}),a(b,{className:R,children:[e(S,{className:V,children:l.goodsName}),a(b,{className:L,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:D,children:[e(S,{className:"price",style:{display:c?"block":"none"},children:ca(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:ca(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]})})})]})})),No=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=pe(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},fo=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),Co=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ra,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(fo,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},bo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",t," X ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ca(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),yo=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{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(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>b("goodDetail",{skuCode:s})})]})})),So=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),wo=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{children:[a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(Co,{promotionCode:c,onChange:e=>{m(!1),s(n,ge(e))},promotion:o||[],visible:d,setVisible:m})})]})},xo=s((l=>{var{item:o}=l,s=sa(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(So,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(yo,{dataState:o.dataState,dataPic:He(o.dataPic),skuCode:o.skuCode}),e(bo,Object.assign({},o,s))]})})),ko=o=>{var{shoppingGoodsList:s=[]}=o,t=sa(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(xo,Object.assign({},t,{item:l})),l.pmPromotionList?e(wo,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},vo=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>D(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>qe(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}),n]})},Io=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:o}),l&&e(vo,{link:t,disNextMsg:l})]})},Bo=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:C,handleStep:b,updatePm:y}=ue(o,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:C,children:f.length?e(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Io,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(ko,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(sl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},To=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=l,{toOrderImpl:C,deleteCart:b,clearAll:y,selectAll:S,ids:w,cartDetail:x}=Ne(N,u,o),k=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:S,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[w.length?e(r,{onClick:y,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ca(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ca(x.amount)})]})]}),a(r,{onClick:C,className:"btn",style:k,children:["结算(",x.num,")"]})]})]})},Ao=({address:a})=>e(l,{children:D(a)?e(Vo,{}):e(Do,{address:a})}),Do=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,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:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Vo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Lo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",longContractgoodsBeanStr:t=""})=>{const{View:n}=p(),i=fe(a,o,l,s,t);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>b("addressList"),children:e(Ao,{address:i})})},Po=({address:a})=>e(l,{children:D(a)?e(Mo,{}):e(Ro,{address:a})}),Ro=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Mo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Oo=({refreshNum:a})=>{const{View:l}=p(),o=Ce(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>b("pickupPointList"),children:e(Po,{address:o})})},zo=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,n)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Fo=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:i="",longContractgoodsBeanStr:c=""})=>{const{View:r,Text:d}=p(),[m,h]=t("0");return n((()=>{be.contractPumode=m}),[m]),a(r,{className:"placeOrderAddressTabs",children:[a(r,{className:"delivery-header",children:[e(d,{className:"delivery-label",children:"配送方式:"}),e(r,{className:"tabs",children:e(zo,{tabActive:m,setTabActive:h})})]}),e(r,{className:"content",children:"0"===m?e(Lo,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,longContractgoodsBeanStr:c}):e(Oo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Yo=s((({couponStart:l,pbName:o,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Wo=s((({couponStart:l,pbName:o,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Go=({refreshNum:o,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:u,Popup:g,Form:N,SmoothRadio:f,Button:C,SmoothCheckbox:b,ScrollView:y,Radio:S,Image:w}=p(),{shoppingGoodsList:x}=ye({refreshNum:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:k,visible:v,couponValue:I=[],setVisible:B,selectCoupon:T,onChange:A,onCreditChange:D,confirmImpl:V,resetImpl:L,contractPmode:P,onPayChange:R,payList:M,payName:O,creditList:z,creditInfo:F,selectCredit:Y,creditVisible:W,payVisible:G,setPayVisible:j,handleChooseImg:E,contractEcurl:H,setCreditVisible:U}=Se(x,s);return a(l,{children:[x.some((e=>"06"===e.goodsType))?null:a(l,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==k.length),children:[e(u,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(u,{className:"label",children:T?`已选择: ${T}`:0===k.length?"暂无可用优惠券":"请选择优惠券"}),0===k.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>j(!0),children:[e(u,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(u,{className:"label",children:O?`已选择: ${O}`:"请选择支付方式"}),0===k.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]})]}),F.urechargeId&&"0"===P&&a(h,{className:"coupon-select",onClick:()=>U(0!==z.length),children:[e(u,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(u,{className:"label",children:Y?0===+Y?"不使用":`已选择: ${Y}%`:"请选择授信"}),0===k.length?null:e("img",{src:Al,alt:"",className:"icon"})]})]}),"1"===P&&a(h,{className:"coupon-select",children:[e(u,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:E,children:H?e(w,{src:H,className:"img",alt:H,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(g,{popupVisible:G,popupHandler:j,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ra,{children:e(y,{children:e(f,{value:P||"",onChange:R,children:(null==M?void 0:M.length)>0&&M.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{checked:l.ptfpmodeType===P,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(g,{popupVisible:W,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ra,{children:e(y,{children:e(f,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(g,{popupVisible:v,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ra,{children:e(y,{children:s?e(b,{value:(null==I?void 0:I.length)>0?I.map((e=>e.couponNo)):[],onChange:A,children:(null==k?void 0:k.length)>0&&k.map((e=>m(Yo,Object.assign({isDisabled:2===I.length},e,{key:e.couponNo}))))},"visible"):e(f,{value:(null==I?void 0:I.length)>0?I[0].couponNo:"",onChange:A,children:k.map(((e,a)=>m(Wo,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(C,{className:"operate reset",onClick:L,children:"重置"}),e(C,{className:"operate",onClick:V,children:"确认"})]})]})})]})},jo=({shippingMethod:l=1})=>{const{View:o}=p();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},Eo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=ye({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Ua,Object.assign({},a),o)))})))})},Ho=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=ye({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:C,disCount:b,creditMoney:y,freight:S,payPrice:w,rebMoney:x}=f,k=f.pointsDeduction||0,v=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:B,changeContent:T,shoppingType:A,pricesetRefrice:D}=we(C),V=ca(Math.max(w-y,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===A?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ca(I)})]}),null!==k&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===A?k+"积分":ca(k)]})]}),"06"===A?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ca(v)]})]}),"06"===A?null:a(l,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ca(-y)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ca(-x.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ca(-(B+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ca(S)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:T})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":V})]})]})})},Uo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:C,payState:b,creditMoney:y,ocContractSettlList:S,pointsDeduction:w}=ye({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:x,loading:k}=xe({ocContractSettlList:S,payState:b,list:C,goodsBeanStr:r},d,Math.max(f-y,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const v=ca(Math.max(f-y,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",r?"0.00":v]}),e(N,{loading:k,children:e(u,{className:"btn",onClick:x,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},Ko=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:C,SmoothRadio:b}=p(),{paymentImpl:S,channelList:w,contract:x,handleRadio:k,loading:v}=ke({contractBillcode:l,contractBbillcode:o});return n((()=>{console.log("打印下当前的channelList",w)}),[]),a(u,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(f,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",x.current.contractBillcode," | 总金额:",ca(x.current.contMoney+(x.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ca(x.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(b,{onChange:k,children:null==w?void 0:w.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:["支付金额:",ca(x.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(C,{loading:v,children:e(u,{className:"btnGroup",onClick:S,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Qo=({dataObj:l})=>{const{View:o,Text:s}=p();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ca(l.dataBmoney)})]})]})},$o=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:n,leftBorderRadius:i,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:y,WrapLoading:S}=p(),{result:x,loading:k}=ve(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(y,{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(Qo,{dataObj:x.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>b(x.menuCode,{contractBillcode:x.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${n}`,borderRadius:1===i?"20px":"0px"},children:x.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>b(r.value),className:"btn white",children:c})]})]})})})})),{Button:qo}=g,Zo=a=>{var{dataState:o}=a,s=sa(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Xo,Object.assign({dataState:o},s))})},Xo=a=>{var{dataState:l,contractAppraise:o,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=sa(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:m,handlerImpl:h}=Ie(Object.assign({dataState:l,contractAppraise:o,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,l)=>e(qo,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:l<m.length-1,black:l===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},l)))})},{Button:Jo}=g,_o=({contractPaydate:a,init:o,countdownCancel:s,contractId:i})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,i]=t("");return n((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,n=s.getTime()-(t.getTime()-3600);n<999&&n>0?l(o).then((()=>{a()})):n>1e3&&i(da(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,i);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function es({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:n,contractId:i,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:u,countdownCancel:g}){const{View:N}=p(),f=Be(n,r);return a(N,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(N,{children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",l,e(Jo,{className:"copy",size:"mini",fill:"outline",onClick:e=>{e.stopPropagation(),e.preventDefault(),Je.setClipboardData({data:l,success:()=>{Je.showToast({title:"复制成功",icon:"success",duration:1e3})},fail:e=>{Je.showToast({title:"复制失败",icon:"error",duration:1500})}})},children:"复制"})]}),e(N,{className:"status",children:f})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>b("orderDetail",{contractBillcode:l}),children:t.map((a=>e(Ua,Object.assign({},a,{dataState:n,children:1===n&&e(_o,{contractPaydate:h,init:c,countdownCancel:g,contractId:i})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",ca(o)]})]}),e(Zo,{init:c,contractType:u,contractId:i,contractBillcode:l,dataState:n,contractAppraise:r,dataBmoney:o})]})}const as=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ls=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=p(),{onScroll:d,data:h,loading:u,init:g,countdownCancel:N}=Te(l,o,n);return e(i,{className:"orderListItemWrap",children:e(Ra,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(es,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:u?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(as,{}),e(i,{className:"nodata-btn",onClick:()=>b("goodList"),children:"前往购物"})]})})})})})),os=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:n,Tabs:i}=p();return e(n,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:Ae,render:l=>e(n,{className:"orderList",children:e(ls,{contractType:t,item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:ss}=g,ts=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=i((()=>y()),[]);return e(ss,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=C();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?"已复制":"复制"})})),ns=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:C,handleApplyBtn:y,creditMoney:S,packageRemark:w}=De(o||""),x=e=>Ze(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Be(C.dataState)?e(ea,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Be(C.dataState)})]}),e(g,{className:"subTitleWrap",children:x(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(ea,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:C.goodsReceiptMem}),e(N,{className:"personPhone",children:C.goodsReceiptPhone})]}),e(g,{className:"address",children:C.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[C.goodsList.map((o=>a(l,{children:[e(Ua,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{b(u,{skuCode:o.skuCode})},children:"商品快照"}),Number(C.dataState)>1&&Number(C.dataState)<5&&"06"!==C.contractType?e(g,{className:"orderBtn maxWidth",onClick:y.bind(null,o,C.dataState),children:"申请退款(取消订单)"}):""]}))),e(g,{className:"priceInfo",children:"06"!=C.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",C.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((C.dataBmoney-C.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",C.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-C.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(l,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:"韵达快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===C.contractPumode?"自提":"快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:"未开票"})]})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",C.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:w||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(ts,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:x(C.gmtCreate)})]}),"06"!=C.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ca(-S)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===C.contractPmode?"线上支付":"线下支付"})})]}),"1"===C.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:He(C.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Zo,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:C.contractBillcode,contractId:C.contractId,contractType:C.contractType,dataState:C.dataState,dataBmoney:C.dataBmoney})})]})})]})})),is=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=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(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},cs=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=A(o,"message",l.message),n=A(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.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})})},rs=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Ve(l);return a(s,{className:"expressInfo",children:[e(is,{info:t,detail:n,stateObj:i,defaultValue:o}),e(cs,{detail:n,defaultValue:o})]})})),ds=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=na(),[N,f]=t(c),[C,y]=t(i);return n((()=>{f(w("userNickname")),y(w("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>b("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>b("/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"}})]})]})})),ms=s((({title:l,columnList:o})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({});n((()=>{ta(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?b("orderlist",{indexId:a+1}):b("afterSalesList")};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>b("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:h.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),hs=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>b(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:He(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),ps=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{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(i,{src:a.imgUrl,className:"img"},l)))})]})},us=[{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"}]}],gs=s((()=>{const[o,s]=t("1"),{View:n}=p(),i=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(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:us.map(((a,l)=>e(ps,{itemData:a},l)))})]})})),Ns=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,buttonBorderRadius:i,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Le(l),{Button:C}=g,{View:b,Image:y,TextArea:S,Textarea:w}=p(),x=w||S,k=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:He(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:l.goodsName}),e(b,{className:"goodsSize",children:l.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(Zl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(x,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(C,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),fs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Pe(l),{Button:N}=g,{View:f,Image:C,Text:b}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(C,{src:He(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Zl,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),m.length&&i?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),Cs=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.collectOpcode}),children:[e(n,{src:He(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},bs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Ra,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map((a=>e(Cs,{item:a,edit:o,checked:r},a.collectId)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),ys=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("merchantShop",{memberCode:l.collectOpcode}),children:[e(n,{src:He(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},Ss=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(Ra,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map(((a,l)=>e(ys,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),ws=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(n,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:He(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},xs=({item:o,edit:s})=>{const{View:t}=p();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(ws,{footprintItem:a,edit:s},l)))]})},ks=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(xs,{item:a,edit:o},l)))})},vs=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Me();return e(n,{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(Ra,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{onChange:d,children:e(ks,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Is=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:C}=Oe(),b=Ze(),y=b.format("YYYY-MM-DD"),S=i((()=>u.includes(y)),[u,y]),w=i((()=>{const e=b.year(),a=b.month(),l=Ze(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[b,u]),x=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:x})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:w.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:S||f,onClick:C,style:{backgroundColor:o,opacity:S?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":S?"已签到":l})]})]})})})),Bs=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Ze())),[g,N]=t(!1),[f,C]=t((()=>Ze().year())),[b,y]=t((()=>Ze().month()+1)),{signinDetails:S,loading:w,refresh:x}=ze(h),k=i((()=>h.format("YYYY年MM月")),[h]),v=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>S.sort(((e,a)=>Ze(a.date).valueOf()-Ze(e.date).valueOf()))),[S]);return e(m,{loading:w,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:l}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;C(e),y(a),N(!0)},children:[e(r,{className:"dateText",children:k}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((l,s)=>{const t=Ze(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{C((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{C((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:v.map((l=>e(c,{className:"monthItem "+(b===l?"active":""),onClick:()=>(e=>{y(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:b===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),Ts=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],As=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:Ts.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),Ds=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,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:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Vs=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[n,i]=t(Ts[0].val),{list:c,getData:r}=Fe({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(As,{activeColor:l,setParams:i,params:n}),e(d,{children:e(Ra,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Ds,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Ls=()=>{const{View:a,Image:l}=p();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Ps=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Ze(o.gmtModified).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",Ze(o.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Ls,{})})},Rs=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ye();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(Ra,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ps,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),Ms=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=We({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=A(l,"pbName"),h=A(l,"pmPromotionDiscountList"),p=A(h.at(-1),"discName"),g=A(l,"promotionName"),C=Ze(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(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:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},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)}))})})),Os=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:C}=We({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=A(l,"pbName"),h=A(l,"pmPromotionDiscountList"),p=A(h.at(-1),"discName"),u=A(l,"promotionName"),N=Ze(A(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(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:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),e(g,{className:"info",style:{color:r},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:n},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)}))})})),zs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=sa(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(Ms,Object.assign({coupons:s},t)):null,2===o?e(Os,Object.assign({coupons:s},t)):null]})})),Fs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=Ge(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},Ys=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=je(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{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(i,{className:"content",children:r.noticeContext})]})})),Ws=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=Ee(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(Ra,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Ze(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{rl as AddressDetail,tl as AddressList,nl as AddressListBtn,Fa as AfterSalesApply,Za as AfterSalesDetail,Ha as AfterSalesList,el as AfterSalesType,Vs as AllPromotionList,Ws as ArticleDetail,Aa as BackTop,Bo as CartList,To as CartOperate,No as CartTop,wa as ClassifyNav,va as ClassifyNavOne,ka as ClassifyNavOneJsx,Ta as ClassifyNavThree,Ia as ClassifyNavTwo,bs as CollectionList,Ss as CollectionShopList,Rs as CouponList,Va as Cube,Ns as EvaluateDetail,gs as EvaluateList,fs as EvaluateViewDetail,rs as ExpressInfo,vs as FootPrint,zs as GetCouponOne,Pl as Goods,Cl as GoodsClassify,xl as GoodsClassifyOne,Bl as GoodsClassifyTwo,ao as GoodsDetailAndEvaluate,Ol as GoodsDetailBanner,ql as GoodsDetailCoupon,ro as GoodsDetailHandleBar,ho as GoodsDetailHandleBarOne,Gl as GoodsDetailInfo,El as GoodsDetailInfoOne,Kl as GoodsDetailPromotion,Ul as GoodsDetailSku,go as GoodsList,Rl as GoodsSlider,Ml as GoodsSlideshow,oa as Line,Is as MemberSignin,ds as MineData,hs as MineFunction,ms as MineOrderEntry,dl as MyAgreementList,hl as MySetting,ml as MySettingJsx,Fs as Notice,Ys as NoticeDetail,ns as OrderDetail,os as OrderList,Ko as PaymentMode,ul as PickupPointList,Lo as PlaceOrderAddress,Fo as PlaceOrderAddressTabs,Go as PlaceOrderCoupon,jo as PlaceOrderDelivery,Eo as PlaceOrderGood,Ho as PlaceOrderInfo,Uo as PlaceOrderOperate,$o as PlaceOrderResult,ea as QjMobileIcon,Dl as Search,Ll as SearchPage,Vl as SearchStyleTwo,_e as Service,Bs as SigninDetail,ba as Slider,la as TextLine,aa as Title,ma as ToPrice,ya as Video,gl as WechatAddressBtn,ia as addressIdConst,ca as fixPrice,ra as fixPrice1,da as formatTime,na as useService};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.9.998",
3
+ "version": "2.0.0",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [