s-material-react 2.2.66 → 2.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
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,createElement as d,useCallback as m,Fragment as h}from"react";import{useComponent as p,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import f from"classnames";import{getTaro as b,navigatorHandler as y,getEnv as C,taroMessage as v,getStorage as x,setStorage as S}from"@brushes/utils";import k,{useRouter as w}from"@tarojs/taro";import{queryOcsconfigList as I,getAddress as T,find as B,goodsDetailQuery as P,getContractNumbers as V}from"qj-b2c-api";import{queryOcserviceConfPageByMember as D}from"qj-b2b-api";import{get as L,isEqual as R,isEmpty as O,noop as A,groupBy as M}from"lodash-es";import{useCube as Y,useAfterSalesApply as j,useAfterSalesList as z,afterSalesTabConfig as E,useAfterSalesDetail as $,useAfterSalesChooseType as G,useAddressItem as F,useAddressList as W,useEditAddress as _,useMySetting as H,usePickupPointItem as U,usePickupPointList as q,useGoodsClassify as K,useGoodCollection as J,useGoodDetail as Q,goodStore as X,useBanner as Z,useGoodSpecAndPrice as ee,useGoodFootprint as ae,useCreatePoster as oe,useCreateMiniPoster as le,useGoodsShare as se,useGoodSkuStore as te,popupImplement as ne,usePromotion as ie,useAddCoupon as ce,useCoupon as re,useEvaluate as de,useAddShopping as me,useGoodSku as he,useGoodsList as pe,useCartTop as ue,useCartListNext as ge,getRadioValue as Ne,useCartOperate as fe,useOrderAddress as be,useOrderPickupAddress as ye,userAddressData as Ce,orderStore as ve,useOrderGood as xe,useOrderCoupon as Se,useSyncOrderStore as ke,useOrderInfo as we,useOrderPay as Ie,useOrderResult as Te,useOrderResultResult as Be,useOrderOperate as Pe,orderStatusImpl as Ve,useOrderList as De,orderStatusList as Le,useOrderDetail as Re,useExpressInfo as Oe,useEvaluateDetail as Ae,useEvaluateViewDetail as Me,useCollectionList as Ye,useFootprint as je,useMemberSignin as ze,useSigninDetail as Ee,useMarketingPromotion as $e,useCouponList as Ge,useAllCoupon as Fe,useNotice as We,useNoticeDetail as _e,useArticleDetail as He}from"qj-b2c-store";import{fullPath as Ue,checkMobile as qe,ProvinceComponent as Ke,CityComponent as Je,AreaComponent as Qe,navigatorLink as Xe}from"@brushes/shared-utils";import Ze from"dayjs";import{updateContractAddress as ea,deleteEvaluateGoods as aa}from"b2c-api";import{DynamicForm as oa}from"@brushes/mobile-form";import{View as la,Image as sa,RichText as ta}from"@tarojs/components";import{ClockCircleOutline as na}from"antd-mobile-icons";const ia=s((({width:a,height:o,top:l,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:o,borderRadius:i,top:l,left:n,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:l,className:f(o,t?`${o}-${t}`:"",a),style:s})},ra=s((({value:l,shared:s,goPath:t,goPointsPath:n,textIndent:i,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:u,fontStyle:g,paddingTop:N,paddingLeft:f,paddingRight:C,paddingBottom:v})=>{const{View:x,IconMobile:S,Button:w}=p(),I=b(),T="WEB"===k.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?y("goodList",{searchParam:e}):n&&y("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:u,fontStyle:g,paddingLeft:f,paddingRight:C,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(w,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(S,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})}));function da(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 ma(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 ha=(e="b2c")=>{const[a,o]=t([]),l=i((()=>C()),[]);n((()=>{ma(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>ma(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield I();case"b2b":return yield D().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=L(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${L(l,"ocserviceConfRemark")}: ${L(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${L(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;b().showActionSheet({itemList:a})}}},pa={label:""},ua=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",ga=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",Na=(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}`},fa=e=>1===String(e).indexOf(".")?ba(e):ya(e),ba=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)},ya=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"},Ca=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const va=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?Ca+e:e?Ca+"/paas/shop/"+e:e),[e]),xa=({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})},Sa=s((({item:a,isPlay:l,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=va(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(xa,{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:y.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),ka=s((({Position:l="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b,selectImg:y,imgHeight:C,fontsize:v=16,textAlign:x="center",fontColor:S="#000000",backGroundColor:k="#ffffff"})=>{const w=i((()=>f({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:I,View:T}=p(),B=Y(n,y||[]),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:u,paddingBottom:g,paddingLeft:N,paddingRight:b},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(Sa,{isPlay:t===n,item:s,position:l,direction:m})]})})})})),wa=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:b=0,fontsize:y=16,textAlign:C="center",fontColor:v="#000000",backGroundColor:x="#ffffff",otherStyles:S=[],ImgShadow:k=!1,Position:w="top"})=>{const{View:I}=p(),T=i((()=>f("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 ${b}px`},children:e(ka,{Position:w,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:y,textAlign:C,fontColor:v,backGroundColor:x,className:f({"outer-shadow":k}),className1:T})})})),Ia=({src:a,borderRadius:o})=>{const{Image:l}=p(),s=va(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},Ta=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=Y(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`:y(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(Ia,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),Ba=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=p(),n=va(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`:y(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},Pa=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}=p(),u=Y(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:u.map(((a,t)=>e(Ba,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Va=l.createContext(null),Da=s((()=>{const{View:a}=p(),{tip:o}=r(Va);return e(a,{className:"afterSalesApplyTip",children:o})}));const La=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=da(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>C()),[]),m=function(e){const[a,o]=t(0);return n((()=>{if(!C()||!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(!C())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:u}=p(),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(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:l}))},Ra=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Va);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(o,{className:"reasonPopup",children:e(La,{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)))})]})})})})})})),Oa=s((()=>{const{View:o}=p(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:n}=r(Va);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(ca,{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:ua(n)})})]}),e(Ra,{popupShow:s})]})})),Aa=s((()=>{const{View:o,TextArea:l,Textarea:s}=p(),t=s||l,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Va);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(ca,{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(ca,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),Ma=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:y,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(Va.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:y,reason:C,handleChooseImg:v,imgGroup:x,placeholder:S,handleDelImg:k,limit:w,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:T,handleSubmit:B},children:[e(Da,{}),e(Oa,{}),e(Aa,{}),e(m,{className:"submitBtn",onClick:B.bind(null,t,l,o,n),children:"确定"})]})})})},Ya={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},ja={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},za=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:n,Image:i}=p();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(ca,{style:{color:null===(s=Ya[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ya[o.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ya[o.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Ue(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:ja[o.refundType][o.dataState]}),e(ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ea=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),$a=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(La,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(za,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(Ea,{})})})})})})),Ga=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:E,render:o=>e($a,{item:o,refreshNum:a})})})})),Fa=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h,contractBillcode:u})=>{const{View:g,Image:N,SmoothView:f}=p(),b="06"===d?m+"积分":ua(n),y=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:Ue(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:b})]}),a(g,{className:"card-item-info-sub",children:[a(f,{className:"sku",children:["规格:",c]}),e(f,{className:"count",children:y})]}),a(g,{className:"orderNo",style:{fontSize:12,color:"#999"},children:["订单号: ",u]}),r]})]})})},Wa=(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]}},_a=l.createContext(null),Ha=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(_a),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:l,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(La,{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)))})]})})})})})),Ua=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(_a),{View:i,Input:c}=p();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(Ha,{})]})})),qa=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:b}=$({refundCode:l}),{contractBbillcode:y,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}=p();return e(M,{loading:b,children:e(O,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(_a.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(O,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(O,{className:"left_text",children:Wa(I,C)}),e(O,{className:"right_time",children:Ze(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(Fa,{dataPic:Ue(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:y})]}),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:Ue(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(O,{className:"refund_Detail",children:[e(O,{className:"left",children:"申请时间"}),e(O,{className:"right",children:Ze(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(Ua,{})]}):"",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]})})})})),Ka=l.createContext(null),Ja=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Ka),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ua(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:Ue(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:g}),a(o,{className:"stepWrap",children:[e(ca,{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]})]})]})})),Qa=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Ka);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(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),Xa=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:b}=G({contractBillcode:l,skuCode:s}),{View:y,WrapLoading:C}=p();return e(C,{loading:f,children:e(y,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ka.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:b},children:[e(Ja,{}),e(Qa,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},Za=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=p();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:"设为默认地址"})})},eo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=F(o),c=w(),{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(Za,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>y("editAddress",{addressId:o.addressId}),children:"编辑"}),r.contractBillcode?e(n,{className:"del",onClick:()=>ma(void 0,void 0,void 0,(function*(){const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;yield ea({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),y("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(n,{className:"del",onClick:l,children:"删除"})]})]})]})},ao=s((()=>{const{View:a,Skeleton:l}=p(),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)))})})})})),oo=s((({url:o,title:l,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();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:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),lo=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=W(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(ao,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(eo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(oo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),so=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();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:()=>y("addressEditor"),children:"+ 新增地址"})})})),to=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],no=[{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:Ke}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Je}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Qe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],io=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({}),[u,N]=t(!!r),{Button:f}=g,{onSubmit:b}=_(r);if(n((()=>{ma(void 0,void 0,void 0,(function*(){if(r){N(!0);let e=yield T({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),N(!1)}else N(!1)}))}),[r]),!u)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(oa,{initialValues:m,footer:e(f,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:to,onSubmit:b,fields:no})})})),co=s((()=>{const{View:o}=p(),l=e=>{y(`/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(u,{value:"xiangyou1"})})]},t)))})})})),ro=()=>{const{View:o}=p(),{mySettingGoBind:l,mySettingLogout:s}=H();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(ca,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},mo=s(ro),ho=({itemData:o})=>{const{View:l,Text:s}=p(),{handlerImpl:t}=U(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||""]})})]})})},po=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,Loading:i}=p(),{list:r,loading:d,skullShow:m,onScroll:h}=q(o);console.log("list",r,m);const u=c(null),g=b(),N="WEB"===k.getEnv();return n((()=>{if(N){const e=u.current;if(!e)return;const a=new IntersectionObserver((e=>{e[0].isIntersecting&&!d&&h()}),{rootMargin:"100px"});return a.observe(e),()=>a.disconnect()}{const e=k.createIntersectionObserver(g);return e.relativeToViewport({bottom:100}).observe("#pickup-point-list-sentinel",(e=>{e.intersectionRatio>0&&!d&&h()})),()=>e.disconnect()}}),[d,h,g,N]),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:m?e(ao,{}):e(t,{className:"addressList",children:r.length?a(t,{children:[r.map(((a,o)=>e(ho,{itemData:a},a&&a.userinfoOcode||o))),d&&e(i,{}),e(t,{id:"pickup-point-list-sentinel",ref:u,style:{height:"1px"}})]}):e(oo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})),uo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();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:()=>ma(void 0,void 0,void 0,(function*(){yield v("导入成功","none")})),children:"导入微信收件地址"})})})),go=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();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:()=>y("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:No}=g,fo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(i,{children:e(La,{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(No,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(No.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(go,{navList:m,activeKey:r,cell:o})})]})})})})})),bo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/search.png",yo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/THREE_DOTS.png",Co="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/share.svg",vo=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:b,Image:C}=p(),v=i((()=>f("txt",...g)),[g]);return e(b,{onClick:()=>y(l),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(b,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(C,{src:bo,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,{className:v,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),xo=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:u,paddings:g,otherStyles:N=["mockWeight","mockItalic"],urlPath:b="search"})=>{const{View:C,Image:v}=p(),x=i((()=>f("txt",...N)),[N]),S=k.useRouter(),[w,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(C,{onClick:()=>y(b),style:{paddingTop:g,paddingBottom:g,paddingLeft:d,paddingRight:m},className:h?"boxPosition":"",children:a(C,{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(C,{style:{width:"80%"},children:[e(v,{src:bo,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,w?{className:x,style:{color:s,display:"inline-block",fontSize:u},children:w}:{className:x,style:{color:s,display:"inline-block",fontSize:u},children:o})]}),e(C,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:u,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),So=s((({placeholder:o,placeholderText:l,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>C()),[]),{View:f,Text:v,Input:k}=p(),[w,I]=t((()=>x("history")||[])),[T,B]=t(""),P=e=>{y(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:bo,alt:""}),e(k,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:T,onInput:e=>B(e.detail.value),onConfirm:e=>ma(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 S("history",o),o}return a})),P(g.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(v,{className:"btn",onClick:()=>{const e=T.trim();e&&(I((a=>{if(!a.includes(e)){const o=a.concat(e);return S("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(ca,{onClick:()=>ma(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]})})),ko=s((({defaultValue:o=[],classCode:l="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:b,paddingLeft:C,paddingRight:v,goodsName:x=!0,goodsPrice:S=!0,goodsCar:k=!0,goodsBorder:w=!0,goodsShadow:I=!1,marginGap:T=10})=>{const[P,V]=t(o),D=c(),{View:A,Text:M}=p();return n((()=>{R(D.current,u)||(D.current=u,O(u)?V(o):ma(void 0,void 0,void 0,(function*(){try{const e=yield B({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=L(e,"list",[]);V(a)}catch(e){V(o)}})))}),[u]),e(A,{style:{paddingTop:N,paddingBottom:b},children:e(A,{className:f({[`goods-${l}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:C,paddingRight:v},children:P.map(((o,l)=>a(A,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:w?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:o.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(A,{className:"goods-img",style:{backgroundImage:`url(${Ue(o.dataPic)})`}}),a(A,{className:"space",children:[e(A,{className:"titleType",style:{display:x?"block":"none"},children:o.goodsName}),e(A,{className:"subTitle",children:o.brandName}),a(A,{className:"price",children:[a(A,{style:{fontSize:18},children:[S?ua(o.pricesetNprice):"",1===g&&e(M,{className:"markedPrice",children:ua(o.pricesetMakeprice)})]}),e(A,{className:"anticon",style:{display:k?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})}));var wo=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 Io=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:u,loop:g,paddingTop:N,paddingBottom:b,paddingLeft:y,paddingRight:C,selectImg:v,imgHeight:x,collectParams:S,fontsize:w=16,textAlign:I="center",fontColor:T="#000000",backGroundColor:B="#ffffff"})=>{const P="WEB"===k.getEnv(),V=i((()=>f({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===u}))),{handleCollect:D,collection:L}=J(S),[R,A]=t(!1),{SmoothSwiper:M,View:j,Button:z}=p(),E=Y(r,v||[]),$=a=>e(j,{className:c,style:{fontSize:w,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 wo.on("IsCollectionShow",e),()=>{wo.off("IsCollectionShow",e)}}),[]),a(j,{className:s,style:{position:"relative",paddingTop:N,paddingBottom:b,paddingLeft:y,paddingRight:C},children:[a(j,{style:{position:"absolute",top:10,right:10,zIndex:9,display:"flex",gap:10},children:[e(j,{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:()=>{wo.emit("bannerImageClick","poster")},style:{width:"100%",height:"100%"},alt:"生成海报"})}),e(j,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8},children:P?e("img",{src:Co,onClick:e=>{e.stopPropagation(),wo.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(z,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Co})`,backgroundSize:"100% 100%",width:16,height:16,padding:0},className:"wx-share-button"})}),e(j,{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:E,className:V,type:d,autoplay:m,autoplayInterval:h,direction:u,loop:g,interval:5e3,vertical:"vertical"===u,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?$(s):null,e(Sa,{isPlay:t===n,item:s,position:l,direction:u})]})})]})})),To=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:n,memberCode:i=""}=Q(l,s),c=X.getState();X.setState(Object.assign(Object.assign({},c),{memberCode:i})),console.log(24,i);const r=Z(t),{goodInfo:d}=ee(n),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:l};return e(Io,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function Bo(o){const{content:l,position:s="top"}=o,[n,i]=t(!1);return a(la,{className:"tooltip-wrap",children:[e(la,{className:"tooltip-icon",onClick:()=>i(!n),children:e(sa,{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(la,{className:`tooltip-popup tooltip-${s}`,children:[l,e(la,{className:"tooltip-arrow"})]})]})}const Po=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!C())return;return"WEB"===b().getEnv()?e(o,{children:a?e(Vo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(Do,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},Vo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r,width:d,height:m}=oe(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})},Do=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Image:i,Button:c,Canvas:r}=p(),{save:d,width:m,height:h,posterImage:u,setPosterImage:g}=le(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&&u&&e(i,{src:u,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:"保存图片"})})]})]})})},Lo=({skuCode:o,priceShow:l,collectionShow:s,scene:i})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:u,Button:g,IconMobile:N,Text:f}=p(),{rsSkuDomainList:y,rsGoodsFileDomainList:C,goodsDayinfo:v}=Q(o,i),{goodInfo:x}=ee(y);console.log("goodInfo",x);const S=x.mpriceStairDomainListMap||{},w=Object.values(S),I=w.length>0?w[0]:[],T=I.length>0?I.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";ae(o);const B=b(),P="WEB"===k.getEnv();wo.emit("IsCollectionShow",{collectionShow:s}),n((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&V()};return wo.on("bannerImageClick",e),()=>{wo.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(Po,{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:ua(x.pricesetNprice)})]}),a(m,{className:"sale-price",style:{display:l?"block":"none"},children:["促销价",e(f,{className:"price-value",children:ua(x.pricesetNprice)})]}),T?e(d,{className:"page",children:e(Bo,{content:T,position:"left"})}):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,"天内"]})]})]})},Ro=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=p(),{handleCollect:n,collection:i}=J(o),{handleShare:c}=se();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]})})),Oo=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=Q(t,n),{goodInfo:d}=ee(r);return te((e=>e.spec)),ae(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:ua(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Ro,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:t})]})})),Ao=s((()=>{var o;const{View:l,Text:s}=p(),t=te((e=>e.count)),n=te((e=>e.spec));console.log("specspecspecspecspecspec",n);const i=null===(o=k.getCurrentInstance().router)||void 0===o?void 0:o.params.skuName;console.log("skuName from params:",i);const c=i?decodeURIComponent(i).replace(/\//g,","):n;return a(s,{className:"label",children:[e(s,{className:"blod font-14 letter-spacing-1",children:"已选"})," 规格: ",e(s,{className:"blod",children:c}),e(s,{style:{margin:"0 18px 0 10px"},children:"|"}),"数量: ",e(s,{className:"blod font-14",children:t})]})})),Mo=({dispatchPageStore:l})=>{const{View:s,Text:t}=p(),{openPopup:i}=ne(l),r=te((e=>e.goodsSupplynum)),d=c(!1);return n((()=>{var e;const a=null===(e=k.getCurrentInstance().router)||void 0===e?void 0:e.params.skuName;if(a&&!d.current){const e=decodeURIComponent(a).replace(/\//g,",").split(",").filter(Boolean);console.log("specList",e),X.setState({spec:e}),d.current=!0}}),[]),e(o,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[a(s,{className:"goods-supplynum",children:["库存:",e(t,{className:"blod",children:r})]}),a(s,{className:"info",children:[e(Ao,{}),e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",className:"icon"})]})]})})},Yo=({skuCode:o,scene:l})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=Q(o,l),{goodInfo:i}=ee(n),c=ie(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:"暂无促销活动"})})]})},jo=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ce(),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:[Ze(o).format("YYYY-MM-DD")," - ",Ze(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>u({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),zo=()=>{const{View:a,Image:o}=p();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Eo=l=>{var{skuCode:s,scene:t}=l;da(l,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:m}=Q(s,t),{goodInfo:h}=ee(m),{coupon:u,visible:g,setVisible:N}=re(m,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(La,{children:u.length>0?u.map(((e,a)=>d(jo,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(zo,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},$o=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:i}=p(),[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(ca,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},Go=({item:o})=>{const{View:l,Image:s,Text:t,Button:n}=p(),i=C(),c=b();x("user");const{userInfoCode:r}=x("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($o,{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:Ue(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{ma(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield aa({evaluateGoodsId:a,isLocalMock:!i}),yield v("删除成功","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]})},Fo=({evaluateArr:o})=>{const{View:l}=p();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(Go,{item:a},o)))]}):e(oo,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Wo=process.env.REACT_APP_BASE_URL,_o=({goodsRemark:a})=>{const{View:o}=p(),l=i((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${Wo}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ta,{nodes:l})})},Ho=({goodsRemark:o})=>{const{View:l}=p(),[s,c]=t({}),[r,d]=t(!1),h=i((()=>{const e=window.location.hash.split("?")[1]||"";return new URLSearchParams(e).get("skuCode")||""}),[window.location.hash]),u=m((e=>ma(void 0,void 0,void 0,(function*(){if(e){d(!0);try{const a=yield P({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}))),[]);n((()=>{u(h)}),[h,u]);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:"加载中..."})]})},Uo=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),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(h,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},qo=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=Q(n,i),u=de(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(Uo,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(_o,{goodsRemark:m}):2===r?e(Fo,{evaluateArr:u,evaluateImgShow:l,evaluateImg:s}):1===r?e(Ho,{goodsRemark:m}):null})]})},Ko=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:n})=>{var i;const{View:c,Text:r}=p(),d=te((e=>e.offShelf));console.log("skuOptionskuOptionskuOption",JSON.stringify(t));const m=null===(i=k.getCurrentInstance().router)||void 0===i?void 0:i.params.skuName,h=m?decodeURIComponent(m):"",u=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a)),g=e=>u(h||s,e);return a(c,{className:"sizeArr",children:[e(r,{className:"title",children:o}),e(c,{className:"sizeArrItemWrap",children:t.map(((a,o)=>e(c,{className:f({sizeItem:!0,active:g(a.specValueValue),offShelf:!g(a.specValueValue)&&d}),onClick:l.bind(null,a.specValueValue,n),children:a.specValueValue},o)))})]})},{Stepper:Jo}=g,Qo=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=p(),n=s||1,i=l||999;return e(t,{className:"numStepWrap",children:e(Jo,{value:a,max:i,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l===a+1)return a>=i?void v("超库存","none"):void o("plus");if(l===a-1)return a<=n?void v(`起购数为${n}`,"none"):void o("minus");if(l<n)v(`起购数为${n}`,"none");else if(l>i)v("超库存","none");else if(l!==a){const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:l}))}},onBlur:e=>{const a=e.target.value;if(!a)return;const o=parseInt(a,10);if(!isNaN(o))if(o>i){v("超库存","none");const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:i}))}else if(o<n){v(`起购数为${n}`,"none");const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:n}))}},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"}})})},Xo=s((({handleStep:a,goodsNum:o,goodsMinnum:l})=>{const{View:s}=p(),t=te((e=>e.count));return e(s,{className:"countWrap",children:e(Qo,{count:t,handleStep:a,goodsNum:o,goodsMinnum:l})})})),Zo=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:n,handleStep:i})=>{const{Image:c,View:r}=p(),{skuList:d}=l,m=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ua(n.pricesetNprice);return a(o,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(c,{src:Ue(n.dataPic),alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:n.goodsName}),e(r,{className:"price",children:m}),e(Xo,{handleStep:i,goodsNum:n.goodsSupplynum,goodsMinnum:n.goodsMinnum})]})]}),d.map(((a,o)=>e(Ko,{goodsShowname:n.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},el=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=te((e=>e.isNeedButton)),r=te((e=>e.offShelf));return r?e(i,{className:f({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:"立即购买"})]})})},al=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=ee(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=me(l,s,t,o);return a(n,{className:"goodsDetail-size-popup",children:[e(La,{children:e(i,{children:e(n,{className:"content",children:e(Zo,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r,handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})})})}),e(el,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),ol=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(al,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},ll=s((({serverShow:l,cartShow:s,lPartShow:i,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:u,rPartText:g,dispatchPageStore:N,skuCode:f,platform:b,scene:C})=>{const{View:v,IconMobile:S,Text:w,Image:I}=p(),T=te((e=>e.offShelf)),{rsSkuDomainList:B,goodPro:P}=Q(f,C),{goodInfo:V}=ee(B);ha(b);const{addCardPopup:D,buyOpenPopup:L}=ne(N),[R,O]=t("10px"),A="WEAPP"===k.getEnv();return n((()=>{const e=(()=>{try{const e=k.getSystemInfoSync(),a=k.getEnv();if(a===k.ENV_TYPE.WEAPP||a===k.ENV_TYPE.ALIPAY||a===k.ENV_TYPE.SWAN||a===k.ENV_TYPE.TT||a===k.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:()=>{k.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=x("user")||{},a=k.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||""}]}),k.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(S,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(v,{className:"txt",children:"客服"})]}),a(v,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:s?"block":"none"},children:[e(S,{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(w,{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:u,borderBottomRightRadius:u},!1===i?{borderTopLeftRadius:u,borderBottomLeftRadius:u}:{}),children:g||("10"===V.goodsPro?"预售抢购":"立即购买")})]})})]})})),sl=l=>{var{$_dataSource:s={},dispatchPageStore:t=A,skuCode:n,scene:i}=l,c=da(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=Q(n,i),h=he(r,m),{popupVisible:p}=s;return a(o,{children:[e(ll,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(ol,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},tl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],nl=({setParams:o,activeColor:l})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(tl);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(ca,{style:{color:n===m&&"asc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:n===m&&"asc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},il=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:u=!0,goodsColor:g=!0,goodsGap:N=10,paddingLR:b=0,__link__:y={}})=>{console.log(111,y);const{View:C,Loading:v,SmoothView:x,Image:S,ScrollView:k,IconMobile:w}=p(),[I,T]=t({}),{loading:B,getData:P,list:V}=pe(o,l,I,n),D=i((()=>f("textBox",{btm:!r&&!d})),[r,d]),L=i((()=>f("name",{boxNone:!c})),[c]),R=i((()=>f("middle_margin",{boxNone:!m})),[m]),O=i((()=>f("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),A=i((()=>f({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(nl,{setParams:T,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${b}px`},children:e(La,{id:"listWrap",children:a(k,{onScroll:()=>P(I),children:[e(C,{className:"list",style:{gap:N},children:V.map((o=>a(C,{onClick:()=>Xe(y,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:u?"8px":"",boxShadow:g?"4px 4px 4px #969292":""},children:[e(S,{src:Ue(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:ua(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ua(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]})})})]})})),cl=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=o,{editorImpl:m}=ue(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?"完成":"编辑"})})},rl=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:n}=p();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})})]})})),dl=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(La,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>d(rl,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},ml=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();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:ua(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),hl=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:n}=p(),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:()=>y("goodDetail",{skuCode:s})})]})})),pl=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:n}=p(),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"}})})})),ul=({promotion:l=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[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(dl,{promotionCode:c,onChange:e=>{m(!1),s(n,Ne(e))},promotion:l||[],visible:d,setVisible:m})})]})},gl=s((o=>{var{item:l}=o,s=da(o,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(pl,{cartIsEditor:i,dataState:l.dataState,select:n,shoppingGoodsId:l.shoppingGoodsId}),e(hl,{dataState:l.dataState,dataPic:Ue(l.dataPic),skuCode:l.skuCode}),e(ml,Object.assign({},l,s))]})})),Nl=l=>{var{shoppingGoodsList:s=[]}=l,t=da(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(h,{children:[e(gl,Object.assign({},t,{item:o})),o.pmPromotionList?e(ul,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},fl=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=p(),n=i((()=>O(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Xe(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]})},bl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:l}),o&&e(fl,{link:t,disNextMsg:o})]})},yl=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:b,handleStep:y,updatePm:C}=ge(l,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:b,children:f.length?e(o,{children:f.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(bl,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(Nl,{cartIsEditor:g,promotionCode:l,handleStep:y,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(oo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Cl=({$_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}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=o,{toOrderImpl:b,deleteCart:y,clearAll:C,selectAll:v,ids:x,cartDetail:S}=fe(N,u,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:u.length===N.length?["true"]:[],onChange:v,children:e(h,{checked:u.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:y,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ua(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ua(S.amount)})]})]}),a(r,{onClick:b,className:"btn",style:k,children:["结算(",S.num,")"]})]})]})},vl=({address:a})=>e(o,{children:O(a)?e(Sl,{}):e(xl,{address:a})}),xl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=p(),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]})]})},Sl=()=>{const{View:l,Text:s}=p();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},kl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:n=""})=>{const{View:i}=p(),c=be(a,l,o,s,t,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(vl,{address:c})})},wl=({address:a})=>e(o,{children:O(a)?e(Tl,{}):e(Il,{address:a})}),Il=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=p(),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})]})]})},Tl=()=>{const{View:l,Text:s}=p();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Bl=({refreshNum:a})=>{const{View:o}=p(),l=ye(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>y("pickupPointList"),children:e(wl,{address:l})})},Pl=({tabActive:l,setTabActive:s,tabs:t})=>{const{Text:n}=p();return e(o,{children:t.map(((o,t)=>e(h,{children:a(n,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(n,{className:"line"})]})},o.id)))})},Vl=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:i="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=p(),h="235990605097"===(X.getState().memberCode||""),u=h?"1":"0",[g,N]=t(u),f=h?[{title:"自提",id:"1"}]:[{title:"快递",id:"0"},{title:"自提",id:"1"}];return n((()=>{Ce.contractPumode=g,ve.setState({contractPmode:g})}),[g]),a(d,{className:"placeOrderAddressTabs",children:[e(d,{className:"delivery-header",children:e(d,{className:"tabs",children:e(Pl,{tabActive:g,setTabActive:N,tabs:f})})}),e(d,{className:"content",children:"0"===g?e(kl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(Bl,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:i})})]})},Dl=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();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:[Ze(o).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Ll=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();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:[Ze(o).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Rl=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:m})=>{const{View:h,Text:g,Popup:N,Form:f,SmoothRadio:b,Button:y,SmoothCheckbox:C,ScrollView:v,Radio:x,Image:S}=p(),{shoppingGoodsList:k}=xe({refreshNum:l,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:m}),{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:Y,creditList:j,creditInfo:z,selectCredit:E,creditVisible:$,payVisible:G,setPayVisible:F,handleChooseImg:W,contractEcurl:_,setCreditVisible:H}=Se(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(g,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(g,{className:"label",children:P?`已选择: ${P}`:0===w.length?"暂无可用优惠券":"请选择优惠券"}),0===w.length?null:e("img",{src:yo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select pay-mode",onClick:()=>F(!0),children:[e(g,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(S,{src:Y?Y.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(g,{className:"label",children:Y}),0===w.length?null:e("img",{src:yo,alt:"",className:"icon"})]}),e(u,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]})]}),z.urechargeId&&"0"===O&&a(h,{className:"coupon-select",onClick:()=>H(0!==j.length),children:[e(g,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(g,{className:"label",children:E?0===+E?"不使用":`已选择: ${E}%`:"请选择授信"}),0===w.length?null:e("img",{src:yo,alt:"",className:"icon"})]})]}),"1"===O&&a(h,{className:"coupon-select",children:[e(g,{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:G,popupHandler:F,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(v,{children:e(b,{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:$,popupHandler:H,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(v,{children:e(b,{onChange:D,children:(null==j?void 0:j.length)>0&&j.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(La,{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=>d(Dl,Object.assign({isDisabled:2===T.length},e,{key:e.couponNo}))))},"visible"):e(b,{value:(null==T?void 0:T.length)>0?T[0].couponNo:"",onChange:V,children:w.map(((e,a)=>d(Ll,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(y,{className:"operate reset",onClick:R,children:"重置"}),e(y,{className:"operate",onClick:L,children:"确认"})]})]})})]})},Ol=()=>{const{View:o}=p(),l=ke(),s="235990605097"===(X.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})]})})},Al=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=xe({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(Fa,Object.assign({},a),l)))})))})},Ml=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=xe({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:b,disCount:y,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}=we(b),D=ua(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:ua(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+"积分":ua(k)]})]}),"06"===P?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ua(w)]})]}),"06"===P?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ua(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ua(-S.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ua(-(T+y))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ua(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})]})]})})},Yl=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:b,payState:y,creditMoney:C,ocContractSettlList:v,pointsDeduction:x}=xe({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:S,loading:k}=Ie({ocContractSettlList:v,payState:y,list:b,goodsBeanStr:r},d,Math.max(f-C,0));y&&y.length>0&&(y[0].shoppingType,y[0].pricesetRefrice);const w=ua(Math.max(f-C,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",e(g,{className:"price-value",children:r?"0.00":w})]}),e(N,{loading:k,children:e(u,{className:"btn",onClick:S,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},jl=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>C()),[]),u=X.getState().memberCode||"",g="235990605097"===u,{View:N,Text:f,Radio:b,IconMobile:y,WrapLoading:v,SmoothRadio:x,Image:S}=p(),{paymentImpl:k,channelList:w,contract:I,handleRadio:T,loading:B}=Te({contractBillcode:o,contractBbillcode:l,memberCode:u}),P=i((()=>(console.log("%cNODE_ENV","color: red; font-weight: bold;",process.env.NODE_ENV),g||location.origin.includes("dev")?w:null==w?void 0:w.filter((e=>"BUY_B"!==e.dicActorCode)))),[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:ua(I.current.orderMoney)})]}),a(N,{className:"info",children:["订单总金额:",ua(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(b,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]})})]},o.fchannelCode)))})]})]}),e(N,{id:"v_html"}),e(v,{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:"立即支付"})})})]})})),zl=({dataObj:o})=>{const{View:l,Text:s}=p();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:ua(o.dataBmoney)})]})]})},El=s((({code:o,goodsBeanStr:l,borderRadius:s,leftColor:t,leftButtonColor:n,leftBorderColor:i,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:u,rightBorderRadius:g,paddingTop:N,paddingBottom:f})=>{const{View:b,Text:C,IconMobile:v,WrapLoading:S}=p(),{result:k,loading:w}=Be(o||(x("contractBillcode")||{}).contractBillcode,l);return e(b,{className:"placeOrderResult",style:{paddingTop:N,paddingBottom:f},children:e(S,{loading:w,children:a(b,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(v,{value:k.icon,style:{fontSize:"35px",color:k.color}}),a(b,{className:"tips",children:[e(C,{className:"title",children:k.msg}),e(C,{className:"tip",children:k.info})]}),"success"===k.sysRecode&&e(zl,{dataObj:k.dataObj}),a(b,{className:"btnGroup",style:{marginTop:20},children:[e(b,{className:"btn black",onClick:()=>l?y("orderlist"):y(k.menuCode,{contractBillcode:k.dataObj.contractBillcode}),style:{color:t,backgroundColor:n,border:`1px solid ${i}`,borderRadius:1===c?"20px":"0px"},children:k.buttonText}),e(b,{style:{color:m,backgroundColor:h,border:`1px solid ${u}`,borderRadius:1===g?"20px":"0px"},onClick:()=>y(d.value),className:"btn white",children:r})]})]})})})})),{Button:$l}=g,Gl=a=>{var{dataState:l}=a,s=da(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(Fl,Object.assign({dataState:l},s))})},Fl=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=da(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=Pe(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e($l,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},Wl=({contractPaydate:l,init:s,countdownCancel:i,contractId:c})=>{const{View:r,Text:d,SmoothView:m}=p(),{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((()=>{k.eventCenter.trigger("switchOrderTab")})):t>1e3&&i(Na(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(na,{}),e(d,{className:"count-down-text",children:e(m,{children:h})}),e(d,{children:"后将取消订单,请尽快支付"})]}):null})};function _l({memberName:o,contractBillcode:l,dataBmoney:s,dataBnum:t,goodsList:n,dataState:i,contractId:c,init:r,contractAppraise:d,borderRadius:m,orderSpacing:h,contractPaydate:u,contractType:g,countdownCancel:N}){const{View:f,SmoothView:b,Image:C}=p(),v=Ve(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(C,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(b,{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:()=>y("orderDetail",{contractBillcode:l}),children:n.map((a=>e(Fa,Object.assign({},a,{dataState:i}),a.contractGoodsId)))}),i&&1===i&&e(Wl,{contractPaydate:u,init:r,countdownCancel:N,contractId:c})]}),a(f,{className:"allInfo",children:[a(f,{className:"totalNum",children:["共",t,"件商品"]}),a(f,{className:"totalPrice",children:["合计 ",ua(s)]})]}),e(Gl,{init:r,contractType:g,contractId:c,contractBillcode:l,dataState:i,contractAppraise:d,dataBmoney:s})]})}const Hl=()=>{const{View:a,Image:o}=p();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const Ul=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:i}){const{View:r,Loading:m}=p(),{onScroll:h,data:u,loading:g,init:N,countdownCancel:f}=De(o,l,i),C=c(null),v=b(),x="WEB"===k.getEnv();return n((()=>{if(x){const e=C.current;if(!e)return;const a=new IntersectionObserver((e=>{e[0].isIntersecting&&!g&&h()}),{rootMargin:"100px"});return a.observe(e),()=>a.disconnect()}{const e=k.createIntersectionObserver(v);return e.relativeToViewport({bottom:100}).observe("#order-list-sentinel",(e=>{e.intersectionRatio>0&&!g&&h()})),()=>e.disconnect()}}),[g,h,v,x]),e(r,{className:"orderListItemWrap",children:u.length>0?a(r,{children:[u.map(((e,a)=>d(_l,Object.assign({init:N},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:f})))),e(r,{children:g?e(m,{}):null}),e(r,{id:"order-list-sentinel",ref:C,style:{height:"1px"}})]}):a(r,{className:"nodata_img",children:[e(Hl,{}),e(r,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})),ql=s((({tabs:a,activeIndex:o,activeColor:l="#000",onChange:s})=>{const{View:t}=p(),n=Number(o);return e(t,{className:"qj-tabs",id:"qj-tabs-id",children:a.map(((a,o)=>{const i=f({"actived-item":n===o,"default-item":!0});return e(t,{onClick:()=>s(a,o),className:i,style:{borderColor:n===o?l:""},children:a.name},a.code||o)}))})})),Kl=process.env.TARO_ENV;let Jl=Le;if(console.log("platform",Kl),"h5"==Kl){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(Jl=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=k.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(Jl=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Ql=s((({refreshNum:o=0,indexId:l=0,borderRadius:s=!1,orderSpacing:i=12,contractType:c=""})=>{const{View:r}=p(),[d,m]=t(l),[h,u]=t(Jl[l]||Jl[0]);n((()=>{const e=()=>{const e=Jl.findIndex((e=>"-1"===e.code));m(e),u(Jl[e])};return k.eventCenter.on("switchOrderTab",e),()=>{k.eventCenter.off("switchOrderTab",e)}}),[]),n((()=>{const e=l;m(e),u(Jl[e]||Jl[0])}),[l]);return a(r,{className:"order-container",children:[e(ql,{tabs:Jl,activeIndex:d,onChange:(e,a)=>{m(a),u(e)}}),e(r,{className:"orderList",children:e(Ul,{contractType:c,item:h,orderSpacing:i,refreshNum:o,borderRadius:s},h.code)})]},l)})),{Button:Xl}=g,Zl=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=i((()=>C()),[]),n=i((()=>s?b():null),[s]),c=e=>ma(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(Xl,{className:"copy",size:"mini",fill:"outline",onClick:()=>ma(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?"已复制":"复制"})})),es=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:b,handleApplyBtn:C,creditMoney:v,packageRemark:x,expressName:S}=Re(l||""),k=e=>Ze(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:["待收货"===Ve(b.dataState)?e(ca,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Ve(b.dataState,b.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:k(b.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(ca,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:b.goodsReceiptMem}),e(N,{className:"personPhone",children:b.goodsReceiptPhone})]}),e(g,{className:"address",children:b.goodsReceiptArrdess})]}),e(g,{className:"rPart",children:[1,2,3].includes(Number(null==b?void 0:b.dataState))&&e(N,{onClick:()=>y("addressList",{contractBillcode:b.contractBillcode}),children:"编辑"})})]}),a(g,{className:"orderDetailGoodsWrap",children:[b.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{y("goodDetail",{skuCode:l.skuCode})},children:[e(Fa,Object.assign({},l),l.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),y(u,{skuCode:l.skuCode})},children:"商品快照"}),Number(b.dataState)>1&&Number(b.dataState)<4&&"06"!==b.contractType&&"08"!==b.contractType?e(g,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),C.bind(null,l,b.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(g,{className:"priceInfo",children:"06"!=b.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",b.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((b.dataBmoney-b.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",b.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-b.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"===b.contractPumode?"自提":"快递"})]})]}),"06"!==b.contractType&&a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:0===b.contractInvstate?"未开票":1===b.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:["¥",b.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:b.contractBillcode}),e(Zl,{copyContent:b.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:k(b.gmtCreate)})]}),"06"!=b.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ua(-v)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===b.contractPmode?"线上支付":"线下支付"})})]}),"1"===b.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:Ue(b.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Gl,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:b.contractBillcode,contractId:b.contractId,contractType:b.contractType,dataState:b.dataState,contractInvstate:b.contractInvstate,dataBmoney:b.dataBmoney,contractAppraise:b.contractAppraise})})]})})]})})),as=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:n}=p(),i=L(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=L(l,"packageList.length",o.count),r=L(l,"packageList[0].expressName",o.expressName),d=L(l,"packageList[0].packageBillno",o.packageBillno),m=L(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]})]})]})},os=({defaultValue:o,detail:l})=>{const{View:s}=p(),t=L(l,"message",o.message),n=L(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})})},ls=s((({code:o,defaultValue:l})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Oe(o);return a(s,{className:"expressInfo",children:[e(as,{info:t,detail:n,stateObj:i,defaultValue:l}),e(os,{detail:n,defaultValue:l})]})})),ss=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=ha(),[N,f]=t(c),[b,C]=t(i);return n((()=>{f(x("userNickname")),C(x("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${l}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>y("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>y("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(u,{src:b,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),ts=s((({title:o,columnList:l})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({}),[h,u]=t(0),g=[1,3,4,5],N=()=>ma(void 0,void 0,void 0,(function*(){try{const e=yield V();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}}));n((()=>{const e=x("myPageShowNum")||0;u(e),N();const a=setInterval((()=>{const e=x("myPageShowNum")||0;e!==h&&(u(e),N())}),500);return()=>{clearInterval(a)}}),[h]);const f=(e,a)=>{var o;if(4===e.id)return void y("afterSalesList");const l=null!==(o=g[a])&&void 0!==o?o:a+1;y("orderlist",{indexId:l})};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:()=>y("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:f.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)))})]})})),ns=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>y(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ue(o.imgUrl),className:"icon"}),e(n,{className:"label",children:o.link.label})]}),e(i,{value:"xiangyou1"})]},l)))})})),is=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;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)))})]})},cs=[{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"}]}],rs=s((()=>{const[l,s]=t("1"),{View:n}=p(),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:cs.map(((a,o)=>e(is,{itemData:a},o)))})]})})),ds=s((({code:o,borderRadius:l,borderColor:s,color:n,buttonColor:i,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:u,changeStar:N,Submit:f,changeContent:y,addImg:C,removeImg:v,getImgUrls:x}=Ae(o),{Button:S}=g,{View:k,Image:w,TextArea:I,Textarea:T}=p(),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:[u.map(((o,s)=>a(h,{children:[a(k,{className:"topInfo",children:[a(k,{className:"lPart",children:[e(w,{src:Ue(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($o,{onChange:N.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(ca,{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:u}=Me(o),{Button:N}=g,{View:f,Image:b,Text:y}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(b,{src:Ue(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($o,{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(y,{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(b,{className:"evaluate-img",src:Ue(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s)})),m.length?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),hs=({item:o,edit:l,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p(),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)||y("goodDetail",{skuCode:o.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(n,{src:Ue(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," 元"]})]})]})]})},ps=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:u}=Ye(),{View:g,ScrollView:N,SmoothCheckbox:f,Checkbox:b,Button:y,Image:C}=p();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(La,{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(hs,{item:a,edit:l,checked:r},a.collectId)))}),l?a(g,{className:"handleBar",children:[e(g,{className:"checkAll",style:{width:"130px"},children:e(b,{value:"1",checked:h,onChange:()=>{if(!h){const e=o.map((e=>e.collectCode));d(e),u(!0)}else d([]),u(!1)},children:"全选"})}),e(y,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),us=({item:o,edit:l,checked:s})=>{var t,n;const{View:i,Image:c,Checkbox:r,SmoothView:d}=p();return a(i,{className:"collectItem",children:[l?e(r,{className:"lPart",value:o.collectCode,checked:s}):null,a(i,{className:"rPart",onClick:()=>y("merchantShop",{memberCode:o.collectOpcode}),children:[e(c,{src:Ue(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})]})]})]})},gs=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ye(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:b}=p();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(b,{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(La,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{value:r,onChange:n,style:{height:"100%"},children:o.map(((a,o)=>e(us,{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]})})]})})})),Ns=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),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:()=>y("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:Ue(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}=p();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(Ns,{footprintItem:a,edit:s},o)))]})},bs=({footprintList:a,edit:l})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=M(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)))})},ys=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u,checked:g}=je();return e(n,{loading:u,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(La,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:g,onChange:d,children:e(bs,{footprintList:i,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Cs=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:b}=ze(),y=Ze(),C=y.format("YYYY-MM-DD"),v=i((()=>u.includes(C)),[u,C]),x=i((()=>{const e=y.year(),a=y.month(),o=Ze(`${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(y,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[y,u]),S=i((()=>y.format("YYYY年MM月")),[y]);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:b,style:{backgroundColor:l,opacity:v?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":v?"已签到":o})]})]})})})),vs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Ze())),[g,N]=t(!1),[f,b]=t((()=>Ze().year())),[y,C]=t((()=>Ze().month()+1)),{signinDetails:v,loading:x,refresh:S}=Ee(h),k=i((()=>h.format("YYYY年MM月")),[h]),w=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>v.sort(((e,a)=>Ze(a.date).valueOf()-Ze(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;b(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=Ze(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:()=>{b((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{b((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:w.map((o=>e(c,{className:"monthItem "+(y===o?"active":""),onClick:()=>(e=>{C(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(o),style:y===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),xs=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ss=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:xs.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},n)))})})),ks=({data:o})=>{const{View:l}=p(),{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:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},ws=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[n,i]=t(xs[0].val),{list:c,getData:r}=$e({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Ss,{activeColor:o,setParams:i,params:n}),e(d,{children:e(La,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(ks,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=p(),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 Is=()=>{const{View:a,Image:o}=p();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"})})},Ts=({list:l,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();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:["有效期至:",Ze(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",Ze(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(Is,{})})},Bs=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ge();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:()=>u(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(La,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ts,{backgroundColor:o,color:l,queue:n,list:g,coe:d,config:h})})})})]})})),Ps=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:u}=p(),{list:g,takeCoupon:N,takeList:f}=Fe({defaultValue:o,coupons:l});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((o,l)=>{const m=L(o,"pbName"),h=L(o,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),g=L(o,"promotionName"),b=Ze(L(o,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(o,"promotionEndtime")).format("YYYY-MM-DD"),C=L(o,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[b," - ",y]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||f.includes(l)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Vs=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:b}=Fe({defaultValue:o,coupons:l});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=L(o,"pbName"),h=L(o,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),u=L(o,"promotionName"),N=Ze(L(o,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(o,"promotionEndtime")).format("YYYY-MM-DD"),C=L(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," - ",y]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||b.includes(l)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Ds=s((o=>{var{type:l=1,coupons:s=[]}=o,t=da(o,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===l?e(Ps,Object.assign({coupons:s},t)):null,2===l?e(Vs,Object.assign({coupons:s},t)):null]})})),Ls=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:n}=We(l);return e(N,{navigator:n,color:s,speed:o,direction:a,content:t})},Rs=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=_e(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})]})})),Os=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=He(o),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(La,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Ze(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{io as AddressDetail,lo as AddressList,so as AddressListBtn,Ma as AfterSalesApply,qa as AfterSalesDetail,Ga as AfterSalesList,Xa as AfterSalesType,ws as AllPromotionList,Os as ArticleDetail,yl as CartList,Cl as CartOperate,cl as CartTop,Ta as ClassifyNav,ps as CollectionList,gs as CollectionShopList,Bs as CouponList,Pa as Cube,ds as EvaluateDetail,rs as EvaluateList,ms as EvaluateViewDetail,ls as ExpressInfo,ys as FootPrint,Ds as GetCouponOne,ko as Goods,fo as GoodsClassify,qo as GoodsDetailAndEvaluate,To as GoodsDetailBanner,Eo as GoodsDetailCoupon,sl as GoodsDetailHandleBar,Lo as GoodsDetailInfo,Oo as GoodsDetailInfoOne,Yo as GoodsDetailPromotion,Mo as GoodsDetailSku,il as GoodsList,Cs as MemberSignin,ss as MineData,ns as MineFunction,ts as MineOrderEntry,co as MyAgreementList,mo as MySetting,ro as MySettingJsx,Ls as Notice,Rs as NoticeDetail,es as OrderDetail,Ql as OrderList,jl as PaymentMode,po as PickupPointList,Vl as PlaceOrderAddressTabs,Rl as PlaceOrderCoupon,Ol as PlaceOrderDelivery,Al as PlaceOrderGood,Ml as PlaceOrderInfo,Yl as PlaceOrderOperate,El as PlaceOrderResult,ca as QjMobileIcon,vo as Search,So as SearchPage,xo as SearchStyleTwo,ia as Service,vs as SigninDetail,wa as Slider,ra as Title,fa as ToPrice,uo as WechatAddressBtn,pa as addressIdConst,ua as fixPrice,ga as fixPrice1,Na as formatTime,ha 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,createElement as d,useCallback as m,Fragment as h}from"react";import{useComponent as p,IconMobile as u,antdMobile as g,NoticeBar as N}from"@brushes/simulate-component";import f from"classnames";import{getTaro as b,navigatorHandler as y,getEnv as C,taroMessage as v,getStorage as S,setStorage as x}from"@brushes/utils";import k,{useRouter as w}from"@tarojs/taro";import{queryOcsconfigList as I,getAddress as T,find as B,goodsDetailQuery as P,getContractNumbers as V}from"qj-b2c-api";import{queryOcserviceConfPageByMember as D}from"qj-b2b-api";import{get as L,isEqual as R,isEmpty as A,noop as M,groupBy as O}from"lodash-es";import{useCube as Y,useAfterSalesApply as j,useAfterSalesList as z,afterSalesTabConfig as E,useAfterSalesDetail as $,useAfterSalesChooseType as G,useAddressItem as F,useAddressList as W,useEditAddress as _,useMySetting as H,usePickupPointItem as U,usePickupPointList as q,useGoodsClassify as K,useGoodCollection as J,useGoodDetail as Q,goodStore as X,useBanner as Z,useGoodSpecAndPrice as ee,useGoodFootprint as ae,useCreatePoster as oe,useCreateMiniPoster as le,useGoodsShare as se,useGoodSkuStore as te,popupImplement as ne,usePromotion as ie,useAddCoupon as ce,useCoupon as re,useEvaluate as de,useAddShopping as me,useGoodSku as he,useGoodsList as pe,useCartTop as ue,useCartListNext as ge,getRadioValue as Ne,useCartOperate as fe,useOrderAddress as be,useOrderPickupAddress as ye,userAddressData as Ce,orderStore as ve,useOrderGood as Se,useOrderCoupon as xe,useSyncOrderStore as ke,useOrderInfo as we,useOrderPay as Ie,useOrderResult as Te,useOrderResultResult as Be,useOrderOperate as Pe,orderStatusImpl as Ve,useOrderList as De,orderStatusList as Le,useOrderDetail as Re,useExpressInfo as Ae,useEvaluateDetail as Me,useEvaluateViewDetail as Oe,useCollectionList as Ye,useFootprint as je,useMemberSignin as ze,useSigninDetail as Ee,useMarketingPromotion as $e,useCouponList as Ge,useAllCoupon as Fe,useNotice as We,useNoticeDetail as _e,useArticleDetail as He}from"qj-b2c-store";import{fullPath as Ue,checkMobile as qe,ProvinceComponent as Ke,CityComponent as Je,AreaComponent as Qe,navigatorLink as Xe}from"@brushes/shared-utils";import Ze from"dayjs";import{updateContractAddress as ea,deleteEvaluateGoods as aa}from"b2c-api";import{DynamicForm as oa}from"@brushes/mobile-form";import{View as la,Image as sa,RichText as ta}from"@tarojs/components";import{ClockCircleOutline as na}from"antd-mobile-icons";const ia=s((({width:a,height:o,top:l,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:o,borderRadius:i,top:l,left:n,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:l,className:f(o,t?`${o}-${t}`:"",a),style:s})},ra=s((({value:l,shared:s,goPath:t,goPointsPath:n,textIndent:i,fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:u,fontStyle:g,paddingTop:N,paddingLeft:f,paddingRight:C,paddingBottom:v})=>{const{View:S,IconMobile:x,Button:w}=p(),I=b(),T="WEB"===k.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(S,{className:"components-title",style:{paddingTop:N,paddingBottom:v},children:[e(S,{onClick:()=>{var e;e=l,t?y("goodList",{searchParam:e}):n&&y("PointsGoodsList",{searchParam:e})},style:{fontSize:c,textAlign:r,color:d,backgroundColor:m,fontWeight:h,textDecoration:u,fontStyle:g,paddingLeft:f,paddingRight:C,textIndent:i},children:l}),s&&e(o,{children:T?e(S,{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(x,{style:{fontSize:20,color:"#f00"},value:"share"})}):e(w,{openType:"share",onClick:e=>{e.stopPropagation()},className:"wx-share-button",children:e(x,{style:{fontSize:20,color:"#f00"},value:"share"})})})]})}));function da(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 ma(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 ha=(e="b2c")=>{const[a,o]=t([]),l=i((()=>C()),[]);n((()=>{ma(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>ma(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield I();case"b2b":return yield D().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=L(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${L(l,"ocserviceConfRemark")}: ${L(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${L(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;b().showActionSheet({itemList:a})}}},pa={label:""},ua=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",ga=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",Na=(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}`},fa=e=>1===String(e).indexOf(".")?ba(e):ya(e),ba=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)},ya=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"},Ca=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const va=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?Ca+e:e?Ca+"/paas/shop/"+e:e),[e]),Sa=({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})},xa=s((({item:a,isPlay:l,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=va(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Sa,{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:y.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),ka=s((({Position:l="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b,selectImg:y,imgHeight:C,fontsize:v=16,textAlign:S="center",fontColor:x="#000000",backGroundColor:k="#ffffff"})=>{const w=i((()=>f({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:I,View:T}=p(),B=Y(n,y||[]),P=a=>e(T,{className:t,style:{fontSize:v,zIndex:99,justifyContent:"left"===S?"flex-start":"center"===S?"center":"flex-end",color:x,backgroundColor:k},children:a.title});return e(T,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b},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(xa,{isPlay:t===n,item:s,position:l,direction:m})]})})})})),wa=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:b=0,fontsize:y=16,textAlign:C="center",fontColor:v="#000000",backGroundColor:S="#ffffff",otherStyles:x=[],ImgShadow:k=!1,Position:w="top"})=>{const{View:I}=p(),T=i((()=>f("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},...x)),[x,w]);return e(I,{style:{padding:`${N}px ${b}px`},children:e(ka,{Position:w,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:y,textAlign:C,fontColor:v,backGroundColor:S,className:f({"outer-shadow":k}),className1:T})})})),Ia=({src:a,borderRadius:o})=>{const{Image:l}=p(),s=va(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},Ta=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=Y(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`:y(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(Ia,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),Ba=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=p(),n=va(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`:y(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},Pa=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}=p(),u=Y(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:u.map(((a,t)=>e(Ba,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Va=l.createContext(null),Da=s((()=>{const{View:a}=p(),{tip:o}=r(Va);return e(a,{className:"afterSalesApplyTip",children:o})}));const La=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=da(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>C()),[]),m=function(e){const[a,o]=t(0);return n((()=>{if(!C()||!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(!C())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:u}=p(),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(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:l}))},Ra=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Va);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(o,{className:"reasonPopup",children:e(La,{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)))})]})})})})})})),Aa=s((()=>{const{View:o}=p(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:n}=r(Va);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(ca,{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:ua(n)})})]}),e(Ra,{popupShow:s})]})})),Ma=s((()=>{const{View:o,TextArea:l,Textarea:s}=p(),t=s||l,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Va);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(ca,{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(ca,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),Oa=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:y,reason:C,handleChooseImg:v,imgGroup:S,placeholder:x,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(Va.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:y,reason:C,handleChooseImg:v,imgGroup:S,placeholder:x,handleDelImg:k,limit:w,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:T,handleSubmit:B},children:[e(Da,{}),e(Aa,{}),e(Ma,{}),e(m,{className:"submitBtn",onClick:B.bind(null,t,l,o,n),children:"确定"})]})})})},Ya={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},ja={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},za=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:n,Image:i}=p();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(ca,{style:{color:null===(s=Ya[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ya[o.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ya[o.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Ue(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:ja[o.refundType][o.dataState]}),e(ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),Ea=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),$a=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(La,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(za,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(Ea,{})})})})})})),Ga=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:E,render:o=>e($a,{item:o,refreshNum:a})})})})),Fa=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h,contractBillcode:u})=>{const{View:g,Image:N,SmoothView:f}=p(),b="06"===d?m+"积分":ua(n),y=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:Ue(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:b})]}),a(g,{className:"card-item-info-sub",children:[a(f,{className:"sku",children:["规格:",c]}),e(f,{className:"count",children:y})]}),a(g,{className:"orderNo",style:{fontSize:12,color:"#999"},children:["订单号: ",u]}),r]})]})})},Wa=(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]}},_a=l.createContext(null),Ha=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(_a),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:l,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(La,{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)))})]})})})})})),Ua=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(_a),{View:i,Input:c}=p();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(Ha,{})]})})),qa=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:b}=$({refundCode:l}),{contractBbillcode:y,dataState:C,gmtCreate:v,ocRefundGoodsList:S,refundMoney:x,refundMeo:k,refundEx:w,refundType:I,ocRefundFileList:T,goodsReceiptMem:B,goodsReceiptPhone:P,goodsReceiptArrdess:V,packageCode:D,packageBillno:L,packageName:R}=c,{View:A,Image:M,WrapLoading:O}=p();return e(O,{loading:b,children:e(A,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(_a.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(A,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(A,{className:"left_text",children:Wa(I,C)}),e(A,{className:"right_time",children:Ze(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==S?void 0:S.map(((a,o)=>e(Fa,{dataPic:Ue(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:y})]}),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:x})]}),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(M,{src:Ue(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"申请时间"}),e(A,{className:"right",children:Ze(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(Ua,{})]}):"",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,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ka=l.createContext(null),Ja=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Ka),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ua(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:Ue(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:g}),a(o,{className:"stepWrap",children:[e(ca,{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]})]})]})})),Qa=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Ka);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(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),Xa=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:b}=G({contractBillcode:l,skuCode:s}),{View:y,WrapLoading:C}=p();return e(C,{loading:f,children:e(y,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ka.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:b},children:[e(Ja,{}),e(Qa,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},Za=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=p();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:"设为默认地址"})})},eo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=F(o),c=w(),{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(Za,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>y("editAddress",{addressId:o.addressId}),children:"编辑"}),r.contractBillcode?e(n,{className:"del",onClick:()=>ma(void 0,void 0,void 0,(function*(){const e=o.provinceName+"-"+o.areaName+"-"+o.cityName+"-"+o.addressDetail;yield ea({contractBillcode:r.contractBillcode,addressPhone:o.addressPhone,addressDetail:e,addressMember:o.addressMember}),y("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(n,{className:"del",onClick:l,children:"删除"})]})]})]})},ao=s((()=>{const{View:a,Skeleton:l}=p(),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)))})})})})),oo=s((({url:o,title:l,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();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:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),lo=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=W(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(ao,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(eo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(oo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),so=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();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:()=>y("addressEditor"),children:"+ 新增地址"})})})),to=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],no=[{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:Ke}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Je}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Qe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],io=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({}),[u,N]=t(!!r),{Button:f}=g,{onSubmit:b}=_(r);if(n((()=>{ma(void 0,void 0,void 0,(function*(){if(r){N(!0);let e=yield T({addressId:r});e.addressDefault="1"===e.addressDefault,h(e),N(!1)}else N(!1)}))}),[r]),!u)return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(oa,{initialValues:m,footer:e(f,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:to,onSubmit:b,fields:no})})})),co=s((()=>{const{View:o}=p(),l=e=>{y(`/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(u,{value:"xiangyou1"})})]},t)))})})})),ro=()=>{const{View:o}=p(),{mySettingGoBind:l,mySettingLogout:s}=H();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(ca,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},mo=s(ro),ho=({itemData:o})=>{const{View:l,Text:s}=p(),{handlerImpl:t}=U(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||""]})})]})})},po=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,Loading:i}=p(),{list:r,loading:d,skullShow:m,onScroll:h}=q(o);console.log("list",r,m);const u=c(null),g=b(),N="WEB"===k.getEnv();return n((()=>{if(N){const e=u.current;if(!e)return;const a=new IntersectionObserver((e=>{e[0].isIntersecting&&!d&&h()}),{rootMargin:"100px"});return a.observe(e),()=>a.disconnect()}{const e=k.createIntersectionObserver(g);return e.relativeToViewport({bottom:100}).observe("#pickup-point-list-sentinel",(e=>{e.intersectionRatio>0&&!d&&h()})),()=>e.disconnect()}}),[d,h,g,N]),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:m?e(ao,{}):e(t,{className:"addressList",children:r.length?a(t,{children:[r.map(((a,o)=>e(ho,{itemData:a},a&&a.userinfoOcode||o))),d&&e(i,{}),e(t,{id:"pickup-point-list-sentinel",ref:u,style:{height:"1px"}})]}):e(oo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})),uo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();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:()=>ma(void 0,void 0,void 0,(function*(){yield v("导入成功","none")})),children:"导入微信收件地址"})})})),go=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();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:()=>y("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:No}=g,fo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(i,{children:e(La,{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(No,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(No.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(go,{navList:m,activeKey:r,cell:o})})]})})})})})),bo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/search.png",yo="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/THREE_DOTS.png",Co="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/share.svg",vo=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:b,Image:C}=p(),v=i((()=>f("txt",...g)),[g]);return e(b,{onClick:()=>y(l),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(b,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(C,{src:bo,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(b,{className:v,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),So=s((({value:o,iconShow:l,fontColor:s,backgroundColor:c,borderRadius:r,paddingLeft:d,paddingRight:m,sticky:h,fontsize:u,paddings:g,otherStyles:N=["mockWeight","mockItalic"],urlPath:b="search"})=>{const{View:C,Image:v}=p(),S=i((()=>f("txt",...N)),[N]),x=k.useRouter(),[w,I]=t("");return n((()=>{var e;if(null===(e=null==x?void 0:x.params)||void 0===e?void 0:e.searchParam){const e=x.params.searchParam,a=decodeURIComponent(e);I(a)}}),[null==x?void 0:x.params]),e(C,{onClick:()=>y(b),style:{paddingTop:g,paddingBottom:g,paddingLeft:d,paddingRight:m},className:h?"boxPosition":"",children:a(C,{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(C,{style:{width:"80%"},children:[e(v,{src:bo,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,w?{className:S,style:{color:s,display:"inline-block",fontSize:u},children:w}:{className:S,style:{color:s,display:"inline-block",fontSize:u},children:o})]}),e(C,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:u,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),xo=s((({placeholder:o,placeholderText:l,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>C()),[]),{View:f,Text:v,Input:k}=p(),[w,I]=t((()=>S("history")||[])),[T,B]=t(""),P=e=>{y(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:bo,alt:""}),e(k,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:T,onInput:e=>B(e.detail.value),onConfirm:e=>ma(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 x("history",o),o}return a})),P(g.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(v,{className:"btn",onClick:()=>{const e=T.trim();e&&(I((a=>{if(!a.includes(e)){const o=a.concat(e);return x("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(ca,{onClick:()=>ma(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]})})),ko=s((({defaultValue:o=[],classCode:l="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:b,paddingLeft:C,paddingRight:v,goodsName:S=!0,goodsPrice:x=!0,goodsCar:k=!0,goodsBorder:w=!0,goodsShadow:I=!1,marginGap:T=10})=>{const[P,V]=t(o),D=c(),{View:M,Text:O}=p();return n((()=>{R(D.current,u)||(D.current=u,A(u)?V(o):ma(void 0,void 0,void 0,(function*(){try{const e=yield B({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=L(e,"list",[]);V(a)}catch(e){V(o)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:b},children:e(M,{className:f({[`goods-${l}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:C,paddingRight:v},children:P.map(((o,l)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:w?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:o.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${Ue(o.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:S?"block":"none"},children:o.goodsName}),e(M,{className:"subTitle",children:o.brandName}),a(M,{className:"price",children:[a(M,{style:{fontSize:18},children:[x?ua(o.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ua(o.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:k?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})}));var wo=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 Io=s((({Position:l="none",className:s="",className1:c="",defaultValue:r=[],type:d,autoplay:m,autoplayInterval:h,direction:u,loop:g,paddingTop:N,paddingBottom:b,paddingLeft:y,paddingRight:C,selectImg:v,imgHeight:S,collectParams:x,fontsize:w=16,textAlign:I="center",fontColor:T="#000000",backGroundColor:B="#ffffff"})=>{const P="WEB"===k.getEnv(),V=i((()=>f({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===u}))),{handleCollect:D,collection:L}=J(x),[R,M]=t(!1),{SmoothSwiper:O,View:j,Button:z}=p(),E=Y(r,v||[]),$=a=>e(j,{className:c,style:{fontSize:w,zIndex:99,justifyContent:"left"===I?"flex-start":"center"===I?"center":"flex-end",color:T,backgroundColor:B},children:a.title});return n((()=>{const e=e=>{M(e)};return wo.on("IsCollectionShow",e),()=>{wo.off("IsCollectionShow",e)}}),[]),a(j,{className:s,style:{position:"relative",paddingTop:N,paddingBottom:b,paddingLeft:y,paddingRight:C},children:[a(j,{style:{position:"absolute",top:10,right:10,zIndex:9,display:"flex",gap:10},children:[e(j,{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:()=>{wo.emit("bannerImageClick","poster")},style:{width:"100%",height:"100%"},alt:"生成海报"})}),e(j,{style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8},children:P?e("img",{src:Co,onClick:e=>{e.stopPropagation(),wo.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(z,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${Co})`,backgroundSize:"100% 100%",width:16,height:16,padding:0},className:"wx-share-button"})}),e(j,{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(O,{imgHeight:S,data:E,className:V,type:d,autoplay:m,autoplayInterval:h,direction:u,loop:g,interval:5e3,vertical:"vertical"===u,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?$(s):null,e(xa,{isPlay:t===n,item:s,position:l,direction:u})]})})]})})),To=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:n,memberCode:i=""}=Q(l,s),c=X.getState();X.setState(Object.assign(Object.assign({},c),{memberCode:i})),console.log(24,i);const r=Z(t),{goodInfo:d}=ee(n),m={goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:l};return e(Io,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})};function Bo(o){const{content:l,position:s="top"}=o,[n,i]=t(!1);return a(la,{className:"tooltip-wrap",children:[e(la,{className:"tooltip-icon",onClick:()=>i(!n),children:e(sa,{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(la,{className:`tooltip-popup tooltip-${s}`,children:[l,e(la,{className:"tooltip-arrow"})]})]})}const Po=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!C())return;return"WEB"===b().getEnv()?e(o,{children:a?e(Vo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(Do,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},Vo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r,width:d,height:m}=oe(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})},Do=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Image:i,Button:c,Canvas:r}=p(),{save:d,width:m,height:h,posterImage:u,setPosterImage:g}=le(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&&u&&e(i,{src:u,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:"保存图片"})})]})]})})},Lo=({skuCode:o,priceShow:l,collectionShow:s,scene:i})=>{const[c,r]=t(!1),{View:d,SmoothView:m,Canvas:h,Image:u,Button:g,IconMobile:N,Text:f}=p(),{rsSkuDomainList:y,rsGoodsFileDomainList:C,goodsDayinfo:v}=Q(o,i),{goodInfo:S}=ee(y);console.log("goodInfo",S);const x=S.mpriceStairDomainListMap||{},w=Object.values(x),I=w.length>0?w[0]:[],T=I.length>0?I.map((e=>`${e.mpriceStairStart}-${e.mpriceStairEnd}件 每件${e.mpriceStairPrice}元`)).join("\n"):"";ae(o);const B=b(),P="WEB"===k.getEnv();wo.emit("IsCollectionShow",{collectionShow:s}),n((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&V()};return wo.on("bannerImageClick",e),()=>{wo.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(Po,{goodsName:S.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:ua(S.pricesetNprice)})]}),a(m,{className:"sale-price",style:{display:l?"block":"none"},children:["促销价",e(f,{className:"price-value",children:ua(S.pricesetNprice)})]}),T?e(d,{className:"page",children:e(Bo,{content:T,position:"left"})}):null]})}),a(m,{className:"name",style:{display:"flex",alignItems:"center"},children:["16"==S.goodsType?e(d,{className:"pre-sale",children:"预售商品"}):null,S.goodsName]}),"16"==S.goodsType&&v&&a(m,{className:"price",children:["预计发货时间:",v,"天内"]})]})]})},Ro=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=p(),{handleCollect:n,collection:i}=J(o),{handleShare:c}=se();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]})})),Ao=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=Q(t,n),{goodInfo:d}=ee(r);return te((e=>e.spec)),ae(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:ua(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Ro,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:t})]})})),Mo=s((()=>{const{View:o,Text:l}=p(),s=te((e=>e.count)),t=te((e=>e.spec)),n=t&&t.length>0?t.join(","):skuName?decodeURIComponent(skuName).replace(/\//g,","):"";return a(l,{className:"label",children:[e(l,{className:"blod font-14 letter-spacing-1",children:"已选"})," 规格: ",e(l,{className:"blod",children:n}),e(l,{style:{margin:"0 18px 0 10px"},children:"|"}),"数量: ",e(l,{className:"blod font-14",children:s})]})})),Oo=({dispatchPageStore:l})=>{const{View:s,Text:t}=p(),{openPopup:n}=ne(l),i=te((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(Mo,{}),e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",className:"icon"})]})]})})},Yo=({skuCode:o,scene:l})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=Q(o,l),{goodInfo:i}=ee(n),c=ie(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:"暂无促销活动"})})]})},jo=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ce(),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:[Ze(o).format("YYYY-MM-DD")," - ",Ze(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>u({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),zo=()=>{const{View:a,Image:o}=p();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Eo=l=>{var{skuCode:s,scene:t}=l;da(l,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:m}=Q(s,t),{goodInfo:h}=ee(m),{coupon:u,visible:g,setVisible:N}=re(m,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(La,{children:u.length>0?u.map(((e,a)=>d(jo,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(zo,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},$o=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:i}=p(),[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(ca,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},Go=({item:o})=>{const{View:l,Image:s,Text:t,Button:n}=p(),i=C(),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($o,{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:Ue(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{ma(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield aa({evaluateGoodsId:a,isLocalMock:!i}),yield v("删除成功","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]})},Fo=({evaluateArr:o})=>{const{View:l}=p();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(Go,{item:a},o)))]}):e(oo,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Wo=process.env.REACT_APP_BASE_URL,_o=({goodsRemark:a})=>{const{View:o}=p(),l=i((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${Wo}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(o,{className:"goodsDetail-info",children:e(ta,{nodes:l})})},Ho=({goodsRemark:o})=>{const{View:l}=p(),[s,c]=t({}),[r,d]=t(!1),h=i((()=>{const e=window.location.hash.split("?")[1]||"";return new URLSearchParams(e).get("skuCode")||""}),[window.location.hash]),u=m((e=>ma(void 0,void 0,void 0,(function*(){if(e){d(!0);try{const a=yield P({skuCode:e});console.log("goodsDetailQuery:",a),c(a||{})}catch(e){c({})}finally{d(!1)}}}))),[]);n((()=>{u(h)}),[h,u]);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:"加载中..."})]})},Uo=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),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(h,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},qo=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=Q(n,i),u=de(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(Uo,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(_o,{goodsRemark:m}):2===r?e(Fo,{evaluateArr:u,evaluateImgShow:l,evaluateImg:s}):1===r?e(Ho,{goodsRemark:m}):null})]})},Ko=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:n,rsSkuDomainList:i})=>{const{View:c,Text:r}=p(),d=te((e=>e.offShelf)),m=te((e=>e.spec)),h=(e,a)=>e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a),u=t.filter((e=>{return a=e.specValueValue,!i||0===i.length||i.some((e=>{const o=e.skuName||"";return!!h(o,a)&&m.every(((e,a)=>a===n||!(e&&!h(o,e))))}));var a}));return a(c,{className:"sizeArr",children:[e(r,{className:"title",children:o}),e(c,{className:"sizeArrItemWrap",children:u.map(((a,o)=>{const s=(e=>m[n]===e)(a.specValueValue);return e(c,{className:f({sizeItem:!0,active:s,offShelf:!s&&d}),onClick:l.bind(null,a.specValueValue,n),children:a.specValueValue},o)}))})]})},{Stepper:Jo}=g,Qo=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=p(),n=s||1,i=l||999;return e(t,{className:"numStepWrap",children:e(Jo,{value:a,max:i,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l===a+1)return a>=i?void v("超库存","none"):void o("plus");if(l===a-1)return a<=n?void v(`起购数为${n}`,"none"):void o("minus");if(l<n)v(`起购数为${n}`,"none");else if(l>i)v("超库存","none");else if(l!==a){const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:l}))}},onBlur:e=>{const a=e.target.value;if(!a)return;const o=parseInt(a,10);if(!isNaN(o))if(o>i){v("超库存","none");const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:i}))}else if(o<n){v(`起购数为${n}`,"none");const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:n}))}},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"}})})},Xo=s((({handleStep:a,goodsNum:o,goodsMinnum:l})=>{const{View:s}=p(),t=te((e=>e.count));return e(s,{className:"countWrap",children:e(Qo,{count:t,handleStep:a,goodsNum:o,goodsMinnum:l})})})),Zo=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:n,handleStep:i,rsSkuDomainList:c})=>{const{Image:r,View:d}=p(),{skuList:m}=l,h=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ua(n.pricesetNprice);return a(o,{children:[a(d,{className:"goodsInfo",children:[e(d,{className:"lPart",children:e(r,{src:Ue(n.dataPic),alt:"",className:"goodsImg"})}),a(d,{className:"rPart",children:[e(d,{className:"name",children:n.goodsName}),e(d,{className:"price",children:h}),e(Xo,{handleStep:i,goodsNum:n.goodsSupplynum,goodsMinnum:n.goodsMinnum})]})]}),m.map(((a,o)=>e(Ko,{goodsShowname:n.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption,rsSkuDomainList:c},o)))]})},el=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=te((e=>e.isNeedButton)),r=te((e=>e.offShelf));return r?e(i,{className:f({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:"立即购买"})]})})},al=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=ee(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=me(l,s,t,o);return a(n,{className:"goodsDetail-size-popup",children:[e(La,{children:e(i,{children:e(n,{className:"content",children:e(Zo,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r,handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),rsSkuDomainList:t})})})}),e(el,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),ol=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(al,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},ll=s((({serverShow:l,cartShow:s,lPartShow:i,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:u,rPartText:g,dispatchPageStore:N,skuCode:f,platform:b,scene:C})=>{const{View:v,IconMobile:x,Text:w,Image:I}=p(),T=te((e=>e.offShelf)),{rsSkuDomainList:B,goodPro:P}=Q(f,C),{goodInfo:V}=ee(B);ha(b);const{addCardPopup:D,buyOpenPopup:L}=ne(N),[R,A]=t("10px"),M="WEAPP"===k.getEnv();return n((()=>{const e=(()=>{try{const e=k.getSystemInfoSync(),a=k.getEnv();if(a===k.ENV_TYPE.WEAPP||a===k.ENV_TYPE.ALIPAY||a===k.ENV_TYPE.SWAN||a===k.ENV_TYPE.TT||a===k.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:()=>{k.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(M){const e=S("user")||{},a=k.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||""}]}),k.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:()=>y("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(w,{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:u,borderBottomRightRadius:u},!1===i?{borderTopLeftRadius:u,borderBottomLeftRadius:u}:{}),children:g||("10"===V.goodsPro?"预售抢购":"立即购买")})]})})]})})),sl=l=>{var{$_dataSource:s={},dispatchPageStore:t=M,skuCode:n,scene:i}=l,c=da(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=Q(n,i),h=he(r,m),{popupVisible:p}=s;return a(o,{children:[e(ll,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(ol,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},tl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],nl=({setParams:o,activeColor:l})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(tl);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(ca,{style:{color:n===m&&"asc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:n===m&&"asc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},il=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:u=!0,goodsColor:g=!0,goodsGap:N=10,paddingLR:b=0,__link__:y={}})=>{console.log(111,y);const{View:C,Loading:v,SmoothView:S,Image:x,ScrollView:k,IconMobile:w}=p(),[I,T]=t({}),{loading:B,getData:P,list:V}=pe(o,l,I,n),D=i((()=>f("textBox",{btm:!r&&!d})),[r,d]),L=i((()=>f("name",{boxNone:!c})),[c]),R=i((()=>f("middle_margin",{boxNone:!m})),[m]),A=i((()=>f("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),M=i((()=>f({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(nl,{setParams:T,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${b}px`},children:e(La,{id:"listWrap",children:a(k,{onScroll:()=>P(I),children:[e(C,{className:"list",style:{gap:N},children:V.map((o=>a(C,{onClick:()=>Xe(y,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:u?"8px":"",boxShadow:g?"4px 4px 4px #969292":""},children:[e(x,{src:Ue(o.dataPic),className:"img"}),a(C,{className:M,children:[e(S,{className:L,children:o.goodsName}),a(C,{className:R,children:["已售:",o.goodsNum]}),a(C,{className:A,children:[a(C,{className:D,children:[e(S,{className:"price",style:{display:r?"block":"none"},children:ua(o.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ua(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]})})})]})})),cl=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=o,{editorImpl:m}=ue(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?"完成":"编辑"})})},rl=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:n}=p();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})})]})})),dl=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(La,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>d(rl,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},ml=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();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:ua(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),hl=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:n}=p(),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:()=>y("goodDetail",{skuCode:s})})]})})),pl=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:n}=p(),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"}})})})),ul=({promotion:l=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[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(dl,{promotionCode:c,onChange:e=>{m(!1),s(n,Ne(e))},promotion:l||[],visible:d,setVisible:m})})]})},gl=s((o=>{var{item:l}=o,s=da(o,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(pl,{cartIsEditor:i,dataState:l.dataState,select:n,shoppingGoodsId:l.shoppingGoodsId}),e(hl,{dataState:l.dataState,dataPic:Ue(l.dataPic),skuCode:l.skuCode}),e(ml,Object.assign({},l,s))]})})),Nl=l=>{var{shoppingGoodsList:s=[]}=l,t=da(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(h,{children:[e(gl,Object.assign({},t,{item:o})),o.pmPromotionList?e(ul,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},fl=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=p(),n=i((()=>A(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Xe(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]})},bl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:l}),o&&e(fl,{link:t,disNextMsg:o})]})},yl=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:b,handleStep:y,updatePm:C}=ge(l,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:b,children:f.length?e(o,{children:f.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(bl,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(Nl,{cartIsEditor:g,promotionCode:l,handleStep:y,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(oo,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Cl=({$_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}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=o,{toOrderImpl:b,deleteCart:y,clearAll:C,selectAll:v,ids:S,cartDetail:x}=fe(N,u,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:u.length===N.length?["true"]:[],onChange:v,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[S.length?e(r,{onClick:C,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:y,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ua(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ua(x.amount)})]})]}),a(r,{onClick:b,className:"btn",style:k,children:["结算(",x.num,")"]})]})]})},vl=({address:a})=>e(o,{children:A(a)?e(xl,{}):e(Sl,{address:a})}),Sl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=p(),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]})]})},xl=()=>{const{View:l,Text:s}=p();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},kl=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:n=""})=>{const{View:i}=p(),c=be(a,l,o,s,t,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(vl,{address:c})})},wl=({address:a})=>e(o,{children:A(a)?e(Tl,{}):e(Il,{address:a})}),Il=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=p(),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})]})]})},Tl=()=>{const{View:l,Text:s}=p();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Bl=({refreshNum:a})=>{const{View:o}=p(),l=ye(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>y("pickupPointList"),children:e(wl,{address:l})})},Pl=({tabActive:l,setTabActive:s,tabs:t})=>{const{Text:n}=p();return e(o,{children:t.map(((o,t)=>e(h,{children:a(n,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(n,{className:"line"})]})},o.id)))})},Vl=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:i="",goodsBeanStr:c="",longContractgoodsBeanStr:r=""})=>{const{View:d,Text:m}=p(),h="235990605097"===(X.getState().memberCode||""),u=h?"1":"0",[g,N]=t(u),f=h?[{title:"自提",id:"1"}]:[{title:"快递",id:"0"},{title:"自提",id:"1"}];return n((()=>{Ce.contractPumode=g,ve.setState({contractPmode:g})}),[g]),a(d,{className:"placeOrderAddressTabs",children:[e(d,{className:"delivery-header",children:e(d,{className:"tabs",children:e(Pl,{tabActive:g,setTabActive:N,tabs:f})})}),e(d,{className:"content",children:"0"===g?e(kl,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(Bl,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:i})})]})},Dl=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();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:[Ze(o).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Ll=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();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:[Ze(o).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Rl=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:m})=>{const{View:h,Text:g,Popup:N,Form:f,SmoothRadio:b,Button:y,SmoothCheckbox:C,ScrollView:v,Radio:S,Image:x}=p(),{shoppingGoodsList:k}=Se({refreshNum:l,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:m}),{coupon:w,visible:I,couponValue:T=[],setVisible:B,selectCoupon:P,onChange:V,onCreditChange:D,confirmImpl:L,resetImpl:R,contractPmode:A,onPayChange:M,payList:O,payName:Y,creditList:j,creditInfo:z,selectCredit:E,creditVisible:$,payVisible:G,setPayVisible:F,handleChooseImg:W,contractEcurl:_,setCreditVisible:H}=xe(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(g,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(g,{className:"label",children:P?`已选择: ${P}`:0===w.length?"暂无可用优惠券":"请选择优惠券"}),0===w.length?null:e("img",{src:yo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select pay-mode",onClick:()=>F(!0),children:[e(g,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(x,{src:Y?Y.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(g,{className:"label",children:Y}),0===w.length?null:e("img",{src:yo,alt:"",className:"icon"})]}),e(u,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]})]}),z.urechargeId&&"0"===A&&a(h,{className:"coupon-select",onClick:()=>H(0!==j.length),children:[e(g,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(g,{className:"label",children:E?0===+E?"不使用":`已选择: ${E}%`:"请选择授信"}),0===w.length?null:e("img",{src:yo,alt:"",className:"icon"})]})]}),"1"===A&&a(h,{className:"coupon-select",children:[e(g,{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(x,{src:_,className:"img",alt:_,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(N,{popupVisible:G,popupHandler:F,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(v,{children:e(b,{value:A||"",onChange:M,children:(null==O?void 0:O.length)>0&&O.map(((o,l)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(S,{checked:o.ptfpmodeType===A,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(N,{popupVisible:$,popupHandler:H,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(v,{children:e(b,{onChange:D,children:(null==j?void 0:j.length)>0&&j.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(S,{value:o.flagSettingInfo}),0===o.flagSettingInfo?"不使用":`${o.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(N,{popupVisible:I,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(La,{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=>d(Dl,Object.assign({isDisabled:2===T.length},e,{key:e.couponNo}))))},"visible"):e(b,{value:(null==T?void 0:T.length)>0?T[0].couponNo:"",onChange:V,children:w.map(((e,a)=>d(Ll,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(y,{className:"operate reset",onClick:R,children:"重置"}),e(y,{className:"operate",onClick:L,children:"确认"})]})]})})]})},Al=()=>{const{View:o}=p(),l=ke(),s="235990605097"===(X.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})]})})},Ml=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=Se({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(Fa,Object.assign({},a),l)))})))})},Ol=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=Se({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:b,disCount:y,creditMoney:C,freight:v,payPrice:S,rebMoney:x}=f,k=f.pointsDeduction||0,w=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:T,changeContent:B,shoppingType:P,pricesetRefrice:V}=we(b),D=ua(Math.max(S-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:ua(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+"积分":ua(k)]})]}),"06"===P?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ua(w)]})]}),"06"===P?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ua(-C)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ua(-x.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ua(-(T+y))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ua(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})]})]})})},Yl=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:b,payState:y,creditMoney:C,ocContractSettlList:v,pointsDeduction:S}=Se({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:x,loading:k}=Ie({ocContractSettlList:v,payState:y,list:b,goodsBeanStr:r},d,Math.max(f-C,0));y&&y.length>0&&(y[0].shoppingType,y[0].pricesetRefrice);const w=ua(Math.max(f-C,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",e(g,{className:"price-value",children:r?"0.00":w})]}),e(N,{loading:k,children:e(u,{className:"btn",onClick:x,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},jl=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>C()),[]),u=X.getState().memberCode||"",g="235990605097"===u,{View:N,Text:f,Radio:b,IconMobile:y,WrapLoading:v,SmoothRadio:S,Image:x}=p(),{paymentImpl:k,channelList:w,contract:I,handleRadio:T,loading:B}=Te({contractBillcode:o,contractBbillcode:l,memberCode:u}),P=i((()=>(console.log("%cNODE_ENV","color: red; font-weight: bold;",process.env.NODE_ENV),g||location.origin.includes("dev")?w:null==w?void 0:w.filter((e=>"BUY_B"!==e.dicActorCode)))),[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:ua(I.current.orderMoney)})]}),a(N,{className:"info",children:["订单总金额:",ua(I.current.contMoney+(I.current.logMoney||0)),"元 | 订单号:",I.current.contractBillcode]})]}),a(N,{className:"paymentGroup",children:[e(f,{className:"paymentGroupTitle",children:"选择支付方式"}),e(S,{onChange:T,children:null==P?void 0:P.map((o=>a(N,{className:"paymentItem",children:[e(x,{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(b,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]})})]},o.fchannelCode)))})]})]}),e(N,{id:"v_html"}),e(v,{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:"立即支付"})})})]})})),zl=({dataObj:o})=>{const{View:l,Text:s}=p();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:ua(o.dataBmoney)})]})]})},El=s((({code:o,goodsBeanStr:l,borderRadius:s,leftColor:t,leftButtonColor:n,leftBorderColor:i,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:u,rightBorderRadius:g,paddingTop:N,paddingBottom:f})=>{const{View:b,Text:C,IconMobile:v,WrapLoading:x}=p(),{result:k,loading:w}=Be(o||(S("contractBillcode")||{}).contractBillcode,l);return e(b,{className:"placeOrderResult",style:{paddingTop:N,paddingBottom:f},children:e(x,{loading:w,children:a(b,{className:"placeOrderResultContent",style:{borderRadius:1===s?"20px":"0px"},children:[e(v,{value:k.icon,style:{fontSize:"35px",color:k.color}}),a(b,{className:"tips",children:[e(C,{className:"title",children:k.msg}),e(C,{className:"tip",children:k.info})]}),"success"===k.sysRecode&&e(zl,{dataObj:k.dataObj}),a(b,{className:"btnGroup",style:{marginTop:20},children:[e(b,{className:"btn black",onClick:()=>l?y("orderlist"):y(k.menuCode,{contractBillcode:k.dataObj.contractBillcode}),style:{color:t,backgroundColor:n,border:`1px solid ${i}`,borderRadius:1===c?"20px":"0px"},children:k.buttonText}),e(b,{style:{color:m,backgroundColor:h,border:`1px solid ${u}`,borderRadius:1===g?"20px":"0px"},onClick:()=>y(d.value),className:"btn white",children:r})]})]})})})})),{Button:$l}=g,Gl=a=>{var{dataState:l}=a,s=da(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(Fl,Object.assign({dataState:l},s))})},Fl=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=da(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=Pe(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e($l,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},Wl=({contractPaydate:l,init:s,countdownCancel:i,contractId:c})=>{const{View:r,Text:d,SmoothView:m}=p(),{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((()=>{k.eventCenter.trigger("switchOrderTab")})):t>1e3&&i(Na(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(na,{}),e(d,{className:"count-down-text",children:e(m,{children:h})}),e(d,{children:"后将取消订单,请尽快支付"})]}):null})};function _l({memberName:o,contractBillcode:l,dataBmoney:s,dataBnum:t,goodsList:n,dataState:i,contractId:c,init:r,contractAppraise:d,borderRadius:m,orderSpacing:h,contractPaydate:u,contractType:g,countdownCancel:N}){const{View:f,SmoothView:b,Image:C}=p(),v=Ve(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(C,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(b,{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:()=>y("orderDetail",{contractBillcode:l}),children:n.map((a=>e(Fa,Object.assign({},a,{dataState:i}),a.contractGoodsId)))}),i&&1===i&&e(Wl,{contractPaydate:u,init:r,countdownCancel:N,contractId:c})]}),a(f,{className:"allInfo",children:[a(f,{className:"totalNum",children:["共",t,"件商品"]}),a(f,{className:"totalPrice",children:["合计 ",ua(s)]})]}),e(Gl,{init:r,contractType:g,contractId:c,contractBillcode:l,dataState:i,contractAppraise:d,dataBmoney:s})]})}const Hl=()=>{const{View:a,Image:o}=p();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const Ul=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:i}){const{View:r,Loading:m}=p(),{onScroll:h,data:u,loading:g,init:N,countdownCancel:f}=De(o,l,i),C=c(null),v=b(),S="WEB"===k.getEnv();return n((()=>{if(S){const e=C.current;if(!e)return;const a=new IntersectionObserver((e=>{e[0].isIntersecting&&!g&&h()}),{rootMargin:"100px"});return a.observe(e),()=>a.disconnect()}{const e=k.createIntersectionObserver(v);return e.relativeToViewport({bottom:100}).observe("#order-list-sentinel",(e=>{e.intersectionRatio>0&&!g&&h()})),()=>e.disconnect()}}),[g,h,v,S]),e(r,{className:"orderListItemWrap",children:u.length>0?a(r,{children:[u.map(((e,a)=>d(_l,Object.assign({init:N},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:f})))),e(r,{children:g?e(m,{}):null}),e(r,{id:"order-list-sentinel",ref:C,style:{height:"1px"}})]}):a(r,{className:"nodata_img",children:[e(Hl,{}),e(r,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})),ql=s((({tabs:a,activeIndex:o,activeColor:l="#000",onChange:s})=>{const{View:t}=p(),n=Number(o);return e(t,{className:"qj-tabs",id:"qj-tabs-id",children:a.map(((a,o)=>{const i=f({"actived-item":n===o,"default-item":!0});return e(t,{onClick:()=>s(a,o),className:i,style:{borderColor:n===o?l:""},children:a.name},a.code||o)}))})})),Kl=process.env.TARO_ENV;let Jl=Le;if(console.log("platform",Kl),"h5"==Kl){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(Jl=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=k.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(Jl=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Ql=s((({refreshNum:o=0,indexId:l=0,borderRadius:s=!1,orderSpacing:i=12,contractType:c=""})=>{const{View:r}=p(),[d,m]=t(l),[h,u]=t(Jl[l]||Jl[0]);n((()=>{const e=()=>{const e=Jl.findIndex((e=>"-1"===e.code));m(e),u(Jl[e])};return k.eventCenter.on("switchOrderTab",e),()=>{k.eventCenter.off("switchOrderTab",e)}}),[]),n((()=>{const e=l;m(e),u(Jl[e]||Jl[0])}),[l]);return a(r,{className:"order-container",children:[e(ql,{tabs:Jl,activeIndex:d,onChange:(e,a)=>{m(a),u(e)}}),e(r,{className:"orderList",children:e(Ul,{contractType:c,item:h,orderSpacing:i,refreshNum:o,borderRadius:s},h.code)})]},l)})),{Button:Xl}=g,Zl=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=i((()=>C()),[]),n=i((()=>s?b():null),[s]),c=e=>ma(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(Xl,{className:"copy",size:"mini",fill:"outline",onClick:()=>ma(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?"已复制":"复制"})})),es=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:b,handleApplyBtn:C,creditMoney:v,packageRemark:S,expressName:x}=Re(l||""),k={color:"#ffffff",marginRight:"10px",fontSize:"20px"},w=e=>Ze(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:(()=>{const o="1"===b.contractPumode,l="待收货"===b.dataState||"0"===b.dataState;return a(g,o&&l?{className:"orderDetailTopTitleContent",children:[e(g,{className:"icon_text",children:e(N,{className:"title",children:Ve(b.dataState,b.contractAppraise)})}),e(g,{className:"icon_text",children:a(N,{className:"title",children:["请于",w(b.gmtCreate),"前提取"]})}),e(g,{className:"icon_text",children:e(N,{className:"qrTitle",children:b.contractDelcode})}),e(g,{className:"icon_text",children:e(N,{className:"title",children:"向自提点店员出示此码"})})]}:{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Ve(b.dataState)&&e(ca,{value:"daishouhuo",style:k}),e(N,{className:"title",children:Ve(b.dataState,b.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:w(b.gmtCreate)})]})})()}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:["1"===b.contractPumode?e(g,{className:"addressInfo",children:a(g,{className:"mPart",children:[a(g,{className:"personInfoNew",children:[e(N,{className:"personNameNew",children:"服务地址:"}),e(N,{className:"personPhoneNew",children:"天山路与顺泉路交叉口(中国农谷农创中心)"})]}),a(g,{className:"personInfoNew",children:[e(N,{className:"personNameNew",children:"联系电话:"}),e(N,{className:"personPhoneNew",children:"(0724) 604 7666"})]}),a(g,{className:"personInfoNew",children:[e(N,{className:"personNameNew",children:"服务时间:"}),e(N,{className:"personPhoneNew",children:"09:00-17:00"})]})]})}):"1"!==b.contractPumode?a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(ca,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:b.goodsReceiptMem}),e(N,{className:"personPhone",children:b.goodsReceiptPhone})]}),e(g,{className:"address",children:b.goodsReceiptArrdess})]}),e(g,{className:"rPart",children:[1,2,3].includes(Number(null==b?void 0:b.dataState))&&e(N,{onClick:()=>y("addressList",{contractBillcode:b.contractBillcode}),children:"编辑"})})]}):null,a(g,{className:"orderDetailGoodsWrap",children:[b.goodsList.map((l=>e(o,{children:a("view",{onClick:()=>{y("goodDetail",{skuCode:l.skuCode})},children:[e(Fa,Object.assign({},l),l.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),y(u,{skuCode:l.skuCode})},children:"商品快照"}),Number(b.dataState)>1&&Number(b.dataState)<4&&"06"!==b.contractType&&"08"!==b.contractType?e(g,{className:"orderBtn maxWidth",onClick:e=>{e.stopPropagation(),e.preventDefault(),C.bind(null,l,b.dataState)()},children:"申请退款(取消订单)"}):""]})}))),e(g,{className:"priceInfo",children:"06"!=b.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",b.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((b.dataBmoney-b.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",b.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-b.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:x||"暂无物流信息"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===b.contractPumode?"自提":"快递"})]})]}),"06"!==b.contractType&&a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:0===b.contractInvstate?"未开票":1===b.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:["¥",b.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:S||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:b.contractBillcode}),e(Zl,{copyContent:b.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:w(b.gmtCreate)})]}),"06"!=b.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ua(-v)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===b.contractPmode?"线上支付":"线下支付"})})]}),"1"===b.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:Ue(b.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Gl,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:b.contractBillcode,contractId:b.contractId,contractType:b.contractType,dataState:b.dataState,contractInvstate:b.contractInvstate,dataBmoney:b.dataBmoney,contractAppraise:b.contractAppraise})})]})})]})})),as=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:n}=p(),i=L(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=L(l,"packageList.length",o.count),r=L(l,"packageList[0].expressName",o.expressName),d=L(l,"packageList[0].packageBillno",o.packageBillno),m=L(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]})]})]})},os=({defaultValue:o,detail:l})=>{const{View:s}=p(),t=L(l,"message",o.message),n=L(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})})},ls=s((({code:o,defaultValue:l})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Ae(o);return a(s,{className:"expressInfo",children:[e(as,{info:t,detail:n,stateObj:i,defaultValue:l}),e(os,{detail:n,defaultValue:l})]})})),ss=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=ha(),[N,f]=t(c),[b,C]=t(i);return n((()=>{f(S("userNickname")),C(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:()=>y("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>y("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(u,{src:b,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),ts=s((({title:o,columnList:l})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({}),[h,u]=t(0),g=[1,3,4,5],N=()=>ma(void 0,void 0,void 0,(function*(){try{const e=yield V();m(e.dataObj)}catch(e){console.error("获取订单数据失败:",e)}}));n((()=>{const e=S("myPageShowNum")||0;u(e),N();const a=setInterval((()=>{const e=S("myPageShowNum")||0;e!==h&&(u(e),N())}),500);return()=>{clearInterval(a)}}),[h]);const f=(e,a)=>{var o;if(4===e.id)return void y("afterSalesList");const l=null!==(o=g[a])&&void 0!==o?o:a+1;y("orderlist",{indexId:l})};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:()=>y("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:f.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)))})]})})),ns=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>y(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ue(o.imgUrl),className:"icon"}),e(n,{className:"label",children:o.link.label})]}),e(i,{value:"xiangyou1"})]},l)))})})),is=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;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)))})]})},cs=[{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"}]}],rs=s((()=>{const[l,s]=t("1"),{View:n}=p(),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:cs.map(((a,o)=>e(is,{itemData:a},o)))})]})})),ds=s((({code:o,borderRadius:l,borderColor:s,color:n,buttonColor:i,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:u,changeStar:N,Submit:f,changeContent:y,addImg:C,removeImg:v,getImgUrls:S}=Me(o),{Button:x}=g,{View:k,Image:w,TextArea:I,Textarea:T}=p(),B=T||I,P="WEAPP"===b().getEnv(),V="undefined"!=typeof window,[D,L]=t(0),R=c("宝贝满足你吗?分享一下它吧"),A=e=>{L(e);if(S(e).length>=3)if(P){b().showToast({title:"最多上传3张图片",icon:"none"})}else V&&alert("最多上传3张图片");else(()=>{if(P){const e=b(),a=3-S(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-S(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:[u.map(((o,s)=>a(h,{children:[a(k,{className:"topInfo",children:[a(k,{className:"lPart",children:[e(w,{src:Ue(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($o,{onChange:N.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(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(k,{className:"upload-text",children:"上传图片"})]}),S(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=S(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(x,{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:u}=Oe(o),{Button:N}=g,{View:f,Image:b,Text:y}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(b,{src:Ue(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($o,{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(y,{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(b,{className:"evaluate-img",src:Ue(a),style:{borderRadius:1===l?"10px":"0px"}},o)))})()})]},s)})),m.length?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),hs=({item:o,edit:l,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p(),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)||y("goodDetail",{skuCode:o.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(n,{src:Ue(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," 元"]})]})]})]})},ps=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:u}=Ye(),{View:g,ScrollView:N,SmoothCheckbox:f,Checkbox:b,Button:y,Image:C}=p();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(La,{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(hs,{item:a,edit:l,checked:r},a.collectId)))}),l?a(g,{className:"handleBar",children:[e(g,{className:"checkAll",style:{width:"130px"},children:e(b,{value:"1",checked:h,onChange:()=>{if(!h){const e=o.map((e=>e.collectCode));d(e),u(!0)}else d([]),u(!1)},children:"全选"})}),e(y,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),us=({item:o,edit:l,checked:s})=>{var t,n;const{View:i,Image:c,Checkbox:r,SmoothView:d}=p();return a(i,{className:"collectItem",children:[l?e(r,{className:"lPart",value:o.collectCode,checked:s}):null,a(i,{className:"rPart",onClick:()=>y("merchantShop",{memberCode:o.collectOpcode}),children:[e(c,{src:Ue(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})]})]})]})},gs=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Ye(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:b}=p();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(b,{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(La,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{value:r,onChange:n,style:{height:"100%"},children:o.map(((a,o)=>e(us,{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]})})]})})})),Ns=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),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:()=>y("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:Ue(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}=p();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(Ns,{footprintItem:a,edit:s},o)))]})},bs=({footprintList:a,edit:l})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=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)))})},ys=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u,checked:g}=je();return e(n,{loading:u,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(La,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:g,onChange:d,children:e(bs,{footprintList:i,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Cs=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:b}=ze(),y=Ze(),C=y.format("YYYY-MM-DD"),v=i((()=>u.includes(C)),[u,C]),S=i((()=>{const e=y.year(),a=y.month(),o=Ze(`${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(y,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[y,u]),x=i((()=>y.format("YYYY年MM月")),[y]);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:x})}),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:S.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:b,style:{backgroundColor:l,opacity:v?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":v?"已签到":o})]})]})})})),vs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Ze())),[g,N]=t(!1),[f,b]=t((()=>Ze().year())),[y,C]=t((()=>Ze().month()+1)),{signinDetails:v,loading:S,refresh:x}=Ee(h),k=i((()=>h.format("YYYY年MM月")),[h]),w=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>v.sort(((e,a)=>Ze(a.date).valueOf()-Ze(e.date).valueOf()))),[v]);return e(m,{loading:S,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;b(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=Ze(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:()=>{b((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{b((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:w.map((o=>e(c,{className:"monthItem "+(y===o?"active":""),onClick:()=>(e=>{C(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(o),style:y===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Ss=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],xs=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:Ss.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},n)))})})),ks=({data:o})=>{const{View:l}=p(),{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:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},ws=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[n,i]=t(Ss[0].val),{list:c,getData:r}=$e({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(xs,{activeColor:o,setParams:i,params:n}),e(d,{children:e(La,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(ks,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=p(),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 Is=()=>{const{View:a,Image:o}=p();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"})})},Ts=({list:l,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();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:["有效期至:",Ze(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",Ze(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(Is,{})})},Bs=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ge();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:()=>u(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(La,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ts,{backgroundColor:o,color:l,queue:n,list:g,coe:d,config:h})})})})]})})),Ps=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:u}=p(),{list:g,takeCoupon:N,takeList:f}=Fe({defaultValue:o,coupons:l});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((o,l)=>{const m=L(o,"pbName"),h=L(o,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),g=L(o,"promotionName"),b=Ze(L(o,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(o,"promotionEndtime")).format("YYYY-MM-DD"),C=L(o,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[b," - ",y]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||f.includes(l)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Vs=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:b}=Fe({defaultValue:o,coupons:l});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=L(o,"pbName"),h=L(o,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),u=L(o,"promotionName"),N=Ze(L(o,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(o,"promotionEndtime")).format("YYYY-MM-DD"),C=L(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," - ",y]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||b.includes(l)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:C,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Ds=s((o=>{var{type:l=1,coupons:s=[]}=o,t=da(o,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===l?e(Ps,Object.assign({coupons:s},t)):null,2===l?e(Vs,Object.assign({coupons:s},t)):null]})})),Ls=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:n}=We(l);return e(N,{navigator:n,color:s,speed:o,direction:a,content:t})},Rs=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=_e(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})]})})),As=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=He(o),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(La,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Ze(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{io as AddressDetail,lo as AddressList,so as AddressListBtn,Oa as AfterSalesApply,qa as AfterSalesDetail,Ga as AfterSalesList,Xa as AfterSalesType,ws as AllPromotionList,As as ArticleDetail,yl as CartList,Cl as CartOperate,cl as CartTop,Ta as ClassifyNav,ps as CollectionList,gs as CollectionShopList,Bs as CouponList,Pa as Cube,ds as EvaluateDetail,rs as EvaluateList,ms as EvaluateViewDetail,ls as ExpressInfo,ys as FootPrint,Ds as GetCouponOne,ko as Goods,fo as GoodsClassify,qo as GoodsDetailAndEvaluate,To as GoodsDetailBanner,Eo as GoodsDetailCoupon,sl as GoodsDetailHandleBar,Lo as GoodsDetailInfo,Ao as GoodsDetailInfoOne,Yo as GoodsDetailPromotion,Oo as GoodsDetailSku,il as GoodsList,Cs as MemberSignin,ss as MineData,ns as MineFunction,ts as MineOrderEntry,co as MyAgreementList,mo as MySetting,ro as MySettingJsx,Ls as Notice,Rs as NoticeDetail,es as OrderDetail,Ql as OrderList,jl as PaymentMode,po as PickupPointList,Vl as PlaceOrderAddressTabs,Rl as PlaceOrderCoupon,Al as PlaceOrderDelivery,Ml as PlaceOrderGood,Ol as PlaceOrderInfo,Yl as PlaceOrderOperate,El as PlaceOrderResult,ca as QjMobileIcon,vo as Search,xo as SearchPage,So as SearchStyleTwo,ia as Service,vs as SigninDetail,wa as Slider,ra as Title,fa as ToPrice,uo as WechatAddressBtn,pa as addressIdConst,ua as fixPrice,ga as fixPrice1,Na as formatTime,ha as useService};
|