s-material-react 1.4.7 → 1.4.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{NoticeBar as t,useComponent as i,antdMobile as n,IconMobile as c}from"@brushes/simulate-component";import{useNotice as o,useCube as l,useOrderOperate as r,orderStatusImpl as d,useOrderList as g,orderStatusList as m,useOrderDetail as h,useGoodsClassify as p,useGoodsList as b,useEvaluateDetail as u,useExpressInfo as N,useAddressItem as O,useAddressList as j,useEditAddress as C,useOrderResultResult as f,useCouponList as y,useStore as k,useCartItem as x,StoreProvider as w,useCartList as v,useCartTop as I,useCartListNext as S,useCartOperate as A,useOrderResult as B,useFootprint as V,useCollectionList as D,useNoticeDetail as L,useArticleDetail as T,useOrderAddress as P,useOrderGood as R,useOrderCoupon as z,useOrderInfo as M,useOrderPay as F,useGoTop as W,useGoods as G,useGoodDetail as E,useBanner as H,useGoodCollection as Y,useGoodSpecAndPrice as U,useGoodFootprint as Q,useGoodsShare as K,popupImplement as q,useGoodSkuStore as Z,usePromotion as X,useAddCoupon as $,useCoupon as J,useEvaluate as _,useAddShopping as ee,useGoodSku as se,useAllCoupon as ae,useMarketingPromotion as te}from"qj-mobile-store";import{memo as ie,useMemo as ne,useState as ce,useEffect as oe,createElement as le,createContext as re,useContext as de,useRef as ge,Fragment as me}from"react";import{navigatorHandler as he,getEnv as pe,getStorage as be,getTaro as ue,useImmutableCallback as Ne,navigatorBackImpl as Oe,setStorage as je}from"@brushes/utils";import Ce from"classnames";import{queryOcsconfigList as fe,getContractNumbers as ye,find as ke}from"qj-b2c-api";import{get as xe,isEmpty as we,groupBy as ve,isEqual as Ie,noop as Se}from"lodash-es";import Ae from"china-division/dist/provinces.json";import Be from"china-division/dist/cities.json";import Ve from"china-division/dist/areas.json";import De from"dayjs";const Le=({direction:s,speed:a,num:i,color:n})=>{const{content:c,navigator:l}=o(i);return e(t,{navigator:l,color:n,speed:a,direction:s,content:c})},Te=ie((({value:s,textIndent:a,fontSize:t,textAlign:n,color:c,backgroundColor:o,fontWeight:l,textDecoration:r,fontStyle:d,paddingTop:g,paddingLeft:m,paddingRight:h,paddingBottom:p})=>{const{View:b}=i();return e(b,Object.assign({className:"components-title",style:{paddingTop:g,paddingBottom:p}},{children:e(b,Object.assign({style:{fontSize:t,textAlign:n,color:c,backgroundColor:o,fontWeight:l,textDecoration:r,fontStyle:d,paddingLeft:m,paddingRight:h,textIndent:a}},{children:s}))}))})),Pe=ie((({defaultValue:s,type:a,borderRadius:t,outerShadow:n,paddingRight:c,paddingLeft:o,picGap:r,xGap:d,paddingTop:g,paddingBottom:m,selectImg:h})=>{const{View:p,Image:b}=i(),u=l(s,h);return e(p,Object.assign({style:{paddingTop:g,paddingBottom:m,paddingLeft:d,paddingRight:d}},{children:e(p,Object.assign({className:`cube-type${a}`,style:{paddingLeft:o,paddingRight:c,gap:r}},{children:u.map(((s,i)=>e(b,{className:"block "+(n?"outer-shadow":""),mode:1===a?"widthFix":"scaleToFill",src:s.imgUrl,style:{width:"100%",borderRadius:t+"px"},onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},i)))}))}))})),Re=ie((({url:s,poster:a,autoplay:t,loop:n,paddingTop:c,paddingBottom:o,paddingLeft:l,paddingRight:r})=>{const{View:d}=i();return e(d,Object.assign({style:{paddingTop:c,paddingBottom:o}},{children:e("video",{className:"components-video",src:s,poster:a,autoPlay:t,loop:n,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:r}})}))})),ze=ie((({width:s,height:a,top:t,right:n,bottom:c,left:o,borderRadius:l})=>{const{View:r}=i();return e(r,{style:{width:s,height:a,borderRadius:l,top:t,left:o,right:n,bottom:c},className:"components-service"})})),Me="data:image/png;base64,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",Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",We=ie((({value:a,iconShow:t,fontColor:n,backgroundColor:c,borderRadius:o,paddingLeft:l,paddingRight:r,sticky:d,fontsize:g,paddings:m,otherStyles:h=[]})=>{const{View:p,Image:b}=i(),u=ne((()=>Ce("txt",...h)),[h]);return e(p,Object.assign({onClick:()=>he("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:r},className:d?"boxpositon":""},{children:s(p,Object.assign({className:"components-search",style:{backgroundColor:c,borderRadius:o?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(b,{src:Me,alt:"",style:{height:"16px",width:"16px",display:t?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(p,Object.assign({className:u,style:{color:n,display:"inline-block",fontSize:g}},{children:a}))]}))}))})),Ge=ie((({value:a,iconShow:t,fontColor:n,backgroundColor:c,borderRadius:o,paddingLeft:l,paddingRight:r,sticky:d,fontsize:g,paddings:m,otherStyles:h=["mockWeight","mockItalic"]})=>{const{View:p,Image:b}=i(),u=ne((()=>Ce("txt",...h)),[h]);return e(p,Object.assign({onClick:()=>he("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:r},className:d?"boxPosition":""},{children:s(p,Object.assign({className:"components-search",style:{border:`1px solid ${c}`,borderRadius:o?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"}},{children:[s(p,Object.assign({style:{width:"80%"}},{children:[e(b,{src:Me,alt:"",style:{height:"16px",width:"16px",display:t?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(p,Object.assign({className:u,style:{color:n,display:"inline-block",fontSize:g}},{children:a}))]})),e(p,Object.assign({className:["seachBtn",o?"btnBorderRadius":""].join(" "),style:{fontSize:g,backgroundColor:c,width:"20%",color:n}},{children:"搜索"}))]}))}))})),Ee=ie((({item:s,position:a,direction:t})=>{var n,c;const{Image:o,View:l}=i();return e(o,{mode:"scaleToFill",src:s.imgUrl,style:{width:"100%",height:"100%",paddingBottom:"top"===a&&"vertical"===t?"30px":"",marginTop:"top"===a&&"horizontal"===t?"30px":""},onClick:he.bind(null,null===(n=s.link)||void 0===n?void 0:n.value,null===(c=s.link)||void 0===c?void 0:c.params)})})),He=ie((({Position:t,className:n="",className1:c="",defaultValue:o=[],type:r,autoplay:d,autoplayInterval:g,direction:m,loop:h,paddingTop:p,paddingBottom:b,paddingLeft:u,paddingRight:N,selectImg:O,imgHeight:j,fontsize:C=16,textAlign:f="center",fontColor:y="#000000",backGroundColor:k="#ffffff"})=>{const x=ne((()=>Ce({paddingbtm:"none"!==t,imgHeights:"bottom"===t&&"horizontal"===m}))),{SmoothSwiper:w,View:v}=i(),I=l(o,O||[]),S=s=>e(v,Object.assign({className:c,style:{fontSize:C,zIndex:99,justifyContent:"left"===f?"flex-start":"center"===f?"center":"flex-end",color:y,backgroundColor:k}},{children:s.title}));return e(v,Object.assign({className:n,style:{paddingTop:p,paddingBottom:b,paddingLeft:u,paddingRight:N}},{children:e(w,{imgHeight:j,data:I,className:x,type:r,autoplay:d,autoplayInterval:g,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:i=>s(a,{children:["top"===t||"bottom"===t?S(i):null,e(Ee,{item:i,position:t,direction:m})]})})}))})),Ye=ie((({paddingTop:s,paddingBottom:a,paddingLeft:t,paddingRight:n,defaultValue:c=[],type:o,autoplay:l,autoplayInterval:r,direction:d,loop:g,selectImg:m,vertical:h,imgHeight:p,paddingTB:b=0,paddingLR:u=0,fontsize:N=16,textAlign:O="center",fontColor:j="#000000",backGroundColor:C="#ffffff",otherStyles:f=[],ImgShadow:y=!1,Position:k="top"})=>{const{View:x}=i(),w=ne((()=>Ce("silder-title",{"silder-tops1":"top"===k&&"horizontal"===d,"silder-bottoms":"bottom"===k&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===k,"silder-tops":"vertical"===d&&"top"===k},...f)),[f,k]);return e(x,Object.assign({style:{padding:`${b}px ${u}px`}},{children:e(He,Object.assign({},{Position:k,defaultValue:c,type:o,autoplay:l,autoplayInterval:r,direction:d,loop:g,selectImg:m,vertical:h,imgHeight:p,paddingTop:s,paddingBottom:a,paddingLeft:t,paddingRight:n,fontsize:N,textAlign:O,fontColor:j,backGroundColor:C},{className:Ce({"outer-shadow":y}),className1:w}))}))}));function Ue(e,s){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)s.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a}function Qe(e,s,a,t){return new(a||(a=Promise))((function(i,n){function c(e){try{l(t.next(e))}catch(e){n(e)}}function o(e){try{l(t.throw(e))}catch(e){n(e)}}function l(e){var s;e.done?i(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(c,o)}l((t=t.apply(e,s||[])).next())}))}const Ke=pe(),qe=()=>{const[e,s]=ce([]);oe((()=>{Qe(void 0,void 0,void 0,(function*(){const e=be("service");if(e)s(a(e));else{const e=yield fe();s(a(e))}}))}),[]);const a=e=>{let s=[];for(let a=0;a<e.length;a++){const t=e[a].ocsOcserviceReDomain;s.push(`${t.ocserviceName}: ${t.ocserviceRemark}`)}return s};return{servicePopup:()=>{if(!Ke)return;ue().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},Ze=(e=0)=>e?"¥ "+ +e.toFixed(2):0,Xe=({dataPic:a,goodsName:t,goodsCamount:n,pricesetNprice:c,skuName:o,skuCode:l})=>{const{View:r,Image:d,SmoothView:g}=i(),m=Ze(c),h=ne((()=>n?`x ${n}`:""),[n]);return s(r,Object.assign({className:"card-item"},{children:[e(d,{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(g,Object.assign({className:"card-item-info-container-title"},{children:t})),e(g,Object.assign({className:"card-item-info-container-price"},{children:m}))]})),s(r,Object.assign({className:"card-item-info-sub"},{children:[e(g,Object.assign({className:"sku"},{children:o})),e(g,Object.assign({className:"count"},{children:h}))]}))]}))]}))},{Button:$e}=n,Je=s=>{var{dataState:t}=s,i=Ue(s,["dataState"]);return e(a,{children:["2","-1"].includes(t+"")?null:e(_e,Object.assign({dataState:t},i))})},_e=s=>{var{dataState:a,contractAppraise:t,color:n,borderColor:c,btnColor:o,btnShape:l}=s,d=Ue(s,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:g}=i();4!==a&&4!==a||1===t?4!==a&&4!==a||1!==t||(a=5):a=4;const{operateArray:m,handlerImpl:h}=r(Object.assign({dataState:a},d));return e(g,Object.assign({className:"btnGroup"},{children:m.map(((s,a)=>e($e,Object.assign({style:{color:n,borderColor:c,backgroundColor:o},className:Ce({btn:!0,white:0===a,black:1===a}),onClick:()=>h(s.handler),shape:l},{children:s.name}),a)))}))},{Button:es}=n;function ss({contractBillcode:a,dataBmoney:t,dataBnum:n,goodsList:c,dataState:o,contractId:l,init:r,contractAppraise:g,borderRadius:m,orderSpacing:h}){const{View:p}=i(),b=d(o);return s(p,Object.assign({className:"orderListItem",style:{borderRadius:m?8:"",marginTop:h,marginBottom:h}},{children:[s(p,Object.assign({onClick:()=>he("orderDetail",{contractBillcode:a})},{children:[s(p,Object.assign({className:"topInfo"},{children:[s(p,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(es,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(p,Object.assign({className:"status"},{children:b}))]})),s(p,Object.assign({className:"goodsItemWrap"},{children:[c.map((s=>e(Xe,Object.assign({},s),s.contractGoodsId))),s(p,Object.assign({className:"allInfo"},{children:[s(p,Object.assign({className:"totalNum"},{children:["共",n,"件商品"]})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ¥",t]}))]}))]}))]})),e(Je,{init:r,contractId:l,contractBillcode:a,dataState:o,contractAppraise:g})]}))}const as=pe(),ts=s=>{var{bottomHeight:a,children:t,id:n,heightWrap:c}=s,o=Ue(s,["bottomHeight","children","id","heightWrap"]);const l=function(e){const[s,a]=ce(0);return oe((()=>{if(!pe()||!e)return;const s=ue().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;a(s)}})).exec()}))})),s}(n),r=function(e=""){return ne((()=>{if(!pe())return 0;const s=ue(),a=s.getStorageSync("safeArea"),t=s.getStorageSync("tabBarHeight")||0;return a+(s.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?t:0)+(e?+e:0)}),[])}(a),{View:d}=i(),g=ne((()=>{if(!as)return n?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(n){return{height:`calc(${ue().getSystemInfoSync().windowHeight+"px"} - ${l+r}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[l,r]);return e(d,Object.assign({},o,{style:Object.assign(Object.assign({},g),{paddingBottom:n?"":r}),id:n},{children:t}))};const is=ie((function({item:a,refreshNum:t,borderRadius:n,orderSpacing:c}){const{View:o,ScrollView:l,Loading:r}=i(),{onScroll:d,data:m,loading:h,init:p}=g(a,t);return e(o,Object.assign({className:"orderListItemWrap"},{children:e(ts,Object.assign({id:"orderListItemWrap"},{children:e(l,Object.assign({onScroll:d},{children:s(o,{children:[m.map(((e,s)=>le(ss,Object.assign({init:p},e,{key:s,borderRadius:n,orderSpacing:c})))),e(o,{children:h?e(r,{}):null})]})}))}))}))})),ns=ie((({refreshNum:s=0,indexId:a=0,borderRadius:t=!1,orderSpacing:n=12})=>{const{View:c,Tabs:o}=i();return e(c,Object.assign({className:"order-container"},{children:e(o,{defaultIndex:+a,tabs:m,render:a=>e(c,Object.assign({className:"orderList"},{children:e(is,{item:a,orderSpacing:n,refreshNum:s,borderRadius:t})}))})}))})),cs=ie((({contractBillcode:a,expressWay:t,backgroundColor:n,color:c,paddingBottom:o,paddingTop:l,borderColor:r,btnColor:g,btnShape:m})=>{const{View:p,Text:b}=i(),{orderDetail:u}=h(a||"");return s(p,Object.assign({className:"orderDetail"},{children:[e(p,Object.assign({style:{backgroundColor:n},className:"orderDetailTopTitle"},{children:s(p,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(b,Object.assign({className:"title"},{children:d(u.dataState)})),e(p,{className:"subTitleWrap"})]}))})),e(p,Object.assign({className:"orderDetailContent",style:{paddingTop:l+"px",paddingBottom:o+"px"}},{children:s(p,Object.assign({style:{position:"relative",top:-26}},{children:[s(p,Object.assign({className:"addressInfo"},{children:[e(p,{className:"lPart"}),s(p,Object.assign({className:"mPart"},{children:[s(p,Object.assign({className:"personInfo"},{children:[e(b,Object.assign({className:"personName"},{children:u.goodsReceiptMem})),e(b,Object.assign({className:"personPhone"},{children:u.goodsReceiptPhone}))]})),e(p,Object.assign({className:"address"},{children:u.goodsReceiptArrdess}))]})),e(p,{className:"rPart"})]})),s(p,Object.assign({className:"orderDetailGoodsWrap"},{children:[u.goodsList.map((s=>e(Xe,Object.assign({},s),s.contractGoodsId))),s(p,Object.assign({className:"priceInfo"},{children:[s(p,Object.assign({className:"priceInfoFloor top"},{children:[s(p,Object.assign({className:"totalNum"},{children:["共",u.goodsNum,"件商品"]})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((u.dataBmoney-u.refundMoney).toFixed(2))]}))]})),s(p,Object.assign({className:"priceInfoFloor"},{children:[e(p,Object.assign({className:"totalNum"},{children:"商品总额"})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ¥",u.contractInmoney]}))]})),s(p,Object.assign({className:"priceInfoFloor"},{children:[e(p,Object.assign({className:"totalNum"},{children:"优惠"})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ¥",u.goodsPmoney]}))]}))]}))]})),t&&s(p,Object.assign({className:"express"},{children:[e(p,Object.assign({className:"label"},{children:"配送方式"})),e(p,Object.assign({className:"name"},{children:"快递"}))]})),s(p,Object.assign({className:"orderInfo"},{children:[e(p,Object.assign({className:"orderInfoItem"},{children:e(p,Object.assign({className:"label"},{children:"订单信息"}))})),s(p,Object.assign({className:"orderInfoItem"},{children:[e(p,Object.assign({className:"label"},{children:"买家留言"})),e(p,Object.assign({className:"name"},{children:u.packageRemark}))]})),s(p,Object.assign({className:"orderInfoItem"},{children:[e(p,Object.assign({className:"label"},{children:"订单编号"})),e(p,Object.assign({className:"name"},{children:u.contractBillcode}))]})),s(p,Object.assign({className:"orderInfoItem"},{children:[e(p,Object.assign({className:"label"},{children:"下单时间"})),e(p,Object.assign({className:"name"},{children:u.gmtCreate}))]}))]})),e(p,Object.assign({className:"btnGroupFooter"},{children:e(Je,{borderColor:r,btnColor:g,btnShape:m,color:c,contractBillcode:u.contractBillcode,contractId:u.contractId,dataState:u.dataState})}))]}))}))]}))})),os=ie((({navList:t,activeKey:n,cell:c=4})=>{const{View:o,Text:l,Image:r}=i();return e(a,{children:t.map((a=>e(o,Object.assign({className:["content",n===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(o,Object.assign({className:"classifyFloor"},{children:[s(o,Object.assign({className:"titleWrap"},{children:[e(l,Object.assign({className:"title"},{children:a.goodsClassName})),e(l,{className:"line"})]})),e(o,Object.assign({className:`container container_columns${c}`},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:t,goodsClassLogo:i,goodsClassName:n})=>s(o,Object.assign({onClick:()=>he("goodList",{classtreeCode:a}),className:"classifyFloorGoodsItem"},{children:[e(r,{src:i,className:"logo"}),e(o,Object.assign({className:"title"},{children:n}))]}),t)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:ls}=n,rs=ie((({cell:a,color:t,activeTitle:n,paddingTop:c,paddingBottom:o})=>{const{View:l,ScrollView:r}=i(),{activeKey:d,setActiveKey:g,navList:m,flag:h}=p();return e(l,{children:e(ts,Object.assign({id:"goodsClassify"},{children:e(r,{children:s(l,Object.assign({style:{height:h?"100%":"667px",paddingTop:c,paddingBottom:o},className:"goodsClassifyContainer"},{children:[e(l,Object.assign({className:"side"},{children:e(ls,Object.assign({activeKey:d,onChange:g,style:{"--width":"90px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(ls.Item,{title:s.goodsClassName,className:0===n?"typeBlock":"typeNoBlock",style:{color:s.goodsClassCode===d?t:"#000"}},s.goodsClassCode)))}))})),e(l,Object.assign({className:"main"},{children:e(os,{navList:m,activeKey:d,cell:a})}))]}))})}))})})),ds=re(null),gs=ie((()=>{const{navList:a,activeKey:t,setActiveKey:n,setFCoe:o,setSCoe:l,selectFontColor:r}=de(ds),{View:d,ScrollView:g}=i(),[m,h]=ce(!1),p=(e,s)=>{n.bind(null,e)(),o(`${s}`),l("0"),m&&h(!1)};return s(d,Object.assign({className:"goodsClassifyOne-headerPart"},{children:[s(d,Object.assign({className:"goodsClassifyOne-topListWrap"},{children:[e(d,Object.assign({className:"goodsClassifyOne-topList"},{children:a.map(((s,a)=>e(d,Object.assign({className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>p(s.goodsClassCode,a),style:{color:t===`${s.goodsClassCode}`?r:"#000",borderColor:t===`${s.goodsClassCode}`?r:"#000"}},{children:s.goodsClassName}),a)))})),e(d,Object.assign({className:"goodsClassifyOne-icon",onClick:()=>h(!0)},{children:e(c,{value:"paixusort-jiang"})}))]})),m?s(d,Object.assign({className:"goodsClassifyOne-tipWrap"},{children:[e(d,Object.assign({className:"goodsClassifyOne-tipWrap-handleBar"},{children:e(d,Object.assign({className:"goodsClassifyOne-icon",onClick:()=>h(!1)},{children:e(c,{value:"paixusort-sheng"})}))})),e(ts,{children:e(g,{children:e(d,Object.assign({className:"goodsClassifyOne-tipWrapItemWrap"},{children:a.map(((s,a)=>e(d,Object.assign({class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>p(s.goodsClassCode,a),style:{color:t===`${s.goodsClassCode}`?r:"#000",borderColor:t===`${s.goodsClassCode}`?r:"#000"}},{children:s.goodsClassName}),a)))}))})})]})):null]}))})),ms=ie((({thirdList:a})=>{const{View:t,Image:n}=i(),{picShadow:c,layout:o}=de(ds);return e(t,Object.assign({className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${o}, 1fr)`}},{children:a.map(((a,i)=>s(t,Object.assign({className:"goodsClassifyOneFloorItem",onClick:()=>he("goodList",{classtreeCode:a.classtreeCode})},{children:[e(n,{src:a.goodsClassLogo,className:"pic",style:{boxShadow:c?"#DDDDDD 0px 0px 10px":""}}),e(t,Object.assign({className:"title"},{children:a.goodsClassName}))]}),i)))}))})),hs=pe(),ps=ie((()=>{const{navList:a,fCoe:t,sCoe:n,setSCoe:c,selectFontColor:o,selectBlcShow:l,selectBlcStyle:r}=de(ds),{secondList:d,thirdList:g}=(({navList:e,fCoe:s,sCoe:a})=>{const t=ne((()=>{var a;return(null===(a=e[s])||void 0===a?void 0:a.childList)||[]}),[s,e]),i=ne((()=>{var e;return(null===(e=t[a])||void 0===e?void 0:e.childList)||[]}),[a,s,e]);return{secondList:t,thirdList:i}})({navList:a,fCoe:t,sCoe:n}),{View:m,ScrollView:h,SideBar:p}=i();return e(m,{children:e(ts,Object.assign({id:"goodsClassifyOneContent"},{children:e(h,{children:s(m,Object.assign({className:"goodsClassifyOneContent",style:{height:hs?"100%":"667px"}},{children:[e(p,Object.assign({activeKey:n,onChange:c},{children:d.map(((s,a)=>e(p.Item,{title:s.goodsClassName,className:[l?"":"goodsClassifyOneFloorNoBlc",1===r?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":o,"--adm-color-primary":o}},a)))})),e(ms,{thirdList:g})]}))})}))})})),bs=ie((({selectFontColor:a,selectBlcColor:t,selectBlcShow:n,selectBlc:c,selectBlcStyle:o,picShadow:l,layout:r})=>{const{View:d}=i(),{navList:g,activeKey:m,setActiveKey:h}=p(),[b,u]=ce("0"),[N,O]=ce("0");return e(ds.Provider,Object.assign({value:{fCoe:b,setFCoe:u,sCoe:N,setSCoe:O,navList:g,activeKey:m,setActiveKey:h,selectFontColor:a,selectBlcColor:t,selectBlcShow:n,selectBlc:c,selectBlcStyle:o,picShadow:l,layout:r}},{children:s(d,Object.assign({className:"goodsClassifyOne"},{children:[e(gs,{}),e(ps,{})]}))}))})),us=ie((({childList:a,layout:t,picShadow:n})=>{const{View:c,Image:o}=i();return e(c,Object.assign({className:"level3Arr",style:{gridTemplateColumns:`repeat(${t}, 1fr)`}},{children:a.map(((a,t)=>s(c,Object.assign({className:"level3ArrItem",onClick:()=>he("goodList",{classtreeCode:a.classtreeCode})},{children:[e(o,{src:a.goodsClassLogo,className:"logo",style:{boxShadow:n?"#DDDDDD 0px 0px 10px":""}}),e(c,Object.assign({className:"title"},{children:a.goodsClassName}))]}),t)))}))})),Ns=ie((({navList:a,activeKey:t,layout:n,picShadow:c})=>{var o;const[l,r]=ce(0);oe((()=>{r(a.findIndex(d))}),[t,l]);const d=e=>e.goodsClassCode===t,{View:g,Image:m}=i();return s(g,Object.assign({className:"goodsClassifyTwoContent"},{children:[e(m,{className:"firstLevelImg",src:xe(a[l],"goodsClassLogo"),mode:"widthFix"}),null===(o=xe(a[l],"childList"))||void 0===o?void 0:o.map(((a,t)=>s(g,{children:[e(g,Object.assign({className:"level2Title"},{children:a.goodsClassName})),e(us,{childList:a.childList,layout:n,picShadow:c})]},t)))]}))})),{SideBar:Os}=n,js=ie((({selectFontColor:a,selectBlcShow:t,selectBlcColor:n,selectBlcStyle:c,layout:o,picShadow:l})=>{const{View:r}=i(),{activeKey:d,setActiveKey:g,navList:m,flag:h}=p();return e(r,Object.assign({className:"goodsClassifyTwo"},{children:e(ts,{children:s(r,Object.assign({className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"}},{children:[e(r,Object.assign({className:"side"},{children:e(Os,Object.assign({activeKey:d,onChange:g,style:{"--width":"88px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(Os.Item,{title:s.goodsClassName,className:[t?"":"goodsClassifyTwoFloorNoBlc",1===c?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":a}},s.goodsClassCode)))}))})),e(r,Object.assign({className:"main"},{children:e(Ns,{navList:m,activeKey:d,layout:o,picShadow:l})}))]}))})}))})),Cs=({className:s="iconfont",prefixClass:a="icon",onClick:t=(()=>{}),style:n={fontSize:16,color:"#444",fontWeight:900},value:c})=>{const{Text:o}=i();return e(o,{onClick:t,className:Ce(a,c?`${a}-${c}`:"",s),style:n})},fs=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],ys=({setParams:a,activeColor:t})=>{const{View:n}=i(),[c,o]=ce(0),[l,r]=ce(fs);return e(n,Object.assign({className:"sortWrap"},{children:l.map((({order:i,sortField:l,name:d},g)=>s(n,Object.assign({className:"sortItem "+(c===g?"active":""),onClick:()=>((e,s,t)=>{o(s),t&&r((e=>(e[s].order="asc"===t?"desc":"asc",[...e]))),a({sortField:e,order:t})})(l,g,i),style:{color:c===g?t:""}},{children:[d,i&&e(Cs,{style:{color:c===g?t:"#444",fontSize:20},value:"desc"===i?"jiangxu":"shengxu"})]}),g)))}))},ks=ie((({classtreeCode:a="",searchParam:t="",activeColor:n="#e54e29",goodsName:c=!0,goodsPrice:o=!0,lineationGoods:l=!0,salesQuantity:r=!0,goodsCar:d=!0,borderRadius:g=!0,goodsColor:m=!0,goodsGap:h=10,paddingLR:p=0})=>{const{View:u,Loading:N,SmoothView:O,Image:j,ScrollView:C}=i(),[f,y]=ce({}),{loading:k,getData:x,list:w}=b(a,t,f),v=ne((()=>Ce("textBox",{btm:!o&&!l})),[o,l]),I=ne((()=>Ce("mgrf",{boxNone:!r})),[r]),S=ne((()=>Ce("goodDetail",{boxNone:!o&&!l&&!d})),[o,l,d]);return s(u,Object.assign({className:"goodsList"},{children:[e(u,Object.assign({className:"top-info"},{children:e(ys,{setParams:y,activeColor:n})})),e(u,Object.assign({className:"listWrap",style:{padding:` 0px ${p}px`}},{children:e(ts,Object.assign({id:"listWrap"},{children:s(C,Object.assign({onScroll:()=>x(f)},{children:[e(u,Object.assign({className:"list",style:{gap:h}},{children:w.map((a=>s(u,Object.assign({onClick:()=>he("goodDetail",{skuCode:a.skuCode}),className:"listItem",style:{borderRadius:g?"8px":"",boxShadow:m?"4px 4px 4px #969292":""}},{children:[e(j,{src:a.dataPic,className:"img"}),e(O,Object.assign({className:"name",style:{display:c?"block":"none"}},{children:a.goodsName})),s(u,Object.assign({className:I},{children:["已售:",a.goodsNum]})),s(u,Object.assign({className:S},{children:[s(u,Object.assign({className:v},{children:[e(O,Object.assign({className:"price",style:{display:o?"block":"none"}},{children:Ze(a.pricesetNprice)}))," "," ",e(u,Object.assign({className:"decoration",style:{display:l?"block":"none"}},{children:a.pricesetMakeprice}))]})),e(u,Object.assign({style:{display:d?"block":"none"}},{children:e(Cs,{style:{fontSize:20,color:"#f00"},value:"cart"})}))]}))]}),a.skuCode)))})),k?e(N,{}):null]}))}))}))]}))})),xs=pe(),ws=ie((({placeholder:a,placeholderText:t,history:n,historyText:c,paddingBottom:o,paddingTop:l})=>{const{View:r,Text:d,Input:g}=i(),[m,h]=ce((()=>be("history")||[])),p=Ne((e=>Qe(void 0,void 0,void 0,(function*(){xs&&(h((s=>{if(we(e.detail.value))return s;const a=s.concat(e.detail.value);return je("history",a),a})),b(e.detail.value))})))),b=Ne((e=>{he("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:l,paddingBottom:o}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Me,alt:""}),e(g,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:p},a?{placeholder:t}:{})),e(d,Object.assign({className:"btn",onClick:()=>Oe()},{children:"取消"}))]})),n?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"}),c]})),e(Cs,{onClick:()=>Qe(void 0,void 0,void 0,(function*(){(yield ue()).removeStorageSync("history"),h([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(r,Object.assign({className:"content"},{children:m.map(((s,a)=>e(r,Object.assign({onClick:()=>b(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),vs=({starColor:a="#FF0934",starSize:t="12px",itemData:c})=>{const{View:o,Text:l,Image:r}=i(),{Rate:d}=n;return s(o,Object.assign({className:"evaluateItem"},{children:[s(o,Object.assign({className:"userInfo"},{children:[e(r,{src:c.avatar,className:"avatar"}),s(o,Object.assign({className:"userNameWrap"},{children:[e(l,Object.assign({className:"userName"},{children:c.userName})),e(d,{readOnly:!0,value:c.rate,style:{"--star-size":t,"--active-color":a}})]}))]})),s(o,Object.assign({className:"size"},{children:["规格: ",c.size]})),e(o,Object.assign({className:"content"},{children:c.evaluate})),e(o,Object.assign({className:"img-group"},{children:c.imgUrls.map(((s,a)=>e(r,{src:s.imgUrl,className:"img"},a)))}))]}))},Is=[{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"}]}],Ss=ie((()=>{const[t,n]=ce("1"),{View:c}=i(),o=ge([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),l=e=>{n(e)};return s(a,{children:[e(c,Object.assign({className:"evaluateListTab"},{children:o.current.map((e=>s(c,Object.assign({className:"evaluateListTabItem "+(e.index===t?"active":""),"data-index":e.index,onClick:l.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(c,Object.assign({className:"evaluateListContent"},{children:Is.map(((s,a)=>e(vs,{itemData:s},a)))}))]})})),As=({onChange:s,readOnly:a=!1,size:t=22,count:n})=>{const{View:c}=i(),[o,l]=ce([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);oe((()=>{if(n){const e=[...o];for(let s=0;s<e.length;s++)e[s].icon=s>n-1?"star":"star-fill";l(e)}}),[]);const r=e=>{if(!a){for(let s=0;s<o.length;s++)o[s].icon=s>e?"star":"star-fill";l([...o]),s(e+1)}};return e(c,{children:o.map(((s,a)=>e(Cs,{onClick:r.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:t}},a)))})},Bs=ie((({code:a,borderRadius:t,borderColor:c,color:o,buttonColor:l,buttonBorderRadius:r,paddingTop:d,paddingBottom:g})=>{const{orderInfo:m,changeStar:h,Submit:p,changeContent:b}=u(a),{Button:N}=n,{View:O,Image:j,TextArea:C,Textarea:f}=i(),y=C||f,k=ge("宝贝满足你吗?分享一下它吧");return s(O,Object.assign({className:"evaluateDetail",style:{paddingTop:d,paddingBottom:g}},{children:[m.map(((a,i)=>s(me,{children:[s(O,Object.assign({className:"topInfo"},{children:[s(O,Object.assign({className:"lPart"},{children:[e(j,{src:a.dataPic,className:"img",style:{borderRadius:1===t?"20px":"0px"}}),s(O,Object.assign({className:"goodsInfo"},{children:[e(O,Object.assign({className:"goodsName"},{children:a.goodsName})),e(O,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(O,Object.assign({className:"rPart"},{children:s(O,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(O,Object.assign({className:"rate"},{children:[e(O,Object.assign({className:"title"},{children:"商品评价"})),e(As,{onChange:h.bind(null,i)})]})),e(O,Object.assign({className:"evaluate"},{children:e(y,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:b.bind(null,i)})}))]},i))),e(N,Object.assign({style:{border:`1px solid ${c}`,color:o,backgroundColor:l,borderRadius:1===r?"20px":"0px"},className:"btn",onClick:p},{children:"提交"}))]}))})),Vs=({code:a,defaultValue:t})=>{const{info:n,detail:c,stateObj:o}=N(a),{View:l}=i(),r=xe(n,"packageList[0].contractGoodsList[0].dataPic",t.dataPic),d=xe(n,"packageList.length",t.count),g=xe(n,"packageList[0].expressName",t.expressName),m=xe(n,"packageList[0].packageBillno",t.packageBillno),h=xe(c,"state",t.result)||"-1";return s(l,Object.assign({className:"expressInfoTop"},{children:[e(l,Object.assign({className:"goodsImg",style:{backgroundImage:`url(${r})`}},{children:s(l,Object.assign({className:"tip"},{children:["共 ",d," 件商品"]}))})),s(l,Object.assign({className:"list"},{children:[s(l,Object.assign({className:"listItem"},{children:["物流状态:",h?o[h]:"暂时无法获取物流状态"]})),s(l,Object.assign({className:"listItem"},{children:["快递公司:",g]})),s(l,Object.assign({className:"listItem"},{children:["快递单号:",m]}))]}))]}))},Ds=({code:a,defaultValue:t})=>{const{detail:n}=N(a),{View:c}=i(),o=xe(n,"message",t.message),l=xe(n,"data",t.list);return e(c,Object.assign({className:"expressInfoStep"},{children:"ok"===o?l.map(((a,t)=>s(c,Object.assign({className:"step"},{children:[e(c,Object.assign({className:"time"},{children:a.time})),e(c,{children:a.context})]}),t))):e(c,Object.assign({className:"noInfo"},{children:o}))}))},Ls=ie((({code:a,defaultValue:t})=>{const{View:n}=i();return s(n,Object.assign({className:"expressInfo"},{children:[e(Vs,{code:a,defaultValue:t}),e(Ds,{code:a,defaultValue:t})]}))})),Ts=({setDefault:s,checked:a})=>{const{SmoothCheckbox:t,Checkbox:n}=i();return e(t,Object.assign({onChange:s},{children:e(n,Object.assign({checked:a,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:"设为默认地址"}))}))},Ps=({itemData:a,delAddress:t,setDefault:n})=>{const{View:c,Text:o}=i(),{handlerImpl:l}=O(a);return s(c,Object.assign({className:"addressItem"},{children:[s(c,Object.assign({className:"upInfo",onClick:l},{children:[s(c,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(c,Object.assign({className:"addressInfo"},{children:s(o,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(c,Object.assign({className:"downInfo"},{children:[e(Ts,{checked:"1"===(null==a?void 0:a.addressDefault),setDefault:n}),e(o,Object.assign({className:"del",onClick:t},{children:"删除"}))]}))]}))},Rs=ie((()=>{const{View:s,Skeleton:t}=i(),n=ge(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(t,{className:"skullItem",animated:!0},a)))}))}))})})),zs=ie((({url:a,title:t,subTitle:n,link:o,style:l})=>{const{View:r,Image:d}=i();return e(r,Object.assign({className:"noData",style:l},{children:s(r,Object.assign({className:"content"},{children:[e(d,{className:"img",src:a}),e(r,Object.assign({className:"title"},{children:t})),e(r,Object.assign({className:"subTitle"},{children:n})),o?s(r,Object.assign({className:"link",onClick:()=>he(o)},{children:["去看看",e(c,{value:"xiangyou1"})]})):null]}))}))})),Ms=ie((({refreshNum:a,btnShape:t,btnColor:n,borderColor:c,paddingBottom:o,paddingTop:l,color:r})=>{const{View:d}=i(),{list:g,delAddress:m,setDefault:h,skullShow:p}=j(a);return s(d,Object.assign({className:"addressListWrap",style:{paddingTop:l+"px",marginBottom:o+"px"}},{children:[p?e(Rs,{}):e(d,Object.assign({className:"addressList"},{children:g.length?g.map(((s,a)=>e(Ps,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(zs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(d,Object.assign({className:"addBtnWrap"},{children:e(d,Object.assign({style:{borderRadius:t,borderColor:c,color:r,backgroundColor:n},className:"addBtn",onClick:()=>he("addressEditor")},{children:"+ 新增地址"}))}))]}))})),Fs=[{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"}],Ws=ie((()=>{const{View:s,Skeleton:t}=i(),n=ge(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(t,{className:"skullItem",animated:!0},a)))}))}))})}));Ve.forEach((e=>{const s=Be.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),Be.forEach((e=>{const s=Ae.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 Gs=Ae.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Es=({form:a,handleArea:t})=>{const{View:c}=i(),{CascadePicker:o}=n,l=a.getFieldValue("area"),[r,d]=ce(!1),g=e=>{const s={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},a={pIndex:0,cIndex:0};for(let t=0;t<Gs.length;t++)if(Gs[t].value===e[0]){s.provinceName=Gs[t].label,a.pIndex=t;break}for(let t=0;t<Gs[a.pIndex].children.length;t++)if(Gs[a.pIndex].children[t].value===e[1]){s.cityName=Gs[a.pIndex].children[t].label,a.cIndex=t;break}for(let t=0;t<Gs[a.pIndex].children[a.cIndex].children.length;t++)if(Gs[a.pIndex].children[a.cIndex].children[t].value===e[2]){s.areaName=Gs[a.pIndex].children[a.cIndex].children[t].label;break}return s};return s(c,{children:[e(c,Object.assign({className:"txt",onClick:()=>d(!0)},{children:(null==l?void 0:l.provinceName)?`${l.provinceName}—${l.cityName}-${l.areaName}`:"请选择所在地区"})),e(o,{onConfirm:e=>{t("h5",g(e))},options:Gs,visible:r,onClose:()=>d(!1)})]})},Hs=({checked:s,onChange:a})=>{const{View:t}=i(),{Switch:c}=n;return e(t,{children:e(c,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},Ys=pe(),Us=ie((({addressId:s,btnShape:t,btnColor:c,borderColor:o,color:l,paddingTop:r,paddingBottom:d})=>{const{View:g,Switch:m}=i(),{Form:h,Button:p,Input:b}=n,u=process.env.TARO_ENV,{skullShow:N,form:O,area:j,defaultAddress:f,handleArea:y,handleDefaultAddress:k,handleFinish:x}=C(s,h,Ys);return e(g,Object.assign({className:"addressDetail",style:{height:Ys?"100%":"667px",paddingBottom:d+"px",paddingTop:r+"px"}},{children:N?e(Ws,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:x,footer:e(p,Object.assign({style:{color:l,backgroundColor:c,borderColor:o},shape:t,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:Fs.map(((s,t)=>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(Hs,{onChange:k.bind(null,"h5"),checked:"1"===f}):e(m,{color:"#000",onChange:k.bind(null,"weapp"),checked:"1"===f}):"cascader"===s.type?e(a,{children:Ys?"h5"===u?e(Es,{form:O,handleArea:y}):e("picker",Object.assign({mode:"region",onChange:y.bind(null,"weapp"),value:j},{children:e(g,Object.assign({className:"areaWrap"},{children:j.provinceName?`${j.provinceName}—${j.cityName}-${j.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),t)))}))}))})),Qs=pe(),Ks=ie((({code:a,borderRadius:t,leftColor:n,leftButtonColor:c,leftBorderColor:o,leftBorderRadius:l,rightValue:r,rightAddHref:d,rightColor:g,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:p,paddingTop:b,paddingBottom:u})=>{const{View:N,Text:O}=i(),{result:j}=f(a||(be("contractBillcode")||{}).contractBillcode),{sysRecode:C,dataObj:y}=j;return e(N,Object.assign({className:"placeOrderResult",style:{height:Qs?"100vh":"667px",paddingTop:b,paddingBottom:u}},{children:s(N,C?Object.assign({className:"placeOrderResultContent",style:{borderRadius:1===t?"20px":"0px"}},{children:[e(O,{className:"icon"}),e(N,Object.assign({className:"tips"},{children:e(O,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(N,Object.assign({className:"placeOrderResultWrap"},{children:[s(N,Object.assign({className:"placeOrderResultItem"},{children:[e(O,Object.assign({className:"label"},{children:"订单号:"})),e(O,Object.assign({className:"value"},{children:y.contractBillcode}))]})),s(N,Object.assign({className:"placeOrderResultItem"},{children:[e(O,Object.assign({className:"label"},{children:"支付方式:"})),e(O,Object.assign({className:"value"},{children:"在线支付"}))]})),s(N,Object.assign({className:"placeOrderResultItem"},{children:[e(O,Object.assign({className:"label"},{children:"支付金额:"})),s(O,Object.assign({className:"value"},{children:["¥ ",y.dataBmoney]}))]}))]})),s(N,Object.assign({className:"btnGroup"},{children:[e(N,Object.assign({className:"btn black",onClick:()=>he("orderDetail",{contractBillcode:y.contractBillcode}),style:{color:n,backgroundColor:c,border:`1px solid ${o}`,borderRadius:1===l?"20px":"0px"}},{children:"查看订单"})),e(N,Object.assign({style:{color:g,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===p?"20px":"0px"},onClick:()=>he(d.value),className:"btn white"},{children:r}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(O,{className:"icon"}),s(N,Object.assign({className:"tips"},{children:[e(O,Object.assign({className:"title"},{children:"订单支付失败"})),e(O,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(N,Object.assign({className:"btnGroup"},{children:e(N,Object.assign({onClick:()=>he("paymentMode",{contractBillcode:j.contractBillcode}),className:"btn white"},{children:"去支付"}))}))]}))}))}));ie((()=>{const{View:s,Skeleton:t}=i(),n=ge(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(t,{className:"skullItem",animated:!0},a)))}))}))})}));const qs=()=>{const{View:s,Image:a}=i();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"})}))},Zs=({list:t,coe:n,config:c,backgroundColor:o,color:l})=>{const{View:r,Text:d}=i();return e(a,{children:t.length?t.map(((t,i)=>e(r,Object.assign({className:`couponListItem\n ${c.current[n.current].styleName}`,style:{backgroundColor:o,color:l}},{children:s(r,Object.assign({className:"coupon-content"},{children:[e(r,Object.assign({className:"price"},{children:e(d,Object.assign({className:"num"},{children:t.pbName}))})),s(r,Object.assign({className:"couponListItem-info"},{children:[e(d,Object.assign({className:"title"},{children:t.discName})),s(d,Object.assign({className:"date"},{children:["有效期至:",`${new Date(t.gmtModified).getFullYear()}-${new Date(t.gmtModified).getMonth()+1}-${new Date(t.gmtModified).getDate()}`]})),c.current[n.current].text?e(r,Object.assign({className:"btn"},{children:c.current[n.current].text})):null,2===n.current?e(a,{children:e(r,Object.assign({className:"round"},{children:"已失效"}))}):null]}))]}))}),i))):e(qs,{})})},Xs=ie((({backgroundColor:a,color:t,paddingTop:n,paddingBottom:c,queue:o})=>{const{View:l,Text:r,ScrollView:d}=i(),{coe:g,getList:m,config:h,switchTab:p,list:b=[]}=y();return s(l,Object.assign({className:"couponList"},{children:[e(l,Object.assign({className:"couponTab"},{children:h.current.map(((a,t)=>s(l,Object.assign({className:"couponTabItem "+(g.current===t?"active":""),onClick:()=>p(t)},{children:[a.label,e(r,{className:"icon"})]}),a.id)))})),e(ts,Object.assign({id:"couponTab",bottomHeight:"60"},{children:e(d,Object.assign({onScroll:m},{children:e(l,Object.assign({className:"couponListContent",style:{paddingTop:n,paddingBottom:c}},{children:e(Zs,{backgroundColor:a,color:t,queue:o,list:b,coe:g,config:h})}))}))}))]}))})),$s=({list:a,cartItemRadius:t})=>{const{View:n,Text:c,Image:o,Checkbox:l,NumStep:r,SmoothCheckbox:d,WrapLoading:g}=i(),{loading:m}=k(),{select:h,onChange:p,handleStep:b}=x();return e(g,Object.assign({loading:m},{children:e(d,Object.assign({onChange:p},{children:a.map(((a,i)=>e(n,Object.assign({className:"cartItem"},{children:s(n,Object.assign({className:"cartItem-box",style:{borderRadius:t}},{children:[e(n,Object.assign({className:"checkBoxWrap"},{children:e(l,{checked:h.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(o,{className:"img",src:a.dataPic,onClick:()=>he("goodDetail",{skuCode:a.skuCode})}),s(n,Object.assign({className:"cartItem-info"},{children:[e(c,Object.assign({className:"cartItem-goodsName"},{children:a.goodsName})),s(n,Object.assign({className:"cartItem-size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(n,Object.assign({className:"cartItem-handleWrap"},{children:[s(c,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(r,{count:a.goodsCamount,handleStep:b.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}))}),i)))}))}))},Js=pe(),_s=({refreshNum:t,btnStyle:n,borderColor:c,textColor:o,btnColor:l,btnShape:r,cartItemRadius:d,countBorderColor:g,countTextColor:m,countBtnColor:h,countBtnShape:p})=>{const{View:b,SmoothView:u,Checkbox:N,SmoothCheckbox:O,ScrollView:j}=i(),[C,f]=ce(!0),{cartList:y,amount:k,selectAll:x,allCart:w,toOrderImpl:I,select:S,deleteCart:A,disMoney:B}=v(t),V={border:n?`2px solid ${c}`:"",color:n?o:"",background:n?l:"",borderRadius:n?r:""},D={border:`1px solid ${g}`,color:m,background:h,borderRadius:p};return e(b,Object.assign({className:"cart",style:{height:Js?"100%":"667px"}},{children:y.length?s(a,{children:[e(b,Object.assign({className:"edit"},{children:e(b,Object.assign({className:"btn",style:V,onClick:()=>f(!C)},{children:C?"编辑":"完成"}))})),e(ts,Object.assign({id:"editId",bottomHeight:"50"},{children:e(j,{children:e($s,{list:y,cartItemRadius:d})})})),s(b,Object.assign({className:"cart-dashboard"},{children:[e(b,Object.assign({className:"choose"},{children:e(O,Object.assign({onChange:x},{children:e(N,Object.assign({checked:w.current.length===S.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),C?s(b,Object.assign({className:"check"},{children:[s(b,Object.assign({className:"priceGroup"},{children:[s(b,Object.assign({className:"discount"},{children:["优惠: ",e(u,Object.assign({className:"data"},{children:Ze(B)}))]})),s(b,Object.assign({className:"all"},{children:["合计: ",e(u,Object.assign({className:"data"},{children:Ze(k.amount)}))]}))]})),s(b,Object.assign({onClick:I,className:"btn",style:D},{children:["结算(",k.num,")"]}))]})):e(b,Object.assign({className:"del"},{children:e(b,Object.assign({onClick:A,className:"btn"},{children:"删除"}))}))]}))]}):e(zs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))},ea=ie((s=>e(w,{children:e(_s,Object.assign({},s))}))),sa=({dispatchPageStore:s,btnStyle:a,borderColor:t,textColor:n,btnColor:c,btnShape:o})=>{const{View:l}=i(),{isEditor:r,editorImpl:d}=I(s),g=ne((()=>({border:a?`2px solid ${t}`:"",color:a?n:"",background:a?c:"",borderRadius:a?o:""})),[a,t,n,c,o]);return e(l,Object.assign({className:"cart-edit"},{children:e(l,Object.assign({className:"btn",onClick:d,style:g},{children:r?"完成":"编辑"}))}))},aa=ie((({promotionName:a,checked:t,promotionCode:n})=>{const{View:c,Radio:o}=i();return s(c,Object.assign({className:"promotion-item"},{children:[e(c,Object.assign({className:"content"},{children:a})),e(c,Object.assign({className:"choose"},{children:e(o,{checked:t,value:n})}))]}))})),ta=({onChange:s,promotionCode:a,visible:t,setVisible:n,promotion:c})=>{const{Popup:o,ScrollView:l,View:r,SmoothRadio:d}=i();return e(o,Object.assign({popupVisible:t,popupHandler:n},{children:e(r,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(ts,{children:e(l,{children:e(d,Object.assign({onChange:s},{children:c.map(((e,s)=>le(aa,Object.assign({checked:e.promotionCode===a},e,{key:s}))))}))})})}))}))},ia=ie((({goodsName:t,skuName:n,goodsCamount:c,shoppingGoodsId:o,pricesetNprice:l,handleStep:r})=>{const{View:d,SmoothView:g,NumStep:m}=i();return e(a,{children:s(d,Object.assign({className:"cartItem-info"},{children:[e(g,Object.assign({className:"cartItem-goodsName"},{children:t})),s(d,Object.assign({className:"cartItem-size"},{children:["规格:",n," X ",c]})),s(d,Object.assign({className:"cartItem-handleWrap"},{children:[e(g,Object.assign({className:"price"},{children:Ze(l)})),e(m,{count:c,handleStep:r.bind(null,o,c)})]}))]}))})})),na=ie((({dataPic:s,skuCode:a})=>{const{Image:t}=i();return e(t,{className:"img",src:s,onClick:()=>he("goodDetail",{skuCode:a})})})),ca=ie((s=>{var{shoppingGoodsId:a}=s,t=Ue(s,["shoppingGoodsId"]);const{View:n,Checkbox:c}=i(),{select:o=[]}=t;return e(n,Object.assign({className:"checkBoxWrap"},{children:e(c,{checked:o.includes(a+""),value:a,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})}))})),oa=({promotion:t=[],updatePm:n,shoppingGoodsId:c,promotionCode:o})=>{const{View:l}=i(),[r,d]=ce(!1),g=ne((()=>((t||[]).find((e=>e.promotionCode===o))||{}).promotionName),[t]);return s(a,{children:[s(l,Object.assign({className:"cart-promote-active",onClick:()=>d(!0)},{children:[g,e(l,{children:"修改"})]})),e(ta,{promotionCode:o,onChange:e=>{d(!1),n(c,e.detail.value)},promotion:t||[],visible:r,setVisible:d})]})},la=ie((a=>{var{item:t}=a,n=Ue(a,["item"]);const{View:c}=i();return s(c,Object.assign({className:"cart-list-item"},{children:[e(ca,Object.assign({},n,{shoppingGoodsId:t.shoppingGoodsId})),e(na,{dataPic:t.dataPic,skuCode:t.skuCode}),e(ia,Object.assign({},t,n))]}))})),ra=t=>{var{shoppingGoodsList:i=[]}=t,n=Ue(t,["shoppingGoodsList"]);return e(a,{children:i.map(((t,i)=>s(me,{children:[e(la,Object.assign({},n,{item:t})),ne((()=>e(a,{children:t.pmPromotionList?e(oa,{promotionCode:n.promotionCode,shoppingGoodsId:t.shoppingGoodsId,updatePm:n.updatePm,promotion:t.pmPromotionList}):null})),[t.pmPromotionList])]},i)))})},da=({disNextMsg:a,promotionName:t,pbName:n})=>{const{View:c,SmoothView:o}=i();return s(c,Object.assign({className:"cart-dis-title"},{children:[e(o,Object.assign({className:"tips"},{children:n})),e(o,Object.assign({style:{padding:"0 10px"}},{children:t})),e(o,{children:a})]}))},ga=({refreshNum:t,cartSelect:n,dispatchPageStore:c,cartUpdateCount:o=0,cartItemRadius:l="10px"})=>{const{SmoothCheckbox:r,WrapLoading:d,View:g}=i(),{loading:m,cartList:h,onChange:p,handleStep:b,updatePm:u}=S(t,o,c);return e(d,Object.assign({loading:m},{children:e(g,Object.assign({className:"cart-wrap"},{children:e(r,Object.assign({onChange:p},{children:h.length?e(a,{children:h.map((({memberCname:a,promotionCode:t,disNextMsg:i,promotionName:c,pbName:o,shoppingGoodsList:r},d)=>s(me,{children:[e("h4",{children:a}),s(g,Object.assign({className:"cart-bg",style:{borderRadius:l}},{children:[c?e(da,{disNextMsg:i,promotionName:c,pbName:o}):null,e(ra,{promotionCode:t,handleStep:b,select:n,updatePm:u,shoppingGoodsList:r,cartItemRadius:l})]}))]},d)))}):e(zs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))}))}))},ma=({cartInfo:a=[],cartDisMoney:t=0,cartSelect:n=[],cartIsEditor:c=!1,dispatchPageStore:o,countBorderColor:l="#000000",countTextColor:r="#ffffff",countBtnColor:d="#000000",countBtnShape:g="20px"})=>{const{View:m,SmoothView:h,SmoothCheckbox:p,Checkbox:b}=i(),{toOrderImpl:u,deleteCart:N,selectAll:O,cartDetail:j}=A(n,a,o),C=ne((()=>({border:`1px solid ${l}`,color:r,background:d,borderRadius:g})),[l,r,d,g]);return s(m,Object.assign({className:"cart-dashboard"},{children:[e(m,Object.assign({className:"choose"},{children:e(p,Object.assign({onChange:O},{children:e(b,Object.assign({checked:a.length===n.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),c?e(m,Object.assign({className:"del"},{children:e(m,Object.assign({onClick:N,className:"btn"},{children:"删除"}))})):s(m,Object.assign({className:"check"},{children:[s(m,Object.assign({className:"priceGroup"},{children:[s(m,Object.assign({className:"discount"},{children:["优惠: ",e(h,Object.assign({className:"data"},{children:Ze(t)}))]})),s(m,Object.assign({className:"all"},{children:["总计: ",e(h,Object.assign({className:"data"},{children:Ze(j.amount)}))]}))]})),s(m,Object.assign({onClick:u,className:"btn",style:C},{children:["结算(",j.num,")"]}))]}))]}))},ha=ie((({avatarStyle:a,paddingTop:t,paddingBottom:n,userAvatar:c,userNickname:o})=>{const{View:l,Text:r,IconMobile:d,Image:g}=i(),{servicePopup:m}=qe();return s(l,Object.assign({className:"mineData",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`}},{children:[s(l,Object.assign({className:"topBoard"},{children:[e(d,{value:"shezhi",onClick:()=>he("/account/setting/index")}),e(d,{value:"kehufuwukefu",onClick:m})]})),s(l,Object.assign({className:"userSetting",onClick:()=>he("/account/setting/index")},{children:[s(l,Object.assign({className:"lPart"},{children:[e(r,Object.assign({className:"name"},{children:o||"用户名称"})),e(l,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e(g,{src:c,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]}))]}))})),pa=ie((({title:a,columnList:t})=>{const{View:n,Text:c,Badge:o,Image:l}=i(),[r,d]=ce({});return oe((()=>{Qe(void 0,void 0,void 0,(function*(){try{const e=yield ye();d(e.dataObj)}catch(e){}}))}),[]),s(n,Object.assign({className:"mineOrderEntry"},{children:[s(n,Object.assign({className:"title"},{children:[e(n,Object.assign({className:"name"},{children:a})),e(n,Object.assign({className:"more",onClick:()=>he("orderlist")},{children:"查看全部"}))]})),e(n,Object.assign({className:"content"},{children:t.map(((a,t)=>s(n,Object.assign({onClick:()=>he("orderlist",{indexId:t+1}),className:"contentItem",style:{display:a.show?"block":"none"}},{children:[e(o,Object.assign({},r[a.code]>0?{content:r[a.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12}},{children:e(l,{src:a.imgUrl,className:"icon"})})),e(c,Object.assign({className:"subTitle"},{children:a.label}))]}),t)))}))]}))})),ba=ie((({paddingTop:a,paddingBottom:t,columnList:n})=>{const{View:c,Text:o,IconMobile:l,Image:r}=i();return e(c,Object.assign({className:"mineFunction",style:{paddingTop:a+"px",paddingBottom:t+"px"}},{children:n.map(((a,t)=>s(c,Object.assign({className:"menuListItem",onClick:()=>he(a.link.value)},{children:[s(c,Object.assign({className:"lPart"},{children:[e(r,{src:a.imgUrl,className:"icon"}),e(o,Object.assign({className:"label"},{children:a.link.label}))]})),e(l,{value:"xiangyou1"})]}),t)))}))})),ua=pe(),Na=ie((({contractBillcode:a,contractBbillcode:t,btnColor:n,btnShape:c,borderColor:o,paddingTop:l,paddingBottom:r,color:d})=>{const{View:g,Text:m,Radio:h,IconMobile:p,WrapLoading:b,SmoothRadio:u}=i(),{paymentImpl:N,channelList:O,contract:j,handleRadio:C,loading:f}=B({contractBillcode:a,contractBbillcode:t});return s(g,Object.assign({className:"paymentModeWrap",style:{height:ua?"inherit":"667px",paddingBottom:r+"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:c,backgroundColor:n,color:d,borderColor:o},className:"payment"},{children:"立即支付"}))}))}))]}))})),Oa=({footprintItem:a,edit:t})=>{const{View:n,Image:c,Checkbox:o,SmoothView:l}=i(),r=ne((()=>a.footprintOpnum?`${a.footprintOpnum}元`:""),[a.footprintOpnum]);return s(n,Object.assign({className:"footprintItem"},{children:[t?e(n,Object.assign({className:"lPart"},{children:e(o,{value:a.footprintCode})})):null,s(n,Object.assign({className:"rPart",onClick:()=>he("goodDetail",{skuCode:a.footprintOpcode})},{children:[e(c,{src:a.footprintOppic,className:"img"}),s(n,Object.assign({className:"info"},{children:[e(l,Object.assign({className:"title"},{children:a.footprintOpcont})),e(l,Object.assign({className:"price"},{children:r}))]}))]}))]}))},ja=({item:t,edit:n})=>{const{View:c}=i();return s(c,Object.assign({className:"footPrint"},{children:[e(a,{children:e(c,Object.assign({className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"}},{children:null==t?void 0:t.title}))}),t.option.map(((s,a)=>e(Oa,{footprintItem:s,edit:n},a)))]}))},Ca=({footprintList:s,edit:t})=>{const i=ne((()=>{const e=s.map((e=>(e.gmtCreate=e.gmtCreate?De(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),a=ve(e,"gmtCreate");return Object.keys(a).map((e=>({title:e||"",option:a[e]})))}),[s]);return e(a,{children:i.map(((s,a)=>e(ja,{item:s,edit:t},a)))})},fa=ie((()=>{const{View:a,ScrollView:t,SmoothCheckbox:n,Button:c,Image:o}=i(),{footprintList:l,edit:r,setEdit:d,getSelectItem:g,delItem:m,getData:h}=V();return e(a,Object.assign({className:"footprint"},{children:0===l.length?e(a,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(a,Object.assign({className:"hasDate"},{children:[e(a,Object.assign({className:"topBar"},{children:e(a,Object.assign({className:"edit",onClick:()=>d(!r)},{children:r?"完成":"编辑"}))})),e(ts,Object.assign({id:"topBar1"},{children:s(t,Object.assign({scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScroll:h},{children:[e(n,Object.assign({onChange:g},{children:e(Ca,{footprintList:l,edit:r})})),r?s(a,Object.assign({className:"handleBar"},{children:[e(a,{className:"checkAll"}),e(c,Object.assign({className:"btn",onClick:m},{children:"删除"}))]})):null]}))}))]}))}))})),ya=({item:a,edit:t,checked:n})=>{const{View:c,Image:o,Checkbox:l,SmoothView:r}=i();return s(c,Object.assign({className:"collectItem"},{children:[t?e(l,{className:"lPart",value:a.collectCode,checked:n}):null,s(c,Object.assign({className:"rPart",onClick:()=>he("goodDetail",{skuCode:a.collectOpcode})},{children:[e(o,{src:a.collectOppic,className:"img"}),s(c,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"title"},{children:a.collectOpcont})),s(r,Object.assign({className:"price"},{children:[a.collectOpnum," 元"]}))]}))]}))]}))},ka=ie((()=>{const{collectionList:a,edit:t,setEdit:n,getData:c,getSelectItem:o,delItem:l,init:r,checked:d,handleSelectAll:g,selectAllChecked:m}=D(),{View:h,ScrollView:p,SmoothCheckbox:b,Checkbox:u,Button:N,Image:O}=i();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:()=>n(!t)},{children:t?"完成":"编辑"}))})),e(ts,Object.assign({id:"topBar"},{children:s(p,Object.assign({scrollY:!0,scrollWithAnimation:!0,onScrollToLower:c,onScrollToUpper:r},{children:[e(b,Object.assign({onChange:o,style:{height:"100%"}},{children:a.map((s=>e(ya,{item:s,edit:t,checked:d},s.collectId)))})),t?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]}))}))]}))}))})),xa=ie((({noticeId:a})=>{const{View:t,Image:n}=i(),{info:c}=L(a);return s(t,Object.assign({className:"noticeDetailContainer"},{children:[e(t,Object.assign({className:"title"},{children:c.noticeTitle})),c.noticePicurl?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl}):null,c.noticePicurl1?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl1}):null,c.noticePicurl2?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl2}):null,c.noticePicurl3?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl3}):null,e(t,Object.assign({className:"content"},{children:c.noticeContext}))]}))})),wa=ie((({doclistId:a=2031})=>{const{info:t}=T(a),{View:n,ScrollView:c}=i(),{doclistContent:o,doclistTitle:l,doclistTitle4:r}=t;return e(n,Object.assign({className:"articleDetail"},{children:e(ts,Object.assign({id:"a"},{children:s(c,{children:[e(n,Object.assign({className:"title"},{children:l})),e(n,Object.assign({className:"author"},{children:r})),e("div",{className:"content",dangerouslySetInnerHTML:{__html:o||""}})]})}))}))})),va=({address:s})=>e(a,{children:we(s)?e(Sa,{}):e(Ia,{address:s})}),Ia=({address:a})=>{const{View:t,SmoothView:n,IconMobile:c}=i(),o=ne((()=>{const{provinceName:e,addressDefault:s,cityName:t,areaName:i,addressDetail:n,addressMember:c="",addressPhone:o=""}=a;return{addressDefault:"1"===s,addressMember:c,addressPhone:o,address:e+t+i+n}}),[a]);return s(t,Object.assign({className:"address-info"},{children:[e(c,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),s(t,Object.assign({className:"left"},{children:[s(t,Object.assign({className:"left-title"},{children:[e(n,{children:o.addressMember}),e(n,Object.assign({className:"left-padding"},{children:o.addressPhone})),o.addressDefault?e(n,Object.assign({className:"left-padding left-title-default"},{children:"默认"})):null]})),e(n,Object.assign({className:"left-detail"},{children:o.address}))]})),e(c,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},Sa=()=>{const{View:t,Text:n}=i();return s(a,{children:[s(t,Object.assign({className:"group"},{children:[e(n,{className:"local"}),e(n,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(n,{className:"arrow"})]})},Aa=({refreshNum:s})=>{const{View:a}=i(),t=P(s);return e(a,Object.assign({className:"placeOrder-chooseAddress",onClick:()=>he("addressList")},{children:e(va,{address:t})}))},Ba=ie((({couponStart:a,pbName:t,discName:n,promotionCode:c,promotionName:o,couponEnd:l,disable:r})=>{const{View:d,Text:g,Radio:m}=i();return e(d,Object.assign({className:"couponItem"},{children:s(d,Object.assign({className:"coupon-content"},{children:[s(d,Object.assign({className:"price"},{children:[e(d,Object.assign({className:"symbol"},{children:t})),e(d,Object.assign({className:"num"},{children:n}))]})),s(d,Object.assign({className:"info"},{children:[e(g,Object.assign({className:"title"},{children:o})),s(g,Object.assign({className:"date"},{children:[De(a).format("YYYY-MM-DD")," - ",De(l).format("YYYY-MM-DD")]}))]})),e(d,r?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(m,{disabled:r,value:c})}))]}))}))})),Va=({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o})=>{const{View:l,Text:r,Popup:d,SmoothRadio:g,ScrollView:m}=i(),{amount:h,shoppingGoodsList:p}=R({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o}),{coupon:b,visible:u,setVisible:N,selectCoupon:O,onChange:j}=z(p);return s(a,{children:[s(l,Object.assign({className:"coupon-select",onClick:()=>N(0!==b.length)},{children:[e(r,Object.assign({className:"label"},{children:"优惠券"})),s(l,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"label"},{children:O?`已选择: ${O}`:0===b.length?"暂无可用优惠券":"请选择优惠券"})),0===b.length?null:e("img",{src:Fe,alt:"",className:"icon"})]}))]})),e(d,Object.assign({popupVisible:u,popupHandler:N},{children:e(l,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(ts,Object.assign({bottomHeight:"300"},{children:e(m,{children:e(g,Object.assign({onChange:j},{children:b.map(((e,s)=>le(Ba,Object.assign({disable:h<e.discAmount},e,{key:s}))))}))})}))}))}))]})},Da=({shippingMethod:a=1})=>{const{View:t}=i();return e(t,Object.assign({className:"info placeOrder-blcWrap",style:1===a?{display:"block"}:{display:"none"}},{children:s(t,Object.assign({className:"express placeOrder-blcItem"},{children:[e(t,Object.assign({className:"label"},{children:"配送方式"})),e(t,Object.assign({className:"value"},{children:"快递"}))]}))}))},La=({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:n})=>{const{View:c}=i(),{list:o}=R({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:n});return e(c,Object.assign({className:"place-order-goods"},{children:o.map(((s,a)=>e(Xe,Object.assign({},s),a)))}))},Ta=({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o})=>{const{SmoothView:l,View:r}=i(),{payState:d,amount:g,disCount:m}=R({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o}),{shoppingCountPrice:h,freight:p,comDisMoney:b}=M(d);return e(a,{children:s(r,Object.assign({className:"price placeOrder-blcWrap"},{children:[e(r,Object.assign({className:"title"},{children:"价格明细"})),s(r,Object.assign({className:"express placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"商品总金额"})),e(l,Object.assign({className:"value"},{children:Ze(h)}))]})),s(r,Object.assign({className:"coupon placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"优惠金额"})),e(l,Object.assign({className:"value"},{children:Ze(b+m)}))]})),s(r,Object.assign({className:"express placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"运费"})),e(l,Object.assign({className:"value"},{children:Ze(p)}))]})),s(r,Object.assign({className:"all placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"总计"})),e(l,Object.assign({className:"value",style:{color:"#000"}},{children:Ze(g-m)}))]}))]}))})},Pa=({color:a,buttonColor:t,borderColor:n,borderRadius:c,refreshNum:o,goodsNum:l,skuId:r,shoppingGoodsId:d})=>{const{View:g,Text:m,WrapLoading:h}=i(),{amount:p,list:b,disCount:u,payState:N,orderStoreInfo:O,ocContractSettlList:j}=R({refreshNum:o,goodsNum:l,skuId:r,shoppingGoodsId:d}),{savePayPrice:C,loading:f}=F({ocContractSettlList:j,payState:N,list:b},r,l,O,d);return s(g,Object.assign({className:"placeOrderFooter"},{children:[s(m,Object.assign({className:"price"},{children:["合计: ",Ze(p-u)]})),e(h,Object.assign({loading:f},{children:e(g,Object.assign({className:"btn",onClick:C,style:{color:`${a}`,border:`1px solid ${n}`,backgroundColor:`${t}`,borderRadius:1===c?"40px":"0px"}},{children:"生成订单"}))}))]}))},Ra=pe(),za=ie((({position:s=10,bg:a,color:t,fontSize:n})=>{const{View:c}=i(),{goTop:o}=W();return e(c,Object.assign({className:"backTop",onClick:o,style:{padding:Ra?"0":"10px"}},{children:e(Cs,{style:{display:"inline-block",color:t,fontSize:n,backgroundColor:a,position:Ra?"fixed":"relative",right:Ra?"20px":"0",bottom:Ra?"120px":"0",margin:`0 auto ${s}px`,zIndex:999},value:"backtop"})}))})),Ma=({TextLineBgColor:a,text:t,contentSize:n,lineStyle:c,fontSize:o,textAlign:l,fontColor:r,lineColor:d,fontWeight:g,fontStyle:m,textDecoration:h})=>{const{View:p}=i();return s(p,Object.assign({className:"textLine",style:{backgroundColor:a,textAlign:l,margin:1===n?"0 10px":""}},{children:[e(p,{className:"blc",style:{borderBottom:`1px ${c} ${d}`}}),e(p,Object.assign({className:"txt",style:{backgroundColor:a,fontWeight:g,fontStyle:m,textDecoration:h,fontSize:`${o}px`,color:r}},{children:t}))]}))},Fa=ie((({borderStyle:s,borderRadius:a,height:t,width:n,backgroundColor:c,paddingTop:o,paddingBottom:l})=>{const{View:r}=i();return e(r,Object.assign({style:{paddingTop:o,paddingBottom:l}},{children:e(r,{style:{borderRadius:a+"%",borderStyle:s,width:n+"%",height:t+"px",backgroundColor:c,marginLeft:"auto",marginRight:"auto"}})}))})),Wa=ie((({defaultValue:a,borderRadius:t,paddingTop:n,paddingBottom:c,selectClassifyNav:o})=>{const{View:r,Text:d}=i(),g=l(a,o);return e(r,Object.assign({style:{paddingTop:n,paddingBottom:c}},{children:e(r,Object.assign({className:"classifyNav"},{children:g.map(((a,i)=>s(r,Object.assign({className:"classifyNavItem",onClick:()=>{var e,s;return he(null===(e=a.link)||void 0===e?void 0:e.value,null===(s=a.link)||void 0===s?void 0:s.params)}},{children:[e("img",{src:a.imgUrl,alt:"",className:"img",style:{borderRadius:`${t}px`}}),e(d,Object.assign({className:"label"},{children:a.title}))]}),i)))}))}))})),Ga=({defaultValue:s,selectClassifyNav:a,navRadius:t,navBorderColor:n,navBgColor:c,navBoxShadow:o,imgRadius:r,imgBoxShadow:d,layout:g,marginTop:m,marginBottom:h})=>{const{View:p}=i(),b=l(s,a);return e(p,Object.assign({className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${g}, 1fr)`,borderRadius:t,border:`1px solid ${n}`,backgroundColor:c,boxShadow:o?"0px 0px 20px 10px #ddd":"none",marginTop:m,marginBottom:h}},{children:b.map(((s,a)=>e(p,Object.assign({className:"classifyNav-item",onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},{children:e("img",{src:s.imgUrl,alt:"",className:"classifyNav-item-img",style:{borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none"}})}),a)))}))},Ea=ie(Ga),Ha=ie((({defaultValue:s,selectClassifyNav:a,navRadius:t,navBorderColor:n,navBgColor:c,navBoxShadow:o,fontSize:r,fontColor:d,tagBgColor:g,otherStyle:m,layout:h,marginTop:p,marginBottom:b})=>{const{View:u}=i(),N=l(s,a),O=ne((()=>Ce("classifyNav-two-item-title",...m)),[m]);return e(u,Object.assign({className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${n}`,borderRadius:t,backgroundColor:c,boxShadow:o?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:b}},{children:N.map(((s,a)=>e(u,Object.assign({className:"classifyNav-two-item",onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)},style:{width:4===h?"74px":"60px"}},{children:e(u,Object.assign({className:O,style:{fontSize:r,color:d}},{children:s.title}))}),a)))}))})),Ya=ie((({defaultValue:s,selectClassifyNav:a,navRadius:t,navBorderColor:n,navBgColor:c,navBoxShadow:o,imgRadius:r,imgBoxShadow:d,fontSize:g,fontColor:m,tagBgColor:h,otherStyle:p,layout:b,marginTop:u,marginBottom:N})=>{const{View:O}=i(),j=l(s,a);return e(O,Object.assign({className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${b}, 1fr)`,border:`1px solid ${n}`,borderRadius:t,backgroundColor:c,boxShadow:o?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:N}},{children:j.map(((s,a)=>e(O,Object.assign({className:"classifyNav-three-item",onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${s.imgUrl})`,borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none",width:4===b?"74px":"60px",height:4===b?"74px":"60px"}},{children:e(O,Object.assign({className:"classifyNav-three-item-tag",style:{backgroundColor:h}},{children:e(O,Object.assign({className:["classifyNav-three-item-txt",...p].join(" "),style:{fontSize:g,color:m}},{children:s.title}))}))}),a)))}))})),Ua=ie((({defaultValue:a=[],classCode:t="",margin:n,circular:c=!1,cell:o,showSales:l=!0,gap:r=10,goods:d=[],markedPrice:g,paddingTop:m,paddingBottom:h,paddingLeft:p,paddingRight:b,goodsName:u=!0,goodsPrice:N=!0,goodsCar:O=!0,goodsBorder:j=!0,goodsShadow:C=!1,marginGap:f=10})=>{const[y,k]=ce(a),x=ge(),{View:w,Text:v}=i();return oe((()=>{Ie(x.current,d)||(x.current=d,we(d)?k(a):Qe(void 0,void 0,void 0,(function*(){try{const e=yield ke({goodsCode:d.toString(),distinctField:"goodsNo"}),s=xe(e,"list",[]);k(s)}catch(e){k(a)}})))}),[d]),e(w,Object.assign({style:{paddingTop:m,paddingBottom:h}},{children:e(w,Object.assign({className:Ce({[`goods-${t}`]:!0}),style:{display:"grid",gap:f,marginBottom:n,gridTemplateColumns:`repeat(${o}, 1fr)`,paddingLeft:p,paddingRight:b}},{children:y.map(((a,t)=>s(w,Object.assign({style:{overflow:"hidden",borderRadius:c?"8px":"0px",border:j?"1px solid #000000":""},onClick:()=>he("goodDetail",{skuCode:a.skuCode}),className:["goods "+(C?"outer-shadow":"")].join(" ")},{children:[e(w,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(w,Object.assign({className:"space"},{children:[e(w,Object.assign({className:"titleType",style:{display:u?"block":"none"}},{children:a.goodsName})),e(w,Object.assign({className:"subTitle"},{children:a.brandName})),l&&s(w,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(w,Object.assign({className:"price"},{children:[s(w,{children:[e(v,Object.assign({className:"subPrice",style:{display:N?"inline":"none"}},{children:"¥"})),N?a.pricesetNprice:"",1===g&&s(v,Object.assign({className:"markedPrice"},{children:[e(v,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]}),e(w,Object.assign({className:"anticon",style:{display:O?"block":"none"}},{children:e(Cs,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}))]}),t)))}))}))})),Qa=ie((({defaultValue:a,goods:t,price:n,marketPrice:c,cart:o,wrapRadius:l,wrapBorderColor:r,wrapBgColor:d,wrapShadow:g,goodsRadius:m,goodsBgColor:h,goodsGap:p,marginTop:b,marginBottom:u,marginLeft:N,marginRight:O})=>{const{View:j}=i(),{list:C}=G({defaultValue:a,goods:t});return e(j,Object.assign({className:"goodsSlider",style:{borderRadius:l,borderColor:r,backgroundColor:d,boxShadow:g?"0px 0px 20px 5px #EEE":"none",marginTop:b,marginBottom:u,marginLeft:N,marginRight:O}},{children:C.map(((a,t)=>s(j,Object.assign({className:"goodsSliderItem",style:{borderRadius:m,backgroundColor:h,marginRight:`${p}px`},onClick:()=>he("goodDetail",{skuCode:a.skuCode})},{children:[e(j,{className:"img",style:{backgroundImage:`url(${a.dataPic})`}}),s(j,Object.assign({className:"board"},{children:[e(j,Object.assign({className:"title"},{children:a.goodsName})),s(j,Object.assign({className:"info"},{children:[s(j,Object.assign({className:"lPart"},{children:[n?s(j,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})):null,c?s(j,Object.assign({className:"marketPrice"},{children:["¥",a.pricesetMakeprice]})):null]})),o?e(j,Object.assign({className:"rPart"},{children:e(Cs,{style:{fontSize:26,color:"#f00"},value:"cart"})})):null]}))]}))]}),t)))}))})),Ka=pe(),qa=ie((({defaultValue:a,goods:t,GoodsSlideshowBg:n,marketPrice:c,goodsName:o,salesNum:l,price:r,goodsRadius:d,goodsBorder:g,goodsShadow:m,btnText:h,btnBg:p,btnColor:b,btnRadius:u})=>{const{list:N}=G({defaultValue:a,goods:t}),{SmoothSwiper:O,View:j,Image:C}=i(),[f,y]=ce(0);return s(j,Object.assign({className:"goodsSlideshow"},{children:[e(C,{src:n,className:"bg",mode:"widthFix"}),e(O,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:N,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{y(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:a=>s(j,Object.assign({className:["goodsSlideshowItem",""+(a.goodsCode===N[f].goodsCode&&Ka?"active":"")].join(" "),style:{borderRadius:d,borderStyle:g?"solid":"none",boxShadow:m?"0px 0px 20px 10px #ddd":""},onClick:()=>he("goodDetail",{skuCode:a.skuCode})},{children:[e(C,{className:"logo",src:a.dataPic,mode:"widthFix"}),o?e(j,Object.assign({className:"goodsName"},{children:a.goodsShowname})):null,l?s(j,Object.assign({className:"salesNum"},{children:["销量:",a.goodsSalesvolume]})):null,r?s(j,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})):null,c?s(j,Object.assign({className:"marketPrice"},{children:["¥",a.pricesetMakeprice]})):null,e(j,Object.assign({className:"btn",style:{backgroundColor:p,color:b,borderRadius:u}},{children:h}))]}))})]}))})),Za=({skuCode:s,autoplay:a,vertical:t})=>{const{rsGoodsFileDomainList:i=[]}=E(s),n=H(i);return e(He,{selectImg:n,type:1,autoplay:a,vertical:t,imgHeight:{height:375,width:375}})},Xa=a=>{const{SmoothView:t,View:n}=i(),{handleCollect:c,collection:o}=Y(a);return s(n,Object.assign({onClick:c},{children:[e("img",{src:Me,alt:"",className:"icon"}),e(t,Object.assign({className:"txt"},{children:we(o.dataObj)?"收藏":"已收藏"}))]}))},$a=({skuCode:a,priceShow:t,collectionShow:n})=>{const{View:c,SmoothView:o}=i(),{rsSkuDomainList:l}=E(a),{goodInfo:r}=U(l);return Q(a),s(c,Object.assign({className:"goodsDetail-topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(o,Object.assign({className:"name"},{children:r.goodsName})),e(o,Object.assign({className:"price",style:{display:t?"block":"none"}},{children:Ze(r.pricesetNprice)}))]})),e(c,Object.assign({className:"rPart",style:{display:n?"flex":"none"}},{children:e(Xa,{goodsName:r.goodsName,pricesetNprice:r.pricesetNprice,dataPic:r.dataPic,skuCode:a})}))]}))},Ja=ie((a=>{const{collectionShow:t,shareShow:n}=a,{View:c}=i(),{handleCollect:o,collection:l}=Y(a),{handleShare:r}=K();return s(c,Object.assign({className:"handleBar"},{children:[t?e(c,Object.assign({className:"collection",onClick:o,style:{borderRight:n?"1px solid #ddd":"none"}},{children:we(l.dataObj)?"收藏":"已收藏"})):null,n?e(c,Object.assign({className:"share",onClick:r},{children:"分享"})):null]}))})),_a=ie((({skuCode:a,priceShow:t,collectionShow:n,shareShow:c})=>{const{View:o,SmoothView:l}=i(),{rsSkuDomainList:r}=E(a),{goodInfo:d}=U(r);return Q(a),s(o,Object.assign({className:"goodsDetail-info-one"},{children:[e(l,Object.assign({className:"price",style:{display:t?"block":"none"}},{children:Ze(d.pricesetNprice)})),e(l,Object.assign({className:"title"},{children:d.goodsName})),e(Ja,{collectionShow:n,shareShow:c,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:a})]}))})),et=()=>{const{Text:e}=i(),a=Z((e=>e.count)),t=Z((e=>e.spec));return s(e,Object.assign({className:"label"},{children:["已选择 数量: ",a," 规格: ",t.toString()]}))},st=({dispatchPageStore:t})=>{const{View:n,Text:c}=i(),{openPopup:o}=q(t);return e(a,{children:s(n,Object.assign({className:"goodsDetail-size",onClick:o},{children:[e(c,Object.assign({className:"label"},{children:"规格"})),s(n,Object.assign({className:"info"},{children:[e(et,{}),e("img",{src:Fe,alt:"",className:"icon"})]}))]}))})},at=({skuCode:a})=>{const{View:t,Text:n}=i(),{rsSkuDomainList:c}=E(a),{goodInfo:o}=U(c),l=X(c,o.skuCode||a);return s(t,Object.assign({className:"goodsDetail-promotion"},{children:[e(n,Object.assign({className:"label"},{children:"促销"})),e(t,Object.assign({className:"group"},{children:l.length?l.map((({discName:s},a)=>e(t,Object.assign({className:"item"},{children:s}),a))):e(t,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},tt=ie((({promotionBegintime:a,pbName:t,discName:n,promotionCode:c,promotionName:o,couponOnceNums:l,couponOnceNumd:r,promotionEndtime:d})=>{const{View:g,Text:m}=i(),{save:h,isPick:p}=$(),b=ne((()=>l-r),[l,r]);return e(g,Object.assign({className:"couponItem"},{children:s(g,Object.assign({className:"coupon-content"},{children:[s(g,Object.assign({className:"price"},{children:[e(g,Object.assign({className:"symbol"},{children:t})),e(g,Object.assign({className:"num"},{children:n}))]})),s(g,Object.assign({className:"info"},{children:[e(m,Object.assign({className:"title"},{children:o})),s(m,Object.assign({className:"date"},{children:[De(a).format("YYYY-MM-DD")," - ",De(d).format("YYYY-MM-DD")]}))]})),e(g,b>0?Object.assign({className:p?"coupon-pick-default":"coupon-pick",onClick:()=>h({promotionCode:c,couponAmount:1})},{children:p?"已领取":"领取"}):Object.assign({className:"coupon-pick-default"},{children:"已领完"}))]}))}))})),it=({skuCode:t})=>{const{View:n,Text:c,Popup:o}=i(),{rsSkuDomainList:l}=E(t),{goodInfo:r}=U(l),{coupon:d,visible:g,setVisible:m}=J(l,r.skuCode||t);return s(a,{children:[s(n,Object.assign({className:"goodsDetail-coupon",onClick:()=>m(!0)},{children:[e(c,Object.assign({className:"label"},{children:"优惠券"})),s(n,Object.assign({className:"info"},{children:[e(c,Object.assign({className:"label"},{children:"请选择优惠券"})),e("img",{src:Fe,alt:"",className:"icon"})]}))]})),e(o,Object.assign({popupVisible:g,popupHandler:m},{children:e(n,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(ts,{children:d.map(((e,s)=>le(tt,Object.assign({},e,{key:s}))))})}))}))]})},nt=({item:a})=>{const{View:t,Image:n}=i();return s(t,Object.assign({className:"rateItem"},{children:[s(t,Object.assign({className:"topInfo"},{children:[s(t,Object.assign({className:"lPart"},{children:[e(n,{src:a.userImgurl,className:"avatar"}),s(t,Object.assign({className:"userInfo"},{children:[e(t,Object.assign({className:"name"},{children:a.userName})),e(As,{readOnly:!0,size:14,count:a.evaluateScopeReList.length})]}))]})),e(t,Object.assign({className:"rPart"},{children:`${new Date(a.gmtCreate).getFullYear()}-${new Date(a.gmtCreate).getMonth()+1}-${new Date(a.gmtCreate).getDate()}`}))]})),e(t,Object.assign({className:"size"},{children:a.skuName})),e(t,Object.assign({className:"content"},{children:a.evaluateGoodsContent}))]}))},ct=({evaluateArr:a})=>{const{View:t}=i(),n=ge(a);return e(t,Object.assign({className:"goodsDetailEvaluate"},{children:n.current.length?s(t,{children:[s(t,Object.assign({className:"topInfo"},{children:["评价 (",n.current.length,")"]})),n.current.slice(0,5).map(((s,a)=>e(nt,{item:s},a)))]}):e(zs,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},ot=({goodsRemark:s})=>{const{View:a}=i(),t=ne((()=>s.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[s]);return e(a,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:t||""}})}))},lt=({tabActive:t,setTabActive:n,evaluateShow:c,evaluateImgShow:o,evaluateImg:l})=>{const{Text:r}=i(),d=ne((()=>o?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[c]);return e(a,{children:d.map(((a,i)=>e(me,{children:s(r,Object.assign({className:"tabsItem "+(t===i?"active":""),onClick:()=>n(i)},{children:[a.title,e(r,{className:"line"})]}))},i)))})},rt=({skuCode:a,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{View:o}=i(),[l,r]=ce(0),{goodsRemark:d,goodsCode:g}=E(a),m=_(g);return s(o,Object.assign({className:"goodsDetailTab"},{children:[e(o,Object.assign({className:"tabs"},{children:e(lt,{tabActive:l,setTabActive:r,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})})),e(o,Object.assign({className:"group"},{children:0===l?e(ot,{goodsRemark:d}):e(ct,{evaluateArr:m,evaluateImgShow:n,evaluateImg:c})}))]}))},dt=({skuName:a,handleChooseSize:t,spec:n,skuOption:c,index:o})=>{const{View:l,Text:r}=i();return s(l,Object.assign({className:"sizeArr"},{children:[e(r,Object.assign({className:"title"},{children:a})),e(l,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(l,Object.assign({className:"sizeItem "+(n[o]===s.specValueValue?"active":""),onClick:t.bind(null,s.specValueValue,o)},{children:s.specValueValue}),a)))}))]}))},gt=ie((({handleStep:a})=>{const{View:t,NumStep:n}=i(),c=Z((e=>e.count));return s(t,Object.assign({className:"countWrap"},{children:[e(t,Object.assign({className:"label"},{children:"购买数量"})),e(n,{count:c,handleStep:a})]}))})),mt=({skuInfo:t,handleChooseSize:n,rsSkuDomainList:c})=>{const{Image:o,View:l}=i(),{skuList:r}=t,{spec:d,goodInfo:g}=U(c);return s(a,{children:[s(l,Object.assign({className:"goodsInfo"},{children:[e(l,Object.assign({className:"lPart"},{children:e(o,{src:g.dataPic,alt:"",className:"goodsImg"})})),s(l,Object.assign({className:"rPart"},{children:[e(l,Object.assign({className:"name"},{children:g.goodsName})),e(l,Object.assign({className:"price"},{children:Ze(g.pricesetNprice)})),s(l,Object.assign({className:"chosen"},{children:["已选择: ",d.toString()]}))]}))]})),r.map(((s,a)=>e(dt,{spec:d,handleChooseSize:n,index:a,skuName:s.skuName,skuOption:s.skuOption},a)))]})},ht=({cashImpl:t,addShoppingImpl:n,addCardImpl:c})=>{const{Text:o,View:l}=i(),r=Z((e=>e.isNeedButton));return e(a,{children:r?e(l,Object.assign({className:"btnWrap",onClick:n},{children:e(o,Object.assign({className:"btn"},{children:"确认"}))})):s(l,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(l,Object.assign({className:"btn addCart",onClick:c},{children:"加入购物车"})),e(l,Object.assign({className:"btn buy",onClick:t},{children:"立即购买"}))]}))})},pt=({popupVisible:a,dispatchPageStore:t,goodsCode:n,skuInfo:c,rsSkuDomainList:o})=>{const{View:l,Popup:r}=i(),{closePopup:d,handleChooseSize:g,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:b}=ee(n,c,t);return e(r,Object.assign({popupVisible:a,popupHandler:d},{children:s(l,Object.assign({className:"goodsDetail-size-popup"},{children:[s(l,Object.assign({className:"content"},{children:[e(mt,{skuInfo:c,handleChooseSize:g,rsSkuDomainList:o}),e(gt,{handleStep:m})]})),e(ht,{cashImpl:p,addShoppingImpl:b,addCardImpl:h})]}))}))},bt=({skuCode:t,serverShow:n,cartShow:c,lPartColor:o,lPartBgColor:l,lPartStyle:r,rPartColor:d,rPartBgColor:g,rPartStyle:m,popupVisible:h=!1,dispatchPageStore:p=Se})=>{const{Text:b,View:u,IconMobile:N}=i(),{rsSpecValueDomainList:O,goodsCode:j,rsSkuDomainList:C}=E(t),f=se(O),{servicePopup:y}=qe(),{addCardPopup:k,buyOpenPopup:x}=q(p);return s(a,{children:[s(u,Object.assign({className:"goodsDetailHandleBar"},{children:[s(u,Object.assign({className:"linkGroup server",onClick:y,style:{display:n?"block":"none"}},{children:[e(N,{value:"kefu",style:{fontSize:22,display:"block"}}),e(b,Object.assign({className:"txt"},{children:"客服"}))]})),s(u,Object.assign({className:"linkGroup cart",onClick:()=>he("shopping"),style:{display:c?"block":"none"}},{children:[e(N,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(b,Object.assign({className:"txt"},{children:"购物车"}))]})),s(u,Object.assign({className:"goods-detail-btn-group"},{children:[e(u,Object.assign({className:"btn addCart",onClick:k,style:{color:o,backgroundColor:l,borderTopLeftRadius:r,borderBottomLeftRadius:r}},{children:"加入购物车"})),e(u,Object.assign({onClick:x,className:"btn buy",style:{color:d,backgroundColor:g,borderTopRightRadius:m,borderBottomRightRadius:m}},{children:"立即购买"}))]}))]})),e(pt,{dispatchPageStore:p,popupVisible:h,goodsCode:j,rsSkuDomainList:C,skuInfo:f})]})},ut=({skuCode:t,serverShow:n,cartShow:c,lBtnBorderColor:o,lBtnFontColor:l,lBtnColor:r,lBtnStyle:d,rBtnBorderColor:g,rBtnFontColor:m,rBtnColor:h,rBtnStyle:p,popupVisible:b=!1,dispatchPageStore:u=Se})=>{const{Text:N,View:O,IconMobile:j}=i(),{rsSpecValueDomainList:C,goodsCode:f,rsSkuDomainList:y}=E(t),k=se(C),{servicePopup:x}=qe(),{addCardPopup:w,buyOpenPopup:v}=q(u);return s(a,{children:[s(O,Object.assign({className:"goodsDetailHandleBarOne"},{children:[s(O,Object.assign({className:"linkGroup server",onClick:x,style:{display:n?"block":"none"}},{children:[e(j,{value:"kefu",style:{fontSize:22,display:"block"}}),e(N,Object.assign({className:"txt"},{children:"客服"}))]})),s(O,Object.assign({className:"linkGroup cart",onClick:()=>he("shopping"),style:{display:c?"block":"none"}},{children:[e(j,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(N,Object.assign({className:"txt"},{children:"购物车"}))]})),s(O,Object.assign({className:"goods-detail-one-btn-group"},{children:[e(O,Object.assign({className:"btn addCart",onClick:w,style:{border:`1px solid ${o}`,color:l,backgroundColor:r,borderRadius:1===d?"20px":"0"}},{children:"加入购物车"})),e(O,Object.assign({onClick:v,className:"btn buy",style:{border:`1px solid ${g}`,color:m,backgroundColor:h,borderRadius:1===p?"20px":"0"}},{children:"立即购买"}))]}))]})),e(pt,{dispatchPageStore:u,popupVisible:b,goodsCode:f,rsSkuDomainList:y,skuInfo:k})]})},Nt=ie((({defaultValue:a,coupons:t,bg:n,borderColor:c,btnColor:o,typeColor:l,titleColor:r,ruleColor:d,timeColor:g,paddingTop:m,paddingBottom:h})=>{const{View:p}=i(),{list:b,takeCoupon:u,takeList:N}=ae({defaultValue:a,coupons:t});return e(p,Object.assign({style:{paddingTop:`${m}px`,paddingBottom:`${h}px`}},{children:b.map(((a,t)=>{const i=xe(a,"pbName"),m=xe(a,"pmPromotionDiscountList"),h=xe(m.at(-1),"discName"),b=xe(a,"promotionName"),O=De(xe(a,"promotionBegintime")).format("YYYY-MM-DD"),j=De(xe(a,"promotionEndtime")).format("YYYY-MM-DD"),C=xe(a,"promotionCode");return s(p,Object.assign({className:"OneLineOneBlc",style:{backgroundColor:n,borderColor:c}},{children:[s(p,Object.assign({className:"lPart"},{children:[s(p,Object.assign({className:"intro"},{children:[e(p,Object.assign({className:"type",style:{color:l}},{children:i})),e(p,Object.assign({className:"rule",style:{color:d}},{children:h}))]})),s(p,Object.assign({className:"info"},{children:[e(p,Object.assign({className:"title",style:{color:r}},{children:b})),s(p,Object.assign({className:"validity",style:{color:g}},{children:[O," - ",j]}))]}))]})),e(p,Object.assign({className:"rPart",style:{backgroundColor:o}},{children:-1===a.availabledate||N.includes(t)?e(p,Object.assign({className:"txt"},{children:"已 领 取"})):e(p,Object.assign({className:"txt",onClick:()=>u({promotionCode:C,couponAmount:1,index:t})},{children:"立 即 领 取"}))}))]}),t)}))}))})),Ot=ie((({defaultValue:a,coupons:t,bg:n,borderColor:c,btnColor:o,typeColor:l,ruleColor:r,titleColor:d,timeColor:g,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:b}=i(),{list:u,takeCoupon:N,takeList:O}=ae({defaultValue:a,coupons:t});return e(b,Object.assign({className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m}},{children:u.map(((a,t)=>{const i=xe(a,"pbName"),m=xe(a,"pmPromotionDiscountList"),h=xe(m.at(-1),"discName"),p=xe(a,"promotionName"),u=De(xe(a,"promotionBegintime")).format("YYYY-MM-DD"),j=De(xe(a,"promotionEndtime")).format("YYYY-MM-DD"),C=xe(a,"promotionCode");return s(b,Object.assign({className:"oneLineTwoBlcItem",style:{backgroundColor:n,borderColor:c}},{children:[s(b,Object.assign({className:"lPart"},{children:[e(b,Object.assign({className:"type",style:{color:l}},{children:i})),e(b,Object.assign({className:"rule",style:{color:r}},{children:h})),e(b,Object.assign({className:"info",style:{color:d}},{children:p})),s(b,Object.assign({className:"validity",style:{color:g}},{children:[u," - ",j]}))]})),e(b,Object.assign({className:"rPart",style:{backgroundColor:o}},{children:-1===a.availabledate||O.includes(t)?e(b,Object.assign({className:"txt"},{children:"已 领 取"})):e(b,Object.assign({className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:t})},{children:"立 即 领 取"}))}))]}),t)}))}))})),jt=ie((a=>{var{type:t=1,coupons:n=[]}=a,c=Ue(a,["type","coupons"]);const{View:o}=i();return s(o,Object.assign({className:"getCouponOne"},{children:[1===t?e(Nt,Object.assign({coupons:n},c)):null,2===t?e(Ot,Object.assign({coupons:n},c)):null]}))})),Ct=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],ft=ie((({activeColor:s,setParams:a,params:t})=>{const{View:n}=i();return e(n,Object.assign({className:"promotionListTab"},{children:Ct.map(((i,c)=>e(n,Object.assign({className:"promotionListTabItem",onClick:()=>a(i.val),style:{color:i.val===t?s:"#000"}},{children:i.label}),c)))}))})),yt=({data:a})=>{const{View:t}=i(),{pbName:n,promotionName:c,pmPromotionDiscountList:o,promotionBegintime:l,promotionEndtime:r}=a;return s(t,Object.assign({className:"promotionItem"},{children:[s(t,Object.assign({className:"lPart"},{children:[e(t,{className:"round"}),e(t,Object.assign({className:"tagBg"},{children:s(t,Object.assign({className:"txt"},{children:["官方",n]}))})),e(t,Object.assign({className:"rule"},{children:o.at(-1).discName})),e(t,Object.assign({className:"title"},{children:c})),s(t,Object.assign({className:"time"},{children:[De(l).format("YYYY-MM-DD")," ~ ",De(r).format("YYYY-MM-DD")]}))]})),e(t,Object.assign({className:"rPart"},{children:e(t,{className:"sideBorder"})}))]}))},kt=ie((({activeColor:a,paddingTop:t,paddingBottom:n})=>{const[c,o]=ce(Ct[0].val),{list:l,getData:r}=te({params:c}),{View:d,ScrollView:g}=i();return s(d,Object.assign({style:{padding:`${t}px 0 ${n}px`}},{children:[e(ft,{activeColor:a,setParams:o,params:c}),e(d,{children:e(ts,Object.assign({id:"listWrap"},{children:e(g,Object.assign({onScroll:()=>r()},{children:l.map(((s,a)=>e(yt,{data:s},a)))}))}))})]}))})),xt=ie((()=>e(a,{children:"123"})));export{Us as AddressDetail,Ms as AddressList,xt as AllCouponList,kt as AllPromotionList,wa as ArticleDetail,za as BackTop,ea as Cart,ga as CartList,ma as CartOperate,sa as CartTop,Wa as ClassifyNav,Ea as ClassifyNavOne,Ga as ClassifyNavOneJsx,Ya as ClassifyNavThree,Ha as ClassifyNavTwo,ka as CollectionList,Xs as CouponList,Pe as Cube,Bs as EvaluateDetail,Ss as EvaluateList,Ls as ExpressInfo,fa as FootPrint,jt as GetCouponOne,Ua as Goods,rs as GoodsClassify,bs as GoodsClassifyOne,js as GoodsClassifyTwo,rt as GoodsDetailAndEvaluate,Za as GoodsDetailBanner,it as GoodsDetailCoupon,bt as GoodsDetailHandleBar,ut as GoodsDetailHandleBarOne,$a as GoodsDetailInfo,_a as GoodsDetailInfoOne,at as GoodsDetailPromotion,st as GoodsDetailSku,ks as GoodsList,Qa as GoodsSlider,qa as GoodsSlideshow,Fa as Line,ha as MineData,ba as MineFunction,pa as MineOrderEntry,Le as Notice,xa as NoticeDetail,cs as OrderDetail,ns as OrderList,Na as PaymentMode,Aa as PlaceOrderAddress,Va as PlaceOrderCoupon,Da as PlaceOrderDelivery,La as PlaceOrderGood,Ta as PlaceOrderInfo,Pa as PlaceOrderOperate,Ks as PlaceOrderResult,Cs as QjMobileIcon,We as Search,ws as SearchPage,Ge as SearchStyleTwo,ze as Service,Ye as Slider,Ma as TextLine,Te as Title,Re as Video};
1
+ import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{NoticeBar as t,useComponent as i,antdMobile as n,IconMobile as c}from"@brushes/simulate-component";import{useNotice as o,useCube as l,useOrderOperate as r,orderStatusImpl as d,useOrderList as g,orderStatusList as m,useOrderDetail as h,useGoodsClassify as p,useGoodsList as b,useEvaluateDetail as u,useExpressInfo as N,useAddressItem as O,useAddressList as j,useEditAddress as C,useOrderResultResult as f,useCouponList as y,useStore as k,useCartItem as x,StoreProvider as w,useCartList as v,useCartTop as I,useCartListNext as S,useCartOperate as A,useOrderResult as B,useFootprint as V,useCollectionList as D,useNoticeDetail as L,useArticleDetail as T,useOrderAddress as P,useOrderGood as R,useOrderCoupon as z,useOrderInfo as M,useOrderPay as F,useGoTop as W,useGoods as G,useGoodDetail as E,useBanner as H,useGoodCollection as Y,useGoodSpecAndPrice as U,useGoodFootprint as Q,useGoodsShare as K,popupImplement as q,useGoodSkuStore as Z,usePromotion as X,useAddCoupon as $,useCoupon as J,useEvaluate as _,useAddShopping as ee,useGoodSku as se,useAllCoupon as ae,useMarketingPromotion as te}from"qj-mobile-store";import{memo as ie,useMemo as ne,useState as ce,useEffect as oe,createElement as le,createContext as re,useContext as de,useRef as ge,Fragment as me}from"react";import{navigatorHandler as he,getEnv as pe,getStorage as be,getTaro as ue,useImmutableCallback as Ne,navigatorBackImpl as Oe,setStorage as je}from"@brushes/utils";import Ce from"classnames";import{queryOcsconfigList as fe,getContractNumbers as ye,find as ke}from"qj-b2c-api";import{get as xe,isEmpty as we,groupBy as ve,isEqual as Ie,noop as Se}from"lodash-es";import Ae from"china-division/dist/provinces.json";import Be from"china-division/dist/cities.json";import Ve from"china-division/dist/areas.json";import De from"dayjs";const Le=({direction:s,speed:a,num:i,color:n})=>{const{content:c,navigator:l}=o(i);return e(t,{navigator:l,color:n,speed:a,direction:s,content:c})},Te=ie((({value:s,textIndent:a,fontSize:t,textAlign:n,color:c,backgroundColor:o,fontWeight:l,textDecoration:r,fontStyle:d,paddingTop:g,paddingLeft:m,paddingRight:h,paddingBottom:p})=>{const{View:b}=i();return e(b,Object.assign({className:"components-title",style:{paddingTop:g,paddingBottom:p}},{children:e(b,Object.assign({style:{fontSize:t,textAlign:n,color:c,backgroundColor:o,fontWeight:l,textDecoration:r,fontStyle:d,paddingLeft:m,paddingRight:h,textIndent:a}},{children:s}))}))})),Pe=ie((({defaultValue:s,type:a,borderRadius:t,outerShadow:n,paddingRight:c,paddingLeft:o,picGap:r,xGap:d,paddingTop:g,paddingBottom:m,selectImg:h})=>{const{View:p,Image:b}=i(),u=l(s,h);return e(p,Object.assign({style:{paddingTop:g,paddingBottom:m,paddingLeft:d,paddingRight:d}},{children:e(p,Object.assign({className:`cube-type${a}`,style:{paddingLeft:o,paddingRight:c,gap:r}},{children:u.map(((s,i)=>e(b,{className:"block "+(n?"outer-shadow":""),mode:1===a?"widthFix":"scaleToFill",src:s.imgUrl,style:{width:"100%",borderRadius:t+"px"},onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},i)))}))}))})),Re=ie((({url:s,poster:a,autoplay:t,loop:n,paddingTop:c,paddingBottom:o,paddingLeft:l,paddingRight:r})=>{const{View:d}=i();return e(d,Object.assign({style:{paddingTop:c,paddingBottom:o}},{children:e("video",{className:"components-video",src:s,poster:a,autoPlay:t,loop:n,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:r}})}))})),ze=ie((({width:s,height:a,top:t,right:n,bottom:c,left:o,borderRadius:l})=>{const{View:r}=i();return e(r,{style:{width:s,height:a,borderRadius:l,top:t,left:o,right:n,bottom:c},className:"components-service"})})),Me="data:image/png;base64,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",Fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",We=ie((({value:a,iconShow:t,fontColor:n,backgroundColor:c,borderRadius:o,paddingLeft:l,paddingRight:r,sticky:d,fontsize:g,paddings:m,otherStyles:h=[]})=>{const{View:p,Image:b}=i(),u=ne((()=>Ce("txt",...h)),[h]);return e(p,Object.assign({onClick:()=>he("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:r},className:d?"boxpositon":""},{children:s(p,Object.assign({className:"components-search",style:{backgroundColor:c,borderRadius:o?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(b,{src:Me,alt:"",style:{height:"16px",width:"16px",display:t?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(p,Object.assign({className:u,style:{color:n,display:"inline-block",fontSize:g}},{children:a}))]}))}))})),Ge=ie((({value:a,iconShow:t,fontColor:n,backgroundColor:c,borderRadius:o,paddingLeft:l,paddingRight:r,sticky:d,fontsize:g,paddings:m,otherStyles:h=["mockWeight","mockItalic"]})=>{const{View:p,Image:b}=i(),u=ne((()=>Ce("txt",...h)),[h]);return e(p,Object.assign({onClick:()=>he("search"),style:{paddingTop:m,paddingBottom:m,paddingLeft:l,paddingRight:r},className:d?"boxPosition":""},{children:s(p,Object.assign({className:"components-search",style:{border:`1px solid ${c}`,borderRadius:o?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"}},{children:[s(p,Object.assign({style:{width:"80%"}},{children:[e(b,{src:Me,alt:"",style:{height:"16px",width:"16px",display:t?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(p,Object.assign({className:u,style:{color:n,display:"inline-block",fontSize:g}},{children:a}))]})),e(p,Object.assign({className:["seachBtn",o?"btnBorderRadius":""].join(" "),style:{fontSize:g,backgroundColor:c,width:"20%",color:n}},{children:"搜索"}))]}))}))})),Ee=ie((({item:s,position:a,direction:t})=>{var n,c;const{Image:o,View:l}=i();return e(o,{mode:"scaleToFill",src:s.imgUrl,style:{width:"100%",height:"100%",paddingBottom:"top"===a&&"vertical"===t?"30px":"",marginTop:"top"===a&&"horizontal"===t?"30px":""},onClick:he.bind(null,null===(n=s.link)||void 0===n?void 0:n.value,null===(c=s.link)||void 0===c?void 0:c.params)})})),He=ie((({Position:t,className:n="",className1:c="",defaultValue:o=[],type:r,autoplay:d,autoplayInterval:g,direction:m,loop:h,paddingTop:p,paddingBottom:b,paddingLeft:u,paddingRight:N,selectImg:O,imgHeight:j,fontsize:C=16,textAlign:f="center",fontColor:y="#000000",backGroundColor:k="#ffffff"})=>{const x=ne((()=>Ce({paddingbtm:"none"!==t,imgHeights:"bottom"===t&&"horizontal"===m}))),{SmoothSwiper:w,View:v}=i(),I=l(o,O||[]),S=s=>e(v,Object.assign({className:c,style:{fontSize:C,zIndex:99,justifyContent:"left"===f?"flex-start":"center"===f?"center":"flex-end",color:y,backgroundColor:k}},{children:s.title}));return e(v,Object.assign({className:n,style:{paddingTop:p,paddingBottom:b,paddingLeft:u,paddingRight:N}},{children:e(w,{imgHeight:j,data:I,className:x,type:r,autoplay:d,autoplayInterval:g,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:i=>s(a,{children:["top"===t||"bottom"===t?S(i):null,e(Ee,{item:i,position:t,direction:m})]})})}))})),Ye=ie((({paddingTop:s,paddingBottom:a,paddingLeft:t,paddingRight:n,defaultValue:c=[],type:o,autoplay:l,autoplayInterval:r,direction:d,loop:g,selectImg:m,vertical:h,imgHeight:p,paddingTB:b=0,paddingLR:u=0,fontsize:N=16,textAlign:O="center",fontColor:j="#000000",backGroundColor:C="#ffffff",otherStyles:f=[],ImgShadow:y=!1,Position:k="top"})=>{const{View:x}=i(),w=ne((()=>Ce("silder-title",{"silder-tops1":"top"===k&&"horizontal"===d,"silder-bottoms":"bottom"===k&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===k,"silder-tops":"vertical"===d&&"top"===k},...f)),[f,k]);return e(x,Object.assign({style:{padding:`${b}px ${u}px`}},{children:e(He,Object.assign({},{Position:k,defaultValue:c,type:o,autoplay:l,autoplayInterval:r,direction:d,loop:g,selectImg:m,vertical:h,imgHeight:p,paddingTop:s,paddingBottom:a,paddingLeft:t,paddingRight:n,fontsize:N,textAlign:O,fontColor:j,backGroundColor:C},{className:Ce({"outer-shadow":y}),className1:w}))}))}));function Ue(e,s){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&s.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)s.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a}function Qe(e,s,a,t){return new(a||(a=Promise))((function(i,n){function c(e){try{l(t.next(e))}catch(e){n(e)}}function o(e){try{l(t.throw(e))}catch(e){n(e)}}function l(e){var s;e.done?i(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(c,o)}l((t=t.apply(e,s||[])).next())}))}const Ke=pe(),qe=()=>{const[e,s]=ce([]);oe((()=>{Qe(void 0,void 0,void 0,(function*(){const e=be("service");if(e)s(a(e));else{const e=yield fe();s(a(e))}}))}),[]);const a=e=>{let s=[];for(let a=0;a<e.length;a++){const t=e[a].ocsOcserviceReDomain;s.push(`${t.ocserviceName}: ${t.ocserviceRemark}`)}return s};return{servicePopup:()=>{if(!Ke)return;ue().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},Ze=(e=0)=>e?"¥ "+ +e.toFixed(2):0,Xe=({dataPic:a,goodsName:t,goodsCamount:n,pricesetNprice:c,skuName:o,skuCode:l})=>{const{View:r,Image:d,SmoothView:g}=i(),m=Ze(c),h=ne((()=>n?`x ${n}`:""),[n]);return s(r,Object.assign({className:"card-item"},{children:[e(d,{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(g,Object.assign({className:"card-item-info-container-title"},{children:t})),e(g,Object.assign({className:"card-item-info-container-price"},{children:m}))]})),s(r,Object.assign({className:"card-item-info-sub"},{children:[e(g,Object.assign({className:"sku"},{children:o})),e(g,Object.assign({className:"count"},{children:h}))]}))]}))]}))},{Button:$e}=n,Je=s=>{var{dataState:t}=s,i=Ue(s,["dataState"]);return e(a,{children:["2","-1"].includes(t+"")?null:e(_e,Object.assign({dataState:t},i))})},_e=s=>{var{dataState:a,contractAppraise:t,color:n,borderColor:c,btnColor:o,btnShape:l}=s,d=Ue(s,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:g}=i();4!==a&&4!==a||1===t?4!==a&&4!==a||1!==t||(a=5):a=4;const{operateArray:m,handlerImpl:h}=r(Object.assign({dataState:a},d));return e(g,Object.assign({className:"btnGroup"},{children:m.map(((s,a)=>e($e,Object.assign({style:{color:n,borderColor:c,backgroundColor:o},className:Ce({btn:!0,white:0===a,black:1===a}),onClick:()=>h(s.handler),shape:l},{children:s.name}),a)))}))},{Button:es}=n;function ss({contractBillcode:a,dataBmoney:t,dataBnum:n,goodsList:c,dataState:o,contractId:l,init:r,contractAppraise:g,borderRadius:m,orderSpacing:h}){const{View:p}=i(),b=d(o);return s(p,Object.assign({className:"orderListItem",style:{borderRadius:m?8:"",marginTop:h,marginBottom:h}},{children:[s(p,Object.assign({onClick:()=>he("orderDetail",{contractBillcode:a})},{children:[s(p,Object.assign({className:"topInfo"},{children:[s(p,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(es,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(p,Object.assign({className:"status"},{children:b}))]})),s(p,Object.assign({className:"goodsItemWrap"},{children:[c.map((s=>e(Xe,Object.assign({},s),s.contractGoodsId))),s(p,Object.assign({className:"allInfo"},{children:[s(p,Object.assign({className:"totalNum"},{children:["共",n,"件商品"]})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ¥",t]}))]}))]}))]})),e(Je,{init:r,contractId:l,contractBillcode:a,dataState:o,contractAppraise:g})]}))}const as=pe(),ts=s=>{var{bottomHeight:a,children:t,id:n,heightWrap:c}=s,o=Ue(s,["bottomHeight","children","id","heightWrap"]);const l=function(e){const[s,a]=ce(0);return oe((()=>{if(!pe()||!e)return;const s=ue().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;a(s)}})).exec()}))})),s}(n),r=function(e=""){return ne((()=>{if(!pe())return 0;const s=ue(),a=s.getStorageSync("safeArea"),t=s.getStorageSync("tabBarHeight")||0;return a+(s.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?t:0)+(e?+e:0)}),[])}(a),{View:d}=i(),g=ne((()=>{if(!as)return n?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(n){return{height:`calc(${ue().getSystemInfoSync().windowHeight+"px"} - ${l+r}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[l,r]);return e(d,Object.assign({},o,{style:Object.assign(Object.assign({},g),{paddingBottom:n?"":r}),id:n},{children:t}))};const is=ie((function({item:a,refreshNum:t,borderRadius:n,orderSpacing:c}){const{View:o,ScrollView:l,Loading:r}=i(),{onScroll:d,data:m,loading:h,init:p}=g(a,t);return e(o,Object.assign({className:"orderListItemWrap"},{children:e(ts,Object.assign({id:"orderListItemWrap"},{children:e(l,Object.assign({onScroll:d},{children:s(o,{children:[m.map(((e,s)=>le(ss,Object.assign({init:p},e,{key:s,borderRadius:n,orderSpacing:c})))),e(o,{children:h?e(r,{}):null})]})}))}))}))})),ns=ie((({refreshNum:s=0,indexId:a=0,borderRadius:t=!1,orderSpacing:n=12})=>{const{View:c,Tabs:o}=i();return e(c,Object.assign({className:"order-container"},{children:e(o,{defaultIndex:+a,tabs:m,render:a=>e(c,Object.assign({className:"orderList"},{children:e(is,{item:a,orderSpacing:n,refreshNum:s,borderRadius:t})}))})}))})),cs=ie((({contractBillcode:a,expressWay:t,backgroundColor:n,color:c,paddingBottom:o,paddingTop:l,borderColor:r,btnColor:g,btnShape:m})=>{const{View:p,Text:b}=i(),{orderDetail:u}=h(a||"");return s(p,Object.assign({className:"orderDetail"},{children:[e(p,Object.assign({style:{backgroundColor:n},className:"orderDetailTopTitle"},{children:s(p,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(b,Object.assign({className:"title"},{children:d(u.dataState)})),e(p,{className:"subTitleWrap"})]}))})),e(p,Object.assign({className:"orderDetailContent",style:{paddingTop:l+"px",paddingBottom:o+"px"}},{children:s(p,Object.assign({style:{position:"relative",top:-26}},{children:[s(p,Object.assign({className:"addressInfo"},{children:[e(p,{className:"lPart"}),s(p,Object.assign({className:"mPart"},{children:[s(p,Object.assign({className:"personInfo"},{children:[e(b,Object.assign({className:"personName"},{children:u.goodsReceiptMem})),e(b,Object.assign({className:"personPhone"},{children:u.goodsReceiptPhone}))]})),e(p,Object.assign({className:"address"},{children:u.goodsReceiptArrdess}))]})),e(p,{className:"rPart"})]})),s(p,Object.assign({className:"orderDetailGoodsWrap"},{children:[u.goodsList.map((s=>e(Xe,Object.assign({},s),s.contractGoodsId))),s(p,Object.assign({className:"priceInfo"},{children:[s(p,Object.assign({className:"priceInfoFloor top"},{children:[s(p,Object.assign({className:"totalNum"},{children:["共",u.goodsNum,"件商品"]})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((u.dataBmoney-u.refundMoney).toFixed(2))]}))]})),s(p,Object.assign({className:"priceInfoFloor"},{children:[e(p,Object.assign({className:"totalNum"},{children:"商品总额"})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ¥",u.contractInmoney]}))]})),s(p,Object.assign({className:"priceInfoFloor"},{children:[e(p,Object.assign({className:"totalNum"},{children:"优惠"})),s(p,Object.assign({className:"totalPrice"},{children:["合计 ¥",u.goodsPmoney]}))]}))]}))]})),t&&s(p,Object.assign({className:"express"},{children:[e(p,Object.assign({className:"label"},{children:"配送方式"})),e(p,Object.assign({className:"name"},{children:"快递"}))]})),s(p,Object.assign({className:"orderInfo"},{children:[e(p,Object.assign({className:"orderInfoItem"},{children:e(p,Object.assign({className:"label"},{children:"订单信息"}))})),s(p,Object.assign({className:"orderInfoItem"},{children:[e(p,Object.assign({className:"label"},{children:"买家留言"})),e(p,Object.assign({className:"name"},{children:u.packageRemark}))]})),s(p,Object.assign({className:"orderInfoItem"},{children:[e(p,Object.assign({className:"label"},{children:"订单编号"})),e(p,Object.assign({className:"name"},{children:u.contractBillcode}))]})),s(p,Object.assign({className:"orderInfoItem"},{children:[e(p,Object.assign({className:"label"},{children:"下单时间"})),e(p,Object.assign({className:"name"},{children:u.gmtCreate}))]}))]})),e(p,Object.assign({className:"btnGroupFooter"},{children:e(Je,{borderColor:r,btnColor:g,btnShape:m,color:c,contractBillcode:u.contractBillcode,contractId:u.contractId,dataState:u.dataState})}))]}))}))]}))})),os=ie((({navList:t,activeKey:n,cell:c=4})=>{const{View:o,Text:l,Image:r}=i();return e(a,{children:t.map((a=>e(o,Object.assign({className:["content",n===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(o,Object.assign({className:"classifyFloor"},{children:[s(o,Object.assign({className:"titleWrap"},{children:[e(l,Object.assign({className:"title"},{children:a.goodsClassName})),e(l,{className:"line"})]})),e(o,Object.assign({className:`container container_columns${c}`},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:t,goodsClassLogo:i,goodsClassName:n})=>s(o,Object.assign({onClick:()=>he("goodList",{classtreeCode:a}),className:"classifyFloorGoodsItem"},{children:[e(r,{src:i,className:"logo"}),e(o,Object.assign({className:"title"},{children:n}))]}),t)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:ls}=n,rs=ie((({cell:a,color:t,activeTitle:n,paddingTop:c,paddingBottom:o})=>{const{View:l,ScrollView:r}=i(),{activeKey:d,setActiveKey:g,navList:m,flag:h}=p();return e(l,{children:e(ts,Object.assign({id:"goodsClassify"},{children:e(r,{children:s(l,Object.assign({style:{height:h?"100%":"667px",paddingTop:c,paddingBottom:o},className:"goodsClassifyContainer"},{children:[e(l,Object.assign({className:"side"},{children:e(ls,Object.assign({activeKey:d,onChange:g,style:{"--width":"90px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(ls.Item,{title:s.goodsClassName,className:0===n?"typeBlock":"typeNoBlock",style:{color:s.goodsClassCode===d?t:"#000"}},s.goodsClassCode)))}))})),e(l,Object.assign({className:"main"},{children:e(os,{navList:m,activeKey:d,cell:a})}))]}))})}))})})),ds=re(null),gs=ie((()=>{const{navList:a,activeKey:t,setActiveKey:n,setFCoe:o,setSCoe:l,selectFontColor:r}=de(ds),{View:d,ScrollView:g}=i(),[m,h]=ce(!1),p=(e,s)=>{n.bind(null,e)(),o(`${s}`),l("0"),m&&h(!1)};return s(d,Object.assign({className:"goodsClassifyOne-headerPart"},{children:[s(d,Object.assign({className:"goodsClassifyOne-topListWrap"},{children:[e(d,Object.assign({className:"goodsClassifyOne-topList"},{children:a.map(((s,a)=>e(d,Object.assign({className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>p(s.goodsClassCode,a),style:{color:t===`${s.goodsClassCode}`?r:"#000",borderColor:t===`${s.goodsClassCode}`?r:"#000"}},{children:s.goodsClassName}),a)))})),e(d,Object.assign({className:"goodsClassifyOne-icon",onClick:()=>h(!0)},{children:e(c,{value:"paixusort-jiang"})}))]})),m?s(d,Object.assign({className:"goodsClassifyOne-tipWrap"},{children:[e(d,Object.assign({className:"goodsClassifyOne-tipWrap-handleBar"},{children:e(d,Object.assign({className:"goodsClassifyOne-icon",onClick:()=>h(!1)},{children:e(c,{value:"paixusort-sheng"})}))})),e(ts,{children:e(g,{children:e(d,Object.assign({className:"goodsClassifyOne-tipWrapItemWrap"},{children:a.map(((s,a)=>e(d,Object.assign({class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>p(s.goodsClassCode,a),style:{color:t===`${s.goodsClassCode}`?r:"#000",borderColor:t===`${s.goodsClassCode}`?r:"#000"}},{children:s.goodsClassName}),a)))}))})})]})):null]}))})),ms=ie((({thirdList:a})=>{const{View:t,Image:n}=i(),{picShadow:c,layout:o}=de(ds);return e(t,Object.assign({className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${o}, 1fr)`}},{children:a.map(((a,i)=>s(t,Object.assign({className:"goodsClassifyOneFloorItem",onClick:()=>he("goodList",{classtreeCode:a.classtreeCode})},{children:[e(n,{src:a.goodsClassLogo,className:"pic",style:{boxShadow:c?"#DDDDDD 0px 0px 10px":""}}),e(t,Object.assign({className:"title"},{children:a.goodsClassName}))]}),i)))}))})),hs=pe(),ps=ie((()=>{const{navList:a,fCoe:t,sCoe:n,setSCoe:c,selectFontColor:o,selectBlcShow:l,selectBlcStyle:r}=de(ds),{secondList:d,thirdList:g}=(({navList:e,fCoe:s,sCoe:a})=>{const t=ne((()=>{var a;return(null===(a=e[s])||void 0===a?void 0:a.childList)||[]}),[s,e]),i=ne((()=>{var e;return(null===(e=t[a])||void 0===e?void 0:e.childList)||[]}),[a,s,e]);return{secondList:t,thirdList:i}})({navList:a,fCoe:t,sCoe:n}),{View:m,ScrollView:h,SideBar:p}=i();return e(m,{children:e(ts,Object.assign({id:"goodsClassifyOneContent"},{children:e(h,{children:s(m,Object.assign({className:"goodsClassifyOneContent",style:{height:hs?"100%":"667px"}},{children:[e(p,Object.assign({activeKey:n,onChange:c},{children:d.map(((s,a)=>e(p.Item,{title:s.goodsClassName,className:[l?"":"goodsClassifyOneFloorNoBlc",1===r?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":o,"--adm-color-primary":o}},a)))})),e(ms,{thirdList:g})]}))})}))})})),bs=ie((({selectFontColor:a,selectBlcColor:t,selectBlcShow:n,selectBlc:c,selectBlcStyle:o,picShadow:l,layout:r})=>{const{View:d}=i(),{navList:g,activeKey:m,setActiveKey:h}=p(),[b,u]=ce("0"),[N,O]=ce("0");return e(ds.Provider,Object.assign({value:{fCoe:b,setFCoe:u,sCoe:N,setSCoe:O,navList:g,activeKey:m,setActiveKey:h,selectFontColor:a,selectBlcColor:t,selectBlcShow:n,selectBlc:c,selectBlcStyle:o,picShadow:l,layout:r}},{children:s(d,Object.assign({className:"goodsClassifyOne"},{children:[e(gs,{}),e(ps,{})]}))}))})),us=ie((({childList:a,layout:t,picShadow:n})=>{const{View:c,Image:o}=i();return e(c,Object.assign({className:"level3Arr",style:{gridTemplateColumns:`repeat(${t}, 1fr)`}},{children:a.map(((a,t)=>s(c,Object.assign({className:"level3ArrItem",onClick:()=>he("goodList",{classtreeCode:a.classtreeCode})},{children:[e(o,{src:a.goodsClassLogo,className:"logo",style:{boxShadow:n?"#DDDDDD 0px 0px 10px":""}}),e(c,Object.assign({className:"title"},{children:a.goodsClassName}))]}),t)))}))})),Ns=ie((({navList:a,activeKey:t,layout:n,picShadow:c})=>{var o;const[l,r]=ce(0);oe((()=>{r(a.findIndex(d))}),[t,l]);const d=e=>e.goodsClassCode===t,{View:g,Image:m}=i();return s(g,Object.assign({className:"goodsClassifyTwoContent"},{children:[e(m,{className:"firstLevelImg",src:xe(a[l],"goodsClassLogo"),mode:"widthFix"}),null===(o=xe(a[l],"childList"))||void 0===o?void 0:o.map(((a,t)=>s(g,{children:[e(g,Object.assign({className:"level2Title"},{children:a.goodsClassName})),e(us,{childList:a.childList,layout:n,picShadow:c})]},t)))]}))})),{SideBar:Os}=n,js=ie((({selectFontColor:a,selectBlcShow:t,selectBlcColor:n,selectBlcStyle:c,layout:o,picShadow:l})=>{const{View:r}=i(),{activeKey:d,setActiveKey:g,navList:m,flag:h}=p();return e(r,Object.assign({className:"goodsClassifyTwo"},{children:e(ts,{children:s(r,Object.assign({className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"}},{children:[e(r,Object.assign({className:"side"},{children:e(Os,Object.assign({activeKey:d,onChange:g,style:{"--width":"88px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(Os.Item,{title:s.goodsClassName,className:[t?"":"goodsClassifyTwoFloorNoBlc",1===c?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":a}},s.goodsClassCode)))}))})),e(r,Object.assign({className:"main"},{children:e(Ns,{navList:m,activeKey:d,layout:o,picShadow:l})}))]}))})}))})),Cs=({className:s="iconfont",prefixClass:a="icon",onClick:t=(()=>{}),style:n={fontSize:16,color:"#444",fontWeight:900},value:c})=>{const{Text:o}=i();return e(o,{onClick:t,className:Ce(a,c?`${a}-${c}`:"",s),style:n})},fs=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],ys=({setParams:a,activeColor:t})=>{const{View:n}=i(),[c,o]=ce(0),[l,r]=ce(fs);return e(n,Object.assign({className:"sortWrap"},{children:l.map((({order:i,sortField:l,name:d},g)=>s(n,Object.assign({className:"sortItem "+(c===g?"active":""),onClick:()=>((e,s,t)=>{o(s),t&&r((e=>(e[s].order="asc"===t?"desc":"asc",[...e]))),a({sortField:e,order:t})})(l,g,i),style:{color:c===g?t:""}},{children:[d,i&&e(Cs,{style:{color:c===g?t:"#444",fontSize:20},value:"desc"===i?"jiangxu":"shengxu"})]}),g)))}))},ks=ie((({classtreeCode:a="",searchParam:t="",activeColor:n="#e54e29",goodsName:c=!0,goodsPrice:o=!0,lineationGoods:l=!0,salesQuantity:r=!0,goodsCar:d=!0,borderRadius:g=!0,goodsColor:m=!0,goodsGap:h=10,paddingLR:p=0})=>{const{View:u,Loading:N,SmoothView:O,Image:j,ScrollView:C}=i(),[f,y]=ce({}),{loading:k,getData:x,list:w}=b(a,t,f),v=ne((()=>Ce("textBox",{btm:!o&&!l})),[o,l]),I=ne((()=>Ce("mgrf",{boxNone:!r})),[r]),S=ne((()=>Ce("goodDetail",{boxNone:!o&&!l&&!d})),[o,l,d]);return s(u,Object.assign({className:"goodsList"},{children:[e(u,Object.assign({className:"top-info"},{children:e(ys,{setParams:y,activeColor:n})})),e(u,Object.assign({className:"listWrap",style:{padding:` 0px ${p}px`}},{children:e(ts,Object.assign({id:"listWrap"},{children:s(C,Object.assign({onScroll:()=>x(f)},{children:[e(u,Object.assign({className:"list",style:{gap:h}},{children:w.map((a=>s(u,Object.assign({onClick:()=>he("goodDetail",{skuCode:a.skuCode}),className:"listItem",style:{borderRadius:g?"8px":"",boxShadow:m?"4px 4px 4px #969292":""}},{children:[e(j,{src:a.dataPic,className:"img"}),e(O,Object.assign({className:"name",style:{display:c?"block":"none"}},{children:a.goodsName})),s(u,Object.assign({className:I},{children:["已售:",a.goodsNum]})),s(u,Object.assign({className:S},{children:[s(u,Object.assign({className:v},{children:[e(O,Object.assign({className:"price",style:{display:o?"block":"none"}},{children:Ze(a.pricesetNprice)}))," "," ",e(u,Object.assign({className:"decoration",style:{display:l?"block":"none"}},{children:a.pricesetMakeprice}))]})),e(u,Object.assign({style:{display:d?"block":"none"}},{children:e(Cs,{style:{fontSize:20,color:"#f00"},value:"cart"})}))]}))]}),a.skuCode)))})),k?e(N,{}):null]}))}))}))]}))})),xs=pe(),ws=ie((({placeholder:a,placeholderText:t,history:n,historyText:c,paddingBottom:o,paddingTop:l})=>{const{View:r,Text:d,Input:g}=i(),[m,h]=ce((()=>be("history")||[])),p=Ne((e=>Qe(void 0,void 0,void 0,(function*(){xs&&(h((s=>{if(we(e.detail.value))return s;const a=s.concat(e.detail.value);return je("history",a),a})),b(e.detail.value))})))),b=Ne((e=>{he("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:l,paddingBottom:o}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Me,alt:""}),e(g,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:p},a?{placeholder:t}:{})),e(d,Object.assign({className:"btn",onClick:()=>Oe()},{children:"取消"}))]})),n?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"}),c]})),e(Cs,{onClick:()=>Qe(void 0,void 0,void 0,(function*(){(yield ue()).removeStorageSync("history"),h([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(r,Object.assign({className:"content"},{children:m.map(((s,a)=>e(r,Object.assign({onClick:()=>b(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),vs=({starColor:a="#FF0934",starSize:t="12px",itemData:c})=>{const{View:o,Text:l,Image:r}=i(),{Rate:d}=n;return s(o,Object.assign({className:"evaluateItem"},{children:[s(o,Object.assign({className:"userInfo"},{children:[e(r,{src:c.avatar,className:"avatar"}),s(o,Object.assign({className:"userNameWrap"},{children:[e(l,Object.assign({className:"userName"},{children:c.userName})),e(d,{readOnly:!0,value:c.rate,style:{"--star-size":t,"--active-color":a}})]}))]})),s(o,Object.assign({className:"size"},{children:["规格: ",c.size]})),e(o,Object.assign({className:"content"},{children:c.evaluate})),e(o,Object.assign({className:"img-group"},{children:c.imgUrls.map(((s,a)=>e(r,{src:s.imgUrl,className:"img"},a)))}))]}))},Is=[{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"}]}],Ss=ie((()=>{const[t,n]=ce("1"),{View:c}=i(),o=ge([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),l=e=>{n(e)};return s(a,{children:[e(c,Object.assign({className:"evaluateListTab"},{children:o.current.map((e=>s(c,Object.assign({className:"evaluateListTabItem "+(e.index===t?"active":""),"data-index":e.index,onClick:l.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(c,Object.assign({className:"evaluateListContent"},{children:Is.map(((s,a)=>e(vs,{itemData:s},a)))}))]})})),As=({onChange:s,readOnly:a=!1,size:t=22,count:n})=>{const{View:c}=i(),[o,l]=ce([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);oe((()=>{if(n){const e=[...o];for(let s=0;s<e.length;s++)e[s].icon=s>n-1?"star":"star-fill";l(e)}}),[]);const r=e=>{if(!a){for(let s=0;s<o.length;s++)o[s].icon=s>e?"star":"star-fill";l([...o]),s(e+1)}};return e(c,{children:o.map(((s,a)=>e(Cs,{onClick:r.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:t}},a)))})},Bs=ie((({code:a,borderRadius:t,borderColor:c,color:o,buttonColor:l,buttonBorderRadius:r,paddingTop:d,paddingBottom:g})=>{const{orderInfo:m,changeStar:h,Submit:p,changeContent:b}=u(a),{Button:N}=n,{View:O,Image:j,TextArea:C,Textarea:f}=i(),y=C||f,k=ge("宝贝满足你吗?分享一下它吧");return s(O,Object.assign({className:"evaluateDetail",style:{paddingTop:d,paddingBottom:g}},{children:[m.map(((a,i)=>s(me,{children:[s(O,Object.assign({className:"topInfo"},{children:[s(O,Object.assign({className:"lPart"},{children:[e(j,{src:a.dataPic,className:"img",style:{borderRadius:1===t?"20px":"0px"}}),s(O,Object.assign({className:"goodsInfo"},{children:[e(O,Object.assign({className:"goodsName"},{children:a.goodsName})),e(O,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(O,Object.assign({className:"rPart"},{children:s(O,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(O,Object.assign({className:"rate"},{children:[e(O,Object.assign({className:"title"},{children:"商品评价"})),e(As,{onChange:h.bind(null,i)})]})),e(O,Object.assign({className:"evaluate"},{children:e(y,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:b.bind(null,i)})}))]},i))),e(N,Object.assign({style:{border:`1px solid ${c}`,color:o,backgroundColor:l,borderRadius:1===r?"20px":"0px"},className:"btn",onClick:p},{children:"提交"}))]}))})),Vs=({code:a,defaultValue:t})=>{const{info:n,detail:c,stateObj:o}=N(a),{View:l}=i(),r=xe(n,"packageList[0].contractGoodsList[0].dataPic",t.dataPic),d=xe(n,"packageList.length",t.count),g=xe(n,"packageList[0].expressName",t.expressName),m=xe(n,"packageList[0].packageBillno",t.packageBillno),h=xe(c,"state",t.result)||"-1";return s(l,Object.assign({className:"expressInfoTop"},{children:[e(l,Object.assign({className:"goodsImg",style:{backgroundImage:`url(${r})`}},{children:s(l,Object.assign({className:"tip"},{children:["共 ",d," 件商品"]}))})),s(l,Object.assign({className:"list"},{children:[s(l,Object.assign({className:"listItem"},{children:["物流状态:",h?o[h]:"暂时无法获取物流状态"]})),s(l,Object.assign({className:"listItem"},{children:["快递公司:",g]})),s(l,Object.assign({className:"listItem"},{children:["快递单号:",m]}))]}))]}))},Ds=({code:a,defaultValue:t})=>{const{detail:n}=N(a),{View:c}=i(),o=xe(n,"message",t.message),l=xe(n,"data",t.list);return e(c,Object.assign({className:"expressInfoStep"},{children:"ok"===o?l.map(((a,t)=>s(c,Object.assign({className:"step"},{children:[e(c,Object.assign({className:"time"},{children:a.time})),e(c,{children:a.context})]}),t))):e(c,Object.assign({className:"noInfo"},{children:o}))}))},Ls=ie((({code:a,defaultValue:t})=>{const{View:n}=i();return s(n,Object.assign({className:"expressInfo"},{children:[e(Vs,{code:a,defaultValue:t}),e(Ds,{code:a,defaultValue:t})]}))})),Ts=({setDefault:s,checked:a})=>{const{SmoothCheckbox:t,Checkbox:n}=i();return e(t,Object.assign({onChange:s},{children:e(n,Object.assign({checked:a,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:"设为默认地址"}))}))},Ps=({itemData:a,delAddress:t,setDefault:n})=>{const{View:c,Text:o}=i(),{handlerImpl:l}=O(a);return s(c,Object.assign({className:"addressItem"},{children:[s(c,Object.assign({className:"upInfo",onClick:l},{children:[s(c,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(c,Object.assign({className:"addressInfo"},{children:s(o,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(c,Object.assign({className:"downInfo"},{children:[e(Ts,{checked:"1"===(null==a?void 0:a.addressDefault),setDefault:n}),e(o,Object.assign({className:"del",onClick:t},{children:"删除"}))]}))]}))},Rs=ie((()=>{const{View:s,Skeleton:t}=i(),n=ge(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(t,{className:"skullItem",animated:!0},a)))}))}))})})),zs=ie((({url:a,title:t,subTitle:n,link:o,style:l})=>{const{View:r,Image:d}=i();return e(r,Object.assign({className:"noData",style:l},{children:s(r,Object.assign({className:"content"},{children:[e(d,{className:"img",src:a}),e(r,Object.assign({className:"title"},{children:t})),e(r,Object.assign({className:"subTitle"},{children:n})),o?s(r,Object.assign({className:"link",onClick:()=>he(o)},{children:["去看看",e(c,{value:"xiangyou1"})]})):null]}))}))})),Ms=ie((({refreshNum:a,btnShape:t,btnColor:n,borderColor:c,paddingBottom:o,paddingTop:l,color:r})=>{const{View:d}=i(),{list:g,delAddress:m,setDefault:h,skullShow:p}=j(a);return s(d,Object.assign({className:"addressListWrap",style:{paddingTop:l+"px",marginBottom:o+"px"}},{children:[p?e(Rs,{}):e(d,Object.assign({className:"addressList"},{children:g.length?g.map(((s,a)=>e(Ps,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(zs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(d,Object.assign({className:"addBtnWrap"},{children:e(d,Object.assign({style:{borderRadius:t,borderColor:c,color:r,backgroundColor:n},className:"addBtn",onClick:()=>he("addressEditor")},{children:"+ 新增地址"}))}))]}))})),Fs=[{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"}],Ws=ie((()=>{const{View:s,Skeleton:t}=i(),n=ge(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(t,{className:"skullItem",animated:!0},a)))}))}))})}));Ve.forEach((e=>{const s=Be.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),Be.forEach((e=>{const s=Ae.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 Gs=Ae.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Es=({form:a,handleArea:t})=>{const{View:c}=i(),{CascadePicker:o}=n,l=a.getFieldValue("area"),[r,d]=ce(!1),g=e=>{const s={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},a={pIndex:0,cIndex:0};for(let t=0;t<Gs.length;t++)if(Gs[t].value===e[0]){s.provinceName=Gs[t].label,a.pIndex=t;break}for(let t=0;t<Gs[a.pIndex].children.length;t++)if(Gs[a.pIndex].children[t].value===e[1]){s.cityName=Gs[a.pIndex].children[t].label,a.cIndex=t;break}for(let t=0;t<Gs[a.pIndex].children[a.cIndex].children.length;t++)if(Gs[a.pIndex].children[a.cIndex].children[t].value===e[2]){s.areaName=Gs[a.pIndex].children[a.cIndex].children[t].label;break}return s};return s(c,{children:[e(c,Object.assign({className:"txt",onClick:()=>d(!0)},{children:(null==l?void 0:l.provinceName)?`${l.provinceName}—${l.cityName}-${l.areaName}`:"请选择所在地区"})),e(o,{onConfirm:e=>{t("h5",g(e))},options:Gs,visible:r,onClose:()=>d(!1)})]})},Hs=({checked:s,onChange:a})=>{const{View:t}=i(),{Switch:c}=n;return e(t,{children:e(c,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},Ys=pe(),Us=ie((({addressId:s,btnShape:t,btnColor:c,borderColor:o,color:l,paddingTop:r,paddingBottom:d})=>{const{View:g,Switch:m}=i(),{Form:h,Button:p,Input:b}=n,u=process.env.TARO_ENV,{skullShow:N,form:O,area:j,defaultAddress:f,handleArea:y,handleDefaultAddress:k,handleFinish:x}=C(s,h,Ys);return e(g,Object.assign({className:"addressDetail",style:{height:Ys?"100%":"667px",paddingBottom:d+"px",paddingTop:r+"px"}},{children:N?e(Ws,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:x,footer:e(p,Object.assign({style:{color:l,backgroundColor:c,borderColor:o},shape:t,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:Fs.map(((s,t)=>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(Hs,{onChange:k.bind(null,"h5"),checked:"1"===f}):e(m,{color:"#000",onChange:k.bind(null,"weapp"),checked:"1"===f}):"cascader"===s.type?e(a,{children:Ys?"h5"===u?e(Es,{form:O,handleArea:y}):e("picker",Object.assign({mode:"region",onChange:y.bind(null,"weapp"),value:j},{children:e(g,Object.assign({className:"areaWrap"},{children:j.provinceName?`${j.provinceName}—${j.cityName}-${j.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),t)))}))}))})),Qs=pe(),Ks=ie((({code:a,borderRadius:t,leftColor:n,leftButtonColor:c,leftBorderColor:o,leftBorderRadius:l,rightValue:r,rightAddHref:d,rightColor:g,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:p,paddingTop:b,paddingBottom:u})=>{const{View:N,Text:O}=i(),{result:j}=f(a||(be("contractBillcode")||{}).contractBillcode),{sysRecode:C,dataObj:y}=j;return e(N,Object.assign({className:"placeOrderResult",style:{height:Qs?"100vh":"667px",paddingTop:b,paddingBottom:u}},{children:s(N,C?Object.assign({className:"placeOrderResultContent",style:{borderRadius:1===t?"20px":"0px"}},{children:[e(O,{className:"icon"}),e(N,Object.assign({className:"tips"},{children:e(O,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(N,Object.assign({className:"placeOrderResultWrap"},{children:[s(N,Object.assign({className:"placeOrderResultItem"},{children:[e(O,Object.assign({className:"label"},{children:"订单号:"})),e(O,Object.assign({className:"value"},{children:y.contractBillcode}))]})),s(N,Object.assign({className:"placeOrderResultItem"},{children:[e(O,Object.assign({className:"label"},{children:"支付方式:"})),e(O,Object.assign({className:"value"},{children:"在线支付"}))]})),s(N,Object.assign({className:"placeOrderResultItem"},{children:[e(O,Object.assign({className:"label"},{children:"支付金额:"})),s(O,Object.assign({className:"value"},{children:["¥ ",y.dataBmoney]}))]}))]})),s(N,Object.assign({className:"btnGroup"},{children:[e(N,Object.assign({className:"btn black",onClick:()=>he("orderDetail",{contractBillcode:y.contractBillcode}),style:{color:n,backgroundColor:c,border:`1px solid ${o}`,borderRadius:1===l?"20px":"0px"}},{children:"查看订单"})),e(N,Object.assign({style:{color:g,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===p?"20px":"0px"},onClick:()=>he(d.value),className:"btn white"},{children:r}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(O,{className:"icon"}),s(N,Object.assign({className:"tips"},{children:[e(O,Object.assign({className:"title"},{children:"订单支付失败"})),e(O,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(N,Object.assign({className:"btnGroup"},{children:e(N,Object.assign({onClick:()=>he("paymentMode",{contractBillcode:j.contractBillcode}),className:"btn white"},{children:"去支付"}))}))]}))}))}));ie((()=>{const{View:s,Skeleton:t}=i(),n=ge(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(t,{className:"skullItem",animated:!0},a)))}))}))})}));const qs=()=>{const{View:s,Image:a}=i();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"})}))},Zs=({list:t,coe:n,config:c,backgroundColor:o,color:l})=>{const{View:r,Text:d}=i();return e(a,{children:t.length?t.map(((t,i)=>e(r,Object.assign({className:`couponListItem\n ${c.current[n.current].styleName}`,style:{backgroundColor:o,color:l}},{children:s(r,Object.assign({className:"coupon-content"},{children:[e(r,Object.assign({className:"price"},{children:e(d,Object.assign({className:"num"},{children:t.pbName}))})),s(r,Object.assign({className:"couponListItem-info"},{children:[e(d,Object.assign({className:"title"},{children:t.discName})),s(d,Object.assign({className:"date"},{children:["有效期至:",`${new Date(t.gmtModified).getFullYear()}-${new Date(t.gmtModified).getMonth()+1}-${new Date(t.gmtModified).getDate()}`]})),c.current[n.current].text?e(r,Object.assign({className:"btn"},{children:c.current[n.current].text})):null,2===n.current?e(a,{children:e(r,Object.assign({className:"round"},{children:"已失效"}))}):null]}))]}))}),i))):e(qs,{})})},Xs=ie((({backgroundColor:a,color:t,paddingTop:n,paddingBottom:c,queue:o})=>{const{View:l,Text:r,ScrollView:d}=i(),{coe:g,getList:m,config:h,switchTab:p,list:b=[]}=y();return s(l,Object.assign({className:"couponList"},{children:[e(l,Object.assign({className:"couponTab"},{children:h.current.map(((a,t)=>s(l,Object.assign({className:"couponTabItem "+(g.current===t?"active":""),onClick:()=>p(t)},{children:[a.label,e(r,{className:"icon"})]}),a.id)))})),e(ts,Object.assign({id:"couponTab",bottomHeight:"60"},{children:e(d,Object.assign({onScroll:m},{children:e(l,Object.assign({className:"couponListContent",style:{paddingTop:n,paddingBottom:c}},{children:e(Zs,{backgroundColor:a,color:t,queue:o,list:b,coe:g,config:h})}))}))}))]}))})),$s=({list:a,cartItemRadius:t})=>{const{View:n,Text:c,Image:o,Checkbox:l,NumStep:r,SmoothCheckbox:d,WrapLoading:g}=i(),{loading:m}=k(),{select:h,onChange:p,handleStep:b}=x();return e(g,Object.assign({loading:m},{children:e(d,Object.assign({onChange:p},{children:a.map(((a,i)=>e(n,Object.assign({className:"cartItem"},{children:s(n,Object.assign({className:"cartItem-box",style:{borderRadius:t}},{children:[e(n,Object.assign({className:"checkBoxWrap"},{children:e(l,{checked:h.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(o,{className:"img",src:a.dataPic,onClick:()=>he("goodDetail",{skuCode:a.skuCode})}),s(n,Object.assign({className:"cartItem-info"},{children:[e(c,Object.assign({className:"cartItem-goodsName"},{children:a.goodsName})),s(n,Object.assign({className:"cartItem-size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(n,Object.assign({className:"cartItem-handleWrap"},{children:[s(c,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(r,{count:a.goodsCamount,handleStep:b.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}))}),i)))}))}))},Js=pe(),_s=({refreshNum:t,btnStyle:n,borderColor:c,textColor:o,btnColor:l,btnShape:r,cartItemRadius:d,countBorderColor:g,countTextColor:m,countBtnColor:h,countBtnShape:p})=>{const{View:b,SmoothView:u,Checkbox:N,SmoothCheckbox:O,ScrollView:j}=i(),[C,f]=ce(!0),{cartList:y,amount:k,selectAll:x,allCart:w,toOrderImpl:I,select:S,deleteCart:A,disMoney:B}=v(t),V={border:n?`2px solid ${c}`:"",color:n?o:"",background:n?l:"",borderRadius:n?r:""},D={border:`1px solid ${g}`,color:m,background:h,borderRadius:p};return e(b,Object.assign({className:"cart",style:{height:Js?"100%":"667px"}},{children:y.length?s(a,{children:[e(b,Object.assign({className:"edit"},{children:e(b,Object.assign({className:"btn",style:V,onClick:()=>f(!C)},{children:C?"编辑":"完成"}))})),e(ts,Object.assign({id:"editId",bottomHeight:"50"},{children:e(j,{children:e($s,{list:y,cartItemRadius:d})})})),s(b,Object.assign({className:"cart-dashboard"},{children:[e(b,Object.assign({className:"choose"},{children:e(O,Object.assign({onChange:x},{children:e(N,Object.assign({checked:w.current.length===S.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),C?s(b,Object.assign({className:"check"},{children:[s(b,Object.assign({className:"priceGroup"},{children:[s(b,Object.assign({className:"discount"},{children:["优惠: ",e(u,Object.assign({className:"data"},{children:Ze(B)}))]})),s(b,Object.assign({className:"all"},{children:["合计: ",e(u,Object.assign({className:"data"},{children:Ze(k.amount)}))]}))]})),s(b,Object.assign({onClick:I,className:"btn",style:D},{children:["结算(",k.num,")"]}))]})):e(b,Object.assign({className:"del"},{children:e(b,Object.assign({onClick:A,className:"btn"},{children:"删除"}))}))]}))]}):e(zs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))},ea=ie((s=>e(w,{children:e(_s,Object.assign({},s))}))),sa=({dispatchPageStore:s,btnStyle:a,borderColor:t,textColor:n,btnColor:c,btnShape:o})=>{const{View:l}=i(),{isEditor:r,editorImpl:d}=I(s),g=ne((()=>({border:a?`2px solid ${t}`:"",color:a?n:"",background:a?c:"",borderRadius:a?o:""})),[a,t,n,c,o]);return e(l,Object.assign({className:"cart-edit"},{children:e(l,Object.assign({className:"btn",onClick:d,style:g},{children:r?"完成":"编辑"}))}))},aa=ie((({promotionName:a,checked:t,promotionCode:n})=>{const{View:c,Radio:o}=i();return s(c,Object.assign({className:"promotion-item"},{children:[e(c,Object.assign({className:"content"},{children:a})),e(c,Object.assign({className:"choose"},{children:e(o,{checked:t,value:n})}))]}))})),ta=({onChange:s,promotionCode:a,visible:t,setVisible:n,promotion:c})=>{const{Popup:o,ScrollView:l,View:r,SmoothRadio:d}=i();return e(o,Object.assign({popupVisible:t,popupHandler:n},{children:e(r,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(ts,{children:e(l,{children:e(d,Object.assign({onChange:s},{children:c.map(((e,s)=>le(aa,Object.assign({checked:e.promotionCode===a},e,{key:s}))))}))})})}))}))},ia=ie((({goodsName:t,skuName:n,goodsCamount:c,shoppingGoodsId:o,pricesetNprice:l,handleStep:r})=>{const{View:d,SmoothView:g,NumStep:m}=i();return e(a,{children:s(d,Object.assign({className:"cartItem-info"},{children:[e(g,Object.assign({className:"cartItem-goodsName"},{children:t})),s(d,Object.assign({className:"cartItem-size"},{children:["规格:",n," X ",c]})),s(d,Object.assign({className:"cartItem-handleWrap"},{children:[e(g,Object.assign({className:"price"},{children:Ze(l)})),e(m,{count:c,handleStep:r.bind(null,o,c)})]}))]}))})})),na=ie((({dataPic:s,skuCode:a})=>{const{Image:t}=i();return e(t,{className:"img",src:s,onClick:()=>he("goodDetail",{skuCode:a})})})),ca=ie((s=>{var{shoppingGoodsId:a}=s,t=Ue(s,["shoppingGoodsId"]);const{View:n,Checkbox:c}=i(),{select:o=[]}=t;return e(n,Object.assign({className:"checkBoxWrap"},{children:e(c,{checked:o.includes(a+""),value:a,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})}))})),oa=({promotion:t=[],updatePm:n,shoppingGoodsId:c,promotionCode:o})=>{const{View:l}=i(),[r,d]=ce(!1),g=ne((()=>((t||[]).find((e=>e.promotionCode===o))||{}).promotionName),[t]);return s(a,{children:[s(l,Object.assign({className:"cart-promote-active",onClick:()=>d(!0)},{children:[g,e(l,{children:"修改"})]})),e(ta,{promotionCode:o,onChange:e=>{d(!1),n(c,e.detail.value)},promotion:t||[],visible:r,setVisible:d})]})},la=ie((a=>{var{item:t}=a,n=Ue(a,["item"]);const{View:c}=i();return s(c,Object.assign({className:"cart-list-item"},{children:[e(ca,Object.assign({},n,{shoppingGoodsId:t.shoppingGoodsId})),e(na,{dataPic:t.dataPic,skuCode:t.skuCode}),e(ia,Object.assign({},t,n))]}))})),ra=t=>{var{shoppingGoodsList:i=[]}=t,n=Ue(t,["shoppingGoodsList"]);return e(a,{children:i.map(((t,i)=>s(me,{children:[e(la,Object.assign({},n,{item:t})),ne((()=>e(a,{children:t.pmPromotionList?e(oa,{promotionCode:n.promotionCode,shoppingGoodsId:t.shoppingGoodsId,updatePm:n.updatePm,promotion:t.pmPromotionList}):null})),[t.pmPromotionList])]},i)))})},da=({disNextMsg:a,promotionName:t,pbName:n})=>{const{View:c,SmoothView:o}=i();return s(c,Object.assign({className:"cart-dis-title"},{children:[e(o,Object.assign({className:"tips"},{children:n})),e(o,Object.assign({style:{padding:"0 10px"}},{children:t})),e(o,{children:a})]}))},ga=({refreshNum:t,cartSelect:n,dispatchPageStore:c,cartUpdateCount:o=0,cartItemRadius:l="10px"})=>{const{SmoothCheckbox:r,WrapLoading:d,View:g}=i(),{loading:m,cartList:h,onChange:p,handleStep:b,updatePm:u}=S(t,o,c);return e(d,Object.assign({loading:m},{children:e(g,Object.assign({className:"cart-wrap"},{children:e(r,Object.assign({onChange:p},{children:h.length?e(a,{children:h.map((({memberCname:a,promotionCode:t,disNextMsg:i,promotionName:c,pbName:o,shoppingGoodsList:r},d)=>s(me,{children:[e("h4",{children:a}),s(g,Object.assign({className:"cart-bg",style:{borderRadius:l}},{children:[c?e(da,{disNextMsg:i,promotionName:c,pbName:o}):null,e(ra,{promotionCode:t,handleStep:b,select:n,updatePm:u,shoppingGoodsList:r,cartItemRadius:l})]}))]},d)))}):e(zs,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))}))}))},ma=({cartInfo:a=[],cartDisMoney:t=0,cartSelect:n=[],cartIsEditor:c=!1,dispatchPageStore:o,countBorderColor:l="#000000",countTextColor:r="#ffffff",countBtnColor:d="#000000",countBtnShape:g="20px"})=>{const{View:m,SmoothView:h,SmoothCheckbox:p,Checkbox:b}=i(),{toOrderImpl:u,deleteCart:N,selectAll:O,cartDetail:j}=A(n,a,o),C=ne((()=>({border:`1px solid ${l}`,color:r,background:d,borderRadius:g})),[l,r,d,g]);return s(m,Object.assign({className:"cart-dashboard"},{children:[e(m,Object.assign({className:"choose"},{children:e(p,Object.assign({onChange:O},{children:e(b,Object.assign({checked:a.length===n.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),c?e(m,Object.assign({className:"del"},{children:e(m,Object.assign({onClick:N,className:"btn"},{children:"删除"}))})):s(m,Object.assign({className:"check"},{children:[s(m,Object.assign({className:"priceGroup"},{children:[s(m,Object.assign({className:"discount"},{children:["优惠: ",e(h,Object.assign({className:"data"},{children:Ze(t)}))]})),s(m,Object.assign({className:"all"},{children:["总计: ",e(h,Object.assign({className:"data"},{children:Ze(j.amount)}))]}))]})),s(m,Object.assign({onClick:u,className:"btn",style:C},{children:["结算(",j.num,")"]}))]}))]}))},ha=ie((({avatarStyle:a,paddingTop:t,paddingBottom:n,userAvatar:c,userNickname:o})=>{const{View:l,Text:r,IconMobile:d,Image:g}=i(),{servicePopup:m}=qe();return s(l,Object.assign({className:"mineData",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`}},{children:[s(l,Object.assign({className:"topBoard"},{children:[e(d,{value:"shezhi",onClick:()=>he("/account/setting/index")}),e(d,{value:"kehufuwukefu",onClick:m})]})),s(l,Object.assign({className:"userSetting",onClick:()=>he("/account/setting/index")},{children:[s(l,Object.assign({className:"lPart"},{children:[e(r,Object.assign({className:"name"},{children:o||"用户名称"})),e(l,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e(g,{src:c,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]}))]}))})),pa=ie((({title:a,columnList:t})=>{const{View:n,Text:c,Badge:o,Image:l}=i(),[r,d]=ce({});return oe((()=>{Qe(void 0,void 0,void 0,(function*(){try{const e=yield ye();d(e.dataObj)}catch(e){}}))}),[]),s(n,Object.assign({className:"mineOrderEntry"},{children:[s(n,Object.assign({className:"title"},{children:[e(n,Object.assign({className:"name"},{children:a})),e(n,Object.assign({className:"more",onClick:()=>he("orderlist")},{children:"查看全部"}))]})),e(n,Object.assign({className:"content"},{children:t.map(((a,t)=>s(n,Object.assign({onClick:()=>he("orderlist",{indexId:t+1}),className:"contentItem",style:{display:a.show?"block":"none"}},{children:[e(o,Object.assign({},r[a.code]>0?{content:r[a.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12}},{children:e(l,{src:a.imgUrl,className:"icon"})})),e(c,Object.assign({className:"subTitle"},{children:a.label}))]}),t)))}))]}))})),ba=ie((({paddingTop:a,paddingBottom:t,columnList:n})=>{const{View:c,Text:o,IconMobile:l,Image:r}=i();return e(c,Object.assign({className:"mineFunction",style:{paddingTop:a+"px",paddingBottom:t+"px"}},{children:n.map(((a,t)=>s(c,Object.assign({className:"menuListItem",onClick:()=>he(a.link.value)},{children:[s(c,Object.assign({className:"lPart"},{children:[e(r,{src:a.imgUrl,className:"icon"}),e(o,Object.assign({className:"label"},{children:a.link.label}))]})),e(l,{value:"xiangyou1"})]}),t)))}))})),ua=pe(),Na=ie((({contractBillcode:a,contractBbillcode:t,btnColor:n,btnShape:c,borderColor:o,paddingTop:l,paddingBottom:r,color:d})=>{const{View:g,Text:m,Radio:h,IconMobile:p,WrapLoading:b,SmoothRadio:u}=i(),{paymentImpl:N,channelList:O,contract:j,handleRadio:C,loading:f}=B({contractBillcode:a,contractBbillcode:t});return s(g,Object.assign({className:"paymentModeWrap",style:{height:ua?"inherit":"667px",paddingBottom:r+"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(g,{id:"v_html"}),e(b,Object.assign({loading:f},{children:e(g,Object.assign({className:"btnGroup",onClick:N},{children:e(g,Object.assign({style:{borderRadius:c,backgroundColor:n,color:d,borderColor:o},className:"payment"},{children:"立即支付"}))}))}))]}))})),Oa=({footprintItem:a,edit:t})=>{const{View:n,Image:c,Checkbox:o,SmoothView:l}=i(),r=ne((()=>a.footprintOpnum?`${a.footprintOpnum}元`:""),[a.footprintOpnum]);return s(n,Object.assign({className:"footprintItem"},{children:[t?e(n,Object.assign({className:"lPart"},{children:e(o,{value:a.footprintCode})})):null,s(n,Object.assign({className:"rPart",onClick:()=>he("goodDetail",{skuCode:a.footprintOpcode})},{children:[e(c,{src:a.footprintOppic,className:"img"}),s(n,Object.assign({className:"info"},{children:[e(l,Object.assign({className:"title"},{children:a.footprintOpcont})),e(l,Object.assign({className:"price"},{children:r}))]}))]}))]}))},ja=({item:t,edit:n})=>{const{View:c}=i();return s(c,Object.assign({className:"footPrint"},{children:[e(a,{children:e(c,Object.assign({className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"}},{children:null==t?void 0:t.title}))}),t.option.map(((s,a)=>e(Oa,{footprintItem:s,edit:n},a)))]}))},Ca=({footprintList:s,edit:t})=>{const i=ne((()=>{const e=s.map((e=>(e.gmtCreate=e.gmtCreate?De(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),a=ve(e,"gmtCreate");return Object.keys(a).map((e=>({title:e||"",option:a[e]})))}),[s]);return e(a,{children:i.map(((s,a)=>e(ja,{item:s,edit:t},a)))})},fa=ie((()=>{const{View:a,ScrollView:t,SmoothCheckbox:n,Button:c,Image:o}=i(),{footprintList:l,edit:r,setEdit:d,getSelectItem:g,delItem:m,getData:h}=V();return e(a,Object.assign({className:"footprint"},{children:0===l.length?e(a,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(a,Object.assign({className:"hasDate"},{children:[e(a,Object.assign({className:"topBar"},{children:e(a,Object.assign({className:"edit",onClick:()=>d(!r)},{children:r?"完成":"编辑"}))})),e(ts,Object.assign({id:"topBar1"},{children:s(t,Object.assign({scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScroll:h},{children:[e(n,Object.assign({onChange:g},{children:e(Ca,{footprintList:l,edit:r})})),r?s(a,Object.assign({className:"handleBar"},{children:[e(a,{className:"checkAll"}),e(c,Object.assign({className:"btn",onClick:m},{children:"删除"}))]})):null]}))}))]}))}))})),ya=({item:a,edit:t,checked:n})=>{const{View:c,Image:o,Checkbox:l,SmoothView:r}=i();return s(c,Object.assign({className:"collectItem"},{children:[t?e(l,{className:"lPart",value:a.collectCode,checked:n}):null,s(c,Object.assign({className:"rPart",onClick:()=>he("goodDetail",{skuCode:a.collectOpcode})},{children:[e(o,{src:a.collectOppic,className:"img"}),s(c,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"title"},{children:a.collectOpcont})),s(r,Object.assign({className:"price"},{children:[a.collectOpnum," 元"]}))]}))]}))]}))},ka=ie((()=>{const{collectionList:a,edit:t,setEdit:n,getData:c,getSelectItem:o,delItem:l,init:r,checked:d,handleSelectAll:g,selectAllChecked:m}=D(),{View:h,ScrollView:p,SmoothCheckbox:b,Checkbox:u,Button:N,Image:O}=i();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:()=>n(!t)},{children:t?"完成":"编辑"}))})),e(ts,Object.assign({id:"topBar"},{children:s(p,Object.assign({scrollY:!0,scrollWithAnimation:!0,onScrollToLower:c,onScrollToUpper:r},{children:[e(b,Object.assign({onChange:o,style:{height:"100%"}},{children:a.map((s=>e(ya,{item:s,edit:t,checked:d},s.collectId)))})),t?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]}))}))]}))}))})),xa=ie((({noticeId:a})=>{const{View:t,Image:n}=i(),{info:c}=L(a);return s(t,Object.assign({className:"noticeDetailContainer"},{children:[e(t,Object.assign({className:"title"},{children:c.noticeTitle})),c.noticePicurl?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl}):null,c.noticePicurl1?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl1}):null,c.noticePicurl2?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl2}):null,c.noticePicurl3?e(n,{className:"img",mode:"widthFix",src:c.noticePicurl3}):null,e(t,Object.assign({className:"content"},{children:c.noticeContext}))]}))})),wa=ie((({doclistId:a=2031})=>{const{info:t}=T(a),{View:n,ScrollView:c}=i(),{doclistContent:o,doclistTitle:l,doclistTitle4:r}=t;return e(n,Object.assign({className:"articleDetail"},{children:e(ts,Object.assign({id:"a"},{children:s(c,{children:[e(n,Object.assign({className:"title"},{children:l})),e(n,Object.assign({className:"author"},{children:r})),e("div",{className:"content",dangerouslySetInnerHTML:{__html:o||""}})]})}))}))})),va=({address:s})=>e(a,{children:we(s)?e(Sa,{}):e(Ia,{address:s})}),Ia=({address:a})=>{const{View:t,SmoothView:n,IconMobile:c}=i(),o=ne((()=>{const{provinceName:e,addressDefault:s,cityName:t,areaName:i,addressDetail:n,addressMember:c="",addressPhone:o=""}=a;return{addressDefault:"1"===s,addressMember:c,addressPhone:o,address:e+t+i+n}}),[a]);return s(t,Object.assign({className:"address-info"},{children:[e(c,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),s(t,Object.assign({className:"left"},{children:[s(t,Object.assign({className:"left-title"},{children:[e(n,{children:o.addressMember}),e(n,Object.assign({className:"left-padding"},{children:o.addressPhone})),o.addressDefault?e(n,Object.assign({className:"left-padding left-title-default"},{children:"默认"})):null]})),e(n,Object.assign({className:"left-detail"},{children:o.address}))]})),e(c,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},Sa=()=>{const{View:t,Text:n}=i();return s(a,{children:[s(t,Object.assign({className:"group"},{children:[e(n,{className:"local"}),e(n,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(n,{className:"arrow"})]})},Aa=({refreshNum:s})=>{const{View:a}=i(),t=P(s);return e(a,Object.assign({className:"placeOrder-chooseAddress",onClick:()=>he("addressList")},{children:e(va,{address:t})}))},Ba=ie((({couponStart:a,pbName:t,discName:n,promotionCode:c,promotionName:o,couponEnd:l,disable:r})=>{const{View:d,Text:g,Radio:m}=i();return e(d,Object.assign({className:"couponItem"},{children:s(d,Object.assign({className:"coupon-content"},{children:[s(d,Object.assign({className:"price"},{children:[e(d,Object.assign({className:"symbol"},{children:t})),e(d,Object.assign({className:"num"},{children:n}))]})),s(d,Object.assign({className:"info"},{children:[e(g,Object.assign({className:"title"},{children:o})),s(g,Object.assign({className:"date"},{children:[De(a).format("YYYY-MM-DD")," - ",De(l).format("YYYY-MM-DD")]}))]})),e(d,r?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(m,{disabled:r,value:c})}))]}))}))})),Va=({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o})=>{const{View:l,Text:r,Popup:d,SmoothRadio:g,ScrollView:m}=i(),{amount:h,shoppingGoodsList:p}=R({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o}),{coupon:b,visible:u,setVisible:N,selectCoupon:O,onChange:j}=z(p);return s(a,{children:[s(l,Object.assign({className:"coupon-select",onClick:()=>N(0!==b.length)},{children:[e(r,Object.assign({className:"label"},{children:"优惠券"})),s(l,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"label"},{children:O?`已选择: ${O}`:0===b.length?"暂无可用优惠券":"请选择优惠券"})),0===b.length?null:e("img",{src:Fe,alt:"",className:"icon"})]}))]})),e(d,Object.assign({popupVisible:u,popupHandler:N},{children:e(l,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(ts,Object.assign({bottomHeight:"300"},{children:e(m,{children:e(g,Object.assign({onChange:j},{children:b.map(((e,s)=>le(Ba,Object.assign({disable:h<e.discAmount},e,{key:s}))))}))})}))}))}))]})},Da=({shippingMethod:a=1})=>{const{View:t}=i();return e(t,Object.assign({className:"info placeOrder-blcWrap",style:1===a?{display:"block"}:{display:"none"}},{children:s(t,Object.assign({className:"express placeOrder-blcItem"},{children:[e(t,Object.assign({className:"label"},{children:"配送方式"})),e(t,Object.assign({className:"value"},{children:"快递"}))]}))}))},La=({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:n})=>{const{View:c}=i(),{list:o}=R({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:n});return e(c,Object.assign({className:"place-order-goods"},{children:o.map(((s,a)=>e(Xe,Object.assign({},s),a)))}))},Ta=({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o})=>{const{SmoothView:l,View:r}=i(),{payState:d,amount:g,disCount:m}=R({refreshNum:t,goodsNum:n,skuId:c,shoppingGoodsId:o}),{shoppingCountPrice:h,freight:p,comDisMoney:b}=M(d);return e(a,{children:s(r,Object.assign({className:"price placeOrder-blcWrap"},{children:[e(r,Object.assign({className:"title"},{children:"价格明细"})),s(r,Object.assign({className:"express placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"商品总金额"})),e(l,Object.assign({className:"value"},{children:Ze(h)}))]})),s(r,Object.assign({className:"coupon placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"优惠金额"})),e(l,Object.assign({className:"value"},{children:Ze(b+m)}))]})),s(r,Object.assign({className:"express placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"运费"})),e(l,Object.assign({className:"value"},{children:Ze(p)}))]})),s(r,Object.assign({className:"all placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"总计"})),e(l,Object.assign({className:"value",style:{color:"#000"}},{children:Ze(g-m)}))]}))]}))})},Pa=({color:a,buttonColor:t,borderColor:n,borderRadius:c,refreshNum:o,goodsNum:l,skuId:r,shoppingGoodsId:d})=>{const{View:g,Text:m,WrapLoading:h}=i(),{amount:p,list:b,disCount:u,payState:N,orderStoreInfo:O,ocContractSettlList:j}=R({refreshNum:o,goodsNum:l,skuId:r,shoppingGoodsId:d}),{savePayPrice:C,loading:f}=F({ocContractSettlList:j,payState:N,list:b},r,l,O,d);return s(g,Object.assign({className:"placeOrderFooter"},{children:[s(m,Object.assign({className:"price"},{children:["合计: ",Ze(p-u)]})),e(h,Object.assign({loading:f},{children:e(g,Object.assign({className:"btn",onClick:C,style:{color:`${a}`,border:`1px solid ${n}`,backgroundColor:`${t}`,borderRadius:1===c?"40px":"0px"}},{children:"生成订单"}))}))]}))},Ra=pe(),za=ie((({position:s=10,bg:a,color:t,fontSize:n})=>{const{View:c}=i(),{goTop:o}=W();return e(c,Object.assign({className:"backTop",onClick:o,style:{padding:Ra?"0":"10px"}},{children:e(Cs,{style:{display:"inline-block",color:t,fontSize:n,backgroundColor:a,position:Ra?"fixed":"relative",right:Ra?"20px":"0",bottom:Ra?"120px":"0",margin:`0 auto ${s}px`,zIndex:999},value:"backtop"})}))})),Ma=({TextLineBgColor:a,text:t,contentSize:n,lineStyle:c,fontSize:o,textAlign:l,fontColor:r,lineColor:d,fontWeight:g,fontStyle:m,textDecoration:h})=>{const{View:p}=i();return s(p,Object.assign({className:"textLine",style:{backgroundColor:a,textAlign:l,margin:1===n?"0 10px":""}},{children:[e(p,{className:"blc",style:{borderBottom:`1px ${c} ${d}`}}),e(p,Object.assign({className:"txt",style:{backgroundColor:a,fontWeight:g,fontStyle:m,textDecoration:h,fontSize:`${o}px`,color:r}},{children:t}))]}))},Fa=ie((({borderStyle:s,borderRadius:a,height:t,width:n,backgroundColor:c,paddingTop:o,paddingBottom:l})=>{const{View:r}=i();return e(r,Object.assign({style:{paddingTop:o,paddingBottom:l}},{children:e(r,{style:{borderRadius:a+"%",borderStyle:s,width:n+"%",height:t+"px",backgroundColor:c,marginLeft:"auto",marginRight:"auto"}})}))})),Wa=ie((({defaultValue:a,borderRadius:t,paddingTop:n,paddingBottom:c,selectClassifyNav:o})=>{const{View:r,Text:d}=i(),g=l(a,o);return e(r,Object.assign({style:{paddingTop:n,paddingBottom:c}},{children:e(r,Object.assign({className:"classifyNav"},{children:g.map(((a,i)=>s(r,Object.assign({className:"classifyNavItem",onClick:()=>{var e,s;return he(null===(e=a.link)||void 0===e?void 0:e.value,null===(s=a.link)||void 0===s?void 0:s.params)}},{children:[e("img",{src:a.imgUrl,alt:"",className:"img",style:{borderRadius:`${t}px`}}),e(d,Object.assign({className:"label"},{children:a.title}))]}),i)))}))}))})),Ga=({defaultValue:s,selectClassifyNav:a,navRadius:t,navBorderColor:n,navBgColor:c,navBoxShadow:o,imgRadius:r,imgBoxShadow:d,layout:g,marginTop:m,marginBottom:h})=>{const{View:p}=i(),b=l(s,a);return e(p,Object.assign({className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${g}, 1fr)`,borderRadius:t,border:`1px solid ${n}`,backgroundColor:c,boxShadow:o?"0px 0px 20px 10px #ddd":"none",marginTop:m,marginBottom:h}},{children:b.map(((s,a)=>e(p,Object.assign({className:"classifyNav-item",onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},{children:e("img",{src:s.imgUrl,alt:"",className:"classifyNav-item-img",style:{borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none"}})}),a)))}))},Ea=ie(Ga),Ha=ie((({defaultValue:s,selectClassifyNav:a,navRadius:t,navBorderColor:n,navBgColor:c,navBoxShadow:o,fontSize:r,fontColor:d,tagBgColor:g,otherStyle:m,layout:h,marginTop:p,marginBottom:b})=>{const{View:u}=i(),N=l(s,a),O=ne((()=>Ce("classifyNav-two-item-title",...m)),[m]);return e(u,Object.assign({className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${n}`,borderRadius:t,backgroundColor:c,boxShadow:o?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:b}},{children:N.map(((s,a)=>e(u,Object.assign({className:"classifyNav-two-item",onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)},style:{width:4===h?"74px":"60px"}},{children:e(u,Object.assign({className:O,style:{fontSize:r,color:d}},{children:s.title}))}),a)))}))})),Ya=ie((({defaultValue:s,selectClassifyNav:a,navRadius:t,navBorderColor:n,navBgColor:c,navBoxShadow:o,imgRadius:r,imgBoxShadow:d,fontSize:g,fontColor:m,tagBgColor:h,otherStyle:p,layout:b,marginTop:u,marginBottom:N})=>{const{View:O}=i(),j=l(s,a);return e(O,Object.assign({className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${b}, 1fr)`,border:`1px solid ${n}`,borderRadius:t,backgroundColor:c,boxShadow:o?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:N}},{children:j.map(((s,a)=>e(O,Object.assign({className:"classifyNav-three-item",onClick:()=>{var e,a;return he(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${s.imgUrl})`,borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none",width:4===b?"74px":"60px",height:4===b?"74px":"60px"}},{children:e(O,Object.assign({className:"classifyNav-three-item-tag",style:{backgroundColor:h}},{children:e(O,Object.assign({className:["classifyNav-three-item-txt",...p].join(" "),style:{fontSize:g,color:m}},{children:s.title}))}))}),a)))}))})),Ua=ie((({defaultValue:a=[],classCode:t="",margin:n,circular:c=!1,cell:o,showSales:l=!0,gap:r=10,goods:d=[],markedPrice:g,paddingTop:m,paddingBottom:h,paddingLeft:p,paddingRight:b,goodsName:u=!0,goodsPrice:N=!0,goodsCar:O=!0,goodsBorder:j=!0,goodsShadow:C=!1,marginGap:f=10})=>{const[y,k]=ce(a),x=ge(),{View:w,Text:v}=i();return oe((()=>{Ie(x.current,d)||(x.current=d,we(d)?k(a):Qe(void 0,void 0,void 0,(function*(){try{const e=yield ke({goodsCode:d.toString(),distinctField:"goodsNo"}),s=xe(e,"list",[]);k(s)}catch(e){k(a)}})))}),[d]),e(w,Object.assign({style:{paddingTop:m,paddingBottom:h}},{children:e(w,Object.assign({className:Ce({[`goods-${t}`]:!0}),style:{display:"grid",gap:f,marginBottom:n,gridTemplateColumns:`repeat(${o}, 1fr)`,paddingLeft:p,paddingRight:b}},{children:y.map(((a,t)=>s(w,Object.assign({style:{overflow:"hidden",borderRadius:c?"8px":"0px",border:j?"1px solid #000000":""},onClick:()=>he("goodDetail",{skuCode:a.skuCode}),className:["goods "+(C?"outer-shadow":"")].join(" ")},{children:[e(w,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(w,Object.assign({className:"space"},{children:[e(w,Object.assign({className:"titleType",style:{display:u?"block":"none"}},{children:a.goodsName})),e(w,Object.assign({className:"subTitle"},{children:a.brandName})),l&&s(w,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(w,Object.assign({className:"price"},{children:[s(w,{children:[e(v,Object.assign({className:"subPrice",style:{display:N?"inline":"none"}},{children:"¥"})),N?a.pricesetNprice:"",1===g&&s(v,Object.assign({className:"markedPrice"},{children:[e(v,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]}),e(w,Object.assign({className:"anticon",style:{display:O?"block":"none"}},{children:e(Cs,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}))]}),t)))}))}))})),Qa=ie((({defaultValue:a,goods:t,price:n,marketPrice:c,cart:o,wrapRadius:l,wrapBorderColor:r,wrapBgColor:d,wrapShadow:g,goodsRadius:m,goodsBgColor:h,goodsGap:p,marginTop:b,marginBottom:u,marginLeft:N,marginRight:O})=>{const{View:j}=i(),{list:C}=G({defaultValue:a,goods:t});return e(j,Object.assign({className:"goodsSlider",style:{borderRadius:l,borderColor:r,backgroundColor:d,boxShadow:g?"0px 0px 20px 5px #EEE":"none",marginTop:b,marginBottom:u,marginLeft:N,marginRight:O}},{children:C.map(((a,t)=>s(j,Object.assign({className:"goodsSliderItem",style:{borderRadius:m,backgroundColor:h,marginRight:`${p}px`},onClick:()=>he("goodDetail",{skuCode:a.skuCode})},{children:[e(j,{className:"img",style:{backgroundImage:`url(${a.dataPic})`}}),s(j,Object.assign({className:"board"},{children:[e(j,Object.assign({className:"title"},{children:a.goodsName})),s(j,Object.assign({className:"info"},{children:[s(j,Object.assign({className:"lPart"},{children:[n?s(j,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})):null,c?s(j,Object.assign({className:"marketPrice"},{children:["¥",a.pricesetMakeprice]})):null]})),o?e(j,Object.assign({className:"rPart"},{children:e(Cs,{style:{fontSize:26,color:"#f00"},value:"cart"})})):null]}))]}))]}),t)))}))})),Ka=pe(),qa=ie((({defaultValue:a,goods:t,GoodsSlideshowBg:n,marketPrice:c,goodsName:o,salesNum:l,price:r,goodsRadius:d,goodsBorder:g,goodsShadow:m,btnText:h,btnBg:p,btnColor:b,btnRadius:u})=>{const{list:N}=G({defaultValue:a,goods:t}),{SmoothSwiper:O,View:j,Image:C}=i(),[f,y]=ce(0);return s(j,Object.assign({className:"goodsSlideshow"},{children:[e(C,{src:n,className:"bg",mode:"widthFix"}),e(O,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:N,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{y(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:a=>s(j,Object.assign({className:["goodsSlideshowItem",""+(a.goodsCode===N[f].goodsCode&&Ka?"active":"")].join(" "),style:{borderRadius:d,borderStyle:g?"solid":"none",boxShadow:m?"0px 0px 20px 10px #ddd":""},onClick:()=>he("goodDetail",{skuCode:a.skuCode})},{children:[e(C,{className:"logo",src:a.dataPic,mode:"widthFix"}),o?e(j,Object.assign({className:"goodsName"},{children:a.goodsShowname})):null,l?s(j,Object.assign({className:"salesNum"},{children:["销量:",a.goodsSalesvolume]})):null,r?s(j,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})):null,c?s(j,Object.assign({className:"marketPrice"},{children:["¥",a.pricesetMakeprice]})):null,e(j,Object.assign({className:"btn",style:{backgroundColor:p,color:b,borderRadius:u}},{children:h}))]}))})]}))})),Za=({skuCode:s,autoplay:a,vertical:t})=>{const{rsGoodsFileDomainList:i=[]}=E(s),n=H(i);return e(He,{selectImg:n,type:1,autoplay:a,vertical:t,imgHeight:{height:375,width:375}})},Xa=a=>{const{SmoothView:t,View:n}=i(),{handleCollect:c,collection:o}=Y(a);return s(n,Object.assign({onClick:c},{children:[e("img",{src:Me,alt:"",className:"icon"}),e(t,Object.assign({className:"txt"},{children:we(o.dataObj)?"收藏":"已收藏"}))]}))},$a=({skuCode:a,priceShow:t,collectionShow:n})=>{const{View:c,SmoothView:o}=i(),{rsSkuDomainList:l}=E(a),{goodInfo:r}=U(l);return Q(a),s(c,Object.assign({className:"goodsDetail-topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(o,Object.assign({className:"name"},{children:r.goodsName})),e(o,Object.assign({className:"price",style:{display:t?"block":"none"}},{children:Ze(r.pricesetNprice)}))]})),e(c,Object.assign({className:"rPart",style:{display:n?"flex":"none"}},{children:e(Xa,{goodsName:r.goodsName,pricesetNprice:r.pricesetNprice,dataPic:r.dataPic,skuCode:a})}))]}))},Ja=ie((a=>{const{collectionShow:t,shareShow:n}=a,{View:c}=i(),{handleCollect:o,collection:l}=Y(a),{handleShare:r}=K();return s(c,Object.assign({className:"handleBar"},{children:[t?e(c,Object.assign({className:"collection",onClick:o,style:{borderRight:n?"1px solid #ddd":"none"}},{children:we(l.dataObj)?"收藏":"已收藏"})):null,n?e(c,Object.assign({className:"share",onClick:r},{children:"分享"})):null]}))})),_a=ie((({skuCode:a,priceShow:t,collectionShow:n,shareShow:c})=>{const{View:o,SmoothView:l}=i(),{rsSkuDomainList:r}=E(a),{goodInfo:d}=U(r);return Q(a),s(o,Object.assign({className:"goodsDetail-info-one"},{children:[e(l,Object.assign({className:"price",style:{display:t?"block":"none"}},{children:Ze(d.pricesetNprice)})),e(l,Object.assign({className:"title"},{children:d.goodsName})),e(Ja,{collectionShow:n,shareShow:c,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:d.dataPic,skuCode:a})]}))})),et=()=>{const{Text:e}=i(),a=Z((e=>e.count)),t=Z((e=>e.spec));return s(e,Object.assign({className:"label"},{children:["已选择 数量: ",a," 规格: ",t.toString()]}))},st=({dispatchPageStore:t})=>{const{View:n,Text:c}=i(),{openPopup:o}=q(t);return e(a,{children:s(n,Object.assign({className:"goodsDetail-size",onClick:o},{children:[e(c,Object.assign({className:"label"},{children:"规格"})),s(n,Object.assign({className:"info"},{children:[e(et,{}),e("img",{src:Fe,alt:"",className:"icon"})]}))]}))})},at=({skuCode:a})=>{const{View:t,Text:n}=i(),{rsSkuDomainList:c}=E(a),{goodInfo:o}=U(c),l=X(c,o.skuCode||a);return s(t,Object.assign({className:"goodsDetail-promotion"},{children:[e(n,Object.assign({className:"label"},{children:"促销"})),e(t,Object.assign({className:"group"},{children:l.length?l.map((({discName:s},a)=>e(t,Object.assign({className:"item"},{children:s}),a))):e(t,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},tt=ie((({promotionBegintime:a,pbName:t,discName:n,promotionCode:c,promotionName:o,couponOnceNums:l,couponOnceNumd:r,promotionEndtime:d})=>{const{View:g,Text:m}=i(),{save:h,isPick:p}=$(),b=ne((()=>l-r),[l,r]);return e(g,Object.assign({className:"couponItem"},{children:s(g,Object.assign({className:"coupon-content"},{children:[s(g,Object.assign({className:"price"},{children:[e(g,Object.assign({className:"symbol"},{children:t})),e(g,Object.assign({className:"num"},{children:n}))]})),s(g,Object.assign({className:"info"},{children:[e(m,Object.assign({className:"title"},{children:o})),s(m,Object.assign({className:"date"},{children:[De(a).format("YYYY-MM-DD")," - ",De(d).format("YYYY-MM-DD")]}))]})),e(g,b>0?Object.assign({className:p?"coupon-pick-default":"coupon-pick",onClick:()=>h({promotionCode:c,couponAmount:1})},{children:p?"已领取":"领取"}):Object.assign({className:"coupon-pick-default"},{children:"已领完"}))]}))}))})),it=({skuCode:t})=>{const{View:n,Text:c,Popup:o}=i(),{rsSkuDomainList:l}=E(t),{goodInfo:r}=U(l),{coupon:d,visible:g,setVisible:m}=J(l,r.skuCode||t);return s(a,{children:[s(n,Object.assign({className:"goodsDetail-coupon",onClick:()=>m(!0)},{children:[e(c,Object.assign({className:"label"},{children:"优惠券"})),s(n,Object.assign({className:"info"},{children:[e(c,Object.assign({className:"label"},{children:"请选择优惠券"})),e("img",{src:Fe,alt:"",className:"icon"})]}))]})),e(o,Object.assign({popupVisible:g,popupHandler:m},{children:e(n,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(ts,{children:d.map(((e,s)=>le(tt,Object.assign({},e,{key:s}))))})}))}))]})},nt=({item:a})=>{const{View:t,Image:n}=i();return s(t,Object.assign({className:"rateItem"},{children:[s(t,Object.assign({className:"topInfo"},{children:[s(t,Object.assign({className:"lPart"},{children:[e(n,{src:a.userImgurl,className:"avatar"}),s(t,Object.assign({className:"userInfo"},{children:[e(t,Object.assign({className:"name"},{children:a.userName})),e(As,{readOnly:!0,size:14,count:a.evaluateScopeReList.length})]}))]})),e(t,Object.assign({className:"rPart"},{children:`${new Date(a.gmtCreate).getFullYear()}-${new Date(a.gmtCreate).getMonth()+1}-${new Date(a.gmtCreate).getDate()}`}))]})),e(t,Object.assign({className:"size"},{children:a.skuName})),e(t,Object.assign({className:"content"},{children:a.evaluateGoodsContent}))]}))},ct=({evaluateArr:a})=>{const{View:t}=i(),n=ge(a);return e(t,Object.assign({className:"goodsDetailEvaluate"},{children:n.current.length?s(t,{children:[s(t,Object.assign({className:"topInfo"},{children:["评价 (",n.current.length,")"]})),n.current.slice(0,5).map(((s,a)=>e(nt,{item:s},a)))]}):e(zs,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},ot=({goodsRemark:s})=>{const{View:a}=i(),t=ne((()=>s.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[s]);return e(a,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:t||""}})}))},lt=({tabActive:t,setTabActive:n,evaluateShow:c,evaluateImgShow:o,evaluateImg:l})=>{const{Text:r}=i(),d=ne((()=>o?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[c]);return e(a,{children:d.map(((a,i)=>e(me,{children:s(r,Object.assign({className:"tabsItem "+(t===i?"active":""),onClick:()=>n(i)},{children:[a.title,e(r,{className:"line"})]}))},i)))})},rt=({skuCode:a,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{View:o}=i(),[l,r]=ce(0),{goodsRemark:d,goodsCode:g}=E(a),m=_(g);return s(o,Object.assign({className:"goodsDetailTab"},{children:[e(o,Object.assign({className:"tabs"},{children:e(lt,{tabActive:l,setTabActive:r,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})})),e(o,Object.assign({className:"group"},{children:0===l?e(ot,{goodsRemark:d}):e(ct,{evaluateArr:m,evaluateImgShow:n,evaluateImg:c})}))]}))},dt=({skuName:a,handleChooseSize:t,spec:n,skuOption:c,index:o})=>{const{View:l,Text:r}=i();return s(l,Object.assign({className:"sizeArr"},{children:[e(r,Object.assign({className:"title"},{children:a})),e(l,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(l,Object.assign({className:"sizeItem "+(n[o]===s.specValueValue?"active":""),onClick:t.bind(null,s.specValueValue,o)},{children:s.specValueValue}),a)))}))]}))},gt=ie((({handleStep:a})=>{const{View:t,NumStep:n}=i(),c=Z((e=>e.count));return s(t,Object.assign({className:"countWrap"},{children:[e(t,Object.assign({className:"label"},{children:"购买数量"})),e(n,{count:c,handleStep:a})]}))})),mt=({skuInfo:t,handleChooseSize:n,rsSkuDomainList:c})=>{const{Image:o,View:l}=i(),{skuList:r}=t,{spec:d,goodInfo:g}=U(c);return s(a,{children:[s(l,Object.assign({className:"goodsInfo"},{children:[e(l,Object.assign({className:"lPart"},{children:e(o,{src:g.dataPic,alt:"",className:"goodsImg"})})),s(l,Object.assign({className:"rPart"},{children:[e(l,Object.assign({className:"name"},{children:g.goodsName})),e(l,Object.assign({className:"price"},{children:Ze(g.pricesetNprice)})),s(l,Object.assign({className:"chosen"},{children:["已选择: ",d.toString()]}))]}))]})),r.map(((s,a)=>e(dt,{spec:d,handleChooseSize:n,index:a,skuName:s.skuName,skuOption:s.skuOption},a)))]})},ht=({cashImpl:t,addShoppingImpl:n,addCardImpl:c})=>{const{Text:o,View:l}=i(),r=Z((e=>e.isNeedButton));return e(a,{children:r?e(l,Object.assign({className:"btnWrap",onClick:n},{children:e(o,Object.assign({className:"btn"},{children:"确认"}))})):s(l,Object.assign({className:"goods-detail-btn-group popup-buy-button"},{children:[e(l,Object.assign({className:"btn addCart",onClick:c},{children:"加入购物车"})),e(l,Object.assign({className:"btn buy",onClick:t},{children:"立即购买"}))]}))})},pt=({popupVisible:a,dispatchPageStore:t,goodsCode:n,skuInfo:c,rsSkuDomainList:o})=>{const{View:l,Popup:r}=i(),{closePopup:d,handleChooseSize:g,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:b}=ee(n,c,t);return e(r,Object.assign({popupVisible:a,popupHandler:d},{children:s(l,Object.assign({className:"goodsDetail-size-popup"},{children:[s(l,Object.assign({className:"content"},{children:[e(mt,{skuInfo:c,handleChooseSize:g,rsSkuDomainList:o}),e(gt,{handleStep:m})]})),e(ht,{cashImpl:p,addShoppingImpl:b,addCardImpl:h})]}))}))},bt=({skuCode:t,serverShow:n,cartShow:c,lPartColor:o,lPartBgColor:l,lPartStyle:r,rPartColor:d,rPartBgColor:g,rPartStyle:m,popupVisible:h=!1,dispatchPageStore:p=Se})=>{const{Text:b,View:u,IconMobile:N}=i(),{rsSpecValueDomainList:O,goodsCode:j,rsSkuDomainList:C}=E(t),f=se(O),{servicePopup:y}=qe(),{addCardPopup:k,buyOpenPopup:x}=q(p);return s(a,{children:[s(u,Object.assign({className:"goodsDetailHandleBar"},{children:[s(u,Object.assign({className:"linkGroup server",onClick:y,style:{display:n?"block":"none"}},{children:[e(N,{value:"kefu",style:{fontSize:22,display:"block"}}),e(b,Object.assign({className:"txt"},{children:"客服"}))]})),s(u,Object.assign({className:"linkGroup cart",onClick:()=>he("shopping"),style:{display:c?"block":"none"}},{children:[e(N,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(b,Object.assign({className:"txt"},{children:"购物车"}))]})),s(u,Object.assign({className:"goods-detail-btn-group"},{children:[e(u,Object.assign({className:"btn addCart",onClick:k,style:{color:o,backgroundColor:l,borderTopLeftRadius:r,borderBottomLeftRadius:r}},{children:"加入购物车"})),e(u,Object.assign({onClick:x,className:"btn buy",style:{color:d,backgroundColor:g,borderTopRightRadius:m,borderBottomRightRadius:m}},{children:"立即购买"}))]}))]})),e(pt,{dispatchPageStore:p,popupVisible:h,goodsCode:j,rsSkuDomainList:C,skuInfo:f})]})},ut=({skuCode:t,serverShow:n,cartShow:c,lBtnBorderColor:o,lBtnFontColor:l,lBtnColor:r,lBtnStyle:d,rBtnBorderColor:g,rBtnFontColor:m,rBtnColor:h,rBtnStyle:p,popupVisible:b=!1,dispatchPageStore:u=Se})=>{const{Text:N,View:O,IconMobile:j}=i(),{rsSpecValueDomainList:C,goodsCode:f,rsSkuDomainList:y}=E(t),k=se(C),{servicePopup:x}=qe(),{addCardPopup:w,buyOpenPopup:v}=q(u);return s(a,{children:[s(O,Object.assign({className:"goodsDetailHandleBarOne"},{children:[s(O,Object.assign({className:"linkGroup server",onClick:x,style:{display:n?"block":"none"}},{children:[e(j,{value:"kefu",style:{fontSize:22,display:"block"}}),e(N,Object.assign({className:"txt"},{children:"客服"}))]})),s(O,Object.assign({className:"linkGroup cart",onClick:()=>he("shopping"),style:{display:c?"block":"none"}},{children:[e(j,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(N,Object.assign({className:"txt"},{children:"购物车"}))]})),s(O,Object.assign({className:"goods-detail-one-btn-group"},{children:[e(O,Object.assign({className:"btn addCart",onClick:w,style:{border:`1px solid ${o}`,color:l,backgroundColor:r,borderRadius:1===d?"20px":"0"}},{children:"加入购物车"})),e(O,Object.assign({onClick:v,className:"btn buy",style:{border:`1px solid ${g}`,color:m,backgroundColor:h,borderRadius:1===p?"20px":"0"}},{children:"立即购买"}))]}))]})),e(pt,{dispatchPageStore:u,popupVisible:b,goodsCode:f,rsSkuDomainList:y,skuInfo:k})]})},Nt=ie((({defaultValue:a,coupons:t,bg:n,borderColor:c,btnColor:o,typeColor:l,titleColor:r,ruleColor:d,timeColor:g,paddingTop:m,paddingBottom:h})=>{const{View:p}=i(),{list:b,takeCoupon:u,takeList:N}=ae({defaultValue:a,coupons:t});return e(p,Object.assign({style:{paddingTop:`${m}px`,paddingBottom:`${h}px`}},{children:b.map(((a,t)=>{const i=xe(a,"pbName"),m=xe(a,"pmPromotionDiscountList"),h=xe(m.at(-1),"discName"),b=xe(a,"promotionName"),O=De(xe(a,"promotionBegintime")).format("YYYY-MM-DD"),j=De(xe(a,"promotionEndtime")).format("YYYY-MM-DD"),C=xe(a,"promotionCode");return s(p,Object.assign({className:"OneLineOneBlc",style:{backgroundColor:n,borderColor:c}},{children:[s(p,Object.assign({className:"lPart"},{children:[s(p,Object.assign({className:"intro"},{children:[e(p,Object.assign({className:"type",style:{color:l}},{children:i})),e(p,Object.assign({className:"rule",style:{color:d}},{children:h}))]})),s(p,Object.assign({className:"info"},{children:[e(p,Object.assign({className:"title",style:{color:r}},{children:b})),s(p,Object.assign({className:"validity",style:{color:g}},{children:[O," - ",j]}))]}))]})),e(p,Object.assign({className:"rPart",style:{backgroundColor:o}},{children:-1===a.availabledate||N.includes(t)?e(p,Object.assign({className:"txt"},{children:"已 领 取"})):e(p,Object.assign({className:"txt",onClick:()=>u({promotionCode:C,couponAmount:1,index:t})},{children:"立 即 领 取"}))}))]}),t)}))}))})),Ot=ie((({defaultValue:a,coupons:t,bg:n,borderColor:c,btnColor:o,typeColor:l,ruleColor:r,titleColor:d,timeColor:g,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:b}=i(),{list:u,takeCoupon:N,takeList:O}=ae({defaultValue:a,coupons:t});return e(b,Object.assign({className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m}},{children:u.map(((a,t)=>{const i=xe(a,"pbName"),m=xe(a,"pmPromotionDiscountList"),h=xe(m.at(-1),"discName"),p=xe(a,"promotionName"),u=De(xe(a,"promotionBegintime")).format("YYYY-MM-DD"),j=De(xe(a,"promotionEndtime")).format("YYYY-MM-DD"),C=xe(a,"promotionCode");return s(b,Object.assign({className:"oneLineTwoBlcItem",style:{backgroundColor:n,borderColor:c}},{children:[s(b,Object.assign({className:"lPart"},{children:[e(b,Object.assign({className:"type",style:{color:l}},{children:i})),e(b,Object.assign({className:"rule",style:{color:r}},{children:h})),e(b,Object.assign({className:"info",style:{color:d}},{children:p})),s(b,Object.assign({className:"validity",style:{color:g}},{children:[u," - ",j]}))]})),e(b,Object.assign({className:"rPart",style:{backgroundColor:o}},{children:-1===a.availabledate||O.includes(t)?e(b,Object.assign({className:"txt"},{children:"已 领 取"})):e(b,Object.assign({className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:t})},{children:"立 即 领 取"}))}))]}),t)}))}))})),jt=ie((a=>{var{type:t=1,coupons:n=[]}=a,c=Ue(a,["type","coupons"]);const{View:o}=i();return s(o,Object.assign({className:"getCouponOne"},{children:[1===t?e(Nt,Object.assign({coupons:n},c)):null,2===t?e(Ot,Object.assign({coupons:n},c)):null]}))})),Ct=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],ft=ie((({activeColor:s,setParams:a,params:t})=>{const{View:n}=i();return e(n,Object.assign({className:"promotionListTab"},{children:Ct.map(((i,c)=>e(n,Object.assign({className:"promotionListTabItem",onClick:()=>a(i.val),style:{color:i.val===t?s:"#000"}},{children:i.label}),c)))}))})),yt=({data:a})=>{const{View:t}=i(),{pbName:n,promotionName:c,pmPromotionDiscountList:o,promotionBegintime:l,promotionEndtime:r}=a;return s(t,Object.assign({className:"promotionItem"},{children:[s(t,Object.assign({className:"lPart"},{children:[e(t,{className:"round"}),e(t,Object.assign({className:"tagBg"},{children:s(t,Object.assign({className:"txt"},{children:["官方",n]}))})),e(t,Object.assign({className:"rule"},{children:o.at(-1).discName})),e(t,Object.assign({className:"title"},{children:c})),s(t,Object.assign({className:"time"},{children:[De(l).format("YYYY-MM-DD")," ~ ",De(r).format("YYYY-MM-DD")]}))]})),e(t,Object.assign({className:"rPart"},{children:e(t,{className:"sideBorder"})}))]}))},kt=ie((({activeColor:a,paddingTop:t,paddingBottom:n})=>{const[c,o]=ce(Ct[0].val),{list:l,getData:r}=te({params:c}),{View:d,ScrollView:g}=i();return s(d,Object.assign({style:{padding:`${t}px 0 ${n}px`}},{children:[e(ft,{activeColor:a,setParams:o,params:c}),e(d,{children:e(ts,Object.assign({id:"listWrap"},{children:e(g,Object.assign({onScroll:()=>r()},{children:l.map(((s,a)=>e(yt,{data:s},a)))}))}))})]}))})),xt=ie((()=>e(a,{children:"123"})));export{Us as AddressDetail,Ms as AddressList,xt as AllCouponList,kt as AllPromotionList,wa as ArticleDetail,za as BackTop,ea as Cart,ga as CartList,ma as CartOperate,sa as CartTop,Wa as ClassifyNav,Ea as ClassifyNavOne,Ga as ClassifyNavOneJsx,Ya as ClassifyNavThree,Ha as ClassifyNavTwo,ka as CollectionList,Xs as CouponList,Pe as Cube,Bs as EvaluateDetail,Ss as EvaluateList,Ls as ExpressInfo,fa as FootPrint,jt as GetCouponOne,Ua as Goods,rs as GoodsClassify,bs as GoodsClassifyOne,js as GoodsClassifyTwo,rt as GoodsDetailAndEvaluate,Za as GoodsDetailBanner,it as GoodsDetailCoupon,bt as GoodsDetailHandleBar,ut as GoodsDetailHandleBarOne,$a as GoodsDetailInfo,_a as GoodsDetailInfoOne,at as GoodsDetailPromotion,st as GoodsDetailSku,ks as GoodsList,Qa as GoodsSlider,qa as GoodsSlideshow,Fa as Line,ha as MineData,ba as MineFunction,pa as MineOrderEntry,Le as Notice,xa as NoticeDetail,cs as OrderDetail,ns as OrderList,Na as PaymentMode,Aa as PlaceOrderAddress,Va as PlaceOrderCoupon,Da as PlaceOrderDelivery,La as PlaceOrderGood,Ta as PlaceOrderInfo,Pa as PlaceOrderOperate,Ks as PlaceOrderResult,Cs as QjMobileIcon,We as Search,ws as SearchPage,Ge as SearchStyleTwo,ze as Service,Ye as Slider,Ma as TextLine,Te as Title,Re as Video};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.4.7",
3
+ "version": "1.4.8",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [