s-material-react 2.2.76 → 2.2.78
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import o,{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 D}from"qj-b2c-api";import{queryOcserviceConfPageByMember as V}from"qj-b2b-api";import{get as L,isEqual as R,isEmpty as M,noop as A,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 le,useCreateMiniPoster as oe,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 De,useOrderList as Ve,orderStatusList as Le,useOrderDetail as Re,useExpressInfo as Me,useEvaluateDetail as Ae,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 la}from"@brushes/mobile-form";import{View as oa,Image as sa,RichText as ta}from"@tarojs/components";import{ClockCircleOutline as na}from"antd-mobile-icons";const ia=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},ra=s((({value:o,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=o,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:o}),s&&e(l,{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 l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(l[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(l[o[s]]=e[o[s]])}return l}function ma(e,a,l,o){return new(l||(l=Promise))((function(s,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(e){try{c(o.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ha=(e="b2c")=>{const[a,l]=t([]),o=i((()=>C()),[]);n((()=>{ma(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>ma(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield I();case"b2b":return yield V().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=L(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${L(o,"ocserviceConfRemark")}: ${L(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${L(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)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 l=Math.floor(e/1e3)%60,o=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${o}分钟 ${l}秒${a}`},fa=e=>1===String(e).indexOf(".")?ba(e):ya(e),ba=e=>{const a=Number(e).toFixed(0),l=(Number(e)-Number(a)).toFixed(2),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+"."+String(l).slice(2)},ya=e=>{const a=Number(e).toFixed(0),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.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:l,actived:o})=>{const s=c(null);return n((()=>{s.current&&(o?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)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},xa=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=va(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Sa,{actived:o,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:o="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"!==o,imgHeights:"bottom"===o&&"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(l,{children:["top"===o||"bottom"===o?P(s):null,e(xa,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),wa=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,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:l,paddingLeft:o,paddingRight:s,fontsize:y,textAlign:C,fontColor:v,backGroundColor:S,className:f({"outer-shadow":k}),className1:T})})})),Ia=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=va(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},Ta=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=Y(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>(e=>{var a,l,o;(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===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(l),children:[e(Ia,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),Ba=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=va(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,l,o;(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===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(o)})},Pa=s((({defaultValue:a,type:l,borderRadius:o,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${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Ba,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Da=o.createContext(null),Va=s((()=>{const{View:a}=p(),{tip:l}=r(Da);return e(a,{className:"afterSalesApplyTip",children:l})}));const La=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=da(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>C()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!C()||!e)return;const a=b().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!C())return 0;const a=b(),l=+a.getStorageSync("safeArea"),o=+(a.getStorageSync("tabBarHeight")||0);return l+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{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:o}))},Ra=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Da);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(La,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Ma=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(Da);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(l,{className:"price",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款金额"})]}),e(l,{className:"allPrice",children:e(l,{className:"single",children:ua(n)})})]}),e(Ra,{popupShow:s})]})})),Aa=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Da);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(ca,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(ca,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Oa=({refundType:l,contractBillcode:o,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:o,skuCode:s});return e(h,{loading:P,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Da.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(Va,{}),e(Ma,{}),e(Aa,{}),e(m,{className:"submitBtn",onClick:B.bind(null,t,o,l,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:l,goAfterSalesDetail:o})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(ca,{style:{color:null===(s=Ya[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ya[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ya[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Ue(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]}),a(n,{className:"count",children:["订单编号: ",l.contractBbillcode]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:ja[l.refundType][l.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:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,l);return e(t,{loading:c,children:e(o,{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:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:E,render:l=>e($a,{item:l,refreshNum:a})})})})),Fa=({dataPic:o,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 l=a.indexOf("/paas/");return-1===l?a:a.slice(l).replace(/\/+/g,"/")})(o);return e(l,{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=o.createContext(null),Ha=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(_a),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(La,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Ua=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(_a),{View:i,Input:c}=p();return a(l,{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:o,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:o,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:o}),{contractBbillcode:y,dataState:C,gmtCreate:v,ocRefundGoodsList:S,refundMoney:x,refundMeo:k,refundEx:w,refundType:I,ocRefundFileList:T,goodsReceiptMem:B,goodsReceiptPhone:P,goodsReceiptArrdess:D,packageCode:V,packageBillno:L,packageName:R}=c,{View:M,Image:A,WrapLoading:O}=p();return e(O,{loading:b,children:e(M,{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(M,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(M,{className:"left_text",children:Wa(I,C)}),e(M,{className:"right_time",children:Ze(v).format("YYYY-MM-DD HH:mm:ss")})]}),e(M,{className:"afterSalesDetailContent",children:a(M,{className:"refundDetail",children:[e(M,{className:"title",children:"退款信息"}),e(M,{className:"goodsDetail",children:null==S?void 0:S.map(((a,l)=>e(Fa,{dataPic:Ue(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"订单编号"}),e(M,{className:"right",children:y})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"退款原因"}),e(M,{className:"right",children:w})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"退款金额"}),e(M,{className:"right",children:x})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"描述说明"}),e(M,{className:"right",children:k})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"补充凭证"}),e(M,{className:"right",children:null==T?void 0:T.map(((a,l)=>e(A,{src:Ue(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"申请时间"}),e(M,{className:"right",children:Ze(v).format("YYYY-MM-DD HH:mm:ss")})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"退款编号"}),e(M,{className:"right",children:o})]}),e(l,{children:"B02"===I?a(l,{children:[C>0?a(M,{className:"merchantMsg",children:[e(M,{className:"title",children:"商家信息"}),a(M,{className:"name",children:[B," ",P]}),e(M,{className:"address",children:D})]}):"",1===C?a(M,{className:"writeMsg",children:[e(M,{className:"wlMsg",children:"物流信息"}),e(Ua,{})]}):"",C>1?a(M,{className:"writeMsg",children:[e(M,{className:"wlMsg",children:"物流信息"}),a(M,{className:"express_content",children:[e(M,{className:"name",children:"物流单号"}),e(M,{className:"code",children:L})]}),a(M,{className:"express_content",children:[e(M,{className:"name",children:"物流公司"}),e(M,{className:"code",children:R})]})]}):""]}):""})]})}),0===C?e(M,{className:"footerBtn",children:e(M,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ka=o.createContext(null),Ja=s((()=>{const{View:l,Image:o,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(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ue(N),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{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(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Qa=s((({contractGoodsSendnum:l,afterSalesType:o=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=o,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),Xa=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r,isSelfPickupPending:d}=l,m="string"==typeof d?"true"===d:!!d,{typeTip:h,setTypeTip:u,goodsNum:g,handleStep:N,goodsInfo:f,goApply:b,loading:y,goodsPrice:C}=G({contractBillcode:o,skuCode:s}),{View:v,WrapLoading:S}=p();return e(S,{loading:y,children:e(v,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ka.Provider,{value:{typeTip:h,setTypeTip:u,goodsNum:g,handleStep:N,goodsInfo:f,goApply:b,goodsPrice:C},children:[e(Ja,{}),e(Qa,{contractGoodsSendnum:f.contractGoodsSendnum||0,afterSalesType:m?2:t,contractBillcode:o,skuCode:s})]})})})},Za=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},el=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=F(l),c=w(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(Za,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>y("editAddress",{addressId:l.addressId}),children:"编辑"}),r.contractBillcode?e(n,{className:"del",onClick:()=>ma(void 0,void 0,void 0,(function*(){const e=l.provinceName+"-"+l.areaName+"-"+l.cityName+"-"+l.addressDetail;yield ea({contractBillcode:r.contractBillcode,addressPhone:l.addressPhone,addressDetail:e,addressMember:l.addressMember}),y("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},al=s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),ll=s((({url:l,title:o,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:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),ol=s((({refreshNum:a,btnShape:l,btnColor:o,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(al,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(el,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),sl=s((({borderColor:a,color:l,btnColor:o,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:l,backgroundColor:o},className:"addressListBtn",onClick:()=>y("addressEditor"),children:"+ 新增地址"})})})),tl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],nl=[{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:"收货人详细地址不能为空"}]}],il=s((({btnShape:a,btnColor:l,borderColor:o,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(la,{initialValues:m,footer:e(f,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:tl,onSubmit:b,fields:nl})})})),cl=s((()=>{const{View:l}=p(),o=e=>{y(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(l,{className:"myAgreementList",children:e(l,{className:"list",children:s.current.map(((s,t)=>a(l,{className:"item",onClick:o.bind(null,s.type),children:[e(l,{children:s.label}),e(l,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),rl=()=>{const{View:l}=p(),{mySettingGoBind:o,mySettingLogout:s}=H();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(ca,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},dl=s(rl),ml=({itemData:l})=>{const{View:o,Text:s}=p(),{handlerImpl:t}=U(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},hl=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,Loading:i}=p(),{list:r,loading:d,skullShow:m,onScroll:h}=q(l);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:o+"px"},children:m?e(al,{}):e(t,{className:"addressList",children:r.length?a(t,{children:[r.map(((a,l)=>e(ml,{itemData:a},a&&a.userinfoOcode||l))),d&&e(i,{}),e(t,{id:"pickup-point-list-sentinel",ref:u,style:{height:"1px"}})]}):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})),pl=s((({borderColor:a,color:l,btnColor:o,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:l,backgroundColor:o},className:"addressListBtn",onClick:()=>ma(void 0,void 0,void 0,(function*(){yield v("导入成功","none")})),children:"导入微信收件地址"})})})),ul=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{className:`container container_columns${t}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:t})=>a(n,{onClick:()=>y("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:gl}=g,Nl=s((({cell:l,color:o,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(gl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(gl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(ul,{navList:m,activeKey:r,cell:l})})]})})})})})),fl="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/search.png",bl="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/THREE_DOTS.png",yl="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/share.svg",Cl=s((({value:l,urlPath:o="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(o),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:fl,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:l})]})})})),vl=s((({value:l,iconShow:o,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:fl,alt:"",style:{height:"16px",width:"16px",display:o?"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:l})]}),e(C,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:u,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),Sl=s((({placeholder:l,placeholderText:o,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:fl,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 l=a.concat(g.current.value||e.detail.value);return x("history",l),l}return a})),P(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(v,{className:"btn",onClick:()=>{const e=T.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return x("history",l),l}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,l)=>e(f,{onClick:()=>P(a),className:"historyItem",children:a},l)))})]}):null]})})),xl=s((({defaultValue:l=[],classCode:o="",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,D]=t(l),V=c(),{View:A,Text:O}=p();return n((()=>{R(V.current,u)||(V.current=u,M(u)?D(l):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",[]);D(a)}catch(e){D(l)}})))}),[u]),e(A,{style:{paddingTop:N,paddingBottom:b},children:e(A,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:C,paddingRight:v},children:P.map(((l,o)=>a(A,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:w?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(A,{className:"goods-img",style:{backgroundImage:`url(${Ue(l.dataPic)})`}}),a(A,{className:"space",children:[e(A,{className:"titleType",style:{display:S?"block":"none"},children:l.goodsName}),e(A,{className:"subTitle",children:l.brandName}),a(A,{className:"price",children:[a(A,{style:{fontSize:18},children:[x?ua(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ua(l.pricesetMakeprice)})]}),e(A,{className:"anticon",style:{display:k?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})}));var kl=new class{constructor(){this.events={}}on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const l=this.events[e];l&&l.forEach((e=>e(...a)))}off(e,a){const l=this.events[e];l&&(this.events[e]=l.filter((e=>e!==a)))}};const wl=s((({Position:o="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(),D=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===u}))),{handleCollect:V,collection:L}=J(x),[R,A]=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=>{A(e)};return kl.on("IsCollectionShow",e),()=>{kl.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:()=>{kl.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:yl,onClick:e=>{e.stopPropagation(),kl.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(z,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${yl})`,backgroundSize:"100% 100%",width:16,height:16,padding:0},className:"wx-share-button"})}),e(j,{onClick:V,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8,display:R?"flex":"none"},children:M(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:D,type:d,autoplay:m,autoplayInterval:h,direction:u,loop:g,interval:5e3,vertical:"vertical"===u,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?$(s):null,e(xa,{isPlay:t===n,item:s,position:o,direction:u})]})})]})})),Il=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:n,memberCode:i=""}=Q(o,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:o};return e(wl,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})};function Tl(l){const{content:o,position:s="top"}=l,[n,i]=t(!1);return a(oa,{className:"tooltip-wrap",children:[e(oa,{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(oa,{className:`tooltip-popup tooltip-${s}`,children:[o,e(oa,{className:"tooltip-arrow"})]})]})}const Bl=({shareShow:a,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{if(!C())return;return"WEB"===b().getEnv()?e(l,{children:a?e(Pl,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s}):null}):e(Dl,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s})},Pl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r,width:d,height:m}=le(o,s,t);return e(n,{className:"share",children:l?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:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Dl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Image:i,Button:c,Canvas:r}=p(),{save:d,width:m,height:h,posterImage:u,setPosterImage:g}=oe(o,s,t,l);return e(n,{style:{zIndex:l?1e3:-10,opacity:l?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}}),l&&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(""),o(!1)},children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:d,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},Vl=({skuCode:l,priceShow:o,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(l,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(l);const B=b(),P="WEB"===k.getEnv();kl.emit("IsCollectionShow",{collectionShow:s}),n((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&D()};return kl.on("bannerImageClick",e),()=>{kl.off("bannerImageClick",e)}}),[]);const D=()=>{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(Bl,{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:o?"block":"none"},children:["会员价",e(f,{className:"price-value",children:ua(S.pricesetNprice)})]}),a(m,{className:"sale-price",style:{display:o?"block":"none"},children:["促销价",e(f,{className:"price-value",children:ua(S.pricesetNprice)})]}),T?e(d,{className:"page",children:e(Tl,{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,"天内"]})]})]})},Ll=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=J(l),{handleShare:c}=se();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:M(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Rl=s((({priceShow:l,collectionShow:o,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:l?"block":"none"},children:ua(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Ll,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:t})]})})),Ml=s((()=>{var l;const{View:o,Text:s}=p(),t=te((e=>e.count)),n=te((e=>e.spec)),i=k.useRouter(),c=null===(l=null==i?void 0:i.params)||void 0===l?void 0:l.skuName,r=n&&n.length>0?n.join(","):c?decodeURIComponent(c).replace(/\//g,","):"";return a(s,{className:"label",children:[e(s,{className:"blod font-14 letter-spacing-1",children:"已选"})," 规格: ",e(s,{className:"blod",children:r}),e(s,{style:{margin:"0 18px 0 10px"},children:"|"}),"数量: ",e(s,{className:"blod font-14",children:t})]})})),Al=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=ne(o),i=te((e=>e.goodsSupplynum)),c=te((e=>e.productCertType)),r=te((e=>e.goodsMinnum)),d={1:"无公害农产品",2:"绿色食品",3:"有机农产品",4:"国家地理标志保护产品"}[c]||"";return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[a(s,{className:"goods-supplynum",children:[a(s,{children:["库存:",e(t,{className:"blod",children:i})]}),d&&e(s,{children:e(t,{className:"typeBlod",children:d})})]}),a(s,{className:"info",children:[e(Ml,{}),e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",className:"icon"})]}),a(s,{style:{marginTop:10,fontSize:14,color:"#999"},children:["起订量:",e(t,{className:"blod",children:r})]})]})})},Ol=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=Q(l,o),{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},l)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},Yl=s((({promotionBegintime:l,pbName:o,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:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[Ze(l).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:"已领完"})]})})})),jl=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},zl=o=>{var{skuCode:s,scene:t}=o;da(o,["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(l,{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(Yl,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(jl,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},El=({onChange:a,readOnly:l=!1,size:o=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)}}),[s]);const d=e=>{if(!l){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,l)=>e(ca,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},$l=({item:l})=>{const{View:o,Image:s,Text:t,Button:n}=p(),i=C(),c=b();S("user");const{userInfoCode:r}=S("user")||{userInfoCode:""};return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(El,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),a(o,{className:"pj-wrapper",children:[a(o,{className:"flex-1",children:[e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent}),l.evaluateGoodsImgs&&JSON.parse(l.evaluateGoodsImgs).length>0&&e(o,{className:"img-group",children:JSON.parse(l.evaluateGoodsImgs).map((a=>e(s,{src:Ue(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),l.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)}}))})(l)},children:"删除"}):null]}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},Gl=[{label:"全部",value:"all"},{label:"好评",value:"good"},{label:"中评",value:"medium"},{label:"差评",value:"bad"}],Fl=({evaluateArr:l})=>{const{View:o}=p(),[s,n]=t("all"),i="all"===s?l:l.filter((e=>{var a;const l=(null===(a=e.evaluateScopeReList)||void 0===a?void 0:a.length)||0;return"good"===s?l>=4:"medium"===s?l>=2&&l<=3:"bad"!==s||l<=1}));return e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),e(o,{className:"evaluateFilterTabs",children:Gl.map((e=>{return a(o,{className:"evaluateFilterTabItem "+(s===e.value?"active":""),onClick:()=>n(e.value),children:[e.label," (",(t=e.value,"all"===t?l.length:l.filter((e=>{var a;const l=(null===(a=e.evaluateScopeReList)||void 0===a?void 0:a.length)||0;return"good"===t?l>=4:"medium"===t?l>=2&&l<=3:"bad"!==t||l<=1})).length),")"]},e.value);var t}))}),i.length?i.slice(0,50).map(((a,l)=>e($l,{item:a},l))):e(ll,{style:{margin:"50px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"暂无相关评价"})]}):e(ll,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Wl=process.env.REACT_APP_BASE_URL,_l=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${Wl}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(l,{className:"goodsDetail-info",children:e(ta,{nodes:o})})},Hl=({goodsRemark:l})=>{const{View:o}=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(o,{className:"goodsDetail-info",children:[g.length>0&&e(o,{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(((l,s)=>a(o,{style:{marginRight:25,marginLeft:10},children:[" ",e(o,{style:{color:"black",fontSize:13,fontWeight:500},children:l.propertiesName}),e(o,{style:{color:"gray",fontSize:11},children:l.propertiesValueValue||"--"})]},s)))}),r&&e(o,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},Ul=({tabActive:o,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(l,{children:d.map(((l,t)=>e(h,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},ql=({evaluateShow:l,evaluateImgShow:o,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(Ul,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(_l,{goodsRemark:m}):2===r?e(Fl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s}):1===r?e(Hl,{goodsRemark:m}):null})]})},Kl=({skuName:l,handleChooseSize:o,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 l=e.skuName||"";return!!h(l,a)&&m.every(((e,a)=>a===n||!(e&&!h(l,e))))}));var a}));return a(c,{className:"sizeArr",children:[e(r,{className:"title",children:l}),e(c,{className:"sizeArrItemWrap",children:u.map(((a,l)=>{const s=(e=>m[n]===e)(a.specValueValue);return e(c,{className:f({sizeItem:!0,active:s,offShelf:!s&&d}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)}))})]})},{Stepper:Jl}=g,Ql=({count:a,handleStep:l,goodsNum:o,goodsMinnum:s})=>{const{View:t}=p(),n=s||1,i=o||999;return e(t,{className:"numStepWrap",children:e(Jl,{value:a,max:i,onChange:e=>{if(null===e||isNaN(e))return;const o=Math.floor(e);if(o===a+1)return a>=i?void v("超库存","none"):void l("plus");if(o===a-1)return a<=n?void v(`起购数为${n}`,"none"):void l("minus");if(o<n)v(`起购数为${n}`,"none");else if(o>i)v("超库存","none");else if(o!==a){const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:o}))}},onBlur:e=>{const a=e.target.value;if(!a)return;const l=parseInt(a,10);if(!isNaN(l))if(l>i){v("超库存","none");const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:i}))}else if(l<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"}})})},Xl=s((({handleStep:a,goodsNum:l,goodsMinnum:o})=>{const{View:s}=p(),t=te((e=>e.count));return e(s,{className:"countWrap",children:e(Ql,{count:t,handleStep:a,goodsNum:l,goodsMinnum:o})})})),Zl=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n,handleStep:i,rsSkuDomainList:c})=>{const{Image:r,View:d}=p(),{skuList:m}=o,h=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ua(n.pricesetNprice);return a(l,{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(Xl,{handleStep:i,goodsNum:n.goodsSupplynum,goodsMinnum:n.goodsMinnum})]})]}),m.map(((a,l)=>e(Kl,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption,rsSkuDomainList:c},l)))]})},eo=({cashImpl:o,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(l,{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:o,children:"立即购买"})]})})},ao=s((({dispatchPageStore:l,goodsCode:o,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(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(La,{children:e(i,{children:e(n,{className:"content",children:e(Zl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r,handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),rsSkuDomainList:t})})})}),e(eo,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),lo=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(ao,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},oo=s((({serverShow:o,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:D}=ee(B);ha(b);const{addCardPopup:V,buyOpenPopup:L}=ne(N),[R,M]=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 l=e.model.toLowerCase();(l.includes("iphone x")||l.includes("iphone 11")||l.includes("iphone 12")||l.includes("iphone 13")||l.includes("iphone 14")||l.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();M(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=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 l=document.createElement("script");l.src=e,l.type="text/javascript",l.async=!0,l.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()}}))},l.onerror=()=>{console.error("七鱼客服脚本加载失败")},document.body.appendChild(l)}()},style:{display:o?"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(l,{children:["26"===P||!1===i?null:e(v,{className:"btn addCart",onClick:V,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"===D.goodsPro?"预售抢购":"立即购买")})]})})]})})),so=o=>{var{$_dataSource:s={},dispatchPageStore:t=A,skuCode:n,scene:i}=o,c=da(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=Q(n,i),h=he(r,m),{popupVisible:p}=s;return a(l,{children:[e(oo,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(lo,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},to=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],no=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(to);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,o)=>{i(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ca,{style:{color:n===m&&"asc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:n===m&&"asc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},io=s((({classtreeCode:l="",searchParam:o="",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:D}=pe(l,o,I,n),V=i((()=>f("textBox",{btm:!r&&!d})),[r,d]),L=i((()=>f("name",{boxNone:!c})),[c]),R=i((()=>f("middle_margin",{boxNone:!m})),[m]),M=i((()=>f("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),A=i((()=>f({detailContent:!(L.includes("boxNone")&&R.includes("boxNone")&&M.includes("boxNone"))})),[L,R,M]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(no,{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:D.map((l=>a(C,{onClick:()=>Xe(y,{skuCode:l.skuCode,skuName:l.skuName}),className:"listItem",style:{borderRadius:u?"8px":"",boxShadow:g?"4px 4px 4px #969292":""},children:[e(x,{src:Ue(l.dataPic),className:"img"}),a(C,{className:A,children:[e(S,{className:L,children:l.goodsName}),a(C,{className:R,children:["已售:",l.goodsNum]}),a(C,{className:M,children:[a(C,{className:V,children:[e(S,{className:"price",style:{display:r?"block":"none"},children:ua(l.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ua(l.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(w,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(v,{}):null]})})})]})})),co=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=ue(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},ro=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),mo=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,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(ro,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},ho=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),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)})]})]})})})),po=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{let a="";switch(o){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!==o?e(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>y("goodDetail",{skuCode:s})})]})})),uo=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),go=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{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(mo,{promotionCode:c,onChange:e=>{m(!1),s(n,Ne(e))},promotion:o||[],visible:d,setVisible:m})})]})},No=s((l=>{var{item:o}=l,s=da(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(uo,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(po,{dataState:o.dataState,dataPic:Ue(o.dataPic),skuCode:o.skuCode}),e(ho,Object.assign({},o,s))]})})),fo=o=>{var{shoppingGoodsList:s=[]}=o,t=da(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(No,Object.assign({},t,{item:l})),l.pmPromotionList?e(go,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},bo=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>M(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Xe(o,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),n]})},yo=({disNextMsg:l,promotionName:o,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:o}),l&&e(bo,{link:t,disNextMsg:l})]})},Co=({refreshNum:o,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(o,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(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(yo,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(fo,{cartIsEditor:g,promotionCode:o,handleStep:y,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},vo=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,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}=l,{toOrderImpl:b,deleteCart:y,clearAll:C,selectAll:v,ids:S,cartDetail:x}=fe(N,u,o),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,")"]})]})]})},So=({address:a})=>e(l,{children:M(a)?e(ko,{}):e(xo,{address:a})}),xo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[a(o,{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(o,{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]})]})},ko=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},wo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:n=""})=>{const{View:i}=p(),c=be(a,o,l,s,t,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(So,{address:c})})},Io=({address:a})=>e(l,{children:M(a)?e(Bo,{}):e(To,{address:a})}),To=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[a(o,{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(o,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]})]})},Bo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Po=({refreshNum:a})=>{const{View:l}=p(),o=ye(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>y("pickupPointList"),children:e(Io,{address:o})})},Do=({tabActive:o,setTabActive:s,tabs:t})=>{const{Text:n}=p();return e(l,{children:t.map(((l,t)=>e(h,{children:a(n,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(n,{className:"line"})]})},l.id)))})},Vo=({refreshNum:l,skuId:o="",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(Do,{tabActive:g,setTabActive:N,tabs:f})})}),e(d,{className:"content",children:"0"===g?e(wo,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(Po,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Lo=s((({couponStart:l,pbName:o,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:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Ro=s((({couponStart:l,pbName:o,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:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Mo=({refreshNum:o,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:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:m}),{coupon:w,visible:I,couponValue:T=[],setVisible:B,selectCoupon:P,onChange:D,onCreditChange:V,confirmImpl:L,resetImpl:R,contractPmode:M,onPayChange:A,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(l,{children:[k.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(l,{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:bl,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:bl,alt:"",className:"icon"})]}),e(u,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]})]}),z.urechargeId&&"0"===M&&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:bl,alt:"",className:"icon"})]})]}),"1"===M&&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:M||"",onChange:A,children:(null==O?void 0:O.length)>0&&O.map(((l,o)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(S,{checked:l.ptfpmodeType===M,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"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:V,children:(null==j?void 0:j.length)>0&&j.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.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:D,children:(null==w?void 0:w.length)>0&&w.map((e=>d(Lo,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:D,children:w.map(((e,a)=>d(Ro,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:"确认"})]})]})})]})},Ao=()=>{const{View:l}=p(),o=ke(),s="235990605097"===(X.getState().memberCode||"")||"1"===o.contractPmode?"自提":"快递";return e(l,{className:"info placeOrder-blcWrap",children:a(l,{className:"express placeOrder-blcItem",style:{width:"100%"},children:[e(l,{className:"label",children:"配送方式"}),e(l,{className:"value",children:s})]})})},Oo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=Se({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Fa,Object.assign({},a),o)))})))})},Yo=({refreshNum:o,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:o,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:D}=we(b),V=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(l,{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":V})]})]})})},jo=({color:l,buttonColor:o,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:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},zo=s((({contractBillcode:l,contractBbillcode:o,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:l,contractBbillcode:o,memberCode:u}),P=i((()=>(console.log("%cNODE_ENV","color: red; font-weight: bold;",process.env.NODE_ENV),g||Object.is(u,"235990625518")?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((l=>a(N,{className:"paymentItem",children:[e(x,{className:"paymentIcon",style:{width:38,height:38},src:"1"===l.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:l.fchannelName}),"1"===l.ptfchannelAmt?a(N,{style:{fontSize:12,color:"#999",marginLeft:"auto",marginRight:10},children:["可用余额:¥",l.faccountAmount]}):null,e(b,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]})})]},l.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:"立即支付"})})})]})})),Eo=({dataObj:l})=>{const{View:o,Text:s}=p();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ua(l.dataBmoney)})]})]})},$o=s((({code:l,goodsBeanStr:o,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(l||(S("contractBillcode")||{}).contractBillcode,o);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(Eo,{dataObj:k.dataObj}),a(b,{className:"btnGroup",style:{marginTop:20},children:[e(b,{className:"btn black",onClick:()=>o?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:Go}=g,Fo=a=>{var{dataState:o,afterSaleIngFlag:s}=a,t=da(a,["dataState","afterSaleIngFlag"]);return!s||2!==o&&3!==o?e(l,{children:["-1"].includes(o+"")?null:e(Wo,Object.assign({dataState:o},t))}):null},Wo=a=>{var{dataState:l,contractAppraise:o,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!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:m,handlerImpl:h}=Pe(Object.assign({dataState:l,contractAppraise:o,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,l)=>e(Go,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:l<m.length-1,black:l===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},l)))})},_o=({contractPaydate:o,init:s,countdownCancel:i,contractId:c})=>{const{View:r,Text:d,SmoothView:m}=p(),{resultTime:h}=((e,a,l,o)=>{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?l(o).then((()=>{k.eventCenter.trigger("switchOrderTab")})):t>1e3&&i(Na(t,""))}),1e3);return()=>{clearTimeout(a)}}),[s]),{resultTime:s}})(o,0,i,c);return e(l,{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 Ho({memberName:l,contractBillcode:o,dataBmoney:s,dataBnum:t,goodsList:n,dataState:i,contractId:c,init:r,contractAppraise:d,borderRadius:m,orderSpacing:h,contractPaydate:u,contractType:g,countdownCancel:N,afterSaleIngFlag:f}){const{View:b,SmoothView:C,Image:v}=p(),S=!f||2!==i&&3!==i?De(i,d):"售后中";return a(b,{className:"orderListItem",style:{borderRadius:m?8:"",marginTop:h,marginBottom:h},children:[a(b,{children:[a(b,{className:"topInfo",children:[a(b,{className:"shop-info-wrap",style:{display:"flex",alignItems:"center"},children:[e(v,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(C,{className:"sku shop-name",children:l})]}),e(b,{className:"orderNo"}),e(b,{className:"status",style:(e=>{switch(e){case"待确认":return{color:"#97dcde"};case"待付款":return{color:"#FF2D1E"};case"待发货":case"售后中":return{color:"#FA8752"};case"待收货":return{color:"#FFC82C"};case"已完成":case"待评价":case"已评价":return{color:"#34C0BC"};case"已取消":return{color:"#999999"}}})(S),children:S})]}),e(b,{className:"goodsItemWrap",onClick:()=>y("orderDetail",{contractBillcode:o}),children:n.map((a=>e(Fa,Object.assign({},a,{dataState:i}),a.contractGoodsId)))}),i&&1===i&&e(_o,{contractPaydate:u,init:r,countdownCancel:N,contractId:c})]}),a(b,{className:"allInfo",children:[a(b,{className:"totalNum",children:["共",t,"件商品"]}),a(b,{className:"totalPrice",children:["合计 ",ua(s)]})]}),e(Fo,{init:r,contractType:g,contractId:c,contractBillcode:o,dataState:i,contractAppraise:d,dataBmoney:s,afterSaleIngFlag:f})]})}const Uo=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const qo=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:i}){const{View:r,Loading:m}=p(),{onScroll:h,data:u,loading:g,init:N,countdownCancel:f,initializing:C}=Ve(l,o,i),v=c(null),S=b(),x="WEB"===k.getEnv();return n((()=>{if(x){const e=v.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(S);return e.relativeToViewport({bottom:100}).observe("#order-list-sentinel",(e=>{e.intersectionRatio>0&&!g&&h()})),()=>e.disconnect()}}),[g,h,S,x]),e(r,{className:"orderListItemWrap",children:C?e(r,{children:g?e(m,{}):null}):u.length>0?a(r,{children:[u.map(((e,a)=>d(Ho,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:v,style:{height:"1px"}})]}):a(r,{className:"nodata_img",children:[e(Uo,{}),e(r,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})),Ko=s((({tabs:a,activeIndex:l,activeColor:o="#000",onChange:s})=>{const{View:t}=p(),n=Number(l);return e(t,{className:"qj-tabs",id:"qj-tabs-id",children:a.map(((a,l)=>{const i=f({"actived-item":n===l,"default-item":!0});return e(t,{onClick:()=>s(a,l),className:i,style:{borderColor:n===l?o:""},children:a.name},a.code||l)}))})})),Jo=process.env.TARO_ENV;let Qo=Le;if(console.log("platform",Jo),"h5"==Jo){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(Qo=[{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")&&(Qo=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Xo=s((({refreshNum:l=0,indexId:o=0,borderRadius:s=!1,orderSpacing:i=12,contractType:c=""})=>{const{View:r}=p(),[d,m]=t(o),[h,u]=t(Qo[o]||Qo[0]);n((()=>{const e=()=>{const e=Qo.findIndex((e=>"-1"===e.code));m(e),u(Qo[e])};return k.eventCenter.on("switchOrderTab",e),()=>{k.eventCenter.off("switchOrderTab",e)}}),[]),n((()=>{const e=o;m(e),u(Qo[e]||Qo[0])}),[o]);return a(r,{className:"order-container",children:[e(Ko,{tabs:Qo,activeIndex:d,onChange:(e,a)=>{m(a),u(e)}}),e(r,{className:"orderList",children:e(qo,{contractType:c,item:h,orderSpacing:i,refreshNum:l,borderRadius:s},h.code)})]},o)})),{Button:Zo}=g,es=s((({copyContent:a=""})=>{const[l,o]=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 l=document.execCommand("copy");if(document.body.removeChild(a),!l)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(Zo,{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,l)=>{n.setClipboardData({data:a,success:e,fail:l})})),r("复制成功","success"),o(!0)):(yield c(a),r("复制成功","success"),o(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:l?"已复制":"复制"})})),as=s((({contractBillcode:o,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,pickupDate:k,pickupRemark:w}=Re(o||""),I={color:"#ffffff",marginRight:"10px",fontSize:"20px"},T=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 l="1"===b.contractPumode,o="待收货"===De(b.dataState);return a(g,l&&o?{className:"orderDetailTopTitleContent",children:[e(g,{className:"icon_text",children:e(N,{className:"title",children:De(b.dataState,b.contractAppraise)})}),e(g,{className:"icon_text",children:a(N,{className:"title",children:["请于",(s=k,Ze(s).format("YYYY-MM-DD"))," 17:00前提取"]})}),e(g,{className:"icon_text",children:e(N,{className:"qrTitle",children:b.contractDelcode})}),e(g,{className:"icon_text",children:e(N,{className:"title",children:w})})]}:{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===De(b.dataState)&&e(ca,{value:"daishouhuo",style:I}),e(N,{className:"title",children:De(b.dataState,b.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:T(b.gmtCreate)})]});var s})()}),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 infoNew",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((o=>e(l,{children:a("view",{onClick:()=>{y("goodDetail",{skuCode:o.skuCode})},children:[e(Fa,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),y(u,{skuCode:o.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();const a="1"===b.contractPumode,l="待收货"===De(b.dataState),s=a&&l;console.log(s);const t=s?{contractBillcode:o.contractBillcode}:o;C.bind(null,t,b.dataState,s)()},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(l,{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(es,{copyContent:b.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:T(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(Fo,{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})})]})})]})})),ls=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=L(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=L(o,"packageList.length",l.count),r=L(o,"packageList[0].expressName",l.expressName),d=L(o,"packageList[0].packageBillno",l.packageBillno),m=L(s,"state",l.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:l,detail:o})=>{const{View:s}=p(),t=L(o,"message",l.message),n=L(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.map(((l,o)=>a(s,{className:"step",children:[e(s,{className:"time",children:l.time}),e(s,{children:l.context})]},o))):e(s,{className:"noInfo",children:t})})},ss=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Me(l);return a(s,{className:"expressInfo",children:[e(ls,{info:t,detail:n,stateObj:i,defaultValue:o}),e(os,{detail:n,defaultValue:o})]})})),ts=s((({avatarStyle:l,paddingTop:o,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:`${o}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:l?"50%":"2px"}})]})]})})),ns=s((({title:l,columnList:o})=>{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 D();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 l;if(4===e.id)return void y("afterSalesList");const o=null!==(l=g[a])&&void 0!==l?l:a+1;y("orderlist",{indexId:o})};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>y("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:f.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),is=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>y(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ue(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),cs=({starColor:l="#FF0934",starSize:o="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":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,l)=>e(i,{src:a.imgUrl,className:"img"},l)))})]})},rs=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],ds=s((()=>{const[o,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(l,{children:[e(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:rs.map(((a,l)=>e(cs,{itemData:a},l)))})]})})),ms=s((({code:l,borderRadius:o,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}=Ae(l),{Button:x}=g,{View:k,Image:w,TextArea:I,Textarea:T}=p(),B=T||I,P="WEAPP"===b().getEnv(),D="undefined"!=typeof window,[V,L]=t(0),R=c("宝贝满足你吗?分享一下它吧"),M=e=>{L(e);if(S(e).length>=3)if(P){b().showToast({title:"最多上传3张图片",icon:"none"})}else D&&alert("最多上传3张图片");else(()=>{if(P){const e=b(),a=3-S(V).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(V,e)}))}})}else if(D){const e=3-S(V).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const l=a.target.files;l&&l.length>0&&Array.from(l).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(V,a)}))},a.click()}})()};return a(k,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[u.map(((l,s)=>a(h,{children:[a(k,{className:"topInfo",children:[a(k,{className:"lPart",children:[e(w,{src:Ue(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(k,{className:"goodsInfo",children:[e(k,{className:"goodsName",children:l.goodsName}),e(k,{className:"goodsSize",children:l.skuName})]})]}),e(k,{className:"rPart",children:a(k,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(k,{className:"rate",children:[e(k,{className:"title",children:"商品评价"}),e(El,{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:()=>M(s),children:[e(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(k,{className:"upload-text",children:"上传图片"})]}),S(s).map(((l,o)=>a(k,{className:"img-item",children:[e(w,{className:"preview-img",src:l,onClick:()=>(e=>{if(P){const a=b(),l=S(V);a.previewImage({current:e,urls:l})}else D&&window.open(e,"_blank")})(l)}),e(k,{className:"delete-btn",onClick:()=>v(s,o),children:"×"})]},o)))]})]})]},s))),e(x,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:f,children:"提交"})]})})),hs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Oe(l),{Button:N}=g,{View:f,Image:b,Text:y}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(b,{src:Ue(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(El,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(y,{children:l.evaluateGoodsContent||""})})}),l.evaluateGoodsImgs&&e(f,{className:"evaluate-imgs",children:(()=>{let a=[];const s=l.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,l)=>e(b,{className:"evaluate-img",src:Ue(a),style:{borderRadius:1===o?"10px":"0px"}},l)))})()})]},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]})})),ps=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p(),r=s.includes(l.collectCode);return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(l.dataState)||y("goodDetail",{skuCode:l.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(n,{src:Ue(l.collectOppic),className:"img"}),e(t,{className:[2,3].includes(l.dataState)?"tag":"",children:[2,3].includes(l.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},us=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,collectCodeStr:r,setCollectCodeStr:d,checked:m,setChecked:h,handleSelectAll:u,selectAllChecked:g,setSelectAllChecked:N}=Ye(),{View:f,ScrollView:b,SmoothCheckbox:y,Checkbox:C,Button:v,Image:S}=p();return e(f,{className:"collectList",children:0===l.length?e(f,{className:"noDate",children:e(S,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(f,{className:"hasDate",children:[e(f,{className:"topBar",children:e(f,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(La,{id:"topBar",children:a(b,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(y,{value:m,onChange:n,style:{height:"100%"},children:l.map((a=>e(ps,{item:a,edit:o,checked:m},a.collectId)))}),o?a(f,{className:"handleBar",children:[e(f,{className:"checkAll",style:{width:"130px"},children:e(C,{value:"1",checked:g,onChange:()=>{if(!g){const e=l.map((e=>e.collectCode));console.log("allCodes",e),d(e.toString()),h(e),N(!0)}else d(""),h([]),N(!1)},children:"全选"})}),e(v,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),gs=({item:l,edit:o,checked:s})=>{var t,n;const{View:i,Image:c,Checkbox:r,SmoothView:d}=p();return a(i,{className:"collectItem",children:[o?e(r,{className:"lPart",value:l.collectCode,checked:s}):null,a(i,{className:"rPart",onClick:()=>y("merchantShop",{memberCode:l.collectOpcode}),children:[e(c,{src:Ue(null===(t=l.shopdeInfo)||void 0===t?void 0:t.shopdeLogo),className:"img"}),a(i,{className:"info",children:[e(d,{className:"title",children:l.collectOpcont}),e(d,{className:"scope",children:null===(n=l.shopdeInfo)||void 0===n?void 0:n.shopdeScope})]})]})]})},Ns=s((()=>{const{collectionList:l,edit:o,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===l.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(!o),children:o?"完成":"编辑"})}),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:l.map(((a,l)=>e(gs,{item:a,edit:o,checked:r},a.collectId||l)))}),o?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]})})]})})})),fs=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(n,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ue(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},bs=({item:o,edit:s})=>{const{View:t}=p();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(fs,{footprintItem:a,edit:s},l)))]})},ys=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=O(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(bs,{item:a,edit:o},l)))})},Cs=s((()=>{const{View:l,ScrollView:o,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(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(La,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:g,onChange:d,children:e(ys,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),vs=s((({buttonText:l,buttonBackground:o,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(),l=Ze(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.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,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:S.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.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:o,opacity:v?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":v?"已签到":l})]})]})})})),Ss=s((({title:l,themeColor:o="#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:l}),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(((l,s)=>{const t=Ze(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.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((l=>e(c,{className:"monthItem "+(y===l?"active":""),onClick:()=>(e=>{C(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:y===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),xs=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],ks=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:xs.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),ws=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,promotionEndtime:c}=l;return a(o,{className:"promotionItem",children:[a(o,{className:"lPart",children:[e(o,{className:"round"}),e(o,{className:"tagBg",children:a(o,{className:"txt",children:["官方",s]})}),e(o,{className:"rule",children:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Is=s((({activeColor:l,paddingTop:o,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:`${o}px 0 ${s}px`},children:[e(ks,{activeColor:l,setParams:i,params:n}),e(d,{children:e(La,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(ws,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Ts=()=>{const{View:a,Image:l}=p();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Bs=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Ze(o.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",Ze(o.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===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Ts,{})})},Ps=s((({backgroundColor:l,color:o,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(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(La,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Bs,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),Ds=s((({defaultValue:l,coupons:o,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:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=L(l,"pbName"),h=L(l,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),g=L(l,"promotionName"),b=Ze(L(l,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(l,"promotionEndtime")).format("YYYY-MM-DD"),C=L(l,"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===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Vs=s((({defaultValue:l,coupons:o,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:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=L(l,"pbName"),h=L(l,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),u=L(l,"promotionName"),N=Ze(L(l,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(l,"promotionEndtime")).format("YYYY-MM-DD"),C=L(l,"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===l.availabledate||b.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:C,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ls=s((l=>{var{type:o=1,coupons:s=[]}=l,t=da(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(Ds,Object.assign({coupons:s},t)):null,2===o?e(Vs,Object.assign({coupons:s},t)):null]})})),Rs=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=We(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},Ms=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=_e(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,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:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=He(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,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{il as AddressDetail,ol as AddressList,sl as AddressListBtn,Oa as AfterSalesApply,qa as AfterSalesDetail,Ga as AfterSalesList,Xa as AfterSalesType,Is as AllPromotionList,As as ArticleDetail,Co as CartList,vo as CartOperate,co as CartTop,Ta as ClassifyNav,us as CollectionList,Ns as CollectionShopList,Ps as CouponList,Pa as Cube,ms as EvaluateDetail,ds as EvaluateList,hs as EvaluateViewDetail,ss as ExpressInfo,Cs as FootPrint,Ls as GetCouponOne,xl as Goods,Nl as GoodsClassify,ql as GoodsDetailAndEvaluate,Il as GoodsDetailBanner,zl as GoodsDetailCoupon,so as GoodsDetailHandleBar,Vl as GoodsDetailInfo,Rl as GoodsDetailInfoOne,Ol as GoodsDetailPromotion,Al as GoodsDetailSku,io as GoodsList,vs as MemberSignin,ts as MineData,is as MineFunction,ns as MineOrderEntry,cl as MyAgreementList,dl as MySetting,rl as MySettingJsx,Rs as Notice,Ms as NoticeDetail,as as OrderDetail,Xo as OrderList,zo as PaymentMode,hl as PickupPointList,Vo as PlaceOrderAddressTabs,Mo as PlaceOrderCoupon,Ao as PlaceOrderDelivery,Oo as PlaceOrderGood,Yo as PlaceOrderInfo,jo as PlaceOrderOperate,$o as PlaceOrderResult,ca as QjMobileIcon,Cl as Search,Sl as SearchPage,vl as SearchStyleTwo,ia as Service,Ss as SigninDetail,wa as Slider,ra as Title,fa as ToPrice,pl 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 l}from"react/jsx-runtime";import o,{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 D}from"qj-b2c-api";import{queryOcserviceConfPageByMember as V}from"qj-b2b-api";import{get as L,isEqual as R,isEmpty as M,noop as A,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 le,useCreateMiniPoster as oe,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 De,useOrderList as Ve,orderStatusList as Le,useOrderDetail as Re,useExpressInfo as Me,useEvaluateDetail as Ae,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 la}from"@brushes/mobile-form";import{View as oa,Image as sa,RichText as ta}from"@tarojs/components";import{ClockCircleOutline as na}from"antd-mobile-icons";const ia=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),ca=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},ra=s((({value:o,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=o,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:o}),s&&e(l,{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 l={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&a.indexOf(o)<0&&(l[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)a.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(l[o[s]]=e[o[s]])}return l}function ma(e,a,l,o){return new(l||(l=Promise))((function(s,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(e){try{c(o.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ha=(e="b2c")=>{const[a,l]=t([]),o=i((()=>C()),[]);n((()=>{ma(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>ma(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield I();case"b2b":return yield V().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=L(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${L(o,"ocserviceConfRemark")}: ${L(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${L(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)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 l=Math.floor(e/1e3)%60,o=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${o}分钟 ${l}秒${a}`},fa=e=>1===String(e).indexOf(".")?ba(e):ya(e),ba=e=>{const a=Number(e).toFixed(0),l=(Number(e)-Number(a)).toFixed(2),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+"."+String(l).slice(2)},ya=e=>{const a=Number(e).toFixed(0),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.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:l,actived:o})=>{const s=c(null);return n((()=>{s.current&&(o?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)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},xa=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=va(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(Sa,{actived:o,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:o="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"!==o,imgHeights:"bottom"===o&&"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(l,{children:["top"===o||"bottom"===o?P(s):null,e(xa,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),wa=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,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:l,paddingLeft:o,paddingRight:s,fontsize:y,textAlign:C,fontColor:v,backGroundColor:S,className:f({"outer-shadow":k}),className1:T})})})),Ia=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=va(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},Ta=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=Y(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>(e=>{var a,l,o;(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===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(l),children:[e(Ia,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),Ba=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=va(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,l,o;(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===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(o)})},Pa=s((({defaultValue:a,type:l,borderRadius:o,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${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Ba,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Da=o.createContext(null),Va=s((()=>{const{View:a}=p(),{tip:l}=r(Da);return e(a,{className:"afterSalesApplyTip",children:l})}));const La=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=da(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>C()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!C()||!e)return;const a=b().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!C())return 0;const a=b(),l=+a.getStorageSync("safeArea"),o=+(a.getStorageSync("tabBarHeight")||0);return l+(a.getCurrentPages()[a.getCurrentPages().length-1].$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{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:o}))},Ra=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Da);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(La,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),Ma=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(Da);return a(l,{className:"afterSalesApplyFillIn",children:[a(l,{className:"reason",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款原因"})]}),e(l,{className:"choose",onClick:o,children:t?e(l,{className:"chooseResult",children:t}):a(l,{children:["请选择",e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(l,{className:"price",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款金额"})]}),e(l,{className:"allPrice",children:e(l,{className:"single",children:ua(n)})})]}),e(Ra,{popupShow:s})]})})),Aa=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Da);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(ca,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(ca,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Oa=({refundType:l,contractBillcode:o,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:o,skuCode:s});return e(h,{loading:P,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Da.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(Va,{}),e(Ma,{}),e(Aa,{}),e(m,{className:"submitBtn",onClick:B.bind(null,t,o,l,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:l,goAfterSalesDetail:o})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(ca,{style:{color:null===(s=Ya[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ya[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ya[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:Ue(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]}),a(n,{className:"count",children:["订单编号: ",l.contractBbillcode]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:ja[l.refundType][l.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:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,l);return e(t,{loading:c,children:e(o,{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:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:E,render:l=>e($a,{item:l,refreshNum:a})})})})),Fa=({dataPic:o,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 l=a.indexOf("/paas/");return-1===l?a:a.slice(l).replace(/\/+/g,"/")})(o);return e(l,{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=o.createContext(null),Ha=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(_a),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(La,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Ua=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(_a),{View:i,Input:c}=p();return a(l,{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:o,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:o,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:o}),{contractBbillcode:y,dataState:C,gmtCreate:v,ocRefundGoodsList:S,refundMoney:x,refundMeo:k,refundEx:w,refundType:I,ocRefundFileList:T,goodsReceiptMem:B,goodsReceiptPhone:P,goodsReceiptArrdess:D,packageCode:V,packageBillno:L,packageName:R}=c,{View:M,Image:A,WrapLoading:O}=p();return e(O,{loading:b,children:e(M,{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(M,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(M,{className:"left_text",children:Wa(I,C)}),e(M,{className:"right_time",children:Ze(v).format("YYYY-MM-DD HH:mm:ss")})]}),e(M,{className:"afterSalesDetailContent",children:a(M,{className:"refundDetail",children:[e(M,{className:"title",children:"退款信息"}),e(M,{className:"goodsDetail",children:null==S?void 0:S.map(((a,l)=>e(Fa,{dataPic:Ue(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"订单编号"}),e(M,{className:"right",children:y})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"退款原因"}),e(M,{className:"right",children:w})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"退款金额"}),e(M,{className:"right",children:x})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"描述说明"}),e(M,{className:"right",children:k})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"补充凭证"}),e(M,{className:"right",children:null==T?void 0:T.map(((a,l)=>e(A,{src:Ue(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"申请时间"}),e(M,{className:"right",children:Ze(v).format("YYYY-MM-DD HH:mm:ss")})]}),a(M,{className:"refund_Detail",children:[e(M,{className:"left",children:"退款编号"}),e(M,{className:"right",children:o})]}),e(l,{children:"B02"===I?a(l,{children:[C>0?a(M,{className:"merchantMsg",children:[e(M,{className:"title",children:"商家信息"}),a(M,{className:"name",children:[B," ",P]}),e(M,{className:"address",children:D})]}):"",1===C?a(M,{className:"writeMsg",children:[e(M,{className:"wlMsg",children:"物流信息"}),e(Ua,{})]}):"",C>1?a(M,{className:"writeMsg",children:[e(M,{className:"wlMsg",children:"物流信息"}),a(M,{className:"express_content",children:[e(M,{className:"name",children:"物流单号"}),e(M,{className:"code",children:L})]}),a(M,{className:"express_content",children:[e(M,{className:"name",children:"物流公司"}),e(M,{className:"code",children:R})]})]}):""]}):""})]})}),0===C?e(M,{className:"footerBtn",children:e(M,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ka=o.createContext(null),Ja=s((()=>{const{View:l,Image:o,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(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ue(N),className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:g}),a(l,{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(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Qa=s((({contractGoodsSendnum:l,afterSalesType:o=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=o,2!=d?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),Xa=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r,isSelfPickupPending:d}=l,m="string"==typeof d?"true"===d:!!d,{typeTip:h,setTypeTip:u,goodsNum:g,handleStep:N,goodsInfo:f,goApply:b,loading:y,goodsPrice:C}=G({contractBillcode:o,skuCode:s}),{View:v,WrapLoading:S}=p();return e(S,{loading:y,children:e(v,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ka.Provider,{value:{typeTip:h,setTypeTip:u,goodsNum:g,handleStep:N,goodsInfo:f,goApply:b,goodsPrice:C},children:[e(Ja,{}),e(Qa,{contractGoodsSendnum:f.contractGoodsSendnum||0,afterSalesType:m?2:t,contractBillcode:o,skuCode:s})]})})})},Za=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},el=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=F(l),c=w(),{params:r}=c;return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(Za,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>y("editAddress",{addressId:l.addressId}),children:"编辑"}),r.contractBillcode?e(n,{className:"del",onClick:()=>ma(void 0,void 0,void 0,(function*(){const e=l.provinceName+"-"+l.areaName+"-"+l.cityName+"-"+l.addressDetail;yield ea({contractBillcode:r.contractBillcode,addressPhone:l.addressPhone,addressDetail:e,addressMember:l.addressMember}),y("orderDetail",{contractBillcode:r.contractBillcode})})),children:"确认"}):e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},al=s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),ll=s((({url:l,title:o,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:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),ol=s((({refreshNum:a,btnShape:l,btnColor:o,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(al,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(el,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),sl=s((({borderColor:a,color:l,btnColor:o,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:l,backgroundColor:o},className:"addressListBtn",onClick:()=>y("addressEditor"),children:"+ 新增地址"})})})),tl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],nl=[{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:"收货人详细地址不能为空"}]}],il=s((({btnShape:a,btnColor:l,borderColor:o,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(la,{initialValues:m,footer:e(f,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:tl,onSubmit:b,fields:nl})})})),cl=s((()=>{const{View:l}=p(),o=e=>{y(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(l,{className:"myAgreementList",children:e(l,{className:"list",children:s.current.map(((s,t)=>a(l,{className:"item",onClick:o.bind(null,s.type),children:[e(l,{children:s.label}),e(l,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),rl=()=>{const{View:l}=p(),{mySettingGoBind:o,mySettingLogout:s}=H();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(ca,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},dl=s(rl),ml=({itemData:l})=>{const{View:o,Text:s}=p(),{handlerImpl:t}=U(l);return e(o,{className:"addressItem",children:a(o,{className:"upInfo",onClick:t,children:[e(o,{className:"userInfo",children:(l.addressMember||"")+" "+(l.addressPhone||"")}),e(o,{className:"addressInfo",children:a(s,{className:"address",children:[l.provinceName||""," ",l.areaName||""," ",l.cityName||""," ",l.addressDetail||""]})})]})})},hl=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,Loading:i}=p(),{list:r,loading:d,skullShow:m,onScroll:h}=q(l);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:o+"px"},children:m?e(al,{}):e(t,{className:"addressList",children:r.length?a(t,{children:[r.map(((a,l)=>e(ml,{itemData:a},a&&a.userinfoOcode||l))),d&&e(i,{}),e(t,{id:"pickup-point-list-sentinel",ref:u,style:{height:"1px"}})]}):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})),pl=s((({borderColor:a,color:l,btnColor:o,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:l,backgroundColor:o},className:"addressListBtn",onClick:()=>ma(void 0,void 0,void 0,(function*(){yield v("导入成功","none")})),children:"导入微信收件地址"})})})),ul=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{className:`container container_columns${t}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:t})=>a(n,{onClick:()=>y("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:gl}=g,Nl=s((({cell:l,color:o,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(gl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(gl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(ul,{navList:m,activeKey:r,cell:l})})]})})})})})),fl="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/search.png",bl="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/THREE_DOTS.png",yl="https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/share.svg",Cl=s((({value:l,urlPath:o="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(o),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:fl,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:l})]})})})),vl=s((({value:l,iconShow:o,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:fl,alt:"",style:{height:"16px",width:"16px",display:o?"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:l})]}),e(C,{className:["seachBtn",r?"btnBorderRadius":""].join(" "),style:{fontSize:u,backgroundColor:c,width:"20%",color:s},children:"搜索"})]})})})),Sl=s((({placeholder:l,placeholderText:o,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:fl,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 l=a.concat(g.current.value||e.detail.value);return x("history",l),l}return a})),P(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(v,{className:"btn",onClick:()=>{const e=T.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return x("history",l),l}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,l)=>e(f,{onClick:()=>P(a),className:"historyItem",children:a},l)))})]}):null]})})),xl=[{label:"无公害农产品",value:"1"},{label:"绿色食品",value:"2"},{label:"有机农产品",value:"3"},{label:"国家地理标志保护产品",value:"4"}],kl=s((({defaultValue:l=[],classCode:o="",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,D]=t(l),V=c(),{View:A,Text:O}=p();return n((()=>{R(V.current,u)||(V.current=u,M(u)?D(l):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",[]);D(a)}catch(e){D(l)}})))}),[u]),e(A,{style:{paddingTop:N,paddingBottom:b},children:e(A,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:T,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:C,paddingRight:v},children:P.map(((l,o)=>{var s,t;return a(A,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:w?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),className:["goods "+(I?"outer-shadow":"")].join(" "),children:[e(A,{className:"goods-img",style:{backgroundImage:`url(${Ue(l.dataPic)})`}}),a(A,{className:"space",children:[e(A,{className:"titleType",style:{display:S?"block":"none"},children:l.goodsName}),e(A,{className:"subTitle",children:l.brandName}),e(A,{className:"subTitle",style:{color:"#fa8c16"},children:null!==(t=null===(s=xl.find((e=>e.value===String(l.productCertType))))||void 0===s?void 0:s.label)&&void 0!==t?t:""}),a(A,{className:"price",children:[a(A,{style:{fontSize:18},children:[x?ua(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ua(l.pricesetMakeprice)})]}),e(A,{className:"anticon",style:{display:k?"block":"none"},children:e(ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)}))})})}));var wl=new class{constructor(){this.events={}}on(e,a){this.events[e]||(this.events[e]=[]),this.events[e].push(a)}emit(e,...a){const l=this.events[e];l&&l.forEach((e=>e(...a)))}off(e,a){const l=this.events[e];l&&(this.events[e]=l.filter((e=>e!==a)))}};const Il=s((({Position:o="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(),D=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===u}))),{handleCollect:V,collection:L}=J(x),[R,A]=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=>{A(e)};return wl.on("IsCollectionShow",e),()=>{wl.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:()=>{wl.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:yl,onClick:e=>{e.stopPropagation(),wl.emit("bannerImageClick","share")},style:{width:"100%",height:"100%"},alt:"分享"}):e(z,{openType:"share",onClick:e=>{e.stopPropagation()},style:{display:"flex",alignItems:"center",backgroundImage:`url(${yl})`,backgroundSize:"100% 100%",width:16,height:16,padding:0},className:"wx-share-button"})}),e(j,{onClick:V,style:{background:"rgba(0,0,0,0.5)",width:20,height:20,padding:2,borderRadius:8,display:R?"flex":"none"},children:M(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:D,type:d,autoplay:m,autoplayInterval:h,direction:u,loop:g,interval:5e3,vertical:"vertical"===u,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?$(s):null,e(xa,{isPlay:t===n,item:s,position:o,direction:u})]})})]})})),Tl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],rsSkuDomainList:n,memberCode:i=""}=Q(o,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:o};return e(Il,{selectImg:r,type:1,collectParams:m,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})};function Bl(l){const{content:o,position:s="top"}=l,[n,i]=t(!1);return a(oa,{className:"tooltip-wrap",children:[e(oa,{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(oa,{className:`tooltip-popup tooltip-${s}`,children:[o,e(oa,{className:"tooltip-arrow"})]})]})}const Pl=({shareShow:a,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{if(!C())return;return"WEB"===b().getEnv()?e(l,{children:a?e(Dl,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s}):null}):e(Vl,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s})},Dl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r,width:d,height:m}=le(o,s,t);return e(n,{className:"share",children:l?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:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Vl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Image:i,Button:c,Canvas:r}=p(),{save:d,width:m,height:h,posterImage:u,setPosterImage:g}=oe(o,s,t,l);return e(n,{style:{zIndex:l?1e3:-10,opacity:l?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}}),l&&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(""),o(!1)},children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:d,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},Ll=({skuCode:l,priceShow:o,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(l,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(l);const B=b(),P="WEB"===k.getEnv();wl.emit("IsCollectionShow",{collectionShow:s}),n((()=>{const e=e=>{console.log("兄弟组件收到点击:",e),"poster"===e&&r(!0),"share"===e&&D()};return wl.on("bannerImageClick",e),()=>{wl.off("bannerImageClick",e)}}),[]);const D=()=>{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(Pl,{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:o?"block":"none"},children:["会员价",e(f,{className:"price-value",children:ua(S.pricesetNprice)})]}),a(m,{className:"sale-price",style:{display:o?"block":"none"},children:["促销价",e(f,{className:"price-value",children:ua(S.pricesetNprice)})]}),T?e(d,{className:"page",children:e(Bl,{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,"天内"]})]})]})},Rl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=J(l),{handleShare:c}=se();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:M(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Ml=s((({priceShow:l,collectionShow:o,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:l?"block":"none"},children:ua(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Rl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ue(d.dataPic),skuCode:t})]})})),Al=s((()=>{var l;const{View:o,Text:s}=p(),t=te((e=>e.count)),n=te((e=>e.spec)),i=k.useRouter(),c=null===(l=null==i?void 0:i.params)||void 0===l?void 0:l.skuName,r=n&&n.length>0?n.join(","):c?decodeURIComponent(c).replace(/\//g,","):"";return a(s,{className:"label",children:[e(s,{className:"blod font-14 letter-spacing-1",children:"已选"})," 规格: ",e(s,{className:"blod",children:r}),e(s,{style:{margin:"0 18px 0 10px"},children:"|"}),"数量: ",e(s,{className:"blod font-14",children:t})]})})),Ol=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=ne(o),i=te((e=>e.goodsSupplynum)),c=te((e=>e.productCertType)),r=te((e=>e.goodsMinnum)),d={1:"无公害农产品",2:"绿色食品",3:"有机农产品",4:"国家地理标志保护产品"}[c]||"";return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[a(s,{className:"goods-supplynum",children:[a(s,{children:["库存:",e(t,{className:"blod",children:i})]}),d&&e(s,{children:e(t,{className:"typeBlod",children:d})})]}),a(s,{className:"info",children:[e(Al,{}),e("img",{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/back.png",className:"icon"})]}),a(s,{style:{marginTop:10,fontSize:14,color:"#999"},children:["起订量:",e(t,{className:"blod",children:r})]})]})})},Yl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=Q(l,o),{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},l)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},jl=s((({promotionBegintime:l,pbName:o,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:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[Ze(l).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:"已领完"})]})})})),zl=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},El=o=>{var{skuCode:s,scene:t}=o;da(o,["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(l,{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(jl,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(zl,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},$l=({onChange:a,readOnly:l=!1,size:o=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)}}),[s]);const d=e=>{if(!l){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,l)=>e(ca,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Gl=({item:l})=>{const{View:o,Image:s,Text:t,Button:n}=p(),i=C(),c=b();S("user");const{userInfoCode:r}=S("user")||{userInfoCode:""};return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e($l,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),a(o,{className:"pj-wrapper",children:[a(o,{className:"flex-1",children:[e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent}),l.evaluateGoodsImgs&&JSON.parse(l.evaluateGoodsImgs).length>0&&e(o,{className:"img-group",children:JSON.parse(l.evaluateGoodsImgs).map((a=>e(s,{src:Ue(a),style:{width:"100px",height:"100px"},mode:"aspectFit",className:"img"},a)))})]}),l.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)}}))})(l)},children:"删除"}):null]}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},Fl=[{label:"全部",value:"all"},{label:"好评",value:"good"},{label:"中评",value:"medium"},{label:"差评",value:"bad"}],Wl=({evaluateArr:l})=>{const{View:o}=p(),[s,n]=t("all"),i="all"===s?l:l.filter((e=>{var a;const l=(null===(a=e.evaluateScopeReList)||void 0===a?void 0:a.length)||0;return"good"===s?l>=4:"medium"===s?l>=2&&l<=3:"bad"!==s||l<=1}));return e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),e(o,{className:"evaluateFilterTabs",children:Fl.map((e=>{return a(o,{className:"evaluateFilterTabItem "+(s===e.value?"active":""),onClick:()=>n(e.value),children:[e.label," (",(t=e.value,"all"===t?l.length:l.filter((e=>{var a;const l=(null===(a=e.evaluateScopeReList)||void 0===a?void 0:a.length)||0;return"good"===t?l>=4:"medium"===t?l>=2&&l<=3:"bad"!==t||l<=1})).length),")"]},e.value);var t}))}),i.length?i.slice(0,50).map(((a,l)=>e(Gl,{item:a},l))):e(ll,{style:{margin:"50px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"暂无相关评价"})]}):e(ll,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},_l=process.env.REACT_APP_BASE_URL,Hl=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>a?a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<!--[\s\S]*-->/gi,"").replace(/src="\/paas\//gi,`src="${_l}/paas/`).replace(/<img/gi,'<img style="max-width:100%;height:auto;display:block;"'):""),[a]);return e(l,{className:"goodsDetail-info",children:e(ta,{nodes:o})})},Ul=({goodsRemark:l})=>{const{View:o}=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(o,{className:"goodsDetail-info",children:[g.length>0&&e(o,{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(((l,s)=>a(o,{style:{marginRight:25,marginLeft:10},children:[" ",e(o,{style:{color:"black",fontSize:13,fontWeight:500},children:l.propertiesName}),e(o,{style:{color:"gray",fontSize:11},children:l.propertiesValueValue||"--"})]},s)))}),r&&e(o,{style:{textAlign:"center",padding:20},children:"加载中..."})]})},ql=({tabActive:o,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(l,{children:d.map(((l,t)=>e(h,{children:a(r,{className:"tabsItem "+(o===t?"active":""),onClick:()=>s(t),children:[l.title,e(r,{className:"line"})]})},t)))})},Kl=({evaluateShow:l,evaluateImgShow:o,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(ql,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(Hl,{goodsRemark:m}):2===r?e(Wl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s}):1===r?e(Ul,{goodsRemark:m}):null})]})},Jl=({skuName:l,handleChooseSize:o,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 l=e.skuName||"";return!!h(l,a)&&m.every(((e,a)=>a===n||!(e&&!h(l,e))))}));var a}));return a(c,{className:"sizeArr",children:[e(r,{className:"title",children:l}),e(c,{className:"sizeArrItemWrap",children:u.map(((a,l)=>{const s=(e=>m[n]===e)(a.specValueValue);return e(c,{className:f({sizeItem:!0,active:s,offShelf:!s&&d}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)}))})]})},{Stepper:Ql}=g,Xl=({count:a,handleStep:l,goodsNum:o,goodsMinnum:s})=>{const{View:t}=p(),n=s||1,i=o||999;return e(t,{className:"numStepWrap",children:e(Ql,{value:a,max:i,onChange:e=>{if(null===e||isNaN(e))return;const o=Math.floor(e);if(o===a+1)return a>=i?void v("超库存","none"):void l("plus");if(o===a-1)return a<=n?void v(`起购数为${n}`,"none"):void l("minus");if(o<n)v(`起购数为${n}`,"none");else if(o>i)v("超库存","none");else if(o!==a){const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:o}))}},onBlur:e=>{const a=e.target.value;if(!a)return;const l=parseInt(a,10);if(!isNaN(l))if(l>i){v("超库存","none");const e=X.getState();X.setState(Object.assign(Object.assign({},e),{count:i}))}else if(l<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"}})})},Zl=s((({handleStep:a,goodsNum:l,goodsMinnum:o})=>{const{View:s}=p(),t=te((e=>e.count));return e(s,{className:"countWrap",children:e(Xl,{count:t,handleStep:a,goodsNum:l,goodsMinnum:o})})})),eo=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n,handleStep:i,rsSkuDomainList:c})=>{const{Image:r,View:d}=p(),{skuList:m}=o,h=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ua(n.pricesetNprice);return a(l,{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(Zl,{handleStep:i,goodsNum:n.goodsSupplynum,goodsMinnum:n.goodsMinnum})]})]}),m.map(((a,l)=>e(Jl,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption,rsSkuDomainList:c},l)))]})},ao=({cashImpl:o,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(l,{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:o,children:"立即购买"})]})})},lo=s((({dispatchPageStore:l,goodsCode:o,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(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(La,{children:e(i,{children:e(n,{className:"content",children:e(eo,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r,handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),rsSkuDomainList:t})})})}),e(ao,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),oo=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(lo,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},so=s((({serverShow:o,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:D}=ee(B);ha(b);const{addCardPopup:V,buyOpenPopup:L}=ne(N),[R,M]=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 l=e.model.toLowerCase();(l.includes("iphone x")||l.includes("iphone 11")||l.includes("iphone 12")||l.includes("iphone 13")||l.includes("iphone 14")||l.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();M(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=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 l=document.createElement("script");l.src=e,l.type="text/javascript",l.async=!0,l.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()}}))},l.onerror=()=>{console.error("七鱼客服脚本加载失败")},document.body.appendChild(l)}()},style:{display:o?"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(l,{children:["26"===P||!1===i?null:e(v,{className:"btn addCart",onClick:V,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"===D.goodsPro?"预售抢购":"立即购买")})]})})]})})),to=o=>{var{$_dataSource:s={},dispatchPageStore:t=A,skuCode:n,scene:i}=o,c=da(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=Q(n,i),h=he(r,m),{popupVisible:p}=s;return a(l,{children:[e(so,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(oo,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},no=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],io=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(no);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,o)=>{i(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(ca,{style:{color:n===m&&"asc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(ca,{style:{color:n===m&&"asc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},co=s((({classtreeCode:l="",searchParam:o="",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:D}=pe(l,o,I,n),V=i((()=>f("textBox",{btm:!r&&!d})),[r,d]),L=i((()=>f("name",{boxNone:!c})),[c]),R=i((()=>f("middle_margin",{boxNone:!m})),[m]),M=i((()=>f("goodDetail",{boxNone:!r&&!d&&!h})),[r,d,h]),A=i((()=>f({detailContent:!(L.includes("boxNone")&&R.includes("boxNone")&&M.includes("boxNone"))})),[L,R,M]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(io,{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:D.map((l=>a(C,{onClick:()=>Xe(y,{skuCode:l.skuCode,skuName:l.skuName}),className:"listItem",style:{borderRadius:u?"8px":"",boxShadow:g?"4px 4px 4px #969292":""},children:[e(x,{src:Ue(l.dataPic),className:"img"}),a(C,{className:A,children:[e(S,{className:L,children:l.goodsName}),a(C,{className:R,children:["已售:",l.goodsNum]}),a(C,{className:M,children:[a(C,{className:V,children:[e(S,{className:"price",style:{display:r?"block":"none"},children:ua(l.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:d?"block":"none"},children:ua(l.pricesetMakeprice)})]}),e(C,{style:{display:h?"block":"none"},children:e(w,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(v,{}):null]})})})]})})),ro=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=ue(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},mo=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),ho=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,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(mo,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},po=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),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)})]})]})})})),uo=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{let a="";switch(o){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!==o?e(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>y("goodDetail",{skuCode:s})})]})})),go=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),No=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{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(ho,{promotionCode:c,onChange:e=>{m(!1),s(n,Ne(e))},promotion:o||[],visible:d,setVisible:m})})]})},fo=s((l=>{var{item:o}=l,s=da(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(go,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(uo,{dataState:o.dataState,dataPic:Ue(o.dataPic),skuCode:o.skuCode}),e(po,Object.assign({},o,s))]})})),bo=o=>{var{shoppingGoodsList:s=[]}=o,t=da(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(fo,Object.assign({},t,{item:l})),l.pmPromotionList?e(No,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},yo=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>M(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Xe(o,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[o]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:l}),n]})},Co=({disNextMsg:l,promotionName:o,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:o}),l&&e(yo,{link:t,disNextMsg:l})]})},vo=({refreshNum:o,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(o,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(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Co,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(bo,{cartIsEditor:g,promotionCode:o,handleStep:y,select:m,updatePm:C,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},So=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,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}=l,{toOrderImpl:b,deleteCart:y,clearAll:C,selectAll:v,ids:S,cartDetail:x}=fe(N,u,o),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,")"]})]})]})},xo=({address:a})=>e(l,{children:M(a)?e(wo,{}):e(ko,{address:a})}),ko=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[a(o,{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(o,{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]})]})},wo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Io=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",goodsBeanStr:t="",longContractgoodsBeanStr:n=""})=>{const{View:i}=p(),c=be(a,o,l,s,t,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(xo,{address:c})})},To=({address:a})=>e(l,{children:M(a)?e(Po,{}):e(Bo,{address:a})}),Bo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[a(o,{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(o,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]})]})},Po=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Do=({refreshNum:a})=>{const{View:l}=p(),o=ye(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>y("pickupPointList"),children:e(To,{address:o})})},Vo=({tabActive:o,setTabActive:s,tabs:t})=>{const{Text:n}=p();return e(l,{children:t.map(((l,t)=>e(h,{children:a(n,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(n,{className:"line"})]})},l.id)))})},Lo=({refreshNum:l,skuId:o="",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(Vo,{tabActive:g,setTabActive:N,tabs:f})})}),e(d,{className:"content",children:"0"===g?e(Io,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r}):e(Do,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Ro=s((({couponStart:l,pbName:o,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:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Mo=s((({couponStart:l,pbName:o,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:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Ao=({refreshNum:o,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:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:m}),{coupon:w,visible:I,couponValue:T=[],setVisible:B,selectCoupon:P,onChange:D,onCreditChange:V,confirmImpl:L,resetImpl:R,contractPmode:M,onPayChange:A,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(l,{children:[k.some((e=>"06"===e.goodsType||"26"===e.goodsType))?null:a(l,{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:bl,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:bl,alt:"",className:"icon"})]}),e(u,{value:"xiangyou1",style:{color:"#999999",textAlign:"right"}})]})]}),z.urechargeId&&"0"===M&&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:bl,alt:"",className:"icon"})]})]}),"1"===M&&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:M||"",onChange:A,children:(null==O?void 0:O.length)>0&&O.map(((l,o)=>a(h,{style:{marginBottom:15},className:"payList-radio-item",children:[e(S,{checked:l.ptfpmodeType===M,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"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:V,children:(null==j?void 0:j.length)>0&&j.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.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:D,children:(null==w?void 0:w.length)>0&&w.map((e=>d(Ro,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:D,children:w.map(((e,a)=>d(Mo,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:"确认"})]})]})})]})},Oo=()=>{const{View:l}=p(),o=ke(),s="235990605097"===(X.getState().memberCode||"")||"1"===o.contractPmode?"自提":"快递";return e(l,{className:"info placeOrder-blcWrap",children:a(l,{className:"express placeOrder-blcItem",style:{width:"100%"},children:[e(l,{className:"label",children:"配送方式"}),e(l,{className:"value",children:s})]})})},Yo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=Se({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Fa,Object.assign({},a),o)))})))})},jo=({refreshNum:o,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:o,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:D}=we(b),V=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(l,{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":V})]})]})})},zo=({color:l,buttonColor:o,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:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},Eo=s((({contractBillcode:l,contractBbillcode:o,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:l,contractBbillcode:o,memberCode:u}),P=i((()=>(console.log("%cNODE_ENV","color: red; font-weight: bold;",process.env.NODE_ENV),g||Object.is(u,"235990625518")?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((l=>a(N,{className:"paymentItem",children:[e(x,{className:"paymentIcon",style:{width:38,height:38},src:"1"===l.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:l.fchannelName}),"1"===l.ptfchannelAmt?a(N,{style:{fontSize:12,color:"#999",marginLeft:"auto",marginRight:10},children:["可用余额:¥",l.faccountAmount]}):null,e(b,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]})})]},l.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:"立即支付"})})})]})})),$o=({dataObj:l})=>{const{View:o,Text:s}=p();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ua(l.dataBmoney)})]})]})},Go=s((({code:l,goodsBeanStr:o,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(l||(S("contractBillcode")||{}).contractBillcode,o);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($o,{dataObj:k.dataObj}),a(b,{className:"btnGroup",style:{marginTop:20},children:[e(b,{className:"btn black",onClick:()=>o?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:Fo}=g,Wo=a=>{var{dataState:o,afterSaleIngFlag:s}=a,t=da(a,["dataState","afterSaleIngFlag"]);return!s||2!==o&&3!==o?e(l,{children:["-1"].includes(o+"")?null:e(_o,Object.assign({dataState:o},t))}):null},_o=a=>{var{dataState:l,contractAppraise:o,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!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:m,handlerImpl:h}=Pe(Object.assign({dataState:l,contractAppraise:o,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,l)=>e(Fo,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:l<m.length-1,black:l===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},l)))})},Ho=({contractPaydate:o,init:s,countdownCancel:i,contractId:c})=>{const{View:r,Text:d,SmoothView:m}=p(),{resultTime:h}=((e,a,l,o)=>{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?l(o).then((()=>{k.eventCenter.trigger("switchOrderTab")})):t>1e3&&i(Na(t,""))}),1e3);return()=>{clearTimeout(a)}}),[s]),{resultTime:s}})(o,0,i,c);return e(l,{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 Uo({memberName:l,contractBillcode:o,dataBmoney:s,dataBnum:t,goodsList:n,dataState:i,contractId:c,init:r,contractAppraise:d,borderRadius:m,orderSpacing:h,contractPaydate:u,contractType:g,countdownCancel:N,afterSaleIngFlag:f}){const{View:b,SmoothView:C,Image:v}=p(),S=!f||2!==i&&3!==i?De(i,d):"售后中";return a(b,{className:"orderListItem",style:{borderRadius:m?8:"",marginTop:h,marginBottom:h},children:[a(b,{children:[a(b,{className:"topInfo",children:[a(b,{className:"shop-info-wrap",style:{display:"flex",alignItems:"center"},children:[e(v,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/icon/store.png",style:{width:22,height:22,display:"inherit"}}),e(C,{className:"sku shop-name",children:l})]}),e(b,{className:"orderNo"}),e(b,{className:"status",style:(e=>{switch(e){case"待确认":return{color:"#97dcde"};case"待付款":return{color:"#FF2D1E"};case"待发货":case"售后中":return{color:"#FA8752"};case"待收货":return{color:"#FFC82C"};case"已完成":case"待评价":case"已评价":return{color:"#34C0BC"};case"已取消":return{color:"#999999"}}})(S),children:S})]}),e(b,{className:"goodsItemWrap",onClick:()=>y("orderDetail",{contractBillcode:o}),children:n.map((a=>e(Fa,Object.assign({},a,{dataState:i}),a.contractGoodsId)))}),i&&1===i&&e(Ho,{contractPaydate:u,init:r,countdownCancel:N,contractId:c})]}),a(b,{className:"allInfo",children:[a(b,{className:"totalNum",children:["共",t,"件商品"]}),a(b,{className:"totalPrice",children:["合计 ",ua(s)]})]}),e(Wo,{init:r,contractType:g,contractId:c,contractBillcode:o,dataState:i,contractAppraise:d,dataBmoney:s,afterSaleIngFlag:f})]})}const qo=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const Ko=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:i}){const{View:r,Loading:m}=p(),{onScroll:h,data:u,loading:g,init:N,countdownCancel:f,initializing:C}=Ve(l,o,i),v=c(null),S=b(),x="WEB"===k.getEnv();return n((()=>{if(x){const e=v.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(S);return e.relativeToViewport({bottom:100}).observe("#order-list-sentinel",(e=>{e.intersectionRatio>0&&!g&&h()})),()=>e.disconnect()}}),[g,h,S,x]),e(r,{className:"orderListItemWrap",children:C?e(r,{children:g?e(m,{}):null}):u.length>0?a(r,{children:[u.map(((e,a)=>d(Uo,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:v,style:{height:"1px"}})]}):a(r,{className:"nodata_img",children:[e(qo,{}),e(r,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})),Jo=s((({tabs:a,activeIndex:l,activeColor:o="#000",onChange:s})=>{const{View:t}=p(),n=Number(l);return e(t,{className:"qj-tabs",id:"qj-tabs-id",children:a.map(((a,l)=>{const i=f({"actived-item":n===l,"default-item":!0});return e(t,{onClick:()=>s(a,l),className:i,style:{borderColor:n===l?o:""},children:a.name},a.code||l)}))})})),Qo=process.env.TARO_ENV;let Xo=Le;if(console.log("platform",Qo),"h5"==Qo){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(Xo=[{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")&&(Xo=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const Zo=s((({refreshNum:l=0,indexId:o=0,borderRadius:s=!1,orderSpacing:i=12,contractType:c=""})=>{const{View:r}=p(),[d,m]=t(o),[h,u]=t(Xo[o]||Xo[0]);n((()=>{const e=()=>{const e=Xo.findIndex((e=>"-1"===e.code));m(e),u(Xo[e])};return k.eventCenter.on("switchOrderTab",e),()=>{k.eventCenter.off("switchOrderTab",e)}}),[]),n((()=>{const e=o;m(e),u(Xo[e]||Xo[0])}),[o]);return a(r,{className:"order-container",children:[e(Jo,{tabs:Xo,activeIndex:d,onChange:(e,a)=>{m(a),u(e)}}),e(r,{className:"orderList",children:e(Ko,{contractType:c,item:h,orderSpacing:i,refreshNum:l,borderRadius:s},h.code)})]},o)})),{Button:es}=g,as=s((({copyContent:a=""})=>{const[l,o]=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 l=document.execCommand("copy");if(document.body.removeChild(a),!l)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(es,{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,l)=>{n.setClipboardData({data:a,success:e,fail:l})})),r("复制成功","success"),o(!0)):(yield c(a),r("复制成功","success"),o(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:l?"已复制":"复制"})})),ls=s((({contractBillcode:o,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,pickupDate:k,pickupRemark:w}=Re(o||""),I={color:"#ffffff",marginRight:"10px",fontSize:"20px"},T=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 l="1"===b.contractPumode,o="待收货"===De(b.dataState);return a(g,l&&o?{className:"orderDetailTopTitleContent",children:[e(g,{className:"icon_text",children:e(N,{className:"title",children:De(b.dataState,b.contractAppraise)})}),e(g,{className:"icon_text",children:a(N,{className:"title",children:["请于",(s=k,Ze(s).format("YYYY-MM-DD"))," 17:00前提取"]})}),e(g,{className:"icon_text",children:e(N,{className:"qrTitle",children:b.contractDelcode})}),e(g,{className:"icon_text",children:e(N,{className:"title",children:w})})]}:{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===De(b.dataState)&&e(ca,{value:"daishouhuo",style:I}),e(N,{className:"title",children:De(b.dataState,b.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:T(b.gmtCreate)})]});var s})()}),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 infoNew",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((o=>e(l,{children:a("view",{onClick:()=>{y("goodDetail",{skuCode:o.skuCode})},children:[e(Fa,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:e=>{e.stopPropagation(),e.preventDefault(),y(u,{skuCode:o.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();const a="1"===b.contractPumode,l="待收货"===De(b.dataState),s=a&&l;console.log(s);const t=s?{contractBillcode:o.contractBillcode}:o;C.bind(null,t,b.dataState,s)()},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(l,{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(as,{copyContent:b.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:T(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(Wo,{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})})]})})]})})),os=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=L(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=L(o,"packageList.length",l.count),r=L(o,"packageList[0].expressName",l.expressName),d=L(o,"packageList[0].packageBillno",l.packageBillno),m=L(s,"state",l.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]})]})]})},ss=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=L(o,"message",l.message),n=L(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.map(((l,o)=>a(s,{className:"step",children:[e(s,{className:"time",children:l.time}),e(s,{children:l.context})]},o))):e(s,{className:"noInfo",children:t})})},ts=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Me(l);return a(s,{className:"expressInfo",children:[e(os,{info:t,detail:n,stateObj:i,defaultValue:o}),e(ss,{detail:n,defaultValue:o})]})})),ns=s((({avatarStyle:l,paddingTop:o,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:`${o}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:l?"50%":"2px"}})]})]})})),is=s((({title:l,columnList:o})=>{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 D();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 l;if(4===e.id)return void y("afterSalesList");const o=null!==(l=g[a])&&void 0!==l?l:a+1;y("orderlist",{indexId:o})};return console.log(333,o,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:l}),e(s,{className:"more",onClick:()=>y("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:f.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(c,Object.assign({},d[l.code]>0?{content:d[l.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),cs=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>y(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ue(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),rs=({starColor:l="#FF0934",starSize:o="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":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,l)=>e(i,{src:a.imgUrl,className:"img"},l)))})]})},ds=[{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"}]}],ms=s((()=>{const[o,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(l,{children:[e(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:ds.map(((a,l)=>e(rs,{itemData:a},l)))})]})})),hs=s((({code:l,borderRadius:o,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}=Ae(l),{Button:x}=g,{View:k,Image:w,TextArea:I,Textarea:T}=p(),B=T||I,P="WEAPP"===b().getEnv(),D="undefined"!=typeof window,[V,L]=t(0),R=c("宝贝满足你吗?分享一下它吧"),M=e=>{L(e);if(S(e).length>=3)if(P){b().showToast({title:"最多上传3张图片",icon:"none"})}else D&&alert("最多上传3张图片");else(()=>{if(P){const e=b(),a=3-S(V).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(V,e)}))}})}else if(D){const e=3-S(V).length;if(e<=0)return void alert("最多上传3张图片");const a=document.createElement("input");a.type="file",a.accept="image/*",a.onchange=a=>{const l=a.target.files;l&&l.length>0&&Array.from(l).slice(0,e).forEach((e=>{const a=URL.createObjectURL(e);C(V,a)}))},a.click()}})()};return a(k,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[u.map(((l,s)=>a(h,{children:[a(k,{className:"topInfo",children:[a(k,{className:"lPart",children:[e(w,{src:Ue(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(k,{className:"goodsInfo",children:[e(k,{className:"goodsName",children:l.goodsName}),e(k,{className:"goodsSize",children:l.skuName})]})]}),e(k,{className:"rPart",children:a(k,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(k,{className:"rate",children:[e(k,{className:"title",children:"商品评价"}),e($l,{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:()=>M(s),children:[e(ca,{value:"shangchuanpingzheng",style:{fontSize:24,color:"#9e9e9e"}}),e(k,{className:"upload-text",children:"上传图片"})]}),S(s).map(((l,o)=>a(k,{className:"img-item",children:[e(w,{className:"preview-img",src:l,onClick:()=>(e=>{if(P){const a=b(),l=S(V);a.previewImage({current:e,urls:l})}else D&&window.open(e,"_blank")})(l)}),e(k,{className:"delete-btn",onClick:()=>v(s,o),children:"×"})]},o)))]})]})]},s))),e(x,{style:{color:"#fff",backgroundColor:"#34c0bc",borderRadius:1===r?"20px":"0px"},className:"btn",onClick:f,children:"提交"})]})})),ps=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Oe(l),{Button:N}=g,{View:f,Image:b,Text:y}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(b,{src:Ue(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e($l,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(y,{children:l.evaluateGoodsContent||""})})}),l.evaluateGoodsImgs&&e(f,{className:"evaluate-imgs",children:(()=>{let a=[];const s=l.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,l)=>e(b,{className:"evaluate-img",src:Ue(a),style:{borderRadius:1===o?"10px":"0px"}},l)))})()})]},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]})})),us=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p(),r=s.includes(l.collectCode);return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:r}):null,a(t,{className:"rPart",onClick:()=>{[2,3].includes(l.dataState)||y("goodDetail",{skuCode:l.collectOpcode})},children:[a(t,{className:"imgPart",children:[e(n,{src:Ue(l.collectOppic),className:"img"}),e(t,{className:[2,3].includes(l.dataState)?"tag":"",children:[2,3].includes(l.dataState)?"商品失效":""})]}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},gs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,collectCodeStr:r,setCollectCodeStr:d,checked:m,setChecked:h,handleSelectAll:u,selectAllChecked:g,setSelectAllChecked:N}=Ye(),{View:f,ScrollView:b,SmoothCheckbox:y,Checkbox:C,Button:v,Image:S}=p();return e(f,{className:"collectList",children:0===l.length?e(f,{className:"noDate",children:e(S,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(f,{className:"hasDate",children:[e(f,{className:"topBar",children:e(f,{className:"edit",onClick:()=>s(!o),children:o?"完成":"编辑"})}),e(La,{id:"topBar",children:a(b,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(y,{value:m,onChange:n,style:{height:"100%"},children:l.map((a=>e(us,{item:a,edit:o,checked:m},a.collectId)))}),o?a(f,{className:"handleBar",children:[e(f,{className:"checkAll",style:{width:"130px"},children:e(C,{value:"1",checked:g,onChange:()=>{if(!g){const e=l.map((e=>e.collectCode));console.log("allCodes",e),d(e.toString()),h(e),N(!0)}else d(""),h([]),N(!1)},children:"全选"})}),e(v,{className:"btn",onClick:i,children:"删除"})]}):null]})})]})})})),Ns=({item:l,edit:o,checked:s})=>{var t,n;const{View:i,Image:c,Checkbox:r,SmoothView:d}=p();return a(i,{className:"collectItem",children:[o?e(r,{className:"lPart",value:l.collectCode,checked:s}):null,a(i,{className:"rPart",onClick:()=>y("merchantShop",{memberCode:l.collectOpcode}),children:[e(c,{src:Ue(null===(t=l.shopdeInfo)||void 0===t?void 0:t.shopdeLogo),className:"img"}),a(i,{className:"info",children:[e(d,{className:"title",children:l.collectOpcont}),e(d,{className:"scope",children:null===(n=l.shopdeInfo)||void 0===n?void 0:n.shopdeScope})]})]})]})},fs=s((()=>{const{collectionList:l,edit:o,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===l.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(!o),children:o?"完成":"编辑"})}),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:l.map(((a,l)=>e(Ns,{item:a,edit:o,checked:r},a.collectId||l)))}),o?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]})})]})})})),bs=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(n,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ue(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},ys=({item:o,edit:s})=>{const{View:t}=p();return a(t,{className:"footPrint",children:[e(l,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(bs,{footprintItem:a,edit:s},l)))]})},Cs=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=O(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(ys,{item:a,edit:o},l)))})},vs=s((()=>{const{View:l,ScrollView:o,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(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(La,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{value:g,onChange:d,children:e(Cs,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Ss=s((({buttonText:l,buttonBackground:o,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(),l=Ze(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.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,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:S.map(((l,s)=>a(c,{className:`calendarDay ${l.isCurrentMonth?"":"otherMonth"} ${l.isToday?"today":""} ${l.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:l.isToday?{color:o}:{},children:l.date.date()}),l.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:o,opacity:v?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":v?"已签到":l})]})]})})})),xs=s((({title:l,themeColor:o="#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:l}),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(((l,s)=>{const t=Ze(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.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((l=>e(c,{className:"monthItem "+(y===l?"active":""),onClick:()=>(e=>{C(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:y===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),ks=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],ws=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:ks.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),Is=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,promotionEndtime:c}=l;return a(o,{className:"promotionItem",children:[a(o,{className:"lPart",children:[e(o,{className:"round"}),e(o,{className:"tagBg",children:a(o,{className:"txt",children:["官方",s]})}),e(o,{className:"rule",children:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Ts=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[n,i]=t(ks[0].val),{list:c,getData:r}=$e({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(ws,{activeColor:l,setParams:i,params:n}),e(d,{children:e(La,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Is,{data:a},l)))})})})]})}));s((()=>{const{View:a,Skeleton:o}=p(),s=c(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Bs=()=>{const{View:a,Image:l}=p();return e(a,{className:"noData",children:e(l,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},Ps=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Ze(o.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",Ze(o.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===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Bs,{})})},Ds=s((({backgroundColor:l,color:o,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(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(La,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ps,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),Vs=s((({defaultValue:l,coupons:o,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:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=L(l,"pbName"),h=L(l,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),g=L(l,"promotionName"),b=Ze(L(l,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(l,"promotionEndtime")).format("YYYY-MM-DD"),C=L(l,"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===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:C,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ls=s((({defaultValue:l,coupons:o,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:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((l,o)=>{const m=L(l,"pbName"),h=L(l,"pmPromotionDiscountList"),p=L(h.at(-1),"discName"),u=L(l,"promotionName"),N=Ze(L(l,"promotionBegintime")).format("YYYY-MM-DD"),y=Ze(L(l,"promotionEndtime")).format("YYYY-MM-DD"),C=L(l,"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===l.availabledate||b.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:C,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Rs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=da(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(Vs,Object.assign({coupons:s},t)):null,2===o?e(Ls,Object.assign({coupons:s},t)):null]})})),Ms=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=We(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},As=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=_e(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,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:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=He(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,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{il as AddressDetail,ol as AddressList,sl as AddressListBtn,Oa as AfterSalesApply,qa as AfterSalesDetail,Ga as AfterSalesList,Xa as AfterSalesType,Ts as AllPromotionList,Os as ArticleDetail,vo as CartList,So as CartOperate,ro as CartTop,Ta as ClassifyNav,gs as CollectionList,fs as CollectionShopList,Ds as CouponList,Pa as Cube,hs as EvaluateDetail,ms as EvaluateList,ps as EvaluateViewDetail,ts as ExpressInfo,vs as FootPrint,Rs as GetCouponOne,kl as Goods,Nl as GoodsClassify,Kl as GoodsDetailAndEvaluate,Tl as GoodsDetailBanner,El as GoodsDetailCoupon,to as GoodsDetailHandleBar,Ll as GoodsDetailInfo,Ml as GoodsDetailInfoOne,Yl as GoodsDetailPromotion,Ol as GoodsDetailSku,co as GoodsList,Ss as MemberSignin,ns as MineData,cs as MineFunction,is as MineOrderEntry,cl as MyAgreementList,dl as MySetting,rl as MySettingJsx,Ms as Notice,As as NoticeDetail,ls as OrderDetail,Zo as OrderList,Eo as PaymentMode,hl as PickupPointList,Lo as PlaceOrderAddressTabs,Ao as PlaceOrderCoupon,Oo as PlaceOrderDelivery,Yo as PlaceOrderGood,jo as PlaceOrderInfo,zo as PlaceOrderOperate,Go as PlaceOrderResult,ca as QjMobileIcon,Cl as Search,Sl as SearchPage,vl as SearchStyleTwo,ia as Service,xs as SigninDetail,wa as Slider,ra as Title,fa as ToPrice,pl as WechatAddressBtn,pa as addressIdConst,ua as fixPrice,ga as fixPrice1,Na as formatTime,ha as useService};
|