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