s-material-react 2.2.49 → 2.2.50
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/README.md +5 -5
- package/css/pages/placeOrderGroup.scss +1 -0
- package/dist/index.js +1 -1
- package/package.json +54 -54
package/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
### 物料配置
|
|
2
|
-
|
|
3
|
-
#### 目录接口
|
|
4
|
-
> src
|
|
5
|
-
>> common
|
|
1
|
+
### 物料配置
|
|
2
|
+
|
|
3
|
+
#### 目录接口
|
|
4
|
+
> src
|
|
5
|
+
>> common
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a,Fragment as o}from"react/jsx-runtime";import l,{memo as s,useState as t,useEffect as n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,useCallback as h,Fragment as p}from"react";import{useComponent as u,IconMobile as g,antdMobile as N,NoticeBar as f}from"@brushes/simulate-component";import y from"classnames";import{getTaro as b,navigatorHandler as C,getEnv as v,taroMessage as x,getStorage as S,setStorage as k}from"@brushes/utils";import w,{useRouter as I}from"@tarojs/taro";import{queryOcsconfigList as T,getAddress as B,find as P,goodsDetailQuery as V,getContractNumbers as D}from"qj-b2c-api";import{queryOcserviceConfPageByMember as L}from"qj-b2b-api";import{get as R,isEqual as A,isEmpty as O,noop as M,groupBy as z}from"lodash-es";import{useCube as $,useGoTop as Y,useAfterSalesApply as j,useAfterSalesList as E,afterSalesTabConfig as F,useAfterSalesDetail as G,useAfterSalesChooseType as W,useAddressItem as _,useAddressList as H,useEditAddress as U,useMySetting as K,usePickupPointItem as q,usePickupPointList as J,useGoodsClassify as Q,useGoods as X,useGoodCollection as Z,useGoodDetail as ee,goodStore as ae,useBanner as oe,useGoodSpecAndPrice as le,useGoodFootprint as se,useCreatePoster as te,useCreateMiniPoster as ne,useGoodsShare as ie,useGoodSkuStore as ce,popupImplement as re,usePromotion as de,useAddCoupon as me,useCoupon as he,useEvaluate as pe,useAddShopping as ue,useGoodSku as ge,useGoodsList as Ne,useCartTop as fe,useCartListNext as ye,getRadioValue as be,useCartOperate as Ce,useOrderAddress as ve,useOrderPickupAddress as xe,userAddressData as Se,orderStore as ke,useOrderGood as we,useOrderCoupon as Ie,useSyncOrderStore as Te,useOrderInfo as Be,useOrderPay as Pe,useOrderResult as Ve,useOrderResultResult as De,useOrderOperate as Le,orderStatusImpl as Re,useOrderList as Ae,orderStatusList as Oe,useOrderDetail as Me,useExpressInfo as ze,useEvaluateDetail as $e,useEvaluateViewDetail as Ye,useCollectionList as je,useFootprint as Ee,useMemberSignin as Fe,useSigninDetail as Ge,useMarketingPromotion as We,useCouponList as _e,useAllCoupon as He,useNotice as Ue,useNoticeDetail as Ke,useArticleDetail as qe}from"qj-b2c-store";import{fullPath as Je,checkMobile as Qe,ProvinceComponent as Xe,CityComponent as Ze,AreaComponent as ea,navigatorLink as aa}from"@brushes/shared-utils";import oa from"dayjs";import{updateContractAddress as la,deleteEvaluateGoods as sa}from"b2c-api";import{DynamicForm as ta}from"@brushes/mobile-form";import{View as na,Image as ia,RichText as ca}from"@tarojs/components";import{ClockCircleOutline as ra}from"antd-mobile-icons";const da=s((({width:a,height:o,top:l,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=u();return e(c,{style:{width:a,height:o,borderRadius:i,top:l,left:n,right:s,bottom:t},className:"components-service"})})),ma=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=u();return e(n,{onClick:l,className:y(o,t?`${o}-${t}`:"",a),style:s})},ha=s((({value:l,shared:s,goPath:t,goPointsPath:n,textIndent:i,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:g,paddingTop:N,paddingLeft:f,paddingRight:y,paddingBottom:v})=>{const{View:x,IconMobile:S,Button:k}=u(),I=b(),T="WEB"===w.getEnv(),B=()=>{const e=b();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(x,{className:"components-title",style:{paddingTop:N,paddingBottom:v},children:[e(x,{onClick:()=>{var e;e=l,t?C("goodList",{searchParam:e}):n&&C("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:g,paddingLeft:f,paddingRight:y,textIndent:i},children:l}),s&&e(o,{children:T?e(x,{onClick:e=>{var a;e.stopPropagation(),T?B():null===(a=null==I?void 0:I.showShareMenu)||void 0===a||a.call(I,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},children:e(S,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(k,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(S,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})})),pa=({TextLineBgColor:o,text:l,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:p}=u();return a(p,{className:"textLine",style:{backgroundColor:o,textAlign:i,margin:1===s?"0 10px":""},children:[e(p,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(p,{className:"txt",style:{backgroundColor:o,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${n}px`,color:c},children:l})]})},ua=s((({borderStyle:a,borderRadius:o,height:l,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=u();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:o+"%",borderStyle:a,width:s+"%",height:l+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ga(e,a){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&a.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(o[l[s]]=e[l[s]])}return o}function Na(e,a,o,l){return new(o||(o=Promise))((function(s,t){function n(e){try{c(l.next(e))}catch(e){t(e)}}function i(e){try{c(l.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(n,i)}c((l=l.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const fa=(e="b2c")=>{const[a,o]=t([]),l=i((()=>v()),[]);n((()=>{Na(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>Na(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield T();case"b2b":return yield L().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=R(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${R(l,"ocserviceConfRemark")}: ${R(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${R(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;b().showActionSheet({itemList:a})}}},ya={label:""},ba=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Ca=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",va=(e,a)=>{const o=Math.floor(e/1e3)%60,l=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${l}分钟 ${o}秒${a}`},xa=e=>1===String(e).indexOf(".")?Sa(e):ka(e),Sa=e=>{const a=Number(e).toFixed(0),o=(Number(e)-Number(a)).toFixed(2),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+"."+String(o).slice(2)},ka=e=>{const a=Number(e).toFixed(0),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+".00"},wa=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Ia=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?wa+e:e?wa+"/paas/shop/"+e:e),[e]),Ta=({src:a,style:o,actived:l})=>{const s=c(null);return n((()=>{s.current&&(l?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[l]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:o,src:a})},Ba=s((({item:a,isPlay:l,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=u(),d=Ia(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Ta,{actived:l,style:{height:"100%",overflow:"hidden"},src:d}):e(c,{mode:"scaleToFill",src:d,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:C.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),Pa=s((({Position:l="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:p,paddingBottom:g,paddingLeft:N,paddingRight:f,selectImg:b,imgHeight:C,fontsize:v=16,textAlign:x="center",fontColor:S="#000000",backGroundColor:k="#ffffff"})=>{const w=i((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:I,View:T}=u(),B=$(n,b||[]),P=a=>e(T,{className:t,style:{fontSize:v,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:S,backgroundColor:k},children:a.title});return e(T,{className:s,style:{paddingTop:p,paddingBottom:g,paddingLeft:N,paddingRight:f},children:e(I,{imgHeight:C,data:B,className:w,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?P(s):null,e(Ba,{isPlay:t===n,item:s,position:l,direction:m})]})})})})),Va=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:g,paddingTB:N=0,paddingLR:f=0,fontsize:b=16,textAlign:C="center",fontColor:v="#000000",backGroundColor:x="#ffffff",otherStyles:S=[],ImgShadow:k=!1,Position:w="top"})=>{const{View:I}=u(),T=i((()=>y("silder-title",{"silder-tops1":"top"===w&&"horizontal"===d,"silder-bottoms":"bottom"===w&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===w,"silder-tops":"vertical"===d&&"top"===w},...S)),[S,w]);return e(I,{style:{padding:`${N}px ${f}px`},children:e(Pa,{Position:w,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:g,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:b,textAlign:C,fontColor:v,backGroundColor:x,className:y({"outer-shadow":k}),className1:T})})})),Da=s((({url:a,poster:o,autoplay:l,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=u();return e(r,{style:{paddingTop:t,paddingBottom:n},children:e("video",{className:"components-video",src:a,poster:o,autoPlay:l,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:i,paddingRight:c}})})})),La=({src:a,borderRadius:o})=>{const{Image:l}=u(),s=Ia(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},Ra=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=u(),r=$(o,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((o,s)=>a(i,{className:"classifyNavItem",onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(o),children:[e(La,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),Aa=({src:a,imgRadius:o,imgBoxShadow:l})=>{const{Image:s}=u(),t=Ia(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none"}})},Oa=({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=u(),p=$(a,o);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:l,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:p.map(((a,o)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},children:e(Aa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},o)))})},Ma=s(Oa),za=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:p,marginBottom:g})=>{const{View:N}=u(),f=$(a,o),b=i((()=>y("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:g},children:f.map(((a,o)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:b,style:{fontSize:c,color:r},children:a.title})},o)))})})),$a=a=>{const{imgRadius:o,imgBoxShadow:l,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=u(),m=Ia(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return C(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ya=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:g,marginBottom:N})=>{const{View:f}=u(),y=$(a,o);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:y.map(((a,o)=>e($a,{layout:p,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},o)))})})),ja=s((({position:a=10,bg:o,color:l,fontSize:s})=>{const t=i((()=>v()),[]),{View:n}=u(),{goTop:c}=Y();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ma,{style:{display:"inline-block",color:l,fontSize:s,backgroundColor:o,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Ea=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=u(),n=Ia(l.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===o?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},Fa=s((({defaultValue:a,type:o,borderRadius:l,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=u(),p=$(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${o}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:p.map(((a,t)=>e(Ea,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Ga=l.createContext(null),Wa=s((()=>{const{View:a}=u(),{tip:o}=r(Ga);return e(a,{className:"afterSalesApplyTip",children:o})}));const _a=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=ga(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>v()),[]),m=function(e){const[a,o]=t(0);return n((()=>{if(!v()||!e)return;const a=b().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;o(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!v())return 0;const a=b(),o=+a.getStorageSync("safeArea"),l=+(a.getStorageSync("tabBarHeight")||0);return o+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?l:0)+(e?+e:0)}),[])}(o),{View:p}=u(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,b().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${b().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(p,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:l}))},Ha=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=u(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:p}=r(Ga);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:p,children:e(o,{className:"reasonPopup",children:e(_a,{children:a(n,{children:[e(o,{className:"title",children:"退款原因"}),e(l,{onChange:h,children:m.map(((l,t)=>a(o,{className:"reasonItem",children:[e(o,{className:"label",children:l.flagSettingInfo}),e(s,{value:l.flagSettingInfo})]},t)))})]})})})})})})),Ua=s((()=>{const{View:o}=u(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:n}=r(Ga);return a(o,{className:"afterSalesApplyFillIn",children:[a(o,{className:"reason",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款原因"})]}),e(o,{className:"choose",onClick:l,children:t?e(o,{className:"chooseResult",children:t}):a(o,{children:["请选择",e(ma,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(o,{className:"price",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款金额"})]}),e(o,{className:"allPrice",children:e(o,{className:"single",children:ba(n)})})]}),e(Ha,{popupShow:s})]})})),Ka=s((()=>{const{View:o,TextArea:l,Textarea:s}=u(),t=s||l,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Ga);return a(o,{className:"afterSalesApplySubFillIn",children:[e(o,{className:"title",children:"补充描述和凭证"}),a(o,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(o,{className:"imgGroup",children:[i.length<m?e(o,{className:"add",onClick:n,children:a(o,{className:"addContent",children:[e(ma,{value:"shangchuanpingzheng"}),e(o,{className:"word",children:"上传凭证"}),a(o,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,l)=>e(o,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(o,{className:"cancel",onClick:d.bind(null,l),children:e(ma,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),qa=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=u(),{tip:p,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:y,handleChooseReason:b,reason:C,handleChooseImg:v,imgGroup:x,placeholder:S,handleDelImg:k,limit:w,goodsInfo:I,handleFillInReason:T,handleSubmit:B,loading:P}=j({contractBillcode:l,skuCode:s});return e(h,{loading:P,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Ga.Provider,{value:{tip:p,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:y,handleChooseReason:b,reason:C,handleChooseImg:v,imgGroup:x,placeholder:S,handleDelImg:k,limit:w,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:T,handleSubmit:B},children:[e(Wa,{}),e(Ua,{}),e(Ka,{}),e(m,{className:"submitBtn",onClick:B.bind(null,t,l,o,n),children:"确定"})]})})})},Ja={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Qa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Xa=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:n,Image:i}=u();return a(n,{className:"afterSalesListItem",onClick:l.bind(null,o.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",o.refundCode]}),a(n,{className:"rPart",children:[e(ma,{style:{color:null===(s=Ja[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ja[o.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ja[o.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Je(o.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:o.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",o.ocRefundGoodsList[0].refundGoodsNum]}),a(n,{className:"count",children:["订单编号: ",o.contractBbillcode]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Qa[o.refundType][o.dataState]}),e(ma,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Za=s((()=>{const{View:a}=u();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),eo=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=u(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=E(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(_a,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Xa,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(Za,{})})})})})})),ao=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=u();return e(n,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:o=>e(eo,{item:o,refreshNum:a})})})})),oo=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h,contractBillcode:p})=>{const{View:g,Image:N,SmoothView:f}=u(),y="06"===d?m+"积分":ba(n),b=i((()=>t?`x ${t}`:""),[t]),C=(e=>{const a="string"==typeof e?e:"";if(!/^https?:\/\//i.test(a))return a;const o=a.indexOf("/paas/");return-1===o?a:a.slice(o).replace(/\/+/g,"/")})(l);return e(o,{children:a(g,{className:"card-item",children:[e(N,{src:Je(C),alt:"",className:"card-item-img"}),a(g,{className:"card-item-info",children:[a(g,{className:"card-item-info-container",children:[e(f,{className:"good-name",children:s}),e(f,{className:"shop-info-price",children:y})]}),a(g,{className:"card-item-info-sub",children:[a(f,{className:"sku",children:["规格:",c]}),e(f,{className:"count",children:b})]}),a(g,{className:"orderNo",style:{fontSize:12,color:"#999"},children:["订单号: ",p]}),r]})]})})},lo=(e,a)=>{if("B01"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"}[a]}if("B02"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}[a]}},so=l.createContext(null),to=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(so),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=u();return e(d,{popupVisible:l,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(_a,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:o.map(((o,l)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:o.expressName}),e(c,{value:`${o.expressName}-${o.expressCode}`})]},l)))})]})})})})})),no=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(so),{View:i,Input:c}=u();return a(o,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:l,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(to,{})]})})),io=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:g,packageName:N,setPackageBillno:f,loading:y}=G({refundCode:l}),{contractBbillcode:b,dataState:C,gmtCreate:v,ocRefundGoodsList:x,refundMoney:S,refundMeo:k,refundEx:w,refundType:I,ocRefundFileList:T,goodsReceiptMem:B,goodsReceiptPhone:P,goodsReceiptArrdess:V,packageCode:D,packageBillno:L,packageName:R}=c,{View:A,Image:O,WrapLoading:M}=u();return e(M,{loading:y,children:e(A,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(so.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(A,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(A,{className:"left_text",children:lo(I,C)}),e(A,{className:"right_time",children:oa(v).format("YYYY-MM-DD HH:mm:ss")})]}),e(A,{className:"afterSalesDetailContent",children:a(A,{className:"refundDetail",children:[e(A,{className:"title",children:"退款信息"}),e(A,{className:"goodsDetail",children:null==x?void 0:x.map(((a,o)=>e(oo,{dataPic:Je(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},o)))}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"订单编号"}),e(A,{className:"right",children:b})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款原因"}),e(A,{className:"right",children:w})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款金额"}),e(A,{className:"right",children:S})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"描述说明"}),e(A,{className:"right",children:k})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"补充凭证"}),e(A,{className:"right",children:null==T?void 0:T.map(((a,o)=>e(O,{src:Je(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"申请时间"}),e(A,{className:"right",children:oa(v).format("YYYY-MM-DD HH:mm:ss")})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款编号"}),e(A,{className:"right",children:l})]}),e(o,{children:"B02"===I?a(o,{children:[C>0?a(A,{className:"merchantMsg",children:[e(A,{className:"title",children:"商家信息"}),a(A,{className:"name",children:[B," ",P]}),e(A,{className:"address",children:V})]}):"",1===C?a(A,{className:"writeMsg",children:[e(A,{className:"wlMsg",children:"物流信息"}),e(no,{})]}):"",C>1?a(A,{className:"writeMsg",children:[e(A,{className:"wlMsg",children:"物流信息"}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流单号"}),e(A,{className:"code",children:L})]}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流公司"}),e(A,{className:"code",children:R})]})]}):""]}):""})]})}),0===C?e(A,{className:"footerBtn",children:e(A,{className:"btn",onClick:d.bind(null,x[0].goodsCode),children:"撤销申请"})}):null]})})})})),co=l.createContext(null),ro=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=u(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(co),{goodsName:p,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ba(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:Je(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:p}),e(t,{className:"price",children:f})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:g}),a(o,{className:"stepWrap",children:[e(ma,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(o,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),mo=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:n}=u(),{goApply:i,goodsNum:c}=r(co);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((o,l)=>a(n,{className:"item",onClick:i.bind(null,o.value,s,t,c),children:[e(n,{className:"headline",children:o.label}),e(ma,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),ho=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:g,goApply:N,loading:f,goodsPrice:y}=W({contractBillcode:l,skuCode:s}),{View:b,WrapLoading:C}=u();return e(C,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(co.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:g,goApply:N,goodsPrice:y},children:[e(ro,{}),e(mo,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},po=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=u();return e(s,{value:o?[l.addressId]:[],onChange:a,children:e(t,{value:l.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},uo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:n}=u(),{handlerImpl:i}=_(o),c=I(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[o.addressMember," ",o.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[o.provinceName," ",o.areaName," ",o.cityName," ",o.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(po,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>C("editAddress",{addressId:o.addressId}),children:"编辑"}),r.contractBillcode?e(n,{className:"del",onClick:()=>Na(void 0,void 0,void 0,(function*(){const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;yield la({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),C("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(n,{className:"del",onClick:l,children:"删除"})]})]})]})},go=s((()=>{const{View:a,Skeleton:l}=u(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})})),No=s((({url:o,title:l,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=u();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:o}),e(i,{className:"title",children:l}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>C(t),children:["去看看",e(g,{value:"xiangyou1"})]}):null]})})})),fo=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=u(),{list:r,delAddress:d,setDefault:m,skullShow:h}=H(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(go,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(uo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(No,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),yo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=u();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>C("addressEditor"),children:"+ 新增地址"})})})),bo=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],Co=[{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"text",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:Qe}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Xe}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Ze}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:ea}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],vo=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=u(),[m,h]=t({}),[p,g]=t(!!r),{Button:f}=N,{onSubmit:y}=U(r);if(n((()=>{Na(void 0,void 0,void 0,(function*(){if(r){g(!0);let e=yield B({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),g(!1)}else g(!1)}))}),[r]),!p)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(ta,{initialValues:m,footer:e(f,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:bo,onSubmit:y,fields:Co})})})),xo=s((()=>{const{View:o}=u(),l=e=>{C(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(o,{className:"myAgreementList",children:e(o,{className:"list",children:s.current.map(((s,t)=>a(o,{className:"item",onClick:l.bind(null,s.type),children:[e(o,{children:s.label}),e(o,{children:e(g,{value:"xiangyou1"})})]},t)))})})})),So=()=>{const{View:o}=u(),{mySettingGoBind:l,mySettingLogout:s}=K();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(ma,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},ko=s(So),wo=({itemData:o})=>{const{View:l,Text:s}=u(),{handlerImpl:t}=q(o);return e(l,{className:"addressItem",children:a(l,{className:"upInfo",onClick:t,children:[e(l,{className:"userInfo",children:(o.addressMember||"")+" "+(o.addressPhone||"")}),e(l,{className:"addressInfo",children:a(s,{className:"address",children:[o.provinceName||""," ",o.areaName||""," ",o.cityName||""," ",o.addressDetail||""]})})]})})},Io=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=u(),{list:c,loading:r,skullShow:d,onScroll:m}=J(o);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:d?e(go,{}):e(t,{className:"addressList",children:e(_a,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,o)=>e(wo,{itemData:a},a&&a.userinfoOcode||o))),r&&e(i,{})]}):e(No,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),To=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=u();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>Na(void 0,void 0,void 0,(function*(){yield x("导入成功","none")})),children:"导入微信收件地址"})})})),Bo=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=u();return e(o,{children:l.map((o=>e(n,{className:["content",s===`${o.goodsClassCode}`?" active":""].join(""),children:((null==o?void 0:o.childList)||[]).map((o=>a(n,{className:"classifyFloor",children:["0"===o.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:o.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{className:`container container_columns${t}`,style:{marginTop:"0"===o.goodsClassHide?"":"20px"},children:((null==o?void 0:o.childList)||[]).map((({classtreeCode:o,goodsClassCode:l,goodsClassLogo:s,goodsClassName:t})=>a(n,{onClick:()=>C("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:Po}=N,Vo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=u(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(i,{children:e(_a,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(Po,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(Po.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(Bo,{navList:m,activeKey:r,cell:o})})]})})})})})),Do=d(null),Lo=s((()=>{const{navList:o,activeKey:l,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(Do),{View:d,ScrollView:m}=u(),[h,p]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&p(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:o.map(((a,o)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!0),children:e(g,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!1),children:e(g,{value:"paixusort-sheng"})})}),e(_a,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:o.map(((a,o)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))})})})]}):null]})})),Ro=s((({thirdList:o})=>{const{View:l,Image:s}=u(),{picShadow:t,layout:n}=r(Do);return e(l,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:o.map(((o,n)=>a(l,{className:"goodsClassifyOneFloorItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(s,{src:o.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(l,{className:"title",children:o.goodsClassName})]},n)))})})),Ao=s((()=>{const{navList:o,fCoe:l,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(Do),m=i((()=>v()),[]),{secondList:h,thirdList:p}=(({navList:e,fCoe:a,sCoe:o})=>{const l=i((()=>{var o;return(null===(o=e[a])||void 0===o?void 0:o.childList)||[]}),[a,e]),s=i((()=>{var e;return(null===(e=l[o])||void 0===e?void 0:e.childList)||[]}),[o,a,e]);return{secondList:l,thirdList:s}})({navList:o,fCoe:l,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=u();return e(g,{children:e(_a,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,o)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},o)))}),e(Ro,{thirdList:p})]})})})})})),Oo=s((({selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=u(),{navList:m,activeKey:h,setActiveKey:p}=Q(),[g,N]=t("0"),[f,y]=t("0");return e(Do.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:y,navList:m,activeKey:h,setActiveKey:p,selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(Lo,{}),e(Ao,{})]})})})),Mo=s((({childList:o,layout:l,picShadow:s,style:t})=>{const{View:n,Image:i}=u();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${l}, 1fr)`},t),children:o.map(((o,l)=>a(n,{className:"level3ArrItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(i,{src:o.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:o.goodsClassName})]},l)))})})),zo=s((({navList:o,activeKey:l,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(o.findIndex(m))}),[l,r]);const m=e=>e.goodsClassCode===l,{View:h,Image:p}=u();return a(h,{className:"goodsClassifyTwoContent",children:[e(p,{className:"firstLevelImg",src:R(o[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=R(o[r],"childList"))||void 0===c?void 0:c.map(((o,l)=>a(h,{children:["0"===o.goodsClassHide?e(h,{className:"level2Title",children:o.goodsClassName}):"",e(Mo,{childList:o.childList,layout:s,picShadow:i,style:{marginTop:"0"===o.goodsClassHide?"":"30px"}})]},l)))]})})),{SideBar:$o}=N,Yo=s((({selectFontColor:o,selectBlcShow:l,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=u(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(c,{className:"goodsClassifyTwo",children:e(_a,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e($o,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e($o.Item,{title:a.goodsClassName,className:[l?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":o}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(zo,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),jo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/search.png",Eo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/THREE_DOTS.png",Fo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/share.svg",Go=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:p,otherStyles:g=[],__pageConfig:N})=>{const{View:f,Image:b}=u(),v=i((()=>y("txt",...g)),[g]);return e(f,{onClick:()=>C(l),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(f,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(b,{src:jo,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(f,{className:v,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),Wo=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:p,paddings:g,otherStyles:N=["mockWeight","mockItalic"],urlPath:f="search"})=>{const{View:b,Image:v}=u(),x=i((()=>y("txt",...N)),[N]),S=w.useRouter(),[k,I]=t("");return n((()=>{var e;if(null===(e=null==S?void 0:S.params)||void 0===e?void 0:e.searchParam){const e=S.params.searchParam,a=decodeURIComponent(e);I(a)}}),[null==S?void 0:S.params]),e(b,{onClick:()=>C(f),style:{paddingTop:g,paddingBottom:g,paddingLeft:d,paddingRight:m},className:h?"boxPosition":"",children:a(b,{className:"components-search",style:{border:`1px solid ${c}`,borderRadius:r?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff",marginTop:"8px"},children:[a(b,{style:{width:"80%"},children:[e(v,{src:jo,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,k?{className:x,style:{color:s,display:"inline-block",fontSize:p},children:k}:{className:x,style:{color:s,display:"inline-block",fontSize:p},children:o})]}),e(b,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:p,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),_o=s((({placeholder:o,placeholderText:l,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:p})=>{const g=c(null),N=i((()=>v()),[]),{View:f,Text:y,Input:x}=u(),[w,I]=t((()=>S("history")||[])),[T,B]=t(""),P=e=>{C(p?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:jo,alt:""}),e(x,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:T,onInput:e=>B(e.detail.value),onConfirm:e=>Na(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const o=a.concat(g.current.value||e.detail.value);return k("history",o),o}return a})),P(g.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(y,{className:"btn",onClick:()=>{const e=T.trim();e&&(I((a=>{if(!a.includes(e)){const o=a.concat(e);return k("history",o),o}return a})),P(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(ma,{onClick:()=>Na(void 0,void 0,void 0,(function*(){(yield b()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:w.map(((a,o)=>e(f,{onClick:()=>P(a),className:"historyItem",children:a},o)))})]}):null]})})),Ho=s((({defaultValue:o=[],classCode:l="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:p=[],markedPrice:g,paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:v,goodsName:x=!0,goodsPrice:S=!0,goodsCar:k=!0,goodsBorder:w=!0,goodsShadow:I=!1,marginGap:T=10})=>{const[B,V]=t(o),D=c(),{View:L,Text:M}=u();return n((()=>{A(D.current,p)||(D.current=p,O(p)?V(o):Na(void 0,void 0,void 0,(function*(){try{const e=yield P({[h]:p.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=R(e,"list",[]);V(a)}catch(e){V(o)}})))}),[p]),e(L,{style:{paddingTop:N,paddingBottom:f},children:e(L,{className:y({[`goods-${l}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:b,paddingRight:v},children:B.map(((o,l)=>a(L,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:w?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(L,{className:"goods-img",style:{backgroundImage:`url(${Je(o.dataPic)})`}}),a(L,{className:"space",children:[e(L,{className:"titleType",style:{display:x?"block":"none"},children:o.goodsName}),e(L,{className:"subTitle",children:o.brandName}),a(L,{className:"price",children:[a(L,{style:{fontSize:18},children:[S?ba(o.pricesetNprice):"",1===g&&e(M,{className:"markedPrice",children:ba(o.pricesetMakeprice)})]}),e(L,{className:"anticon",style:{display:k?"block":"none"},children:e(ma,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})})),Uo=s((({defaultValue:o,goods:l,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:y,marginRight:b})=>{const{View:v}=u(),{list:x}=X({defaultValue:o,goods:l},i);return e(v,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:y,marginRight:b},children:x.map(((o,l)=>a(v,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${g}px`},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(v,{className:"img",style:{backgroundImage:`url(${Je(o.dataPic)})`}}),a(v,{className:"board",children:[e(v,{className:"title",children:o.goodsName}),a(v,{className:"info",children:[a(v,{className:"lPart",children:[s?e(v,{className:"price",children:ba(o.pricesetNprice)}):null,t?e(v,{className:"marketPrice",children:ba(o.pricesetMakeprice)}):null]}),n?e(v,{className:"rPart",children:e(ma,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},l)))})})),Ko=s((({defaultValue:o,goods:l,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:p,goodsShadow:g,btnText:N,btnBg:f,btnColor:y,btnRadius:b})=>{const x=i((()=>v()),[]),{list:S}=X({defaultValue:o,goods:l},m),{SmoothSwiper:k,View:w,Image:I}=u(),[T,B]=t(0);return a(w,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:S,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{B(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:o=>a(w,{className:["goodsSlideshowItem",""+(o.goodsCode===S[T].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:p?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(I,{className:"logo",src:Je(o.dataPic),mode:"widthFix"}),c?e(w,{className:"goodsName",children:o.goodsShowname}):null,r?a(w,{className:"salesNum",children:["销量:",o.goodsSalesvolume]}):null,d?e(w,{className:"price",children:ba(o.pricesetNprice)}):null,n?e(w,{className:"marketPrice",children:ba(o.pricesetMakeprice)}):null,e(w,{className:"btn",style:{backgroundColor:f,color:y,borderRadius:b},children:N})]})})]})}));var qo=new class{constructor(){this.events={}}on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const o=this.events[e];o&&o.forEach((e=>e(...a)))}off(e,a){const o=this.events[e];o&&(this.events[e]=o.filter((e=>e!==a)))}};const Jo=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:p,loop:g,paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:C,selectImg:v,imgHeight:x,collectParams:S,fontsize:k=16,textAlign:I="center",fontColor:T="#000000",backGroundColor:B="#ffffff"})=>{const P="WEB"===w.getEnv(),V=i((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===p}))),{handleCollect:D,collection:L}=Z(S),[R,A]=t(!1),{SmoothSwiper:M,View:z,Button:Y}=u(),j=$(r,v||[]),E=a=>e(z,{className:c,style:{fontSize:k,zIndex:99,justifyContent:"left"===I?"flex-start":"center"===I?"center":"flex-end",color:T,backgroundColor:B},children:a.title});return n((()=>{const e=e=>{A(e)};return qo.on("IsCollectionShow",e),()=>{qo.off("IsCollectionShow",e)}}),[]),a(z,{className:s,style:{position:"relative",paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:C},children:[a(z,{style:{position:"absolute",top:10,right:10,zIndex:9,display:"flex",gap:10},children:[e(z,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8},children:e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/haibao.svg",onClick:()=>{qo.emit("bannerImageClick","poster")},style:{width:"100%",height:"100%"},alt:"生成海报"})}),e(z,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8},children:P?e("img",{src:Fo,onClick:e=>{e.stopPropagation(),qo.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(Y,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Fo})`,backgroundSize:"100% 100%",width:20,height:20,padding:0},className:"wx-share-button"})}),e(z,{onClick:D,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8,display:R?"flex":"none"},children:O(L.dataObj)?e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/collect.svg",style:{width:"100%",height:"100%"},alt:"收藏"}):e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/collect-fill.svg",style:{width:"100%",height:"100%"},alt:"收藏"})})]}),e(M,{imgHeight:x,data:j,className:V,type:d,autoplay:m,autoplayInterval:h,direction:p,loop:g,interval:5e3,vertical:"vertical"===p,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?E(s):null,e(Ba,{isPlay:t===n,item:s,position:l,direction:p})]})})]})})),Qo=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:n,memberCode:i=""}=ee(l,s),c=ae.getState();ae.setState(Object.assign(Object.assign({},c),{memberCode:i})),console.log(24,i);const r=oe(t),{goodInfo:d}=le(n),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Je(d.dataPic),skuCode:l};return e(Jo,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function Xo(o){const{content:l,position:s="top"}=o,[n,i]=t(!1);return a(na,{className:"tooltip-wrap",children:[e(na,{className:"tooltip-icon",onClick:()=>i(!n),children:e(ia,{src:`data:image/svg+xml,${encodeURIComponent('\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">\n <circle cx="12" cy="12" r="10" fill="none" stroke="#666" stroke-width="1.5"/>\n <text x="12" y="16" text-anchor="middle" font-family="system-ui" font-size="12" font-weight="bold" fill="#666">?</text>\n </svg>\n ')}`,mode:"aspectFit",style:{width:"24px",height:"24px"}})}),n&&a(na,{className:`tooltip-popup tooltip-${s}`,children:[l,e(na,{className:"tooltip-arrow"})]})]})}const Zo=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!v())return;return"WEB"===b().getEnv()?e(o,{children:a?e(el,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(al,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},el=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=u(),{save:c,canvasRef:r,width:d,height:m}=te(l,s,t);return e(n,{className:"share",children:o?a(n,{className:"share-content",style:{margin:"80px auto"},onClick:e=>{e.stopPropagation()},children:[e(n,{id:"share-canvas-id",className:"share-canvas",children:e("canvas",{ref:r,width:d,height:m,style:{width:`${d}px`,height:`${m}px`}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>l(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},al=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Canvas:i,Button:c}=u(),{save:r,width:d,height:m}=ne(l,s,t,o);return e(n,{style:{zIndex:o?1e3:-10,opacity:o?1:0},className:"share",children:a(n,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[o&&e(n,{className:"share-canvas",id:"share-canvas-id",children:e(i,{"canvas-id":"canvas",style:{width:`${d}px`,height:`${m}px`,position:"absolute"}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(c,{className:"txt",onClick:()=>{const e=w.createCanvasContext("canvas");e.clearRect(0,0,d,m),e.draw(!0),l(!1)},children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:r,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},ol=({skuCode:o,priceShow:l,collectionShow:s,scene:i})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:p,Button:g,IconMobile:N,Text:f}=u(),{rsSkuDomainList:y,rsGoodsFileDomainList:C,goodsDayinfo:v}=ee(o,i),{goodInfo:x}=le(y);console.log("goodInfo",x);const S=x.mpriceStairDomainListMap||{},k=Object.values(S),I=k.length>0?k[0]:[],T=I.length>0?I.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";se(o);const B=b(),P="WEB"===w.getEnv();qo.emit("IsCollectionShow",{collectionShow:s}),n((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&V()};return qo.on("bannerImageClick",e),()=>{qo.off("bannerImageClick",e)}}),[]);const V=()=>{var e;P?B.setClipboardData({data:window.location.href,success:()=>{B.showToast({title:"复制成功",icon:"success"})},fail:()=>{B.showToast({title:"复制失败",icon:"none"})}}):null===(e=null==B?void 0:B.showShareMenu)||void 0===e||e.call(B,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})};return a(d,{className:"goodsDetail-topInfo",children:[e(Zo,{goodsName:x.goodsName,shareShow:c,setShareShow:r,rsGoodsFileDomainList:C}),a(d,{className:"lPart",children:[e(d,{className:"price-container",children:a(d,{className:"price-content",children:[a(m,{className:"price",style:{display:l?"block":"none"},children:["会员价",e(f,{className:"price-value",children:ba(x.pricesetNprice)})]}),a(m,{className:"sale-price",style:{display:l?"block":"none"},children:["促销价",e(f,{className:"price-value",children:ba(x.pricesetNprice)})]}),T?e(d,{className:"page",children:e(Xo,{content:T,position:"bottom"})}):null]})}),a(m,{className:"name",style:{display:"flex",alignItems:"center"},children:["16"==x.goodsType?e(d,{className:"pre-sale",children:"预售商品"}):null,x.goodsName]}),"16"==x.goodsType&&v&&a(m,{className:"price",children:["预计发货时间:",v,"天内"]})]})]})},ll=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=u(),{handleCollect:n,collection:i}=Z(o),{handleShare:c}=ie();return a(t,{className:"handleBar",children:[l?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:O(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),sl=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=u(),{rsSkuDomainList:r}=ee(t,n),{goodInfo:d}=le(r);return ce((e=>e.spec)),se(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:ba(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(ll,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Je(d.dataPic),skuCode:t})]})})),tl=s((()=>{const{View:o,Text:l}=u(),s=ce((e=>e.count)),t=ce((e=>e.spec));return a(l,{className:"label",children:[e(l,{className:"blod font-14 letter-spacing-1",children:"已选"})," 规格: ",e(l,{className:"blod",children:t.toString()}),e(l,{style:{margin:"0 18px 0 10px"},children:"|"}),"数量: ",e(l,{className:"blod font-14",children:s})]})})),nl=({dispatchPageStore:l})=>{const{View:s,Text:t}=u(),{openPopup:n}=re(l),i=ce((e=>e.goodsSupplynum));return e(o,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[a(s,{className:"goods-supplynum",children:["库存:",e(t,{className:"blod",children:i})]}),a(s,{className:"info",children:[e(tl,{}),e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",className:"icon"})]})]})})},il=({skuCode:o,scene:l})=>{const{View:s,Text:t}=u(),{rsSkuDomainList:n}=ee(o,l),{goodInfo:i}=le(n),c=de(n,i.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label letter-spacing-1",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},o)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},o))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},cl=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=u(),{save:p,isPick:g}=me(),N=i((()=>c-r),[c,r]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:l}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[oa(o).format("YYYY-MM-DD")," - ",oa(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),rl=()=>{const{View:a,Image:o}=u();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},dl=l=>{var{skuCode:s,scene:t}=l;ga(l,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=u(),{rsSkuDomainList:d}=ee(s,t),{goodInfo:h}=le(d),{coupon:p,visible:g,setVisible:N}=he(d,h.skuCode);return a(o,{children:["26"==h.goodsType?null:a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",style:{color:"#000"},children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(_a,{children:p.length>0?p.map(((e,a)=>m(cl,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(rl,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},ml=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:i}=u(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(s){const e=[...c];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!o){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(i,{children:c.map(((a,o)=>e(ma,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},hl=({item:o})=>{const{View:l,Image:s,Text:t,Button:n}=u(),i=v(),c=b();S("user");const{userInfoCode:r}=S("user")||{userInfoCode:""};return a(l,{className:"rateItem",children:[a(l,{className:"topInfo",children:[a(l,{className:"lPart",children:[e(s,{src:o.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(l,{className:"userInfo",children:[e(l,{className:"name",children:o.userName}),e(ml,{readOnly:!0,size:14,count:o.evaluateScopeReList.length})]})]}),e(l,{className:"rPart",children:`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`})]}),a(l,{className:"pj-wrapper",children:[a(l,{className:"flex-1",children:[e(l,{className:"size",children:o.skuName}),e(l,{className:"content",children:o.evaluateGoodsContent}),o.evaluateGoodsImgs&&JSON.parse(o.evaluateGoodsImgs).length>0&&e(l,{className:"img-group",children:JSON.parse(o.evaluateGoodsImgs).map((a=>e(s,{src:Je(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{Na(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield sa({evaluateGoodsId:a,isLocalMock:!i}),yield x("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(o)},children:"删除"}):null]}),o.shopReply&&o.shopReply.length?e(l,{className:"merchant-reply",children:o.shopReply.map((({evaluateReplyContent:o},s)=>a(l,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:o})]},s)))}):null]})},pl=({evaluateArr:o})=>{const{View:l}=u();return console.log(7,o),e(l,{className:"goodsDetailEvaluate",children:o.length?a(l,{children:[a(l,{className:"topInfo",children:["评价 (",o.length,")"]}),o.slice(0,5).map(((a,o)=>e(hl,{item:a},o)))]}):e(No,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ul=process.env.REACT_APP_BASE_URL,gl=({goodsRemark:a})=>{const{View:o}=u(),l=i((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${ul}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ca,{nodes:l})})},Nl=({goodsRemark:o})=>{const{View:l}=u(),[s,c]=t({}),[r,d]=t(!1),m=i((()=>{const e=window.location.hash.split("?")[1]||"";return new URLSearchParams(e).get("skuCode")||""}),[window.location.hash]),p=h((e=>Na(void 0,void 0,void 0,(function*(){if(e){d(!0);try{const a=yield V({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}))),[]);n((()=>{p(m)}),[m,p]);const g=s.rsPropertiesValueDomainList||[];return a(l,{className:"goodsDetail-info",children:[g.length>0&&e(l,{style:{fontSize:12,marginTop:10,display:"grid",borderRadius:6,background:"#fff",border:"solid 1px #f1f1f1",padding:"10px 40px",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px"},children:g.map(((o,s)=>a(l,{style:{marginRight:25,marginLeft:10},children:[" ",e(l,{style:{color:"black",fontSize:13,fontWeight:500},children:o.propertiesName}),e(l,{style:{color:"gray",fontSize:11},children:o.propertiesValueValue||"--"})]},s)))}),r&&e(l,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},fl=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=u(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"商品规格",id:"3"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(o,{children:d.map(((o,t)=>e(p,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},yl=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=u(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=ee(n,i),p=pe(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(fl,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(gl,{goodsRemark:m}):2===r?e(pl,{evaluateArr:p,evaluateImgShow:l,evaluateImg:s}):1===r?e(Nl,{goodsRemark:m}):null})]})},bl=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=u(),r=ce((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:o}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,o)=>e(i,{className:y({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:l.bind(null,a.specValueValue,n),children:a.specValueValue},o)))})]})},{Stepper:Cl}=N,vl=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{u();const t=s||1,n=l||999;return e(Cl,{value:a,max:n,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l===a+1)return a>=n?void x("超库存","none"):void o("plus");if(l===a-1)return a<=t?void x(`起购数为${t}`,"none"):void o("minus");if(l<t)x(`起购数为${t}`,"none");else if(l>n)x("超库存","none");else if(l!==a){const e=ae.getState();ae.setState(Object.assign(Object.assign({},e),{count:l}))}},style:{"--height":"24px","--button-width":"24px","--input-background-color":"transparent","--button-text-color":"#6A6C6D","--border-inner":"none","--border-radius":"4px","--button-background-color":"#F6F8FB","--input-width":"60px"}})},xl=s((({handleStep:a,goodsNum:o,goodsMinnum:l})=>{const{View:s}=u(),t=ce((e=>e.count));return e(s,{className:"countWrap",children:e(vl,{count:t,handleStep:a,goodsNum:o,goodsMinnum:l})})})),Sl=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:n,handleStep:i})=>{const{Image:c,View:r}=u(),{skuList:d}=l,m=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ba(n.pricesetNprice);return a(o,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(c,{src:Je(n.dataPic),alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:n.goodsName}),e(r,{className:"price",children:m}),e(xl,{handleStep:i,goodsNum:n.goodsNum,goodsMinnum:n.goodsMinnum})]})]}),d.map(((a,o)=>e(bl,{goodsShowname:n.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},kl=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=u(),c=ce((e=>e.isNeedButton)),r=ce((e=>e.offShelf));return r?e(i,{className:y({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(o,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:l,children:"立即购买"})]})})},wl=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=u(),{spec:c,goodInfo:r}=le(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:g}=ue(l,s,t,o);return a(n,{className:"goodsDetail-size-popup",children:[e(_a,{children:e(i,{children:e(n,{className:"content",children:e(Sl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r,handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})})})}),e(kl,{cashImpl:p,addShoppingImpl:g,addCardImpl:h})]})})),Il=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=u();return e(n,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(wl,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},Tl=s((({serverShow:l,cartShow:s,lPartShow:i,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:p,rPartText:g,dispatchPageStore:N,skuCode:f,platform:y,scene:b})=>{const{View:v,IconMobile:x,Text:k,Image:I}=u(),T=ce((e=>e.offShelf)),{rsSkuDomainList:B,goodPro:P}=ee(f,b),{goodInfo:V}=le(B);fa(y);const{addCardPopup:D,buyOpenPopup:L}=re(N),[R,A]=t("10px"),O="WEAPP"===w.getEnv();return n((()=>{const e=(()=>{try{const e=w.getSystemInfoSync(),a=w.getEnv();if(a===w.ENV_TYPE.WEAPP||a===w.ENV_TYPE.ALIPAY||a===w.ENV_TYPE.SWAN||a===w.ENV_TYPE.TT||a===w.ENV_TYPE.JD){let a=0;if(e.safeArea&&e.safeArea.bottom)a=e.screenHeight-e.safeArea.bottom;else if(e.safeAreaInsets&&e.safeAreaInsets.bottom)a=e.safeAreaInsets.bottom;else if(e.model){const o=e.model.toLowerCase();(o.includes("iphone x")||o.includes("iphone 11")||o.includes("iphone 12")||o.includes("iphone 13")||o.includes("iphone 14")||o.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();A(e)}),[]),a(v,{className:"goodsDetailHandleBar",style:{paddingBottom:R},children:[a(v,{className:"linkGroup server",style:{display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>{w.switchTab({url:"/pages/index/index"})},children:[e(I,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(v,{className:"txt",children:"首页"})]}),a(v,{className:"linkGroup server",onClick:()=>{if(O){const e=S("user")||{},a=w.requirePlugin("myPlugin");a._$configAppKey("aedc9c55479bc8755e93ce57df0c21a8"),a._$configAppId("wx1a29bb679e0c3ff0"),a._$setUserInfo({userId:e.userId||"",data:[{key:"real_name",value:e.userPhone||""},{key:"mobile_phone",value:e.userNickname||""}]}),w.navigateTo({url:"plugin://myPlugin/chat"})}else!function(){const e="https://qiyukf.com/script/aedc9c55479bc8755e93ce57df0c21a8.js?templateId=8142060&shuntId=8142060&sessionInvite=false&hidden=0",a=document.querySelector(`script[src="${e}"]`);a&&a.remove();const o=document.createElement("script");o.src=e,o.type="text/javascript",o.async=!0,o.onload=()=>{const e=localStorage.getItem("user"),a=JSON.parse(e||"{}");a?ysf("config",{uid:null==a?void 0:a.userCode,name:null==a?void 0:a.userNickname,mobile:null==a?void 0:a.userPhone,authToken:"authToken",level:1,success(){ysf.open()}}):(ysf.logoff(),ysf("config",{uid:"",name:"",mobile:"",success(){ysf.open()}}))},o.onerror=()=>{console.error("七鱼客服脚本加载失败")},document.body.appendChild(o)}()},style:{display:l?"block":"none"},children:[e(x,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(v,{className:"txt",children:"客服"})]}),a(v,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:s?"block":"none"},children:[e(x,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(v,{className:"txt",children:"购物车"})]}),e(v,{className:"goods-detail-btn-group",children:T?e(v,{className:"btn addCart offShelf",children:e(k,{className:"btn",children:"已下架"})}):a(o,{children:["26"===P||!1===i?null:e(v,{className:"btn addCart",onClick:D,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(v,{onClick:L,className:"btn buy",style:Object.assign({color:m,backgroundColor:h,borderTopRightRadius:p,borderBottomRightRadius:p},!1===i?{borderTopLeftRadius:p,borderBottomLeftRadius:p}:{}),children:g||("10"===V.goodsPro?"预售抢购":"立即购买")})]})})]})})),Bl=l=>{var{$_dataSource:s={},dispatchPageStore:t=M,skuCode:n,scene:i}=l,c=ga(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ee(n,i),h=ge(r,m),{popupVisible:p}=s;return a(o,{children:[e(Tl,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(Il,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},Pl=s((({serverShow:o,cartShow:l,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:p,scene:g,platform:N})=>{const{View:f,IconMobile:y}=u(),{rsSkuDomainList:b}=ee(p,g),{goodInfo:v}=le(b),{servicePopup:x}=fa(N),{addCardPopup:S,buyOpenPopup:k}=re(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:l?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"购物车"})]}),a(f,{className:"goods-detail-one-btn-group",children:[e(f,{className:"btn addCart",onClick:S,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0"},children:"加入购物车"}),e(f,{onClick:k,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===v.goodsPro?"预售抢购":"立即购买"})]})]})})),Vl=l=>{var{popupVisible:s=!1,dispatchPageStore:t=M,skuCode:n,scene:i}=l,c=ga(l,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ee(n,i),h=ge(r,m);return a(o,{children:[e(Pl,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(Il,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},Dl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Ll=({setParams:o,activeColor:l})=>{const{View:s}=u(),[n,i]=t(0),[c,r]=t(Dl);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===m?"active":""),onClick:()=>((e,a,l)=>{i(a),l&&r((e=>(e[a].order="asc"===l?"desc":"asc",[...e]))),o({sortField:e,order:l})})(c,m,t),style:{color:n===m?l:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ma,{style:{color:n===m&&"asc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ma,{style:{color:n===m&&"asc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Rl=s((({classtreeCode:o="",searchParam:l="",activeColor:s="#e54e29",isHotSale:n=!1,goodsName:c=!0,goodsPrice:r=!0,lineationGoods:d=!0,salesQuantity:m=!0,goodsCar:h=!0,borderRadius:p=!0,goodsColor:g=!0,goodsGap:N=10,paddingLR:f=0,__link__:b={}})=>{console.log(111,b);const{View:C,Loading:v,SmoothView:x,Image:S,ScrollView:k,IconMobile:w}=u(),[I,T]=t({}),{loading:B,getData:P,list:V}=Ne(o,l,I,n),D=i((()=>y("textBox",{btm:!r&&!d})),[r,d]),L=i((()=>y("name",{boxNone:!c})),[c]),R=i((()=>y("middle_margin",{boxNone:!m})),[m]),A=i((()=>y("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),O=i((()=>y({detailContent:!(L.includes("boxNone")&&R.includes("boxNone")&&A.includes("boxNone"))})),[L,R,A]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(Ll,{setParams:T,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${f}px`},children:e(_a,{id:"listWrap",children:a(k,{onScroll:()=>P(I),children:[e(C,{className:"list",style:{gap:N},children:V.map((o=>a(C,{onClick:()=>aa(b,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:g?"4px 4px 4px #969292":""},children:[e(S,{src:Je(o.dataPic),className:"img"}),a(C,{className:O,children:[e(x,{className:L,children:o.goodsName}),a(C,{className:R,children:["已售:",o.goodsNum]}),a(C,{className:A,children:[a(C,{className:D,children:[e(x,{className:"price",style:{display:r?"block":"none"},children:ba(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ba(o.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(w,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},o.skuCode)))}),B?e(v,{}):null]})})})]})})),Al=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=u(),{cartIsEditor:d}=o,{editorImpl:m}=fe(a),h=i((()=>({border:l?`2px solid ${s}`:"",color:l?t:"",background:l?n:"",borderRadius:l?c:""})),[l,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Ol=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:n}=u();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:o}),e(t,{className:"choose",children:e(n,{"data-code":l,checked:l,value:s})})]})})),Ml=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=u();return e(n,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(_a,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Ol,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},zl=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=u();return e(o,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:l}),a(d,{className:"cartItem-size",children:["规格:",t," X ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ba(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),$l=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:n}=u(),c=i((()=>{let a="";switch(l){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==l?e(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[l]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:o,onClick:()=>C("goodDetail",{skuCode:s})})]})})),Yl=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:n}=u(),c=i((()=>(a||0===l)&&s.includes(o)),[s,a,o,l]);return console.log(106,typeof o),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==l,checked:c,value:o,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),jl=({promotion:l=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=u(),[d,m]=t(!1),h=i((()=>((l||[]).find((e=>e.promotionCode===c))||{}).promotionName),[l]);return a(o,{children:[h&&a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(Ml,{promotionCode:c,onChange:e=>{m(!1),s(n,be(e))},promotion:l||[],visible:d,setVisible:m})})]})},El=s((o=>{var{item:l}=o,s=ga(o,["item"]);const{View:t}=u(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(Yl,{cartIsEditor:i,dataState:l.dataState,select:n,shoppingGoodsId:l.shoppingGoodsId}),e($l,{dataState:l.dataState,dataPic:Je(l.dataPic),skuCode:l.skuCode}),e(zl,Object.assign({},l,s))]})})),Fl=l=>{var{shoppingGoodsList:s=[]}=l,t=ga(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(p,{children:[e(El,Object.assign({},t,{item:o})),o.pmPromotionList?e(jl,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},Gl=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=u(),n=i((()=>O(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>aa(l,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[l]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:o}),n]})},Wl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:n,SmoothView:i}=u();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:l}),o&&e(Gl,{link:t,disNextMsg:o})]})},_l=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=u(),{cartSelect:m,cartUpdateCount:h,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:y,handleStep:b,updatePm:C}=ye(l,h,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:y,children:f.length?e(o,{children:f.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},h)=>a(p,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Wl,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(Fl,{cartIsEditor:g,promotionCode:l,handleStep:b,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:i})]})]},h)))}):e(No,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Hl=({$_dataSource:o={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:l,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=u(),{cartInfo:p,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=o,{toOrderImpl:y,deleteCart:b,clearAll:C,selectAll:v,ids:x,cartDetail:S}=Ce(N,p,l),k=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:p.length===N.length?["true"]:[],onChange:v,children:e(h,{checked:p.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[x.length?e(r,{onClick:C,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ba(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ba(S.amount)})]})]}),a(r,{onClick:y,className:"btn",style:k,children:["结算(",S.num,")"]})]})]})},Ul=({address:a})=>e(o,{children:O(a)?e(ql,{}):e(Kl,{address:a})}),Kl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=u(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:l,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=o;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,address:e+l+s+t}}),[o]);return a(l,{className:"address-info",children:[a(l,{className:"left",children:[e(t,{style:{fontWeight:900,color:"#34C0BC"},value:"shouhuodizhi"}),e(s,{className:"left-detail",children:n.address}),e(t,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]}),a(l,{className:"left-title",children:[e(s,{children:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]})]})},ql=()=>{const{View:l,Text:s}=u();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Jl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:n=""})=>{const{View:i}=u(),c=ve(a,l,o,s,t,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(Ul,{address:c})})},Ql=({address:a})=>e(o,{children:O(a)?e(Zl,{}):e(Xl,{address:a})}),Xl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=u(),n=i((()=>{const{provinceName:e,cityName:a,areaName:l,addressDetail:s,addressMember:t="",addressPhone:n=""}=o;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(l||"")+(s||"")}}),[o]);return a(l,{className:"address-info",children:[a(l,{className:"left",children:[e(t,{style:{fontWeight:900,color:"#34C0BC"},value:"shouhuodizhi"}),e(s,{className:"left-detail",children:n.address}),e(t,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]}),a(l,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]})]})},Zl=()=>{const{View:l,Text:s}=u();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},es=({refreshNum:a})=>{const{View:o}=u(),l=xe(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Ql,{address:l})})},as=({tabActive:l,setTabActive:s,tabs:t})=>{const{Text:n}=u();return e(o,{children:t.map(((o,t)=>e(p,{children:a(n,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(n,{className:"line"})]})},o.id)))})},os=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:i="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=u(),h="235990605097"===(ae.getState().memberCode||""),p=h?"1":"0",[g,N]=t(p),f=h?[{title:"自提",id:"1"}]:[{title:"快递",id:"0"},{title:"自提",id:"1"}];return n((()=>{Se.contractPumode=g,ke.setState({contractPmode:g})}),[g]),a(d,{className:"placeOrderAddressTabs",children:[e(d,{className:"delivery-header",children:e(d,{className:"tabs",children:e(as,{tabActive:g,setTabActive:N,tabs:f})})}),e(d,{className:"content",children:"0"===g?e(Jl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(es,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:i})})]})},ls=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=u();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:l}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[oa(o).format("YYYY-MM-DD")," - ",oa(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),ss=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=u();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:l}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[oa(o).format("YYYY-MM-DD")," - ",oa(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),ts=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:p,Popup:N,Form:f,SmoothRadio:y,Button:b,SmoothCheckbox:C,ScrollView:v,Radio:x,Image:S}=u(),{shoppingGoodsList:k}=we({refreshNum:l,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:w,visible:I,couponValue:T=[],setVisible:B,selectCoupon:P,onChange:V,onCreditChange:D,confirmImpl:L,resetImpl:R,contractPmode:A,onPayChange:O,payList:M,payName:z,creditList:$,creditInfo:Y,selectCredit:j,creditVisible:E,payVisible:F,setPayVisible:G,handleChooseImg:W,contractEcurl:_,setCreditVisible:H}=Ie(k,s);return console.log("shoppingGoodsList",k),a(o,{children:[k.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(o,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==w.length),children:[e(p,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(p,{className:"label",children:P?`已选择: ${P}`:0===w.length?"暂无可用优惠券":"请选择优惠券"}),0===w.length?null:e("img",{src:Eo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select pay-mode",onClick:()=>G(!0),children:[e(p,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(S,{src:z?z.includes("余额")?"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/balance.png":"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/onlinepay.png":"",className:"pay-method-icon"}),e(p,{className:"label",children:z}),0===w.length?null:e("img",{src:Eo,alt:"",className:"icon"})]}),e(g,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]})]}),Y.urechargeId&&"0"===A&&a(h,{className:"coupon-select",onClick:()=>H(0!==$.length),children:[e(p,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(p,{className:"label",children:j?0===+j?"不使用":`已选择: ${j}%`:"请选择授信"}),0===w.length?null:e("img",{src:Eo,alt:"",className:"icon"})]})]}),"1"===A&&a(h,{className:"coupon-select",children:[e(p,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:W,children:_?e(S,{src:_,className:"img",alt:_,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(N,{popupVisible:F,popupHandler:G,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(_a,{children:e(v,{children:e(y,{value:A||"",onChange:O,children:(null==M?void 0:M.length)>0&&M.map(((o,l)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(x,{checked:o.ptfpmodeType===A,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(N,{popupVisible:E,popupHandler:H,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(_a,{children:e(v,{children:e(y,{onChange:D,children:(null==$?void 0:$.length)>0&&$.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(x,{value:o.flagSettingInfo}),0===o.flagSettingInfo?"不使用":`${o.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(N,{popupVisible:I,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(_a,{children:e(v,{children:s?e(C,{value:(null==T?void 0:T.length)>0?T.map((e=>e.couponNo)):[],onChange:V,children:(null==w?void 0:w.length)>0&&w.map((e=>m(ls,Object.assign({isDisabled:2===T.length},e,{key:e.couponNo}))))},"visible"):e(y,{value:(null==T?void 0:T.length)>0?T[0].couponNo:"",onChange:V,children:w.map(((e,a)=>m(ss,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(b,{className:"operate reset",onClick:R,children:"重置"}),e(b,{className:"operate",onClick:L,children:"确认"})]})]})})]})},ns=()=>{const{View:o}=u(),l=Te(),s="235990605097"===(ae.getState().memberCode||"")||"1"===l.contractPmode?"自提":"快递";return e(o,{className:"info placeOrder-blcWrap",children:a(o,{className:"express placeOrder-blcItem",style:{width:"100%"},children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:s})]})})},is=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=u(),{list:d}=we({refreshNum:a,goodsNum:l,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],l)=>e(o,{children:(a||[]).map(((a,o)=>e(oo,Object.assign({},a),l)))})))})},cs=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:p,Textarea:g}=u(),N=g||p,f=we({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:y,disCount:b,creditMoney:C,freight:v,payPrice:x,rebMoney:S}=f,k=f.pointsDeduction||0,w=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:T,changeContent:B,shoppingType:P,pricesetRefrice:V}=Be(y),D=ba(Math.max(x-C,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:["06"===P?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ba(I)})]}),null!==k&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===P?k+"积分":ba(k)]})]}),"06"===P?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ba(w)]})]}),"06"===P?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ba(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ba(-S.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ba(-(T+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ba(v)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:B})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":D})]})]})})},rs=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:p,Text:g,WrapLoading:N}=u(),{payPrice:f,list:y,payState:b,creditMoney:C,ocContractSettlList:v,pointsDeduction:x}=we({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:S,loading:k}=Pe({ocContractSettlList:v,payState:b,list:y,goodsBeanStr:r},d,Math.max(f-C,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const w=ba(Math.max(f-C,0));return a(p,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",e(g,{className:"price-value",children:r?"0.00":w})]}),e(N,{loading:k,children:e(p,{className:"btn",onClick:S,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ds=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>v()),[]),p=ae.getState().memberCode||"",g="235990605097"===p,{View:N,Text:f,Radio:y,IconMobile:b,WrapLoading:C,SmoothRadio:x,Image:S}=u(),{paymentImpl:k,channelList:w,contract:I,handleRadio:T,loading:B}=Ve({contractBillcode:o,contractBbillcode:l,memberCode:p}),P=i((()=>g?null==w?void 0:w.filter((e=>"1"===e.ptfchannelAmt)):null==w?void 0:w.filter((e=>"1"!==e.ptfchannelAmt))),[w,g]);return n((()=>{console.log("打印下当前的channelList",P),window.onPaymentFullfilled=e=>{console.log(e,"orderId-----------"),reLaunchHandler("result",{code:e})}}),[]),a(N,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px","--adm-color-primary":"#34C0BC"},children:[a(N,{className:"paymentMode",children:[a(N,{className:"topInfo",children:[a(N,{className:"info",children:["实付金额",e(f,{className:"price",children:ba(I.current.orderMoney)})]}),a(N,{className:"info",children:["订单总金额:",ba(I.current.contMoney+(I.current.logMoney||0)),"元 | 订单号:",I.current.contractBillcode]})]}),a(N,{className:"paymentGroup",children:[e(f,{className:"paymentGroupTitle",children:"选择支付方式"}),e(x,{onChange:T,children:null==P?void 0:P.map((o=>a(N,{className:"paymentItem",children:[e(S,{className:"paymentIcon",style:{width:38,height:38},src:"1"===o.ptfchannelAmt?"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/balance.png":"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/onlinepay.png"}),e(N,{className:"paymentItemContent",children:a(N,{className:"base",style:{alignItems:"center"},children:[e(f,{children:o.fchannelName}),"1"===o.ptfchannelAmt?a(N,{style:{fontSize:12,color:"#999",marginLeft:"auto",marginRight:10},children:["可用余额:¥",o.faccountAmount]}):null,e(y,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]})})]},o.fchannelCode)))})]})]}),e(N,{id:"v_html"}),e(C,{loading:B,children:e(N,{style:{position:"fixed",bottom:10,left:0,right:0},className:"btnGroup",onClick:B?void 0:k,children:e(N,{className:"payment",children:"立即支付"})})})]})})),ms=({dataObj:o})=>{const{View:l,Text:s}=u();return a(l,{className:"placeOrderResultWrap",children:[a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:o.contractBillcode})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ba(o.dataBmoney)})]})]})},hs=s((({code:o,goodsBeanStr:l,borderRadius:s,leftColor:t,leftButtonColor:n,leftBorderColor:i,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:g,paddingTop:N,paddingBottom:f})=>{const{View:y,Text:b,IconMobile:v,WrapLoading:x}=u(),{result:k,loading:w}=De(o||(S("contractBillcode")||{}).contractBillcode,l);return e(y,{className:"placeOrderResult",style:{paddingTop:N,paddingBottom:f},children:e(x,{loading:w,children:a(y,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(v,{value:k.icon,style:{fontSize:"35px",color:k.color}}),a(y,{className:"tips",children:[e(b,{className:"title",children:k.msg}),e(b,{className:"tip",children:k.info})]}),"success"===k.sysRecode&&e(ms,{dataObj:k.dataObj}),a(y,{className:"btnGroup",style:{marginTop:20},children:[e(y,{className:"btn black",onClick:()=>l?C("orderlist"):C(k.menuCode,{contractBillcode:k.dataObj.contractBillcode}),style:{color:t,backgroundColor:n,border:`1px solid ${i}`,borderRadius:1===c?"20px":"0px"},children:k.buttonText}),e(y,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===g?"20px":"0px"},onClick:()=>C(d.value),className:"btn white",children:r})]})]})})})})),{Button:ps}=N,us=a=>{var{dataState:l}=a,s=ga(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(gs,Object.assign({dataState:l},s))})},gs=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=ga(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=u();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=Le(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e(ps,{style:{color:t,borderColor:n,backgroundColor:i},className:y({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},Ns=({contractPaydate:l,init:s,countdownCancel:i,contractId:c})=>{const{View:r,Text:d,SmoothView:m}=u(),{resultTime:h}=((e,a,o,l)=>{const[s,i]=t("");return n((()=>{const a=setTimeout((()=>{const a=new Date(e),s=new Date,t=a.getTime()-(s.getTime()-3600);t<999&&t>0?o(l).then((()=>{w.eventCenter.trigger("switchOrderTab")})):t>1e3&&i(va(t,""))}),1e3);return()=>{clearTimeout(a)}}),[s]),{resultTime:s}})(l,0,i,c);return e(o,{children:h?a(r,{className:"card-item-info-countDown",children:[e(ra,{}),e(d,{className:"count-down-text",children:e(m,{children:h})}),e(d,{children:"后将取消订单,请尽快支付"})]}):null})};function fs({memberName:o,contractBillcode:l,dataBmoney:s,dataBnum:t,goodsList:n,dataState:i,contractId:c,init:r,contractAppraise:d,borderRadius:m,orderSpacing:h,contractPaydate:p,contractType:g,countdownCancel:N}){const{View:f,SmoothView:y,Image:b}=u(),v=Re(i,d);return a(f,{className:"orderListItem",style:{borderRadius:m?8:"",marginTop:h,marginBottom:h},children:[a(f,{children:[a(f,{className:"topInfo",children:[a(f,{className:"shop-info-wrap",style:{display:"flex",alignItems:"center"},children:[e(b,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(y,{className:"sku shop-name",children:o})]}),e(f,{className:"orderNo"}),e(f,{className:"status",style:(e=>{switch(e){case"待付款":return{color:"#FF2D1E"};case"待发货":return{color:"#FA8752"};case"待收货":return{color:"#FFC82C"};case"已完成":case"待评价":case"已评价":return{color:"#34C0BC"};case"已取消":return{color:"#999999"}}})(v),children:v})]}),e(f,{className:"goodsItemWrap",onClick:()=>C("orderDetail",{contractBillcode:l}),children:n.map((a=>e(oo,Object.assign({},a,{dataState:i}),a.contractGoodsId)))}),i&&e(Ns,{contractPaydate:p,init:r,countdownCancel:N,contractId:c})]}),a(f,{className:"allInfo",children:[a(f,{className:"totalNum",children:["共",t,"件商品"]}),a(f,{className:"totalPrice",children:["合计 ",ba(s)]})]}),e(us,{init:r,contractType:g,contractId:c,contractBillcode:l,dataState:i,contractAppraise:d,dataBmoney:s})]})}const ys=()=>{const{View:a,Image:o}=u();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const bs=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=u(),{onScroll:d,data:h,loading:p,init:g,countdownCancel:N}=Ae(o,l,n);return e(i,{className:"orderListItemWrap",children:e(_a,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(fs,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:p?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(ys,{}),e(i,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Cs=process.env.TARO_ENV;let vs=Oe;if(console.log("platform",Cs),"h5"==Cs){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(vs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=w.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(vs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const xs=s((({refreshNum:a=0,indexId:o=0,borderRadius:l=!1,orderSpacing:s=12,contractType:i=""})=>{const{View:c,Tabs:r}=u(),[d,m]=t(o);return n((()=>{const e=()=>{const e=vs.findIndex((e=>"-1"===e.code));m(e)};return w.eventCenter.on("switchOrderTab",e),()=>{w.eventCenter.off("switchOrderTab",e)}}),[]),e(c,{className:"order-container",children:e(r,{defaultIndex:+d,tabs:vs,render:o=>e(c,{className:"orderList",children:e(bs,{contractType:i,item:o,orderSpacing:s,refreshNum:a,borderRadius:l})})},d)})})),{Button:Ss}=N,ks=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=i((()=>v()),[]),n=i((()=>s?b():null),[s]),c=e=>Na(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const o=document.execCommand("copy");if(document.body.removeChild(a),!o)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(Ss,{className:"copy",size:"mini",fill:"outline",onClick:()=>Na(void 0,void 0,void 0,(function*(){if(a)try{s&&n&&n.setClipboardData?(yield new Promise(((e,o)=>{n.setClipboardData({data:a,success:e,fail:o})})),r("复制成功","success"),l(!0)):(yield c(a),r("复制成功","success"),l(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:o?"已复制":"复制"})})),ws=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:h})=>{const{View:g,Text:N,Image:f}=u(),{orderDetail:y,handleApplyBtn:b,creditMoney:v,packageRemark:x,expressName:S}=Me(l||""),k=e=>oa(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Re(y.dataState)?e(ma,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Re(y.dataState,y.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:k(y.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(ma,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:y.goodsReceiptMem}),e(N,{className:"personPhone",children:y.goodsReceiptPhone})]}),e(g,{className:"address",children:y.goodsReceiptArrdess})]}),e(g,{className:"rPart",children:[1,2,3].includes(Number(null==y?void 0:y.dataState))&&e(N,{onClick:()=>C("addressList",{contractBillcode:y.contractBillcode}),children:"编辑"})})]}),a(g,{className:"orderDetailGoodsWrap",children:[y.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{C("goodDetail",{skuCode:l.skuCode})},children:[e(oo,Object.assign({},l),l.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),C(h,{skuCode:l.skuCode})},children:"商品快照"}),Number(y.dataState)>1&&Number(y.dataState)<4&&"06"!==y.contractType&&"08"!==y.contractType?e(g,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),b.bind(null,l,y.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(g,{className:"priceInfo",children:"06"!=y.contractType?a(p,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",y.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((y.dataBmoney-y.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",y.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-y.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(o,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:S||"暂无物流信息"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===y.contractPumode?"自提":"快递"})]})]}),"06"!==y.contractType&&a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:0===y.contractInvstate?"未开票":1===y.contractInvstate?"已提交":"已开票"})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",y.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:x||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:y.contractBillcode}),e(ks,{copyContent:y.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:k(y.gmtCreate)})]}),"06"!=y.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ba(-v)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===y.contractPmode?"线上支付":"线下支付"})})]}),"1"===y.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:Je(y.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(us,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:y.contractBillcode,contractId:y.contractId,contractType:y.contractType,dataState:y.dataState,contractInvstate:y.contractInvstate,dataBmoney:y.dataBmoney,contractAppraise:y.contractAppraise})})]})})]})})),Is=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:n}=u(),i=R(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=R(l,"packageList.length",o.count),r=R(l,"packageList[0].expressName",o.expressName),d=R(l,"packageList[0].packageBillno",o.packageBillno),m=R(s,"state",o.result)||"-1";return a(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},Ts=({defaultValue:o,detail:l})=>{const{View:s}=u(),t=R(l,"message",o.message),n=R(l,"data",o.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.map(((o,l)=>a(s,{className:"step",children:[e(s,{className:"time",children:o.time}),e(s,{children:o.context})]},l))):e(s,{className:"noInfo",children:t})})},Bs=s((({code:o,defaultValue:l})=>{const{View:s}=u(),{info:t,detail:n,stateObj:i}=ze(o);return a(s,{className:"expressInfo",children:[e(Is,{info:t,detail:n,stateObj:i,defaultValue:l}),e(Ts,{detail:n,defaultValue:l})]})})),Ps=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:p}=u(),{servicePopup:g}=fa(),[N,f]=t(c),[y,b]=t(i);return n((()=>{f(S("userNickname")),b(S("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${l}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>C("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(p,{src:y,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),Vs=s((({title:o,columnList:l})=>{const{View:s,Text:i,Badge:c,Image:r}=u(),[d,m]=t({}),[h,p]=t(0),g=()=>Na(void 0,void 0,void 0,(function*(){try{const e=yield D();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}}));n((()=>{const e=S("myPageShowNum")||0;p(e),g();const a=setInterval((()=>{const e=S("myPageShowNum")||0;e!==h&&(p(e),g())}),500);return()=>{clearInterval(a)}}),[h]);const N=(e,a)=>{4!==e.id?C("orderlist",{indexId:a+1}):C("afterSalesList")};return console.log(333,l,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:o}),e(s,{className:"more",onClick:()=>C("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:N.bind(null,o,l),className:"contentItem",style:{display:o.show?"block":"none"},children:[e(c,Object.assign({},d[o.code]>0?{content:d[o.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:o.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:o.label})]},l)))})]})})),Ds=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=u();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>C(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Je(o.imgUrl),className:"icon"}),e(n,{className:"label",children:o.link.label})]}),e(i,{value:"xiangyou1"})]},l)))})})),Ls=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=u(),{Rate:c}=N;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":l,"--active-color":o}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,o)=>e(i,{src:a.imgUrl,className:"img"},o)))})]})},Rs=[{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"}]}],As=s((()=>{const[l,s]=t("1"),{View:n}=u(),i=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(o,{children:[e(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===l?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:Rs.map(((a,o)=>e(Ls,{itemData:a},o)))})]})})),Os=s((({code:o,borderRadius:l,borderColor:s,color:n,buttonColor:i,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:g,Submit:f,changeContent:y,addImg:C,removeImg:v,getImgUrls:x}=$e(o),{Button:S}=N,{View:k,Image:w,TextArea:I,Textarea:T}=u(),B=T||I,P="WEAPP"===b().getEnv(),V="undefined"!=typeof window,[D,L]=t(0),R=c("宝贝满足你吗?分享一下它吧"),A=e=>{L(e);if(x(e).length>=3)if(P){b().showToast({title:"最多上传3张图片",icon:"none"})}else V&&alert("最多上传3张图片");else(()=>{if(P){const e=b(),a=3-x(D).length;if(a<=0)return void e.showToast({title:"最多上传3张图片",icon:"none"});e.chooseImage({count:a,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){var a;(e.tempFilePaths||(null===(a=e.tempFiles)||void 0===a?void 0:a.map((e=>e.path)))||[]).forEach((e=>{C(D,e)}))}})}else if(V){const e=3-x(D).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const o=a.target.files;o&&o.length>0&&Array.from(o).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(D,a)}))},a.click()}})()};return a(k,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((o,s)=>a(p,{children:[a(k,{className:"topInfo",children:[a(k,{className:"lPart",children:[e(w,{src:Je(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(k,{className:"goodsInfo",children:[e(k,{className:"goodsName",children:o.goodsName}),e(k,{className:"goodsSize",children:o.skuName})]})]}),e(k,{className:"rPart",children:a(k,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(k,{className:"rate",children:[e(k,{className:"title",children:"商品评价"}),e(ml,{onChange:g.bind(null,s)})]}),e(k,{className:"evaluate",children:e(B,{className:"content",placeholder:R.current,rows:5,maxLength:30,onInput:y.bind(null,s)})}),a(k,{className:"upload-imgs",children:[e(k,{className:"upload-title",children:"上传图片 (最多3张)"}),a(k,{className:"img-list",children:[a(k,{className:"upload-btn",onClick:()=>A(s),children:[e(ma,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(k,{className:"upload-text",children:"上传图片"})]}),x(s).map(((o,l)=>a(k,{className:"img-item",children:[e(w,{className:"preview-img",src:o,onClick:()=>(e=>{if(P){const a=b(),o=x(D);a.previewImage({current:e,urls:o})}else V&&window.open(e,"_blank")})(o)}),e(k,{className:"delete-btn",onClick:()=>v(s,l),children:"×"})]},l)))]})]})]},s))),e(S,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:f,children:"提交"})]})})),Ms=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:h}=Ye(o),{Button:g}=N,{View:f,Image:y,Text:b}=u();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(p,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(y,{src:Je(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:o.goodsName}),e(f,{className:"goodsSize",children:o.skuName})]})]}),e(f,{className:"rPart",children:o.pricesetNprice&&a(f,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(ml,{readOnly:!0,count:(null===(t=o.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:o.evaluateGoodsContent||""})})}),o.evaluateGoodsImgs&&e(f,{className:"evaluate-imgs",children:(()=>{let a=[];const s=o.evaluateGoodsImgs;if("string"==typeof s&&s.startsWith("["))try{a=JSON.parse(s)}catch(e){a=[]}else"string"==typeof s&&(a=s.split(",").filter(Boolean));return a.map(((a,o)=>e(y,{className:"evaluate-img",src:Je(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s)})),m.length?e(g,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:h,children:"删除"}):null]})})),zs=({item:o,edit:l,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=u(),r=s.includes(o.collectCode);return a(t,{className:"collectItem",children:[l?e(i,{className:"lPart",value:o.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(o.dataState)||C("goodDetail",{skuCode:o.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(n,{src:Je(o.collectOppic),className:"img"}),e(t,{className:[2,3].includes(o.dataState)?"tag":"",children:[2,3].includes(o.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:o.collectOpcont}),a(c,{className:"price",children:[o.collectOpnum," 元"]})]})]})]})},$s=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,setChecked:d,handleSelectAll:m,selectAllChecked:h,setSelectAllChecked:p}=je(),{View:g,ScrollView:N,SmoothCheckbox:f,Checkbox:y,Button:b,Image:C}=u();return e(g,{className:"collectList",children:0===o.length?e(g,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(g,{className:"hasDate",children:[e(g,{className:"topBar",children:e(g,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(_a,{id:"topBar",children:a(N,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(f,{value:r,onChange:n,style:{height:"100%"},children:o.map((a=>e(zs,{item:a,edit:l,checked:r},a.collectId)))}),l?a(g,{className:"handleBar",children:[e(g,{className:"checkAll",style:{width:"130px"},children:e(y,{value:"1",checked:h,onChange:()=>{if(!h){const e=o.map((e=>e.collectCode));d(e),p(!0)}else d([]),p(!1)},children:"全选"})}),e(b,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Ys=({item:o,edit:l,checked:s})=>{var t,n;const{View:i,Image:c,Checkbox:r,SmoothView:d}=u();return a(i,{className:"collectItem",children:[l?e(r,{className:"lPart",value:o.collectCode,checked:s}):null,a(i,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:o.collectOpcode}),children:[e(c,{src:Je(null===(t=o.shopdeInfo)||void 0===t?void 0:t.shopdeLogo),className:"img"}),a(i,{className:"info",children:[e(d,{className:"title",children:o.collectOpcont}),e(d,{className:"scope",children:null===(n=o.shopdeInfo)||void 0===n?void 0:n.shopdeScope})]})]})]})},js=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=je(1),{View:h,ScrollView:p,SmoothCheckbox:g,Checkbox:N,Button:f,Image:y}=u();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(y,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(_a,{id:"topBar",children:a(p,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{value:r,onChange:n,style:{height:"100%"},children:o.map(((a,o)=>e(Ys,{item:a,edit:l,checked:r},a.collectId||o)))}),l?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",style:{width:"130px"},children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Es=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=u(),r=i((()=>o.footprintOpnum?`${o.footprintOpnum}元`:""),[o.footprintOpnum]);return a(s,{className:"footprintItem",children:[l?e(s,{className:"lPart",children:e(n,{value:o.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:Je(o.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:o.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Fs=({item:l,edit:s})=>{const{View:t}=u();return a(t,{className:"footPrint",children:[e(o,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==l?void 0:l.title})}),l.option.map(((a,o)=>e(Es,{footprintItem:a,edit:s},o)))]})},Gs=({footprintList:a,edit:l})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?oa(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=z(e,"gmtCreate");return Object.keys(o).map((e=>({title:e||"",option:o[e]})))}),[a]);return e(o,{children:s.map(((a,o)=>e(Fs,{item:a,edit:l},o)))})},Ws=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:n}=u(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:p,checked:g}=Ee();return e(n,{loading:p,children:e(o,{className:"footprint",children:a(o,{className:"hasDate",children:[e(o,{className:"topBar",children:e(o,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(_a,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:g,onChange:d,children:e(Gs,{footprintList:i,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),_s=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=u(),{signedDates:p,pointsNum:g,loading:N,signing:f,handleSignin:y}=Fe(),b=oa(),C=b.format("YYYY-MM-DD"),v=i((()=>p.includes(C)),[p,C]),x=i((()=>{const e=b.year(),a=b.month(),o=oa(`${e}-${a+1}-01`),l=o.endOf("month"),s=o.day(),t=0===s?6:s-1,n=o.subtract(t,"day"),i=l.day(),c=0===i?0:7-i,r=l.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:p.includes(e)}),m=m.add(1,"day")}return d}),[b,p]),S=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:S})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,o)=>e(c,{className:"weekDay",children:e(r,{children:a})},o)))}),e(c,{className:"calendarGrid",children:x.map(((o,s)=>a(c,{className:`calendarDay ${o.isCurrentMonth?"":"otherMonth"} ${o.isToday?"today":""} ${o.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:o.isToday?{color:l}:{},children:o.date.date()}),o.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:v||f,onClick:y,style:{backgroundColor:l,opacity:v?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":v?"已签到":o})]})]})})})),Hs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=u(),[h,p]=t((()=>oa())),[g,N]=t(!1),[f,y]=t((()=>oa().year())),[b,C]=t((()=>oa().month()+1)),{signinDetails:v,loading:x,refresh:S}=Ge(h),k=i((()=>h.format("YYYY年MM月")),[h]),w=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>v.sort(((e,a)=>oa(a.date).valueOf()-oa(e.date).valueOf()))),[v]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:o}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;y(e),C(a),N(!0)},children:[e(r,{className:"dateText",children:k}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((o,s)=>{const t=oa(o.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:l},children:["+",o.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{y((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{y((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:w.map((o=>e(c,{className:"monthItem "+(b===o?"active":""),onClick:()=>(e=>{C(e);const a=oa(`${f}-${String(e).padStart(2,"0")}-01`);p(a),N(!1)})(o),style:b===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Us=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ks=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=u();return e(s,{className:"promotionListTab",children:Us.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},n)))})})),qs=({data:o})=>{const{View:l}=u(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,promotionEndtime:c}=o;return a(l,{className:"promotionItem",children:[a(l,{className:"lPart",children:[e(l,{className:"round"}),e(l,{className:"tagBg",children:a(l,{className:"txt",children:["官方",s]})}),e(l,{className:"rule",children:n.at(-1).discName}),e(l,{className:"title",children:t}),a(l,{className:"time",children:[oa(i).format("YYYY-MM-DD")," ~ ",oa(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},Js=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[n,i]=t(Us[0].val),{list:c,getData:r}=We({params:n}),{View:d,ScrollView:m}=u();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Ks,{activeColor:o,setParams:i,params:n}),e(d,{children:e(_a,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(qs,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=u(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})}));const Qs=()=>{const{View:a,Image:o}=u();return e(a,{className:"noData",children:e(o,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Xs=({list:l,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=u();return e(o,{children:l.length?l.map(((l,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===l.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:l.pbName}),e(d,{className:"title",children:l.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||l.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",l.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",oa(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",oa(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",oa(l.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===l.dataState?e(o,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Qs,{})})},Zs=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=u(),{coe:d,getList:m,config:h,switchTab:p,list:g=[]}=_e();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((o,l)=>a(i,{className:"couponTabItem "+(d.current===l?"active":""),onClick:()=>p(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(_a,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Xs,{backgroundColor:o,color:l,queue:n,list:g,coe:d,config:h})})})})]})})),et=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:p}=u(),{list:g,takeCoupon:N,takeList:f}=He({defaultValue:o,coupons:l});return e(p,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((o,l)=>{const m=R(o,"pbName"),h=R(o,"pmPromotionDiscountList"),u=R(h.at(-1),"discName"),g=R(o,"promotionName"),y=oa(R(o,"promotionBegintime")).format("YYYY-MM-DD"),b=oa(R(o,"promotionEndtime")).format("YYYY-MM-DD"),C=R(o,"promotionCode");return a(p,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(p,{className:"lPart",children:[a(p,{className:"intro",children:[e(p,{className:"type",style:{color:i},children:m}),e(p,{className:"rule",style:{color:r},children:u})]}),a(p,{className:"info",children:[e(p,{className:"title",style:{color:c},children:g}),a(p,{className:"validity",style:{color:d},children:[y," - ",b]})]})]}),e(p,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||f.includes(l)?e(p,{className:"txt",children:"已 领 取"}):e(p,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),at=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:g}=u(),{list:N,takeCoupon:f,takeList:y}=He({defaultValue:o,coupons:l});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=R(o,"pbName"),h=R(o,"pmPromotionDiscountList"),p=R(h.at(-1),"discName"),u=R(o,"promotionName"),N=oa(R(o,"promotionBegintime")).format("YYYY-MM-DD"),b=oa(R(o,"promotionEndtime")).format("YYYY-MM-DD"),C=R(o,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),e(g,{className:"info",style:{color:r},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||y.includes(l)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),ot=s((o=>{var{type:l=1,coupons:s=[]}=o,t=ga(o,["type","coupons"]);const{View:n}=u();return a(n,{className:"getCouponOne",children:[1===l?e(et,Object.assign({coupons:s},t)):null,2===l?e(at,Object.assign({coupons:s},t)):null]})})),lt=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:n}=Ue(l);return e(f,{navigator:n,color:s,speed:o,direction:a,content:t})},st=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=u(),{info:r}=Ke(o);return a(i,{className:"noticeDetailContainer",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(i,{className:"content",children:r.noticeContext})]})})),tt=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=qe(o),{View:c,ScrollView:r}=u(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:p}=i;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(_a,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:p}),a(c,{className:"time",children:["发布时间:",oa(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{vo as AddressDetail,fo as AddressList,yo as AddressListBtn,qa as AfterSalesApply,io as AfterSalesDetail,ao as AfterSalesList,ho as AfterSalesType,Js as AllPromotionList,tt as ArticleDetail,ja as BackTop,_l as CartList,Hl as CartOperate,Al as CartTop,Ra as ClassifyNav,Ma as ClassifyNavOne,Oa as ClassifyNavOneJsx,Ya as ClassifyNavThree,za as ClassifyNavTwo,$s as CollectionList,js as CollectionShopList,Zs as CouponList,Fa as Cube,Os as EvaluateDetail,As as EvaluateList,Ms as EvaluateViewDetail,Bs as ExpressInfo,Ws as FootPrint,ot as GetCouponOne,Ho as Goods,Vo as GoodsClassify,Oo as GoodsClassifyOne,Yo as GoodsClassifyTwo,yl as GoodsDetailAndEvaluate,Qo as GoodsDetailBanner,dl as GoodsDetailCoupon,Bl as GoodsDetailHandleBar,Vl as GoodsDetailHandleBarOne,ol as GoodsDetailInfo,sl as GoodsDetailInfoOne,il as GoodsDetailPromotion,nl as GoodsDetailSku,Rl as GoodsList,Uo as GoodsSlider,Ko as GoodsSlideshow,ua as Line,_s as MemberSignin,Ps as MineData,Ds as MineFunction,Vs as MineOrderEntry,xo as MyAgreementList,ko as MySetting,So as MySettingJsx,lt as Notice,st as NoticeDetail,ws as OrderDetail,xs as OrderList,ds as PaymentMode,Io as PickupPointList,Jl as PlaceOrderAddress,os as PlaceOrderAddressTabs,ts as PlaceOrderCoupon,ns as PlaceOrderDelivery,is as PlaceOrderGood,cs as PlaceOrderInfo,rs as PlaceOrderOperate,hs as PlaceOrderResult,ma as QjMobileIcon,Go as Search,_o as SearchPage,Wo as SearchStyleTwo,da as Service,Hs as SigninDetail,Va as Slider,pa as TextLine,ha as Title,xa as ToPrice,Da as Video,To as WechatAddressBtn,ya as addressIdConst,ba as fixPrice,Ca as fixPrice1,va as formatTime,fa as useService};
|
|
1
|
+
import{jsx as e,jsxs as a,Fragment as o}from"react/jsx-runtime";import l,{memo as s,useState as t,useEffect as n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,useCallback as h,Fragment as p}from"react";import{useComponent as u,IconMobile as g,antdMobile as N,NoticeBar as f}from"@brushes/simulate-component";import y from"classnames";import{getTaro as b,navigatorHandler as C,getEnv as v,taroMessage as x,getStorage as S,setStorage as k}from"@brushes/utils";import w,{useRouter as I}from"@tarojs/taro";import{queryOcsconfigList as T,getAddress as B,find as P,goodsDetailQuery as V,getContractNumbers as D}from"qj-b2c-api";import{queryOcserviceConfPageByMember as L}from"qj-b2b-api";import{get as R,isEqual as O,isEmpty as A,noop as M,groupBy as $}from"lodash-es";import{useCube as z,useGoTop as Y,useAfterSalesApply as j,useAfterSalesList as E,afterSalesTabConfig as F,useAfterSalesDetail as G,useAfterSalesChooseType as W,useAddressItem as _,useAddressList as H,useEditAddress as U,useMySetting as K,usePickupPointItem as q,usePickupPointList as J,useGoodsClassify as Q,useGoods as X,useGoodCollection as Z,useGoodDetail as ee,goodStore as ae,useBanner as oe,useGoodSpecAndPrice as le,useGoodFootprint as se,useCreatePoster as te,useCreateMiniPoster as ne,useGoodsShare as ie,useGoodSkuStore as ce,popupImplement as re,usePromotion as de,useAddCoupon as me,useCoupon as he,useEvaluate as pe,useAddShopping as ue,useGoodSku as ge,useGoodsList as Ne,useCartTop as fe,useCartListNext as ye,getRadioValue as be,useCartOperate as Ce,useOrderAddress as ve,useOrderPickupAddress as xe,userAddressData as Se,orderStore as ke,useOrderGood as we,useOrderCoupon as Ie,useSyncOrderStore as Te,useOrderInfo as Be,useOrderPay as Pe,useOrderResult as Ve,useOrderResultResult as De,useOrderOperate as Le,orderStatusImpl as Re,useOrderList as Oe,orderStatusList as Ae,useOrderDetail as Me,useExpressInfo as $e,useEvaluateDetail as ze,useEvaluateViewDetail as Ye,useCollectionList as je,useFootprint as Ee,useMemberSignin as Fe,useSigninDetail as Ge,useMarketingPromotion as We,useCouponList as _e,useAllCoupon as He,useNotice as Ue,useNoticeDetail as Ke,useArticleDetail as qe}from"qj-b2c-store";import{fullPath as Je,checkMobile as Qe,ProvinceComponent as Xe,CityComponent as Ze,AreaComponent as ea,navigatorLink as aa}from"@brushes/shared-utils";import oa from"dayjs";import{updateContractAddress as la,deleteEvaluateGoods as sa}from"b2c-api";import{DynamicForm as ta}from"@brushes/mobile-form";import{View as na,Image as ia,RichText as ca}from"@tarojs/components";import{ClockCircleOutline as ra}from"antd-mobile-icons";const da=s((({width:a,height:o,top:l,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=u();return e(c,{style:{width:a,height:o,borderRadius:i,top:l,left:n,right:s,bottom:t},className:"components-service"})})),ma=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=u();return e(n,{onClick:l,className:y(o,t?`${o}-${t}`:"",a),style:s})},ha=s((({value:l,shared:s,goPath:t,goPointsPath:n,textIndent:i,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:g,paddingTop:N,paddingLeft:f,paddingRight:y,paddingBottom:v})=>{const{View:x,IconMobile:S,Button:k}=u(),I=b(),T="WEB"===w.getEnv(),B=()=>{const e=b();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(x,{className:"components-title",style:{paddingTop:N,paddingBottom:v},children:[e(x,{onClick:()=>{var e;e=l,t?C("goodList",{searchParam:e}):n&&C("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:p,fontStyle:g,paddingLeft:f,paddingRight:y,textIndent:i},children:l}),s&&e(o,{children:T?e(x,{onClick:e=>{var a;e.stopPropagation(),T?B():null===(a=null==I?void 0:I.showShareMenu)||void 0===a||a.call(I,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})},children:e(S,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(k,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(S,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})})),pa=({TextLineBgColor:o,text:l,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:p}=u();return a(p,{className:"textLine",style:{backgroundColor:o,textAlign:i,margin:1===s?"0 10px":""},children:[e(p,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(p,{className:"txt",style:{backgroundColor:o,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${n}px`,color:c},children:l})]})},ua=s((({borderStyle:a,borderRadius:o,height:l,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=u();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:o+"%",borderStyle:a,width:s+"%",height:l+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ga(e,a){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&a.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(o[l[s]]=e[l[s]])}return o}function Na(e,a,o,l){return new(o||(o=Promise))((function(s,t){function n(e){try{c(l.next(e))}catch(e){t(e)}}function i(e){try{c(l.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(n,i)}c((l=l.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const fa=(e="b2c")=>{const[a,o]=t([]),l=i((()=>v()),[]);n((()=>{Na(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>Na(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield T();case"b2b":return yield L().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=R(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${R(l,"ocserviceConfRemark")}: ${R(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${R(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;b().showActionSheet({itemList:a})}}},ya={label:""},ba=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",Ca=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",va=(e,a)=>{const o=Math.floor(e/1e3)%60,l=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${l}分钟 ${o}秒${a}`},xa=e=>1===String(e).indexOf(".")?Sa(e):ka(e),Sa=e=>{const a=Number(e).toFixed(0),o=(Number(e)-Number(a)).toFixed(2),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+"."+String(o).slice(2)},ka=e=>{const a=Number(e).toFixed(0),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+".00"},wa=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Ia=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?wa+e:e?wa+"/paas/shop/"+e:e),[e]),Ta=({src:a,style:o,actived:l})=>{const s=c(null);return n((()=>{s.current&&(l?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[l]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:o,src:a})},Ba=s((({item:a,isPlay:l,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=u(),d=Ia(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Ta,{actived:l,style:{height:"100%",overflow:"hidden"},src:d}):e(c,{mode:"scaleToFill",src:d,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:C.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),Pa=s((({Position:l="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:p,paddingBottom:g,paddingLeft:N,paddingRight:f,selectImg:b,imgHeight:C,fontsize:v=16,textAlign:x="center",fontColor:S="#000000",backGroundColor:k="#ffffff"})=>{const w=i((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:I,View:T}=u(),B=z(n,b||[]),P=a=>e(T,{className:t,style:{fontSize:v,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:S,backgroundColor:k},children:a.title});return e(T,{className:s,style:{paddingTop:p,paddingBottom:g,paddingLeft:N,paddingRight:f},children:e(I,{imgHeight:C,data:B,className:w,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?P(s):null,e(Ba,{isPlay:t===n,item:s,position:l,direction:m})]})})})})),Va=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:g,paddingTB:N=0,paddingLR:f=0,fontsize:b=16,textAlign:C="center",fontColor:v="#000000",backGroundColor:x="#ffffff",otherStyles:S=[],ImgShadow:k=!1,Position:w="top"})=>{const{View:I}=u(),T=i((()=>y("silder-title",{"silder-tops1":"top"===w&&"horizontal"===d,"silder-bottoms":"bottom"===w&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===w,"silder-tops":"vertical"===d&&"top"===w},...S)),[S,w]);return e(I,{style:{padding:`${N}px ${f}px`},children:e(Pa,{Position:w,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:g,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:b,textAlign:C,fontColor:v,backGroundColor:x,className:y({"outer-shadow":k}),className1:T})})})),Da=s((({url:a,poster:o,autoplay:l,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=u();return e(r,{style:{paddingTop:t,paddingBottom:n},children:e("video",{className:"components-video",src:a,poster:o,autoPlay:l,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:i,paddingRight:c}})})})),La=({src:a,borderRadius:o})=>{const{Image:l}=u(),s=Ia(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},Ra=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=u(),r=z(o,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((o,s)=>a(i,{className:"classifyNavItem",onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(o),children:[e(La,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),Oa=({src:a,imgRadius:o,imgBoxShadow:l})=>{const{Image:s}=u(),t=Ia(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none"}})},Aa=({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=u(),p=z(a,o);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:l,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:p.map(((a,o)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},children:e(Oa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},o)))})},Ma=s(Aa),$a=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:p,marginBottom:g})=>{const{View:N}=u(),f=z(a,o),b=i((()=>y("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:p,marginBottom:g},children:f.map(((a,o)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,o;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:b,style:{fontSize:c,color:r},children:a.title})},o)))})})),za=a=>{const{imgRadius:o,imgBoxShadow:l,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=u(),m=Ia(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return C(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ya=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:g,marginBottom:N})=>{const{View:f}=u(),y=z(a,o);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:y.map(((a,o)=>e(za,{layout:p,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},o)))})})),ja=s((({position:a=10,bg:o,color:l,fontSize:s})=>{const t=i((()=>v()),[]),{View:n}=u(),{goTop:c}=Y();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(ma,{style:{display:"inline-block",color:l,fontSize:s,backgroundColor:o,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Ea=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=u(),n=Ia(l.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===o?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href=`${window.location.origin}/paas/extra-index/index.html`:C(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},Fa=s((({defaultValue:a,type:o,borderRadius:l,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=u(),p=z(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${o}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:p.map(((a,t)=>e(Ea,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Ga=l.createContext(null),Wa=s((()=>{const{View:a}=u(),{tip:o}=r(Ga);return e(a,{className:"afterSalesApplyTip",children:o})}));const _a=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=ga(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>v()),[]),m=function(e){const[a,o]=t(0);return n((()=>{if(!v()||!e)return;const a=b().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;o(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!v())return 0;const a=b(),o=+a.getStorageSync("safeArea"),l=+(a.getStorageSync("tabBarHeight")||0);return o+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?l:0)+(e?+e:0)}),[])}(o),{View:p}=u(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,b().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${b().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(p,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:l}))},Ha=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=u(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:p}=r(Ga);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:p,children:e(o,{className:"reasonPopup",children:e(_a,{children:a(n,{children:[e(o,{className:"title",children:"退款原因"}),e(l,{onChange:h,children:m.map(((l,t)=>a(o,{className:"reasonItem",children:[e(o,{className:"label",children:l.flagSettingInfo}),e(s,{value:l.flagSettingInfo})]},t)))})]})})})})})})),Ua=s((()=>{const{View:o}=u(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:n}=r(Ga);return a(o,{className:"afterSalesApplyFillIn",children:[a(o,{className:"reason",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款原因"})]}),e(o,{className:"choose",onClick:l,children:t?e(o,{className:"chooseResult",children:t}):a(o,{children:["请选择",e(ma,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(o,{className:"price",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款金额"})]}),e(o,{className:"allPrice",children:e(o,{className:"single",children:ba(n)})})]}),e(Ha,{popupShow:s})]})})),Ka=s((()=>{const{View:o,TextArea:l,Textarea:s}=u(),t=s||l,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Ga);return a(o,{className:"afterSalesApplySubFillIn",children:[e(o,{className:"title",children:"补充描述和凭证"}),a(o,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(o,{className:"imgGroup",children:[i.length<m?e(o,{className:"add",onClick:n,children:a(o,{className:"addContent",children:[e(ma,{value:"shangchuanpingzheng"}),e(o,{className:"word",children:"上传凭证"}),a(o,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,l)=>e(o,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(o,{className:"cancel",onClick:d.bind(null,l),children:e(ma,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),qa=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=u(),{tip:p,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:y,handleChooseReason:b,reason:C,handleChooseImg:v,imgGroup:x,placeholder:S,handleDelImg:k,limit:w,goodsInfo:I,handleFillInReason:T,handleSubmit:B,loading:P}=j({contractBillcode:l,skuCode:s});return e(h,{loading:P,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Ga.Provider,{value:{tip:p,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:y,handleChooseReason:b,reason:C,handleChooseImg:v,imgGroup:x,placeholder:S,handleDelImg:k,limit:w,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:T,handleSubmit:B},children:[e(Wa,{}),e(Ua,{}),e(Ka,{}),e(m,{className:"submitBtn",onClick:B.bind(null,t,l,o,n),children:"确定"})]})})})},Ja={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Qa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Xa=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:n,Image:i}=u();return a(n,{className:"afterSalesListItem",onClick:l.bind(null,o.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",o.refundCode]}),a(n,{className:"rPart",children:[e(ma,{style:{color:null===(s=Ja[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ja[o.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ja[o.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Je(o.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:o.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",o.ocRefundGoodsList[0].refundGoodsNum]}),a(n,{className:"count",children:["订单编号: ",o.contractBbillcode]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Qa[o.refundType][o.dataState]}),e(ma,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Za=s((()=>{const{View:a}=u();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),eo=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=u(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=E(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(_a,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Xa,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(Za,{})})})})})})),ao=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=u();return e(n,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:o=>e(eo,{item:o,refreshNum:a})})})})),oo=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h,contractBillcode:p})=>{const{View:g,Image:N,SmoothView:f}=u(),y="06"===d?m+"积分":ba(n),b=i((()=>t?`x ${t}`:""),[t]),C=(e=>{const a="string"==typeof e?e:"";if(!/^https?:\/\//i.test(a))return a;const o=a.indexOf("/paas/");return-1===o?a:a.slice(o).replace(/\/+/g,"/")})(l);return e(o,{children:a(g,{className:"card-item",children:[e(N,{src:Je(C),alt:"",className:"card-item-img"}),a(g,{className:"card-item-info",children:[a(g,{className:"card-item-info-container",children:[e(f,{className:"good-name",children:s}),e(f,{className:"shop-info-price",children:y})]}),a(g,{className:"card-item-info-sub",children:[a(f,{className:"sku",children:["规格:",c]}),e(f,{className:"count",children:b})]}),a(g,{className:"orderNo",style:{fontSize:12,color:"#999"},children:["订单号: ",p]}),r]})]})})},lo=(e,a)=>{if("B01"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"}[a]}if("B02"===e){return{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}[a]}},so=l.createContext(null),to=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(so),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=u();return e(d,{popupVisible:l,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(_a,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:o.map(((o,l)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:o.expressName}),e(c,{value:`${o.expressName}-${o.expressCode}`})]},l)))})]})})})})})),no=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(so),{View:i,Input:c}=u();return a(o,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:l,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(to,{})]})})),io=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:g,packageName:N,setPackageBillno:f,loading:y}=G({refundCode:l}),{contractBbillcode:b,dataState:C,gmtCreate:v,ocRefundGoodsList:x,refundMoney:S,refundMeo:k,refundEx:w,refundType:I,ocRefundFileList:T,goodsReceiptMem:B,goodsReceiptPhone:P,goodsReceiptArrdess:V,packageCode:D,packageBillno:L,packageName:R}=c,{View:O,Image:A,WrapLoading:M}=u();return e(M,{loading:y,children:e(O,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(so.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:p,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(O,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(O,{className:"left_text",children:lo(I,C)}),e(O,{className:"right_time",children:oa(v).format("YYYY-MM-DD HH:mm:ss")})]}),e(O,{className:"afterSalesDetailContent",children:a(O,{className:"refundDetail",children:[e(O,{className:"title",children:"退款信息"}),e(O,{className:"goodsDetail",children:null==x?void 0:x.map(((a,o)=>e(oo,{dataPic:Je(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},o)))}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"订单编号"}),e(O,{className:"right",children:b})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款原因"}),e(O,{className:"right",children:w})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款金额"}),e(O,{className:"right",children:S})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"描述说明"}),e(O,{className:"right",children:k})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"补充凭证"}),e(O,{className:"right",children:null==T?void 0:T.map(((a,o)=>e(A,{src:Je(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"申请时间"}),e(O,{className:"right",children:oa(v).format("YYYY-MM-DD HH:mm:ss")})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"退款编号"}),e(O,{className:"right",children:l})]}),e(o,{children:"B02"===I?a(o,{children:[C>0?a(O,{className:"merchantMsg",children:[e(O,{className:"title",children:"商家信息"}),a(O,{className:"name",children:[B," ",P]}),e(O,{className:"address",children:V})]}):"",1===C?a(O,{className:"writeMsg",children:[e(O,{className:"wlMsg",children:"物流信息"}),e(no,{})]}):"",C>1?a(O,{className:"writeMsg",children:[e(O,{className:"wlMsg",children:"物流信息"}),a(O,{className:"express_content",children:[e(O,{className:"name",children:"物流单号"}),e(O,{className:"code",children:L})]}),a(O,{className:"express_content",children:[e(O,{className:"name",children:"物流公司"}),e(O,{className:"code",children:R})]})]}):""]}):""})]})}),0===C?e(O,{className:"footerBtn",children:e(O,{className:"btn",onClick:d.bind(null,x[0].goodsCode),children:"撤销申请"})}):null]})})})})),co=l.createContext(null),ro=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=u(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(co),{goodsName:p,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ba(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:Je(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:p}),e(t,{className:"price",children:f})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:g}),a(o,{className:"stepWrap",children:[e(ma,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(o,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),mo=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:n}=u(),{goApply:i,goodsNum:c}=r(co);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((o,l)=>a(n,{className:"item",onClick:i.bind(null,o.value,s,t,c),children:[e(n,{className:"headline",children:o.label}),e(ma,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),ho=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:g,goApply:N,loading:f,goodsPrice:y}=W({contractBillcode:l,skuCode:s}),{View:b,WrapLoading:C}=u();return e(C,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(co.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:p,goodsInfo:g,goApply:N,goodsPrice:y},children:[e(ro,{}),e(mo,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},po=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=u();return e(s,{value:o?[l.addressId]:[],onChange:a,children:e(t,{value:l.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},uo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:n}=u(),{handlerImpl:i}=_(o),c=I(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[o.addressMember," ",o.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[o.provinceName," ",o.areaName," ",o.cityName," ",o.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(po,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>C("editAddress",{addressId:o.addressId}),children:"编辑"}),r.contractBillcode?e(n,{className:"del",onClick:()=>Na(void 0,void 0,void 0,(function*(){const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;yield la({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),C("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(n,{className:"del",onClick:l,children:"删除"})]})]})]})},go=s((()=>{const{View:a,Skeleton:l}=u(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})})),No=s((({url:o,title:l,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=u();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:o}),e(i,{className:"title",children:l}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>C(t),children:["去看看",e(g,{value:"xiangyou1"})]}):null]})})})),fo=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=u(),{list:r,delAddress:d,setDefault:m,skullShow:h}=H(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(go,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(uo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(No,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),yo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=u();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>C("addressEditor"),children:"+ 新增地址"})})})),bo=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],Co=[{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"text",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:Qe}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Xe}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Ze}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:ea}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],vo=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=u(),[m,h]=t({}),[p,g]=t(!!r),{Button:f}=N,{onSubmit:y}=U(r);if(n((()=>{Na(void 0,void 0,void 0,(function*(){if(r){g(!0);let e=yield B({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),g(!1)}else g(!1)}))}),[r]),!p)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(ta,{initialValues:m,footer:e(f,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:bo,onSubmit:y,fields:Co})})})),xo=s((()=>{const{View:o}=u(),l=e=>{C(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(o,{className:"myAgreementList",children:e(o,{className:"list",children:s.current.map(((s,t)=>a(o,{className:"item",onClick:l.bind(null,s.type),children:[e(o,{children:s.label}),e(o,{children:e(g,{value:"xiangyou1"})})]},t)))})})})),So=()=>{const{View:o}=u(),{mySettingGoBind:l,mySettingLogout:s}=K();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(ma,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},ko=s(So),wo=({itemData:o})=>{const{View:l,Text:s}=u(),{handlerImpl:t}=q(o);return e(l,{className:"addressItem",children:a(l,{className:"upInfo",onClick:t,children:[e(l,{className:"userInfo",children:(o.addressMember||"")+" "+(o.addressPhone||"")}),e(l,{className:"addressInfo",children:a(s,{className:"address",children:[o.provinceName||""," ",o.areaName||""," ",o.cityName||""," ",o.addressDetail||""]})})]})})},Io=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=u(),{list:c,loading:r,skullShow:d,onScroll:m}=J(o);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:d?e(go,{}):e(t,{className:"addressList",children:e(_a,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,o)=>e(wo,{itemData:a},a&&a.userinfoOcode||o))),r&&e(i,{})]}):e(No,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),To=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=u();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>Na(void 0,void 0,void 0,(function*(){yield x("导入成功","none")})),children:"导入微信收件地址"})})})),Bo=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=u();return e(o,{children:l.map((o=>e(n,{className:["content",s===`${o.goodsClassCode}`?" active":""].join(""),children:((null==o?void 0:o.childList)||[]).map((o=>a(n,{className:"classifyFloor",children:["0"===o.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:o.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{className:`container container_columns${t}`,style:{marginTop:"0"===o.goodsClassHide?"":"20px"},children:((null==o?void 0:o.childList)||[]).map((({classtreeCode:o,goodsClassCode:l,goodsClassLogo:s,goodsClassName:t})=>a(n,{onClick:()=>C("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:Po}=N,Vo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=u(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(i,{children:e(_a,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(Po,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(Po.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(Bo,{navList:m,activeKey:r,cell:o})})]})})})})})),Do=d(null),Lo=s((()=>{const{navList:o,activeKey:l,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(Do),{View:d,ScrollView:m}=u(),[h,p]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&p(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:o.map(((a,o)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!0),children:e(g,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!1),children:e(g,{value:"paixusort-sheng"})})}),e(_a,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:o.map(((a,o)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))})})})]}):null]})})),Ro=s((({thirdList:o})=>{const{View:l,Image:s}=u(),{picShadow:t,layout:n}=r(Do);return e(l,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:o.map(((o,n)=>a(l,{className:"goodsClassifyOneFloorItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(s,{src:o.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(l,{className:"title",children:o.goodsClassName})]},n)))})})),Oo=s((()=>{const{navList:o,fCoe:l,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(Do),m=i((()=>v()),[]),{secondList:h,thirdList:p}=(({navList:e,fCoe:a,sCoe:o})=>{const l=i((()=>{var o;return(null===(o=e[a])||void 0===o?void 0:o.childList)||[]}),[a,e]),s=i((()=>{var e;return(null===(e=l[o])||void 0===e?void 0:e.childList)||[]}),[o,a,e]);return{secondList:l,thirdList:s}})({navList:o,fCoe:l,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=u();return e(g,{children:e(_a,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,o)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},o)))}),e(Ro,{thirdList:p})]})})})})})),Ao=s((({selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=u(),{navList:m,activeKey:h,setActiveKey:p}=Q(),[g,N]=t("0"),[f,y]=t("0");return e(Do.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:y,navList:m,activeKey:h,setActiveKey:p,selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(Lo,{}),e(Oo,{})]})})})),Mo=s((({childList:o,layout:l,picShadow:s,style:t})=>{const{View:n,Image:i}=u();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${l}, 1fr)`},t),children:o.map(((o,l)=>a(n,{className:"level3ArrItem",onClick:()=>C("goodList",{classtreeCode:o.classtreeCode}),children:[e(i,{src:o.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:o.goodsClassName})]},l)))})})),$o=s((({navList:o,activeKey:l,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(o.findIndex(m))}),[l,r]);const m=e=>e.goodsClassCode===l,{View:h,Image:p}=u();return a(h,{className:"goodsClassifyTwoContent",children:[e(p,{className:"firstLevelImg",src:R(o[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=R(o[r],"childList"))||void 0===c?void 0:c.map(((o,l)=>a(h,{children:["0"===o.goodsClassHide?e(h,{className:"level2Title",children:o.goodsClassName}):"",e(Mo,{childList:o.childList,layout:s,picShadow:i,style:{marginTop:"0"===o.goodsClassHide?"":"30px"}})]},l)))]})})),{SideBar:zo}=N,Yo=s((({selectFontColor:o,selectBlcShow:l,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=u(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=Q();return e(c,{className:"goodsClassifyTwo",children:e(_a,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(zo,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(zo.Item,{title:a.goodsClassName,className:[l?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":o}},a.goodsClassCode)))})}),e(c,{className:"main",children:e($o,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),jo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/search.png",Eo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/THREE_DOTS.png",Fo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/share.svg",Go=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:p,otherStyles:g=[],__pageConfig:N})=>{const{View:f,Image:b}=u(),v=i((()=>y("txt",...g)),[g]);return e(f,{onClick:()=>C(l),style:{paddingTop:p,paddingBottom:p,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(f,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(b,{src:jo,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(f,{className:v,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),Wo=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:p,paddings:g,otherStyles:N=["mockWeight","mockItalic"],urlPath:f="search"})=>{const{View:b,Image:v}=u(),x=i((()=>y("txt",...N)),[N]),S=w.useRouter(),[k,I]=t("");return n((()=>{var e;if(null===(e=null==S?void 0:S.params)||void 0===e?void 0:e.searchParam){const e=S.params.searchParam,a=decodeURIComponent(e);I(a)}}),[null==S?void 0:S.params]),e(b,{onClick:()=>C(f),style:{paddingTop:g,paddingBottom:g,paddingLeft:d,paddingRight:m},className:h?"boxPosition":"",children:a(b,{className:"components-search",style:{border:`1px solid ${c}`,borderRadius:r?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff",marginTop:"8px"},children:[a(b,{style:{width:"80%"},children:[e(v,{src:jo,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,k?{className:x,style:{color:s,display:"inline-block",fontSize:p},children:k}:{className:x,style:{color:s,display:"inline-block",fontSize:p},children:o})]}),e(b,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:p,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),_o=s((({placeholder:o,placeholderText:l,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:p})=>{const g=c(null),N=i((()=>v()),[]),{View:f,Text:y,Input:x}=u(),[w,I]=t((()=>S("history")||[])),[T,B]=t(""),P=e=>{C(p?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:jo,alt:""}),e(x,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:T,onInput:e=>B(e.detail.value),onConfirm:e=>Na(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const o=a.concat(g.current.value||e.detail.value);return k("history",o),o}return a})),P(g.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(y,{className:"btn",onClick:()=>{const e=T.trim();e&&(I((a=>{if(!a.includes(e)){const o=a.concat(e);return k("history",o),o}return a})),P(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(ma,{onClick:()=>Na(void 0,void 0,void 0,(function*(){(yield b()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:w.map(((a,o)=>e(f,{onClick:()=>P(a),className:"historyItem",children:a},o)))})]}):null]})})),Ho=s((({defaultValue:o=[],classCode:l="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:p=[],markedPrice:g,paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:v,goodsName:x=!0,goodsPrice:S=!0,goodsCar:k=!0,goodsBorder:w=!0,goodsShadow:I=!1,marginGap:T=10})=>{const[B,V]=t(o),D=c(),{View:L,Text:M}=u();return n((()=>{O(D.current,p)||(D.current=p,A(p)?V(o):Na(void 0,void 0,void 0,(function*(){try{const e=yield P({[h]:p.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=R(e,"list",[]);V(a)}catch(e){V(o)}})))}),[p]),e(L,{style:{paddingTop:N,paddingBottom:f},children:e(L,{className:y({[`goods-${l}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:b,paddingRight:v},children:B.map(((o,l)=>a(L,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:w?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(L,{className:"goods-img",style:{backgroundImage:`url(${Je(o.dataPic)})`}}),a(L,{className:"space",children:[e(L,{className:"titleType",style:{display:x?"block":"none"},children:o.goodsName}),e(L,{className:"subTitle",children:o.brandName}),a(L,{className:"price",children:[a(L,{style:{fontSize:18},children:[S?ba(o.pricesetNprice):"",1===g&&e(M,{className:"markedPrice",children:ba(o.pricesetMakeprice)})]}),e(L,{className:"anticon",style:{display:k?"block":"none"},children:e(ma,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})})),Uo=s((({defaultValue:o,goods:l,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:y,marginRight:b})=>{const{View:v}=u(),{list:x}=X({defaultValue:o,goods:l},i);return e(v,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:y,marginRight:b},children:x.map(((o,l)=>a(v,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${g}px`},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(v,{className:"img",style:{backgroundImage:`url(${Je(o.dataPic)})`}}),a(v,{className:"board",children:[e(v,{className:"title",children:o.goodsName}),a(v,{className:"info",children:[a(v,{className:"lPart",children:[s?e(v,{className:"price",children:ba(o.pricesetNprice)}):null,t?e(v,{className:"marketPrice",children:ba(o.pricesetMakeprice)}):null]}),n?e(v,{className:"rPart",children:e(ma,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},l)))})})),Ko=s((({defaultValue:o,goods:l,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:p,goodsShadow:g,btnText:N,btnBg:f,btnColor:y,btnRadius:b})=>{const x=i((()=>v()),[]),{list:S}=X({defaultValue:o,goods:l},m),{SmoothSwiper:k,View:w,Image:I}=u(),[T,B]=t(0);return a(w,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:S,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{B(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:o=>a(w,{className:["goodsSlideshowItem",""+(o.goodsCode===S[T].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:p?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:o.skuCode}),children:[e(I,{className:"logo",src:Je(o.dataPic),mode:"widthFix"}),c?e(w,{className:"goodsName",children:o.goodsShowname}):null,r?a(w,{className:"salesNum",children:["销量:",o.goodsSalesvolume]}):null,d?e(w,{className:"price",children:ba(o.pricesetNprice)}):null,n?e(w,{className:"marketPrice",children:ba(o.pricesetMakeprice)}):null,e(w,{className:"btn",style:{backgroundColor:f,color:y,borderRadius:b},children:N})]})})]})}));var qo=new class{constructor(){this.events={}}on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const o=this.events[e];o&&o.forEach((e=>e(...a)))}off(e,a){const o=this.events[e];o&&(this.events[e]=o.filter((e=>e!==a)))}};const Jo=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:p,loop:g,paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:C,selectImg:v,imgHeight:x,collectParams:S,fontsize:k=16,textAlign:I="center",fontColor:T="#000000",backGroundColor:B="#ffffff"})=>{const P="WEB"===w.getEnv(),V=i((()=>y({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===p}))),{handleCollect:D,collection:L}=Z(S),[R,O]=t(!1),{SmoothSwiper:M,View:$,Button:Y}=u(),j=z(r,v||[]),E=a=>e($,{className:c,style:{fontSize:k,zIndex:99,justifyContent:"left"===I?"flex-start":"center"===I?"center":"flex-end",color:T,backgroundColor:B},children:a.title});return n((()=>{const e=e=>{O(e)};return qo.on("IsCollectionShow",e),()=>{qo.off("IsCollectionShow",e)}}),[]),a($,{className:s,style:{position:"relative",paddingTop:N,paddingBottom:f,paddingLeft:b,paddingRight:C},children:[a($,{style:{position:"absolute",top:10,right:10,zIndex:9,display:"flex",gap:10},children:[e($,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8},children:e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/haibao.svg",onClick:()=>{qo.emit("bannerImageClick","poster")},style:{width:"100%",height:"100%"},alt:"生成海报"})}),e($,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8},children:P?e("img",{src:Fo,onClick:e=>{e.stopPropagation(),qo.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(Y,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Fo})`,backgroundSize:"100% 100%",width:20,height:20,padding:0},className:"wx-share-button"})}),e($,{onClick:D,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8,display:R?"flex":"none"},children:A(L.dataObj)?e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/collect.svg",style:{width:"100%",height:"100%"},alt:"收藏"}):e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/collect-fill.svg",style:{width:"100%",height:"100%"},alt:"收藏"})})]}),e(M,{imgHeight:x,data:j,className:V,type:d,autoplay:m,autoplayInterval:h,direction:p,loop:g,interval:5e3,vertical:"vertical"===p,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?E(s):null,e(Ba,{isPlay:t===n,item:s,position:l,direction:p})]})})]})})),Qo=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:n,memberCode:i=""}=ee(l,s),c=ae.getState();ae.setState(Object.assign(Object.assign({},c),{memberCode:i})),console.log(24,i);const r=oe(t),{goodInfo:d}=le(n),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Je(d.dataPic),skuCode:l};return e(Jo,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function Xo(o){const{content:l,position:s="top"}=o,[n,i]=t(!1);return a(na,{className:"tooltip-wrap",children:[e(na,{className:"tooltip-icon",onClick:()=>i(!n),children:e(ia,{src:`data:image/svg+xml,${encodeURIComponent('\n <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24">\n <circle cx="12" cy="12" r="10" fill="none" stroke="#666" stroke-width="1.5"/>\n <text x="12" y="16" text-anchor="middle" font-family="system-ui" font-size="12" font-weight="bold" fill="#666">?</text>\n </svg>\n ')}`,mode:"aspectFit",style:{width:"24px",height:"24px"}})}),n&&a(na,{className:`tooltip-popup tooltip-${s}`,children:[l,e(na,{className:"tooltip-arrow"})]})]})}const Zo=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!v())return;return"WEB"===b().getEnv()?e(o,{children:a?e(el,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(al,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},el=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=u(),{save:c,canvasRef:r,width:d,height:m}=te(l,s,t);return e(n,{className:"share",children:o?a(n,{className:"share-content",style:{margin:"80px auto"},onClick:e=>{e.stopPropagation()},children:[e(n,{id:"share-canvas-id",className:"share-canvas",children:e("canvas",{ref:r,width:d,height:m,style:{width:`${d}px`,height:`${m}px`}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>l(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},al=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Image:i,Button:c,Canvas:r}=u(),{save:d,width:m,height:h,posterImage:p,setPosterImage:g}=ne(l,s,t,o);return e(n,{style:{zIndex:o?1e3:-10,opacity:o?1:0},className:"share",children:a(n,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[a(n,{className:"share-canvas",id:"share-canvas-id",children:[e(r,{"canvas-id":"canvas",style:{width:`${m}px`,height:`${h}px`,position:"fixed",left:"-9999px",top:"-9999px",opacity:0}}),o&&p&&e(i,{src:p,style:{width:`${m}px`,height:`${h}px`,display:"block"},mode:"aspectFill"})]}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(c,{className:"txt",onClick:()=>{g(""),l(!1)},children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:d,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},ol=({skuCode:o,priceShow:l,collectionShow:s,scene:i})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:p,Button:g,IconMobile:N,Text:f}=u(),{rsSkuDomainList:y,rsGoodsFileDomainList:C,goodsDayinfo:v}=ee(o,i),{goodInfo:x}=le(y);console.log("goodInfo",x);const S=x.mpriceStairDomainListMap||{},k=Object.values(S),I=k.length>0?k[0]:[],T=I.length>0?I.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";se(o);const B=b(),P="WEB"===w.getEnv();qo.emit("IsCollectionShow",{collectionShow:s}),n((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&V()};return qo.on("bannerImageClick",e),()=>{qo.off("bannerImageClick",e)}}),[]);const V=()=>{var e;P?B.setClipboardData({data:window.location.href,success:()=>{B.showToast({title:"复制成功",icon:"success"})},fail:()=>{B.showToast({title:"复制失败",icon:"none"})}}):null===(e=null==B?void 0:B.showShareMenu)||void 0===e||e.call(B,{withShareTicket:!0,menus:["shareAppMessage","shareTimeline"]})};return a(d,{className:"goodsDetail-topInfo",children:[e(Zo,{goodsName:x.goodsName,shareShow:c,setShareShow:r,rsGoodsFileDomainList:C}),a(d,{className:"lPart",children:[e(d,{className:"price-container",children:a(d,{className:"price-content",children:[a(m,{className:"price",style:{display:l?"block":"none"},children:["会员价",e(f,{className:"price-value",children:ba(x.pricesetNprice)})]}),a(m,{className:"sale-price",style:{display:l?"block":"none"},children:["促销价",e(f,{className:"price-value",children:ba(x.pricesetNprice)})]}),T?e(d,{className:"page",children:e(Xo,{content:T,position:"bottom"})}):null]})}),a(m,{className:"name",style:{display:"flex",alignItems:"center"},children:["16"==x.goodsType?e(d,{className:"pre-sale",children:"预售商品"}):null,x.goodsName]}),"16"==x.goodsType&&v&&a(m,{className:"price",children:["预计发货时间:",v,"天内"]})]})]})},ll=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=u(),{handleCollect:n,collection:i}=Z(o),{handleShare:c}=ie();return a(t,{className:"handleBar",children:[l?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:A(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),sl=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=u(),{rsSkuDomainList:r}=ee(t,n),{goodInfo:d}=le(r);return ce((e=>e.spec)),se(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:ba(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(ll,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Je(d.dataPic),skuCode:t})]})})),tl=s((()=>{const{View:o,Text:l}=u(),s=ce((e=>e.count)),t=ce((e=>e.spec));return a(l,{className:"label",children:[e(l,{className:"blod font-14 letter-spacing-1",children:"已选"})," 规格: ",e(l,{className:"blod",children:t.toString()}),e(l,{style:{margin:"0 18px 0 10px"},children:"|"}),"数量: ",e(l,{className:"blod font-14",children:s})]})})),nl=({dispatchPageStore:l})=>{const{View:s,Text:t}=u(),{openPopup:n}=re(l),i=ce((e=>e.goodsSupplynum));return e(o,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[a(s,{className:"goods-supplynum",children:["库存:",e(t,{className:"blod",children:i})]}),a(s,{className:"info",children:[e(tl,{}),e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",className:"icon"})]})]})})},il=({skuCode:o,scene:l})=>{const{View:s,Text:t}=u(),{rsSkuDomainList:n}=ee(o,l),{goodInfo:i}=le(n),c=de(n,i.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label letter-spacing-1",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},o)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},o))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},cl=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=u(),{save:p,isPick:g}=me(),N=i((()=>c-r),[c,r]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:l}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[oa(o).format("YYYY-MM-DD")," - ",oa(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),rl=()=>{const{View:a,Image:o}=u();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},dl=l=>{var{skuCode:s,scene:t}=l;ga(l,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=u(),{rsSkuDomainList:d}=ee(s,t),{goodInfo:h}=le(d),{coupon:p,visible:g,setVisible:N}=he(d,h.skuCode);return a(o,{children:["26"==h.goodsType?null:a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",style:{color:"#000"},children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(_a,{children:p.length>0?p.map(((e,a)=>m(cl,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(rl,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},ml=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:i}=u(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(s){const e=[...c];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!o){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(i,{children:c.map(((a,o)=>e(ma,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},hl=({item:o})=>{const{View:l,Image:s,Text:t,Button:n}=u(),i=v(),c=b();S("user");const{userInfoCode:r}=S("user")||{userInfoCode:""};return a(l,{className:"rateItem",children:[a(l,{className:"topInfo",children:[a(l,{className:"lPart",children:[e(s,{src:o.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(l,{className:"userInfo",children:[e(l,{className:"name",children:o.userName}),e(ml,{readOnly:!0,size:14,count:o.evaluateScopeReList.length})]})]}),e(l,{className:"rPart",children:`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`})]}),a(l,{className:"pj-wrapper",children:[a(l,{className:"flex-1",children:[e(l,{className:"size",children:o.skuName}),e(l,{className:"content",children:o.evaluateGoodsContent}),o.evaluateGoodsImgs&&JSON.parse(o.evaluateGoodsImgs).length>0&&e(l,{className:"img-group",children:JSON.parse(o.evaluateGoodsImgs).map((a=>e(s,{src:Je(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{Na(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield sa({evaluateGoodsId:a,isLocalMock:!i}),yield x("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(o)},children:"删除"}):null]}),o.shopReply&&o.shopReply.length?e(l,{className:"merchant-reply",children:o.shopReply.map((({evaluateReplyContent:o},s)=>a(l,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:o})]},s)))}):null]})},pl=({evaluateArr:o})=>{const{View:l}=u();return console.log(7,o),e(l,{className:"goodsDetailEvaluate",children:o.length?a(l,{children:[a(l,{className:"topInfo",children:["评价 (",o.length,")"]}),o.slice(0,5).map(((a,o)=>e(hl,{item:a},o)))]}):e(No,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ul=process.env.REACT_APP_BASE_URL,gl=({goodsRemark:a})=>{const{View:o}=u(),l=i((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${ul}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ca,{nodes:l})})},Nl=({goodsRemark:o})=>{const{View:l}=u(),[s,c]=t({}),[r,d]=t(!1),m=i((()=>{const e=window.location.hash.split("?")[1]||"";return new URLSearchParams(e).get("skuCode")||""}),[window.location.hash]),p=h((e=>Na(void 0,void 0,void 0,(function*(){if(e){d(!0);try{const a=yield V({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}))),[]);n((()=>{p(m)}),[m,p]);const g=s.rsPropertiesValueDomainList||[];return a(l,{className:"goodsDetail-info",children:[g.length>0&&e(l,{style:{fontSize:12,marginTop:10,display:"grid",borderRadius:6,background:"#fff",border:"solid 1px #f1f1f1",padding:"10px 40px",gridTemplateColumns:"repeat(2, 1fr)",gap:"10px"},children:g.map(((o,s)=>a(l,{style:{marginRight:25,marginLeft:10},children:[" ",e(l,{style:{color:"black",fontSize:13,fontWeight:500},children:o.propertiesName}),e(l,{style:{color:"gray",fontSize:11},children:o.propertiesValueValue||"--"})]},s)))}),r&&e(l,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},fl=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=u(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"商品规格",id:"3"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(o,{children:d.map(((o,t)=>e(p,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},yl=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=u(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=ee(n,i),p=pe(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(fl,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(gl,{goodsRemark:m}):2===r?e(pl,{evaluateArr:p,evaluateImgShow:l,evaluateImg:s}):1===r?e(Nl,{goodsRemark:m}):null})]})},bl=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=u(),r=ce((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:o}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,o)=>e(i,{className:y({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:l.bind(null,a.specValueValue,n),children:a.specValueValue},o)))})]})},{Stepper:Cl}=N,vl=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{u();const t=s||1,n=l||999;return e(Cl,{value:a,max:n,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l===a+1)return a>=n?void x("超库存","none"):void o("plus");if(l===a-1)return a<=t?void x(`起购数为${t}`,"none"):void o("minus");if(l<t)x(`起购数为${t}`,"none");else if(l>n)x("超库存","none");else if(l!==a){const e=ae.getState();ae.setState(Object.assign(Object.assign({},e),{count:l}))}},style:{"--height":"24px","--button-width":"24px","--input-background-color":"transparent","--button-text-color":"#6A6C6D","--border-inner":"none","--border-radius":"4px","--button-background-color":"#F6F8FB","--input-width":"60px"}})},xl=s((({handleStep:a,goodsNum:o,goodsMinnum:l})=>{const{View:s}=u(),t=ce((e=>e.count));return e(s,{className:"countWrap",children:e(vl,{count:t,handleStep:a,goodsNum:o,goodsMinnum:l})})})),Sl=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:n,handleStep:i})=>{const{Image:c,View:r}=u(),{skuList:d}=l,m=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ba(n.pricesetNprice);return a(o,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(c,{src:Je(n.dataPic),alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:n.goodsName}),e(r,{className:"price",children:m}),e(xl,{handleStep:i,goodsNum:n.goodsNum,goodsMinnum:n.goodsMinnum})]})]}),d.map(((a,o)=>e(bl,{goodsShowname:n.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},kl=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=u(),c=ce((e=>e.isNeedButton)),r=ce((e=>e.offShelf));return r?e(i,{className:y({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(o,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:l,children:"立即购买"})]})})},wl=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=u(),{spec:c,goodInfo:r}=le(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:g}=ue(l,s,t,o);return a(n,{className:"goodsDetail-size-popup",children:[e(_a,{children:e(i,{children:e(n,{className:"content",children:e(Sl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r,handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})})})}),e(kl,{cashImpl:p,addShoppingImpl:g,addCardImpl:h})]})})),Il=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=u();return e(n,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(wl,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},Tl=s((({serverShow:l,cartShow:s,lPartShow:i,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:p,rPartText:g,dispatchPageStore:N,skuCode:f,platform:y,scene:b})=>{const{View:v,IconMobile:x,Text:k,Image:I}=u(),T=ce((e=>e.offShelf)),{rsSkuDomainList:B,goodPro:P}=ee(f,b),{goodInfo:V}=le(B);fa(y);const{addCardPopup:D,buyOpenPopup:L}=re(N),[R,O]=t("10px"),A="WEAPP"===w.getEnv();return n((()=>{const e=(()=>{try{const e=w.getSystemInfoSync(),a=w.getEnv();if(a===w.ENV_TYPE.WEAPP||a===w.ENV_TYPE.ALIPAY||a===w.ENV_TYPE.SWAN||a===w.ENV_TYPE.TT||a===w.ENV_TYPE.JD){let a=0;if(e.safeArea&&e.safeArea.bottom)a=e.screenHeight-e.safeArea.bottom;else if(e.safeAreaInsets&&e.safeAreaInsets.bottom)a=e.safeAreaInsets.bottom;else if(e.model){const o=e.model.toLowerCase();(o.includes("iphone x")||o.includes("iphone 11")||o.includes("iphone 12")||o.includes("iphone 13")||o.includes("iphone 14")||o.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();O(e)}),[]),a(v,{className:"goodsDetailHandleBar",style:{paddingBottom:R},children:[a(v,{className:"linkGroup server",style:{display:"flex",flexDirection:"column",alignItems:"center"},onClick:()=>{w.switchTab({url:"/pages/index/index"})},children:[e(I,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(v,{className:"txt",children:"首页"})]}),a(v,{className:"linkGroup server",onClick:()=>{if(A){const e=S("user")||{},a=w.requirePlugin("myPlugin");a._$configAppKey("aedc9c55479bc8755e93ce57df0c21a8"),a._$configAppId("wx1a29bb679e0c3ff0"),a._$setUserInfo({userId:e.userId||"",data:[{key:"real_name",value:e.userPhone||""},{key:"mobile_phone",value:e.userNickname||""}]}),w.navigateTo({url:"plugin://myPlugin/chat"})}else!function(){const e="https://qiyukf.com/script/aedc9c55479bc8755e93ce57df0c21a8.js?templateId=8142060&shuntId=8142060&sessionInvite=false&hidden=0",a=document.querySelector(`script[src="${e}"]`);a&&a.remove();const o=document.createElement("script");o.src=e,o.type="text/javascript",o.async=!0,o.onload=()=>{const e=localStorage.getItem("user"),a=JSON.parse(e||"{}");a?ysf("config",{uid:null==a?void 0:a.userCode,name:null==a?void 0:a.userNickname,mobile:null==a?void 0:a.userPhone,authToken:"authToken",level:1,success(){ysf.open()}}):(ysf.logoff(),ysf("config",{uid:"",name:"",mobile:"",success(){ysf.open()}}))},o.onerror=()=>{console.error("七鱼客服脚本加载失败")},document.body.appendChild(o)}()},style:{display:l?"block":"none"},children:[e(x,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(v,{className:"txt",children:"客服"})]}),a(v,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:s?"block":"none"},children:[e(x,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(v,{className:"txt",children:"购物车"})]}),e(v,{className:"goods-detail-btn-group",children:T?e(v,{className:"btn addCart offShelf",children:e(k,{className:"btn",children:"已下架"})}):a(o,{children:["26"===P||!1===i?null:e(v,{className:"btn addCart",onClick:D,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(v,{onClick:L,className:"btn buy",style:Object.assign({color:m,backgroundColor:h,borderTopRightRadius:p,borderBottomRightRadius:p},!1===i?{borderTopLeftRadius:p,borderBottomLeftRadius:p}:{}),children:g||("10"===V.goodsPro?"预售抢购":"立即购买")})]})})]})})),Bl=l=>{var{$_dataSource:s={},dispatchPageStore:t=M,skuCode:n,scene:i}=l,c=ga(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ee(n,i),h=ge(r,m),{popupVisible:p}=s;return a(o,{children:[e(Tl,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(Il,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},Pl=s((({serverShow:o,cartShow:l,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:p,scene:g,platform:N})=>{const{View:f,IconMobile:y}=u(),{rsSkuDomainList:b}=ee(p,g),{goodInfo:v}=le(b),{servicePopup:x}=fa(N),{addCardPopup:S,buyOpenPopup:k}=re(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:l?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"购物车"})]}),a(f,{className:"goods-detail-one-btn-group",children:[e(f,{className:"btn addCart",onClick:S,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0"},children:"加入购物车"}),e(f,{onClick:k,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===v.goodsPro?"预售抢购":"立即购买"})]})]})})),Vl=l=>{var{popupVisible:s=!1,dispatchPageStore:t=M,skuCode:n,scene:i}=l,c=ga(l,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=ee(n,i),h=ge(r,m);return a(o,{children:[e(Pl,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(Il,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},Dl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Ll=({setParams:o,activeColor:l})=>{const{View:s}=u(),[n,i]=t(0),[c,r]=t(Dl);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===m?"active":""),onClick:()=>((e,a,l)=>{i(a),l&&r((e=>(e[a].order="asc"===l?"desc":"asc",[...e]))),o({sortField:e,order:l})})(c,m,t),style:{color:n===m?l:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ma,{style:{color:n===m&&"asc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ma,{style:{color:n===m&&"asc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Rl=s((({classtreeCode:o="",searchParam:l="",activeColor:s="#e54e29",isHotSale:n=!1,goodsName:c=!0,goodsPrice:r=!0,lineationGoods:d=!0,salesQuantity:m=!0,goodsCar:h=!0,borderRadius:p=!0,goodsColor:g=!0,goodsGap:N=10,paddingLR:f=0,__link__:b={}})=>{console.log(111,b);const{View:C,Loading:v,SmoothView:x,Image:S,ScrollView:k,IconMobile:w}=u(),[I,T]=t({}),{loading:B,getData:P,list:V}=Ne(o,l,I,n),D=i((()=>y("textBox",{btm:!r&&!d})),[r,d]),L=i((()=>y("name",{boxNone:!c})),[c]),R=i((()=>y("middle_margin",{boxNone:!m})),[m]),O=i((()=>y("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),A=i((()=>y({detailContent:!(L.includes("boxNone")&&R.includes("boxNone")&&O.includes("boxNone"))})),[L,R,O]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(Ll,{setParams:T,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${f}px`},children:e(_a,{id:"listWrap",children:a(k,{onScroll:()=>P(I),children:[e(C,{className:"list",style:{gap:N},children:V.map((o=>a(C,{onClick:()=>aa(b,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:p?"8px":"",boxShadow:g?"4px 4px 4px #969292":""},children:[e(S,{src:Je(o.dataPic),className:"img"}),a(C,{className:A,children:[e(x,{className:L,children:o.goodsName}),a(C,{className:R,children:["已售:",o.goodsNum]}),a(C,{className:O,children:[a(C,{className:D,children:[e(x,{className:"price",style:{display:r?"block":"none"},children:ba(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ba(o.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(w,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},o.skuCode)))}),B?e(v,{}):null]})})})]})})),Ol=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=u(),{cartIsEditor:d}=o,{editorImpl:m}=fe(a),h=i((()=>({border:l?`2px solid ${s}`:"",color:l?t:"",background:l?n:"",borderRadius:l?c:""})),[l,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Al=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:n}=u();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:o}),e(t,{className:"choose",children:e(n,{"data-code":l,checked:l,value:s})})]})})),Ml=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=u();return e(n,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(_a,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Al,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},$l=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=u();return e(o,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:l}),a(d,{className:"cartItem-size",children:["规格:",t," X ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ba(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),zl=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:n}=u(),c=i((()=>{let a="";switch(l){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==l?e(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[l]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:o,onClick:()=>C("goodDetail",{skuCode:s})})]})})),Yl=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:n}=u(),c=i((()=>(a||0===l)&&s.includes(o)),[s,a,o,l]);return console.log(106,typeof o),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==l,checked:c,value:o,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),jl=({promotion:l=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=u(),[d,m]=t(!1),h=i((()=>((l||[]).find((e=>e.promotionCode===c))||{}).promotionName),[l]);return a(o,{children:[h&&a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(Ml,{promotionCode:c,onChange:e=>{m(!1),s(n,be(e))},promotion:l||[],visible:d,setVisible:m})})]})},El=s((o=>{var{item:l}=o,s=ga(o,["item"]);const{View:t}=u(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(Yl,{cartIsEditor:i,dataState:l.dataState,select:n,shoppingGoodsId:l.shoppingGoodsId}),e(zl,{dataState:l.dataState,dataPic:Je(l.dataPic),skuCode:l.skuCode}),e($l,Object.assign({},l,s))]})})),Fl=l=>{var{shoppingGoodsList:s=[]}=l,t=ga(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(p,{children:[e(El,Object.assign({},t,{item:o})),o.pmPromotionList?e(jl,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},Gl=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=u(),n=i((()=>A(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>aa(l,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[l]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:o}),n]})},Wl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:n,SmoothView:i}=u();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:l}),o&&e(Gl,{link:t,disNextMsg:o})]})},_l=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=u(),{cartSelect:m,cartUpdateCount:h,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:y,handleStep:b,updatePm:C}=ye(l,h,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:y,children:f.length?e(o,{children:f.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},h)=>a(p,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Wl,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(Fl,{cartIsEditor:g,promotionCode:l,handleStep:b,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:i})]})]},h)))}):e(No,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Hl=({$_dataSource:o={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:l,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=u(),{cartInfo:p,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=o,{toOrderImpl:y,deleteCart:b,clearAll:C,selectAll:v,ids:x,cartDetail:S}=Ce(N,p,l),k=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:p.length===N.length?["true"]:[],onChange:v,children:e(h,{checked:p.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[x.length?e(r,{onClick:C,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ba(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ba(S.amount)})]})]}),a(r,{onClick:y,className:"btn",style:k,children:["结算(",S.num,")"]})]})]})},Ul=({address:a})=>e(o,{children:A(a)?e(ql,{}):e(Kl,{address:a})}),Kl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=u(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:l,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=o;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,address:e+l+s+t}}),[o]);return a(l,{className:"address-info",children:[a(l,{className:"left",children:[e(t,{style:{fontWeight:900,color:"#34C0BC"},value:"shouhuodizhi"}),e(s,{className:"left-detail",children:n.address}),e(t,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]}),a(l,{className:"left-title",children:[e(s,{children:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]})]})},ql=()=>{const{View:l,Text:s}=u();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Jl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:n=""})=>{const{View:i}=u(),c=ve(a,l,o,s,t,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(Ul,{address:c})})},Ql=({address:a})=>e(o,{children:A(a)?e(Zl,{}):e(Xl,{address:a})}),Xl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=u(),n=i((()=>{const{provinceName:e,cityName:a,areaName:l,addressDetail:s,addressMember:t="",addressPhone:n=""}=o;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(l||"")+(s||"")}}),[o]);return a(l,{className:"address-info",children:[a(l,{className:"left",children:[e(t,{style:{fontWeight:900,color:"#34C0BC"},value:"shouhuodizhi"}),e(s,{className:"left-detail",children:n.address}),e(t,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]}),a(l,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]})]})},Zl=()=>{const{View:l,Text:s}=u();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},es=({refreshNum:a})=>{const{View:o}=u(),l=xe(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Ql,{address:l})})},as=({tabActive:l,setTabActive:s,tabs:t})=>{const{Text:n}=u();return e(o,{children:t.map(((o,t)=>e(p,{children:a(n,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(n,{className:"line"})]})},o.id)))})},os=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:i="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=u(),h="235990605097"===(ae.getState().memberCode||""),p=h?"1":"0",[g,N]=t(p),f=h?[{title:"自提",id:"1"}]:[{title:"快递",id:"0"},{title:"自提",id:"1"}];return n((()=>{Se.contractPumode=g,ke.setState({contractPmode:g})}),[g]),a(d,{className:"placeOrderAddressTabs",children:[e(d,{className:"delivery-header",children:e(d,{className:"tabs",children:e(as,{tabActive:g,setTabActive:N,tabs:f})})}),e(d,{className:"content",children:"0"===g?e(Jl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(es,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:i})})]})},ls=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=u();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:l}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[oa(o).format("YYYY-MM-DD")," - ",oa(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),ss=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=u();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:l}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[oa(o).format("YYYY-MM-DD")," - ",oa(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),ts=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:p,Popup:N,Form:f,SmoothRadio:y,Button:b,SmoothCheckbox:C,ScrollView:v,Radio:x,Image:S}=u(),{shoppingGoodsList:k}=we({refreshNum:l,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:w,visible:I,couponValue:T=[],setVisible:B,selectCoupon:P,onChange:V,onCreditChange:D,confirmImpl:L,resetImpl:R,contractPmode:O,onPayChange:A,payList:M,payName:$,creditList:z,creditInfo:Y,selectCredit:j,creditVisible:E,payVisible:F,setPayVisible:G,handleChooseImg:W,contractEcurl:_,setCreditVisible:H}=Ie(k,s);return console.log("shoppingGoodsList",k),a(o,{children:[k.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(o,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==w.length),children:[e(p,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(p,{className:"label",children:P?`已选择: ${P}`:0===w.length?"暂无可用优惠券":"请选择优惠券"}),0===w.length?null:e("img",{src:Eo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select pay-mode",onClick:()=>G(!0),children:[e(p,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(S,{src:$?$.includes("余额")?"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/balance.png":"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/onlinepay.png":"",className:"pay-method-icon"}),e(p,{className:"label",children:$}),0===w.length?null:e("img",{src:Eo,alt:"",className:"icon"})]}),e(g,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]})]}),Y.urechargeId&&"0"===O&&a(h,{className:"coupon-select",onClick:()=>H(0!==z.length),children:[e(p,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(p,{className:"label",children:j?0===+j?"不使用":`已选择: ${j}%`:"请选择授信"}),0===w.length?null:e("img",{src:Eo,alt:"",className:"icon"})]})]}),"1"===O&&a(h,{className:"coupon-select",children:[e(p,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:W,children:_?e(S,{src:_,className:"img",alt:_,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(N,{popupVisible:F,popupHandler:G,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(_a,{children:e(v,{children:e(y,{value:O||"",onChange:A,children:(null==M?void 0:M.length)>0&&M.map(((o,l)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(x,{checked:o.ptfpmodeType===O,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(N,{popupVisible:E,popupHandler:H,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(_a,{children:e(v,{children:e(y,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(x,{value:o.flagSettingInfo}),0===o.flagSettingInfo?"不使用":`${o.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(N,{popupVisible:I,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(_a,{children:e(v,{children:s?e(C,{value:(null==T?void 0:T.length)>0?T.map((e=>e.couponNo)):[],onChange:V,children:(null==w?void 0:w.length)>0&&w.map((e=>m(ls,Object.assign({isDisabled:2===T.length},e,{key:e.couponNo}))))},"visible"):e(y,{value:(null==T?void 0:T.length)>0?T[0].couponNo:"",onChange:V,children:w.map(((e,a)=>m(ss,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(b,{className:"operate reset",onClick:R,children:"重置"}),e(b,{className:"operate",onClick:L,children:"确认"})]})]})})]})},ns=()=>{const{View:o}=u(),l=Te(),s="235990605097"===(ae.getState().memberCode||"")||"1"===l.contractPmode?"自提":"快递";return e(o,{className:"info placeOrder-blcWrap",children:a(o,{className:"express placeOrder-blcItem",style:{width:"100%"},children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:s})]})})},is=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=u(),{list:d}=we({refreshNum:a,goodsNum:l,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],l)=>e(o,{children:(a||[]).map(((a,o)=>e(oo,Object.assign({},a),l)))})))})},cs=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:p,Textarea:g}=u(),N=g||p,f=we({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:y,disCount:b,creditMoney:C,freight:v,payPrice:x,rebMoney:S}=f,k=f.pointsDeduction||0,w=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:T,changeContent:B,shoppingType:P,pricesetRefrice:V}=Be(y),D=ba(Math.max(x-C,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:["06"===P?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ba(I)})]}),null!==k&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===P?k+"积分":ba(k)]})]}),"06"===P?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ba(w)]})]}),"06"===P?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ba(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ba(-S.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ba(-(T+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ba(v)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:B})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":D})]})]})})},rs=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:p,Text:g,WrapLoading:N}=u(),{payPrice:f,list:y,payState:b,creditMoney:C,ocContractSettlList:v,pointsDeduction:x}=we({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:S,loading:k}=Pe({ocContractSettlList:v,payState:b,list:y,goodsBeanStr:r},d,Math.max(f-C,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const w=ba(Math.max(f-C,0));return a(p,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",e(g,{className:"price-value",children:r?"0.00":w})]}),e(N,{loading:k,children:e(p,{className:"btn",onClick:S,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ds=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:n,paddingTop:c,paddingBottom:r,color:d})=>{const m=i((()=>v()),[]),{View:h,Text:p,Radio:g,WrapLoading:N,SmoothRadio:f,Image:y}=u(),{paymentImpl:b,channelList:C,contract:x,handleRadio:S,loading:k}=Ve({contractBillcode:o,contractBbillcode:l});return a(h,{className:"paymentModeWrap",style:{height:m?"inherit":"667px",paddingBottom:r+"px",paddingTop:c+"px","--adm-color-primary":"#34C0BC"},children:[a(h,{className:"paymentMode",children:[a(h,{className:"topInfo",children:[a(h,{className:"info",children:["实付金额",e(p,{className:"price",children:ba(x.current.orderMoney)})]}),a(h,{className:"info",children:["订单总金额:",ba(x.current.contMoney+(x.current.logMoney||0)),"元 | 订单号:",x.current.contractBillcode]})]}),a(h,{className:"paymentGroup",children:[e(p,{className:"paymentGroupTitle",children:"选择支付方式"}),e(f,{onChange:S,children:null==C?void 0:C.map((o=>a(h,{className:"paymentItem",children:[e(y,{className:"paymentIcon",style:{width:38,height:38},src:"1"===o.ptfchannelAmt?"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/balance.png":"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/onlinepay.png"}),e(h,{className:"paymentItemContent",children:a(h,{className:"base",style:{alignItems:"center"},children:[e(p,{children:o.fchannelName}),"1"===o.ptfchannelAmt?a(h,{style:{fontSize:12,color:"#999",marginLeft:"auto",marginRight:10},children:["可用余额:¥",o.faccountAmount]}):null,e(g,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]})})]},o.fchannelCode)))})]})]}),e(h,{id:"v_html"}),e(N,{loading:k,children:e(h,{style:{position:"fixed",bottom:10,left:0,right:0},className:"btnGroup",onClick:k?void 0:b,children:e(h,{className:"payment",children:"立即支付"})})})]})})),ms=({dataObj:o})=>{const{View:l,Text:s}=u();return a(l,{className:"placeOrderResultWrap",children:[a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:o.contractBillcode})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ba(o.dataBmoney)})]})]})},hs=s((({code:o,goodsBeanStr:l,borderRadius:s,leftColor:t,leftButtonColor:n,leftBorderColor:i,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:g,paddingTop:N,paddingBottom:f})=>{const{View:y,Text:b,IconMobile:v,WrapLoading:x}=u(),{result:k,loading:w}=De(o||(S("contractBillcode")||{}).contractBillcode,l);return e(y,{className:"placeOrderResult",style:{paddingTop:N,paddingBottom:f},children:e(x,{loading:w,children:a(y,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(v,{value:k.icon,style:{fontSize:"35px",color:k.color}}),a(y,{className:"tips",children:[e(b,{className:"title",children:k.msg}),e(b,{className:"tip",children:k.info})]}),"success"===k.sysRecode&&e(ms,{dataObj:k.dataObj}),a(y,{className:"btnGroup",style:{marginTop:20},children:[e(y,{className:"btn black",onClick:()=>l?C("orderlist"):C(k.menuCode,{contractBillcode:k.dataObj.contractBillcode}),style:{color:t,backgroundColor:n,border:`1px solid ${i}`,borderRadius:1===c?"20px":"0px"},children:k.buttonText}),e(y,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===g?"20px":"0px"},onClick:()=>C(d.value),className:"btn white",children:r})]})]})})})})),{Button:ps}=N,us=a=>{var{dataState:l}=a,s=ga(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(gs,Object.assign({dataState:l},s))})},gs=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=ga(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=u();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=Le(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e(ps,{style:{color:t,borderColor:n,backgroundColor:i},className:y({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},Ns=({contractPaydate:l,init:s,countdownCancel:i,contractId:c})=>{const{View:r,Text:d,SmoothView:m}=u(),{resultTime:h}=((e,a,o,l)=>{const[s,i]=t("");return n((()=>{const a=setTimeout((()=>{const a=new Date(e),s=new Date,t=a.getTime()-(s.getTime()-3600);t<999&&t>0?o(l).then((()=>{w.eventCenter.trigger("switchOrderTab")})):t>1e3&&i(va(t,""))}),1e3);return()=>{clearTimeout(a)}}),[s]),{resultTime:s}})(l,0,i,c);return e(o,{children:h?a(r,{className:"card-item-info-countDown",children:[e(ra,{}),e(d,{className:"count-down-text",children:e(m,{children:h})}),e(d,{children:"后将取消订单,请尽快支付"})]}):null})};function fs({memberName:o,contractBillcode:l,dataBmoney:s,dataBnum:t,goodsList:n,dataState:i,contractId:c,init:r,contractAppraise:d,borderRadius:m,orderSpacing:h,contractPaydate:p,contractType:g,countdownCancel:N}){const{View:f,SmoothView:y,Image:b}=u(),v=Re(i,d);return a(f,{className:"orderListItem",style:{borderRadius:m?8:"",marginTop:h,marginBottom:h},children:[a(f,{children:[a(f,{className:"topInfo",children:[a(f,{className:"shop-info-wrap",style:{display:"flex",alignItems:"center"},children:[e(b,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(y,{className:"sku shop-name",children:o})]}),e(f,{className:"orderNo"}),e(f,{className:"status",style:(e=>{switch(e){case"待确认":return{color:"#97dcde"};case"待付款":return{color:"#FF2D1E"};case"待发货":return{color:"#FA8752"};case"待收货":return{color:"#FFC82C"};case"已完成":case"待评价":case"已评价":return{color:"#34C0BC"};case"已取消":return{color:"#999999"}}})(v),children:v})]}),e(f,{className:"goodsItemWrap",onClick:()=>C("orderDetail",{contractBillcode:l}),children:n.map((a=>e(oo,Object.assign({},a,{dataState:i}),a.contractGoodsId)))}),i&&1===i&&e(Ns,{contractPaydate:p,init:r,countdownCancel:N,contractId:c})]}),a(f,{className:"allInfo",children:[a(f,{className:"totalNum",children:["共",t,"件商品"]}),a(f,{className:"totalPrice",children:["合计 ",ba(s)]})]}),e(us,{init:r,contractType:g,contractId:c,contractBillcode:l,dataState:i,contractAppraise:d,dataBmoney:s})]})}const ys=()=>{const{View:a,Image:o}=u();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const bs=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=u(),{onScroll:d,data:h,loading:p,init:g,countdownCancel:N}=Oe(o,l,n);return e(i,{className:"orderListItemWrap",children:e(_a,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(fs,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:p?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(ys,{}),e(i,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Cs=process.env.TARO_ENV;let vs=Ae;if(console.log("platform",Cs),"h5"==Cs){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(vs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=w.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(vs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const xs=s((({refreshNum:a=0,indexId:o=0,borderRadius:l=!1,orderSpacing:s=12,contractType:i=""})=>{const{View:c,Tabs:r}=u(),[d,m]=t(o);return n((()=>{const e=()=>{const e=vs.findIndex((e=>"-1"===e.code));m(e)};return w.eventCenter.on("switchOrderTab",e),()=>{w.eventCenter.off("switchOrderTab",e)}}),[]),e(c,{className:"order-container",children:e(r,{defaultIndex:+d,tabs:vs,render:o=>e(c,{className:"orderList",children:e(bs,{contractType:i,item:o,orderSpacing:s,refreshNum:a,borderRadius:l})})},d)})})),{Button:Ss}=N,ks=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=i((()=>v()),[]),n=i((()=>s?b():null),[s]),c=e=>Na(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const o=document.execCommand("copy");if(document.body.removeChild(a),!o)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(Ss,{className:"copy",size:"mini",fill:"outline",onClick:()=>Na(void 0,void 0,void 0,(function*(){if(a)try{s&&n&&n.setClipboardData?(yield new Promise(((e,o)=>{n.setClipboardData({data:a,success:e,fail:o})})),r("复制成功","success"),l(!0)):(yield c(a),r("复制成功","success"),l(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:o?"已复制":"复制"})})),ws=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:h})=>{const{View:g,Text:N,Image:f}=u(),{orderDetail:y,handleApplyBtn:b,creditMoney:v,packageRemark:x,expressName:S}=Me(l||""),k=e=>oa(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Re(y.dataState)?e(ma,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Re(y.dataState,y.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:k(y.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(ma,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:y.goodsReceiptMem}),e(N,{className:"personPhone",children:y.goodsReceiptPhone})]}),e(g,{className:"address",children:y.goodsReceiptArrdess})]}),e(g,{className:"rPart",children:[1,2,3].includes(Number(null==y?void 0:y.dataState))&&e(N,{onClick:()=>C("addressList",{contractBillcode:y.contractBillcode}),children:"编辑"})})]}),a(g,{className:"orderDetailGoodsWrap",children:[y.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{C("goodDetail",{skuCode:l.skuCode})},children:[e(oo,Object.assign({},l),l.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),C(h,{skuCode:l.skuCode})},children:"商品快照"}),Number(y.dataState)>1&&Number(y.dataState)<4&&"06"!==y.contractType&&"08"!==y.contractType?e(g,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),b.bind(null,l,y.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(g,{className:"priceInfo",children:"06"!=y.contractType?a(p,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",y.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((y.dataBmoney-y.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",y.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-y.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(o,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:S||"暂无物流信息"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===y.contractPumode?"自提":"快递"})]})]}),"06"!==y.contractType&&a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:0===y.contractInvstate?"未开票":1===y.contractInvstate?"已提交":"已开票"})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",y.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:x||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:y.contractBillcode}),e(ks,{copyContent:y.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:k(y.gmtCreate)})]}),"06"!=y.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ba(-v)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===y.contractPmode?"线上支付":"线下支付"})})]}),"1"===y.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:Je(y.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(us,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:y.contractBillcode,contractId:y.contractId,contractType:y.contractType,dataState:y.dataState,contractInvstate:y.contractInvstate,dataBmoney:y.dataBmoney,contractAppraise:y.contractAppraise})})]})})]})})),Is=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:n}=u(),i=R(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=R(l,"packageList.length",o.count),r=R(l,"packageList[0].expressName",o.expressName),d=R(l,"packageList[0].packageBillno",o.packageBillno),m=R(s,"state",o.result)||"-1";return a(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},Ts=({defaultValue:o,detail:l})=>{const{View:s}=u(),t=R(l,"message",o.message),n=R(l,"data",o.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.map(((o,l)=>a(s,{className:"step",children:[e(s,{className:"time",children:o.time}),e(s,{children:o.context})]},l))):e(s,{className:"noInfo",children:t})})},Bs=s((({code:o,defaultValue:l})=>{const{View:s}=u(),{info:t,detail:n,stateObj:i}=$e(o);return a(s,{className:"expressInfo",children:[e(Is,{info:t,detail:n,stateObj:i,defaultValue:l}),e(Ts,{detail:n,defaultValue:l})]})})),Ps=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:p}=u(),{servicePopup:g}=fa(),[N,f]=t(c),[y,b]=t(i);return n((()=>{f(S("userNickname")),b(S("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${l}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>C("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(p,{src:y,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),Vs=s((({title:o,columnList:l})=>{const{View:s,Text:i,Badge:c,Image:r}=u(),[d,m]=t({}),[h,p]=t(0),g=()=>Na(void 0,void 0,void 0,(function*(){try{const e=yield D();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}}));n((()=>{const e=S("myPageShowNum")||0;p(e),g();const a=setInterval((()=>{const e=S("myPageShowNum")||0;e!==h&&(p(e),g())}),500);return()=>{clearInterval(a)}}),[h]);const N=(e,a)=>{4!==e.id?C("orderlist",{indexId:a+1}):C("afterSalesList")};return console.log(333,l,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:o}),e(s,{className:"more",onClick:()=>C("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:N.bind(null,o,l),className:"contentItem",style:{display:o.show?"block":"none"},children:[e(c,Object.assign({},d[o.code]>0?{content:d[o.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:o.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:o.label})]},l)))})]})})),Ds=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=u();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>C(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Je(o.imgUrl),className:"icon"}),e(n,{className:"label",children:o.link.label})]}),e(i,{value:"xiangyou1"})]},l)))})})),Ls=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=u(),{Rate:c}=N;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":l,"--active-color":o}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,o)=>e(i,{src:a.imgUrl,className:"img"},o)))})]})},Rs=[{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"}]}],Os=s((()=>{const[l,s]=t("1"),{View:n}=u(),i=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(o,{children:[e(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===l?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:Rs.map(((a,o)=>e(Ls,{itemData:a},o)))})]})})),As=s((({code:o,borderRadius:l,borderColor:s,color:n,buttonColor:i,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:g,Submit:f,changeContent:y,addImg:C,removeImg:v,getImgUrls:x}=ze(o),{Button:S}=N,{View:k,Image:w,TextArea:I,Textarea:T}=u(),B=T||I,P="WEAPP"===b().getEnv(),V="undefined"!=typeof window,[D,L]=t(0),R=c("宝贝满足你吗?分享一下它吧"),O=e=>{L(e);if(x(e).length>=3)if(P){b().showToast({title:"最多上传3张图片",icon:"none"})}else V&&alert("最多上传3张图片");else(()=>{if(P){const e=b(),a=3-x(D).length;if(a<=0)return void e.showToast({title:"最多上传3张图片",icon:"none"});e.chooseImage({count:a,sizeType:["original","compressed"],sourceType:["album","camera"],success:function(e){var a;(e.tempFilePaths||(null===(a=e.tempFiles)||void 0===a?void 0:a.map((e=>e.path)))||[]).forEach((e=>{C(D,e)}))}})}else if(V){const e=3-x(D).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const o=a.target.files;o&&o.length>0&&Array.from(o).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(D,a)}))},a.click()}})()};return a(k,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((o,s)=>a(p,{children:[a(k,{className:"topInfo",children:[a(k,{className:"lPart",children:[e(w,{src:Je(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(k,{className:"goodsInfo",children:[e(k,{className:"goodsName",children:o.goodsName}),e(k,{className:"goodsSize",children:o.skuName})]})]}),e(k,{className:"rPart",children:a(k,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(k,{className:"rate",children:[e(k,{className:"title",children:"商品评价"}),e(ml,{onChange:g.bind(null,s)})]}),e(k,{className:"evaluate",children:e(B,{className:"content",placeholder:R.current,rows:5,maxLength:30,onInput:y.bind(null,s)})}),a(k,{className:"upload-imgs",children:[e(k,{className:"upload-title",children:"上传图片 (最多3张)"}),a(k,{className:"img-list",children:[a(k,{className:"upload-btn",onClick:()=>O(s),children:[e(ma,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(k,{className:"upload-text",children:"上传图片"})]}),x(s).map(((o,l)=>a(k,{className:"img-item",children:[e(w,{className:"preview-img",src:o,onClick:()=>(e=>{if(P){const a=b(),o=x(D);a.previewImage({current:e,urls:o})}else V&&window.open(e,"_blank")})(o)}),e(k,{className:"delete-btn",onClick:()=>v(s,l),children:"×"})]},l)))]})]})]},s))),e(S,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:f,children:"提交"})]})})),Ms=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:h}=Ye(o),{Button:g}=N,{View:f,Image:y,Text:b}=u();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(p,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(y,{src:Je(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:o.goodsName}),e(f,{className:"goodsSize",children:o.skuName})]})]}),e(f,{className:"rPart",children:o.pricesetNprice&&a(f,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(ml,{readOnly:!0,count:(null===(t=o.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:o.evaluateGoodsContent||""})})}),o.evaluateGoodsImgs&&e(f,{className:"evaluate-imgs",children:(()=>{let a=[];const s=o.evaluateGoodsImgs;if("string"==typeof s&&s.startsWith("["))try{a=JSON.parse(s)}catch(e){a=[]}else"string"==typeof s&&(a=s.split(",").filter(Boolean));return a.map(((a,o)=>e(y,{className:"evaluate-img",src:Je(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s)})),m.length?e(g,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:h,children:"删除"}):null]})})),$s=({item:o,edit:l,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=u(),r=s.includes(o.collectCode);return a(t,{className:"collectItem",children:[l?e(i,{className:"lPart",value:o.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(o.dataState)||C("goodDetail",{skuCode:o.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(n,{src:Je(o.collectOppic),className:"img"}),e(t,{className:[2,3].includes(o.dataState)?"tag":"",children:[2,3].includes(o.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:o.collectOpcont}),a(c,{className:"price",children:[o.collectOpnum," 元"]})]})]})]})},zs=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,setChecked:d,handleSelectAll:m,selectAllChecked:h,setSelectAllChecked:p}=je(),{View:g,ScrollView:N,SmoothCheckbox:f,Checkbox:y,Button:b,Image:C}=u();return e(g,{className:"collectList",children:0===o.length?e(g,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(g,{className:"hasDate",children:[e(g,{className:"topBar",children:e(g,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(_a,{id:"topBar",children:a(N,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(f,{value:r,onChange:n,style:{height:"100%"},children:o.map((a=>e($s,{item:a,edit:l,checked:r},a.collectId)))}),l?a(g,{className:"handleBar",children:[e(g,{className:"checkAll",style:{width:"130px"},children:e(y,{value:"1",checked:h,onChange:()=>{if(!h){const e=o.map((e=>e.collectCode));d(e),p(!0)}else d([]),p(!1)},children:"全选"})}),e(b,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Ys=({item:o,edit:l,checked:s})=>{var t,n;const{View:i,Image:c,Checkbox:r,SmoothView:d}=u();return a(i,{className:"collectItem",children:[l?e(r,{className:"lPart",value:o.collectCode,checked:s}):null,a(i,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:o.collectOpcode}),children:[e(c,{src:Je(null===(t=o.shopdeInfo)||void 0===t?void 0:t.shopdeLogo),className:"img"}),a(i,{className:"info",children:[e(d,{className:"title",children:o.collectOpcont}),e(d,{className:"scope",children:null===(n=o.shopdeInfo)||void 0===n?void 0:n.shopdeScope})]})]})]})},js=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=je(1),{View:h,ScrollView:p,SmoothCheckbox:g,Checkbox:N,Button:f,Image:y}=u();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(y,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(_a,{id:"topBar",children:a(p,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{value:r,onChange:n,style:{height:"100%"},children:o.map(((a,o)=>e(Ys,{item:a,edit:l,checked:r},a.collectId||o)))}),l?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",style:{width:"130px"},children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Es=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=u(),r=i((()=>o.footprintOpnum?`${o.footprintOpnum}元`:""),[o.footprintOpnum]);return a(s,{className:"footprintItem",children:[l?e(s,{className:"lPart",children:e(n,{value:o.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:Je(o.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:o.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Fs=({item:l,edit:s})=>{const{View:t}=u();return a(t,{className:"footPrint",children:[e(o,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==l?void 0:l.title})}),l.option.map(((a,o)=>e(Es,{footprintItem:a,edit:s},o)))]})},Gs=({footprintList:a,edit:l})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?oa(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=$(e,"gmtCreate");return Object.keys(o).map((e=>({title:e||"",option:o[e]})))}),[a]);return e(o,{children:s.map(((a,o)=>e(Fs,{item:a,edit:l},o)))})},Ws=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:n}=u(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:p,checked:g}=Ee();return e(n,{loading:p,children:e(o,{className:"footprint",children:a(o,{className:"hasDate",children:[e(o,{className:"topBar",children:e(o,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(_a,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:g,onChange:d,children:e(Gs,{footprintList:i,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),_s=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=u(),{signedDates:p,pointsNum:g,loading:N,signing:f,handleSignin:y}=Fe(),b=oa(),C=b.format("YYYY-MM-DD"),v=i((()=>p.includes(C)),[p,C]),x=i((()=>{const e=b.year(),a=b.month(),o=oa(`${e}-${a+1}-01`),l=o.endOf("month"),s=o.day(),t=0===s?6:s-1,n=o.subtract(t,"day"),i=l.day(),c=0===i?0:7-i,r=l.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:p.includes(e)}),m=m.add(1,"day")}return d}),[b,p]),S=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:S})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,o)=>e(c,{className:"weekDay",children:e(r,{children:a})},o)))}),e(c,{className:"calendarGrid",children:x.map(((o,s)=>a(c,{className:`calendarDay ${o.isCurrentMonth?"":"otherMonth"} ${o.isToday?"today":""} ${o.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:o.isToday?{color:l}:{},children:o.date.date()}),o.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:v||f,onClick:y,style:{backgroundColor:l,opacity:v?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":v?"已签到":o})]})]})})})),Hs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=u(),[h,p]=t((()=>oa())),[g,N]=t(!1),[f,y]=t((()=>oa().year())),[b,C]=t((()=>oa().month()+1)),{signinDetails:v,loading:x,refresh:S}=Ge(h),k=i((()=>h.format("YYYY年MM月")),[h]),w=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>v.sort(((e,a)=>oa(a.date).valueOf()-oa(e.date).valueOf()))),[v]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:o}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;y(e),C(a),N(!0)},children:[e(r,{className:"dateText",children:k}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((o,s)=>{const t=oa(o.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:l},children:["+",o.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{y((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{y((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:w.map((o=>e(c,{className:"monthItem "+(b===o?"active":""),onClick:()=>(e=>{C(e);const a=oa(`${f}-${String(e).padStart(2,"0")}-01`);p(a),N(!1)})(o),style:b===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Us=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ks=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=u();return e(s,{className:"promotionListTab",children:Us.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},n)))})})),qs=({data:o})=>{const{View:l}=u(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,promotionEndtime:c}=o;return a(l,{className:"promotionItem",children:[a(l,{className:"lPart",children:[e(l,{className:"round"}),e(l,{className:"tagBg",children:a(l,{className:"txt",children:["官方",s]})}),e(l,{className:"rule",children:n.at(-1).discName}),e(l,{className:"title",children:t}),a(l,{className:"time",children:[oa(i).format("YYYY-MM-DD")," ~ ",oa(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},Js=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[n,i]=t(Us[0].val),{list:c,getData:r}=We({params:n}),{View:d,ScrollView:m}=u();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Ks,{activeColor:o,setParams:i,params:n}),e(d,{children:e(_a,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(qs,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=u(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})}));const Qs=()=>{const{View:a,Image:o}=u();return e(a,{className:"noData",children:e(o,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Xs=({list:l,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=u();return e(o,{children:l.length?l.map(((l,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===l.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:l.pbName}),e(d,{className:"title",children:l.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||l.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",l.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",oa(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",oa(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",oa(l.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===l.dataState?e(o,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Qs,{})})},Zs=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=u(),{coe:d,getList:m,config:h,switchTab:p,list:g=[]}=_e();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((o,l)=>a(i,{className:"couponTabItem "+(d.current===l?"active":""),onClick:()=>p(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(_a,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Xs,{backgroundColor:o,color:l,queue:n,list:g,coe:d,config:h})})})})]})})),et=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:p}=u(),{list:g,takeCoupon:N,takeList:f}=He({defaultValue:o,coupons:l});return e(p,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((o,l)=>{const m=R(o,"pbName"),h=R(o,"pmPromotionDiscountList"),u=R(h.at(-1),"discName"),g=R(o,"promotionName"),y=oa(R(o,"promotionBegintime")).format("YYYY-MM-DD"),b=oa(R(o,"promotionEndtime")).format("YYYY-MM-DD"),C=R(o,"promotionCode");return a(p,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(p,{className:"lPart",children:[a(p,{className:"intro",children:[e(p,{className:"type",style:{color:i},children:m}),e(p,{className:"rule",style:{color:r},children:u})]}),a(p,{className:"info",children:[e(p,{className:"title",style:{color:c},children:g}),a(p,{className:"validity",style:{color:d},children:[y," - ",b]})]})]}),e(p,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||f.includes(l)?e(p,{className:"txt",children:"已 领 取"}):e(p,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),at=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:p})=>{const{View:g}=u(),{list:N,takeCoupon:f,takeList:y}=He({defaultValue:o,coupons:l});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:p,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=R(o,"pbName"),h=R(o,"pmPromotionDiscountList"),p=R(h.at(-1),"discName"),u=R(o,"promotionName"),N=oa(R(o,"promotionBegintime")).format("YYYY-MM-DD"),b=oa(R(o,"promotionEndtime")).format("YYYY-MM-DD"),C=R(o,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),e(g,{className:"info",style:{color:r},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||y.includes(l)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),ot=s((o=>{var{type:l=1,coupons:s=[]}=o,t=ga(o,["type","coupons"]);const{View:n}=u();return a(n,{className:"getCouponOne",children:[1===l?e(et,Object.assign({coupons:s},t)):null,2===l?e(at,Object.assign({coupons:s},t)):null]})})),lt=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:n}=Ue(l);return e(f,{navigator:n,color:s,speed:o,direction:a,content:t})},st=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=u(),{info:r}=Ke(o);return a(i,{className:"noticeDetailContainer",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(i,{className:"content",children:r.noticeContext})]})})),tt=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=qe(o),{View:c,ScrollView:r}=u(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:p}=i;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(_a,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:p}),a(c,{className:"time",children:["发布时间:",oa(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{vo as AddressDetail,fo as AddressList,yo as AddressListBtn,qa as AfterSalesApply,io as AfterSalesDetail,ao as AfterSalesList,ho as AfterSalesType,Js as AllPromotionList,tt as ArticleDetail,ja as BackTop,_l as CartList,Hl as CartOperate,Ol as CartTop,Ra as ClassifyNav,Ma as ClassifyNavOne,Aa as ClassifyNavOneJsx,Ya as ClassifyNavThree,$a as ClassifyNavTwo,zs as CollectionList,js as CollectionShopList,Zs as CouponList,Fa as Cube,As as EvaluateDetail,Os as EvaluateList,Ms as EvaluateViewDetail,Bs as ExpressInfo,Ws as FootPrint,ot as GetCouponOne,Ho as Goods,Vo as GoodsClassify,Ao as GoodsClassifyOne,Yo as GoodsClassifyTwo,yl as GoodsDetailAndEvaluate,Qo as GoodsDetailBanner,dl as GoodsDetailCoupon,Bl as GoodsDetailHandleBar,Vl as GoodsDetailHandleBarOne,ol as GoodsDetailInfo,sl as GoodsDetailInfoOne,il as GoodsDetailPromotion,nl as GoodsDetailSku,Rl as GoodsList,Uo as GoodsSlider,Ko as GoodsSlideshow,ua as Line,_s as MemberSignin,Ps as MineData,Ds as MineFunction,Vs as MineOrderEntry,xo as MyAgreementList,ko as MySetting,So as MySettingJsx,lt as Notice,st as NoticeDetail,ws as OrderDetail,xs as OrderList,ds as PaymentMode,Io as PickupPointList,Jl as PlaceOrderAddress,os as PlaceOrderAddressTabs,ts as PlaceOrderCoupon,ns as PlaceOrderDelivery,is as PlaceOrderGood,cs as PlaceOrderInfo,rs as PlaceOrderOperate,hs as PlaceOrderResult,ma as QjMobileIcon,Go as Search,_o as SearchPage,Wo as SearchStyleTwo,da as Service,Hs as SigninDetail,Va as Slider,pa as TextLine,ha as Title,xa as ToPrice,Da as Video,To as WechatAddressBtn,ya as addressIdConst,ba as fixPrice,Ca as fixPrice1,va as formatTime,fa as useService};
|
package/package.json
CHANGED
|
@@ -1,54 +1,54 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "s-material-react",
|
|
3
|
-
"version": "2.2.
|
|
4
|
-
"description": "'组件库'",
|
|
5
|
-
"main": "dist/index.js",
|
|
6
|
-
"sideEffects": [
|
|
7
|
-
"*.scss",
|
|
8
|
-
"*.css"
|
|
9
|
-
],
|
|
10
|
-
"files": [
|
|
11
|
-
"dist",
|
|
12
|
-
"css",
|
|
13
|
-
"iconfont"
|
|
14
|
-
],
|
|
15
|
-
"scripts": {
|
|
16
|
-
"start": "concurrently npm:start:*",
|
|
17
|
-
"start:ts": "rollup -c -w",
|
|
18
|
-
"start:css": "npx nodemon --config ./nodemon.json",
|
|
19
|
-
"cp-css": "
|
|
20
|
-
"build": "npm run cp-css && rm -rf dist/ && prettier --write src/ && rollup -c",
|
|
21
|
-
"push": "git add . && git commit -m",
|
|
22
|
-
"postpush": "git push",
|
|
23
|
-
"prepublishOnly": "echo 我们准备发布npm包",
|
|
24
|
-
"publishOnly": "npm run build && npm run push",
|
|
25
|
-
"postpublishOnly": "npm version patch && npm publish && git push"
|
|
26
|
-
},
|
|
27
|
-
"author": "",
|
|
28
|
-
"license": "ISC",
|
|
29
|
-
"dependencies": {
|
|
30
|
-
"@brushes/simulate-component": "^0.3.5",
|
|
31
|
-
"classnames": "^2.3.2"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@brushes/mobile-form": "^0.1.0",
|
|
35
|
-
"@brushes/request": "^2.0.3",
|
|
36
|
-
"@brushes/shared-utils": "^0.0.96",
|
|
37
|
-
"@brushes/utils": "^1.0.0",
|
|
38
|
-
"@rollup/plugin-terser": "^0.4.0",
|
|
39
|
-
"@types/node": ">=18.15.7",
|
|
40
|
-
"@types/react": "^18.0.28",
|
|
41
|
-
"concurrently": "^7.6.0",
|
|
42
|
-
"dayjs": "^1.11.7",
|
|
43
|
-
"lodash-es": "^4.17.21",
|
|
44
|
-
"nodemon": "^2.0.22",
|
|
45
|
-
"prettier": "^2.8.7",
|
|
46
|
-
"qj-b2c-api": "*",
|
|
47
|
-
"qj-b2b-api": "^0.1.0",
|
|
48
|
-
"qj-b2c-store": "*",
|
|
49
|
-
"react": "^18.2.0",
|
|
50
|
-
"rollup-plugin-typescript2": "^0.34.1",
|
|
51
|
-
"tsconfig": "*",
|
|
52
|
-
"typescript": ">=5.0.2"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "s-material-react",
|
|
3
|
+
"version": "2.2.50",
|
|
4
|
+
"description": "'组件库'",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"*.scss",
|
|
8
|
+
"*.css"
|
|
9
|
+
],
|
|
10
|
+
"files": [
|
|
11
|
+
"dist",
|
|
12
|
+
"css",
|
|
13
|
+
"iconfont"
|
|
14
|
+
],
|
|
15
|
+
"scripts": {
|
|
16
|
+
"start": "concurrently npm:start:*",
|
|
17
|
+
"start:ts": "rollup -c -w",
|
|
18
|
+
"start:css": "npx nodemon --config ./nodemon.json",
|
|
19
|
+
"cp-css": "node -e \"const fs=require('fs');const path=require('path');const src='src/scss';const dest='css';if(fs.existsSync(dest)){fs.rmSync(dest,{recursive:true})};fs.mkdirSync(dest);fs.readdirSync(src).forEach(f=>{const srcPath=path.join(src,f);const destPath=path.join(dest,f);if(fs.statSync(srcPath).isDirectory()){fs.cpSync(srcPath,destPath,{recursive:true})}else{fs.copyFileSync(srcPath,destPath)}}) \"",
|
|
20
|
+
"build": "npm run cp-css && rm -rf dist/ && prettier --write src/ && rollup -c",
|
|
21
|
+
"push": "git add . && git commit -m",
|
|
22
|
+
"postpush": "git push",
|
|
23
|
+
"prepublishOnly": "echo 我们准备发布npm包",
|
|
24
|
+
"publishOnly": "npm run build && npm run push",
|
|
25
|
+
"postpublishOnly": "npm version patch && npm publish && git push"
|
|
26
|
+
},
|
|
27
|
+
"author": "",
|
|
28
|
+
"license": "ISC",
|
|
29
|
+
"dependencies": {
|
|
30
|
+
"@brushes/simulate-component": "^0.3.5",
|
|
31
|
+
"classnames": "^2.3.2"
|
|
32
|
+
},
|
|
33
|
+
"devDependencies": {
|
|
34
|
+
"@brushes/mobile-form": "^0.1.0",
|
|
35
|
+
"@brushes/request": "^2.0.3",
|
|
36
|
+
"@brushes/shared-utils": "^0.0.96",
|
|
37
|
+
"@brushes/utils": "^1.0.0",
|
|
38
|
+
"@rollup/plugin-terser": "^0.4.0",
|
|
39
|
+
"@types/node": ">=18.15.7",
|
|
40
|
+
"@types/react": "^18.0.28",
|
|
41
|
+
"concurrently": "^7.6.0",
|
|
42
|
+
"dayjs": "^1.11.7",
|
|
43
|
+
"lodash-es": "^4.17.21",
|
|
44
|
+
"nodemon": "^2.0.22",
|
|
45
|
+
"prettier": "^2.8.7",
|
|
46
|
+
"qj-b2c-api": "*",
|
|
47
|
+
"qj-b2b-api": "^0.1.0",
|
|
48
|
+
"qj-b2c-store": "*",
|
|
49
|
+
"react": "^18.2.0",
|
|
50
|
+
"rollup-plugin-typescript2": "^0.34.1",
|
|
51
|
+
"tsconfig": "*",
|
|
52
|
+
"typescript": ">=5.0.2"
|
|
53
|
+
}
|
|
54
|
+
}
|