s-material-react 1.3.32 → 1.3.33

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.
@@ -24,6 +24,7 @@ export * from './ExpressInfo';
24
24
  export * from './AddressList';
25
25
  export * from './AddressDetail';
26
26
  export * from './PlaceOrder';
27
+ export * from './PlaceOrderResult';
27
28
  export * from './CouponList';
28
29
  export * from './Cart';
29
30
  export * from './Mine';
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{memo as c,useState as t,useRef as i,useEffect as n,useMemo as l,createElement as o,Fragment as r}from"react";import{useComponent as d,NoticeBar as g,antdMobile as m,IconMobile as h}from"@brushes/simulate-component";import{navigatorHandler as p,getEnv as b,getStorage as u,getTaro as N,useImmutableCallback as O,navigatorBackImpl as j,setStorage as C,updatePagesRefreshStore as f,getPagesRefreshStore as k}from"@brushes/utils";import{find as y,queryOcsconfigList as w,queryContractPageC as I,getContractNumbers as A}from"qj-b2c-api";import v from"classnames";import{isEqual as x,isEmpty as S,isUndefined as V,get as B,groupBy as T}from"lodash-es";import{useNotice as D,useCube as P,useOrderOperate as L,orderStatusImpl as R,orderStatusList as z,useOrderDetail as M,useGoodCollection as F,useGoodDetail as W,useBanner as G,useAddShopping as H,useGoodSku as E,usePromotion as Q,useAddCoupon as U,useCoupon as q,useEvaluate as K,goodsDetailStore as Z,useGoodsClassify as Y,useGoodsList as X,useEvaluateDetail as J,useExpressInfo as $,userAddressData as _,useAddressList as ee,useEditAddress as se,useOrderAddress as ae,useOrderGood as ce,useOrderCoupon as te,useOrderInfo as ie,useOrderPay as ne,useCouponList as le,useStore as oe,useCartItem as re,StoreProvider as de,useCartList as ge,useOrderResult as me,useFootprint as he,useCollectionList as pe,useNoticeDetail as be,useArticleDetail as ue}from"qj-mobile-store";import Ne from"dayjs";import Oe from"china-division/dist/provinces.json";import je from"china-division/dist/cities.json";import Ce from"china-division/dist/areas.json";function fe(e,s){var a={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&s.indexOf(c)<0&&(a[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(c=Object.getOwnPropertySymbols(e);t<c.length;t++)s.indexOf(c[t])<0&&Object.prototype.propertyIsEnumerable.call(e,c[t])&&(a[c[t]]=e[c[t]])}return a}function ke(e,s,a,c){return new(a||(a=Promise))((function(t,i){function n(e){try{o(c.next(e))}catch(e){i(e)}}function l(e){try{o(c.throw(e))}catch(e){i(e)}}function o(e){var s;e.done?t(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(n,l)}o((c=c.apply(e,s||[])).next())}))}const ye=({className:s="iconfont",prefixClass:a="icon",onClick:c=(()=>{}),style:t={fontSize:16,color:"#444",fontWeight:900},value:i})=>{const{Text:n}=d();return e(n,{onClick:c,className:v(a,i?`${a}-${i}`:"",s),style:t})},we=c((({defaultValue:a=[],classCode:c="",margin:l,circular:o,cell:r,showSales:g,gap:m=10,goods:h=[],markedPrice:b,paddingTop:u,paddingBottom:N,paddingLeft:O,paddingRight:j})=>{const[C,f]=t(a),k=i(),{View:w,Text:I}=d();return n((()=>{console.log(53,y,k.current,h),x(k.current,h)||(k.current=h,S(h)?f(a):ke(void 0,void 0,void 0,(function*(){try{const e=yield y({goodsCode:h.toString(),distinctField:"goodsNo"});console.log(63,e),f(e.rows)}catch(e){f(a)}})))}),[h]),e(w,Object.assign({style:{paddingTop:u,paddingBottom:N}},{children:e(w,Object.assign({className:v({[`goods-${c}`]:!0}),style:{display:"grid",gap:m,marginBottom:l,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:O,paddingRight:j}},{children:C.map(((a,c)=>s(w,Object.assign({style:{overflow:"hidden",borderRadius:2===o?0:"8px"},onClick:()=>p("goodDetail",{skuCode:a.skuCode}),className:"goods"},{children:[e(w,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(w,Object.assign({className:"space"},{children:[e(w,Object.assign({className:"titleType"},{children:a.goodsName})),e(w,Object.assign({className:"subTitle"},{children:a.brandName})),g&&s(w,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(w,Object.assign({className:"price"},{children:[e(I,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===b&&s(I,Object.assign({className:"markedPrice"},{children:[e(I,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(w,Object.assign({className:"anticon"},{children:e(ye,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),Ie=({direction:s,speed:a,num:c,color:t})=>{const{content:i,navigator:n}=D(c);return e(g,{navigator:n,color:t,speed:a,direction:s,content:i})},Ae=c((({value:s,textIndent:a,fontSize:c,textAlign:t,color:i,backgroundColor:n,fontWeight:l,textDecoration:o,fontStyle:r,paddingTop:g,paddingLeft:m,paddingRight:h,paddingBottom:p})=>{const{View:b}=d();return e(b,Object.assign({className:"components-title",style:{paddingTop:g,paddingBottom:p}},{children:e(b,Object.assign({style:{fontSize:c,textAlign:t,color:i,backgroundColor:n,fontWeight:l,textDecoration:o,fontStyle:r,paddingLeft:m,paddingRight:h,textIndent:a}},{children:s}))}))})),ve=c((({defaultValue:s,type:a,borderRadius:c,outerShadow:t,paddingRight:i,paddingLeft:n,picGap:l,xGap:o,paddingTop:r,paddingBottom:g,selectImg:m})=>{const{View:h,Image:b}=d(),u=P(s,m);return e(h,Object.assign({style:{paddingTop:r,paddingBottom:g,paddingLeft:o,paddingRight:o}},{children:e(h,Object.assign({className:`cube-type${a}`,style:{paddingLeft:n,paddingRight:i,gap:l}},{children:u.map(((s,i)=>e(b,{className:"block "+(t?"outer-shadow":""),mode:1===a?"widthFix":"scaleToFill",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:()=>{var e,a;return p(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},i)))}))}))})),xe=c((({borderStyle:s,borderRadius:a,height:c,width:t,backgroundColor:i,paddingTop:n,paddingBottom:l})=>{const{View:o}=d();return e(o,Object.assign({style:{paddingTop:n,paddingBottom:l}},{children:e(o,{style:{borderRadius:a+"%",borderStyle:s,width:t+"%",height:c+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})}))})),Se=c((({url:s,poster:a,autoplay:c,loop:t,paddingTop:i,paddingBottom:n,paddingLeft:l,paddingRight:o})=>{const{View:r}=d();return e(r,Object.assign({style:{paddingTop:i,paddingBottom:n}},{children:e("video",{className:"components-video",src:"https://www.runoob.com/try/demo_source/movie.ogg",poster:a,autoPlay:c,loop:t,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:o}})}))})),Ve=c((({width:s,height:a,top:c,right:t,bottom:i,left:n,borderRadius:l})=>{const{View:o}=d();return e(o,{style:{width:s,height:a,borderRadius:l,top:c,left:n,right:t,bottom:i},className:"components-service"})})),Be="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",Te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",De=c((({value:a,iconShow:c,fontColor:t,backgroundColor:i,borderRadius:n,paddingLeft:l,paddingRight:o,sticky:r,fontsize:g,paddings:m,otherStyles:h})=>{const{View:b,Image:u}=d();return e(b,Object.assign({onClick:()=>p("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:o},className:r?"boxpositon":""},{children:s(b,Object.assign({className:"components-search",style:{backgroundColor:i,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(u,{src:Be,alt:"",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,Object.assign({className:[`txt ${h.includes("weight")?"weight":""} ${h.includes("italic")?"italic":""} ${h.includes("decoration")?"decoration":""} `],style:{color:t,display:"inline-block",fontSize:g}},{children:a}))]}))}))})),Pe=c((({value:a,iconShow:c,fontColor:t,backgroundColor:i,borderRadius:n,paddingLeft:l,paddingRight:o,sticky:r,fontsize:g,paddings:m,otherStyles:h})=>{const{View:b,Image:u}=d();return e(b,Object.assign({onClick:()=>p("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:o},className:r?"boxPosition":""},{children:s(b,Object.assign({className:"components-search",style:{border:`1px solid ${i}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"}},{children:[s(b,Object.assign({style:{width:"80%"}},{children:[e(u,{src:Be,alt:"",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,Object.assign({className:[`txt ${h.includes("weight")?"weight":""} ${h.includes("italic")?"italic":""} ${h.includes("decoration")?"decoration":""} `],style:{color:t,display:"inline-block",fontSize:g}},{children:a}))]})),e(b,Object.assign({className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:g,backgroundColor:i,width:"20%",color:t}},{children:"搜索"}))]}))}))})),Le=c((({item:s})=>{var a,c;const{Image:t}=d();return e(t,{mode:"scaleToFill",src:s.imgUrl,style:{width:"100%",height:"100%"},onClick:p.bind(null,null===(a=s.link)||void 0===a?void 0:a.value,null===(c=s.link)||void 0===c?void 0:c.params)})})),Re=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:t,direction:i,loop:n,paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g,selectImg:m,vertical:h,imgHeight:p})=>{const{SmoothSwiper:b,View:u}=d(),N=P(s,m||[]);return e(u,Object.assign({style:{paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g}},{children:e(b,{imgHeight:p,data:N,type:a,autoplay:c,autoplayInterval:t,direction:i,loop:n,interval:5e3,vertical:h,render:s=>e(Le,{item:s})})}))})),{JumboTabs:ze}=m,Me=c((({defaultValue:s=[],type:a,selectGoodsGroup:c=[],marginTop:i,marginBottom:l,borderRadius:o})=>{const[r,d]=t(s);return n((()=>{const e=c.filter((e=>!V(e))).filter((e=>!Object.values(e).every((e=>V(e)))));let a=s;S(e)||(a=e),d(a)}),[c]),e(ze,Object.assign({style:{marginTop:i+"px",marginBottom:l+"px"}},{children:r.map(((s,a)=>e(ze.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(we,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:o})}),a)))}))})),Fe=b(),We=()=>{const[e,s]=t([]);n((()=>{ke(void 0,void 0,void 0,(function*(){const e=u("service");if(e)s(a(e));else{const e=yield w();s(a(e))}}))}),[]);const a=e=>{let s=[];for(let a=0;a<e.length;a++){const c=e[a].ocsOcserviceReDomain;s.push(`${c.ocserviceName}: ${c.ocserviceRemark}`)}return s};return{servicePopup:()=>{if(!Fe)return;N().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},Ge=(e=0)=>e?"¥ "+ +e.toFixed(2):0,He=({dataPic:a,goodsName:c,goodsCamount:t,pricesetNprice:i,skuName:n,skuCode:o})=>{const{View:r,Image:g,SmoothView:m}=d(),h=Ge(i),b=l((()=>t?`x ${t}`:""),[t]);return s(r,Object.assign({className:"card-item",onClick:()=>p("goodDetail",{skuCode:o})},{children:[e(g,{src:a,alt:"",className:"card-item-img"}),s(r,Object.assign({className:"card-item-info"},{children:[s(r,Object.assign({className:"card-item-info-container"},{children:[e(m,Object.assign({className:"card-item-info-container-title"},{children:c})),e(m,Object.assign({className:"card-item-info-container-price"},{children:h}))]})),s(r,Object.assign({className:"card-item-info-sub"},{children:[e(m,Object.assign({className:"sku"},{children:n})),e(m,Object.assign({className:"count"},{children:b}))]}))]}))]}))},{Button:Ee}=m,Qe=s=>{var{dataState:c}=s,t=fe(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(Ue,Object.assign({dataState:c},t))})},Ue=s=>{var{dataState:a,contractAppraise:c,color:t,borderColor:i,btnColor:n,btnShape:l}=s,o=fe(s,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=d();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:g,handlerImpl:m}=L(Object.assign({dataState:a},o));return e(r,Object.assign({className:"btnGroup"},{children:g.map(((s,a)=>e(Ee,Object.assign({style:{color:t,borderColor:i,backgroundColor:n},className:v({btn:!0,white:0===a,black:1===a}),onClick:()=>m(s.handler),shape:l},{children:s.name}),a)))}))},{Button:qe}=m;function Ke({contractBillcode:a,dataBmoney:c,dataBnum:t,goodsList:i,dataState:n,contractId:l,init:o,contractAppraise:r}){const{View:g}=d(),m=R(n);return s(g,Object.assign({className:"orderListItem"},{children:[s(g,Object.assign({onClick:()=>p("orderDetail",{contractBillcode:a})},{children:[s(g,Object.assign({className:"topInfo"},{children:[s(g,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(qe,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(g,Object.assign({className:"status"},{children:m}))]})),s(g,Object.assign({className:"goodsItemWrap"},{children:[i.map((s=>e(He,Object.assign({},s),s.contractGoodsId))),s(g,Object.assign({className:"allInfo"},{children:[s(g,Object.assign({className:"totalNum"},{children:["共",t,"件商品"]})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(Qe,{init:o,contractId:l,contractBillcode:a,dataState:n,contractAppraise:r})]}))}function Ze(e){const[s,a]=t(0);return n((()=>{if(!b()||!e)return;const s=N().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;a(s)}})).exec()}))})),s}const Ye=b(),Xe=s=>{var{bottomHeight:a,children:c,id:t,heightWrap:i}=s,n=fe(s,["bottomHeight","children","id","heightWrap"]);const o=Ze(t),r=function(e=""){return l((()=>{if(!b())return 0;const s=N(),a=s.getStorageSync("safeArea"),c=s.getStorageSync("tabBarHeight")||0;return a+(s.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?c:0)+(e?+e:0)}),[])}(a),{View:g}=d(),m=l((()=>{if(!Ye)return t?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(t){return{height:`calc(${N().getSystemInfoSync().windowHeight+"px"} - ${o+r}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[o,r]);return e(g,Object.assign({},n,{style:Object.assign(Object.assign({},m),{paddingBottom:t?"":r}),id:t},{children:c}))},Je=b(),$e={contractBillcode:"",goodsList:[{dataPic:"",goodsName:"",dataBmoney:0,goodsCamount:0,contractGoodsId:0,dataState:0}],dataBmoney:0,dataBnum:0,dataState:0,contractId:"",contractAppraise:0};const _e=c((function({item:a,refreshNum:c}){const{View:l,ScrollView:r,Loading:g}=d(),m=i(!1),[h,p]=t(!1),[b,u]=t([$e]),N=i(0);Ze("qj-tabs-id"),n((()=>{j()}),[c]);const j=O((()=>{N.current=0,u([]),C()})),C=O(((e={})=>ke(this,void 0,void 0,(function*(){if(m.current)return;p(!0),++N.current;const{code:e}=a;try{const s=yield I({page:N.current,rows:10,isLocalMock:!Je,childFlag:!0,dataStateStr:e});m.current=S(s.rows)||s.rows.length<10,u((e=>e.concat(s.rows||[]))),p(!1)}catch(e){--N.current,console.log(30,e)}}))));return e(l,Object.assign({className:"orderListItemWrap"},{children:e(Xe,Object.assign({id:"orderListItemWrap"},{children:e(r,Object.assign({onScroll:C},{children:s(l,{children:[b.map(((e,s)=>o(Ke,Object.assign({init:j},e,{key:s})))),e(l,{children:h?e(g,{}):null})]})}))}))}))})),es=c((({refreshNum:s=0,id:a=""})=>{const{View:c,Tabs:t}=d();return e(c,Object.assign({className:"order-container"},{children:e(t,{defaultIndex:+a,tabs:z,render:a=>e(c,Object.assign({className:"orderList"},{children:e(_e,{item:a,refreshNum:s})}))})}))})),ss=c((({contractBillcode:a,expressWay:c,backgroundColor:t,color:i,paddingBottom:n,paddingTop:l,borderColor:o,btnColor:r,btnShape:g})=>{const{View:m,Text:h}=d(),{orderDetail:p}=M(a||"");return s(m,Object.assign({className:"orderDetail"},{children:[e(m,Object.assign({style:{backgroundColor:t},className:"orderDetailTopTitle"},{children:s(m,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(h,Object.assign({className:"title"},{children:R(p.dataState)})),e(m,{className:"subTitleWrap"})]}))})),e(m,Object.assign({className:"orderDetailContent",style:{paddingTop:l+"px",paddingBottom:n+"px"}},{children:s(m,Object.assign({style:{position:"relative",top:-26}},{children:[s(m,Object.assign({className:"addressInfo"},{children:[e(m,{className:"lPart"}),s(m,Object.assign({className:"mPart"},{children:[s(m,Object.assign({className:"personInfo"},{children:[e(h,Object.assign({className:"personName"},{children:p.goodsReceiptMem})),e(h,Object.assign({className:"personPhone"},{children:p.goodsReceiptPhone}))]})),e(m,Object.assign({className:"address"},{children:p.goodsReceiptArrdess}))]})),e(m,{className:"rPart"})]})),s(m,Object.assign({className:"orderDetailGoodsWrap"},{children:[p.goodsList.map((s=>e(He,Object.assign({},s),s.contractGoodsId))),s(m,Object.assign({className:"priceInfo"},{children:[s(m,Object.assign({className:"priceInfoFloor top"},{children:[s(m,Object.assign({className:"totalNum"},{children:["共",p.goodsNum,"件商品"]})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((p.dataBmoney-p.refundMoney).toFixed(2))]}))]})),s(m,Object.assign({className:"priceInfoFloor"},{children:[e(m,Object.assign({className:"totalNum"},{children:"商品总额"})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",p.contractInmoney]}))]})),s(m,Object.assign({className:"priceInfoFloor"},{children:[e(m,Object.assign({className:"totalNum"},{children:"优惠"})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",p.goodsPmoney]}))]}))]}))]})),c&&s(m,Object.assign({className:"express"},{children:[e(m,Object.assign({className:"label"},{children:"配送方式"})),e(m,Object.assign({className:"name"},{children:"快递"}))]})),s(m,Object.assign({className:"orderInfo"},{children:[e(m,Object.assign({className:"orderInfoItem"},{children:e(m,Object.assign({className:"label"},{children:"订单信息"}))})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"买家留言"})),e(m,Object.assign({className:"name"},{children:p.packageRemark}))]})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"订单编号"})),e(m,Object.assign({className:"name"},{children:p.contractBillcode}))]})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"下单时间"})),e(m,Object.assign({className:"name"},{children:p.gmtCreate}))]}))]})),e(m,Object.assign({className:"btnGroupFooter"},{children:e(Qe,{borderColor:o,btnColor:r,btnShape:g,color:i,contractBillcode:p.contractBillcode,contractId:p.contractId,dataState:p.dataState})}))]}))}))]}))})),as=c((({defaultValue:a,borderRadius:c,paddingTop:t,paddingBottom:i,selectClassifyNav:n})=>{const{View:l,Text:o}=d(),r=P(a,n);return e(l,Object.assign({style:{paddingTop:t,paddingBottom:i}},{children:e(l,Object.assign({className:"classifyNav"},{children:r.map(((a,t)=>s(l,Object.assign({className:"classifyNavItem",onClick:()=>{var e,s;return p(null===(e=a.link)||void 0===e?void 0:e.value,null===(s=a.link)||void 0===s?void 0:s.params)}},{children:[e("img",{src:a.imgUrl,alt:"",className:"img",style:{borderRadius:`${c}px`}}),e(o,Object.assign({className:"label"},{children:a.title}))]}),t)))}))}))})),cs=a=>{const{SmoothView:c,View:t}=d(),{handleCollect:i,collection:n}=F(a);return s(t,Object.assign({onClick:i},{children:[e("img",{src:Be,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:S(n.dataObj)?"收藏":"已收藏"}))]}))},ts=({skuCode:s})=>{const{rsGoodsFileDomainList:a=[]}=W(s),c=G(a);return e(Re,{selectImg:c,type:1,imgHeight:{height:375,width:375}})},is=({skuCode:a})=>{const{View:c,SmoothView:t}=d(),{goodsName:i,pricesetNprice:n,dataPic:l}=W(a);return s(c,Object.assign({className:"goodsDetail-topInfo"},{children:[s(c,{children:[e(t,Object.assign({className:"name"},{children:i})),e(t,Object.assign({className:"price"},{children:Ge(n)}))]}),e(c,Object.assign({className:"rPart"},{children:e(cs,{goodsName:i,pricesetNprice:n,dataPic:l,skuCode:a})}))]}))},ns=({skuName:a,skuOption:c,index:t})=>{const{View:i,Text:n}=d(),{handleChooseSize:l,spec:o}=H();return s(i,Object.assign({className:"sizeArr"},{children:[e(n,Object.assign({className:"title"},{children:a})),e(i,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(i,Object.assign({className:"sizeItem "+(o[t]===s.specValueValue?"active":""),onClick:l.bind(null,s.specValueValue,t)},{children:s.specValueValue}),a)))}))]}))},ls=({skuInfo:a})=>{const{View:c,Text:t,Image:i,Popup:n,NumStep:l}=d(),{goodsShowname:o={},pricesetNprice:r,dataPic:g,skuList:m}=a,{count:h,spec:p,popupVisible:b,isNeedButton:u,handleStep:N,popupHandler:O,addShoppingImpl:j,addCardImpl:C,cashImpl:f}=H();return e(n,Object.assign({popupVisible:b,popupHandler:O},{children:s(c,Object.assign({className:"goodsDetail-size-popup"},{children:[s(c,Object.assign({className:"content"},{children:[s(c,Object.assign({className:"goodsInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e(i,{src:g,alt:"",className:"goodsImg"})})),s(c,Object.assign({className:"rPart"},{children:[e(c,Object.assign({className:"name"},{children:o})),e(c,Object.assign({className:"price"},{children:Ge(r)})),s(c,Object.assign({className:"chosen"},{children:["已选择: ",p.toString()]}))]}))]})),m.map(((s,a)=>e(ns,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(c,Object.assign({className:"countWrap"},{children:[e(c,Object.assign({className:"label"},{children:"购买数量"})),e(l,{count:h,handleStep:N})]}))]})),u?e(c,Object.assign({className:"btnWrap",onClick:j},{children:e(t,Object.assign({className:"btn"},{children:"确认"}))})):s(c,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(c,Object.assign({className:"btn addCart",onClick:C},{children:"加入购物车"})),e(c,Object.assign({onClick:f,className:"btn buy"},{children:"立即购买"}))]}))]}))}))},os=({skuCode:c})=>{const{View:t,Text:i}=d(),{openPopup:n,count:l,spec:o}=H(),{skuInfo:r}=E(c);return s(a,{children:[s(t,Object.assign({className:"goodsDetail-size",onClick:()=>{n({popupVisible:!0,isNeedButton:!1})}},{children:[e(i,Object.assign({className:"label"},{children:"规格"})),s(t,Object.assign({className:"info"},{children:[s(i,Object.assign({className:"label"},{children:["已选择 数量: ",l," 规格: ",o.toString()]})),e("img",{src:Te,alt:"",className:"icon"})]}))]})),e(ls,{skuInfo:r})]})},rs=({skuCode:a})=>{const{View:c,Text:t}=d(),i=Q(a);return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(t,Object.assign({className:"label"},{children:"促销"})),e(c,Object.assign({className:"group"},{children:i.length?i.map((({discName:s},a)=>e(c,Object.assign({className:"item"},{children:s}),a))):e(c,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},ds=c((({promotionBegintime:a,pbName:c,discName:t,promotionCode:i,promotionName:n,couponOnceNums:o,couponOnceNumd:r,promotionEndtime:g})=>{const{View:m,Text:h}=d(),{save:p,isPick:b}=U(),u=l((()=>o-r),[o,r]);return e(m,Object.assign({className:"couponItem"},{children:s(m,Object.assign({className:"coupon-content"},{children:[s(m,Object.assign({className:"price"},{children:[e(m,Object.assign({className:"symbol"},{children:c})),e(m,Object.assign({className:"num"},{children:t}))]})),s(m,Object.assign({className:"info"},{children:[e(h,Object.assign({className:"title"},{children:n})),s(h,Object.assign({className:"date"},{children:[Ne(a).format("YYYY-MM-DD")," - ",Ne(g).format("YYYY-MM-DD")]}))]})),e(m,u>0?Object.assign({className:b?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:i,couponAmount:1})},{children:b?"已领取":"领取"}):Object.assign({className:"coupon-pick-default"},{children:"已领完"}))]}))}))})),gs=({skuCode:c})=>{const{View:t,Text:i,Popup:n,ScrollView:l}=d(),{coupon:r,visible:g,setVisible:m}=q(c);return s(a,{children:[s(t,Object.assign({className:"goodsDetail-coupon",onClick:()=>m(!0)},{children:[e(i,Object.assign({className:"label"},{children:"优惠券"})),s(t,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"label"},{children:"请选择优惠券"})),e("img",{src:Te,alt:"",className:"icon"})]}))]})),e(n,Object.assign({popupVisible:g,popupHandler:m},{children:e(t,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(l,Object.assign({height:"400"},{children:r.map(((e,s)=>o(ds,Object.assign({},e,{key:s}))))}))}))}))]})},ms=({onChange:s,readOnly:a=!1,size:c=22,count:i})=>{const{View:l}=d(),[o,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(i){const e=[...o];for(let s=0;s<e.length;s++)e[s].icon=s>i-1?"star":"star-fill";r(e)}}),[]);const g=e=>{if(!a){for(let s=0;s<o.length;s++)o[s].icon=s>e?"star":"star-fill";r([...o]),s(e+1)}};return e(l,{children:o.map(((s,a)=>e(ye,{onClick:g.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:c}},a)))})},hs=({item:a})=>{const{View:c,Image:t}=d();return s(c,Object.assign({className:"rateItem"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(t,{src:a.userImgurl,className:"avatar"}),s(c,Object.assign({className:"userInfo"},{children:[e(c,Object.assign({className:"name"},{children:a.userName})),e(ms,{readOnly:!0,size:14,count:a.evaluateScopeReList.length})]}))]})),e(c,Object.assign({className:"rPart"},{children:`${new Date(a.gmtCreate).getFullYear()}-${new Date(a.gmtCreate).getMonth()+1}-${new Date(a.gmtCreate).getDate()}`}))]})),e(c,Object.assign({className:"size"},{children:a.skuName})),e(c,Object.assign({className:"content"},{children:a.evaluateGoodsContent}))]}))},ps=c((({url:a,title:c,subTitle:t,link:i,style:n})=>{const{View:l,Image:o}=d();return e(l,Object.assign({className:"noData",style:n},{children:s(l,Object.assign({className:"content"},{children:[e(o,{className:"img",src:a}),e(l,Object.assign({className:"title"},{children:c})),e(l,Object.assign({className:"subTitle"},{children:t})),i?s(l,Object.assign({className:"link",onClick:()=>p(i)},{children:["去看看",e(h,{value:"xiangyou1"})]})):null]}))}))})),bs=({evaluateArr:a})=>{const{View:c}=d(),t=i(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:t.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",t.current.length,")"]})),t.current.slice(0,5).map(((s,a)=>e(hs,{item:s},a)))]}):e(ps,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},us=({goodsRemark:s})=>{const{View:a}=d(),c=l((()=>s.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/\<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[s]);return e(a,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:c||""}})}))},Ns=({tabActive:c,setTabActive:t})=>{const{Text:i}=d();return e(a,{children:[{title:"商品详情",id:"1"},{title:"评价",id:"2"}].map(((a,n)=>e(r,{children:s(i,Object.assign({className:"tabsItem "+(c===n?"active":""),onClick:()=>t(n)},{children:[a.title,e(i,{className:"line"})]}))},n)))})},Os=({skuCode:a})=>{const{View:c}=d(),[i,n]=t(0),{goodsRemark:l,goodsCode:o}=W(a),r=K(o);return s(c,Object.assign({className:"goodsDetailTab"},{children:[e(c,Object.assign({className:"tabs"},{children:e(Ns,{tabActive:i,setTabActive:n})})),e(c,Object.assign({className:"group"},{children:0===i?e(us,{goodsRemark:l}):e(bs,{evaluateArr:r})}))]}))},js=({skuCode:c})=>{const{Text:t,View:i,IconMobile:n}=d(),{openPopup:l}=H(),{servicePopup:o}=We(),{skuInfo:r}=E(c),g=e=>{l({orderType:e,popupVisible:!0,isNeedButton:!0})};return s(a,{children:[s(i,Object.assign({className:"goodsDetailHandleBar"},{children:[s(i,Object.assign({className:"linkGroup",onClick:o},{children:[e(n,{value:"kefu",style:{fontSize:22,display:"block"}}),e(t,Object.assign({className:"txt"},{children:"客服"}))]})),s(i,Object.assign({className:"linkGroup",onClick:()=>p("shopping")},{children:[e(n,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(t,Object.assign({className:"txt"},{children:"购物车"}))]})),s(i,Object.assign({className:"goods-detail-btn-group"},{children:[e(i,Object.assign({className:"btn addCart",onClick:()=>{g(0)}},{children:"加入购物车"})),e(i,Object.assign({onClick:()=>{g(1)},className:"btn buy"},{children:"立即购买"}))]}))]})),e(ls,{skuInfo:r})]})},{StoreProvider:Cs}=Z,fs=({skuCode:a})=>{const{View:c}=d();return s(c,Object.assign({style:{backgroundColor:"#f6f6f6"}},{children:[e(ts,{skuCode:a}),e(is,{skuCode:a}),e(Cs,{children:e(os,{skuCode:a})}),e(rs,{skuCode:a}),e(gs,{skuCode:a}),e(Os,{skuCode:a}),e(Cs,{children:e(js,{skuCode:a})})]}))},ks=c((({navList:c,activeKey:t,cell:i=4})=>{const{View:n,Text:l,Image:o}=d();return e(a,{children:c.map((a=>e(n,Object.assign({className:["content",t===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(n,Object.assign({className:"classifyFloor"},{children:[s(n,Object.assign({className:"titleWrap"},{children:[e(l,Object.assign({className:"title"},{children:a.goodsClassName})),e(l,{className:"line"})]})),e(n,Object.assign({className:`container container_columns${i}`},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:t,goodsClassName:i})=>s(n,Object.assign({onClick:()=>p("goodList",{classtreeCode:a}),className:"classifyFloorGoodsItem"},{children:[e(o,{src:t,className:"logo"}),e(n,Object.assign({className:"title"},{children:i}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:ys}=m,ws=c((({cell:a,color:c,activeTitle:t,paddingTop:i,paddingBottom:n})=>{const{View:l,ScrollView:o}=d(),{activeKey:r,setActiveKey:g,navList:m,flag:h}=Y();return e(l,{children:e(Xe,Object.assign({id:"goodsClassify"},{children:e(o,{children:s(l,Object.assign({style:{height:h?"100%":"667px",paddingTop:i,paddingBottom:n},className:"goodsClassifyContainer"},{children:[e(l,Object.assign({className:"side"},{children:e(ys,Object.assign({activeKey:r,onChange:g,style:{"--width":"88px"}},{children:m.map((s=>e(ys.Item,{title:s.goodsClassName,className:0===t?"typeBlock":"typeNoBlock",style:{color:s.goodsClassCode===r?c:"#000"}},s.goodsClassCode)))}))})),e(l,Object.assign({className:"main"},{children:e(ks,{navList:m,activeKey:r,cell:a})}))]}))})}))})})),Is=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],As=({setParams:a})=>{const{View:c}=d(),[i,n]=t(0),[l,o]=t(Is);return e(c,Object.assign({className:"sortWrap"},{children:l.map((({order:t,sortField:l,name:r},d)=>s(c,Object.assign({className:"sortItem "+(i===d?"active":""),onClick:()=>((e,s,c)=>{n(s),c&&o((e=>(e[s].order="asc"===c?"desc":"asc",[...e]))),a({sortField:e,order:c})})(l,d,t)},{children:[r,t&&e(ye,{style:{color:i===d?"#f00":"#444",fontSize:20},value:"desc"===t?"jiangxu":"shengxu"})]}),d)))}))},vs=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:i,Loading:n,SmoothView:l,Image:o,ScrollView:r}=d(),[g,m]=t({}),{loading:h,getData:b,list:u}=X(a,c,g);return s(i,Object.assign({className:"goodsList"},{children:[e(i,Object.assign({className:"top-info"},{children:e(As,{setParams:m})})),e(i,Object.assign({className:"listWrap"},{children:e(Xe,Object.assign({id:"listWrap"},{children:s(r,Object.assign({onScroll:()=>b(g)},{children:[e(i,Object.assign({className:"list"},{children:u.map((a=>s(i,Object.assign({onClick:()=>p("goodDetail",{skuCode:a.skuCode}),className:"listItem"},{children:[e(o,{src:a.dataPic,className:"img"}),e(l,Object.assign({className:"name"},{children:a.goodsName})),e(l,Object.assign({className:"price"},{children:Ge(a.pricesetNprice)}))]}),a.skuCode)))})),h?e(n,{}):null]}))}))}))]}))})),xs=b(),Ss=c((({placeholder:a,placeholderText:c,history:i,historyText:n,paddingBottom:l,paddingTop:o})=>{const{View:r,Text:g,Input:m}=d(),[h,b]=t((()=>u("history")||[]));console.log(23,u("history"));const f=O((e=>ke(void 0,void 0,void 0,(function*(){xs&&(b((s=>{if(S(e.detail.value))return s;const a=s.concat(e.detail.value);return C("history",a),a})),k(e.detail.value))})))),k=O((e=>{p("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:o,paddingBottom:l}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Be,alt:""}),e(m,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:f},a?{placeholder:c}:{})),e(g,Object.assign({className:"btn",onClick:()=>j()},{children:"取消"}))]})),i?s(r,Object.assign({className:"historyWrap"},{children:[s(r,Object.assign({className:"title"},{children:[s(r,Object.assign({className:"label"},{children:[e(r,{className:"icon"}),n]})),e(ye,{onClick:()=>ke(void 0,void 0,void 0,(function*(){(yield N()).removeStorageSync("history"),b([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(r,Object.assign({className:"content"},{children:h.map(((s,a)=>e(r,Object.assign({onClick:()=>k(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),Vs=c((()=>{const{View:a,Text:c}=d();return e(a,Object.assign({className:"goodsDetail-topInfo-wrap"},{children:s(a,Object.assign({className:"goodsDetail-topInfo"},{children:[s(a,{children:[e(c,Object.assign({className:"name"},{children:"宠侣 狗狗零食鸡肉绕饼干620g宠"})),e(c,Object.assign({className:"price"},{children:"¥2300.00"}))]}),s(a,Object.assign({className:"rPart"},{children:[e("img",{src:Be,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),Bs=({skuCode:s,autoplay:a,vertical:c})=>{const{rsGoodsFileDomainList:t=[]}=W(s),i=G(t);return e(Re,{selectImg:i,type:1,autoplay:a,vertical:c,imgHeight:{height:375,width:375}})},Ts=a=>{const{SmoothView:c,View:t}=d(),{handleCollect:i,collection:n}=F(a);return s(t,Object.assign({onClick:i},{children:[e("img",{src:Be,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:S(n.dataObj)?"收藏":"已收藏"}))]}))},Ds=({skuCode:a,priceShow:c,collectionShow:t})=>{const{View:i,SmoothView:n}=d(),{goodsName:l,pricesetNprice:o,dataPic:r}=W(a);return s(i,Object.assign({className:"goodsDetail-topInfo"},{children:[s(i,Object.assign({className:"lPart"},{children:[e(n,Object.assign({className:"name"},{children:l})),e(n,Object.assign({className:"price",style:{display:c?"block":"none"}},{children:Ge(o)}))]})),e(i,Object.assign({className:"rPart",style:{display:t?"flex":"none"}},{children:e(Ts,{goodsName:l,pricesetNprice:o,dataPic:r,skuCode:a})}))]}))},Ps=({skuInfo:a})=>{const{View:c,Text:t,Image:i,Popup:n,NumStep:l}=d(),{goodsShowname:o={},pricesetNprice:r,dataPic:g,skuList:m}=a,{count:h,spec:p,popupVisible:b,isNeedButton:u,handleStep:N,popupHandler:O,addShoppingImpl:j,addCardImpl:C,cashImpl:f}=H();return e(n,Object.assign({popupVisible:b,popupHandler:O},{children:e(c,Object.assign({className:"goodsDetail-size-popup"},{children:s(Xe,{children:[s(c,Object.assign({className:"content"},{children:[s(c,Object.assign({className:"goodsInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e(i,{src:g,alt:"",className:"goodsImg"})})),s(c,Object.assign({className:"rPart"},{children:[e(c,Object.assign({className:"name"},{children:o})),e(c,Object.assign({className:"price"},{children:Ge(r)})),s(c,Object.assign({className:"chosen"},{children:["已选择: ",p.toString()]}))]}))]})),m.map(((s,a)=>e(ns,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(c,Object.assign({className:"countWrap"},{children:[e(c,Object.assign({className:"label"},{children:"购买数量"})),e(l,{count:h,handleStep:N})]}))]})),u?e(c,Object.assign({className:"btnWrap",onClick:j},{children:e(t,Object.assign({className:"btn"},{children:"确认"}))})):s(c,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(c,Object.assign({className:"btn addCart",onClick:C},{children:"加入购物车"})),e(c,Object.assign({onClick:f,className:"btn buy"},{children:"立即购买"}))]}))]})}))}))},{StoreProvider:Ls}=Z,Rs=({skuCode:s})=>e(Ls,{children:e(zs,{skuCode:s})}),zs=({skuCode:c})=>{const{View:t,Text:i}=d(),{skuInfo:n}=E(c),{openPopup:l,count:o,spec:r}=H();return s(a,{children:[s(t,Object.assign({className:"goodsDetail-size",onClick:()=>{l({popupVisible:!0,isNeedButton:!1})}},{children:[e(i,Object.assign({className:"label"},{children:"规格"})),s(t,Object.assign({className:"info"},{children:[s(i,Object.assign({className:"label"},{children:["已选择 数量: ",o," 规格: ",r.toString()]})),e("img",{src:Te,alt:"",className:"icon"})]}))]})),e(Ps,{skuInfo:n})]})},Ms=({skuCode:a})=>{const{View:c,Text:t}=d(),i=Q(a);return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(t,Object.assign({className:"label"},{children:"促销"})),e(c,Object.assign({className:"group"},{children:i.length?i.map((({discName:s},a)=>e(c,Object.assign({className:"item"},{children:s}),a))):e(c,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},Fs=({skuCode:c})=>{const{View:t,Text:i,Popup:n}=d(),{coupon:l,visible:r,setVisible:g}=q(c);return s(a,{children:[s(t,Object.assign({className:"goodsDetail-coupon",onClick:()=>g(!0)},{children:[e(i,Object.assign({className:"label"},{children:"优惠券"})),s(t,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"label"},{children:"请选择优惠券"})),e("img",{src:Te,alt:"",className:"icon"})]}))]})),e(n,Object.assign({popupVisible:r,popupHandler:g},{children:e(t,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Xe,{children:l.map(((e,s)=>o(ds,Object.assign({},e,{key:s}))))})}))}))]})},Ws=({evaluateArr:a})=>{const{View:c}=d(),t=i(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:t.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",t.current.length,")"]})),t.current.slice(0,5).map(((s,a)=>e(hs,{item:s},a)))]}):e(ps,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},Gs=({goodsRemark:s})=>{const{View:a}=d(),c=l((()=>s.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[s]);return e(a,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:c||""}})}))},Hs=({tabActive:c,setTabActive:t,evaluateShow:i})=>{const{Text:n}=d();console.log(15,i);return e(a,{children:(i?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]).map(((a,i)=>e(r,{children:s(n,Object.assign({className:"tabsItem "+(c===i?"active":""),onClick:()=>t(i)},{children:[a.title,e(n,{className:"line"})]}))},i)))})},Es=({skuCode:a,evaluateShow:c})=>{const{View:i}=d(),[n,l]=t(0),{goodsRemark:o,goodsCode:r}=W(a),g=K(r);return s(i,Object.assign({className:"goodsDetailTab"},{children:[e(i,Object.assign({className:"tabs"},{children:e(Hs,{tabActive:n,setTabActive:l,evaluateShow:c})})),e(i,Object.assign({className:"group"},{children:0===n?e(Gs,{goodsRemark:o}):e(Ws,{evaluateArr:g})}))]}))},Qs=({skuInfo:a})=>{const{View:c,Text:t,Image:i,Popup:n,NumStep:l}=d(),{goodsShowname:o={},pricesetNprice:r,dataPic:g,skuList:m}=a,{count:h,spec:p,popupVisible:b,isNeedButton:u,handleStep:N,popupHandler:O,addShoppingImpl:j,addCardImpl:C,cashImpl:f}=H();return e(n,Object.assign({popupVisible:b,popupHandler:O},{children:s(c,Object.assign({className:"goodsDetail-size-popup"},{children:[s(c,Object.assign({className:"content"},{children:[s(c,Object.assign({className:"goodsInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e(i,{src:g,alt:"",className:"goodsImg"})})),s(c,Object.assign({className:"rPart"},{children:[e(c,Object.assign({className:"name"},{children:o})),e(c,Object.assign({className:"price"},{children:Ge(r)})),s(c,Object.assign({className:"chosen"},{children:["已选择: ",p.toString()]}))]}))]})),m.map(((s,a)=>e(ns,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(c,Object.assign({className:"countWrap"},{children:[e(c,Object.assign({className:"label"},{children:"购买数量"})),e(l,{count:h,handleStep:N})]}))]})),u?e(c,Object.assign({className:"btnWrap",onClick:j},{children:e(t,Object.assign({className:"btn"},{children:"确认"}))})):s(c,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(c,Object.assign({className:"btn addCart",onClick:C},{children:"加入购物车"})),e(c,Object.assign({onClick:f,className:"btn buy"},{children:"立即购买"}))]}))]}))}))},{StoreProvider:Us}=Z,qs=({skuCode:s,serverShow:a,cartShow:c,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:l,rPartBgColor:o,rPartStyle:r})=>e(Us,{children:e(Ks,{skuCode:s,serverShow:a,cartShow:c,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:l,rPartBgColor:o,rPartStyle:r})}),Ks=({skuCode:c,serverShow:t,cartShow:i,lPartColor:n,lPartBgColor:l,lPartStyle:o,rPartColor:r,rPartBgColor:g,rPartStyle:m})=>{const{Text:h,View:b,IconMobile:u}=d(),{skuInfo:N}=E(c),{openPopup:O}=H(),{servicePopup:j}=We(),C=e=>{O({orderType:e,popupVisible:!0,isNeedButton:!0})};return s(a,{children:[s(b,Object.assign({className:"goodsDetailHandleBar"},{children:[s(b,Object.assign({className:"linkGroup server",onClick:j,style:{display:t?"block":"none"}},{children:[e(u,{value:"kefu",style:{fontSize:22,display:"block"}}),e(h,Object.assign({className:"txt"},{children:"客服"}))]})),s(b,Object.assign({className:"linkGroup cart",onClick:()=>p("shopping"),style:{display:i?"block":"none"}},{children:[e(u,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(h,Object.assign({className:"txt"},{children:"购物车"}))]})),s(b,Object.assign({className:"goods-detail-btn-group"},{children:[e(b,Object.assign({className:"btn addCart",onClick:()=>{C(0)},style:{color:n,backgroundColor:l,borderTopLeftRadius:o,borderBottomLeftRadius:o}},{children:"加入购物车"})),e(b,Object.assign({onClick:()=>{C(1)},className:"btn buy",style:{color:r,backgroundColor:g,borderTopRightRadius:m,borderBottomRightRadius:m}},{children:"立即购买"}))]}))]})),e(Qs,{skuInfo:N})]})},Zs=({starColor:a="#FF0934",starSize:c="12px",itemData:t})=>{const{View:i,Text:n,Image:l}=d(),{Rate:o}=m;return s(i,Object.assign({className:"evaluateItem"},{children:[s(i,Object.assign({className:"userInfo"},{children:[e(l,{src:t.avatar,className:"avatar"}),s(i,Object.assign({className:"userNameWrap"},{children:[e(n,Object.assign({className:"userName"},{children:t.userName})),e(o,{readOnly:!0,value:t.rate,style:{"--star-size":c,"--active-color":a}})]}))]})),s(i,Object.assign({className:"size"},{children:["规格: ",t.size]})),e(i,Object.assign({className:"content"},{children:t.evaluate})),e(i,Object.assign({className:"img-group"},{children:t.imgUrls.map(((s,a)=>e(l,{src:s.imgUrl,className:"img"},a)))}))]}))},Ys=[{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"}]}],Xs=c((()=>{const[c,n]=t("1"),{View:l}=d(),o=i([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{n(e)};return s(a,{children:[e(l,Object.assign({className:"evaluateListTab"},{children:o.current.map((e=>s(l,Object.assign({className:"evaluateListTabItem "+(e.index===c?"active":""),"data-index":e.index,onClick:r.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(l,Object.assign({className:"evaluateListContent"},{children:Ys.map(((s,a)=>e(Zs,{itemData:s},a)))}))]})})),Js=c((({code:a,borderRadius:c,borderColor:t,color:n,buttonColor:l,buttonBorderRadius:o,paddingTop:g,paddingBottom:h})=>{const{orderInfo:p,changeStar:b,Submit:u,changeContent:N}=J(a),{Button:O}=m,{View:j,Image:C,TextArea:f,Textarea:k}=d(),y=f||k,w=i("宝贝满足你吗?分享一下它吧");return s(j,Object.assign({className:"evaluateDetail",style:{paddingTop:g,paddingBottom:h}},{children:[p.map(((a,t)=>s(r,{children:[s(j,Object.assign({className:"topInfo"},{children:[s(j,Object.assign({className:"lPart"},{children:[e(C,{src:a.dataPic,className:"img",style:{borderRadius:1===c?"20px":"0px"}}),s(j,Object.assign({className:"goodsInfo"},{children:[e(j,Object.assign({className:"goodsName"},{children:a.goodsName})),e(j,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(j,Object.assign({className:"rPart"},{children:s(j,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(j,Object.assign({className:"rate"},{children:[e(j,Object.assign({className:"title"},{children:"商品评价"})),e(ms,{onChange:b.bind(null,t)})]})),e(j,Object.assign({className:"evaluate"},{children:e(y,{className:"content",placeholder:w.current,rows:5,maxLength:30,onInput:N.bind(null,t)})}))]},t))),e(O,Object.assign({style:{border:`1px solid ${t}`,color:n,backgroundColor:l,borderRadius:1===o?"20px":"0px"},className:"btn",onClick:u},{children:"提交"}))]}))})),$s=({code:a,defaultValue:c})=>{const{info:t,detail:i}=$(a),{View:n}=d(),l=B(t,"packageList[0].contractGoodsList[0].dataPic",c.dataPic),o=B(t,"packageList.length",c.count),r=B(t,"packageList[0].expressName",c.expressName),g=B(t,"packageList[0].packageBillno",c.packageBillno),m=B(i,"result",c.result);return s(n,Object.assign({className:"expressInfoTop"},{children:[e(n,Object.assign({className:"goodsImg",style:{backgroundImage:`url(${l})`}},{children:s(n,Object.assign({className:"tip"},{children:["共 ",o," 件商品"]}))})),s(n,Object.assign({className:"list"},{children:[m,s(n,Object.assign({className:"listItem"},{children:["物流状态:",m||"暂时无法获取物流状态"]})),s(n,Object.assign({className:"listItem"},{children:["快递公司:",r]})),s(n,Object.assign({className:"listItem"},{children:["快递单号:",g]}))]}))]}))},_s=({code:a,defaultValue:c})=>{const{detail:t}=$(a),{View:i}=d(),n=B(t,"message",c.message),l=B(t,"data",c.list);return e(i,Object.assign({className:"expressInfoStep"},{children:"ok"===n?l.map(((a,c)=>s(i,Object.assign({className:"step"},{children:[e(i,Object.assign({className:"time"},{children:a.time})),e(i,{children:a.context})]}),c))):e(i,Object.assign({className:"noInfo"},{children:n}))}))},ea=c((({code:a,defaultValue:c})=>{const{View:t}=d();return s(t,Object.assign({className:"expressInfo"},{children:[e($s,{code:a,defaultValue:c}),e(_s,{code:a,defaultValue:c})]}))})),sa=({txt:s,onChange:a,checked:c})=>{const{View:t}=d(),{Checkbox:i}=m;return e(t,{children:e(i,Object.assign({onChange:a,checked:c,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},aa=b(),ca=({itemData:a,delAddress:c,setDefault:t,fontSize:i="12px",iconSize:n="12px"})=>{const{View:l,Text:o}=d(),r=process.env.TARO_ENV;return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>{f({orderDetermine:{num:1}}),console.log(17,k()),_.addressId=a.addressId,j(1)}},{children:[s(l,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(l,Object.assign({className:"addressInfo"},{children:s(o,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(l,Object.assign({className:"downInfo"},{children:[aa?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===r?e(sa,{txt:"设为默认地址",onChange:t,checked:"1"===(null==a?void 0:a.addressDefault)}):s("checkbox-group",Object.assign({onChange:t,class:"checkBoxWrap"},{children:[e("checkbox",{value:"cb",checked:"1"===(null==a?void 0:a.addressDefault)}),"设为默认地址"]}))})):s("div",Object.assign({className:"checkBoxPc"},{children:[e("input",{type:"checkbox",checked:"1"===a.addressDefault}),e("label",{children:"设为默认地址"})]})),e(o,Object.assign({className:"del",onClick:c},{children:"删除"}))]}))]}))},ta=c((()=>{const{View:s,Skeleton:c}=d(),t=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:t.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),ia=c((({refreshNum:a,btnShape:c,btnColor:t,borderColor:i,paddingBottom:n,paddingTop:l,color:o})=>{const{View:r}=d(),{list:g,delAddress:m,setDefault:h,skullShow:b}=ee(a);return s(r,Object.assign({className:"addressListWrap"},{children:[b?e(ta,{}):e(r,Object.assign({className:"addressList",style:{paddingTop:l+"px",paddingBottom:n+"px"}},{children:g.length?g.map(((s,a)=>e(ca,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(ps,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(r,Object.assign({className:"addBtnWrap"},{children:e(r,Object.assign({style:{borderRadius:c,borderColor:i,color:o,backgroundColor:t},className:"addBtn",onClick:()=>p("addressEditor")},{children:"+ 新增地址"}))}))]}))})),na=[{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"input",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:(e,s)=>new Promise(((e,a)=>{!/^1[3456789]\d{9}$/.test(s)&&s?a("请输入正确手机号"):e("")}))}]},{type:"cascader",label:"所在地区",name:"area",rules:[{required:!0,message:"所在地区不能为空"}]},{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",props:{},label:"设置默认地址",name:"addressDefault"}],la=c((()=>{const{View:s,Skeleton:c}=d(),t=i(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:t.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));Ce.forEach((e=>{const s=je.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),je.forEach((e=>{const s=Oe.filter((s=>s.code===e.provinceCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code+"00",children:e.children}))}));const oa=Oe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),ra=({form:a,handleArea:c})=>{const{View:i}=d(),{CascadePicker:n}=m,l=a.getFieldValue("area"),[o,r]=t(!1),g=e=>{const s={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},a={pIndex:0,cIndex:0};for(let c=0;c<oa.length;c++)if(oa[c].value===e[0]){s.provinceName=oa[c].label,a.pIndex=c;break}for(let c=0;c<oa[a.pIndex].children.length;c++)if(oa[a.pIndex].children[c].value===e[1]){s.cityName=oa[a.pIndex].children[c].label,a.cIndex=c;break}for(let c=0;c<oa[a.pIndex].children[a.cIndex].children.length;c++)if(oa[a.pIndex].children[a.cIndex].children[c].value===e[2]){s.areaName=oa[a.pIndex].children[a.cIndex].children[c].label;break}return console.log(52,s),s};return s(i,{children:[e(i,Object.assign({className:"txt",onClick:()=>r(!0)},{children:(null==l?void 0:l.provinceName)?`${l.provinceName}—${l.cityName}-${l.areaName}`:"请选择所在地区"})),e(n,{onConfirm:e=>{c("h5",g(e))},options:oa,visible:o,onClose:()=>r(!1)})]})},da=({checked:s,onChange:a})=>{const{View:c}=d(),{Switch:t}=m;return e(c,{children:e(t,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},ga=b(),ma=c((({addressId:s,btnShape:c,btnColor:t,borderColor:i,color:n,paddingTop:l,paddingBottom:o})=>{const{View:r,Switch:g}=d(),{Form:h,Button:p,Input:b}=m,u=process.env.TARO_ENV,{skullShow:N,form:O,area:j,defaultAddress:C,handleArea:f,handleDefaultAddress:k,handleFinish:y}=se(s,h,ga);return e(r,Object.assign({className:"addressDetail",style:{height:ga?"100%":"667px",paddingBottom:o+"px",paddingTop:l+"px"}},{children:N?e(la,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:y,footer:e(p,Object.assign({style:{color:n,backgroundColor:t,borderColor:i},shape:c,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:na.map(((s,c)=>e(h.Item,Object.assign({label:s.label,name:s.name,rules:s.rules,trigger:"cascader"===s.type?"onConfirm":"onChange",arrow:!1},{children:"input"===s.type?e(b,Object.assign({},s.props)):"switch"===s.type?"h5"===u?e(da,{onChange:k.bind(null,"h5"),checked:"1"===C}):e(g,{color:"#000",onChange:k.bind(null,"weapp"),checked:"1"===C}):"cascader"===s.type?e(a,{children:ga?"h5"===u?e(ra,{form:O,handleArea:f}):e("picker",Object.assign({mode:"region",onChange:f.bind(null,"weapp"),value:j},{children:e(r,Object.assign({className:"areaWrap"},{children:j.provinceName?`${j.provinceName}—${j.cityName}-${j.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),c)))}))}))})),ha=({address:s})=>e(a,{children:S(s)?e(ba,{}):e(pa,{address:s})}),pa=({address:a})=>{const{View:c,SmoothView:t,IconMobile:i}=d(),n=l((()=>{const{provinceName:e,addressDefault:s,cityName:c,areaName:t,addressDetail:i,addressMember:n="",addressPhone:l=""}=a;return{addressDefault:"1"===s,addressMember:n,addressPhone:l,address:e+c+t+i}}),[a]);return console.log(46,n.addressDefault),s(c,Object.assign({className:"address-info"},{children:[e(i,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),s(c,Object.assign({className:"left"},{children:[s(c,Object.assign({className:"left-title"},{children:[e(t,{children:n.addressMember}),e(t,Object.assign({className:"left-padding"},{children:n.addressPhone})),n.addressDefault?e(t,Object.assign({className:"left-padding left-title-default"},{children:"默认"})):null]})),e(t,Object.assign({className:"left-detail"},{children:n.address}))]})),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},ba=()=>{const{View:c,Text:t}=d();return s(a,{children:[s(c,Object.assign({className:"group"},{children:[e(t,{className:"local"}),e(t,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(t,{className:"arrow"})]})},ua=({refreshNum:s})=>{const{View:a}=d(),c=ae(s);return e(a,Object.assign({className:"placeOrder-chooseAddress",onClick:()=>p("addressList")},{children:e(ha,{address:c})}))},Na=({refreshNum:s,goodsNum:a,skuId:c,shoppingGoodsId:t})=>{const{View:i}=d(),{list:n}=ce({refreshNum:s,goodsNum:a,skuId:c,shoppingGoodsId:t});return e(i,Object.assign({className:"place-order-goods"},{children:n.map(((s,a)=>e(He,Object.assign({},s),a)))}))},Oa=({shippingMethod:a=1})=>{const{View:c}=d();return e(c,Object.assign({className:"info placeOrder-blcWrap",style:1===a?{display:"block"}:{display:"none"}},{children:s(c,Object.assign({className:"express placeOrder-blcItem"},{children:[e(c,Object.assign({className:"label"},{children:"配送方式"})),e(c,Object.assign({className:"value"},{children:"快递"}))]}))}))},ja=c((({couponStart:a,pbName:c,discName:t,promotionCode:i,promotionName:n,couponEnd:l,disable:o})=>{const{View:r,Text:g,Radio:m}=d();return e(r,Object.assign({className:"couponItem"},{children:s(r,Object.assign({className:"coupon-content"},{children:[s(r,Object.assign({className:"price"},{children:[e(r,Object.assign({className:"symbol"},{children:c})),e(r,Object.assign({className:"num"},{children:t}))]})),s(r,Object.assign({className:"info"},{children:[e(g,Object.assign({className:"title"},{children:n})),s(g,Object.assign({className:"date"},{children:[Ne(a).format("YYYY-MM-DD")," - ",Ne(l).format("YYYY-MM-DD")]}))]})),e(r,o?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(m,{disabled:o,value:i})}))]}))}))})),Ca=({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n})=>{const{View:l,Text:r,Popup:g,SmoothRadio:m,ScrollView:h}=d(),{amount:p,shoppingGoodsList:b}=ce({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n}),{coupon:u,visible:N,setVisible:O,selectCoupon:j,onChange:C}=te(b);return s(a,{children:[s(l,Object.assign({className:"coupon-select",onClick:()=>O(0!==u.length)},{children:[e(r,Object.assign({className:"label"},{children:"优惠券"})),s(l,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"label"},{children:j?`已选择: ${j}`:0===u.length?"暂无可用优惠券":"请选择优惠券"})),0===u.length?null:e("img",{src:Te,alt:"",className:"icon"})]}))]})),e(g,Object.assign({popupVisible:N,popupHandler:O},{children:e(l,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Xe,Object.assign({bottomHeight:"300"},{children:e(h,{children:e(m,Object.assign({onChange:C},{children:u.map(((e,s)=>o(ja,Object.assign({disable:p<e.discAmount},e,{key:s}))))}))})}))}))}))]})},fa=({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n})=>{const{SmoothView:l,View:o}=d(),{payState:r,amount:g,disCount:m}=ce({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n}),{shoppingCountPrice:h,freight:p,comDisMoney:b}=ie(r);return console.log(15,b+m,"freight",p),e(a,{children:s(o,Object.assign({className:"price placeOrder-blcWrap"},{children:[e(o,Object.assign({className:"title"},{children:"价格明细"})),s(o,Object.assign({className:"express placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"商品总金额"})),e(l,Object.assign({className:"value"},{children:Ge(h)}))]})),s(o,Object.assign({className:"coupon placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"优惠金额"})),e(l,Object.assign({className:"value"},{children:Ge(b+m)}))]})),s(o,Object.assign({className:"express placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"运费"})),e(l,Object.assign({className:"value"},{children:Ge(p)}))]})),s(o,Object.assign({className:"all placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"总计"})),e(l,Object.assign({className:"value",style:{color:"#000"}},{children:Ge(g-m)}))]}))]}))})},ka=({color:a,buttonColor:c,borderColor:t,borderRadius:i,refreshNum:n,goodsNum:l,skuId:o,shoppingGoodsId:r})=>{const{View:g,Text:m,WrapLoading:h}=d(),{amount:p,list:b,disCount:u,payState:N,ocContractSettlList:O}=ce({refreshNum:n,goodsNum:l,skuId:o,shoppingGoodsId:r}),{savePayPrice:j,loading:C}=ne({ocContractSettlList:O,payState:N,list:b},o,l);return s(g,Object.assign({className:"placeOrderFooter"},{children:[s(m,Object.assign({className:"price"},{children:["合计: ",Ge(p-u)]})),e(h,Object.assign({loading:C},{children:e(g,Object.assign({className:"btn",onClick:j,style:{color:`${a}`,border:`1px solid ${t}`,backgroundColor:`${c}`,borderRadius:1===i?"40px":"0px"}},{children:"生成订单"}))}))]}))},ya=c((({refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i="",shippingMethod:n,color:l,buttonColor:o,borderColor:r,borderRadius:g,paddingTop:m,paddingBottom:h})=>{const{View:p}=d();return console.log(44,i),e(p,Object.assign({style:{height:"100%",paddingTop:m,paddingBottom:h},className:"placeOrder"},{children:s(p,Object.assign({className:"order-wrap"},{children:[e(ua,{refreshNum:a}),e(Na,Object.assign({},{refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i})),e(Oa,{shippingMethod:n}),e(Ca,Object.assign({},{refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i})),e(fa,Object.assign({},{refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i})),e(ka,Object.assign({},{color:l,buttonColor:o,borderColor:r,borderRadius:g,refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i}))]}))}))}));c((()=>{const{View:s,Skeleton:c}=d(),t=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:t.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));const wa=()=>{const{View:s,Image:a}=d();return e(s,Object.assign({className:"noData"},{children:e(a,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})}))},Ia=({list:c,coe:t,config:i,backgroundColor:n,color:l})=>{const{View:o,Text:r}=d();return e(a,{children:c.length?c.map(((c,d)=>(console.log(16,i.current[t.current].text),e(o,Object.assign({className:`couponListItem\n ${i.current[t.current].styleName}`,style:{backgroundColor:n,color:l}},{children:s(o,Object.assign({className:"coupon-content"},{children:[e(o,Object.assign({className:"price"},{children:e(r,Object.assign({className:"num"},{children:c.pbName}))})),s(o,Object.assign({className:"couponListItem-info"},{children:[e(r,Object.assign({className:"title"},{children:c.discName})),s(r,Object.assign({className:"date"},{children:["有效期至:",`${new Date(c.gmtModified).getFullYear()}-${new Date(c.gmtModified).getMonth()+1}-${new Date(c.gmtModified).getDate()}`]})),i.current[t.current].text?e(o,Object.assign({className:"btn"},{children:i.current[t.current].text})):null,2===t.current?e(a,{children:e(o,Object.assign({className:"round"},{children:"已失效"}))}):null]}))]}))}),d)))):e(wa,{})})},Aa=c((({backgroundColor:a,color:c,paddingTop:t,paddingBottom:i,queue:n})=>{const{View:l,Text:o,ScrollView:r}=d(),{coe:g,getList:m,config:h,switchTab:p,list:b=[]}=le();return s(l,Object.assign({className:"couponList"},{children:[e(l,Object.assign({className:"couponTab"},{children:h.current.map(((a,c)=>s(l,Object.assign({className:"couponTabItem "+(g.current===c?"active":""),onClick:()=>p(c)},{children:[a.label,e(o,{className:"icon"})]}),a.id)))})),e(Xe,Object.assign({id:"couponTab",bottomHeight:"60"},{children:e(r,Object.assign({onScroll:m},{children:e(l,Object.assign({className:"couponListContent",style:{paddingTop:t,paddingBottom:i}},{children:e(Ia,{backgroundColor:a,color:c,queue:n,list:b,coe:g,config:h})}))}))}))]}))}));function va({list:a}){const{View:c,Text:t,Image:i,Checkbox:n,NumStep:l,SmoothCheckbox:o,WrapLoading:r}=d(),{loading:g}=oe(),{select:m,onChange:h,handleStep:b}=re();return e(r,Object.assign({loading:g},{children:e(o,Object.assign({onChange:h},{children:a.map(((a,o)=>s(c,Object.assign({className:"cartItem"},{children:[e(c,Object.assign({className:"checkBoxWrap"},{children:e(n,{checked:m.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(i,{className:"img",src:a.dataPic,onClick:()=>p("goodDetail",{skuCode:a.skuCode})}),s(c,Object.assign({className:"cartItem-info"},{children:[e(t,Object.assign({className:"cartItem-goodsName"},{children:a.goodsName})),s(c,Object.assign({className:"cartItem-size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(c,Object.assign({className:"cartItem-handleWrap"},{children:[s(t,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(l,{count:a.goodsCamount,handleStep:b.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),o)))}))}))}const xa=b(),Sa=({refreshNum:c})=>{const{View:i,Text:n,Checkbox:l,SmoothCheckbox:o,ScrollView:r}=d(),[g,m]=t(!0),{cartList:h,amount:p,selectAll:b,allCart:u,toOrderImpl:N,select:O,deleteCart:j,disMoney:C}=ge(c);return e(i,Object.assign({className:"cart",style:{height:xa?"100%":"667px"}},{children:h.length?s(a,{children:[e(i,Object.assign({className:"edit"},{children:e(i,Object.assign({className:"btn",onClick:()=>m(!g)},{children:g?"编辑":"完成"}))})),e(Xe,Object.assign({id:"editId",bottomHeight:"50"},{children:e(r,{children:e(va,{list:h})})})),s(i,Object.assign({className:"dashboard"},{children:[e(i,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:b},{children:e(l,Object.assign({checked:u.current.length===O.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),g?s(i,Object.assign({className:"check"},{children:[s(i,Object.assign({className:"priceGroup"},{children:[s(i,Object.assign({className:"discount"},{children:["优惠: ",s(n,Object.assign({className:"data"},{children:["¥ ",C||0]}))]})),s(i,Object.assign({className:"all"},{children:["合计: ",s(n,Object.assign({className:"data"},{children:["¥ ",p.amount.toFixed(2)]}))]}))]})),s(i,Object.assign({onClick:N,className:"btn"},{children:["结算(",p.num,")"]}))]})):e(i,Object.assign({className:"del"},{children:e(i,Object.assign({onClick:j,className:"btn"},{children:"删除"}))}))]}))]}):e(ps,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))},Va=c((({refreshNum:s})=>e(de,{children:e(Sa,{refreshNum:s})}))),Ba=c((({avatarStyle:a,paddingTop:c,paddingBottom:t,userAvatar:i,userNickname:n})=>{const{View:l,Text:o,IconMobile:r,Image:g}=d(),{servicePopup:m}=We();return s(l,Object.assign({className:"mineData",style:{paddingTop:`${c}px`,paddingBottom:`${t}px`}},{children:[s(l,Object.assign({className:"topBoard"},{children:[e(r,{value:"shezhi",onClick:()=>p("/account/setting/index")}),e(r,{value:"kehufuwukefu",onClick:m})]})),s(l,Object.assign({className:"userSetting",onClick:()=>p("/account/setting/index")},{children:[s(l,Object.assign({className:"lPart"},{children:[e(o,Object.assign({className:"name"},{children:n||"用户名称"})),e(l,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e(g,{src:i,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]}))]}))})),Ta=c((({title:a,columnList:c})=>{const{View:i,Text:l,Badge:o,Image:r}=d(),[g,m]=t({});return n((()=>{ke(void 0,void 0,void 0,(function*(){try{const e=yield A();m(e.dataObj)}catch(e){}}))}),[]),s(i,Object.assign({className:"mineOrderEntry"},{children:[s(i,Object.assign({className:"title"},{children:[e(i,Object.assign({className:"name"},{children:a})),e(i,Object.assign({className:"more",onClick:()=>p("orderlist")},{children:"查看全部"}))]})),e(i,Object.assign({className:"content"},{children:c.map(((a,c)=>s(i,Object.assign({onClick:()=>p("orderlist",{id:c+1}),className:"contentItem",style:{display:a.show?"block":"none"}},{children:[e(o,Object.assign({},g[a.code]>0?{content:g[a.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12}},{children:e(r,{src:a.imgUrl,className:"icon"})})),e(l,Object.assign({className:"subTitle"},{children:a.label}))]}),c)))}))]}))})),Da=c((({paddingTop:a,paddingBottom:c,columnList:t})=>{const{View:i,Text:n,IconMobile:l,Image:o}=d();return e(i,Object.assign({className:"mineFunction",style:{paddingTop:a+"px",paddingBottom:c+"px"}},{children:t.map(((a,c)=>s(i,Object.assign({className:"menuListItem",onClick:()=>p(a.link.value)},{children:[s(i,Object.assign({className:"lPart"},{children:[e(o,{src:a.imgUrl,className:"icon"}),e(n,Object.assign({className:"label"},{children:a.link.label}))]})),e(l,{value:"xiangyou1"})]}),c)))}))})),Pa=b(),La=c((({contractBillcode:a,contractBbillcode:c,btnColor:t,btnShape:i,borderColor:n,paddingTop:l,paddingBottom:o,color:r})=>{const{View:g,Text:m,Radio:h,IconMobile:p,WrapLoading:b,SmoothRadio:u}=d(),{paymentImpl:N,channelList:O,contract:j,handleRadio:C,loading:f}=me({contractBillcode:a,contractBbillcode:c});return s(g,Object.assign({className:"paymentModeWrap",style:{height:Pa?"inherit":"667px",paddingBottom:o+"px",paddingTop:l+"px"}},{children:[s(g,Object.assign({className:"paymentMode"},{children:[s(g,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"title"},{children:[e(p,{value:"roundcheck"}),"订单提交成功"]})),s(g,Object.assign({className:"info"},{children:["订单号:",j.current.contractBillcode," | 总金额:",j.current.dataBmoney,"元"]}))]})),e(g,Object.assign({className:"paymentGroup"},{children:e(u,Object.assign({onChange:C},{children:O.map((a=>s(g,Object.assign({className:"paymentItem"},{children:[e(p,{value:a.icon}),s(g,{children:[s(g,Object.assign({className:"base"},{children:[e(m,{children:a.fchannelName}),e(h,{value:a.fchannelCode,className:"choose"})]})),"account"===a.value?s(g,Object.assign({className:"info"},{children:[e(g,{children:"账户余额:0元"}),e(g,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(b,Object.assign({loading:f},{children:e(g,Object.assign({className:"btnGroup",onClick:N},{children:e(g,Object.assign({style:{borderRadius:i,backgroundColor:t,color:r,borderColor:n},className:"payment"},{children:"立即支付"}))}))}))]}))})),Ra=({footprintItem:a,edit:c})=>{const{View:t,Image:i,Checkbox:n,SmoothView:o}=d(),r=l((()=>a.footprintOpnum?`${a.footprintOpnum}元`:""),[a.footprintOpnum]);return s(t,Object.assign({className:"footprintItem"},{children:[c?e(t,Object.assign({className:"lPart"},{children:e(n,{value:a.footprintCode})})):null,s(t,Object.assign({className:"rPart",onClick:()=>p("goodDetail",{skuCode:a.footprintOpcode})},{children:[e(i,{src:a.footprintOppic,className:"img"}),s(t,Object.assign({className:"info"},{children:[e(o,Object.assign({className:"title"},{children:a.footprintOpcont})),e(o,Object.assign({className:"price"},{children:r}))]}))]}))]}))},za=({item:c,edit:t})=>{const{View:i}=d();return s(i,Object.assign({className:"footPrint"},{children:[e(a,{children:e(i,Object.assign({className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"}},{children:null==c?void 0:c.title}))}),c.option.map(((s,a)=>e(Ra,{footprintItem:s,edit:t},a)))]}))},Ma=({footprintList:s,edit:c})=>{const t=l((()=>{const e=s.map((e=>(e.gmtCreate=e.gmtCreate?Ne(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),a=T(e,"gmtCreate");return Object.keys(a).map((e=>({title:e||"",option:a[e]})))}),[s]);return e(a,{children:t.map(((s,a)=>e(za,{item:s,edit:c},a)))})},Fa=c((()=>{const{View:a,ScrollView:c,SmoothCheckbox:t,Button:i,Image:n}=d(),{footprintList:l,edit:o,setEdit:r,getSelectItem:g,delItem:m,getData:h}=he();return console.log(18,l),e(a,Object.assign({className:"footprint"},{children:0===l.length?e(a,Object.assign({className:"noDate"},{children:e(n,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})})):s(a,Object.assign({className:"hasDate"},{children:[e(a,Object.assign({className:"topBar"},{children:e(a,Object.assign({className:"edit",onClick:()=>r(!o)},{children:o?"完成":"编辑"}))})),e(Xe,Object.assign({id:"topBar1"},{children:s(c,Object.assign({scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScroll:h},{children:[e(t,Object.assign({onChange:g},{children:e(Ma,{footprintList:l,edit:o})})),o?s(a,Object.assign({className:"handleBar"},{children:[e(a,{className:"checkAll"}),e(i,Object.assign({className:"btn",onClick:m},{children:"删除"}))]})):null]}))}))]}))}))})),Wa=({item:a,edit:c,checked:t})=>{const{View:i,Image:n,Checkbox:l,SmoothView:o}=d();return s(i,Object.assign({className:"collectItem"},{children:[c?e(l,{className:"lPart",value:a.collectCode,checked:t}):null,s(i,Object.assign({className:"rPart",onClick:()=>p("goodDetail",{skuCode:a.collectOpcode})},{children:[e(n,{src:a.collectOppic,className:"img"}),s(i,Object.assign({className:"info"},{children:[e(o,Object.assign({className:"title"},{children:a.collectOpcont})),s(o,Object.assign({className:"price"},{children:[a.collectOpnum," 元"]}))]}))]}))]}))},Ga=c((()=>{const{collectionList:a,edit:c,setEdit:t,getData:i,getSelectItem:n,delItem:l,init:o,checked:r,handleSelectAll:g,selectAllChecked:m}=pe(),{View:h,ScrollView:p,SmoothCheckbox:b,Checkbox:u,Button:N,Image:O}=d();return e(h,Object.assign({className:"collectList"},{children:0===a.length?e(h,Object.assign({className:"noDate"},{children:e(O,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})})):s(h,Object.assign({className:"hasDate"},{children:[e(h,Object.assign({className:"topBar"},{children:e(h,Object.assign({className:"edit",onClick:()=>t(!c)},{children:c?"完成":"编辑"}))})),e(Xe,Object.assign({id:"topBar"},{children:s(p,Object.assign({scrollY:!0,scrollWithAnimation:!0,onScrollToLower:i,onScrollToUpper:o},{children:[e(b,Object.assign({onChange:n,style:{height:"100%"}},{children:a.map((s=>e(Wa,{item:s,edit:c,checked:r},s.collectId)))})),c?s(h,Object.assign({className:"handleBar"},{children:[e(h,Object.assign({className:"checkAll"},{children:e(b,Object.assign({onChange:g},{children:e(u,Object.assign({value:"1",checked:m},{children:"全选"}))}))})),e(N,Object.assign({className:"btn",onClick:l},{children:"删除"}))]})):null]}))}))]}))}))})),Ha=c((({noticeId:a})=>{const{View:c,Image:t}=d(),{info:i}=be(a);return s(c,Object.assign({className:"noticeDetailContainer"},{children:[e(c,Object.assign({className:"title"},{children:i.noticeTitle})),i.noticePicurl?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl}):null,i.noticePicurl1?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl1}):null,i.noticePicurl2?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl2}):null,i.noticePicurl3?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl3}):null,e(c,Object.assign({className:"content"},{children:i.noticeContext}))]}))})),Ea=c((({doclistId:a=2031})=>{const{info:c}=ue(a),{View:t,ScrollView:i}=d(),{doclistContent:n,doclistTitle:l,doclistTitle4:o}=c;return e(t,Object.assign({className:"articleDetail"},{children:e(Xe,Object.assign({id:"a"},{children:s(i,{children:[e(t,Object.assign({className:"title"},{children:l})),e(t,Object.assign({className:"author"},{children:o})),e("div",{className:"content",dangerouslySetInnerHTML:{__html:n||""}})]})}))}))}));export{ma as AddressDetail,ia as AddressList,Ea as ArticleDetail,Va as Cart,as as ClassifyNav,Ga as CollectionList,Aa as CouponList,ve as Cube,Js as EvaluateDetail,Xs as EvaluateList,ea as ExpressInfo,Fa as FootPrint,we as Goods,ws as GoodsClassify,fs as GoodsDetail,Es as GoodsDetailAndEvaluate,Bs as GoodsDetailBanner,Fs as GoodsDetailCoupon,qs as GoodsDetailHandleBar,Ds as GoodsDetailInfo,Ms as GoodsDetailPromotion,zs as GoodsDetailSize,Rs as GoodsDetailSku,Vs as GoodsDetailTopInfo,Me as GoodsGroup,vs as GoodsList,xe as Line,Ba as MineData,Da as MineFunction,Ta as MineOrderEntry,Ie as Notice,Ha as NoticeDetail,ss as OrderDetail,es as OrderList,La as PaymentMode,ya as PlaceOrder,ua as PlaceOrderAddress,Ca as PlaceOrderCoupon,Oa as PlaceOrderDelivery,Na as PlaceOrderGood,fa as PlaceOrderInfo,ka as PlaceOrderOperate,ye as QjMobileIcon,De as Search,Ss as SearchPage,Pe as SearchStyleTwo,Ve as Service,Re as Slider,Ae as Title,Se as Video};
1
+ import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{memo as c,useState as t,useRef as i,useEffect as n,useMemo as l,createElement as o,Fragment as r}from"react";import{useComponent as d,NoticeBar as g,antdMobile as m,IconMobile as h}from"@brushes/simulate-component";import{navigatorHandler as p,getEnv as b,getStorage as u,getTaro as N,useImmutableCallback as O,navigatorBackImpl as j,setStorage as C,updatePagesRefreshStore as f,getPagesRefreshStore as k}from"@brushes/utils";import{find as y,queryOcsconfigList as w,queryContractPageC as I,getContractNumbers as A}from"qj-b2c-api";import x from"classnames";import{isEqual as v,isEmpty as S,isUndefined as B,get as V,groupBy as T}from"lodash-es";import{useNotice as D,useCube as P,useOrderOperate as L,orderStatusImpl as R,orderStatusList as z,useOrderDetail as M,useGoodCollection as F,useGoodDetail as W,useBanner as G,useAddShopping as H,useGoodSku as E,usePromotion as Q,useAddCoupon as U,useCoupon as q,useEvaluate as K,goodsDetailStore as Z,useGoodsClassify as Y,useGoodsList as X,useEvaluateDetail as J,useExpressInfo as $,userAddressData as _,useAddressList as ee,useEditAddress as se,useOrderAddress as ae,useOrderGood as ce,useOrderCoupon as te,useOrderInfo as ie,useOrderPay as ne,useOrderResultResult as le,useCouponList as oe,useStore as re,useCartItem as de,StoreProvider as ge,useCartList as me,useOrderResult as he,useFootprint as pe,useCollectionList as be,useNoticeDetail as ue,useArticleDetail as Ne}from"qj-mobile-store";import Oe from"dayjs";import je from"china-division/dist/provinces.json";import Ce from"china-division/dist/cities.json";import fe from"china-division/dist/areas.json";function ke(e,s){var a={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&s.indexOf(c)<0&&(a[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var t=0;for(c=Object.getOwnPropertySymbols(e);t<c.length;t++)s.indexOf(c[t])<0&&Object.prototype.propertyIsEnumerable.call(e,c[t])&&(a[c[t]]=e[c[t]])}return a}function ye(e,s,a,c){return new(a||(a=Promise))((function(t,i){function n(e){try{o(c.next(e))}catch(e){i(e)}}function l(e){try{o(c.throw(e))}catch(e){i(e)}}function o(e){var s;e.done?t(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(n,l)}o((c=c.apply(e,s||[])).next())}))}const we=({className:s="iconfont",prefixClass:a="icon",onClick:c=(()=>{}),style:t={fontSize:16,color:"#444",fontWeight:900},value:i})=>{const{Text:n}=d();return e(n,{onClick:c,className:x(a,i?`${a}-${i}`:"",s),style:t})},Ie=c((({defaultValue:a=[],classCode:c="",margin:l,circular:o,cell:r,showSales:g,gap:m=10,goods:h=[],markedPrice:b,paddingTop:u,paddingBottom:N,paddingLeft:O,paddingRight:j})=>{const[C,f]=t(a),k=i(),{View:w,Text:I}=d();return n((()=>{console.log(53,y,k.current,h),v(k.current,h)||(k.current=h,S(h)?f(a):ye(void 0,void 0,void 0,(function*(){try{const e=yield y({goodsCode:h.toString(),distinctField:"goodsNo"});console.log(63,e),f(e.rows)}catch(e){f(a)}})))}),[h]),e(w,Object.assign({style:{paddingTop:u,paddingBottom:N}},{children:e(w,Object.assign({className:x({[`goods-${c}`]:!0}),style:{display:"grid",gap:m,marginBottom:l,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:O,paddingRight:j}},{children:C.map(((a,c)=>s(w,Object.assign({style:{overflow:"hidden",borderRadius:2===o?0:"8px"},onClick:()=>p("goodDetail",{skuCode:a.skuCode}),className:"goods"},{children:[e(w,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(w,Object.assign({className:"space"},{children:[e(w,Object.assign({className:"titleType"},{children:a.goodsName})),e(w,Object.assign({className:"subTitle"},{children:a.brandName})),g&&s(w,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(w,Object.assign({className:"price"},{children:[e(I,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===b&&s(I,Object.assign({className:"markedPrice"},{children:[e(I,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(w,Object.assign({className:"anticon"},{children:e(we,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),Ae=({direction:s,speed:a,num:c,color:t})=>{const{content:i,navigator:n}=D(c);return e(g,{navigator:n,color:t,speed:a,direction:s,content:i})},xe=c((({value:s,textIndent:a,fontSize:c,textAlign:t,color:i,backgroundColor:n,fontWeight:l,textDecoration:o,fontStyle:r,paddingTop:g,paddingLeft:m,paddingRight:h,paddingBottom:p})=>{const{View:b}=d();return e(b,Object.assign({className:"components-title",style:{paddingTop:g,paddingBottom:p}},{children:e(b,Object.assign({style:{fontSize:c,textAlign:t,color:i,backgroundColor:n,fontWeight:l,textDecoration:o,fontStyle:r,paddingLeft:m,paddingRight:h,textIndent:a}},{children:s}))}))})),ve=c((({defaultValue:s,type:a,borderRadius:c,outerShadow:t,paddingRight:i,paddingLeft:n,picGap:l,xGap:o,paddingTop:r,paddingBottom:g,selectImg:m})=>{const{View:h,Image:b}=d(),u=P(s,m);return e(h,Object.assign({style:{paddingTop:r,paddingBottom:g,paddingLeft:o,paddingRight:o}},{children:e(h,Object.assign({className:`cube-type${a}`,style:{paddingLeft:n,paddingRight:i,gap:l}},{children:u.map(((s,i)=>e(b,{className:"block "+(t?"outer-shadow":""),mode:1===a?"widthFix":"scaleToFill",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:()=>{var e,a;return p(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},i)))}))}))})),Se=c((({borderStyle:s,borderRadius:a,height:c,width:t,backgroundColor:i,paddingTop:n,paddingBottom:l})=>{const{View:o}=d();return e(o,Object.assign({style:{paddingTop:n,paddingBottom:l}},{children:e(o,{style:{borderRadius:a+"%",borderStyle:s,width:t+"%",height:c+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})}))})),Be=c((({url:s,poster:a,autoplay:c,loop:t,paddingTop:i,paddingBottom:n,paddingLeft:l,paddingRight:o})=>{const{View:r}=d();return e(r,Object.assign({style:{paddingTop:i,paddingBottom:n}},{children:e("video",{className:"components-video",src:"https://www.runoob.com/try/demo_source/movie.ogg",poster:a,autoPlay:c,loop:t,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:o}})}))})),Ve=c((({width:s,height:a,top:c,right:t,bottom:i,left:n,borderRadius:l})=>{const{View:o}=d();return e(o,{style:{width:s,height:a,borderRadius:l,top:c,left:n,right:t,bottom:i},className:"components-service"})})),Te="data:image/png;base64,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",De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Pe=c((({value:a,iconShow:c,fontColor:t,backgroundColor:i,borderRadius:n,paddingLeft:l,paddingRight:o,sticky:r,fontsize:g,paddings:m,otherStyles:h})=>{const{View:b,Image:u}=d();return e(b,Object.assign({onClick:()=>p("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:o},className:r?"boxpositon":""},{children:s(b,Object.assign({className:"components-search",style:{backgroundColor:i,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(u,{src:Te,alt:"",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,Object.assign({className:[`txt ${h.includes("weight")?"weight":""} ${h.includes("italic")?"italic":""} ${h.includes("decoration")?"decoration":""} `],style:{color:t,display:"inline-block",fontSize:g}},{children:a}))]}))}))})),Le=c((({value:a,iconShow:c,fontColor:t,backgroundColor:i,borderRadius:n,paddingLeft:l,paddingRight:o,sticky:r,fontsize:g,paddings:m,otherStyles:h})=>{const{View:b,Image:u}=d();return e(b,Object.assign({onClick:()=>p("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:o},className:r?"boxPosition":""},{children:s(b,Object.assign({className:"components-search",style:{border:`1px solid ${i}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"}},{children:[s(b,Object.assign({style:{width:"80%"}},{children:[e(u,{src:Te,alt:"",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,Object.assign({className:[`txt ${h.includes("weight")?"weight":""} ${h.includes("italic")?"italic":""} ${h.includes("decoration")?"decoration":""} `],style:{color:t,display:"inline-block",fontSize:g}},{children:a}))]})),e(b,Object.assign({className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:g,backgroundColor:i,width:"20%",color:t}},{children:"搜索"}))]}))}))})),Re=c((({item:s})=>{var a,c;const{Image:t}=d();return e(t,{mode:"scaleToFill",src:s.imgUrl,style:{width:"100%",height:"100%"},onClick:p.bind(null,null===(a=s.link)||void 0===a?void 0:a.value,null===(c=s.link)||void 0===c?void 0:c.params)})})),ze=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:t,direction:i,loop:n,paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g,selectImg:m,vertical:h,imgHeight:p})=>{const{SmoothSwiper:b,View:u}=d(),N=P(s,m||[]);return e(u,Object.assign({style:{paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g}},{children:e(b,{imgHeight:p,data:N,type:a,autoplay:c,autoplayInterval:t,direction:i,loop:n,interval:5e3,vertical:h,render:s=>e(Re,{item:s})})}))})),{JumboTabs:Me}=m,Fe=c((({defaultValue:s=[],type:a,selectGoodsGroup:c=[],marginTop:i,marginBottom:l,borderRadius:o})=>{const[r,d]=t(s);return n((()=>{const e=c.filter((e=>!B(e))).filter((e=>!Object.values(e).every((e=>B(e)))));let a=s;S(e)||(a=e),d(a)}),[c]),e(Me,Object.assign({style:{marginTop:i+"px",marginBottom:l+"px"}},{children:r.map(((s,a)=>e(Me.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(Ie,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:o})}),a)))}))})),We=b(),Ge=()=>{const[e,s]=t([]);n((()=>{ye(void 0,void 0,void 0,(function*(){const e=u("service");if(e)s(a(e));else{const e=yield w();s(a(e))}}))}),[]);const a=e=>{let s=[];for(let a=0;a<e.length;a++){const c=e[a].ocsOcserviceReDomain;s.push(`${c.ocserviceName}: ${c.ocserviceRemark}`)}return s};return{servicePopup:()=>{if(!We)return;N().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},He=(e=0)=>e?"¥ "+ +e.toFixed(2):0,Ee=({dataPic:a,goodsName:c,goodsCamount:t,pricesetNprice:i,skuName:n,skuCode:o})=>{const{View:r,Image:g,SmoothView:m}=d(),h=He(i),b=l((()=>t?`x ${t}`:""),[t]);return s(r,Object.assign({className:"card-item",onClick:()=>p("goodDetail",{skuCode:o})},{children:[e(g,{src:a,alt:"",className:"card-item-img"}),s(r,Object.assign({className:"card-item-info"},{children:[s(r,Object.assign({className:"card-item-info-container"},{children:[e(m,Object.assign({className:"card-item-info-container-title"},{children:c})),e(m,Object.assign({className:"card-item-info-container-price"},{children:h}))]})),s(r,Object.assign({className:"card-item-info-sub"},{children:[e(m,Object.assign({className:"sku"},{children:n})),e(m,Object.assign({className:"count"},{children:b}))]}))]}))]}))},{Button:Qe}=m,Ue=s=>{var{dataState:c}=s,t=ke(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(qe,Object.assign({dataState:c},t))})},qe=s=>{var{dataState:a,contractAppraise:c,color:t,borderColor:i,btnColor:n,btnShape:l}=s,o=ke(s,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=d();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:g,handlerImpl:m}=L(Object.assign({dataState:a},o));return e(r,Object.assign({className:"btnGroup"},{children:g.map(((s,a)=>e(Qe,Object.assign({style:{color:t,borderColor:i,backgroundColor:n},className:x({btn:!0,white:0===a,black:1===a}),onClick:()=>m(s.handler),shape:l},{children:s.name}),a)))}))},{Button:Ke}=m;function Ze({contractBillcode:a,dataBmoney:c,dataBnum:t,goodsList:i,dataState:n,contractId:l,init:o,contractAppraise:r}){const{View:g}=d(),m=R(n);return s(g,Object.assign({className:"orderListItem"},{children:[s(g,Object.assign({onClick:()=>p("orderDetail",{contractBillcode:a})},{children:[s(g,Object.assign({className:"topInfo"},{children:[s(g,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(Ke,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(g,Object.assign({className:"status"},{children:m}))]})),s(g,Object.assign({className:"goodsItemWrap"},{children:[i.map((s=>e(Ee,Object.assign({},s),s.contractGoodsId))),s(g,Object.assign({className:"allInfo"},{children:[s(g,Object.assign({className:"totalNum"},{children:["共",t,"件商品"]})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(Ue,{init:o,contractId:l,contractBillcode:a,dataState:n,contractAppraise:r})]}))}function Ye(e){const[s,a]=t(0);return n((()=>{if(!b()||!e)return;const s=N().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;a(s)}})).exec()}))})),s}const Xe=b(),Je=s=>{var{bottomHeight:a,children:c,id:t,heightWrap:i}=s,n=ke(s,["bottomHeight","children","id","heightWrap"]);const o=Ye(t),r=function(e=""){return l((()=>{if(!b())return 0;const s=N(),a=s.getStorageSync("safeArea"),c=s.getStorageSync("tabBarHeight")||0;return a+(s.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?c:0)+(e?+e:0)}),[])}(a),{View:g}=d(),m=l((()=>{if(!Xe)return t?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(t){return{height:`calc(${N().getSystemInfoSync().windowHeight+"px"} - ${o+r}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[o,r]);return e(g,Object.assign({},n,{style:Object.assign(Object.assign({},m),{paddingBottom:t?"":r}),id:t},{children:c}))},$e=b(),_e={contractBillcode:"",goodsList:[{dataPic:"",goodsName:"",dataBmoney:0,goodsCamount:0,contractGoodsId:0,dataState:0}],dataBmoney:0,dataBnum:0,dataState:0,contractId:"",contractAppraise:0};const es=c((function({item:a,refreshNum:c}){const{View:l,ScrollView:r,Loading:g}=d(),m=i(!1),[h,p]=t(!1),[b,u]=t([_e]),N=i(0);Ye("qj-tabs-id"),n((()=>{j()}),[c]);const j=O((()=>{N.current=0,u([]),C()})),C=O(((e={})=>ye(this,void 0,void 0,(function*(){if(m.current)return;p(!0),++N.current;const{code:e}=a;try{const s=yield I({page:N.current,rows:10,isLocalMock:!$e,childFlag:!0,dataStateStr:e});m.current=S(s.rows)||s.rows.length<10,u((e=>e.concat(s.rows||[]))),p(!1)}catch(e){--N.current,console.log(30,e)}}))));return e(l,Object.assign({className:"orderListItemWrap"},{children:e(Je,Object.assign({id:"orderListItemWrap"},{children:e(r,Object.assign({onScroll:C},{children:s(l,{children:[b.map(((e,s)=>o(Ze,Object.assign({init:j},e,{key:s})))),e(l,{children:h?e(g,{}):null})]})}))}))}))})),ss=c((({refreshNum:s=0,id:a=""})=>{const{View:c,Tabs:t}=d();return e(c,Object.assign({className:"order-container"},{children:e(t,{defaultIndex:+a,tabs:z,render:a=>e(c,Object.assign({className:"orderList"},{children:e(es,{item:a,refreshNum:s})}))})}))})),as=c((({contractBillcode:a,expressWay:c,backgroundColor:t,color:i,paddingBottom:n,paddingTop:l,borderColor:o,btnColor:r,btnShape:g})=>{const{View:m,Text:h}=d(),{orderDetail:p}=M(a||"");return s(m,Object.assign({className:"orderDetail"},{children:[e(m,Object.assign({style:{backgroundColor:t},className:"orderDetailTopTitle"},{children:s(m,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(h,Object.assign({className:"title"},{children:R(p.dataState)})),e(m,{className:"subTitleWrap"})]}))})),e(m,Object.assign({className:"orderDetailContent",style:{paddingTop:l+"px",paddingBottom:n+"px"}},{children:s(m,Object.assign({style:{position:"relative",top:-26}},{children:[s(m,Object.assign({className:"addressInfo"},{children:[e(m,{className:"lPart"}),s(m,Object.assign({className:"mPart"},{children:[s(m,Object.assign({className:"personInfo"},{children:[e(h,Object.assign({className:"personName"},{children:p.goodsReceiptMem})),e(h,Object.assign({className:"personPhone"},{children:p.goodsReceiptPhone}))]})),e(m,Object.assign({className:"address"},{children:p.goodsReceiptArrdess}))]})),e(m,{className:"rPart"})]})),s(m,Object.assign({className:"orderDetailGoodsWrap"},{children:[p.goodsList.map((s=>e(Ee,Object.assign({},s),s.contractGoodsId))),s(m,Object.assign({className:"priceInfo"},{children:[s(m,Object.assign({className:"priceInfoFloor top"},{children:[s(m,Object.assign({className:"totalNum"},{children:["共",p.goodsNum,"件商品"]})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((p.dataBmoney-p.refundMoney).toFixed(2))]}))]})),s(m,Object.assign({className:"priceInfoFloor"},{children:[e(m,Object.assign({className:"totalNum"},{children:"商品总额"})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",p.contractInmoney]}))]})),s(m,Object.assign({className:"priceInfoFloor"},{children:[e(m,Object.assign({className:"totalNum"},{children:"优惠"})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",p.goodsPmoney]}))]}))]}))]})),c&&s(m,Object.assign({className:"express"},{children:[e(m,Object.assign({className:"label"},{children:"配送方式"})),e(m,Object.assign({className:"name"},{children:"快递"}))]})),s(m,Object.assign({className:"orderInfo"},{children:[e(m,Object.assign({className:"orderInfoItem"},{children:e(m,Object.assign({className:"label"},{children:"订单信息"}))})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"买家留言"})),e(m,Object.assign({className:"name"},{children:p.packageRemark}))]})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"订单编号"})),e(m,Object.assign({className:"name"},{children:p.contractBillcode}))]})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"下单时间"})),e(m,Object.assign({className:"name"},{children:p.gmtCreate}))]}))]})),e(m,Object.assign({className:"btnGroupFooter"},{children:e(Ue,{borderColor:o,btnColor:r,btnShape:g,color:i,contractBillcode:p.contractBillcode,contractId:p.contractId,dataState:p.dataState})}))]}))}))]}))})),cs=c((({defaultValue:a,borderRadius:c,paddingTop:t,paddingBottom:i,selectClassifyNav:n})=>{const{View:l,Text:o}=d(),r=P(a,n);return e(l,Object.assign({style:{paddingTop:t,paddingBottom:i}},{children:e(l,Object.assign({className:"classifyNav"},{children:r.map(((a,t)=>s(l,Object.assign({className:"classifyNavItem",onClick:()=>{var e,s;return p(null===(e=a.link)||void 0===e?void 0:e.value,null===(s=a.link)||void 0===s?void 0:s.params)}},{children:[e("img",{src:a.imgUrl,alt:"",className:"img",style:{borderRadius:`${c}px`}}),e(o,Object.assign({className:"label"},{children:a.title}))]}),t)))}))}))})),ts=a=>{const{SmoothView:c,View:t}=d(),{handleCollect:i,collection:n}=F(a);return s(t,Object.assign({onClick:i},{children:[e("img",{src:Te,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:S(n.dataObj)?"收藏":"已收藏"}))]}))},is=({skuCode:s})=>{const{rsGoodsFileDomainList:a=[]}=W(s),c=G(a);return e(ze,{selectImg:c,type:1,imgHeight:{height:375,width:375}})},ns=({skuCode:a})=>{const{View:c,SmoothView:t}=d(),{goodsName:i,pricesetNprice:n,dataPic:l}=W(a);return s(c,Object.assign({className:"goodsDetail-topInfo"},{children:[s(c,{children:[e(t,Object.assign({className:"name"},{children:i})),e(t,Object.assign({className:"price"},{children:He(n)}))]}),e(c,Object.assign({className:"rPart"},{children:e(ts,{goodsName:i,pricesetNprice:n,dataPic:l,skuCode:a})}))]}))},ls=({skuName:a,skuOption:c,index:t})=>{const{View:i,Text:n}=d(),{handleChooseSize:l,spec:o}=H();return s(i,Object.assign({className:"sizeArr"},{children:[e(n,Object.assign({className:"title"},{children:a})),e(i,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(i,Object.assign({className:"sizeItem "+(o[t]===s.specValueValue?"active":""),onClick:l.bind(null,s.specValueValue,t)},{children:s.specValueValue}),a)))}))]}))},os=({skuInfo:a})=>{const{View:c,Text:t,Image:i,Popup:n,NumStep:l}=d(),{goodsShowname:o={},pricesetNprice:r,dataPic:g,skuList:m}=a,{count:h,spec:p,popupVisible:b,isNeedButton:u,handleStep:N,popupHandler:O,addShoppingImpl:j,addCardImpl:C,cashImpl:f}=H();return e(n,Object.assign({popupVisible:b,popupHandler:O},{children:s(c,Object.assign({className:"goodsDetail-size-popup"},{children:[s(c,Object.assign({className:"content"},{children:[s(c,Object.assign({className:"goodsInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e(i,{src:g,alt:"",className:"goodsImg"})})),s(c,Object.assign({className:"rPart"},{children:[e(c,Object.assign({className:"name"},{children:o})),e(c,Object.assign({className:"price"},{children:He(r)})),s(c,Object.assign({className:"chosen"},{children:["已选择: ",p.toString()]}))]}))]})),m.map(((s,a)=>e(ls,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(c,Object.assign({className:"countWrap"},{children:[e(c,Object.assign({className:"label"},{children:"购买数量"})),e(l,{count:h,handleStep:N})]}))]})),u?e(c,Object.assign({className:"btnWrap",onClick:j},{children:e(t,Object.assign({className:"btn"},{children:"确认"}))})):s(c,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(c,Object.assign({className:"btn addCart",onClick:C},{children:"加入购物车"})),e(c,Object.assign({onClick:f,className:"btn buy"},{children:"立即购买"}))]}))]}))}))},rs=({skuCode:c})=>{const{View:t,Text:i}=d(),{openPopup:n,count:l,spec:o}=H(),{skuInfo:r}=E(c);return s(a,{children:[s(t,Object.assign({className:"goodsDetail-size",onClick:()=>{n({popupVisible:!0,isNeedButton:!1})}},{children:[e(i,Object.assign({className:"label"},{children:"规格"})),s(t,Object.assign({className:"info"},{children:[s(i,Object.assign({className:"label"},{children:["已选择 数量: ",l," 规格: ",o.toString()]})),e("img",{src:De,alt:"",className:"icon"})]}))]})),e(os,{skuInfo:r})]})},ds=({skuCode:a})=>{const{View:c,Text:t}=d(),i=Q(a);return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(t,Object.assign({className:"label"},{children:"促销"})),e(c,Object.assign({className:"group"},{children:i.length?i.map((({discName:s},a)=>e(c,Object.assign({className:"item"},{children:s}),a))):e(c,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},gs=c((({promotionBegintime:a,pbName:c,discName:t,promotionCode:i,promotionName:n,couponOnceNums:o,couponOnceNumd:r,promotionEndtime:g})=>{const{View:m,Text:h}=d(),{save:p,isPick:b}=U(),u=l((()=>o-r),[o,r]);return e(m,Object.assign({className:"couponItem"},{children:s(m,Object.assign({className:"coupon-content"},{children:[s(m,Object.assign({className:"price"},{children:[e(m,Object.assign({className:"symbol"},{children:c})),e(m,Object.assign({className:"num"},{children:t}))]})),s(m,Object.assign({className:"info"},{children:[e(h,Object.assign({className:"title"},{children:n})),s(h,Object.assign({className:"date"},{children:[Oe(a).format("YYYY-MM-DD")," - ",Oe(g).format("YYYY-MM-DD")]}))]})),e(m,u>0?Object.assign({className:b?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:i,couponAmount:1})},{children:b?"已领取":"领取"}):Object.assign({className:"coupon-pick-default"},{children:"已领完"}))]}))}))})),ms=({skuCode:c})=>{const{View:t,Text:i,Popup:n,ScrollView:l}=d(),{coupon:r,visible:g,setVisible:m}=q(c);return s(a,{children:[s(t,Object.assign({className:"goodsDetail-coupon",onClick:()=>m(!0)},{children:[e(i,Object.assign({className:"label"},{children:"优惠券"})),s(t,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"label"},{children:"请选择优惠券"})),e("img",{src:De,alt:"",className:"icon"})]}))]})),e(n,Object.assign({popupVisible:g,popupHandler:m},{children:e(t,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(l,Object.assign({height:"400"},{children:r.map(((e,s)=>o(gs,Object.assign({},e,{key:s}))))}))}))}))]})},hs=({onChange:s,readOnly:a=!1,size:c=22,count:i})=>{const{View:l}=d(),[o,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(i){const e=[...o];for(let s=0;s<e.length;s++)e[s].icon=s>i-1?"star":"star-fill";r(e)}}),[]);const g=e=>{if(!a){for(let s=0;s<o.length;s++)o[s].icon=s>e?"star":"star-fill";r([...o]),s(e+1)}};return e(l,{children:o.map(((s,a)=>e(we,{onClick:g.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:c}},a)))})},ps=({item:a})=>{const{View:c,Image:t}=d();return s(c,Object.assign({className:"rateItem"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(t,{src:a.userImgurl,className:"avatar"}),s(c,Object.assign({className:"userInfo"},{children:[e(c,Object.assign({className:"name"},{children:a.userName})),e(hs,{readOnly:!0,size:14,count:a.evaluateScopeReList.length})]}))]})),e(c,Object.assign({className:"rPart"},{children:`${new Date(a.gmtCreate).getFullYear()}-${new Date(a.gmtCreate).getMonth()+1}-${new Date(a.gmtCreate).getDate()}`}))]})),e(c,Object.assign({className:"size"},{children:a.skuName})),e(c,Object.assign({className:"content"},{children:a.evaluateGoodsContent}))]}))},bs=c((({url:a,title:c,subTitle:t,link:i,style:n})=>{const{View:l,Image:o}=d();return e(l,Object.assign({className:"noData",style:n},{children:s(l,Object.assign({className:"content"},{children:[e(o,{className:"img",src:a}),e(l,Object.assign({className:"title"},{children:c})),e(l,Object.assign({className:"subTitle"},{children:t})),i?s(l,Object.assign({className:"link",onClick:()=>p(i)},{children:["去看看",e(h,{value:"xiangyou1"})]})):null]}))}))})),us=({evaluateArr:a})=>{const{View:c}=d(),t=i(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:t.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",t.current.length,")"]})),t.current.slice(0,5).map(((s,a)=>e(ps,{item:s},a)))]}):e(bs,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},Ns=({goodsRemark:s})=>{const{View:a}=d(),c=l((()=>s.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/\<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[s]);return e(a,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:c||""}})}))},Os=({tabActive:c,setTabActive:t})=>{const{Text:i}=d();return e(a,{children:[{title:"商品详情",id:"1"},{title:"评价",id:"2"}].map(((a,n)=>e(r,{children:s(i,Object.assign({className:"tabsItem "+(c===n?"active":""),onClick:()=>t(n)},{children:[a.title,e(i,{className:"line"})]}))},n)))})},js=({skuCode:a})=>{const{View:c}=d(),[i,n]=t(0),{goodsRemark:l,goodsCode:o}=W(a),r=K(o);return s(c,Object.assign({className:"goodsDetailTab"},{children:[e(c,Object.assign({className:"tabs"},{children:e(Os,{tabActive:i,setTabActive:n})})),e(c,Object.assign({className:"group"},{children:0===i?e(Ns,{goodsRemark:l}):e(us,{evaluateArr:r})}))]}))},Cs=({skuCode:c})=>{const{Text:t,View:i,IconMobile:n}=d(),{openPopup:l}=H(),{servicePopup:o}=Ge(),{skuInfo:r}=E(c),g=e=>{l({orderType:e,popupVisible:!0,isNeedButton:!0})};return s(a,{children:[s(i,Object.assign({className:"goodsDetailHandleBar"},{children:[s(i,Object.assign({className:"linkGroup",onClick:o},{children:[e(n,{value:"kefu",style:{fontSize:22,display:"block"}}),e(t,Object.assign({className:"txt"},{children:"客服"}))]})),s(i,Object.assign({className:"linkGroup",onClick:()=>p("shopping")},{children:[e(n,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(t,Object.assign({className:"txt"},{children:"购物车"}))]})),s(i,Object.assign({className:"goods-detail-btn-group"},{children:[e(i,Object.assign({className:"btn addCart",onClick:()=>{g(0)}},{children:"加入购物车"})),e(i,Object.assign({onClick:()=>{g(1)},className:"btn buy"},{children:"立即购买"}))]}))]})),e(os,{skuInfo:r})]})},{StoreProvider:fs}=Z,ks=({skuCode:a})=>{const{View:c}=d();return s(c,Object.assign({style:{backgroundColor:"#f6f6f6"}},{children:[e(is,{skuCode:a}),e(ns,{skuCode:a}),e(fs,{children:e(rs,{skuCode:a})}),e(ds,{skuCode:a}),e(ms,{skuCode:a}),e(js,{skuCode:a}),e(fs,{children:e(Cs,{skuCode:a})})]}))},ys=c((({navList:c,activeKey:t,cell:i=4})=>{const{View:n,Text:l,Image:o}=d();return e(a,{children:c.map((a=>e(n,Object.assign({className:["content",t===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(n,Object.assign({className:"classifyFloor"},{children:[s(n,Object.assign({className:"titleWrap"},{children:[e(l,Object.assign({className:"title"},{children:a.goodsClassName})),e(l,{className:"line"})]})),e(n,Object.assign({className:`container container_columns${i}`},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:t,goodsClassName:i})=>s(n,Object.assign({onClick:()=>p("goodList",{classtreeCode:a}),className:"classifyFloorGoodsItem"},{children:[e(o,{src:t,className:"logo"}),e(n,Object.assign({className:"title"},{children:i}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:ws}=m,Is=c((({cell:a,color:c,activeTitle:t,paddingTop:i,paddingBottom:n})=>{const{View:l,ScrollView:o}=d(),{activeKey:r,setActiveKey:g,navList:m,flag:h}=Y();return e(l,{children:e(Je,Object.assign({id:"goodsClassify"},{children:e(o,{children:s(l,Object.assign({style:{height:h?"100%":"667px",paddingTop:i,paddingBottom:n},className:"goodsClassifyContainer"},{children:[e(l,Object.assign({className:"side"},{children:e(ws,Object.assign({activeKey:r,onChange:g,style:{"--width":"88px"}},{children:m.map((s=>e(ws.Item,{title:s.goodsClassName,className:0===t?"typeBlock":"typeNoBlock",style:{color:s.goodsClassCode===r?c:"#000"}},s.goodsClassCode)))}))})),e(l,Object.assign({className:"main"},{children:e(ys,{navList:m,activeKey:r,cell:a})}))]}))})}))})})),As=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],xs=({setParams:a})=>{const{View:c}=d(),[i,n]=t(0),[l,o]=t(As);return e(c,Object.assign({className:"sortWrap"},{children:l.map((({order:t,sortField:l,name:r},d)=>s(c,Object.assign({className:"sortItem "+(i===d?"active":""),onClick:()=>((e,s,c)=>{n(s),c&&o((e=>(e[s].order="asc"===c?"desc":"asc",[...e]))),a({sortField:e,order:c})})(l,d,t)},{children:[r,t&&e(we,{style:{color:i===d?"#f00":"#444",fontSize:20},value:"desc"===t?"jiangxu":"shengxu"})]}),d)))}))},vs=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:i,Loading:n,SmoothView:l,Image:o,ScrollView:r}=d(),[g,m]=t({}),{loading:h,getData:b,list:u}=X(a,c,g);return s(i,Object.assign({className:"goodsList"},{children:[e(i,Object.assign({className:"top-info"},{children:e(xs,{setParams:m})})),e(i,Object.assign({className:"listWrap"},{children:e(Je,Object.assign({id:"listWrap"},{children:s(r,Object.assign({onScroll:()=>b(g)},{children:[e(i,Object.assign({className:"list"},{children:u.map((a=>s(i,Object.assign({onClick:()=>p("goodDetail",{skuCode:a.skuCode}),className:"listItem"},{children:[e(o,{src:a.dataPic,className:"img"}),e(l,Object.assign({className:"name"},{children:a.goodsName})),e(l,Object.assign({className:"price"},{children:He(a.pricesetNprice)}))]}),a.skuCode)))})),h?e(n,{}):null]}))}))}))]}))})),Ss=b(),Bs=c((({placeholder:a,placeholderText:c,history:i,historyText:n,paddingBottom:l,paddingTop:o})=>{const{View:r,Text:g,Input:m}=d(),[h,b]=t((()=>u("history")||[]));console.log(23,u("history"));const f=O((e=>ye(void 0,void 0,void 0,(function*(){Ss&&(b((s=>{if(S(e.detail.value))return s;const a=s.concat(e.detail.value);return C("history",a),a})),k(e.detail.value))})))),k=O((e=>{p("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:o,paddingBottom:l}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Te,alt:""}),e(m,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:f},a?{placeholder:c}:{})),e(g,Object.assign({className:"btn",onClick:()=>j()},{children:"取消"}))]})),i?s(r,Object.assign({className:"historyWrap"},{children:[s(r,Object.assign({className:"title"},{children:[s(r,Object.assign({className:"label"},{children:[e(r,{className:"icon"}),n]})),e(we,{onClick:()=>ye(void 0,void 0,void 0,(function*(){(yield N()).removeStorageSync("history"),b([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(r,Object.assign({className:"content"},{children:h.map(((s,a)=>e(r,Object.assign({onClick:()=>k(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),Vs=c((()=>{const{View:a,Text:c}=d();return e(a,Object.assign({className:"goodsDetail-topInfo-wrap"},{children:s(a,Object.assign({className:"goodsDetail-topInfo"},{children:[s(a,{children:[e(c,Object.assign({className:"name"},{children:"宠侣 狗狗零食鸡肉绕饼干620g宠"})),e(c,Object.assign({className:"price"},{children:"¥2300.00"}))]}),s(a,Object.assign({className:"rPart"},{children:[e("img",{src:Te,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),Ts=({skuCode:s,autoplay:a,vertical:c})=>{const{rsGoodsFileDomainList:t=[]}=W(s),i=G(t);return e(ze,{selectImg:i,type:1,autoplay:a,vertical:c,imgHeight:{height:375,width:375}})},Ds=a=>{const{SmoothView:c,View:t}=d(),{handleCollect:i,collection:n}=F(a);return s(t,Object.assign({onClick:i},{children:[e("img",{src:Te,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:S(n.dataObj)?"收藏":"已收藏"}))]}))},Ps=({skuCode:a,priceShow:c,collectionShow:t})=>{const{View:i,SmoothView:n}=d(),{goodsName:l,pricesetNprice:o,dataPic:r}=W(a);return s(i,Object.assign({className:"goodsDetail-topInfo"},{children:[s(i,Object.assign({className:"lPart"},{children:[e(n,Object.assign({className:"name"},{children:l})),e(n,Object.assign({className:"price",style:{display:c?"block":"none"}},{children:He(o)}))]})),e(i,Object.assign({className:"rPart",style:{display:t?"flex":"none"}},{children:e(Ds,{goodsName:l,pricesetNprice:o,dataPic:r,skuCode:a})}))]}))},Ls=({skuInfo:a})=>{const{View:c,Text:t,Image:i,Popup:n,NumStep:l}=d(),{goodsShowname:o={},pricesetNprice:r,dataPic:g,skuList:m}=a,{count:h,spec:p,popupVisible:b,isNeedButton:u,handleStep:N,popupHandler:O,addShoppingImpl:j,addCardImpl:C,cashImpl:f}=H();return e(n,Object.assign({popupVisible:b,popupHandler:O},{children:e(c,Object.assign({className:"goodsDetail-size-popup"},{children:s(Je,{children:[s(c,Object.assign({className:"content"},{children:[s(c,Object.assign({className:"goodsInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e(i,{src:g,alt:"",className:"goodsImg"})})),s(c,Object.assign({className:"rPart"},{children:[e(c,Object.assign({className:"name"},{children:o})),e(c,Object.assign({className:"price"},{children:He(r)})),s(c,Object.assign({className:"chosen"},{children:["已选择: ",p.toString()]}))]}))]})),m.map(((s,a)=>e(ls,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(c,Object.assign({className:"countWrap"},{children:[e(c,Object.assign({className:"label"},{children:"购买数量"})),e(l,{count:h,handleStep:N})]}))]})),u?e(c,Object.assign({className:"btnWrap",onClick:j},{children:e(t,Object.assign({className:"btn"},{children:"确认"}))})):s(c,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(c,Object.assign({className:"btn addCart",onClick:C},{children:"加入购物车"})),e(c,Object.assign({onClick:f,className:"btn buy"},{children:"立即购买"}))]}))]})}))}))},{StoreProvider:Rs}=Z,zs=({skuCode:s})=>e(Rs,{children:e(Ms,{skuCode:s})}),Ms=({skuCode:c})=>{const{View:t,Text:i}=d(),{skuInfo:n}=E(c),{openPopup:l,count:o,spec:r}=H();return s(a,{children:[s(t,Object.assign({className:"goodsDetail-size",onClick:()=>{l({popupVisible:!0,isNeedButton:!1})}},{children:[e(i,Object.assign({className:"label"},{children:"规格"})),s(t,Object.assign({className:"info"},{children:[s(i,Object.assign({className:"label"},{children:["已选择 数量: ",o," 规格: ",r.toString()]})),e("img",{src:De,alt:"",className:"icon"})]}))]})),e(Ls,{skuInfo:n})]})},Fs=({skuCode:a})=>{const{View:c,Text:t}=d(),i=Q(a);return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(t,Object.assign({className:"label"},{children:"促销"})),e(c,Object.assign({className:"group"},{children:i.length?i.map((({discName:s},a)=>e(c,Object.assign({className:"item"},{children:s}),a))):e(c,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},Ws=({skuCode:c})=>{const{View:t,Text:i,Popup:n}=d(),{coupon:l,visible:r,setVisible:g}=q(c);return s(a,{children:[s(t,Object.assign({className:"goodsDetail-coupon",onClick:()=>g(!0)},{children:[e(i,Object.assign({className:"label"},{children:"优惠券"})),s(t,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"label"},{children:"请选择优惠券"})),e("img",{src:De,alt:"",className:"icon"})]}))]})),e(n,Object.assign({popupVisible:r,popupHandler:g},{children:e(t,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Je,{children:l.map(((e,s)=>o(gs,Object.assign({},e,{key:s}))))})}))}))]})},Gs=({evaluateArr:a})=>{const{View:c}=d(),t=i(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:t.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",t.current.length,")"]})),t.current.slice(0,5).map(((s,a)=>e(ps,{item:s},a)))]}):e(bs,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},Hs=({goodsRemark:s})=>{const{View:a}=d(),c=l((()=>s.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[s]);return e(a,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:c||""}})}))},Es=({tabActive:c,setTabActive:t,evaluateShow:i})=>{const{Text:n}=d();console.log(15,i);return e(a,{children:(i?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]).map(((a,i)=>e(r,{children:s(n,Object.assign({className:"tabsItem "+(c===i?"active":""),onClick:()=>t(i)},{children:[a.title,e(n,{className:"line"})]}))},i)))})},Qs=({skuCode:a,evaluateShow:c})=>{const{View:i}=d(),[n,l]=t(0),{goodsRemark:o,goodsCode:r}=W(a),g=K(r);return s(i,Object.assign({className:"goodsDetailTab"},{children:[e(i,Object.assign({className:"tabs"},{children:e(Es,{tabActive:n,setTabActive:l,evaluateShow:c})})),e(i,Object.assign({className:"group"},{children:0===n?e(Hs,{goodsRemark:o}):e(Gs,{evaluateArr:g})}))]}))},Us=({skuInfo:a})=>{const{View:c,Text:t,Image:i,Popup:n,NumStep:l}=d(),{goodsShowname:o={},pricesetNprice:r,dataPic:g,skuList:m}=a,{count:h,spec:p,popupVisible:b,isNeedButton:u,handleStep:N,popupHandler:O,addShoppingImpl:j,addCardImpl:C,cashImpl:f}=H();return e(n,Object.assign({popupVisible:b,popupHandler:O},{children:s(c,Object.assign({className:"goodsDetail-size-popup"},{children:[s(c,Object.assign({className:"content"},{children:[s(c,Object.assign({className:"goodsInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e(i,{src:g,alt:"",className:"goodsImg"})})),s(c,Object.assign({className:"rPart"},{children:[e(c,Object.assign({className:"name"},{children:o})),e(c,Object.assign({className:"price"},{children:He(r)})),s(c,Object.assign({className:"chosen"},{children:["已选择: ",p.toString()]}))]}))]})),m.map(((s,a)=>e(ls,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(c,Object.assign({className:"countWrap"},{children:[e(c,Object.assign({className:"label"},{children:"购买数量"})),e(l,{count:h,handleStep:N})]}))]})),u?e(c,Object.assign({className:"btnWrap",onClick:j},{children:e(t,Object.assign({className:"btn"},{children:"确认"}))})):s(c,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(c,Object.assign({className:"btn addCart",onClick:C},{children:"加入购物车"})),e(c,Object.assign({onClick:f,className:"btn buy"},{children:"立即购买"}))]}))]}))}))},{StoreProvider:qs}=Z,Ks=({skuCode:s,serverShow:a,cartShow:c,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:l,rPartBgColor:o,rPartStyle:r})=>e(qs,{children:e(Zs,{skuCode:s,serverShow:a,cartShow:c,lPartColor:t,lPartBgColor:i,lPartStyle:n,rPartColor:l,rPartBgColor:o,rPartStyle:r})}),Zs=({skuCode:c,serverShow:t,cartShow:i,lPartColor:n,lPartBgColor:l,lPartStyle:o,rPartColor:r,rPartBgColor:g,rPartStyle:m})=>{const{Text:h,View:b,IconMobile:u}=d(),{skuInfo:N}=E(c),{openPopup:O}=H(),{servicePopup:j}=Ge(),C=e=>{O({orderType:e,popupVisible:!0,isNeedButton:!0})};return s(a,{children:[s(b,Object.assign({className:"goodsDetailHandleBar"},{children:[s(b,Object.assign({className:"linkGroup server",onClick:j,style:{display:t?"block":"none"}},{children:[e(u,{value:"kefu",style:{fontSize:22,display:"block"}}),e(h,Object.assign({className:"txt"},{children:"客服"}))]})),s(b,Object.assign({className:"linkGroup cart",onClick:()=>p("shopping"),style:{display:i?"block":"none"}},{children:[e(u,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(h,Object.assign({className:"txt"},{children:"购物车"}))]})),s(b,Object.assign({className:"goods-detail-btn-group"},{children:[e(b,Object.assign({className:"btn addCart",onClick:()=>{C(0)},style:{color:n,backgroundColor:l,borderTopLeftRadius:o,borderBottomLeftRadius:o}},{children:"加入购物车"})),e(b,Object.assign({onClick:()=>{C(1)},className:"btn buy",style:{color:r,backgroundColor:g,borderTopRightRadius:m,borderBottomRightRadius:m}},{children:"立即购买"}))]}))]})),e(Us,{skuInfo:N})]})},Ys=({starColor:a="#FF0934",starSize:c="12px",itemData:t})=>{const{View:i,Text:n,Image:l}=d(),{Rate:o}=m;return s(i,Object.assign({className:"evaluateItem"},{children:[s(i,Object.assign({className:"userInfo"},{children:[e(l,{src:t.avatar,className:"avatar"}),s(i,Object.assign({className:"userNameWrap"},{children:[e(n,Object.assign({className:"userName"},{children:t.userName})),e(o,{readOnly:!0,value:t.rate,style:{"--star-size":c,"--active-color":a}})]}))]})),s(i,Object.assign({className:"size"},{children:["规格: ",t.size]})),e(i,Object.assign({className:"content"},{children:t.evaluate})),e(i,Object.assign({className:"img-group"},{children:t.imgUrls.map(((s,a)=>e(l,{src:s.imgUrl,className:"img"},a)))}))]}))},Xs=[{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"}]}],Js=c((()=>{const[c,n]=t("1"),{View:l}=d(),o=i([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{n(e)};return s(a,{children:[e(l,Object.assign({className:"evaluateListTab"},{children:o.current.map((e=>s(l,Object.assign({className:"evaluateListTabItem "+(e.index===c?"active":""),"data-index":e.index,onClick:r.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(l,Object.assign({className:"evaluateListContent"},{children:Xs.map(((s,a)=>e(Ys,{itemData:s},a)))}))]})})),$s=c((({code:a,borderRadius:c,borderColor:t,color:n,buttonColor:l,buttonBorderRadius:o,paddingTop:g,paddingBottom:h})=>{const{orderInfo:p,changeStar:b,Submit:u,changeContent:N}=J(a),{Button:O}=m,{View:j,Image:C,TextArea:f,Textarea:k}=d(),y=f||k,w=i("宝贝满足你吗?分享一下它吧");return s(j,Object.assign({className:"evaluateDetail",style:{paddingTop:g,paddingBottom:h}},{children:[p.map(((a,t)=>s(r,{children:[s(j,Object.assign({className:"topInfo"},{children:[s(j,Object.assign({className:"lPart"},{children:[e(C,{src:a.dataPic,className:"img",style:{borderRadius:1===c?"20px":"0px"}}),s(j,Object.assign({className:"goodsInfo"},{children:[e(j,Object.assign({className:"goodsName"},{children:a.goodsName})),e(j,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(j,Object.assign({className:"rPart"},{children:s(j,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(j,Object.assign({className:"rate"},{children:[e(j,Object.assign({className:"title"},{children:"商品评价"})),e(hs,{onChange:b.bind(null,t)})]})),e(j,Object.assign({className:"evaluate"},{children:e(y,{className:"content",placeholder:w.current,rows:5,maxLength:30,onInput:N.bind(null,t)})}))]},t))),e(O,Object.assign({style:{border:`1px solid ${t}`,color:n,backgroundColor:l,borderRadius:1===o?"20px":"0px"},className:"btn",onClick:u},{children:"提交"}))]}))})),_s=({code:a,defaultValue:c})=>{const{info:t,detail:i}=$(a),{View:n}=d(),l=V(t,"packageList[0].contractGoodsList[0].dataPic",c.dataPic),o=V(t,"packageList.length",c.count),r=V(t,"packageList[0].expressName",c.expressName),g=V(t,"packageList[0].packageBillno",c.packageBillno),m=V(i,"result",c.result);return s(n,Object.assign({className:"expressInfoTop"},{children:[e(n,Object.assign({className:"goodsImg",style:{backgroundImage:`url(${l})`}},{children:s(n,Object.assign({className:"tip"},{children:["共 ",o," 件商品"]}))})),s(n,Object.assign({className:"list"},{children:[m,s(n,Object.assign({className:"listItem"},{children:["物流状态:",m||"暂时无法获取物流状态"]})),s(n,Object.assign({className:"listItem"},{children:["快递公司:",r]})),s(n,Object.assign({className:"listItem"},{children:["快递单号:",g]}))]}))]}))},ea=({code:a,defaultValue:c})=>{const{detail:t}=$(a),{View:i}=d(),n=V(t,"message",c.message),l=V(t,"data",c.list);return e(i,Object.assign({className:"expressInfoStep"},{children:"ok"===n?l.map(((a,c)=>s(i,Object.assign({className:"step"},{children:[e(i,Object.assign({className:"time"},{children:a.time})),e(i,{children:a.context})]}),c))):e(i,Object.assign({className:"noInfo"},{children:n}))}))},sa=c((({code:a,defaultValue:c})=>{const{View:t}=d();return s(t,Object.assign({className:"expressInfo"},{children:[e(_s,{code:a,defaultValue:c}),e(ea,{code:a,defaultValue:c})]}))})),aa=({txt:s,onChange:a,checked:c})=>{const{View:t}=d(),{Checkbox:i}=m;return e(t,{children:e(i,Object.assign({onChange:a,checked:c,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},ca=b(),ta=({itemData:a,delAddress:c,setDefault:t,fontSize:i="12px",iconSize:n="12px"})=>{const{View:l,Text:o}=d(),r=process.env.TARO_ENV;return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>{f({orderDetermine:{num:1}}),console.log(17,k()),_.addressId=a.addressId,j(1)}},{children:[s(l,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(l,Object.assign({className:"addressInfo"},{children:s(o,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(l,Object.assign({className:"downInfo"},{children:[ca?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===r?e(aa,{txt:"设为默认地址",onChange:t,checked:"1"===(null==a?void 0:a.addressDefault)}):s("checkbox-group",Object.assign({onChange:t,class:"checkBoxWrap"},{children:[e("checkbox",{value:"cb",checked:"1"===(null==a?void 0:a.addressDefault)}),"设为默认地址"]}))})):s("div",Object.assign({className:"checkBoxPc"},{children:[e("input",{type:"checkbox",checked:"1"===a.addressDefault}),e("label",{children:"设为默认地址"})]})),e(o,Object.assign({className:"del",onClick:c},{children:"删除"}))]}))]}))},ia=c((()=>{const{View:s,Skeleton:c}=d(),t=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:t.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),na=c((({refreshNum:a,btnShape:c,btnColor:t,borderColor:i,paddingBottom:n,paddingTop:l,color:o})=>{const{View:r}=d(),{list:g,delAddress:m,setDefault:h,skullShow:b}=ee(a);return s(r,Object.assign({className:"addressListWrap"},{children:[b?e(ia,{}):e(r,Object.assign({className:"addressList",style:{paddingTop:l+"px",paddingBottom:n+"px"}},{children:g.length?g.map(((s,a)=>e(ta,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(bs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(r,Object.assign({className:"addBtnWrap"},{children:e(r,Object.assign({style:{borderRadius:c,borderColor:i,color:o,backgroundColor:t},className:"addBtn",onClick:()=>p("addressEditor")},{children:"+ 新增地址"}))}))]}))})),la=[{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"input",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:(e,s)=>new Promise(((e,a)=>{!/^1[3456789]\d{9}$/.test(s)&&s?a("请输入正确手机号"):e("")}))}]},{type:"cascader",label:"所在地区",name:"area",rules:[{required:!0,message:"所在地区不能为空"}]},{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",props:{},label:"设置默认地址",name:"addressDefault"}],oa=c((()=>{const{View:s,Skeleton:c}=d(),t=i(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:t.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));fe.forEach((e=>{const s=Ce.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),Ce.forEach((e=>{const s=je.filter((s=>s.code===e.provinceCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code+"00",children:e.children}))}));const ra=je.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),da=({form:a,handleArea:c})=>{const{View:i}=d(),{CascadePicker:n}=m,l=a.getFieldValue("area"),[o,r]=t(!1),g=e=>{const s={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},a={pIndex:0,cIndex:0};for(let c=0;c<ra.length;c++)if(ra[c].value===e[0]){s.provinceName=ra[c].label,a.pIndex=c;break}for(let c=0;c<ra[a.pIndex].children.length;c++)if(ra[a.pIndex].children[c].value===e[1]){s.cityName=ra[a.pIndex].children[c].label,a.cIndex=c;break}for(let c=0;c<ra[a.pIndex].children[a.cIndex].children.length;c++)if(ra[a.pIndex].children[a.cIndex].children[c].value===e[2]){s.areaName=ra[a.pIndex].children[a.cIndex].children[c].label;break}return console.log(52,s),s};return s(i,{children:[e(i,Object.assign({className:"txt",onClick:()=>r(!0)},{children:(null==l?void 0:l.provinceName)?`${l.provinceName}—${l.cityName}-${l.areaName}`:"请选择所在地区"})),e(n,{onConfirm:e=>{c("h5",g(e))},options:ra,visible:o,onClose:()=>r(!1)})]})},ga=({checked:s,onChange:a})=>{const{View:c}=d(),{Switch:t}=m;return e(c,{children:e(t,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},ma=b(),ha=c((({addressId:s,btnShape:c,btnColor:t,borderColor:i,color:n,paddingTop:l,paddingBottom:o})=>{const{View:r,Switch:g}=d(),{Form:h,Button:p,Input:b}=m,u=process.env.TARO_ENV,{skullShow:N,form:O,area:j,defaultAddress:C,handleArea:f,handleDefaultAddress:k,handleFinish:y}=se(s,h,ma);return e(r,Object.assign({className:"addressDetail",style:{height:ma?"100%":"667px",paddingBottom:o+"px",paddingTop:l+"px"}},{children:N?e(oa,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:y,footer:e(p,Object.assign({style:{color:n,backgroundColor:t,borderColor:i},shape:c,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:la.map(((s,c)=>e(h.Item,Object.assign({label:s.label,name:s.name,rules:s.rules,trigger:"cascader"===s.type?"onConfirm":"onChange",arrow:!1},{children:"input"===s.type?e(b,Object.assign({},s.props)):"switch"===s.type?"h5"===u?e(ga,{onChange:k.bind(null,"h5"),checked:"1"===C}):e(g,{color:"#000",onChange:k.bind(null,"weapp"),checked:"1"===C}):"cascader"===s.type?e(a,{children:ma?"h5"===u?e(da,{form:O,handleArea:f}):e("picker",Object.assign({mode:"region",onChange:f.bind(null,"weapp"),value:j},{children:e(r,Object.assign({className:"areaWrap"},{children:j.provinceName?`${j.provinceName}—${j.cityName}-${j.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),c)))}))}))})),pa=({address:s})=>e(a,{children:S(s)?e(ua,{}):e(ba,{address:s})}),ba=({address:a})=>{const{View:c,SmoothView:t,IconMobile:i}=d(),n=l((()=>{const{provinceName:e,addressDefault:s,cityName:c,areaName:t,addressDetail:i,addressMember:n="",addressPhone:l=""}=a;return{addressDefault:"1"===s,addressMember:n,addressPhone:l,address:e+c+t+i}}),[a]);return console.log(46,n.addressDefault),s(c,Object.assign({className:"address-info"},{children:[e(i,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),s(c,Object.assign({className:"left"},{children:[s(c,Object.assign({className:"left-title"},{children:[e(t,{children:n.addressMember}),e(t,Object.assign({className:"left-padding"},{children:n.addressPhone})),n.addressDefault?e(t,Object.assign({className:"left-padding left-title-default"},{children:"默认"})):null]})),e(t,Object.assign({className:"left-detail"},{children:n.address}))]})),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},ua=()=>{const{View:c,Text:t}=d();return s(a,{children:[s(c,Object.assign({className:"group"},{children:[e(t,{className:"local"}),e(t,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(t,{className:"arrow"})]})},Na=({refreshNum:s})=>{const{View:a}=d(),c=ae(s);return e(a,Object.assign({className:"placeOrder-chooseAddress",onClick:()=>p("addressList")},{children:e(pa,{address:c})}))},Oa=({refreshNum:s,goodsNum:a,skuId:c,shoppingGoodsId:t})=>{const{View:i}=d(),{list:n}=ce({refreshNum:s,goodsNum:a,skuId:c,shoppingGoodsId:t});return e(i,Object.assign({className:"place-order-goods"},{children:n.map(((s,a)=>e(Ee,Object.assign({},s),a)))}))},ja=({shippingMethod:a=1})=>{const{View:c}=d();return e(c,Object.assign({className:"info placeOrder-blcWrap",style:1===a?{display:"block"}:{display:"none"}},{children:s(c,Object.assign({className:"express placeOrder-blcItem"},{children:[e(c,Object.assign({className:"label"},{children:"配送方式"})),e(c,Object.assign({className:"value"},{children:"快递"}))]}))}))},Ca=c((({couponStart:a,pbName:c,discName:t,promotionCode:i,promotionName:n,couponEnd:l,disable:o})=>{const{View:r,Text:g,Radio:m}=d();return e(r,Object.assign({className:"couponItem"},{children:s(r,Object.assign({className:"coupon-content"},{children:[s(r,Object.assign({className:"price"},{children:[e(r,Object.assign({className:"symbol"},{children:c})),e(r,Object.assign({className:"num"},{children:t}))]})),s(r,Object.assign({className:"info"},{children:[e(g,Object.assign({className:"title"},{children:n})),s(g,Object.assign({className:"date"},{children:[Oe(a).format("YYYY-MM-DD")," - ",Oe(l).format("YYYY-MM-DD")]}))]})),e(r,o?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(m,{disabled:o,value:i})}))]}))}))})),fa=({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n})=>{const{View:l,Text:r,Popup:g,SmoothRadio:m,ScrollView:h}=d(),{amount:p,shoppingGoodsList:b}=ce({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n}),{coupon:u,visible:N,setVisible:O,selectCoupon:j,onChange:C}=te(b);return s(a,{children:[s(l,Object.assign({className:"coupon-select",onClick:()=>O(0!==u.length)},{children:[e(r,Object.assign({className:"label"},{children:"优惠券"})),s(l,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"label"},{children:j?`已选择: ${j}`:0===u.length?"暂无可用优惠券":"请选择优惠券"})),0===u.length?null:e("img",{src:De,alt:"",className:"icon"})]}))]})),e(g,Object.assign({popupVisible:N,popupHandler:O},{children:e(l,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Je,Object.assign({bottomHeight:"300"},{children:e(h,{children:e(m,Object.assign({onChange:C},{children:u.map(((e,s)=>o(Ca,Object.assign({disable:p<e.discAmount},e,{key:s}))))}))})}))}))}))]})},ka=({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n})=>{const{SmoothView:l,View:o}=d(),{payState:r,amount:g,disCount:m}=ce({refreshNum:c,goodsNum:t,skuId:i,shoppingGoodsId:n}),{shoppingCountPrice:h,freight:p,comDisMoney:b}=ie(r);return console.log(15,b+m,"freight",p),e(a,{children:s(o,Object.assign({className:"price placeOrder-blcWrap"},{children:[e(o,Object.assign({className:"title"},{children:"价格明细"})),s(o,Object.assign({className:"express placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"商品总金额"})),e(l,Object.assign({className:"value"},{children:He(h)}))]})),s(o,Object.assign({className:"coupon placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"优惠金额"})),e(l,Object.assign({className:"value"},{children:He(b+m)}))]})),s(o,Object.assign({className:"express placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"运费"})),e(l,Object.assign({className:"value"},{children:He(p)}))]})),s(o,Object.assign({className:"all placeOrder-blcItem"},{children:[e(o,Object.assign({className:"label"},{children:"总计"})),e(l,Object.assign({className:"value",style:{color:"#000"}},{children:He(g-m)}))]}))]}))})},ya=({color:a,buttonColor:c,borderColor:t,borderRadius:i,refreshNum:n,goodsNum:l,skuId:o,shoppingGoodsId:r})=>{const{View:g,Text:m,WrapLoading:h}=d(),{amount:p,list:b,disCount:u,payState:N,ocContractSettlList:O}=ce({refreshNum:n,goodsNum:l,skuId:o,shoppingGoodsId:r}),{savePayPrice:j,loading:C}=ne({ocContractSettlList:O,payState:N,list:b},o,l);return s(g,Object.assign({className:"placeOrderFooter"},{children:[s(m,Object.assign({className:"price"},{children:["合计: ",He(p-u)]})),e(h,Object.assign({loading:C},{children:e(g,Object.assign({className:"btn",onClick:j,style:{color:`${a}`,border:`1px solid ${t}`,backgroundColor:`${c}`,borderRadius:1===i?"40px":"0px"}},{children:"生成订单"}))}))]}))},wa=c((({refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i="",shippingMethod:n,color:l,buttonColor:o,borderColor:r,borderRadius:g,paddingTop:m,paddingBottom:h})=>{const{View:p}=d();return console.log(44,i),e(p,Object.assign({style:{height:"100%",paddingTop:m,paddingBottom:h},className:"placeOrder"},{children:s(p,Object.assign({className:"order-wrap"},{children:[e(Na,{refreshNum:a}),e(Oa,Object.assign({},{refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i})),e(ja,{shippingMethod:n}),e(fa,Object.assign({},{refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i})),e(ka,Object.assign({},{refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i})),e(ya,Object.assign({},{color:l,buttonColor:o,borderColor:r,borderRadius:g,refreshNum:a,goodsNum:c,skuId:t,shoppingGoodsId:i}))]}))}))})),Ia=b(),Aa=c((({code:a,borderRadius:c,leftColor:t,leftButtonColor:i,leftBorderColor:n,leftBorderRadius:l,rightValue:o,rightAddHref:r,rightColor:g,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:b,paddingTop:N,paddingBottom:O})=>{const{View:j,Text:C}=d(),{result:f}=le(a||(u("contractBillcode")||{}).contractBillcode),{sysRecode:k,dataObj:y}=f;return e(j,Object.assign({className:"placeOrderResult",style:{height:Ia?"100vh":"667px",paddingTop:N,paddingBottom:O}},{children:s(j,k?Object.assign({className:"placeOrderResultContent",style:{borderRadius:1===c?"20px":"0px"}},{children:[e(C,{className:"icon"}),e(j,Object.assign({className:"tips"},{children:e(C,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(j,Object.assign({className:"placeOrderResultWrap"},{children:[s(j,Object.assign({className:"placeOrderResultItem"},{children:[e(C,Object.assign({className:"label"},{children:"订单号:"})),e(C,Object.assign({className:"value"},{children:y.contractBillcode}))]})),s(j,Object.assign({className:"placeOrderResultItem"},{children:[e(C,Object.assign({className:"label"},{children:"支付方式:"})),e(C,Object.assign({className:"value"},{children:"在线支付"}))]})),s(j,Object.assign({className:"placeOrderResultItem"},{children:[e(C,Object.assign({className:"label"},{children:"支付金额:"})),s(C,Object.assign({className:"value"},{children:["¥ ",y.dataBmoney]}))]}))]})),s(j,Object.assign({className:"btnGroup"},{children:[e(j,Object.assign({className:"btn black",onClick:()=>p("orderDetail",{contractBillcode:y.contractBillcode}),style:{color:t,backgroundColor:i,border:`1px solid ${n}`,borderRadius:1===l?"20px":"0px"}},{children:"查看订单"})),e(j,Object.assign({style:{color:g,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===b?"20px":"0px"},onClick:()=>p(r.value),className:"btn white"},{children:o}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(C,{className:"icon"}),s(j,Object.assign({className:"tips"},{children:[e(C,Object.assign({className:"title"},{children:"订单支付失败"})),e(C,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(j,Object.assign({className:"btnGroup"},{children:e(j,Object.assign({onClick:()=>p("paymentMode",{contractBillcode:f.contractBillcode}),className:"btn white"},{children:"去支付"}))}))]}))}))}));c((()=>{const{View:s,Skeleton:c}=d(),t=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:t.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));const xa=()=>{const{View:s,Image:a}=d();return e(s,Object.assign({className:"noData"},{children:e(a,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})}))},va=({list:c,coe:t,config:i,backgroundColor:n,color:l})=>{const{View:o,Text:r}=d();return e(a,{children:c.length?c.map(((c,d)=>(console.log(16,i.current[t.current].text),e(o,Object.assign({className:`couponListItem\n ${i.current[t.current].styleName}`,style:{backgroundColor:n,color:l}},{children:s(o,Object.assign({className:"coupon-content"},{children:[e(o,Object.assign({className:"price"},{children:e(r,Object.assign({className:"num"},{children:c.pbName}))})),s(o,Object.assign({className:"couponListItem-info"},{children:[e(r,Object.assign({className:"title"},{children:c.discName})),s(r,Object.assign({className:"date"},{children:["有效期至:",`${new Date(c.gmtModified).getFullYear()}-${new Date(c.gmtModified).getMonth()+1}-${new Date(c.gmtModified).getDate()}`]})),i.current[t.current].text?e(o,Object.assign({className:"btn"},{children:i.current[t.current].text})):null,2===t.current?e(a,{children:e(o,Object.assign({className:"round"},{children:"已失效"}))}):null]}))]}))}),d)))):e(xa,{})})},Sa=c((({backgroundColor:a,color:c,paddingTop:t,paddingBottom:i,queue:n})=>{const{View:l,Text:o,ScrollView:r}=d(),{coe:g,getList:m,config:h,switchTab:p,list:b=[]}=oe();return s(l,Object.assign({className:"couponList"},{children:[e(l,Object.assign({className:"couponTab"},{children:h.current.map(((a,c)=>s(l,Object.assign({className:"couponTabItem "+(g.current===c?"active":""),onClick:()=>p(c)},{children:[a.label,e(o,{className:"icon"})]}),a.id)))})),e(Je,Object.assign({id:"couponTab",bottomHeight:"60"},{children:e(r,Object.assign({onScroll:m},{children:e(l,Object.assign({className:"couponListContent",style:{paddingTop:t,paddingBottom:i}},{children:e(va,{backgroundColor:a,color:c,queue:n,list:b,coe:g,config:h})}))}))}))]}))}));function Ba({list:a}){const{View:c,Text:t,Image:i,Checkbox:n,NumStep:l,SmoothCheckbox:o,WrapLoading:r}=d(),{loading:g}=re(),{select:m,onChange:h,handleStep:b}=de();return e(r,Object.assign({loading:g},{children:e(o,Object.assign({onChange:h},{children:a.map(((a,o)=>s(c,Object.assign({className:"cartItem"},{children:[e(c,Object.assign({className:"checkBoxWrap"},{children:e(n,{checked:m.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(i,{className:"img",src:a.dataPic,onClick:()=>p("goodDetail",{skuCode:a.skuCode})}),s(c,Object.assign({className:"cartItem-info"},{children:[e(t,Object.assign({className:"cartItem-goodsName"},{children:a.goodsName})),s(c,Object.assign({className:"cartItem-size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(c,Object.assign({className:"cartItem-handleWrap"},{children:[s(t,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(l,{count:a.goodsCamount,handleStep:b.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),o)))}))}))}const Va=b(),Ta=({refreshNum:c})=>{const{View:i,Text:n,Checkbox:l,SmoothCheckbox:o,ScrollView:r}=d(),[g,m]=t(!0),{cartList:h,amount:p,selectAll:b,allCart:u,toOrderImpl:N,select:O,deleteCart:j,disMoney:C}=me(c);return e(i,Object.assign({className:"cart",style:{height:Va?"100%":"667px"}},{children:h.length?s(a,{children:[e(i,Object.assign({className:"edit"},{children:e(i,Object.assign({className:"btn",onClick:()=>m(!g)},{children:g?"编辑":"完成"}))})),e(Je,Object.assign({id:"editId",bottomHeight:"50"},{children:e(r,{children:e(Ba,{list:h})})})),s(i,Object.assign({className:"dashboard"},{children:[e(i,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:b},{children:e(l,Object.assign({checked:u.current.length===O.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),g?s(i,Object.assign({className:"check"},{children:[s(i,Object.assign({className:"priceGroup"},{children:[s(i,Object.assign({className:"discount"},{children:["优惠: ",s(n,Object.assign({className:"data"},{children:["¥ ",C||0]}))]})),s(i,Object.assign({className:"all"},{children:["合计: ",s(n,Object.assign({className:"data"},{children:["¥ ",p.amount.toFixed(2)]}))]}))]})),s(i,Object.assign({onClick:N,className:"btn"},{children:["结算(",p.num,")"]}))]})):e(i,Object.assign({className:"del"},{children:e(i,Object.assign({onClick:j,className:"btn"},{children:"删除"}))}))]}))]}):e(bs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))},Da=c((({refreshNum:s})=>e(ge,{children:e(Ta,{refreshNum:s})}))),Pa=c((({avatarStyle:a,paddingTop:c,paddingBottom:t,userAvatar:i,userNickname:n})=>{const{View:l,Text:o,IconMobile:r,Image:g}=d(),{servicePopup:m}=Ge();return s(l,Object.assign({className:"mineData",style:{paddingTop:`${c}px`,paddingBottom:`${t}px`}},{children:[s(l,Object.assign({className:"topBoard"},{children:[e(r,{value:"shezhi",onClick:()=>p("/account/setting/index")}),e(r,{value:"kehufuwukefu",onClick:m})]})),s(l,Object.assign({className:"userSetting",onClick:()=>p("/account/setting/index")},{children:[s(l,Object.assign({className:"lPart"},{children:[e(o,Object.assign({className:"name"},{children:n||"用户名称"})),e(l,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e(g,{src:i,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]}))]}))})),La=c((({title:a,columnList:c})=>{const{View:i,Text:l,Badge:o,Image:r}=d(),[g,m]=t({});return n((()=>{ye(void 0,void 0,void 0,(function*(){try{const e=yield A();m(e.dataObj)}catch(e){}}))}),[]),s(i,Object.assign({className:"mineOrderEntry"},{children:[s(i,Object.assign({className:"title"},{children:[e(i,Object.assign({className:"name"},{children:a})),e(i,Object.assign({className:"more",onClick:()=>p("orderlist")},{children:"查看全部"}))]})),e(i,Object.assign({className:"content"},{children:c.map(((a,c)=>s(i,Object.assign({onClick:()=>p("orderlist",{id:c+1}),className:"contentItem",style:{display:a.show?"block":"none"}},{children:[e(o,Object.assign({},g[a.code]>0?{content:g[a.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12}},{children:e(r,{src:a.imgUrl,className:"icon"})})),e(l,Object.assign({className:"subTitle"},{children:a.label}))]}),c)))}))]}))})),Ra=c((({paddingTop:a,paddingBottom:c,columnList:t})=>{const{View:i,Text:n,IconMobile:l,Image:o}=d();return e(i,Object.assign({className:"mineFunction",style:{paddingTop:a+"px",paddingBottom:c+"px"}},{children:t.map(((a,c)=>s(i,Object.assign({className:"menuListItem",onClick:()=>p(a.link.value)},{children:[s(i,Object.assign({className:"lPart"},{children:[e(o,{src:a.imgUrl,className:"icon"}),e(n,Object.assign({className:"label"},{children:a.link.label}))]})),e(l,{value:"xiangyou1"})]}),c)))}))})),za=b(),Ma=c((({contractBillcode:a,contractBbillcode:c,btnColor:t,btnShape:i,borderColor:n,paddingTop:l,paddingBottom:o,color:r})=>{const{View:g,Text:m,Radio:h,IconMobile:p,WrapLoading:b,SmoothRadio:u}=d(),{paymentImpl:N,channelList:O,contract:j,handleRadio:C,loading:f}=he({contractBillcode:a,contractBbillcode:c});return s(g,Object.assign({className:"paymentModeWrap",style:{height:za?"inherit":"667px",paddingBottom:o+"px",paddingTop:l+"px"}},{children:[s(g,Object.assign({className:"paymentMode"},{children:[s(g,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"title"},{children:[e(p,{value:"roundcheck"}),"订单提交成功"]})),s(g,Object.assign({className:"info"},{children:["订单号:",j.current.contractBillcode," | 总金额:",j.current.dataBmoney,"元"]}))]})),e(g,Object.assign({className:"paymentGroup"},{children:e(u,Object.assign({onChange:C},{children:O.map((a=>s(g,Object.assign({className:"paymentItem"},{children:[e(p,{value:a.icon}),s(g,{children:[s(g,Object.assign({className:"base"},{children:[e(m,{children:a.fchannelName}),e(h,{value:a.fchannelCode,className:"choose"})]})),"account"===a.value?s(g,Object.assign({className:"info"},{children:[e(g,{children:"账户余额:0元"}),e(g,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(b,Object.assign({loading:f},{children:e(g,Object.assign({className:"btnGroup",onClick:N},{children:e(g,Object.assign({style:{borderRadius:i,backgroundColor:t,color:r,borderColor:n},className:"payment"},{children:"立即支付"}))}))}))]}))})),Fa=({footprintItem:a,edit:c})=>{const{View:t,Image:i,Checkbox:n,SmoothView:o}=d(),r=l((()=>a.footprintOpnum?`${a.footprintOpnum}元`:""),[a.footprintOpnum]);return s(t,Object.assign({className:"footprintItem"},{children:[c?e(t,Object.assign({className:"lPart"},{children:e(n,{value:a.footprintCode})})):null,s(t,Object.assign({className:"rPart",onClick:()=>p("goodDetail",{skuCode:a.footprintOpcode})},{children:[e(i,{src:a.footprintOppic,className:"img"}),s(t,Object.assign({className:"info"},{children:[e(o,Object.assign({className:"title"},{children:a.footprintOpcont})),e(o,Object.assign({className:"price"},{children:r}))]}))]}))]}))},Wa=({item:c,edit:t})=>{const{View:i}=d();return s(i,Object.assign({className:"footPrint"},{children:[e(a,{children:e(i,Object.assign({className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"}},{children:null==c?void 0:c.title}))}),c.option.map(((s,a)=>e(Fa,{footprintItem:s,edit:t},a)))]}))},Ga=({footprintList:s,edit:c})=>{const t=l((()=>{const e=s.map((e=>(e.gmtCreate=e.gmtCreate?Oe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),a=T(e,"gmtCreate");return Object.keys(a).map((e=>({title:e||"",option:a[e]})))}),[s]);return e(a,{children:t.map(((s,a)=>e(Wa,{item:s,edit:c},a)))})},Ha=c((()=>{const{View:a,ScrollView:c,SmoothCheckbox:t,Button:i,Image:n}=d(),{footprintList:l,edit:o,setEdit:r,getSelectItem:g,delItem:m,getData:h}=pe();return console.log(18,l),e(a,Object.assign({className:"footprint"},{children:0===l.length?e(a,Object.assign({className:"noDate"},{children:e(n,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})})):s(a,Object.assign({className:"hasDate"},{children:[e(a,Object.assign({className:"topBar"},{children:e(a,Object.assign({className:"edit",onClick:()=>r(!o)},{children:o?"完成":"编辑"}))})),e(Je,Object.assign({id:"topBar1"},{children:s(c,Object.assign({scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScroll:h},{children:[e(t,Object.assign({onChange:g},{children:e(Ga,{footprintList:l,edit:o})})),o?s(a,Object.assign({className:"handleBar"},{children:[e(a,{className:"checkAll"}),e(i,Object.assign({className:"btn",onClick:m},{children:"删除"}))]})):null]}))}))]}))}))})),Ea=({item:a,edit:c,checked:t})=>{const{View:i,Image:n,Checkbox:l,SmoothView:o}=d();return s(i,Object.assign({className:"collectItem"},{children:[c?e(l,{className:"lPart",value:a.collectCode,checked:t}):null,s(i,Object.assign({className:"rPart",onClick:()=>p("goodDetail",{skuCode:a.collectOpcode})},{children:[e(n,{src:a.collectOppic,className:"img"}),s(i,Object.assign({className:"info"},{children:[e(o,Object.assign({className:"title"},{children:a.collectOpcont})),s(o,Object.assign({className:"price"},{children:[a.collectOpnum," 元"]}))]}))]}))]}))},Qa=c((()=>{const{collectionList:a,edit:c,setEdit:t,getData:i,getSelectItem:n,delItem:l,init:o,checked:r,handleSelectAll:g,selectAllChecked:m}=be(),{View:h,ScrollView:p,SmoothCheckbox:b,Checkbox:u,Button:N,Image:O}=d();return e(h,Object.assign({className:"collectList"},{children:0===a.length?e(h,Object.assign({className:"noDate"},{children:e(O,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})})):s(h,Object.assign({className:"hasDate"},{children:[e(h,Object.assign({className:"topBar"},{children:e(h,Object.assign({className:"edit",onClick:()=>t(!c)},{children:c?"完成":"编辑"}))})),e(Je,Object.assign({id:"topBar"},{children:s(p,Object.assign({scrollY:!0,scrollWithAnimation:!0,onScrollToLower:i,onScrollToUpper:o},{children:[e(b,Object.assign({onChange:n,style:{height:"100%"}},{children:a.map((s=>e(Ea,{item:s,edit:c,checked:r},s.collectId)))})),c?s(h,Object.assign({className:"handleBar"},{children:[e(h,Object.assign({className:"checkAll"},{children:e(b,Object.assign({onChange:g},{children:e(u,Object.assign({value:"1",checked:m},{children:"全选"}))}))})),e(N,Object.assign({className:"btn",onClick:l},{children:"删除"}))]})):null]}))}))]}))}))})),Ua=c((({noticeId:a})=>{const{View:c,Image:t}=d(),{info:i}=ue(a);return s(c,Object.assign({className:"noticeDetailContainer"},{children:[e(c,Object.assign({className:"title"},{children:i.noticeTitle})),i.noticePicurl?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl}):null,i.noticePicurl1?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl1}):null,i.noticePicurl2?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl2}):null,i.noticePicurl3?e(t,{className:"img",mode:"widthFix",src:i.noticePicurl3}):null,e(c,Object.assign({className:"content"},{children:i.noticeContext}))]}))})),qa=c((({doclistId:a=2031})=>{const{info:c}=Ne(a),{View:t,ScrollView:i}=d(),{doclistContent:n,doclistTitle:l,doclistTitle4:o}=c;return e(t,Object.assign({className:"articleDetail"},{children:e(Je,Object.assign({id:"a"},{children:s(i,{children:[e(t,Object.assign({className:"title"},{children:l})),e(t,Object.assign({className:"author"},{children:o})),e("div",{className:"content",dangerouslySetInnerHTML:{__html:n||""}})]})}))}))}));export{ha as AddressDetail,na as AddressList,qa as ArticleDetail,Da as Cart,cs as ClassifyNav,Qa as CollectionList,Sa as CouponList,ve as Cube,$s as EvaluateDetail,Js as EvaluateList,sa as ExpressInfo,Ha as FootPrint,Ie as Goods,Is as GoodsClassify,ks as GoodsDetail,Qs as GoodsDetailAndEvaluate,Ts as GoodsDetailBanner,Ws as GoodsDetailCoupon,Ks as GoodsDetailHandleBar,Ps as GoodsDetailInfo,Fs as GoodsDetailPromotion,Ms as GoodsDetailSize,zs as GoodsDetailSku,Vs as GoodsDetailTopInfo,Fe as GoodsGroup,vs as GoodsList,Se as Line,Pa as MineData,Ra as MineFunction,La as MineOrderEntry,Ae as Notice,Ua as NoticeDetail,as as OrderDetail,ss as OrderList,Ma as PaymentMode,wa as PlaceOrder,Na as PlaceOrderAddress,fa as PlaceOrderCoupon,ja as PlaceOrderDelivery,Oa as PlaceOrderGood,ka as PlaceOrderInfo,ya as PlaceOrderOperate,Aa as PlaceOrderResult,we as QjMobileIcon,Pe as Search,Bs as SearchPage,Le as SearchStyleTwo,Ve as Service,ze as Slider,xe as Title,Be as Video};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.3.32",
3
+ "version": "1.3.33",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [