s-material-react 1.3.35 → 1.3.36
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/css/pages/index.scss +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/css/pages/index.scss
CHANGED
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,userAddressData as O,useAddressList as j,useEditAddress as C,useOrderResultResult as f,useCouponList as y,useStore as x,useCartItem as w,StoreProvider as v,useCartList as k,useOrderResult as I,useFootprint as A,useCollectionList as S,useNoticeDetail as B,useArticleDetail as V,useOrderAddress as T,useOrderGood as D,useOrderCoupon as L,useOrderInfo as R,useOrderPay as P,useGoods as z,useGoodDetail as F,useBanner as M,useGoodCollection as W,useGoodFootprint as G,useGoodsShare as E,popupImplement as H,useGoodSkuStore as U,usePromotion as Q,useAddCoupon as K,useCoupon as q,useEvaluate as Z,useAddShopping as Y,useGoodSku as X}from"qj-mobile-store";import{memo as J,useMemo as $,useState as _,useEffect as ee,createElement as se,createContext as ae,useContext as te,useRef as ie,Fragment as ce}from"react";import{navigatorHandler as ne,getEnv as le,getStorage as oe,getTaro as re,useImmutableCallback as de,navigatorBackImpl as ge,setStorage as me,updatePagesRefreshStore as he,getPagesRefreshStore as pe}from"@brushes/utils";import be from"classnames";import{queryOcsconfigList as ue,getContractNumbers as Ne,find as Oe}from"qj-b2c-api";import{get as je,isEmpty as Ce,groupBy as fe,isEqual as ye}from"lodash-es";import xe from"china-division/dist/provinces.json";import we from"china-division/dist/cities.json";import ve from"china-division/dist/areas.json";import ke from"dayjs";const Ie=({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})},Ae=J((({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}))}))})),Se=J((({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 ne(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},i)))}))}))})),Be=J((({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}})}))})),Ve=J((({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"})})),Te="data:image/png;base64,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",De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Le=J((({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=$((()=>be("txt",...h)),[h]);return e(p,Object.assign({onClick:()=>ne("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:Te,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}))]}))}))})),Re=J((({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();return e(p,Object.assign({onClick:()=>ne("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:Te,alt:"",style:{height:"16px",width:"16px",display:t?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(p,Object.assign({className:[`txt ${h.includes("weight")?"weight":""} ${h.includes("italic")?"italic":""} ${h.includes("decoration")?"decoration":""} `],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:"搜索"}))]}))}))})),Pe=J((({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:ne.bind(null,null===(c=s.link)||void 0===c?void 0:c.value,null===(n=s.link)||void 0===n?void 0:n.params)})})),ze=J((({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 w=$((()=>be({paddingbtm:"none"!==t,imgHeights:"bottom"===t&&"horizontal"===m}))),{SmoothSwiper:v,View:k}=i(),I=o(l,O||[]),A=s=>e(k,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(k,Object.assign({className:c,style:{paddingTop:p,paddingBottom:b,paddingLeft:u,paddingRight:N}},{children:e(v,{imgHeight:j,data:I,className:w,type:r,autoplay:d,autoplayInterval:g,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:i=>s(a,{children:["top"===t||"bottom"===t?A(i):null,e(Pe,{item:i,position:t,direction:m})]})})}))})),Fe=J((({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:w}=i(),v=$((()=>be("title",{tops1:"top"===x&&"horizontal"===d,bottoms:"bottom"===x&&"horizontal"===d,bottoms1:"vertical"===d&&"bottom"===x,tops:"vertical"===d&&"top"===x},...f)),[f,x]);return e(w,Object.assign({style:{padding:`${b}px ${u}px`}},{children:e(ze,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:be({"outer-shadow":y}),className1:v}))}))}));function Me(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 We(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 Ge=le(),Ee=()=>{const[e,s]=_([]);ee((()=>{We(void 0,void 0,void 0,(function*(){const e=oe("service");if(e)s(a(e));else{const e=yield ue();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(!Ge)return;re().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},He=(e=0)=>e?"¥ "+ +e.toFixed(2):0,Ue=({dataPic:a,goodsName:t,goodsCamount:c,pricesetNprice:n,skuName:l,skuCode:o})=>{const{View:r,Image:d,SmoothView:g}=i(),m=He(n),h=$((()=>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:Qe}=c,Ke=s=>{var{dataState:t}=s,i=Me(s,["dataState"]);return e(a,{children:["2","-1"].includes(t+"")?null:e(qe,Object.assign({dataState:t},i))})},qe=s=>{var{dataState:a,contractAppraise:t,color:c,borderColor:n,btnColor:l,btnShape:o}=s,d=Me(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(Qe,Object.assign({style:{color:c,borderColor:n,backgroundColor:l},className:be({btn:!0,white:0===a,black:1===a}),onClick:()=>h(s.handler),shape:o},{children:s.name}),a)))}))},{Button:Ze}=c;function Ye({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:()=>ne("orderDetail",{contractBillcode:a})},{children:[s(p,Object.assign({className:"topInfo"},{children:[s(p,Object.assign({className:"orderNo"},{children:["订单号: ",a,s(Ze,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:["复制 ",typeof a]}))]})),e(p,Object.assign({className:"status"},{children:b}))]})),s(p,Object.assign({className:"goodsItemWrap"},{children:[n.map((s=>e(Ue,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(Ke,{init:r,contractId:o,contractBillcode:a,dataState:l,contractAppraise:g})]}))}const Xe=le(),Je=s=>{var{bottomHeight:a,children:t,id:c,heightWrap:n}=s,l=Me(s,["bottomHeight","children","id","heightWrap"]);const o=function(e){const[s,a]=_(0);return ee((()=>{if(!le()||!e)return;const s=re().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;a(s)}})).exec()}))})),s}(c),r=function(e=""){return $((()=>{if(!le())return 0;const s=re(),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=$((()=>{if(!Xe)return c?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(c){return{height:`calc(${re().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 $e=J((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(Je,Object.assign({id:"orderListItemWrap"},{children:e(o,Object.assign({onScroll:d},{children:s(l,{children:[m.map(((e,s)=>se(Ye,Object.assign({init:p},e,{key:s,borderRadius:c,orderSpacing:n})))),e(l,{children:h?e(r,{}):null})]})}))}))}))})),_e=J((({refreshNum:s=0,indexId:a=0,borderRadius:t=!1,orderSpacing:c=12})=>{console.log(19,a);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($e,{item:a,orderSpacing:c,refreshNum:s,borderRadius:t})}))})}))})),es=J((({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(Ue,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(Ke,{borderColor:r,btnColor:g,btnShape:m,color:n,contractBillcode:u.contractBillcode,contractId:u.contractId,dataState:u.dataState})}))]}))}))]}))})),ss=J((({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:()=>ne("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:as}=c,ts=J((({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(Je,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(as,Object.assign({activeKey:d,onChange:g,style:{"--width":"90px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(as.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(ss,{navList:m,activeKey:d,cell:a})}))]}))})}))})})),is=ae(null),cs=J((()=>{const{navList:a,activeKey:t,setActiveKey:c,setFCoe:l,setSCoe:o,selectFontColor:r}=te(is),{View:d,ScrollView:g}=i(),[m,h]=_(!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(Je,{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]}))})),ns=J((({thirdList:a})=>{const{View:t,Image:c}=i(),{picShadow:n,layout:l}=te(is);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:()=>ne("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)))}))})),ls=le(),os=J((()=>{const{navList:a,fCoe:t,sCoe:c,setSCoe:n,selectFontColor:l,selectBlcColor:o,selectBlcShow:r,selectBlcStyle:d}=te(is),{secondList:g,thirdList:m}=(({navList:e,fCoe:s,sCoe:a})=>{const t=$((()=>{var a;return(null===(a=e[s])||void 0===a?void 0:a.childList)||[]}),[s,e]),i=$((()=>{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:h,ScrollView:p,SideBar:b}=i();return e(h,{children:e(Je,Object.assign({id:"goodsClassifyOneContent"},{children:e(p,{children:s(h,Object.assign({className:"goodsClassifyOneContent",style:{height:ls?"100%":"667px"}},{children:[e(b,Object.assign({activeKey:c,onChange:n},{children:g.map(((s,a)=>e(b.Item,{title:s.goodsClassName,className:[r?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{color:l,"--adm-color-primary":o}},a)))})),e(ns,{thirdList:m})]}))})}))})})),rs=J((({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]=_("0"),[N,O]=_("0");return e(is.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(cs,{}),e(os,{})]}))}))})),ds=J((({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:()=>ne("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)))}))})),gs=J((({navList:a,activeKey:t,layout:c,picShadow:n})=>{var l;const[o,r]=_(0);ee((()=>{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:je(a[o],"goodsClassLogo"),mode:"widthFix"}),null===(l=je(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(ds,{childList:a.childList,layout:c,picShadow:n})]},t)))]}))})),{SideBar:ms}=c,hs=J((({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(Je,{children:s(r,Object.assign({className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"}},{children:[e(r,Object.assign({className:"side"},{children:e(ms,Object.assign({activeKey:d,onChange:g,style:{"--width":"88px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(ms.Item,{title:s.goodsClassName,className:[t?"":"goodsClassifyTwoFloorNoBlc",1===n?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{color:a,"--adm-color-primary":c}},s.goodsClassCode)))}))})),e(r,Object.assign({className:"main"},{children:e(gs,{navList:m,activeKey:d,layout:l,picShadow:o})}))]}))})}))})),ps=({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:be(a,n?`${a}-${n}`:"",s),style:c})},bs=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],us=({setParams:a,activeColor:t})=>{const{View:c}=i(),[n,l]=_(0),[o,r]=_(bs);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(ps,{style:{color:n===g?t:"#444",fontSize:20},value:"desc"===i?"jiangxu":"shengxu"})]}),g)))}))},Ns=J((({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]=_({}),{loading:x,getData:w,list:v}=b(a,t,f),k=$((()=>be("goodDetail",{anticon:!l})),[l]);return s(u,Object.assign({className:"goodsList"},{children:[e(u,Object.assign({className:"top-info"},{children:e(us,{setParams:y,activeColor:c})})),e(u,Object.assign({className:"listWrap",style:{padding:` 0px ${p}px`}},{children:e(Je,Object.assign({id:"listWrap"},{children:s(C,Object.assign({onScroll:()=>w(f)},{children:[e(u,Object.assign({className:"list",style:{gap:h}},{children:v.map((a=>s(u,Object.assign({onClick:()=>ne("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:k},{children:[e(O,Object.assign({className:"price",style:{display:l?"block":"none"}},{children:He(a.pricesetNprice)})),e(u,Object.assign({style:{display:d?"block":"none"}},{children:e(ps,{style:{fontSize:25,color:"#f00"},value:"cart"})}))]}))]}),a.skuCode)))})),x?e(N,{}):null]}))}))}))]}))})),Os=le(),js=J((({placeholder:a,placeholderText:t,history:c,historyText:n,paddingBottom:l,paddingTop:o})=>{const{View:r,Text:d,Input:g}=i(),[m,h]=_((()=>oe("history")||[]));console.log(23,oe("history"));const p=de((e=>We(void 0,void 0,void 0,(function*(){Os&&(h((s=>{if(Ce(e.detail.value))return s;const a=s.concat(e.detail.value);return me("history",a),a})),b(e.detail.value))})))),b=de((e=>{ne("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:o,paddingBottom:l}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Te,alt:""}),e(g,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:p},a?{placeholder:t}:{})),e(d,Object.assign({className:"btn",onClick:()=>ge()},{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(ps,{onClick:()=>We(void 0,void 0,void 0,(function*(){(yield re()).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]}))})),Cs=({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)))}))]}))},fs=[{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"}]}],ys=J((()=>{const[t,c]=_("1"),{View:n}=i(),l=ie([{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:fs.map(((s,a)=>e(Cs,{itemData:s},a)))}))]})})),xs=({onChange:s,readOnly:a=!1,size:t=22,count:c})=>{const{View:n}=i(),[l,o]=_([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);ee((()=>{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(ps,{onClick:r.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:t}},a)))})},ws=J((({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=ie("宝贝满足你吗?分享一下它吧");return s(O,Object.assign({className:"evaluateDetail",style:{paddingTop:d,paddingBottom:g}},{children:[m.map(((a,i)=>s(ce,{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(xs,{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:"提交"}))]}))})),vs=({code:a,defaultValue:t})=>{const{info:c,detail:n,stateObj:l}=N(a),{View:o}=i(),r=je(c,"packageList[0].contractGoodsList[0].dataPic",t.dataPic),d=je(c,"packageList.length",t.count),g=je(c,"packageList[0].expressName",t.expressName),m=je(c,"packageList[0].packageBillno",t.packageBillno),h=je(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]}))]}))]}))},ks=({code:a,defaultValue:t})=>{const{detail:c}=N(a),{View:n}=i(),l=je(c,"message",t.message),o=je(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}))}))},Is=J((({code:a,defaultValue:t})=>{const{View:c}=i();return s(c,Object.assign({className:"expressInfo"},{children:[e(vs,{code:a,defaultValue:t}),e(ks,{code:a,defaultValue:t})]}))})),As=({txt:s,onChange:a,checked:t})=>{const{View:n}=i(),{Checkbox:l}=c;return e(n,{children:e(l,Object.assign({onChange:a,checked:t,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},Ss=le(),Bs=({itemData:a,delAddress:t,setDefault:c,fontSize:n="12px",iconSize:l="12px"})=>{const{View:o,Text:r}=i(),d=process.env.TARO_ENV;return s(o,Object.assign({className:"addressItem"},{children:[s(o,Object.assign({className:"upInfo",onClick:()=>{he({orderDetermine:{num:1}}),console.log(17,pe()),O.addressId=a.addressId,ge(1)}},{children:[s(o,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(o,Object.assign({className:"addressInfo"},{children:s(r,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(o,Object.assign({className:"downInfo"},{children:[Ss?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===d?e(As,{txt:"设为默认地址",onChange:c,checked:"1"===(null==a?void 0:a.addressDefault)}):s("checkbox-group",Object.assign({onChange:c,class:"checkBoxWrap"},{children:[e("checkbox",{value:"cb",checked:"1"===(null==a?void 0:a.addressDefault)}),"设为默认地址"]}))})):s("div",Object.assign({className:"checkBoxPc"},{children:[e("input",{type:"checkbox",checked:"1"===a.addressDefault}),e("label",{children:"设为默认地址"})]})),e(r,Object.assign({className:"del",onClick:t},{children:"删除"}))]}))]}))},Vs=J((()=>{const{View:s,Skeleton:t}=i(),c=ie(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)))}))}))})})),Ts=J((({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:()=>ne(l)},{children:["去看看",e(n,{value:"xiangyou1"})]})):null]}))}))})),Ds=J((({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"},{children:[p?e(Vs,{}):e(d,Object.assign({className:"addressList",style:{paddingTop:o+"px",paddingBottom:l+"px"}},{children:g.length?g.map(((s,a)=>e(Bs,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(Ts,{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:()=>ne("addressEditor")},{children:"+ 新增地址"}))}))]}))})),Ls=[{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"}],Rs=J((()=>{const{View:s,Skeleton:t}=i(),c=ie(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)))}))}))})}));ve.forEach((e=>{const s=we.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),we.forEach((e=>{const s=xe.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 Ps=xe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),zs=({form:a,handleArea:t})=>{const{View:n}=i(),{CascadePicker:l}=c,o=a.getFieldValue("area"),[r,d]=_(!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<Ps.length;t++)if(Ps[t].value===e[0]){s.provinceName=Ps[t].label,a.pIndex=t;break}for(let t=0;t<Ps[a.pIndex].children.length;t++)if(Ps[a.pIndex].children[t].value===e[1]){s.cityName=Ps[a.pIndex].children[t].label,a.cIndex=t;break}for(let t=0;t<Ps[a.pIndex].children[a.cIndex].children.length;t++)if(Ps[a.pIndex].children[a.cIndex].children[t].value===e[2]){s.areaName=Ps[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:Ps,visible:r,onClose:()=>d(!1)})]})},Fs=({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"}})})},Ms=le(),Ws=J((({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:w}=C(s,h,Ms);return e(g,Object.assign({className:"addressDetail",style:{height:Ms?"100%":"667px",paddingBottom:d+"px",paddingTop:r+"px"}},{children:N?e(Rs,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:w,footer:e(p,Object.assign({style:{color:o,backgroundColor:n,borderColor:l},shape:t,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:Ls.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(Fs,{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:Ms?"h5"===u?e(zs,{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)))}))}))})),Gs=le(),Es=J((({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||(oe("contractBillcode")||{}).contractBillcode),{sysRecode:C,dataObj:y}=j;return e(N,Object.assign({className:"placeOrderResult",style:{height:Gs?"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:()=>ne("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:()=>ne(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:()=>ne("paymentMode",{contractBillcode:j.contractBillcode}),className:"btn white"},{children:"去支付"}))}))]}))}))}));J((()=>{const{View:s,Skeleton:t}=i(),c=ie(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 Hs=()=>{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"})}))},Us=({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(Hs,{})})},Qs=J((({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(Je,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(Us,{backgroundColor:a,color:t,queue:l,list:b,coe:g,config:h})}))}))}))]}))}));function Ks({list:a}){const{View:t,Text:c,Image:n,Checkbox:l,NumStep:o,SmoothCheckbox:r,WrapLoading:d}=i(),{loading:g}=x(),{select:m,onChange:h,handleStep:p}=w();return e(d,Object.assign({loading:g},{children:e(r,Object.assign({onChange:h},{children:a.map(((a,i)=>s(t,Object.assign({className:"cartItem"},{children:[e(t,Object.assign({className:"checkBoxWrap"},{children:e(l,{checked:m.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(n,{className:"img",src:a.dataPic,onClick:()=>ne("goodDetail",{skuCode:a.skuCode})}),s(t,Object.assign({className:"cartItem-info"},{children:[e(c,Object.assign({className:"cartItem-goodsName"},{children:a.goodsName})),s(t,Object.assign({className:"cartItem-size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(t,Object.assign({className:"cartItem-handleWrap"},{children:[s(c,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(o,{count:a.goodsCamount,handleStep:p.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),i)))}))}))}const qs=le(),Zs=({refreshNum:t})=>{const{View:c,SmoothView:n,Checkbox:l,SmoothCheckbox:o,ScrollView:r}=i(),[d,g]=_(!0),{cartList:m,amount:h,selectAll:p,allCart:b,toOrderImpl:u,select:N,deleteCart:O,disMoney:j}=k(t);return e(c,Object.assign({className:"cart",style:{height:qs?"100%":"667px"}},{children:m.length?s(a,{children:[e(c,Object.assign({className:"edit"},{children:e(c,Object.assign({className:"btn",onClick:()=>g(!d)},{children:d?"编辑":"完成"}))})),e(Je,Object.assign({id:"editId",bottomHeight:"50"},{children:e(r,{children:e(Ks,{list:m})})})),s(c,Object.assign({className:"dashboard"},{children:[e(c,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:p},{children:e(l,Object.assign({checked:b.current.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),d?s(c,Object.assign({className:"check"},{children:[s(c,Object.assign({className:"priceGroup"},{children:[s(c,Object.assign({className:"discount"},{children:["优惠: ",e(n,Object.assign({className:"data"},{children:He(j)}))]})),s(c,Object.assign({className:"all"},{children:["合计: ",e(n,Object.assign({className:"data"},{children:He(h.amount)}))]}))]})),s(c,Object.assign({onClick:u,className:"btn"},{children:["结算(",h.num,")"]}))]})):e(c,Object.assign({className:"del"},{children:e(c,Object.assign({onClick:O,className:"btn"},{children:"删除"}))}))]}))]}):e(Ts,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))},Ys=J((({refreshNum:s})=>e(v,{children:e(Zs,{refreshNum:s})}))),Xs=J((({avatarStyle:a,paddingTop:t,paddingBottom:c,userAvatar:n,userNickname:l})=>{const{View:o,Text:r,IconMobile:d,Image:g}=i(),{servicePopup:m}=Ee();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:()=>ne("/account/setting/index")}),e(d,{value:"kehufuwukefu",onClick:m})]})),s(o,Object.assign({className:"userSetting",onClick:()=>ne("/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"}})]}))]}))})),Js=J((({title:a,columnList:t})=>{const{View:c,Text:n,Badge:l,Image:o}=i(),[r,d]=_({});return ee((()=>{We(void 0,void 0,void 0,(function*(){try{const e=yield Ne();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:()=>ne("orderlist")},{children:"查看全部"}))]})),e(c,Object.assign({className:"content"},{children:t.map(((a,t)=>s(c,Object.assign({onClick:()=>ne("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)))}))]}))})),$s=J((({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:()=>ne(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)))}))})),_s=le(),ea=J((({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}=I({contractBillcode:a,contractBbillcode:t});return s(g,Object.assign({className:"paymentModeWrap",style:{height:_s?"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:"立即支付"}))}))}))]}))})),sa=({footprintItem:a,edit:t})=>{const{View:c,Image:n,Checkbox:l,SmoothView:o}=i(),r=$((()=>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:()=>ne("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}))]}))]}))]}))},aa=({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(sa,{footprintItem:s,edit:c},a)))]}))},ta=({footprintList:s,edit:t})=>{const i=$((()=>{const e=s.map((e=>(e.gmtCreate=e.gmtCreate?ke(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),a=fe(e,"gmtCreate");return Object.keys(a).map((e=>({title:e||"",option:a[e]})))}),[s]);return e(a,{children:i.map(((s,a)=>e(aa,{item:s,edit:t},a)))})},ia=J((()=>{const{View:a,ScrollView:t,SmoothCheckbox:c,Button:n,Image:l}=i(),{footprintList:o,edit:r,setEdit:d,getSelectItem:g,delItem:m,getData:h}=A();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(Je,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(ta,{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:()=>ne("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," 元"]}))]}))]}))]}))},na=J((()=>{const{collectionList:a,edit:t,setEdit:c,getData:n,getSelectItem:l,delItem:o,init:r,checked:d,handleSelectAll:g,selectAllChecked:m}=S(),{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(Je,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]}))}))]}))}))})),la=J((({noticeId:a})=>{const{View:t,Image:c}=i(),{info:n}=B(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}))]}))})),oa=J((({doclistId:a=2031})=>{const{info:t}=V(a),{View:c,ScrollView:n}=i(),{doclistContent:l,doclistTitle:o,doclistTitle4:r}=t;return e(c,Object.assign({className:"articleDetail"},{children:e(Je,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||""}})]})}))}))})),ra=({address:s})=>e(a,{children:Ce(s)?e(ga,{}):e(da,{address:s})}),da=({address:a})=>{const{View:t,SmoothView:c,IconMobile:n}=i(),l=$((()=>{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 console.log(46,l.addressDefault),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"}})]}))},ga=()=>{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"})]})},ma=({refreshNum:s})=>{const{View:a}=i(),t=T(s);return e(a,Object.assign({className:"placeOrder-chooseAddress",onClick:()=>ne("addressList")},{children:e(ra,{address:t})}))},ha=J((({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:[ke(a).format("YYYY-MM-DD")," - ",ke(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})}))]}))}))})),pa=({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l})=>{const{View:o,Text:r,Popup:d,SmoothRadio:g,ScrollView:m}=i(),{amount:h,shoppingGoodsList:p}=D({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l}),{coupon:b,visible:u,setVisible:N,selectCoupon:O,onChange:j}=L(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:De,alt:"",className:"icon"})]}))]})),e(d,Object.assign({popupVisible:u,popupHandler:N},{children:e(o,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Je,Object.assign({bottomHeight:"300"},{children:e(m,{children:e(g,Object.assign({onChange:j},{children:b.map(((e,s)=>se(ha,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:"快递"}))]}))}))},ua=({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:c})=>{const{View:n}=i(),{list:l}=D({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:c});return e(n,Object.assign({className:"place-order-goods"},{children:l.map(((s,a)=>e(Ue,Object.assign({},s),a)))}))},Na=({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l})=>{const{SmoothView:o,View:r}=i(),{payState:d,amount:g,disCount:m}=D({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l}),{shoppingCountPrice:h,freight:p,comDisMoney:b}=R(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:He(h)}))]})),s(r,Object.assign({className:"coupon placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"优惠金额"})),e(o,Object.assign({className:"value"},{children:He(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:He(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:He(g-m)}))]}))]}))})},Oa=({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}=D({refreshNum:l,goodsNum:o,skuId:r,shoppingGoodsId:d}),{savePayPrice:C,loading:f}=P({ocContractSettlList:j,payState:N,list:b},r,o,O);return console.log(36,u),s(g,Object.assign({className:"placeOrderFooter"},{children:[s(m,Object.assign({className:"price"},{children:["合计: ",He(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:"生成订单"}))}))]}))},ja=({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}))]}))},Ca=J((({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"}})}))})),fa=J((({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 ne(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)))}))}))})),ya=({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 ne(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)))}))},xa=J(ya),wa=J((({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);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 ne(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:["classifyNav-two-item-title",...m].join(" "),style:{fontSize:r,color:d}},{children:s.title}))}),a)))}))})),va=J((({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 ne(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)))}))})),ka=J((({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]=_(a),w=ie(),{View:v,Text:k}=i();return ee((()=>{console.log(53,Oe,w.current,d),ye(w.current,d)||(w.current=d,Ce(d)?x(a):We(void 0,void 0,void 0,(function*(){try{const e=yield Oe({goodsCode:d.toString(),distinctField:"goodsNo"});console.log(63,e),x(e.list)}catch(e){x(a)}})))}),[d]),e(v,Object.assign({style:{paddingTop:m,paddingBottom:h}},{children:e(v,Object.assign({className:be({[`goods-${t}`]:!0}),style:{display:"grid",gap:f,marginBottom:c,gridTemplateColumns:`repeat(${l}, 1fr)`,paddingLeft:p,paddingRight:b}},{children:y.map(((a,t)=>s(v,Object.assign({style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:j?"1px solid #000000":""},onClick:()=>ne("goodDetail",{skuCode:a.skuCode}),className:["goods "+(C?"outer-shadow":"")].join(" ")},{children:[e(v,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(v,Object.assign({className:"space"},{children:[e(v,Object.assign({className:"titleType",style:{display:u?"block":"none"}},{children:a.goodsName})),e(v,Object.assign({className:"subTitle"},{children:a.brandName})),o&&s(v,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(v,Object.assign({className:"price"},{children:[s(v,{children:[e(k,Object.assign({className:"subPrice",style:{display:N?"inline":"none"}},{children:"¥"})),N?a.pricesetNprice:"",1===g&&s(k,Object.assign({className:"markedPrice"},{children:[e(k,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]}),e(v,Object.assign({className:"anticon",style:{display:O?"block":"none"}},{children:e(ps,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}))]}),t)))}))}))})),Ia=J((({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}=z({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:()=>ne("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(ps,{style:{fontSize:26,color:"#f00"},value:"cart"})})):null]}))]}))]}),t)))}))})),Aa=le(),Sa=J((({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}=z({defaultValue:a,goods:t}),{SmoothSwiper:O,View:j,Image:C}=i(),[f,y]=_(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&&Aa?"active":"")].join(" "),style:{borderRadius:d,borderStyle:g?"solid":"none",boxShadow:m?"0px 0px 20px 10px #ddd":""}},{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}))]}))})]}))})),Ba=({skuCode:s,autoplay:a,vertical:t})=>{const{rsGoodsFileDomainList:i=[]}=F(s),c=M(i);return e(ze,{selectImg:c,type:1,autoplay:a,vertical:t,imgHeight:{height:375,width:375}})},Va=a=>{const{SmoothView:t,View:c}=i(),{handleCollect:n,collection:l}=W(a);return s(c,Object.assign({onClick:n},{children:[e("img",{src:Te,alt:"",className:"icon"}),e(t,Object.assign({className:"txt"},{children:Ce(l.dataObj)?"收藏":"已收藏"}))]}))},Ta=({skuCode:a,priceShow:t,collectionShow:c})=>{const{View:n,SmoothView:l}=i(),{goodsName:o,pricesetNprice:r,dataPic:d}=F(a);return G(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:He(r)}))]})),e(n,Object.assign({className:"rPart",style:{display:c?"flex":"none"}},{children:e(Va,{goodsName:o,pricesetNprice:r,dataPic:d,skuCode:a})}))]}))},Da=J((a=>{const{collectionShow:t,shareShow:c}=a,{View:n}=i(),{handleCollect:l,collection:o}=W(a),{handleShare:r}=E();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:Ce(o.dataObj)?"收藏":"已收藏"})):null,c?e(n,Object.assign({className:"share",onClick:r},{children:"分享"})):null]}))})),La=J((({skuCode:a,priceShow:t,collectionShow:c,shareShow:n})=>{const{View:l,SmoothView:o}=i(),{goodsName:r,pricesetNprice:d,dataPic:g}=F(a);return G(a),s(l,Object.assign({className:"goodsDetail-info-one"},{children:[e(o,Object.assign({className:"price",style:{display:t?"block":"none"}},{children:He(d)})),e(o,Object.assign({className:"title"},{children:r})),e(Da,{collectionShow:c,shareShow:n,goodsName:r,pricesetNprice:d,dataPic:g,skuCode:a})]}))})),Ra=()=>{const{Text:e}=i(),a=U((e=>e.count)),t=U((e=>e.spec));return s(e,Object.assign({className:"label"},{children:["已选择 数量: ",a," 规格: ",t.toString()]}))},Pa=()=>{const{View:t,Text:c}=i(),{openPopup:n}=H();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(Ra,{}),e("img",{src:De,alt:"",className:"icon"})]}))]}))})},za=({skuCode:a})=>{const{View:t,Text:c}=i(),n=Q(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:"暂无促销活动"}))}))]}))},Fa=J((({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}=K(),b=$((()=>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:[ke(a).format("YYYY-MM-DD")," - ",ke(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:"已领完"}))]}))}))})),Ma=({skuCode:t})=>{const{View:c,Text:n,Popup:l}=i(),{coupon:o,visible:r,setVisible:d}=q(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:De,alt:"",className:"icon"})]}))]})),e(l,Object.assign({popupVisible:r,popupHandler:d},{children:e(c,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Je,{children:o.map(((e,s)=>se(Fa,Object.assign({},e,{key:s}))))})}))}))]})},Wa=({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(xs,{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}))]}))},Ga=({evaluateArr:a})=>{const{View:t}=i(),c=ie(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(Wa,{item:s},a)))]}):e(Ts,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},Ea=({goodsRemark:s})=>{const{View:a}=i(),t=$((()=>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||""}})}))},Ha=({tabActive:t,setTabActive:c,evaluateShow:n,evaluateImgShow:l,evaluateImg:o})=>{const{Text:r}=i();console.log(15,n,l,o);const d=$((()=>l?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[n]);return e(a,{children:d.map(((a,i)=>e(ce,{children:s(r,Object.assign({className:"tabsItem "+(t===i?"active":""),onClick:()=>c(i)},{children:[a.title,e(r,{className:"line"})]}))},i)))})},Ua=({skuCode:a,evaluateShow:t,evaluateImgShow:c,evaluateImg:n})=>{const{View:l}=i(),[o,r]=_(0),{goodsRemark:d,goodsCode:g}=F(a),m=Z(g);return s(l,Object.assign({className:"goodsDetailTab"},{children:[e(l,Object.assign({className:"tabs"},{children:e(Ha,{tabActive:o,setTabActive:r,evaluateShow:t,evaluateImgShow:c,evaluateImg:n})})),e(l,Object.assign({className:"group"},{children:0===o?e(Ea,{goodsRemark:d}):e(Ga,{evaluateArr:m,evaluateImgShow:c,evaluateImg:n})}))]}))},Qa=({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)))}))]}))},Ka=J((({handleStep:a})=>{const{View:t,NumStep:c}=i(),n=U((e=>e.count));return s(t,Object.assign({className:"countWrap"},{children:[e(t,Object.assign({className:"label"},{children:"购买数量"})),e(c,{count:n,handleStep:a})]}))})),qa=({skuInfo:t,handleChooseSize:c})=>{const{goodsShowname:n={},pricesetNprice:l,dataPic:o,skuList:r}=t,{Image:d,View:g}=i(),m=U((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:He(l)})),s(g,Object.assign({className:"chosen"},{children:["已选择: ",m.toString()]}))]}))]})),r.map(((s,a)=>e(Qa,{spec:m,handleChooseSize:c,index:a,skuName:s.skuName,skuOption:s.skuOption},a)))]})},Za=({cashImpl:t,addShoppingImpl:c,addCardImpl:n})=>{const{Text:l,View:o}=i(),r=U((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:"立即购买"}))]}))})},Ya=({goodsCode:a,skuInfo:t})=>{const{View:c,Popup:n}=i(),{handleChooseSize:l,handleStep:o,addCardImpl:r,cashImpl:d,addShoppingImpl:g}=Y(a,t),m=U((e=>e.popupVisible)),{closePopup:h}=H();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(qa,{skuInfo:t,handleChooseSize:l}),e(Ka,{handleStep:o})]})),e(Za,{cashImpl:d,addShoppingImpl:g,addCardImpl:r})]}))}))},Xa=({skuCode:t,serverShow:c,cartShow:n,lPartColor:l,lPartBgColor:o,lPartStyle:r,rPartColor:d,rPartBgColor:g,rPartStyle:m,dispatchPageStore:h})=>{const{Text:p,View:b,IconMobile:u}=i(),{skuInfo:N,goodsCode:O}=X(t),{servicePopup:j}=Ee(),{addCardPopup:C,buyOpenPopup:f}=H();return s(a,{children:[s(b,Object.assign({className:"goodsDetailHandleBar",onClick:()=>{console.log(40,h)}},{children:[s(b,Object.assign({className:"linkGroup server",onClick:j,style:{display:c?"block":"none"}},{children:[e(u,{value:"kefu",style:{fontSize:22,display:"block"}}),e(p,Object.assign({className:"txt"},{children:"客服"}))]})),s(b,Object.assign({className:"linkGroup cart",onClick:()=>ne("shopping"),style:{display:n?"block":"none"}},{children:[e(u,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(p,Object.assign({className:"txt"},{children:"购物车"}))]})),s(b,Object.assign({className:"goods-detail-btn-group"},{children:[e(b,Object.assign({className:"btn addCart",onClick:C,style:{color:l,backgroundColor:o,borderTopLeftRadius:r,borderBottomLeftRadius:r}},{children:"加入购物车"})),e(b,Object.assign({onClick:f,className:"btn buy",style:{color:d,backgroundColor:g,borderTopRightRadius:m,borderBottomRightRadius:m}},{children:"立即购买"}))]}))]})),e(Ya,{goodsCode:O,skuInfo:N})]})},Ja=({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}=X(t),{servicePopup:C}=Ee(),{addCardPopup:f,buyOpenPopup:y}=H();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:()=>ne("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(Ya,{goodsCode:j,skuInfo:O})]})};export{Ws as AddressDetail,Ds as AddressList,oa as ArticleDetail,Ys as Cart,fa as ClassifyNav,xa as ClassifyNavOne,ya as ClassifyNavOneJsx,va as ClassifyNavThree,wa as ClassifyNavTwo,na as CollectionList,Qs as CouponList,Se as Cube,ws as EvaluateDetail,ys as EvaluateList,Is as ExpressInfo,ia as FootPrint,ka as Goods,ts as GoodsClassify,rs as GoodsClassifyOne,hs as GoodsClassifyTwo,Ua as GoodsDetailAndEvaluate,Ba as GoodsDetailBanner,Ma as GoodsDetailCoupon,Xa as GoodsDetailHandleBar,Ja as GoodsDetailHandleBarOne,Ta as GoodsDetailInfo,La as GoodsDetailInfoOne,za as GoodsDetailPromotion,Pa as GoodsDetailSku,Ns as GoodsList,Ia as GoodsSlider,Sa as GoodsSlideshow,Ca as Line,Xs as MineData,$s as MineFunction,Js as MineOrderEntry,Ie as Notice,la as NoticeDetail,es as OrderDetail,_e as OrderList,ea as PaymentMode,ma as PlaceOrderAddress,pa as PlaceOrderCoupon,ba as PlaceOrderDelivery,ua as PlaceOrderGood,Na as PlaceOrderInfo,Oa as PlaceOrderOperate,Es as PlaceOrderResult,ps as QjMobileIcon,Le as Search,js as SearchPage,Re as SearchStyleTwo,Ve as Service,Fe as Slider,ja as TextLine,Ae as Title,Be 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 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,userAddressData as O,useAddressList as j,useEditAddress as C,useOrderResultResult as f,useCouponList as y,useStore as x,useCartItem as w,StoreProvider as k,useCartList as v,useOrderResult as I,useFootprint as A,useCollectionList as S,useNoticeDetail as B,useArticleDetail as V,useOrderAddress as T,useOrderGood as D,useOrderCoupon as L,useOrderInfo as R,useOrderPay as P,useGoods as z,useGoodDetail as F,useBanner as M,useGoodCollection as W,useGoodFootprint as G,useGoodsShare as E,popupImplement as H,useGoodSkuStore as U,usePromotion as Q,useAddCoupon as K,useCoupon as q,useEvaluate as Z,useAddShopping as Y,useGoodSku as X}from"qj-mobile-store";import{memo as J,useMemo as $,useState as _,useEffect as ee,createElement as se,createContext as ae,useContext as te,useRef as ie,Fragment as ce}from"react";import{navigatorHandler as ne,getEnv as le,getStorage as oe,getTaro as re,useImmutableCallback as de,navigatorBackImpl as ge,setStorage as me,updatePagesRefreshStore as he,getPagesRefreshStore as pe}from"@brushes/utils";import be from"classnames";import{queryOcsconfigList as ue,getContractNumbers as Ne,find as Oe}from"qj-b2c-api";import{get as je,isEmpty as Ce,groupBy as fe,isEqual as ye}from"lodash-es";import xe from"china-division/dist/provinces.json";import we from"china-division/dist/cities.json";import ke from"china-division/dist/areas.json";import ve from"dayjs";const Ie=({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})},Ae=J((({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}))}))})),Se=J((({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 ne(null===(e=s.link)||void 0===e?void 0:e.value,null===(a=s.link)||void 0===a?void 0:a.params)}},i)))}))}))})),Be=J((({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}})}))})),Ve=J((({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"})})),Te="data:image/png;base64,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",De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Le=J((({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=$((()=>be("txt",...h)),[h]);return e(p,Object.assign({onClick:()=>ne("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:Te,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}))]}))}))})),Re=J((({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();return e(p,Object.assign({onClick:()=>ne("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:Te,alt:"",style:{height:"16px",width:"16px",display:t?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(p,Object.assign({className:[`txt ${h.includes("weight")?"weight":""} ${h.includes("italic")?"italic":""} ${h.includes("decoration")?"decoration":""} `],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:"搜索"}))]}))}))})),Pe=J((({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:ne.bind(null,null===(c=s.link)||void 0===c?void 0:c.value,null===(n=s.link)||void 0===n?void 0:n.params)})})),ze=J((({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 w=$((()=>be({paddingbtm:"none"!==t,imgHeights:"bottom"===t&&"horizontal"===m}))),{SmoothSwiper:k,View:v}=i(),I=o(l,O||[]),A=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(k,{imgHeight:j,data:I,className:w,type:r,autoplay:d,autoplayInterval:g,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:i=>s(a,{children:["top"===t||"bottom"===t?A(i):null,e(Pe,{item:i,position:t,direction:m})]})})}))})),Fe=J((({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:w}=i(),k=$((()=>be("title",{tops1:"top"===x&&"horizontal"===d,bottoms:"bottom"===x&&"horizontal"===d,bottoms1:"vertical"===d&&"bottom"===x,tops:"vertical"===d&&"top"===x},...f)),[f,x]);return e(w,Object.assign({style:{padding:`${b}px ${u}px`}},{children:e(ze,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:be({"outer-shadow":y}),className1:k}))}))}));function Me(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 We(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 Ge=le(),Ee=()=>{const[e,s]=_([]);ee((()=>{We(void 0,void 0,void 0,(function*(){const e=oe("service");if(e)s(a(e));else{const e=yield ue();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(!Ge)return;re().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},He=(e=0)=>e?"¥ "+ +e.toFixed(2):0,Ue=({dataPic:a,goodsName:t,goodsCamount:c,pricesetNprice:n,skuName:l,skuCode:o})=>{const{View:r,Image:d,SmoothView:g}=i(),m=He(n),h=$((()=>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:Qe}=c,Ke=s=>{var{dataState:t}=s,i=Me(s,["dataState"]);return e(a,{children:["2","-1"].includes(t+"")?null:e(qe,Object.assign({dataState:t},i))})},qe=s=>{var{dataState:a,contractAppraise:t,color:c,borderColor:n,btnColor:l,btnShape:o}=s,d=Me(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(Qe,Object.assign({style:{color:c,borderColor:n,backgroundColor:l},className:be({btn:!0,white:0===a,black:1===a}),onClick:()=>h(s.handler),shape:o},{children:s.name}),a)))}))},{Button:Ze}=c;function Ye({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:()=>ne("orderDetail",{contractBillcode:a})},{children:[s(p,Object.assign({className:"topInfo"},{children:[s(p,Object.assign({className:"orderNo"},{children:["订单号: ",a,s(Ze,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:["复制 ",typeof a]}))]})),e(p,Object.assign({className:"status"},{children:b}))]})),s(p,Object.assign({className:"goodsItemWrap"},{children:[n.map((s=>e(Ue,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(Ke,{init:r,contractId:o,contractBillcode:a,dataState:l,contractAppraise:g})]}))}const Xe=le(),Je=s=>{var{bottomHeight:a,children:t,id:c,heightWrap:n}=s,l=Me(s,["bottomHeight","children","id","heightWrap"]);const o=function(e){const[s,a]=_(0);return ee((()=>{if(!le()||!e)return;const s=re().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;a(s)}})).exec()}))})),s}(c),r=function(e=""){return $((()=>{if(!le())return 0;const s=re(),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=$((()=>{if(!Xe)return c?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(c){return{height:`calc(${re().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 $e=J((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(Je,Object.assign({id:"orderListItemWrap"},{children:e(o,Object.assign({onScroll:d},{children:s(l,{children:[m.map(((e,s)=>se(Ye,Object.assign({init:p},e,{key:s,borderRadius:c,orderSpacing:n})))),e(l,{children:h?e(r,{}):null})]})}))}))}))})),_e=J((({refreshNum:s=0,indexId:a=0,borderRadius:t=!1,orderSpacing:c=12})=>{console.log(19,a);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($e,{item:a,orderSpacing:c,refreshNum:s,borderRadius:t})}))})}))})),es=J((({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(Ue,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(Ke,{borderColor:r,btnColor:g,btnShape:m,color:n,contractBillcode:u.contractBillcode,contractId:u.contractId,dataState:u.dataState})}))]}))}))]}))})),ss=J((({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:()=>ne("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:as}=c,ts=J((({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(Je,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(as,Object.assign({activeKey:d,onChange:g,style:{"--width":"90px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(as.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(ss,{navList:m,activeKey:d,cell:a})}))]}))})}))})})),is=ae(null),cs=J((()=>{const{navList:a,activeKey:t,setActiveKey:c,setFCoe:l,setSCoe:o,selectFontColor:r}=te(is),{View:d,ScrollView:g}=i(),[m,h]=_(!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(Je,{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]}))})),ns=J((({thirdList:a})=>{const{View:t,Image:c}=i(),{picShadow:n,layout:l}=te(is);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:()=>ne("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)))}))})),ls=le(),os=J((()=>{const{navList:a,fCoe:t,sCoe:c,setSCoe:n,selectFontColor:l,selectBlcShow:o,selectBlcStyle:r}=te(is),{secondList:d,thirdList:g}=(({navList:e,fCoe:s,sCoe:a})=>{const t=$((()=>{var a;return(null===(a=e[s])||void 0===a?void 0:a.childList)||[]}),[s,e]),i=$((()=>{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(Je,Object.assign({id:"goodsClassifyOneContent"},{children:e(h,{children:s(m,Object.assign({className:"goodsClassifyOneContent",style:{height:ls?"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(ns,{thirdList:g})]}))})}))})})),rs=J((({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]=_("0"),[N,O]=_("0");return e(is.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(cs,{}),e(os,{})]}))}))})),ds=J((({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:()=>ne("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)))}))})),gs=J((({navList:a,activeKey:t,layout:c,picShadow:n})=>{var l;const[o,r]=_(0);ee((()=>{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:je(a[o],"goodsClassLogo"),mode:"widthFix"}),null===(l=je(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(ds,{childList:a.childList,layout:c,picShadow:n})]},t)))]}))})),{SideBar:ms}=c,hs=J((({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(Je,{children:s(r,Object.assign({className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"}},{children:[e(r,Object.assign({className:"side"},{children:e(ms,Object.assign({activeKey:d,onChange:g,style:{"--width":"88px","--background-color":"#f5f5f5"}},{children:m.map((s=>e(ms.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(gs,{navList:m,activeKey:d,layout:l,picShadow:o})}))]}))})}))})),ps=({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:be(a,n?`${a}-${n}`:"",s),style:c})},bs=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],us=({setParams:a,activeColor:t})=>{const{View:c}=i(),[n,l]=_(0),[o,r]=_(bs);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(ps,{style:{color:n===g?t:"#444",fontSize:20},value:"desc"===i?"jiangxu":"shengxu"})]}),g)))}))},Ns=J((({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]=_({}),{loading:x,getData:w,list:k}=b(a,t,f),v=$((()=>be("goodDetail",{anticon:!l})),[l]);return s(u,Object.assign({className:"goodsList"},{children:[e(u,Object.assign({className:"top-info"},{children:e(us,{setParams:y,activeColor:c})})),e(u,Object.assign({className:"listWrap",style:{padding:` 0px ${p}px`}},{children:e(Je,Object.assign({id:"listWrap"},{children:s(C,Object.assign({onScroll:()=>w(f)},{children:[e(u,Object.assign({className:"list",style:{gap:h}},{children:k.map((a=>s(u,Object.assign({onClick:()=>ne("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:v},{children:[e(O,Object.assign({className:"price",style:{display:l?"block":"none"}},{children:He(a.pricesetNprice)})),e(u,Object.assign({style:{display:d?"block":"none"}},{children:e(ps,{style:{fontSize:25,color:"#f00"},value:"cart"})}))]}))]}),a.skuCode)))})),x?e(N,{}):null]}))}))}))]}))})),Os=le(),js=J((({placeholder:a,placeholderText:t,history:c,historyText:n,paddingBottom:l,paddingTop:o})=>{const{View:r,Text:d,Input:g}=i(),[m,h]=_((()=>oe("history")||[]));console.log(23,oe("history"));const p=de((e=>We(void 0,void 0,void 0,(function*(){Os&&(h((s=>{if(Ce(e.detail.value))return s;const a=s.concat(e.detail.value);return me("history",a),a})),b(e.detail.value))})))),b=de((e=>{ne("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:o,paddingBottom:l}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Te,alt:""}),e(g,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:p},a?{placeholder:t}:{})),e(d,Object.assign({className:"btn",onClick:()=>ge()},{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(ps,{onClick:()=>We(void 0,void 0,void 0,(function*(){(yield re()).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]}))})),Cs=({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)))}))]}))},fs=[{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"}]}],ys=J((()=>{const[t,c]=_("1"),{View:n}=i(),l=ie([{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:fs.map(((s,a)=>e(Cs,{itemData:s},a)))}))]})})),xs=({onChange:s,readOnly:a=!1,size:t=22,count:c})=>{const{View:n}=i(),[l,o]=_([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);ee((()=>{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(ps,{onClick:r.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:t}},a)))})},ws=J((({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=ie("宝贝满足你吗?分享一下它吧");return s(O,Object.assign({className:"evaluateDetail",style:{paddingTop:d,paddingBottom:g}},{children:[m.map(((a,i)=>s(ce,{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(xs,{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:"提交"}))]}))})),ks=({code:a,defaultValue:t})=>{const{info:c,detail:n,stateObj:l}=N(a),{View:o}=i(),r=je(c,"packageList[0].contractGoodsList[0].dataPic",t.dataPic),d=je(c,"packageList.length",t.count),g=je(c,"packageList[0].expressName",t.expressName),m=je(c,"packageList[0].packageBillno",t.packageBillno),h=je(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]}))]}))]}))},vs=({code:a,defaultValue:t})=>{const{detail:c}=N(a),{View:n}=i(),l=je(c,"message",t.message),o=je(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}))}))},Is=J((({code:a,defaultValue:t})=>{const{View:c}=i();return s(c,Object.assign({className:"expressInfo"},{children:[e(ks,{code:a,defaultValue:t}),e(vs,{code:a,defaultValue:t})]}))})),As=({txt:s,onChange:a,checked:t})=>{const{View:n}=i(),{Checkbox:l}=c;return e(n,{children:e(l,Object.assign({onChange:a,checked:t,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},Ss=le(),Bs=({itemData:a,delAddress:t,setDefault:c,fontSize:n="12px",iconSize:l="12px"})=>{const{View:o,Text:r}=i(),d=process.env.TARO_ENV;return s(o,Object.assign({className:"addressItem"},{children:[s(o,Object.assign({className:"upInfo",onClick:()=>{he({orderDetermine:{num:1}}),console.log(17,pe()),O.addressId=a.addressId,ge(1)}},{children:[s(o,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(o,Object.assign({className:"addressInfo"},{children:s(r,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(o,Object.assign({className:"downInfo"},{children:[Ss?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===d?e(As,{txt:"设为默认地址",onChange:c,checked:"1"===(null==a?void 0:a.addressDefault)}):s("checkbox-group",Object.assign({onChange:c,class:"checkBoxWrap"},{children:[e("checkbox",{value:"cb",checked:"1"===(null==a?void 0:a.addressDefault)}),"设为默认地址"]}))})):s("div",Object.assign({className:"checkBoxPc"},{children:[e("input",{type:"checkbox",checked:"1"===a.addressDefault}),e("label",{children:"设为默认地址"})]})),e(r,Object.assign({className:"del",onClick:t},{children:"删除"}))]}))]}))},Vs=J((()=>{const{View:s,Skeleton:t}=i(),c=ie(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)))}))}))})})),Ts=J((({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:()=>ne(l)},{children:["去看看",e(n,{value:"xiangyou1"})]})):null]}))}))})),Ds=J((({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"},{children:[p?e(Vs,{}):e(d,Object.assign({className:"addressList",style:{paddingTop:o+"px",paddingBottom:l+"px"}},{children:g.length?g.map(((s,a)=>e(Bs,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(Ts,{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:()=>ne("addressEditor")},{children:"+ 新增地址"}))}))]}))})),Ls=[{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"}],Rs=J((()=>{const{View:s,Skeleton:t}=i(),c=ie(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)))}))}))})}));ke.forEach((e=>{const s=we.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),we.forEach((e=>{const s=xe.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 Ps=xe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),zs=({form:a,handleArea:t})=>{const{View:n}=i(),{CascadePicker:l}=c,o=a.getFieldValue("area"),[r,d]=_(!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<Ps.length;t++)if(Ps[t].value===e[0]){s.provinceName=Ps[t].label,a.pIndex=t;break}for(let t=0;t<Ps[a.pIndex].children.length;t++)if(Ps[a.pIndex].children[t].value===e[1]){s.cityName=Ps[a.pIndex].children[t].label,a.cIndex=t;break}for(let t=0;t<Ps[a.pIndex].children[a.cIndex].children.length;t++)if(Ps[a.pIndex].children[a.cIndex].children[t].value===e[2]){s.areaName=Ps[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:Ps,visible:r,onClose:()=>d(!1)})]})},Fs=({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"}})})},Ms=le(),Ws=J((({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:w}=C(s,h,Ms);return e(g,Object.assign({className:"addressDetail",style:{height:Ms?"100%":"667px",paddingBottom:d+"px",paddingTop:r+"px"}},{children:N?e(Rs,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:w,footer:e(p,Object.assign({style:{color:o,backgroundColor:n,borderColor:l},shape:t,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:Ls.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(Fs,{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:Ms?"h5"===u?e(zs,{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)))}))}))})),Gs=le(),Es=J((({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||(oe("contractBillcode")||{}).contractBillcode),{sysRecode:C,dataObj:y}=j;return e(N,Object.assign({className:"placeOrderResult",style:{height:Gs?"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:()=>ne("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:()=>ne(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:()=>ne("paymentMode",{contractBillcode:j.contractBillcode}),className:"btn white"},{children:"去支付"}))}))]}))}))}));J((()=>{const{View:s,Skeleton:t}=i(),c=ie(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 Hs=()=>{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"})}))},Us=({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(Hs,{})})},Qs=J((({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(Je,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(Us,{backgroundColor:a,color:t,queue:l,list:b,coe:g,config:h})}))}))}))]}))}));function Ks({list:a}){const{View:t,Text:c,Image:n,Checkbox:l,NumStep:o,SmoothCheckbox:r,WrapLoading:d}=i(),{loading:g}=x(),{select:m,onChange:h,handleStep:p}=w();return e(d,Object.assign({loading:g},{children:e(r,Object.assign({onChange:h},{children:a.map(((a,i)=>s(t,Object.assign({className:"cartItem"},{children:[e(t,Object.assign({className:"checkBoxWrap"},{children:e(l,{checked:m.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(n,{className:"img",src:a.dataPic,onClick:()=>ne("goodDetail",{skuCode:a.skuCode})}),s(t,Object.assign({className:"cartItem-info"},{children:[e(c,Object.assign({className:"cartItem-goodsName"},{children:a.goodsName})),s(t,Object.assign({className:"cartItem-size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(t,Object.assign({className:"cartItem-handleWrap"},{children:[s(c,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(o,{count:a.goodsCamount,handleStep:p.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),i)))}))}))}const qs=le(),Zs=({refreshNum:t})=>{const{View:c,SmoothView:n,Checkbox:l,SmoothCheckbox:o,ScrollView:r}=i(),[d,g]=_(!0),{cartList:m,amount:h,selectAll:p,allCart:b,toOrderImpl:u,select:N,deleteCart:O,disMoney:j}=v(t);return e(c,Object.assign({className:"cart",style:{height:qs?"100%":"667px"}},{children:m.length?s(a,{children:[e(c,Object.assign({className:"edit"},{children:e(c,Object.assign({className:"btn",onClick:()=>g(!d)},{children:d?"编辑":"完成"}))})),e(Je,Object.assign({id:"editId",bottomHeight:"50"},{children:e(r,{children:e(Ks,{list:m})})})),s(c,Object.assign({className:"dashboard"},{children:[e(c,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:p},{children:e(l,Object.assign({checked:b.current.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),d?s(c,Object.assign({className:"check"},{children:[s(c,Object.assign({className:"priceGroup"},{children:[s(c,Object.assign({className:"discount"},{children:["优惠: ",e(n,Object.assign({className:"data"},{children:He(j)}))]})),s(c,Object.assign({className:"all"},{children:["合计: ",e(n,Object.assign({className:"data"},{children:He(h.amount)}))]}))]})),s(c,Object.assign({onClick:u,className:"btn"},{children:["结算(",h.num,")"]}))]})):e(c,Object.assign({className:"del"},{children:e(c,Object.assign({onClick:O,className:"btn"},{children:"删除"}))}))]}))]}):e(Ts,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})}))},Ys=J((({refreshNum:s})=>e(k,{children:e(Zs,{refreshNum:s})}))),Xs=J((({avatarStyle:a,paddingTop:t,paddingBottom:c,userAvatar:n,userNickname:l})=>{const{View:o,Text:r,IconMobile:d,Image:g}=i(),{servicePopup:m}=Ee();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:()=>ne("/account/setting/index")}),e(d,{value:"kehufuwukefu",onClick:m})]})),s(o,Object.assign({className:"userSetting",onClick:()=>ne("/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"}})]}))]}))})),Js=J((({title:a,columnList:t})=>{const{View:c,Text:n,Badge:l,Image:o}=i(),[r,d]=_({});return ee((()=>{We(void 0,void 0,void 0,(function*(){try{const e=yield Ne();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:()=>ne("orderlist")},{children:"查看全部"}))]})),e(c,Object.assign({className:"content"},{children:t.map(((a,t)=>s(c,Object.assign({onClick:()=>ne("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)))}))]}))})),$s=J((({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:()=>ne(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)))}))})),_s=le(),ea=J((({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}=I({contractBillcode:a,contractBbillcode:t});return s(g,Object.assign({className:"paymentModeWrap",style:{height:_s?"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:"立即支付"}))}))}))]}))})),sa=({footprintItem:a,edit:t})=>{const{View:c,Image:n,Checkbox:l,SmoothView:o}=i(),r=$((()=>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:()=>ne("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}))]}))]}))]}))},aa=({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(sa,{footprintItem:s,edit:c},a)))]}))},ta=({footprintList:s,edit:t})=>{const i=$((()=>{const e=s.map((e=>(e.gmtCreate=e.gmtCreate?ve(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),a=fe(e,"gmtCreate");return Object.keys(a).map((e=>({title:e||"",option:a[e]})))}),[s]);return e(a,{children:i.map(((s,a)=>e(aa,{item:s,edit:t},a)))})},ia=J((()=>{const{View:a,ScrollView:t,SmoothCheckbox:c,Button:n,Image:l}=i(),{footprintList:o,edit:r,setEdit:d,getSelectItem:g,delItem:m,getData:h}=A();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(Je,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(ta,{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:()=>ne("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," 元"]}))]}))]}))]}))},na=J((()=>{const{collectionList:a,edit:t,setEdit:c,getData:n,getSelectItem:l,delItem:o,init:r,checked:d,handleSelectAll:g,selectAllChecked:m}=S(),{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(Je,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]}))}))]}))}))})),la=J((({noticeId:a})=>{const{View:t,Image:c}=i(),{info:n}=B(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}))]}))})),oa=J((({doclistId:a=2031})=>{const{info:t}=V(a),{View:c,ScrollView:n}=i(),{doclistContent:l,doclistTitle:o,doclistTitle4:r}=t;return e(c,Object.assign({className:"articleDetail"},{children:e(Je,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||""}})]})}))}))})),ra=({address:s})=>e(a,{children:Ce(s)?e(ga,{}):e(da,{address:s})}),da=({address:a})=>{const{View:t,SmoothView:c,IconMobile:n}=i(),l=$((()=>{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 console.log(46,l.addressDefault),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"}})]}))},ga=()=>{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"})]})},ma=({refreshNum:s})=>{const{View:a}=i(),t=T(s);return e(a,Object.assign({className:"placeOrder-chooseAddress",onClick:()=>ne("addressList")},{children:e(ra,{address:t})}))},ha=J((({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:[ve(a).format("YYYY-MM-DD")," - ",ve(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})}))]}))}))})),pa=({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l})=>{const{View:o,Text:r,Popup:d,SmoothRadio:g,ScrollView:m}=i(),{amount:h,shoppingGoodsList:p}=D({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l}),{coupon:b,visible:u,setVisible:N,selectCoupon:O,onChange:j}=L(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:De,alt:"",className:"icon"})]}))]})),e(d,Object.assign({popupVisible:u,popupHandler:N},{children:e(o,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Je,Object.assign({bottomHeight:"300"},{children:e(m,{children:e(g,Object.assign({onChange:j},{children:b.map(((e,s)=>se(ha,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:"快递"}))]}))}))},ua=({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:c})=>{const{View:n}=i(),{list:l}=D({refreshNum:s,goodsNum:a,skuId:t,shoppingGoodsId:c});return e(n,Object.assign({className:"place-order-goods"},{children:l.map(((s,a)=>e(Ue,Object.assign({},s),a)))}))},Na=({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l})=>{const{SmoothView:o,View:r}=i(),{payState:d,amount:g,disCount:m}=D({refreshNum:t,goodsNum:c,skuId:n,shoppingGoodsId:l}),{shoppingCountPrice:h,freight:p,comDisMoney:b}=R(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:He(h)}))]})),s(r,Object.assign({className:"coupon placeOrder-blcItem"},{children:[e(r,Object.assign({className:"label"},{children:"优惠金额"})),e(o,Object.assign({className:"value"},{children:He(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:He(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:He(g-m)}))]}))]}))})},Oa=({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}=D({refreshNum:l,goodsNum:o,skuId:r,shoppingGoodsId:d}),{savePayPrice:C,loading:f}=P({ocContractSettlList:j,payState:N,list:b},r,o,O);return console.log(36,u),s(g,Object.assign({className:"placeOrderFooter"},{children:[s(m,Object.assign({className:"price"},{children:["合计: ",He(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:"生成订单"}))}))]}))},ja=({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}))]}))},Ca=J((({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"}})}))})),fa=J((({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 ne(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)))}))}))})),ya=({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 ne(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)))}))},xa=J(ya),wa=J((({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);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 ne(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:["classifyNav-two-item-title",...m].join(" "),style:{fontSize:r,color:d}},{children:s.title}))}),a)))}))})),ka=J((({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 ne(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)))}))})),va=J((({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]=_(a),w=ie(),{View:k,Text:v}=i();return ee((()=>{console.log(53,Oe,w.current,d),ye(w.current,d)||(w.current=d,Ce(d)?x(a):We(void 0,void 0,void 0,(function*(){try{const e=yield Oe({goodsCode:d.toString(),distinctField:"goodsNo"});console.log(63,e),x(e.list)}catch(e){x(a)}})))}),[d]),e(k,Object.assign({style:{paddingTop:m,paddingBottom:h}},{children:e(k,Object.assign({className:be({[`goods-${t}`]:!0}),style:{display:"grid",gap:f,marginBottom:c,gridTemplateColumns:`repeat(${l}, 1fr)`,paddingLeft:p,paddingRight:b}},{children:y.map(((a,t)=>s(k,Object.assign({style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:j?"1px solid #000000":""},onClick:()=>ne("goodDetail",{skuCode:a.skuCode}),className:["goods "+(C?"outer-shadow":"")].join(" ")},{children:[e(k,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(k,Object.assign({className:"space"},{children:[e(k,Object.assign({className:"titleType",style:{display:u?"block":"none"}},{children:a.goodsName})),e(k,Object.assign({className:"subTitle"},{children:a.brandName})),o&&s(k,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(k,Object.assign({className:"price"},{children:[s(k,{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(k,Object.assign({className:"anticon",style:{display:O?"block":"none"}},{children:e(ps,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}))]}),t)))}))}))})),Ia=J((({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}=z({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:()=>ne("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(ps,{style:{fontSize:26,color:"#f00"},value:"cart"})})):null]}))]}))]}),t)))}))})),Aa=le(),Sa=J((({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}=z({defaultValue:a,goods:t}),{SmoothSwiper:O,View:j,Image:C}=i(),[f,y]=_(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&&Aa?"active":"")].join(" "),style:{borderRadius:d,borderStyle:g?"solid":"none",boxShadow:m?"0px 0px 20px 10px #ddd":""},onClick:()=>ne("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}))]}))})]}))})),Ba=({skuCode:s,autoplay:a,vertical:t})=>{const{rsGoodsFileDomainList:i=[]}=F(s),c=M(i);return e(ze,{selectImg:c,type:1,autoplay:a,vertical:t,imgHeight:{height:375,width:375}})},Va=a=>{const{SmoothView:t,View:c}=i(),{handleCollect:n,collection:l}=W(a);return s(c,Object.assign({onClick:n},{children:[e("img",{src:Te,alt:"",className:"icon"}),e(t,Object.assign({className:"txt"},{children:Ce(l.dataObj)?"收藏":"已收藏"}))]}))},Ta=({skuCode:a,priceShow:t,collectionShow:c})=>{const{View:n,SmoothView:l}=i(),{goodsName:o,pricesetNprice:r,dataPic:d}=F(a);return G(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:He(r)}))]})),e(n,Object.assign({className:"rPart",style:{display:c?"flex":"none"}},{children:e(Va,{goodsName:o,pricesetNprice:r,dataPic:d,skuCode:a})}))]}))},Da=J((a=>{const{collectionShow:t,shareShow:c}=a,{View:n}=i(),{handleCollect:l,collection:o}=W(a),{handleShare:r}=E();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:Ce(o.dataObj)?"收藏":"已收藏"})):null,c?e(n,Object.assign({className:"share",onClick:r},{children:"分享"})):null]}))})),La=J((({skuCode:a,priceShow:t,collectionShow:c,shareShow:n})=>{const{View:l,SmoothView:o}=i(),{goodsName:r,pricesetNprice:d,dataPic:g}=F(a);return G(a),s(l,Object.assign({className:"goodsDetail-info-one"},{children:[e(o,Object.assign({className:"price",style:{display:t?"block":"none"}},{children:He(d)})),e(o,Object.assign({className:"title"},{children:r})),e(Da,{collectionShow:c,shareShow:n,goodsName:r,pricesetNprice:d,dataPic:g,skuCode:a})]}))})),Ra=()=>{const{Text:e}=i(),a=U((e=>e.count)),t=U((e=>e.spec));return s(e,Object.assign({className:"label"},{children:["已选择 数量: ",a," 规格: ",t.toString()]}))},Pa=()=>{const{View:t,Text:c}=i(),{openPopup:n}=H();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(Ra,{}),e("img",{src:De,alt:"",className:"icon"})]}))]}))})},za=({skuCode:a})=>{const{View:t,Text:c}=i(),n=Q(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:"暂无促销活动"}))}))]}))},Fa=J((({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}=K(),b=$((()=>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:[ve(a).format("YYYY-MM-DD")," - ",ve(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:"已领完"}))]}))}))})),Ma=({skuCode:t})=>{const{View:c,Text:n,Popup:l}=i(),{coupon:o,visible:r,setVisible:d}=q(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:De,alt:"",className:"icon"})]}))]})),e(l,Object.assign({popupVisible:r,popupHandler:d},{children:e(c,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(Je,{children:o.map(((e,s)=>se(Fa,Object.assign({},e,{key:s}))))})}))}))]})},Wa=({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(xs,{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}))]}))},Ga=({evaluateArr:a})=>{const{View:t}=i(),c=ie(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(Wa,{item:s},a)))]}):e(Ts,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},Ea=({goodsRemark:s})=>{const{View:a}=i(),t=$((()=>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||""}})}))},Ha=({tabActive:t,setTabActive:c,evaluateShow:n,evaluateImgShow:l,evaluateImg:o})=>{const{Text:r}=i();console.log(15,n,l,o);const d=$((()=>l?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[n]);return e(a,{children:d.map(((a,i)=>e(ce,{children:s(r,Object.assign({className:"tabsItem "+(t===i?"active":""),onClick:()=>c(i)},{children:[a.title,e(r,{className:"line"})]}))},i)))})},Ua=({skuCode:a,evaluateShow:t,evaluateImgShow:c,evaluateImg:n})=>{const{View:l}=i(),[o,r]=_(0),{goodsRemark:d,goodsCode:g}=F(a),m=Z(g);return s(l,Object.assign({className:"goodsDetailTab"},{children:[e(l,Object.assign({className:"tabs"},{children:e(Ha,{tabActive:o,setTabActive:r,evaluateShow:t,evaluateImgShow:c,evaluateImg:n})})),e(l,Object.assign({className:"group"},{children:0===o?e(Ea,{goodsRemark:d}):e(Ga,{evaluateArr:m,evaluateImgShow:c,evaluateImg:n})}))]}))},Qa=({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)))}))]}))},Ka=J((({handleStep:a})=>{const{View:t,NumStep:c}=i(),n=U((e=>e.count));return s(t,Object.assign({className:"countWrap"},{children:[e(t,Object.assign({className:"label"},{children:"购买数量"})),e(c,{count:n,handleStep:a})]}))})),qa=({skuInfo:t,handleChooseSize:c})=>{const{goodsShowname:n={},pricesetNprice:l,dataPic:o,skuList:r}=t,{Image:d,View:g}=i(),m=U((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:He(l)})),s(g,Object.assign({className:"chosen"},{children:["已选择: ",m.toString()]}))]}))]})),r.map(((s,a)=>e(Qa,{spec:m,handleChooseSize:c,index:a,skuName:s.skuName,skuOption:s.skuOption},a)))]})},Za=({cashImpl:t,addShoppingImpl:c,addCardImpl:n})=>{const{Text:l,View:o}=i(),r=U((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:"立即购买"}))]}))})},Ya=({goodsCode:a,skuInfo:t})=>{const{View:c,Popup:n}=i(),{handleChooseSize:l,handleStep:o,addCardImpl:r,cashImpl:d,addShoppingImpl:g}=Y(a,t),m=U((e=>e.popupVisible)),{closePopup:h}=H();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(qa,{skuInfo:t,handleChooseSize:l}),e(Ka,{handleStep:o})]})),e(Za,{cashImpl:d,addShoppingImpl:g,addCardImpl:r})]}))}))},Xa=({skuCode:t,serverShow:c,cartShow:n,lPartColor:l,lPartBgColor:o,lPartStyle:r,rPartColor:d,rPartBgColor:g,rPartStyle:m,dispatchPageStore:h})=>{const{Text:p,View:b,IconMobile:u}=i(),{skuInfo:N,goodsCode:O}=X(t),{servicePopup:j}=Ee(),{addCardPopup:C,buyOpenPopup:f}=H();return s(a,{children:[s(b,Object.assign({className:"goodsDetailHandleBar",onClick:()=>{console.log(40,h)}},{children:[s(b,Object.assign({className:"linkGroup server",onClick:j,style:{display:c?"block":"none"}},{children:[e(u,{value:"kefu",style:{fontSize:22,display:"block"}}),e(p,Object.assign({className:"txt"},{children:"客服"}))]})),s(b,Object.assign({className:"linkGroup cart",onClick:()=>ne("shopping"),style:{display:n?"block":"none"}},{children:[e(u,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(p,Object.assign({className:"txt"},{children:"购物车"}))]})),s(b,Object.assign({className:"goods-detail-btn-group"},{children:[e(b,Object.assign({className:"btn addCart",onClick:C,style:{color:l,backgroundColor:o,borderTopLeftRadius:r,borderBottomLeftRadius:r}},{children:"加入购物车"})),e(b,Object.assign({onClick:f,className:"btn buy",style:{color:d,backgroundColor:g,borderTopRightRadius:m,borderBottomRightRadius:m}},{children:"立即购买"}))]}))]})),e(Ya,{goodsCode:O,skuInfo:N})]})},Ja=({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}=X(t),{servicePopup:C}=Ee(),{addCardPopup:f,buyOpenPopup:y}=H();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:()=>ne("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(Ya,{goodsCode:j,skuInfo:O})]})};export{Ws as AddressDetail,Ds as AddressList,oa as ArticleDetail,Ys as Cart,fa as ClassifyNav,xa as ClassifyNavOne,ya as ClassifyNavOneJsx,ka as ClassifyNavThree,wa as ClassifyNavTwo,na as CollectionList,Qs as CouponList,Se as Cube,ws as EvaluateDetail,ys as EvaluateList,Is as ExpressInfo,ia as FootPrint,va as Goods,ts as GoodsClassify,rs as GoodsClassifyOne,hs as GoodsClassifyTwo,Ua as GoodsDetailAndEvaluate,Ba as GoodsDetailBanner,Ma as GoodsDetailCoupon,Xa as GoodsDetailHandleBar,Ja as GoodsDetailHandleBarOne,Ta as GoodsDetailInfo,La as GoodsDetailInfoOne,za as GoodsDetailPromotion,Pa as GoodsDetailSku,Ns as GoodsList,Ia as GoodsSlider,Sa as GoodsSlideshow,Ca as Line,Xs as MineData,$s as MineFunction,Js as MineOrderEntry,Ie as Notice,la as NoticeDetail,es as OrderDetail,_e as OrderList,ea as PaymentMode,ma as PlaceOrderAddress,pa as PlaceOrderCoupon,ba as PlaceOrderDelivery,ua as PlaceOrderGood,Na as PlaceOrderInfo,Oa as PlaceOrderOperate,Es as PlaceOrderResult,ps as QjMobileIcon,Le as Search,js as SearchPage,Re as SearchStyleTwo,Ve as Service,Fe as Slider,ja as TextLine,Ae as Title,Be as Video};
|