s-material-react 1.9.993 → 1.9.994
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.
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
background-color: #f6f6f6;
|
|
3
3
|
.couponTab {
|
|
4
4
|
display: grid;
|
|
5
|
-
grid-template-columns: repeat(
|
|
5
|
+
grid-template-columns: repeat(4, 1fr);
|
|
6
6
|
padding-bottom: 7px;
|
|
7
7
|
padding-top: 30px;
|
|
8
8
|
background-color: #ffffff;
|
|
@@ -152,18 +152,23 @@
|
|
|
152
152
|
|
|
153
153
|
.price {
|
|
154
154
|
border-right: 1px dashed #fff;
|
|
155
|
+
display: flex;
|
|
156
|
+
flex-direction: column;
|
|
157
|
+
justify-content: center;
|
|
155
158
|
text-align: center;
|
|
156
|
-
line-height: 120px;
|
|
157
159
|
|
|
158
160
|
.symbol {
|
|
159
161
|
font-size: 23px;
|
|
160
162
|
color: #fff;
|
|
161
163
|
}
|
|
162
164
|
|
|
165
|
+
.title {
|
|
166
|
+
color: #fff;
|
|
167
|
+
}
|
|
168
|
+
|
|
163
169
|
.num {
|
|
164
170
|
font-size: 18px;
|
|
165
171
|
color: #fff;
|
|
166
|
-
text-align: left;
|
|
167
172
|
}
|
|
168
173
|
}
|
|
169
174
|
|
|
@@ -179,14 +184,14 @@
|
|
|
179
184
|
|
|
180
185
|
.info-top {
|
|
181
186
|
display: flex;
|
|
187
|
+
align-items: center;
|
|
182
188
|
.disc-start {
|
|
183
|
-
margin-left: 10px;
|
|
184
189
|
color: #ffffff;
|
|
190
|
+
font-size: 12px;
|
|
185
191
|
}
|
|
186
192
|
}
|
|
187
193
|
|
|
188
194
|
.title {
|
|
189
|
-
margin-bottom: 4px;
|
|
190
195
|
font-size: 16px;
|
|
191
196
|
color: #fff;
|
|
192
197
|
line-height: 22px;
|
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 i,useMemo as n,useRef as c,useContext as r,createContext as d,createElement 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,getEnv as C,navigatorHandler as y,taroMessage as w,getStorage as x,navigatorBackImpl as k,setStorage as S}from"@brushes/utils";import{queryOcsconfigList as v,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as T,isEqual as D,isEmpty as V,noop as L,groupBy as P}from"lodash-es";import{useCube as R,useGoTop as M,useAfterSalesApply as O,useAfterSalesList as z,afterSalesTabConfig as F,useAfterSalesDetail as W,useAfterSalesChooseType as j,useAddressItem as G,useAddressList as E,useEditAddress as Y,useMySetting as H,usePickupPointItem as U,usePickupPointList as $,useGoodsClassify as K,useGoods as Q,useGoodDetail as q,goodStore as Z,useBanner as X,useGoodCollection as J,useGoodSpecAndPrice as _,useGoodFootprint as ee,useCreatePoster as ae,useGoodsShare as le,useGoodSkuStore as oe,popupImplement as se,usePromotion as te,useAddCoupon as ie,useCoupon as ne,useEvaluate as ce,useAddShopping as re,useGoodSku as de,useGoodsList as me,useCartTop as he,useCartListNext as pe,getRadioValue as ue,useCartOperate as ge,useOrderAddress as Ne,useOrderPickupAddress as fe,userAddressData as be,useOrderGood as Ce,useOrderCoupon as ye,useOrderInfo as we,useOrderPay as xe,useOrderResult as ke,useOrderResultResult as Se,useOrderOperate as ve,orderStatusImpl as Ie,useOrderList as Be,orderStatusList as Ae,useOrderDetail as Te,useExpressInfo as De,useEvaluateDetail as Ve,useEvaluateViewDetail as Le,useCollectionList as Pe,useFootprint as Re,useMemberSignin as Me,useSigninDetail as Oe,useMarketingPromotion as ze,useCouponList as Fe,useAllCoupon as We,useNotice as je,useNoticeDetail as Ge,useArticleDetail as Ee}from"qj-b2c-store";import{fullPath as Ye,checkMobile as He,ProvinceComponent as Ue,CityComponent as $e,AreaComponent as Ke,navigatorLink as Qe}from"@brushes/shared-utils";import qe from"dayjs";import{DynamicForm as Ze}from"@brushes/mobile-form";const Xe=s((({width:a,height:l,top:o,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:n,top:o,left:i,right:s,bottom:t},className:"components-service"})})),Je=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=p();return e(i,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},_e=s((({value:l,shared:o,textIndent:s,fontSize:t,textAlign:i,color:n,backgroundColor:c,fontWeight:r,textDecoration:d,fontStyle:m,paddingTop:h,paddingLeft:u,paddingRight:g,paddingBottom:N})=>{const{View:f,IconMobile:C}=p(),y=()=>{console.log(107,window.location.href);const e=b();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(f,{className:"components-title",style:{paddingTop:h,paddingBottom:N},children:[e(f,{style:{fontSize:t,textAlign:i,color:n,backgroundColor:c,fontWeight:r,textDecoration:d,fontStyle:m,paddingLeft:u,paddingRight:g,textIndent:s},children:l}),o&&e(f,{onClick:e=>{e.stopPropagation(),y()},children:e(C,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),ea=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:n,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${i}px`,color:c},children:o})]})},aa=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:c}=p();return e(c,{style:{paddingTop:i,paddingBottom:n},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function la(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 oa(e,a,l,o){return new(l||(l=Promise))((function(s,t){function i(e){try{c(o.next(e))}catch(e){t(e)}}function n(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(i,n)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const sa=(e="b2c")=>{const[a,l]=t([]),o=n((()=>C()),[]);i((()=>{oa(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>oa(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield v();case"b2b":return yield A().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=T(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${T(o,"ocserviceConfRemark")}: ${T(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${T(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;b().showActionSheet({itemList:a})}}},ta={label:""},ia=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",na=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ca=(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}`},ra=e=>1===String(e).indexOf(".")?da(e):ma(e),da=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)},ma=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"},ha=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const pa=(e="")=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ha+e:e?ha+"/paas/shop/"+e:e),[e]),ua=({src:a,style:l,actived:o})=>{const s=c(null);return i((()=>{o?s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current.controls=!0})):(s.current.pause(),s.current.currentTime=0,s.current.controls=!1)}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},ga=s((({item:a,isPlay:o,position:s,direction:t})=>{var i,n;const{Image:c,View:r}=p(),d=pa(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(ua,{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===(i=a.link)||void 0===i?void 0:i.value,null===(n=a.link)||void 0===n?void 0:n.params)})})})),Na=s((({Position:o="none",className:s="",className1:t="",defaultValue:i=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b,selectImg:C,imgHeight:y,fontsize:w=16,textAlign:x="center",fontColor:k="#000000",backGroundColor:S="#ffffff"})=>{const v=n((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),A=R(i,C||[]),T=a=>e(B,{className:t,style:{fontSize:w,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:k,backgroundColor:S},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b},children:e(I,{imgHeight:y,data:A,className:v,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(l,{children:["top"===o||"bottom"===o?T(s):null,e(ga,{isPlay:t===i,item:s,position:o,direction:m})]})})})})),fa=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:b=0,fontsize:C=16,textAlign:y="center",fontColor:w="#000000",backGroundColor:x="#ffffff",otherStyles:k=[],ImgShadow:S=!1,Position:v="top"})=>{const{View:I}=p(),B=n((()=>f("silder-title",{"silder-tops1":"top"===v&&"horizontal"===d,"silder-bottoms":"bottom"===v&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===v,"silder-tops":"vertical"===d&&"top"===v},...k)),[k,v]);return e(I,{style:{padding:`${N}px ${b}px`},children:e(Na,{Position:v,defaultValue:t,type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:C,textAlign:y,fontColor:w,backGroundColor:x,className:f({"outer-shadow":S}),className1:B})})})),ba=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:i},children:e("video",{className:"components-video",src:a,poster:l,autoPlay:o,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:c}})})})),Ca=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=pa(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},ya=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=p(),r=R(l,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:r.map(((l,s)=>a(n,{className:"classifyNavItem",onClick:()=>{var e,a;return y(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(Ca,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),wa=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=pa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},xa=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=R(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,l;return y(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(wa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},l)))})},ka=s(xa),Sa=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),b=R(a,l),C=n((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:b.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return y(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:C,style:{fontSize:c,color:r},children:a.title})},l)))})})),va=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=p(),m=pa(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return y(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ia=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),b=R(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:b.map(((a,l)=>e(va,{layout:u,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Ba=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=n((()=>C()),[]),{View:i}=p(),{goTop:c}=M();return e(i,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(Je,{style:{display:"inline-block",color:o,fontSize:s,backgroundColor:l,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Aa=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),i=pa(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>{var e,a;return y(null===(e=o.link)||void 0===e?void 0:e.value,null===(a=o.link)||void 0===a?void 0:a.params)}})},Ta=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:u.map(((a,t)=>e(Aa,{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=la(a,["bottomHeight","children","id","heightWrap"]);const d=n((()=>C()),[]),m=function(e){const[a,l]=t(0);return i((()=>{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 n((()=>{if(!C())return 0;const a=b(),l=a.getStorageSync("safeArea"),o=a.getStorageSync("tabBarHeight")||0;return l+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{View:u}=p(),g=n((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(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}))},Pa=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Da);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(La,{children:a(i,{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)))})]})})})})})})),Ra=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=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(Je,{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:ia(i)})})]}),e(Pa,{popupShow:s})]})})),Ma=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:i,imgGroup:n,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:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(Je,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(Je,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Oa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:C,reason:y,handleChooseImg:w,imgGroup:x,placeholder:k,handleDelImg:S,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:T}=O({contractBillcode:o,skuCode:s});return e(h,{loading:T,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Da.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:C,reason:y,handleChooseImg:w,imgGroup:x,placeholder:k,handleDelImg:S,limit:v,goodsNum:t,goodsPrice:i,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(Va,{}),e(Ra,{}),e(Ma,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},za={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Fa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Wa=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:i,Image:n}=p();return a(i,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(i,{className:"title",children:[a(i,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(i,{className:"rPart",children:[e(Je,{style:{color:null===(s=za[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=za[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:za[l.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src:Ye(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(i,{className:"rPart",children:[e(i,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(i,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(i,{className:"tip",children:[e(i,{class:"lPart",children:Fa[l.refundType][l.dataState]}),e(Je,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ga=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:i,goAfterSalesDetail:n,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?i.map((a=>e(Wa,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ea=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=p();return e(i,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:F,render:l=>e(Ga,{item:l,refreshNum:a})})})})),Ya=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberBname:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ia(i),b=n((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:Ye(o),alt:"",className:"card-item-img"}),a(u,{className:"card-item-info",children:[a(u,{className:"card-item-info-container",children:[e(N,{className:"card-item-info-container-title",children:s}),e(N,{className:"card-item-info-container-price",children:f})]}),a(u,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:b})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ha=(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]}},Ua=o.createContext(null),$a=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Ua),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(La,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:l.map(((l,o)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Ka=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Ua),{View:n,Input:c}=p();return a(l,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:o,children:e(n,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流单号"})]}),e(n,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(n,{className:"expressInfo",children:e(n,{className:"expressInfo_btn",onClick:i,children:"提交物流信息"})}),e($a,{})]})})),Qa=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:b}=W({refundCode:o}),{dataState:C,gmtCreate:y,ocRefundGoodsList:w,refundMoney:x,refundMeo:k,refundEx:S,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:T,packageCode:D,packageBillno:V}=c,{View:L,Image:P,WrapLoading:R}=p();return e(R,{loading:b,children:e(L,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(Ua.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(L,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(L,{className:"left_text",children:Ha(v,C)}),e(L,{className:"right_time",children:qe(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(L,{className:"afterSalesDetailContent",children:a(L,{className:"refundDetail",children:[e(L,{className:"title",children:"退款信息"}),e(L,{className:"goodsDetail",children:null==w?void 0:w.map(((a,l)=>e(Ya,{dataPic:Ye(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"退款原因"}),e(L,{className:"right",children:S})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"退款金额"}),e(L,{className:"right",children:x})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"描述说明"}),e(L,{className:"right",children:k})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"补充凭证"}),e(L,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(P,{src:Ye(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"申请时间"}),e(L,{className:"right",children:qe(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"退款编号"}),e(L,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[C>0?a(L,{className:"merchantMsg",children:[e(L,{className:"title",children:"商家信息"}),a(L,{className:"name",children:[B," ",A]}),e(L,{className:"address",children:T})]}):"",1===C?a(L,{className:"writeMsg",children:[e(L,{className:"wlMsg",children:"物流信息"}),e(Ka,{})]}):"",C>1?a(L,{className:"writeMsg",children:[e(L,{className:"wlMsg",children:"物流信息"}),a(L,{className:"express_content",children:[e(L,{className:"name",children:"物流单号"}),e(L,{className:"code",children:V})]}),a(L,{className:"express_content",children:[e(L,{className:"name",children:"物流公司"}),e(L,{className:"code",children:N})]}),a(L,{className:"express_content",children:[e(L,{className:"name",children:"物流公司编码"}),e(L,{className:"code",children:D})]})]}):""]}):""})]})}),0===C?e(L,{className:"footerBtn",children:e(L,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),qa=o.createContext(null),Za=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(qa),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ia(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ye(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(Je,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>n((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),i?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Xa=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:i}=p(),{goApply:n,goodsNum:c}=r(qa);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(i,{className:"item",onClick:n.bind(null,l.value,s,t,c),children:[e(i,{className:"headline",children:l.label}),e(Je,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),Ja=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:b}=j({contractBillcode:o,skuCode:s}),{View:C,WrapLoading:y}=p();return e(y,{loading:f,children:e(C,{className:"afterSalesType",style:{paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r},children:a(qa.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:b},children:[e(Za,{}),e(Xa,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},_a=({setDefault:a,checked:l})=>{const{SmoothCheckbox:o,Checkbox:s}=p();return e(o,{onChange:a,children:e(s,{checked:l,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},el=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:i}=p(),{handlerImpl:n}=G(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(_a,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{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:i})=>{const{View:n,Image:c}=p();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(c,{className:"img",src:l}),e(n,{className:"title",children:o}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>y(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),ol=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=E(a);return e(c,{className:"addressListWrap",style:{paddingTop:i+"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:i})=>{const{View:n}=p();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{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:0}],il=[{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:He}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Ue}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:$e}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Ke}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",label:"设置默认地址",name:"addressDefault",extraProps:{color:"#000"}}],nl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=p(),{Button:c}=g,{onSubmit:r}=Y();return e(n,{className:"addressDetail",style:{paddingBottom:i+"px",paddingTop:t+"px"},children:e(Ze,{footer:e(c,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:tl,onSubmit:r,fields:il})})})),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(Je,{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,btnShape:o,btnColor:s,borderColor:t,paddingBottom:i,paddingTop:n,color:c})=>{const{View:r,ScrollView:d,Loading:m}=p(),{list:h,loading:u,skullShow:g,onScroll:N}=$(l);return e(r,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:i+"px"},children:g?e(al,{}):e(r,{className:"addressList",children:e(La,{id:"pickupPointListWrap",children:e(d,{onScroll:N,children:h.length?a(r,{children:[h.map(((a,l)=>e(ml,{itemData:a},a&&a.userinfoOcode||l))),u&&e(m,{})]}):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:i})=>{const{View:n}=p();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>oa(void 0,void 0,void 0,(function*(){yield w("导入成功","none")})),children:"导入微信收件地址"})})})),ul=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:c}=p();return e(l,{children:o.map((l=>e(i,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(i,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:l.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{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(i,{onClick:()=>y("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:gl}=g,Nl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(n,{children:e(La,{id:"goodsClassify",children:e(c,{children:a(n,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{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(n,{className:"main",children:e(ul,{navList:m,activeKey:r,cell:l})})]})})})})})),fl=d(null),bl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(fl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),i(`${a}`),n("0"),h&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!0),children:e(u,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!1),children:e(u,{value:"paixusort-sheng"})})}),e(La,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),Cl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:i}=r(fl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:l.map(((l,i)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>y("goodList",{classtreeCode:l.classtreeCode}),children:[e(s,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},i)))})})),yl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(fl),m=n((()=>C()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=n((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=n((()=>{var e;return(null===(e=o[l])||void 0===e?void 0:e.childList)||[]}),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=p();return e(g,{children:e(La,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},l)))}),e(Cl,{thirdList:u})]})})})})})),wl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=K(),[g,N]=t("0"),[f,b]=t("0");return e(fl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:b,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(bl,{}),e(yl,{})]})})})),xl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:i,Image:n}=p();return e(i,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(i,{className:"level3ArrItem",onClick:()=>y("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:l.goodsClassName})]},o)))})})),kl=s((({navList:l,activeKey:o,layout:s,picShadow:n})=>{var c;const[r,d]=t(0);i((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:T(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=T(l[r],"childList"))||void 0===c?void 0:c.map(((l,o)=>a(h,{children:["0"===l.goodsClassHide?e(h,{className:"level2Title",children:l.goodsClassName}):"",e(xl,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Sl}=g,vl=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(c,{className:"goodsClassifyTwo",children:e(La,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Sl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Sl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(kl,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),Il="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Zud7L0i/s88Nmi2lW965/f7aT6td0xi3r4xMC+wFmBs5cXx8WA0zdYqB8D1wA+16Dv3l0OCYBHAw/pPeL/daDu/g3lCeZ5+5sKfZ8ZuAJwZeBawHEq9GkXvwWuU9TLlbqs080QAFCp8xzgDhWGrCHn0KKNc3tteb6eALheeZ1ob+grq78CNyvjryCKOl30ndS6Ubj4nvc3XMe45t+13j0TeEax4PXsLt1cY5PKqesDzqkreVTdtgC4ax9V27UGwPOAO/YYsV+8KlcX//c9+qnV1DuDR1kfQP8DuC7w1lqD6tNPSwD4BHpoj8EpIC+N3+vRR6umHgnPBjRJd6E/A1cBPtKlcc02rQBwlyKgLmP9RdkmJ/GFbDEBXxTaAR4IHK3DRH8NXAb4Soe21Zq0AIDPqQ8DGnay5G3ed/OPsg1H5PfV8ArgVB3G8A1Ac/dox1ttAPi29i1+ug7CeFK5aHlRmhu5+L5OLtFh4C8f0w5SEwD29UZg/6QQ9Lw5CHhKst3U2LVnvLYofbJjux1wSLZRDf6aALhX0fJlxvV34NblqZhpN1VeNZwupB5MGfJSeMHidZRp15u3FgBOC3y1eOBGB+WX75v4JdEGM+FTphq6suZt7z++LpTLYFQLAK8vWrPMwO8LPC3TYEa8XoDfAlw1OWYvwK9KtunFXgMAVwP0iMmQ5/39Mw1myHv88s5XixilnxTjlEasQagvADzzfMeeJTFalR8+ndSIbXdSc2icgWCI0lOLo0yUvxdfXwB42fG8i5LKDy87U9TuReeQ5btRiSuItvtTCXIZJCilDwDUfhk4YShWlNSBvynKvI34jCXIXAqfUFzim4ugDwC0jL0uMcI3d9ARJLqfNKsKMsPO/DtC3gH0jtYK2pT6AMCzTTVmhNzWDPD4boR5m/LcufhFRKenIU2/wqbUFQAXAD6TGNkji/dvosm2Y9WP4NPA+YIz82Mx2rmpXqArAHy/3zs4kcG2s+B4xmS7QVEXR8dwudbu5V0A4NPvB0A0OtegD71pFtphNv5CIt5RtbJ2gmbUBQB6uEZt9UbIeJn5WbMZzK/jWyXU3+6efmjaCppQFwC8MIFKw6mN8l3ofxI4NqDGz6wlETInwtsijF14ugDAAEgvJxFqOvjIACbK49auISxC3re0mzShLAAMnIhq8dRkaSXU5LvQUSWg1U+39ggZUOKrqwllAXAb4EXBkXhU1IgFCP7crNi8DBouFsl4YuzDKYBftphhFgDq/aPODiZ6MLfOQruXgN5DPgsjZICKUVDVKQsAlT+R7UjlxamnHBRZXZL5DjOaQb2PdbOvThkAyOuzxLx760jvoK4+8+v63i7/blCqcoqQTiI6i1SnDAC80KkAipBbv0fAQnuWgPcAI598Fq4jVcgXXsfU5d8zALhSyZkX+Z1F9x+REnwROHeA1SSWBqtWtwtkAHB74AWBwcpiFKxBoQttLQHN6ZrVI6RGsLpGNQMA8/k8OTJS4OLAJ4K8m8z2xBITEZGBafNMelGVMgBwW39Y8Ne94OgAsdDWEjARptHPEdL3ImOCj/SZSnqQMQF7YZxTfF9IWA2YjH429D1Cag8/GGHM8GR2gIwR6ITlyZgZyybyZiyDJtI01qAqZQCQ0QIaJ9fMhFlVAuN25lM5ellWa2gATlXKAMCECMb9R8g8gBZjWGhrCWReVuZUzAbgrJV/BgC6Kj9gbY87GCzesMkOoEExcR/AQJAINXEPywDAFG/mx4mQ4VAqORbaWgLq+M0tHKHRXwH3KNm8I4M1z957IowbzmP6PI1CETLMzIwiVSmzA2QuLD5vvDMstLUE/EiuGBCSPgFerM01WJUyAHALMhgkQubzu2eEccN5zHYayZksX5e0O2vFmwGAZmDNwZE27+oQG792sNuMISNPk26ZZLs6RRZz5x+NIta8vT4F55jwqbqQ99ChW3/0nvTihBNpavxZAETPLAeh/Vo79kK7l8BjEwEzd03GFYZlngWAUT4mRoyQGUDmnvkrMs+uPB8rVtNIe93wmqSbzwLA553ne4QsuGg61IX+XwInKbb9SN0EvYYMImmSUSULAJ8iZvmwiuc68vz35moUzEJHlcCdgOcGhWIZ28hTMdjdUdmyALC1JsnojXQ7ZwLrJPDSyHqDlwx2oLrYamRNqAsAMiphy7icv8nI59upVUnU6EVlL3+zUrXRQews7uwEzAhmJe6FdkhAJZlFJiPU/APqAgAHbqq3S0VmUN66Xh4X2hHi9Z1ELSJd8KIGuE7y7QoAq4BYDSRKnnc+ezadMiZ1b/3mVmjqWtcVAJZdsxxaJKjBRbe4snEFm0zZfMpmXj+gtcC6AsBxZXwE5TdRhAkjNpUyMQDKSB2KupSm1AcAXgaPACLKDCfhjqG7+GjVMZpKcuvOMwo0ezKPkK+n6pFAuw6zDwDsy2oXRgFFyciiPlXEor8zJT49pLWJ+MFEya3fI6A59QWAaWJNF5spmnTzUmOn+eQm8gPWE8pE9lpyR9+L5l+/8ukLAPvIuIvLr0+BlsLq7k0TWfCdh5HJAbBqZ8naaBa23lOuAQDftt4FolmvHLQp5i2Zpl1hu5IKMN24I3aTlQzMBmZircGoBgAcrPbqZyVH/UlgvxIjn2w6efbzlAyfmY/CQBpDxZupfXcntVoAMA/uxzskMXCrM//N3ya/pPEBetnThStbR9BAURVFg1ItADhoUW9IeLbkum9db70mQZg7+XRz24+m0V3N149HC+vgKfVqAsDJmBbu+R1WUW9jU9AOUiWjw/giTYzetRiGz74M/bYk3tJGMDjVBoATyD57VpP27LMq9xz9CI2ZNHw+c+Fbzds5ZwpvVAVJCwBYIOlwwIwWWTLwwUwk2Qtl9ndq8Zu3R5V413LyHnvWWh6tgHQLAChccwnr9ZI9C1cLY3kZbebfr7VSDfpRvatbV0bDt7thmPfH19AoIGgFACfqpVD3MS2HXcgyM+Yk0hO5ekhUlwGVNt7uze2TKQK17ue8++j3p1Z1UGoJACfixeidHc/GlSDUGAoC7Q6D35J3Wo2Tw3/DudV5RJJlZhdylJ2gNQAUgrd78+LqUdyHzFJuiXmBMFhlzbLFGxlt5Y6+c1g3/8FBMAQAnLQXHZU+hov1JauQGKFkLT6fXS12BTV45uRxm3drHkpOymbQ42DIianm9DiIRMNGQeIb2qrb+s77x9y7XQDhy0WQqr/3QqaxKurnEB1rhm+wnWBIACgAC06Y6OgiGWkkeF189Qkap/xbY5NPLf8YYeNCq6jxDPdMN+mCz9WaoNx1uDrAZGoHr9oPAoKhAeDk/LIsiHjQwFtrAkdVWL2n6PyiYsvqIF1A1vw4GAMAK+nuDxj23PWZWGWVGnWiIsyMKtZXkqyuPkkQjAkABWPs4MGARaW3A6m7MKWuauFdgzk9arynWEgjS82Og7EBsBKEFy9zCuk0OlfylaP2cqv0eJPbCaYCABddM7J2AEvSzulYMIGzETzR2n5ePD0OJrETTAkAqy/fG/qBJSll1qliyN3jy2W791WTdeCczE4wRQCsFnGfon0znaql56dAnuuHlbA4o52yC7/zHCaxE0wZADsLSzdptXLerH2/D026ah9aXi0GuNSi0UEwFwCsBL43cOmirfPieNFGGjuVN7ppebHzi49WS+0CjFFBMDcA7Cpg7wsCwtzECtJXhH/2Da6EW7qp79Qa+mbXNc0oZm3zQ6a4Gw0EcwfAntZZ1auGJwGy+uP/UzunWlgX7CNL/qIutoMgvlJso4BguwIgJfkJMQ/+OlgAMKHVL0PpsxOYkU1DWzipxAKA6QHAEfXZCVLhZQsApgmAviDQKTcUZ7AAYLoA6AMCjWt6S62lBQBrRTQ6Q5fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Bl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Al=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=[],__pageConfig:g})=>{const{View:N,Image:b}=p(),C=n((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>y("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxpositon":"",children:a(N,{className:"components-search",style:{backgroundColor:t,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(b,{src:Il,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:C,style:{color:s,display:"inline-block",fontSize:m},children:l})]})})})),Tl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"]})=>{const{View:g,Image:N}=p(),b=n((()=>f("txt",...u)),[u]);return e(g,{onClick:()=>y("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(g,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(g,{style:{width:"80%"},children:[e(N,{src:Il,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:b,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(g,{className:["seachBtn",i?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Dl=s((({placeholder:l,placeholderText:o,history:s,historyText:i,paddingBottom:c,paddingTop:r})=>{const d=n((()=>C()),[]),{View:m,Text:h,Input:u}=p(),[g,N]=t((()=>x("history")||[])),f=e=>{y("goodList",{searchParam:e})};return a(m,{className:"searchPage",style:{paddingTop:r,paddingBottom:c},children:[a(m,{className:"search-title",children:[e("img",{src:Il,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:e=>oa(void 0,void 0,void 0,(function*(){d&&(N((a=>{if(!a.includes(e.detail.value)&&e.detail.value){const l=a.concat(e.detail.value);return S("history",l),l}return a})),f(e.detail.value))}))},l?{placeholder:o}:{})),e(h,{className:"btn",onClick:()=>k(),children:"取消"})]}),s?a(m,{className:"historyWrap",children:[a(m,{className:"title",children:[a(m,{className:"label",children:[e(m,{className:"icon"}),i]}),e(Je,{onClick:()=>oa(void 0,void 0,void 0,(function*(){(yield b()).removeStorageSync("history"),N([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(m,{className:"content",children:g.map(((a,l)=>e(m,{onClick:()=>f(a),className:"historyItem",children:a},l)))})]}):null]})})),Vl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:b,paddingLeft:C,paddingRight:w,goodsName:x=!0,goodsPrice:k=!0,goodsCar:S=!0,goodsBorder:v=!0,goodsShadow:B=!1,marginGap:A=10})=>{const[L,P]=t(l),R=c(),{View:M,Text:O}=p();return i((()=>{D(R.current,u)||(R.current=u,V(u)?P(l):oa(void 0,void 0,void 0,(function*(){try{const e=yield I({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=T(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:b},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:A,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:C,paddingRight:w},children:L.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:v?"1px solid #000000":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${Ye(l.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:x?"block":"none"},children:l.goodsName}),e(M,{className:"subTitle",children:l.brandName}),d&&a(M,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(M,{className:"price",children:[a(M,{style:{fontSize:18},children:[k?ia(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ia(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:S?"block":"none"},children:e(Je,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Ll=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:b,marginRight:C})=>{const{View:w}=p(),{list:x}=Q({defaultValue:l,goods:o},n);return e(w,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:b,marginRight:C},children:x.map(((l,o)=>a(w,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(w,{className:"img",style:{backgroundImage:`url(${Ye(l.dataPic)})`}}),a(w,{className:"board",children:[e(w,{className:"title",children:l.goodsName}),a(w,{className:"info",children:[a(w,{className:"lPart",children:[s?e(w,{className:"price",children:ia(l.pricesetNprice)}):null,t?e(w,{className:"marketPrice",children:ia(l.pricesetMakeprice)}):null]}),i?e(w,{className:"rPart",children:e(Je,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Pl=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:b,btnRadius:w})=>{const x=n((()=>C()),[]),{list:k}=Q({defaultValue:l,goods:o},m),{SmoothSwiper:S,View:v,Image:I}=p(),[B,A]=t(0);return a(v,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(S,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:k,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(v,{className:["goodsSlideshowItem",""+(l.goodsCode===k[B].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>y("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:Ye(l.dataPic),mode:"widthFix"}),c?e(v,{className:"goodsName",children:l.goodsShowname}):null,r?a(v,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(v,{className:"price",children:ia(l.pricesetNprice)}):null,i?e(v,{className:"marketPrice",children:ia(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:f,color:b,borderRadius:w},children:N})]})})]})})),Rl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:i=""}=q(o,s),n=Z.getState();Z.setState(Object.assign(Object.assign({},n),{memberCode:i})),console.log(24,i);const c=X(t);return e(Na,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Ml=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:i}=J(l);return a(s,{onClick:t,children:[V(i.dataObj)?e(Je,{value:"star-fill",style:{fontSize:20}}):e(Je,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:V(i.dataObj)?"收藏":"已收藏"})]})},Ol=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n,Button:c,IconMobile:r}=p(),{rsSkuDomainList:d,rsGoodsFileDomainList:m}=q(l,t),{goodInfo:h}=_(d);ee(l);const{init:u,canvasRef:g}=ae();return a(i,{className:"goodsDetail-topInfo",children:[e("canvas",{ref:g,width:300,height:600,style:{display:"none",border:"1px solid #ccc",width:"300px",height:"600px"}}),a(i,{className:"lPart",children:[e(n,{className:"name",children:h.goodsName}),a(i,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(i,{style:{display:"flex",flexDirection:"column"},children:[a(n,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ia(h.pricesetNprice)]}),a(n,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ia(h.pricesetNprice)]}),a(n,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ia(.9*h.pricesetNprice)]})]}),e(c,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>u(m,h.goodsName),children:"生成海报"}),e(i,{onClick:e=>{e.stopPropagation(),(()=>{console.log(107,window.location.href);const e=b();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(r,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(i,{className:"rPart",style:{display:s?"flex":"none"},children:e(Ml,{goodsName:h.goodsName,pricesetNprice:h.pricesetNprice,dataPic:Ye(h.dataPic),skuCode:l})})]})},zl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:i,collection:n}=J(l),{handleShare:c}=le();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:V(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Fl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,i),{goodInfo:d}=_(r);return oe((e=>e.spec)),ee(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ia(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(zl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ye(d.dataPic),skuCode:t})]})})),Wl=s((()=>{const{Text:e}=p(),l=oe((e=>e.count)),o=oe((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),jl=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:i}=se(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Wl,{}),e("img",{src:Bl,alt:"",className:"icon"})]})]})})},Gl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:i}=q(l,o),{goodInfo:n}=_(i),c=te(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},l)=>e(s,{className:"item",children:a},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},El=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ie(),N=n((()=>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:i}),a(h,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(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:"已领完"})]})})})),Yl=()=>{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"})})},Hl=o=>{var{skuCode:s,scene:t}=o;la(o,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ne(d,h.skuCode);return a(l,{children:[a(i,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(r,{src:Bl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(La,{children:u.length>0?u.map(((e,a)=>m(El,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Yl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Ul=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:n}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);i((()=>{if(s){const e=[...c];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!l){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(n,{children:c.map(((a,l)=>e(Je,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},$l=({item:l})=>{const{View:o,Image:s,Text:t}=p();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl,className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Ul,{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()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent}),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]})},Kl=({evaluateArr:l})=>{const{View:o}=p();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e($l,{item:a},l)))]}):e(ll,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Ql=({goodsRemark:a})=>{const{View:l}=p(),o=n((()=>a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[a]);return e(l,{className:"goodsDetail-info",children:e("div",{dangerouslySetInnerHTML:{__html:o||""}})})},ql=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:i,evaluateImg:c})=>{const{Text:r}=p(),d=n((()=>i?[{title:"商品详情",id:"1"},{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)))})},Zl=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:i,scene:n})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(i,n),u=ce(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(Ql,{goodsRemark:m}):e(Kl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Xl=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:c}=p(),r=oe((e=>e.offShelf));return a(n,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(n,{className:f({sizeItem:!0,active:s[i]===a.specValueValue,offShelf:s[i]===a.specValueValue&&r}),onClick:o.bind(null,a.specValueValue,i),children:a.specValueValue},l)))})]})},Jl=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=oe((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),_l=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=p(),{skuList:r}=o,d=i&&"06"===i.goodsType?i.pricesetRefrice+"积分":ia(i.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:Ye(i.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),r.map(((a,l)=>e(Xl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},eo=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=p(),c=oe((e=>e.isNeedButton)),r=oe((e=>e.offShelf));return r?e(n,{className:f({btnWrap:!0,offShelf:r}),children:e(i,{className:"btn",children:"已下架"})}):e(l,{children:c?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:o,children:"立即购买"})]})})},ao=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=re(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(La,{children:e(n,{children:a(i,{className:"content",children:[e(_l,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Jl,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(eo,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),lo=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=p();return e(i,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(ao,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},oo=s((({serverShow:o,cartShow:s,lPartShow:t,lPartColor:i,lPartBgColor:n,lPartStyle:c,rPartColor:r,rPartBgColor:d,rPartStyle:m,rPartText:h,dispatchPageStore:u,skuCode:g,platform:N,scene:f})=>{const{View:b,IconMobile:C,Text:w}=p(),x=oe((e=>e.offShelf)),{rsSkuDomainList:k,goodPro:S}=q(g,f),{goodInfo:v}=_(k),{servicePopup:I}=sa(N),{addCardPopup:B,buyOpenPopup:A}=se(u);return a(b,{className:"goodsDetailHandleBar",children:[a(b,{className:"linkGroup server",onClick:I,style:{display:o?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(b,{className:"txt",children:"客服"})]}),a(b,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:s?"block":"none"},children:[e(C,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(b,{className:"txt",children:"购物车"})]}),e(b,{className:"goods-detail-btn-group",children:x?e(b,{className:"btn addCart offShelf",children:e(w,{className:"btn",children:"已下架"})}):a(l,{children:["26"===S||!1===t?null:e(b,{className:"btn addCart",onClick:B,style:{color:i,backgroundColor:n,borderTopLeftRadius:c,borderBottomLeftRadius:c},children:"加入购物车"}),e(b,{onClick:A,className:"btn buy",style:Object.assign({color:r,backgroundColor:d,borderTopRightRadius:m,borderBottomRightRadius:m},!1===t?{borderTopLeftRadius:m,borderBottomLeftRadius:m}:{}),children:h||("10"===v.goodsPro?"预售抢购":"立即购买")})]})})]})})),so=o=>{var{$_dataSource:s={},dispatchPageStore:t=L,skuCode:i,scene:n}=o,c=la(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(i,n),h=de(r,m),{popupVisible:p}=s;return a(l,{children:[e(oo,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(lo,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},to=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:b}=p(),{rsSkuDomainList:C}=q(u,g),{goodInfo:w}=_(C),{servicePopup:x}=sa(N),{addCardPopup:k,buyOpenPopup:S}=se(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:l?"block":"none"},children:[e(b,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>y("shopping"),style:{display:o?"block":"none"},children:[e(b,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"购物车"})]}),a(f,{className:"goods-detail-one-btn-group",children:[e(f,{className:"btn addCart",onClick:k,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(f,{onClick:S,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===w.goodsPro?"预售抢购":"立即购买"})]})]})})),io=o=>{var{popupVisible:s=!1,dispatchPageStore:t=L,skuCode:i,scene:n}=o,c=la(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(i,n),h=de(r,m);return a(l,{children:[e(to,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(lo,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},no=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],co=({setParams:l,activeColor:o})=>{const{View:s}=p(),[i,n]=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 "+(i===m?"active":""),onClick:()=>((e,a,o)=>{n(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:i===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(Je,{style:{color:i===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Je,{style:{color:i===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},ro=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:i=!0,goodsPrice:c=!0,lineationGoods:r=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:h=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:b={}})=>{console.log(111,b);const{View:C,Loading:y,SmoothView:w,Image:x,ScrollView:k,IconMobile:S}=p(),[v,I]=t({}),{loading:B,getData:A,list:T}=me(l,o,v),D=n((()=>f("textBox",{btm:!c&&!r})),[c,r]),V=n((()=>f("name",{boxNone:!i})),[i]),L=n((()=>f("middle_margin",{boxNone:!d})),[d]),P=n((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=n((()=>f({detailContent:!(V.includes("boxNone")&&L.includes("boxNone")&&P.includes("boxNone"))})),[V,L,P]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(co,{setParams:I,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(La,{id:"listWrap",children:a(k,{onScroll:()=>A(v),children:[e(C,{className:"list",style:{gap:g},children:T.map((l=>a(C,{onClick:()=>Qe(b,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:Ye(l.dataPic),className:"img"}),a(C,{className:R,children:[e(w,{className:V,children:l.goodsName}),a(C,{className:L,children:["已售:",l.goodsNum]}),a(C,{className:P,children:[a(C,{className:D,children:[e(w,{className:"price",style:{display:c?"block":"none"},children:ia(l.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:r?"block":"none"},children:ia(l.pricesetMakeprice)})]}),e(C,{style:{display:m?"block":"none"},children:e(S,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),mo=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:i,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=he(a),h=n((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?i:"",borderRadius:o?c:""})),[o,s,t,i,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},ho=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:i}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(i,{"data-code":o,checked:o,value:s})})]})})),po=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:c,SmoothRadio:r}=p();return e(i,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(La,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(ho,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},uo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,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 ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ia(c)}),0===s&&e(h,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),go=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:i}=p(),c=n((()=>{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(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(i,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>y("goodDetail",{skuCode:s})})]})})),No=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:i}=p(),c=n((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),fo=({promotion:o=[],updatePm:s,shoppingGoodsId:i,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=n((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{children:[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(i,"-"))},children:e(po,{promotionCode:c,onChange:e=>{m(!1),s(i,ue(e))},promotion:o||[],visible:d,setVisible:m})})]})},bo=s((l=>{var{item:o}=l,s=la(l,["item"]);const{View:t}=p(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(No,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(go,{dataState:o.dataState,dataPic:Ye(o.dataPic),skuCode:o.skuCode}),e(uo,Object.assign({},o,s))]})})),Co=o=>{var{shoppingGoodsList:s=[]}=o,t=la(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(bo,Object.assign({},t,{item:l})),l.pmPromotionList?e(fo,{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(),i=n((()=>V(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Qe(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}),i]})},wo=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:i,SmoothView:n}=p();return a(i,{className:"cart-dis-title",children:[e(n,{className:"tips",children:s}),e(n,{className:"title",children:o}),l&&e(yo,{link:t,disNextMsg:l})]})},xo=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:b,handleStep:C,updatePm:y}=pe(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:n},children:[t?e(wo,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(Co,{cartIsEditor:g,promotionCode:o,handleStep:C,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:n})]})]},p)))}):e(ll,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},ko=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:i="#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:C,clearAll:y,selectAll:w,ids:x,cartDetail:k}=ge(N,u,o),S=n((()=>({border:`1px solid ${s}`,color:t,background:i,borderRadius:c})),[s,t,i,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:w,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[x.length?e(r,{onClick:y,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:C,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ia(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ia(k.amount)})]})]}),a(r,{onClick:b,className:"btn",style:S,children:["结算(",k.num,")"]})]})]})},So=({address:a})=>e(l,{children:V(a)?e(Io,{}):e(vo,{address:a})}),vo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Io=()=>{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"})]})},Bo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=p(),i=Ne(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>y("addressList"),children:e(So,{address:i})})},Ao=({address:a})=>e(l,{children:V(a)?e(Do,{}):e(To,{address:a})}),To=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),i=n((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:i=""}=l;return{displayName:t,displayPhone:i,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.displayName}),e(s,{className:"left-padding",children:i.displayPhone})]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Do=()=>{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"})]})},Vo=({refreshNum:a})=>{const{View:l}=p(),o=fe(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>y("pickupPointList"),children:e(Ao,{address:o})})},Lo=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,i)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Po=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:n=""})=>{const{View:c,Text:r}=p(),[d,m]=t("0");return i((()=>{be.contractPumode=d}),[d]),a(c,{className:"placeOrderAddressTabs",children:[a(c,{className:"delivery-header",children:[e(r,{className:"delivery-label",children:"配送方式:"}),e(c,{className:"tabs",children:e(Lo,{tabActive:d,setTabActive:m})})]}),e(c,{className:"content",children:"0"===d?e(Bo,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:n}):e(Vo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:n})})]})},Ro=s((({couponStart:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponEnd:n})=>{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:i}),a(r,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Mo=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{View:n,Text:c,Popup:r,SmoothRadio:d,ScrollView:h,Radio:u,Image:g}=p(),{shoppingGoodsList:N}=Ce({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:f,visible:b,setVisible:C,selectCoupon:y,onChange:w,onCreditChange:x,contractPmode:k,onPayChange:S,payList:v,payName:I,creditList:B,creditInfo:A,selectCredit:T,creditVisible:D,payVisible:V,setPayVisible:L,handleChooseImg:P,contractEcurl:R,setCreditVisible:M}=ye(N);return a(l,{children:[a(n,{className:"coupon-select",onClick:()=>C(0!==f.length),children:[e(c,{className:"label",children:"使用优惠"}),a(n,{className:"info",children:[e(c,{className:"label",children:y?`已选择: ${y}`:0===f.length?"暂无可用优惠券":"请选择优惠券"}),0===f.length?null:e("img",{src:Bl,alt:"",className:"icon"})]})]}),a(n,{className:"coupon-select",onClick:()=>L(!0),children:[e(c,{className:"label",children:"支付方式"}),a(n,{className:"info",children:[e(c,{className:"label",children:I?`已选择: ${I}`:"请选择支付方式"}),0===f.length?null:e("img",{src:Bl,alt:"",className:"icon"})]})]}),A.urechargeId&&"0"===k&&a(n,{className:"coupon-select",onClick:()=>M(0!==B.length),children:[e(c,{className:"label",children:"使用授信"}),a(n,{className:"info",children:[e(c,{className:"label",children:T?0===+T?"不使用":`已选择: ${T}%`:"请选择授信"}),0===f.length?null:e("img",{src:Bl,alt:"",className:"icon"})]})]}),"1"===k&&a(n,{className:"coupon-select",children:[e(c,{className:"label",children:"附件上传"}),a(n,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(n,{className:"img-fields",onClick:P,children:R?e(g,{src:R,className:"img",alt:R,mode:"widthFix"}):e(n,{children:"上传图片"})}),e(n,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(r,{popupVisible:V,popupHandler:L,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(h,{children:e(d,{value:k||"",onChange:S,children:v.map(((l,o)=>a(n,{style:{marginBottom:5},children:[e(u,{checked:l.ptfpmodeType===k,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(r,{popupVisible:D,popupHandler:M,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(h,{children:e(d,{onChange:x,children:B.map(((l,o)=>a(n,{style:{marginBottom:5},children:[e(u,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(r,{popupVisible:b,popupHandler:C,children:e(n,{className:"goodsDetail-coupon-popup",children:e(La,{children:e(h,{children:e(d,{onChange:w,children:f.map(((e,a)=>m(Ro,Object.assign({},e,{key:a}))))},"visible")})})})})]})},Oo=({shippingMethod:l=1})=>{const{View:o}=p();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},zo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{View:i}=p(),{list:n}=Ce({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t});return console.log(9,n),e(i,{className:"place-order-goods",children:n.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Ya,Object.assign({},a),o)))})))})},Fo=({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{View:i,SmoothView:n,Image:c,TextArea:r,Textarea:d}=p(),m=d||r,h=Ce({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t}),{payState:u,disCount:g,creditMoney:N,freight:f,payPrice:b,rebMoney:C}=h,y=h.pointsDeduction||0,w=h.urDiscount||0,{shoppingCountPrice:x,comDisMoney:k,changeContent:S,shoppingType:v,pricesetRefrice:I}=we(u),B="06"===v?I+"积分":ia(x),A="06"===v?Math.max(Number(I)-y,0)+"积分":ia(Math.max(b-N,0));return e(i,{style:{paddingBottom:80},children:a(i,{className:"price placeOrder-blcWrap",children:[e(i,{className:"title",children:"价格明细"}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"商品总金额"}),e(n,{className:"value",children:B})]}),null!==y&&a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"积分抵扣"}),a(n,{className:"value",style:{color:"#f00"},children:["-","06"===v?y+"积分":ia(y)]})]}),"06"===v?null:a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"会员权益优惠"}),a(n,{className:"value",style:{color:"#f00"},children:["-",ia(w)]})]}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"授信付款:"}),e(n,{className:"value",children:ia(-N)})]}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"返利金额"}),e(n,{className:"value",children:ia(-C.current)})]}),a(i,{className:"coupon placeOrder-blcItem",children:[e(i,{className:"label",children:"优惠金额"}),e(n,{className:"value",children:ia(-(k+g))})]}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"运费"}),e(n,{className:"value",children:ia(f)})]}),a(i,{className:"all placeOrder-blcItem",children:[e(i,{className:"label",children:"订单备注"}),e(m,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:S})]}),a(i,{className:"all placeOrder-blcItem",children:[e(i,{className:"label",children:"总计"}),e(n,{className:"value",style:{color:"#000"},children:A})]})]})})},Wo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r})=>{const{View:d,Text:m,WrapLoading:h}=p(),{payPrice:u,list:g,payState:N,creditMoney:f,ocContractSettlList:b,pointsDeduction:C}=Ce({refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r}),{savePayPrice:y,loading:w}=xe({ocContractSettlList:b,payState:N,list:g},r,Math.max(u-f,0)),x={shoppingType:"",pricesetRefrice:0};N&&N.length>0&&(x.shoppingType=N[0].shoppingType||"",x.pricesetRefrice=N[0].pricesetRefrice||0);const k="06"===x.shoppingType?Math.max(Number(x.pricesetRefrice)-C,0)+"积分":ia(Math.max(u-f,0));return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",k]}),e(h,{loading:w,children:e(d,{className:"btn",onClick:y,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},jo=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=n((()=>C()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:b,SmoothRadio:y}=p(),{paymentImpl:w,channelList:x,contract:k,handleRadio:S,loading:v}=ke({contractBillcode:l,contractBbillcode:o});return i((()=>{console.log("打印下当前的channelList",x)}),[]),a(u,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(f,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",k.current.contractBillcode," | 总金额:",ia(k.current.contMoney+(k.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ia(k.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(y,{onChange:S,children:null==x?void 0:x.map((l=>a(u,{className:"paymentItem",children:[e(f,{value:l.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:l.fchannelName}),e(N,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",l.faccountAmount,"元"]}),a(u,{children:["支付金额:",ia(k.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(b,{loading:v,children:e(u,{className:"btnGroup",onClick:w,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Go=({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:ia(l.dataBmoney)})]})]})},Eo=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:i,leftBorderRadius:n,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:b,IconMobile:C,WrapLoading:w}=p(),{result:k,loading:S}=Se(l||(x("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(w,{loading:S,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(C,{value:k.icon,style:{fontSize:"35px",color:k.color}}),a(f,{className:"tips",children:[e(b,{className:"title",children:k.msg}),e(b,{className:"tip",children:k.info})]}),"success"===k.sysRecode&&e(Go,{dataObj:k.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>y(k.menuCode,{contractBillcode:k.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${i}`,borderRadius:1===n?"20px":"0px"},children:k.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>y(r.value),className:"btn white",children:c})]})]})})})})),{Button:Yo}=g,Ho=a=>{var{dataState:o}=a,s=la(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Uo,Object.assign({dataState:o},s))})},Uo=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,c=la(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:d,handlerImpl:m}=ve(Object.assign({dataState:l},c));return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(Yo,{style:{color:s,borderColor:t,backgroundColor:i},className:f({btn:!0,white:0===l,black:1===l}),onClick:()=>m(a.handler),shape:n,children:a.name},l)))})},{Button:$o}=g,Ko=({contractPaydate:a,init:o,countdownCancel:s,contractId:n})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,n]=t("");return i((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,i=s.getTime()-(t.getTime()-3600);i<999&&i>0?l(o).then((()=>{a()})):i>1e3&&n(ca(i,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,n);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function Qo({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,countdownCancel:u}){const{View:g}=p(),N=Ie(i);return a(g,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(g,{onClick:()=>y("orderDetail",{contractBillcode:l}),children:[a(g,{className:"topInfo",children:[a(g,{className:"orderNo",children:["订单号: ",l,e($o,{className:"copy",size:"mini",fill:"outline",children:"复制"})]}),e(g,{className:"status",children:N})]}),e(g,{className:"card-item-info-countDown"}),e(g,{className:"goodsItemWrap",children:t.map((a=>e(Ya,Object.assign({},a,{dataState:i,children:1===i&&e(Ko,{contractPaydate:h,init:c,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(g,{className:"allInfo",children:[a(g,{className:"totalNum",children:["共",s,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",ia(o)]})]}),e(Ho,{init:c,contractId:n,contractBillcode:l,dataState:i,contractAppraise:r,dataBmoney:o})]})}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 Zo=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t}){const{View:i,ScrollView:n,Loading:c}=p(),{onScroll:r,data:d,loading:h,init:u,countdownCancel:g}=Be(l,o);return e(i,{className:"orderListItemWrap",children:e(La,{id:"orderListItemWrap",children:e(n,{onScroll:r,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(Qo,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:g})))),e(i,{children:h?e(c,{}):null})]}):a(i,{className:"nodata_img",children:[e(qo,{}),e(i,{className:"nodata-btn",onClick:()=>y("goodList"),children:"前往购物"})]})})})})})),Xo=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12})=>{const{View:t,Tabs:i}=p();return e(t,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:Ae,render:l=>e(t,{className:"orderList",children:e(Zo,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Jo}=g,_o=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>C()),[]);return e(Jo,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=b();if(""===a)return void e.showToast({title:"复制内容为空",icon:"error"});e.setClipboardData({data:a,success:()=>{e.showToast({title:"复制成功",icon:"success"}),o(!0)},fail:()=>{e.showToast({title:"复制失败",icon:"error"})}})}},children:l?"已复制":"复制"})})),es=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m})=>{const{View:h,Text:u,Image:g}=p(),{orderDetail:N,handleApplyBtn:f,creditMoney:b,packageRemark:C}=Te(o||""),w=e=>qe(e).format("YYYY-MM-DD HH:mm:ss");return a(h,{className:"orderDetail",children:[e(h,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(h,{className:"orderDetailTopTitleContent",children:[a(h,{className:"icon_text",children:["待收货"===Ie(N.dataState)?e(Je,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:Ie(N.dataState)})]}),e(h,{className:"subTitleWrap",children:w(N.gmtCreate)})]})}),e(h,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:n+"px"},children:a(h,{style:{position:"relative",top:-26},children:[a(h,{className:"addressInfo",children:[e(h,{className:"lPart",children:e(Je,{value:"dizhi"})}),a(h,{className:"mPart",children:[a(h,{className:"personInfo",children:[e(u,{className:"personName",children:N.goodsReceiptMem}),e(u,{className:"personPhone",children:N.goodsReceiptPhone})]}),e(h,{className:"address",children:N.goodsReceiptArrdess})]}),e(h,{className:"rPart"})]}),a(h,{className:"orderDetailGoodsWrap",children:[N.goodsList.map((o=>a(l,{children:[e(Ya,Object.assign({},o),o.contractGoodsId),e(h,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{y("goodDetail",{skuCode:o.skuCode})},children:"商品快照"}),Number(N.dataState)>1&&Number(N.dataState)<5?e(h,{className:"orderBtn",onClick:f.bind(null,o,N.dataState),children:"申请退款(取消订单)"}):""]}))),a(h,{className:"priceInfo",children:[a(h,{className:"priceInfoFloor top",children:[a(h,{className:"totalNum",children:["共",N.goodsNum,"件商品"]}),a(h,{className:"totalPrice",children:["合计 ",parseFloat((N.dataBmoney-N.refundMoney).toFixed(2))]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"商品总额"}),a(h,{className:"totalPrice",children:["¥",N.contractInmoney]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"运费"}),a(h,{className:"totalPrice",children:["¥",N.goodsLogmoney]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"优惠"}),a(h,{className:"totalPrice",children:["¥",-N.goodsPmoney]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"客服电话"}),e(h,{className:"totalPrice",children:"13284246638"})]})]})]}),s&&a(l,{children:[a(h,{className:"express",children:[e(h,{className:"label",children:"物流信息"}),e(h,{className:"name",children:"韵达快递"})]}),a(h,{className:"express",children:[e(h,{className:"label",children:"配送信息"}),e(h,{className:"name",children:"1"===N.contractPumode?"自提":"快递"})]}),a(h,{className:"express",children:[e(h,{className:"label",children:"发票信息"}),e(h,{className:"name",children:"未开票"})]})]}),a(h,{className:"orderInfo",children:[e(h,{className:"orderInfoItem",children:e(h,{style:{fontSize:14},children:"订单信息"})}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"买家留言"}),e(h,{className:"name",children:C||"-"})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"订单编号"}),a(h,{className:"context_copy",children:[e(h,{className:"name",children:N.contractBillcode}),e(_o,{copyContent:N.contractBillcode})]})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"下单时间"}),e(h,{className:"name",children:w(N.gmtCreate)})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"授信金额"}),e(h,{className:"name",children:ia(-b)})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"支付方式"}),e(h,{className:"name",children:e(h,{className:"name",children:"0"===N.contractPmode?"线上支付":"线下支付"})})]}),"1"===N.contractPmode&&a(h,{className:"orderInfoItem container-img-top",children:[e(h,{className:"label",children:"付款凭证"}),e(h,{className:"name",children:e(g,{mode:"widthFix",style:{width:100},src:Ye(N.contractEcurl)})})]})]}),e(h,{className:"btnGroupFooter",children:e(Ho,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:N.contractBillcode,contractId:N.contractId,dataState:N.dataState,dataBmoney:N.dataBmoney})})]})})]})})),as=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:i}=p(),n=T(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=T(o,"packageList.length",l.count),r=T(o,"packageList[0].expressName",l.expressName),d=T(o,"packageList[0].packageBillno",l.packageBillno),m=T(s,"state",l.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",c," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",r]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},ls=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=T(o,"message",l.message),i=T(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.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})})},os=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:i,stateObj:n}=De(l);return a(s,{className:"expressInfo",children:[e(as,{info:t,detail:i,stateObj:n,defaultValue:o}),e(ls,{detail:i,defaultValue:o})]})})),ss=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:n,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=sa(),[N,f]=t(c),[b,C]=t(n);return i((()=>{f(x("userNickname")),C(x("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"}})]})]})})),ts=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:c,Image:r}=p(),[d,m]=t({});i((()=>{oa(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?y("orderlist",{indexId:a>1?a+2:a+1}):y("afterSalesList")};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:h.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(n,{className:"subTitle",children:l.label})]},o)))})]})})),is=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:i,IconMobile:n,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:Ye(l.imgUrl),className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),ns=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{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(n,{src:a.imgUrl,className:"img"},l)))})]})},cs=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],rs=s((()=>{const[o,s]=t("1"),{View:i}=p(),n=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(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:cs.map(((a,l)=>e(ns,{itemData:a},l)))})]})})),ds=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Ve(l),{Button:b}=g,{View:C,Image:y,TextArea:w,Textarea:x}=p(),k=x||w,S=c("宝贝满足你吗?分享一下它吧");return a(C,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(C,{className:"topInfo",children:[a(C,{className:"lPart",children:[e(y,{src:Ye(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(C,{className:"goodsInfo",children:[e(C,{className:"goodsName",children:l.goodsName}),e(C,{className:"goodsSize",children:l.skuName})]})]}),e(C,{className:"rPart",children:a(C,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(C,{className:"rate",children:[e(C,{className:"title",children:"商品评价"}),e(Ul,{onChange:u.bind(null,s)})]}),e(C,{className:"evaluate",children:e(k,{className:"content",placeholder:S.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(b,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),ms=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:c,paddingBottom:r})=>{const{orderInfo:d,handleDelete:m}=Le(l),{Button:u}=g,{View:N,Image:f,Text:b}=p();return a(N,{className:"evaluateDetail",style:{paddingTop:c,paddingBottom:r},children:[d.map(((l,s)=>{var t;return a(h,{children:[a(N,{className:"topInfo",children:[a(N,{className:"lPart",children:[e(f,{src:Ye(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(N,{className:"goodsInfo",children:[e(N,{className:"goodsName",children:l.goodsName}),e(N,{className:"goodsSize",children:l.skuName})]})]}),e(N,{className:"rPart",children:l.pricesetNprice&&a(N,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(N,{className:"rate",children:[e(N,{className:"title",children:"商品评价"}),e(Ul,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(N,{className:"evaluate",children:e(N,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),d.length?e(u,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0px",marginTop:20},className:"btn",onClick:m,children:"删除"}):null]})})),hs=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.collectOpcode}),children:[e(i,{src:Ye(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},ps=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Pe(),{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,{onChange:i,style:{height:"100%"},children:l.map((a=>e(hs,{item:a,edit:o,checked:r},a.collectId)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),us=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>y("merchantShop",{memberCode:l.collectOpcode}),children:[e(i,{src:Ye(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},gs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Pe(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,{onChange:i,style:{height:"100%"},children:l.map(((a,l)=>e(us,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Ns=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:i,SmoothView:c}=p(),r=n((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(i,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>y("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ye(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},fs=({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(Ns,{footprintItem:a,edit:s},l)))]})},bs=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?qe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(fs,{item:a,edit:o},l)))})},Cs=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:i}=p(),{footprintList:n,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Re();return e(i,{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,{onChange:d,children:e(bs,{footprintList:n,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),ys=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:i})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:b}=Me(),C=qe(),y=C.format("YYYY-MM-DD"),w=n((()=>u.includes(y)),[u,y]),x=n((()=>{const e=C.year(),a=C.month(),l=qe(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,i=l.subtract(t,"day"),n=o.day(),c=0===n?0:7-n,r=o.add(c,"day"),d=[];let m=i;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(C,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[C,u]),k=n((()=>C.format("YYYY年MM月")),[C]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:i+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:k})}),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:x.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:w||f,onClick:b,style:{backgroundColor:o,opacity:w?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":w?"已签到":l})]})]})})})),ws=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:i})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>qe())),[g,N]=t(!1),[f,b]=t((()=>qe().year())),[C,y]=t((()=>qe().month()+1)),{signinDetails:w,loading:x,refresh:k}=Oe(h),S=n((()=>h.format("YYYY年MM月")),[h]),v=n((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=n((()=>w.sort(((e,a)=>qe(a.date).valueOf()-qe(e.date).valueOf()))),[w]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:i+"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),y(a),N(!0)},children:[e(r,{className:"dateText",children:S}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((l,s)=>{const t=qe(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:v.map((l=>e(c,{className:"monthItem "+(C===l?"active":""),onClick:()=>(e=>{y(e);const a=qe(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:C===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,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),Ss=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,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:i.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[qe(n).format("YYYY-MM-DD")," ~ ",qe(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},vs=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(xs[0].val),{list:c,getData:r}=ze({params:i}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(ks,{activeColor:l,setParams:n,params:i}),e(d,{children:e(La,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Ss,{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 Is=()=>{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:i,color:n,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}`,style:{backgroundColor:i,color:n},children:a(r,{className:"coupon-content",children:[e(r,{className:"price",children:e(d,{className:"num",children:o.pbName})}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),a(r,{className:"info-top",children:[e(d,{className:"title",children:o.discName}),a(d,{className:"disc-start",children:["满",o.discStart,"元可用"]})]}),a(d,{className:"date",children:["有效期至:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}),a(d,{className:"date",children:["领取时间:",`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===s.current?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Is,{})})},As=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Fe();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:h.current.map(((l,o)=>a(n,{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(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Bs,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:h})})})})]})})),Ts=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=We({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=T(l,"pbName"),h=T(l,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),g=T(l,"promotionName"),b=qe(T(l,"promotionBegintime")).format("YYYY-MM-DD"),C=qe(T(l,"promotionEndtime")).format("YYYY-MM-DD"),y=T(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:n},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," - ",C]})]})]}),e(u,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ds=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:b}=We({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=T(l,"pbName"),h=T(l,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),u=T(l,"promotionName"),N=qe(T(l,"promotionBegintime")).format("YYYY-MM-DD"),C=qe(T(l,"promotionEndtime")).format("YYYY-MM-DD"),y=T(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:n},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," - ",C]})]}),e(g,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||b.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Vs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=la(l,["type","coupons"]);const{View:i}=p();return a(i,{className:"getCouponOne",children:[1===o?e(Ts,Object.assign({coupons:s},t)):null,2===o?e(Ds,Object.assign({coupons:s},t)):null]})})),Ls=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=je(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},Ps=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=p(),{info:r}=Ge(l);return a(n,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{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(n,{className:"content",children:r.noticeContext})]})})),Rs=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Ee(l),{View:c,ScrollView:r}=p(),{doclistContent:d,doclistTitle:m,doclistTitle4:h}=n;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(La,{id:"a",children:a(r,{children:[e(c,{className:"title",children:m}),e(c,{className:"author",children:h}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:d||""}})]})})})}));export{nl as AddressDetail,ol as AddressList,sl as AddressListBtn,Oa as AfterSalesApply,Qa as AfterSalesDetail,Ea as AfterSalesList,Ja as AfterSalesType,vs as AllPromotionList,Rs as ArticleDetail,Ba as BackTop,xo as CartList,ko as CartOperate,mo as CartTop,ya as ClassifyNav,ka as ClassifyNavOne,xa as ClassifyNavOneJsx,Ia as ClassifyNavThree,Sa as ClassifyNavTwo,ps as CollectionList,gs as CollectionShopList,As as CouponList,Ta as Cube,ds as EvaluateDetail,rs as EvaluateList,ms as EvaluateViewDetail,os as ExpressInfo,Cs as FootPrint,Vs as GetCouponOne,Vl as Goods,Nl as GoodsClassify,wl as GoodsClassifyOne,vl as GoodsClassifyTwo,Zl as GoodsDetailAndEvaluate,Rl as GoodsDetailBanner,Hl as GoodsDetailCoupon,so as GoodsDetailHandleBar,io as GoodsDetailHandleBarOne,Ol as GoodsDetailInfo,Fl as GoodsDetailInfoOne,Gl as GoodsDetailPromotion,jl as GoodsDetailSku,ro as GoodsList,Ll as GoodsSlider,Pl as GoodsSlideshow,aa as Line,ys as MemberSignin,ss as MineData,is as MineFunction,ts as MineOrderEntry,cl as MyAgreementList,dl as MySetting,rl as MySettingJsx,Ls as Notice,Ps as NoticeDetail,es as OrderDetail,Xo as OrderList,jo as PaymentMode,hl as PickupPointList,Bo as PlaceOrderAddress,Po as PlaceOrderAddressTabs,Mo as PlaceOrderCoupon,Oo as PlaceOrderDelivery,zo as PlaceOrderGood,Fo as PlaceOrderInfo,Wo as PlaceOrderOperate,Eo as PlaceOrderResult,Je as QjMobileIcon,Al as Search,Dl as SearchPage,Tl as SearchStyleTwo,Xe as Service,ws as SigninDetail,fa as Slider,ea as TextLine,_e as Title,ra as ToPrice,ba as Video,pl as WechatAddressBtn,ta as addressIdConst,ia as fixPrice,na as fixPrice1,ca as formatTime,sa 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 i,useMemo as n,useRef as c,useContext as r,createContext as d,createElement 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 C,getEnv as y,taroMessage as w,getStorage as x,navigatorBackImpl as S,setStorage as k}from"@brushes/utils";import{queryOcsconfigList as v,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as T,isEqual as D,isEmpty as V,noop as L,groupBy as P}from"lodash-es";import{useCube as R,useGoTop as M,useAfterSalesApply as O,useAfterSalesList as z,afterSalesTabConfig as F,useAfterSalesDetail as W,useAfterSalesChooseType as j,useAddressItem as G,useAddressList as E,useEditAddress as Y,useMySetting as H,usePickupPointItem as U,usePickupPointList as $,useGoodsClassify as K,useGoods as Q,useGoodDetail as q,goodStore as Z,useBanner as X,useGoodCollection as J,useGoodSpecAndPrice as _,useGoodFootprint as ee,useCreatePoster as ae,useGoodsShare as le,useGoodSkuStore as oe,popupImplement as se,usePromotion as te,useAddCoupon as ie,useCoupon as ne,useEvaluate as ce,useAddShopping as re,useGoodSku as de,useGoodsList as me,useCartTop as he,useCartListNext as pe,getRadioValue as ue,useCartOperate as ge,useOrderAddress as Ne,useOrderPickupAddress as fe,userAddressData as be,useOrderGood as Ce,useOrderCoupon as ye,useOrderInfo as we,useOrderPay as xe,useOrderResult as Se,useOrderResultResult as ke,useOrderOperate as ve,orderStatusImpl as Ie,useOrderList as Be,orderStatusList as Ae,useOrderDetail as Te,useExpressInfo as De,useEvaluateDetail as Ve,useEvaluateViewDetail as Le,useCollectionList as Pe,useFootprint as Re,useMemberSignin as Me,useSigninDetail as Oe,useMarketingPromotion as ze,useCouponList as Fe,useAllCoupon as We,useNotice as je,useNoticeDetail as Ge,useArticleDetail as Ee}from"qj-b2c-store";import{fullPath as Ye,checkMobile as He,ProvinceComponent as Ue,CityComponent as $e,AreaComponent as Ke,navigatorLink as Qe}from"@brushes/shared-utils";import qe from"dayjs";import{DynamicForm as Ze}from"@brushes/mobile-form";const Xe=s((({width:a,height:l,top:o,right:s,bottom:t,left:i,borderRadius:n})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:n,top:o,left:i,right:s,bottom:t},className:"components-service"})})),Je=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:i}=p();return e(i,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},_e=s((({value:l,shared:o,goPath:s,textIndent:t,fontSize:i,textAlign:n,color:c,backgroundColor:r,fontWeight:d,textDecoration:m,fontStyle:h,paddingTop:u,paddingLeft:g,paddingRight:N,paddingBottom:f})=>{const{View:y,IconMobile:w}=p(),x=()=>{console.log(107,window.location.href);const e=b();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(y,{className:"components-title",style:{paddingTop:u,paddingBottom:f},children:[e(y,{onClick:()=>{var e;e=l,s&&C("goodList",{searchParam:e})},style:{fontSize:i,textAlign:n,color:c,backgroundColor:r,fontWeight:d,textDecoration:m,fontStyle:h,paddingLeft:g,paddingRight:N,textIndent:t},children:l}),o&&e(y,{onClick:e=>{e.stopPropagation(),x()},children:e(w,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),ea=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:i,textAlign:n,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:n,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${i}px`,color:c},children:o})]})},aa=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:i,paddingBottom:n})=>{const{View:c}=p();return e(c,{style:{paddingTop:i,paddingBottom:n},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function la(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 oa(e,a,l,o){return new(l||(l=Promise))((function(s,t){function i(e){try{c(o.next(e))}catch(e){t(e)}}function n(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(i,n)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const sa=(e="b2c")=>{const[a,l]=t([]),o=n((()=>y()),[]);i((()=>{oa(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>oa(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield v();case"b2b":return yield A().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let l=[];if("b2c"===e){const e=T(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const o=e[a];l.push(`${T(o,"ocserviceConfRemark")}: ${T(o,"ocserviceConfValue")}`)}}else"b2b"===e&&l.push(`客服电话: ${T(a[0],"ocserviceConfValue")}`);return l};return{servicePopup:()=>{if(!o)return;b().showActionSheet({itemList:a})}}},ta={label:""},ia=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",na=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ca=(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}`},ra=e=>1===String(e).indexOf(".")?da(e):ma(e),da=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)},ma=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"},ha=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const pa=(e="")=>n((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ha+e:e?ha+"/paas/shop/"+e:e),[e]),ua=({src:a,style:l,actived:o})=>{const s=c(null);return i((()=>{o?s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current.controls=!0})):(s.current.pause(),s.current.currentTime=0,s.current.controls=!1)}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},ga=s((({item:a,isPlay:o,position:s,direction:t})=>{var i,n;const{Image:c,View:r}=p(),d=pa(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(ua,{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:C.bind(null,null===(i=a.link)||void 0===i?void 0:i.value,null===(n=a.link)||void 0===n?void 0:n.params)})})})),Na=s((({Position:o="none",className:s="",className1:t="",defaultValue:i=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b,selectImg:C,imgHeight:y,fontsize:w=16,textAlign:x="center",fontColor:S="#000000",backGroundColor:k="#ffffff"})=>{const v=n((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),A=R(i,C||[]),T=a=>e(B,{className:t,style:{fontSize:w,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:S,backgroundColor:k},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:b},children:e(I,{imgHeight:y,data:A,className:v,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,i)=>a(l,{children:["top"===o||"bottom"===o?T(s):null,e(ga,{isPlay:t===i,item:s,position:o,direction:m})]})})})})),fa=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:b=0,fontsize:C=16,textAlign:y="center",fontColor:w="#000000",backGroundColor:x="#ffffff",otherStyles:S=[],ImgShadow:k=!1,Position:v="top"})=>{const{View:I}=p(),B=n((()=>f("silder-title",{"silder-tops1":"top"===v&&"horizontal"===d,"silder-bottoms":"bottom"===v&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===v,"silder-tops":"vertical"===d&&"top"===v},...S)),[S,v]);return e(I,{style:{padding:`${N}px ${b}px`},children:e(Na,{Position:v,defaultValue:t,type:i,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:C,textAlign:y,fontColor:w,backGroundColor:x,className:f({"outer-shadow":k}),className1:B})})})),ba=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:i,paddingLeft:n,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:i},children:e("video",{className:"components-video",src:a,poster:l,autoPlay:o,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:n,paddingRight:c}})})})),Ca=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=pa(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},ya=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:i})=>{const{View:n,Text:c}=p(),r=R(l,i);return e(n,{style:{paddingTop:s,paddingBottom:t},children:e(n,{className:"classifyNav",children:r.map(((l,s)=>a(n,{className:"classifyNavItem",onClick:()=>{var e,a;return C(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e(Ca,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),wa=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=pa(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},xa=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=R(a,l);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:o,border:`1px solid ${s}`,backgroundColor:t,boxShadow:i?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,l)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,l;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(wa,{src:a.imgUrl,imgBoxShadow:c,imgRadius:n})},l)))})},Sa=s(xa),ka=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),b=R(a,l),y=n((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:b.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return C(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:y,style:{fontSize:c,color:r},children:a.title})},l)))})})),va=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:i,otherStyle:n,item:c,layout:r}=a,{View:d}=p(),m=pa(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return C(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:i},children:e(d,{className:["classifyNav-three-item-txt",...n].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ia=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:i,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),b=R(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:i?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:b.map(((a,l)=>e(va,{layout:u,item:a,imgRadius:n,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Ba=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=n((()=>y()),[]),{View:i}=p(),{goTop:c}=M();return e(i,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(Je,{style:{display:"inline-block",color:o,fontSize:s,backgroundColor:l,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Aa=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),i=pa(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:i,style:{width:"100%",borderRadius:s+"px"},onClick:()=>{var e,a;return C(null===(e=o.link)||void 0===e?void 0:e.value,null===(a=o.link)||void 0===a?void 0:a.params)}})},Ta=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:i,picGap:n,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:i,paddingRight:t,gap:n},children:u.map(((a,t)=>e(Aa,{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=la(a,["bottomHeight","children","id","heightWrap"]);const d=n((()=>y()),[]),m=function(e){const[a,l]=t(0);return i((()=>{if(!y()||!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 n((()=>{if(!y())return 0;const a=b(),l=a.getStorageSync("safeArea"),o=a.getStorageSync("tabBarHeight")||0;return l+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0)+(e?+e:0)}),[])}(l),{View:u}=p(),g=n((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(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}))},Pa=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:i,WrapLoading:n}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Da);return e(t,{popupVisible:d,popupHandler:c,children:e(n,{loading:u,children:e(l,{className:"reasonPopup",children:e(La,{children:a(i,{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)))})]})})})})})})),Ra=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:i}=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(Je,{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:ia(i)})})]}),e(Pa,{popupShow:s})]})})),Ma=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:i,imgGroup:n,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:[n.length<m?e(l,{className:"add",onClick:i,children:a(l,{className:"addContent",children:[e(Je,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[n.length,"/",m]})]})}):null,n.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(Je,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Oa=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:i,paddingTop:n,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:C,reason:y,handleChooseImg:w,imgGroup:x,placeholder:S,handleDelImg:k,limit:v,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:T}=O({contractBillcode:o,skuCode:s});return e(h,{loading:T,children:e(m,{className:"afterSalesApply",style:{paddingTop:n,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Da.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:b,handleChooseReason:C,reason:y,handleChooseImg:w,imgGroup:x,placeholder:S,handleDelImg:k,limit:v,goodsNum:t,goodsPrice:i,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(Va,{}),e(Ra,{}),e(Ma,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,i),children:"确定"})]})})})},za={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Fa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Wa=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:i,Image:n}=p();return a(i,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(i,{className:"title",children:[a(i,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(i,{className:"rPart",children:[e(Je,{style:{color:null===(s=za[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=za[l.refundType])||void 0===t?void 0:t.icon}),e(i,{className:"txt",children:za[l.refundType].label})]})]}),a(i,{className:"goodsInfo",children:[e(i,{className:"lPart",children:e(n,{src:Ye(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(i,{className:"rPart",children:[e(i,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(i,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(i,{className:"tip",children:[e(i,{class:"lPart",children:Fa[l.refundType][l.dataState]}),e(Je,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ga=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:i,goAfterSalesDetail:n,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?i.map((a=>e(Wa,{data:a,goAfterSalesDetail:n.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ea=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:i,Tabs:n}=p();return e(i,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(n,{defaultIndex:0,tabs:F,render:l=>e(Ga,{item:l,refreshNum:a})})})})),Ya=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:i,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberBname:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ia(i),b=n((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:Ye(o),alt:"",className:"card-item-img"}),a(u,{className:"card-item-info",children:[a(u,{className:"card-item-info-container",children:[e(N,{className:"card-item-info-container-title",children:s}),e(N,{className:"card-item-info-container-price",children:f})]}),a(u,{className:"card-item-info-sub",children:[e(N,{className:"sku",children:c}),e(N,{className:"count",children:b})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ha=(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]}},Ua=o.createContext(null),$a=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Ua),{View:i,SmoothRadio:n,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(i,{className:"reasonPopup",children:e(La,{children:a(m,{children:[e(i,{className:"title",children:"物流选择"}),e(n,{onChange:t,children:l.map(((l,o)=>a(i,{className:"reasonItem",children:[e(i,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Ka=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:i}=r(Ua),{View:n,Input:c}=p();return a(l,{children:[a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流公司"})]}),e(n,{className:"sender_input name_style",onClick:o,children:e(n,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(n,{className:"sender_content",children:[a(n,{className:"sender_name",children:[e(n,{className:"sender_icon",children:"*"}),e(n,{className:"sender_names",children:"物流单号"})]}),e(n,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(n,{className:"expressInfo",children:e(n,{className:"expressInfo_btn",onClick:i,children:"提交物流信息"})}),e($a,{})]})})),Qa=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:i,paddingBottom:n})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:b}=W({refundCode:o}),{dataState:C,gmtCreate:y,ocRefundGoodsList:w,refundMoney:x,refundMeo:S,refundEx:k,refundType:v,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:T,packageCode:D,packageBillno:V}=c,{View:L,Image:P,WrapLoading:R}=p();return e(R,{loading:b,children:e(L,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:n,paddingLeft:t,paddingRight:i},children:a(Ua.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(L,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(L,{className:"left_text",children:Ha(v,C)}),e(L,{className:"right_time",children:qe(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(L,{className:"afterSalesDetailContent",children:a(L,{className:"refundDetail",children:[e(L,{className:"title",children:"退款信息"}),e(L,{className:"goodsDetail",children:null==w?void 0:w.map(((a,l)=>e(Ya,{dataPic:Ye(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"退款原因"}),e(L,{className:"right",children:k})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"退款金额"}),e(L,{className:"right",children:x})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"描述说明"}),e(L,{className:"right",children:S})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"补充凭证"}),e(L,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(P,{src:Ye(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"申请时间"}),e(L,{className:"right",children:qe(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(L,{className:"refund_Detail",children:[e(L,{className:"left",children:"退款编号"}),e(L,{className:"right",children:o})]}),e(l,{children:"B02"===v?a(l,{children:[C>0?a(L,{className:"merchantMsg",children:[e(L,{className:"title",children:"商家信息"}),a(L,{className:"name",children:[B," ",A]}),e(L,{className:"address",children:T})]}):"",1===C?a(L,{className:"writeMsg",children:[e(L,{className:"wlMsg",children:"物流信息"}),e(Ka,{})]}):"",C>1?a(L,{className:"writeMsg",children:[e(L,{className:"wlMsg",children:"物流信息"}),a(L,{className:"express_content",children:[e(L,{className:"name",children:"物流单号"}),e(L,{className:"code",children:V})]}),a(L,{className:"express_content",children:[e(L,{className:"name",children:"物流公司"}),e(L,{className:"code",children:N})]}),a(L,{className:"express_content",children:[e(L,{className:"name",children:"物流公司编码"}),e(L,{className:"code",children:D})]})]}):""]}):""})]})}),0===C?e(L,{className:"footerBtn",children:e(L,{className:"btn",onClick:d.bind(null,w[0].goodsCode),children:"撤销申请"})}):null]})})})})),qa=o.createContext(null),Za=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:i,setTypeTip:n,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(qa),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ia(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:Ye(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(Je,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>n((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),i?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),Xa=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:i}=p(),{goApply:n,goodsNum:c}=r(qa);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(i,{className:"item",onClick:n.bind(null,l.value,s,t,c),children:[e(i,{className:"headline",children:l.label}),e(Je,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),Ja=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:b}=j({contractBillcode:o,skuCode:s}),{View:C,WrapLoading:y}=p();return e(y,{loading:f,children:e(C,{className:"afterSalesType",style:{paddingTop:i,paddingLeft:n,paddingRight:c,paddingBottom:r},children:a(qa.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:b},children:[e(Za,{}),e(Xa,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},_a=({setDefault:a,checked:l})=>{const{SmoothCheckbox:o,Checkbox:s}=p();return e(o,{onChange:a,children:e(s,{checked:l,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},el=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:i}=p(),{handlerImpl:n}=G(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:n,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(i,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(_a,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),e(i,{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:i})=>{const{View:n,Image:c}=p();return e(n,{className:"noData",style:i,children:a(n,{className:"content",children:[e(c,{className:"img",src:l}),e(n,{className:"title",children:o}),e(n,{className:"subTitle",children:s}),t?a(n,{className:"link",onClick:()=>C(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),ol=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:i,color:n})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=E(a);return e(c,{className:"addressListWrap",style:{paddingTop:i+"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:i})=>{const{View:n}=p();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>C("addressEditor"),children:"+ 新增地址"})})})),tl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e?1:0}],il=[{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:He}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:Ue}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:$e}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Ke}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",label:"设置默认地址",name:"addressDefault",extraProps:{color:"#000"}}],nl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:t,paddingBottom:i})=>{const{View:n}=p(),{Button:c}=g,{onSubmit:r}=Y();return e(n,{className:"addressDetail",style:{paddingBottom:i+"px",paddingTop:t+"px"},children:e(Ze,{footer:e(c,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:tl,onSubmit:r,fields:il})})})),cl=s((()=>{const{View:l}=p(),o=e=>{C(`/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(Je,{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,btnShape:o,btnColor:s,borderColor:t,paddingBottom:i,paddingTop:n,color:c})=>{const{View:r,ScrollView:d,Loading:m}=p(),{list:h,loading:u,skullShow:g,onScroll:N}=$(l);return e(r,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:i+"px"},children:g?e(al,{}):e(r,{className:"addressList",children:e(La,{id:"pickupPointListWrap",children:e(d,{onScroll:N,children:h.length?a(r,{children:[h.map(((a,l)=>e(ml,{itemData:a},a&&a.userinfoOcode||l))),u&&e(m,{})]}):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:i})=>{const{View:n}=p();return e(n,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${i}px`},children:e(n,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>oa(void 0,void 0,void 0,(function*(){yield w("导入成功","none")})),children:"导入微信收件地址"})})})),ul=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:i,Text:n,Image:c}=p();return e(l,{children:o.map((l=>e(i,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(i,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(i,{className:"titleWrap",children:[e(n,{className:"title",children:l.goodsClassName}),e(n,{className:"line"})]}):"",e(i,{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(i,{onClick:()=>C("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(i,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:gl}=g,Nl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:i})=>{const{View:n,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(n,{children:e(La,{id:"goodsClassify",children:e(c,{children:a(n,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:i},className:"goodsClassifyContainer",children:[e(n,{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(n,{className:"main",children:e(ul,{navList:m,activeKey:r,cell:l})})]})})})})})),fl=d(null),bl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:i,setSCoe:n,selectFontColor:c}=r(fl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),i(`${a}`),n("0"),h&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:l.map(((a,l)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!0),children:e(u,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>g(!1),children:e(u,{value:"paixusort-sheng"})})}),e(La,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?c:"#000",borderColor:o===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),Cl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:i}=r(fl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${i}, 1fr)`},children:l.map(((l,i)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>C("goodList",{classtreeCode:l.classtreeCode}),children:[e(s,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},i)))})})),yl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:i,selectBlcShow:c,selectBlcStyle:d}=r(fl),m=n((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=n((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=n((()=>{var e;return(null===(e=o[l])||void 0===e?void 0:e.childList)||[]}),[l,a,e]);return{secondList:o,thirdList:s}})({navList:l,fCoe:o,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=p();return e(g,{children:e(La,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,l)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":i,"--adm-color-primary":i}},l)))}),e(Cl,{thirdList:u})]})})})})})),wl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=K(),[g,N]=t("0"),[f,b]=t("0");return e(fl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:b,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:i,selectBlcStyle:n,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(bl,{}),e(yl,{})]})})})),xl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:i,Image:n}=p();return e(i,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(i,{className:"level3ArrItem",onClick:()=>C("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(i,{className:"title",children:l.goodsClassName})]},o)))})})),Sl=s((({navList:l,activeKey:o,layout:s,picShadow:n})=>{var c;const[r,d]=t(0);i((()=>{d(l.findIndex(m))}),[o,r]);const m=e=>e.goodsClassCode===o,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:T(l[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=T(l[r],"childList"))||void 0===c?void 0:c.map(((l,o)=>a(h,{children:["0"===l.goodsClassHide?e(h,{className:"level2Title",children:l.goodsClassName}):"",e(xl,{childList:l.childList,layout:s,picShadow:n,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:kl}=g,vl=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:i,picShadow:n})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(c,{className:"goodsClassifyTwo",children:e(La,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(kl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(kl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Sl,{navList:m,activeKey:r,layout:i,picShadow:n})})]})})})})),Il="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Zud7L0i/s88Nmi2lW965/f7aT6td0xi3r4xMC+wFmBs5cXx8WA0zdYqB8D1wA+16Dv3l0OCYBHAw/pPeL/daDu/g3lCeZ5+5sKfZ8ZuAJwZeBawHEq9GkXvwWuU9TLlbqs080QAFCp8xzgDhWGrCHn0KKNc3tteb6eALheeZ1ob+grq78CNyvjryCKOl30ndS6Ubj4nvc3XMe45t+13j0TeEax4PXsLt1cY5PKqesDzqkreVTdtgC4ax9V27UGwPOAO/YYsV+8KlcX//c9+qnV1DuDR1kfQP8DuC7w1lqD6tNPSwD4BHpoj8EpIC+N3+vRR6umHgnPBjRJd6E/A1cBPtKlcc02rQBwlyKgLmP9RdkmJ/GFbDEBXxTaAR4IHK3DRH8NXAb4Soe21Zq0AIDPqQ8DGnay5G3ed/OPsg1H5PfV8ArgVB3G8A1Ac/dox1ttAPi29i1+ug7CeFK5aHlRmhu5+L5OLtFh4C8f0w5SEwD29UZg/6QQ9Lw5CHhKst3U2LVnvLYofbJjux1wSLZRDf6aALhX0fJlxvV34NblqZhpN1VeNZwupB5MGfJSeMHidZRp15u3FgBOC3y1eOBGB+WX75v4JdEGM+FTphq6suZt7z++LpTLYFQLAK8vWrPMwO8LPC3TYEa8XoDfAlw1OWYvwK9KtunFXgMAVwP0iMmQ5/39Mw1myHv88s5XixilnxTjlEasQagvADzzfMeeJTFalR8+ndSIbXdSc2icgWCI0lOLo0yUvxdfXwB42fG8i5LKDy87U9TuReeQ5btRiSuItvtTCXIZJCilDwDUfhk4YShWlNSBvynKvI34jCXIXAqfUFzim4ugDwC0jL0uMcI3d9ARJLqfNKsKMsPO/DtC3gH0jtYK2pT6AMCzTTVmhNzWDPD4boR5m/LcufhFRKenIU2/wqbUFQAXAD6TGNkji/dvosm2Y9WP4NPA+YIz82Mx2rmpXqArAHy/3zs4kcG2s+B4xmS7QVEXR8dwudbu5V0A4NPvB0A0OtegD71pFtphNv5CIt5RtbJ2gmbUBQB6uEZt9UbIeJn5WbMZzK/jWyXU3+6efmjaCppQFwC8MIFKw6mN8l3ofxI4NqDGz6wlETInwtsijF14ugDAAEgvJxFqOvjIACbK49auISxC3re0mzShLAAMnIhq8dRkaSXU5LvQUSWg1U+39ggZUOKrqwllAXAb4EXBkXhU1IgFCP7crNi8DBouFsl4YuzDKYBftphhFgDq/aPODiZ6MLfOQruXgN5DPgsjZICKUVDVKQsAlT+R7UjlxamnHBRZXZL5DjOaQb2PdbOvThkAyOuzxLx760jvoK4+8+v63i7/blCqcoqQTiI6i1SnDAC80KkAipBbv0fAQnuWgPcAI598Fq4jVcgXXsfU5d8zALhSyZkX+Z1F9x+REnwROHeA1SSWBqtWtwtkAHB74AWBwcpiFKxBoQttLQHN6ZrVI6RGsLpGNQMA8/k8OTJS4OLAJ4K8m8z2xBITEZGBafNMelGVMgBwW39Y8Ne94OgAsdDWEjARptHPEdL3ImOCj/SZSnqQMQF7YZxTfF9IWA2YjH429D1Cag8/GGHM8GR2gIwR6ITlyZgZyybyZiyDJtI01qAqZQCQ0QIaJ9fMhFlVAuN25lM5ellWa2gATlXKAMCECMb9R8g8gBZjWGhrCWReVuZUzAbgrJV/BgC6Kj9gbY87GCzesMkOoEExcR/AQJAINXEPywDAFG/mx4mQ4VAqORbaWgLq+M0tHKHRXwH3KNm8I4M1z957IowbzmP6PI1CETLMzIwiVSmzA2QuLD5vvDMstLUE/EiuGBCSPgFerM01WJUyAHALMhgkQubzu2eEccN5zHYayZksX5e0O2vFmwGAZmDNwZE27+oQG792sNuMISNPk26ZZLs6RRZz5x+NIta8vT4F55jwqbqQ99ChW3/0nvTihBNpavxZAETPLAeh/Vo79kK7l8BjEwEzd03GFYZlngWAUT4mRoyQGUDmnvkrMs+uPB8rVtNIe93wmqSbzwLA553ne4QsuGg61IX+XwInKbb9SN0EvYYMImmSUSULAJ8iZvmwiuc68vz35moUzEJHlcCdgOcGhWIZ28hTMdjdUdmyALC1JsnojXQ7ZwLrJPDSyHqDlwx2oLrYamRNqAsAMiphy7icv8nI59upVUnU6EVlL3+zUrXRQews7uwEzAhmJe6FdkhAJZlFJiPU/APqAgAHbqq3S0VmUN66Xh4X2hHi9Z1ELSJd8KIGuE7y7QoAq4BYDSRKnnc+ezadMiZ1b/3mVmjqWtcVAJZdsxxaJKjBRbe4snEFm0zZfMpmXj+gtcC6AsBxZXwE5TdRhAkjNpUyMQDKSB2KupSm1AcAXgaPACLKDCfhjqG7+GjVMZpKcuvOMwo0ezKPkK+n6pFAuw6zDwDsy2oXRgFFyciiPlXEor8zJT49pLWJ+MFEya3fI6A59QWAaWJNF5spmnTzUmOn+eQm8gPWE8pE9lpyR9+L5l+/8ukLAPvIuIvLr0+BlsLq7k0TWfCdh5HJAbBqZ8naaBa23lOuAQDftt4FolmvHLQp5i2Zpl1hu5IKMN24I3aTlQzMBmZircGoBgAcrPbqZyVH/UlgvxIjn2w6efbzlAyfmY/CQBpDxZupfXcntVoAMA/uxzskMXCrM//N3ya/pPEBetnThStbR9BAURVFg1ItADhoUW9IeLbkum9db70mQZg7+XRz24+m0V3N149HC+vgKfVqAsDJmBbu+R1WUW9jU9AOUiWjw/giTYzetRiGz74M/bYk3tJGMDjVBoATyD57VpP27LMq9xz9CI2ZNHw+c+Fbzds5ZwpvVAVJCwBYIOlwwIwWWTLwwUwk2Qtl9ndq8Zu3R5V413LyHnvWWh6tgHQLAChccwnr9ZI9C1cLY3kZbebfr7VSDfpRvatbV0bDt7thmPfH19AoIGgFACfqpVD3MS2HXcgyM+Yk0hO5ekhUlwGVNt7uze2TKQK17ue8++j3p1Z1UGoJACfixeidHc/GlSDUGAoC7Q6D35J3Wo2Tw3/DudV5RJJlZhdylJ2gNQAUgrd78+LqUdyHzFJuiXmBMFhlzbLFGxlt5Y6+c1g3/8FBMAQAnLQXHZU+hov1JauQGKFkLT6fXS12BTV45uRxm3drHkpOymbQ42DIianm9DiIRMNGQeIb2qrb+s77x9y7XQDhy0WQqr/3QqaxKurnEB1rhm+wnWBIACgAC06Y6OgiGWkkeF189Qkap/xbY5NPLf8YYeNCq6jxDPdMN+mCz9WaoNx1uDrAZGoHr9oPAoKhAeDk/LIsiHjQwFtrAkdVWL2n6PyiYsvqIF1A1vw4GAMAK+nuDxj23PWZWGWVGnWiIsyMKtZXkqyuPkkQjAkABWPs4MGARaW3A6m7MKWuauFdgzk9arynWEgjS82Og7EBsBKEFy9zCuk0OlfylaP2cqv0eJPbCaYCABddM7J2AEvSzulYMIGzETzR2n5ePD0OJrETTAkAqy/fG/qBJSll1qliyN3jy2W791WTdeCczE4wRQCsFnGfon0znaql56dAnuuHlbA4o52yC7/zHCaxE0wZADsLSzdptXLerH2/D026ah9aXi0GuNSi0UEwFwCsBL43cOmirfPieNFGGjuVN7ppebHzi49WS+0CjFFBMDcA7Cpg7wsCwtzECtJXhH/2Da6EW7qp79Qa+mbXNc0oZm3zQ6a4Gw0EcwfAntZZ1auGJwGy+uP/UzunWlgX7CNL/qIutoMgvlJso4BguwIgJfkJMQ/+OlgAMKHVL0PpsxOYkU1DWzipxAKA6QHAEfXZCVLhZQsApgmAviDQKTcUZ7AAYLoA6AMCjWt6S62lBQBrRTQ6Q5fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Bl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Al=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=[],__pageConfig:g})=>{const{View:N,Image:b}=p(),y=n((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>C("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxpositon":"",children:a(N,{className:"components-search",style:{backgroundColor:t,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(b,{src:Il,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:y,style:{color:s,display:"inline-block",fontSize:m},children:l})]})})})),Tl=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:i,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"]})=>{const{View:g,Image:N}=p(),b=n((()=>f("txt",...u)),[u]);return e(g,{onClick:()=>C("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(g,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:i?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(g,{style:{width:"80%"},children:[e(N,{src:Il,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:b,style:{color:s,display:"inline-block",fontSize:m},children:l})]}),e(g,{className:["seachBtn",i?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Dl=s((({placeholder:l,placeholderText:o,history:s,historyText:i,paddingBottom:c,paddingTop:r})=>{const d=n((()=>y()),[]),{View:m,Text:h,Input:u}=p(),[g,N]=t((()=>x("history")||[])),f=e=>{C("goodList",{searchParam:e})};return a(m,{className:"searchPage",style:{paddingTop:r,paddingBottom:c},children:[a(m,{className:"search-title",children:[e("img",{src:Il,alt:""}),e(u,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:e=>oa(void 0,void 0,void 0,(function*(){d&&(N((a=>{if(!a.includes(e.detail.value)&&e.detail.value){const l=a.concat(e.detail.value);return k("history",l),l}return a})),f(e.detail.value))}))},l?{placeholder:o}:{})),e(h,{className:"btn",onClick:()=>S(),children:"取消"})]}),s?a(m,{className:"historyWrap",children:[a(m,{className:"title",children:[a(m,{className:"label",children:[e(m,{className:"icon"}),i]}),e(Je,{onClick:()=>oa(void 0,void 0,void 0,(function*(){(yield b()).removeStorageSync("history"),N([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(m,{className:"content",children:g.map(((a,l)=>e(m,{onClick:()=>f(a),className:"historyItem",children:a},l)))})]}):null]})})),Vl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:n=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:b,paddingLeft:y,paddingRight:w,goodsName:x=!0,goodsPrice:S=!0,goodsCar:k=!0,goodsBorder:v=!0,goodsShadow:B=!1,marginGap:A=10})=>{const[L,P]=t(l),R=c(),{View:M,Text:O}=p();return i((()=>{D(R.current,u)||(R.current=u,V(u)?P(l):oa(void 0,void 0,void 0,(function*(){try{const e=yield I({[h]:u.toString(),goodsType:"00,40,50",distinctField:"goodsNo"}),a=T(e,"list",[]);P(a)}catch(e){P(l)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:b},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:A,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:w},children:L.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:n?"8px":"0px",border:v?"1px solid #000000":""},onClick:()=>C("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${Ye(l.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:x?"block":"none"},children:l.goodsName}),e(M,{className:"subTitle",children:l.brandName}),d&&a(M,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(M,{className:"price",children:[a(M,{style:{fontSize:18},children:[S?ia(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ia(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:k?"block":"none"},children:e(Je,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Ll=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:i,apiKey:n="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:b,marginRight:y})=>{const{View:w}=p(),{list:x}=Q({defaultValue:l,goods:o},n);return e(w,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:b,marginRight:y},children:x.map(((l,o)=>a(w,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>C("goodDetail",{skuCode:l.skuCode}),children:[e(w,{className:"img",style:{backgroundImage:`url(${Ye(l.dataPic)})`}}),a(w,{className:"board",children:[e(w,{className:"title",children:l.goodsName}),a(w,{className:"info",children:[a(w,{className:"lPart",children:[s?e(w,{className:"price",children:ia(l.pricesetNprice)}):null,t?e(w,{className:"marketPrice",children:ia(l.pricesetMakeprice)}):null]}),i?e(w,{className:"rPart",children:e(Je,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Pl=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:i,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:b,btnRadius:w})=>{const x=n((()=>y()),[]),{list:S}=Q({defaultValue:l,goods:o},m),{SmoothSwiper:k,View:v,Image:I}=p(),[B,A]=t(0);return a(v,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(k,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:S,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(v,{className:["goodsSlideshowItem",""+(l.goodsCode===S[B].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>C("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:Ye(l.dataPic),mode:"widthFix"}),c?e(v,{className:"goodsName",children:l.goodsShowname}):null,r?a(v,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(v,{className:"price",children:ia(l.pricesetNprice)}):null,i?e(v,{className:"marketPrice",children:ia(l.pricesetMakeprice)}):null,e(v,{className:"btn",style:{backgroundColor:f,color:b,borderRadius:w},children:N})]})})]})})),Rl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:i=""}=q(o,s),n=Z.getState();Z.setState(Object.assign(Object.assign({},n),{memberCode:i})),console.log(24,i);const c=X(t);return e(Na,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Ml=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:i}=J(l);return a(s,{onClick:t,children:[V(i.dataObj)?e(Je,{value:"star-fill",style:{fontSize:20}}):e(Je,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:V(i.dataObj)?"收藏":"已收藏"})]})},Ol=({skuCode:l,priceShow:o,collectionShow:s,scene:t})=>{const{View:i,SmoothView:n,Button:c,IconMobile:r}=p(),{rsSkuDomainList:d,rsGoodsFileDomainList:m}=q(l,t),{goodInfo:h}=_(d);ee(l);const{init:u,canvasRef:g}=ae();return a(i,{className:"goodsDetail-topInfo",children:[e("canvas",{ref:g,width:300,height:600,style:{display:"none",border:"1px solid #ccc",width:"300px",height:"600px"}}),a(i,{className:"lPart",children:[e(n,{className:"name",children:h.goodsName}),a(i,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(i,{style:{display:"flex",flexDirection:"column"},children:[a(n,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ia(h.pricesetNprice)]}),a(n,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ia(h.pricesetNprice)]}),a(n,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ia(.9*h.pricesetNprice)]})]}),e(c,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>u(m,h.goodsName),children:"生成海报"}),e(i,{onClick:e=>{e.stopPropagation(),(()=>{console.log(107,window.location.href);const e=b();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(r,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(i,{className:"rPart",style:{display:s?"flex":"none"},children:e(Ml,{goodsName:h.goodsName,pricesetNprice:h.pricesetNprice,dataPic:Ye(h.dataPic),skuCode:l})})]})},zl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:i,collection:n}=J(l),{handleShare:c}=le();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:i,style:{borderRight:s?"1px solid #ddd":"none"},children:V(n.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Fl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:i})=>{const{View:n,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,i),{goodInfo:d}=_(r);return oe((e=>e.spec)),ee(t),a(n,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ia(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(zl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:Ye(d.dataPic),skuCode:t})]})})),Wl=s((()=>{const{Text:e}=p(),l=oe((e=>e.count)),o=oe((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),jl=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:i}=se(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:i,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Wl,{}),e("img",{src:Bl,alt:"",className:"icon"})]})]})})},Gl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:i}=q(l,o),{goodInfo:n}=_(i),c=te(i,n.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},l)=>e(s,{className:"item",children:a},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},El=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ie(),N=n((()=>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:i}),a(h,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(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:"已领完"})]})})})),Yl=()=>{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"})})},Hl=o=>{var{skuCode:s,scene:t}=o;la(o,["skuCode","scene"]);const{View:i,Text:n,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ne(d,h.skuCode);return a(l,{children:[a(i,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(n,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(n,{className:"label",children:"请选择优惠券"}),e(r,{src:Bl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(i,{className:"goodsDetail-coupon-popup",children:e(La,{children:u.length>0?u.map(((e,a)=>m(El,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(Yl,{}),e(i,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Ul=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:n}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);i((()=>{if(s){const e=[...c];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!l){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(n,{children:c.map(((a,l)=>e(Je,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},$l=({item:l})=>{const{View:o,Image:s,Text:t}=p();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl,className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Ul,{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()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent}),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]})},Kl=({evaluateArr:l})=>{const{View:o}=p();return console.log(7,l),e(o,{className:"goodsDetailEvaluate",children:l.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",l.length,")"]}),l.slice(0,5).map(((a,l)=>e($l,{item:a},l)))]}):e(ll,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},Ql=({goodsRemark:a})=>{const{View:l}=p(),o=n((()=>a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[a]);return e(l,{className:"goodsDetail-info",children:e("div",{dangerouslySetInnerHTML:{__html:o||""}})})},ql=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:i,evaluateImg:c})=>{const{Text:r}=p(),d=n((()=>i?[{title:"商品详情",id:"1"},{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)))})},Zl=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:i,scene:n})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(i,n),u=ce(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(Ql,{goodsRemark:m}):e(Kl,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},Xl=({skuName:l,handleChooseSize:o,spec:s,skuOption:t,index:i})=>{const{View:n,Text:c}=p(),r=oe((e=>e.offShelf));return a(n,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(n,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(n,{className:f({sizeItem:!0,active:s[i]===a.specValueValue,offShelf:s[i]===a.specValueValue&&r}),onClick:o.bind(null,a.specValueValue,i),children:a.specValueValue},l)))})]})},Jl=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=oe((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),_l=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:i})=>{const{Image:n,View:c}=p(),{skuList:r}=o,d=i&&"06"===i.goodsType?i.pricesetRefrice+"积分":ia(i.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(n,{src:Ye(i.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:i.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]})]})]}),r.map(((a,l)=>e(Xl,{spec:t,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},eo=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:i,View:n}=p(),c=oe((e=>e.isNeedButton)),r=oe((e=>e.offShelf));return r?e(n,{className:f({btnWrap:!0,offShelf:r}),children:e(i,{className:"btn",children:"已下架"})}):e(l,{children:c?e(n,{className:"btnWrap",onClick:s,children:e(i,{className:"btn",children:"确认"})}):a(n,{className:"goods-detail-btn-group popup-buy-button",children:[e(n,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(n,{className:"btn buy",onClick:o,children:"立即购买"})]})})},ao=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:i,ScrollView:n}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=re(o,s,t,l);return a(i,{className:"goodsDetail-size-popup",children:[e(La,{children:e(n,{children:a(i,{className:"content",children:[e(_l,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(Jl,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(eo,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),lo=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:i}=p();return e(i,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(ao,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},oo=s((({serverShow:o,cartShow:s,lPartShow:t,lPartColor:i,lPartBgColor:n,lPartStyle:c,rPartColor:r,rPartBgColor:d,rPartStyle:m,rPartText:h,dispatchPageStore:u,skuCode:g,platform:N,scene:f})=>{const{View:b,IconMobile:y,Text:w}=p(),x=oe((e=>e.offShelf)),{rsSkuDomainList:S,goodPro:k}=q(g,f),{goodInfo:v}=_(S),{servicePopup:I}=sa(N),{addCardPopup:B,buyOpenPopup:A}=se(u);return a(b,{className:"goodsDetailHandleBar",children:[a(b,{className:"linkGroup server",onClick:I,style:{display:o?"block":"none"},children:[e(y,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(b,{className:"txt",children:"客服"})]}),a(b,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:s?"block":"none"},children:[e(y,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(b,{className:"txt",children:"购物车"})]}),e(b,{className:"goods-detail-btn-group",children:x?e(b,{className:"btn addCart offShelf",children:e(w,{className:"btn",children:"已下架"})}):a(l,{children:["26"===k||!1===t?null:e(b,{className:"btn addCart",onClick:B,style:{color:i,backgroundColor:n,borderTopLeftRadius:c,borderBottomLeftRadius:c},children:"加入购物车"}),e(b,{onClick:A,className:"btn buy",style:Object.assign({color:r,backgroundColor:d,borderTopRightRadius:m,borderBottomRightRadius:m},!1===t?{borderTopLeftRadius:m,borderBottomLeftRadius:m}:{}),children:h||("10"===v.goodsPro?"预售抢购":"立即购买")})]})})]})})),so=o=>{var{$_dataSource:s={},dispatchPageStore:t=L,skuCode:i,scene:n}=o,c=la(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(i,n),h=de(r,m),{popupVisible:p}=s;return a(l,{children:[e(oo,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(lo,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},to=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:i,lBtnStyle:n,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:b}=p(),{rsSkuDomainList:y}=q(u,g),{goodInfo:w}=_(y),{servicePopup:x}=sa(N),{addCardPopup:S,buyOpenPopup:k}=se(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:l?"block":"none"},children:[e(b,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>C("shopping"),style:{display:o?"block":"none"},children:[e(b,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"购物车"})]}),a(f,{className:"goods-detail-one-btn-group",children:[e(f,{className:"btn addCart",onClick:S,style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0"},children:"加入购物车"}),e(f,{onClick:k,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===w.goodsPro?"预售抢购":"立即购买"})]})]})})),io=o=>{var{popupVisible:s=!1,dispatchPageStore:t=L,skuCode:i,scene:n}=o,c=la(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(i,n),h=de(r,m);return a(l,{children:[e(to,Object.assign({skuCode:i},c,{dispatchPageStore:t})),e(lo,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},no=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],co=({setParams:l,activeColor:o})=>{const{View:s}=p(),[i,n]=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 "+(i===m?"active":""),onClick:()=>((e,a,o)=>{n(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:i===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(Je,{style:{color:i===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Je,{style:{color:i===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},ro=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:i=!0,goodsPrice:c=!0,lineationGoods:r=!0,salesQuantity:d=!0,goodsCar:m=!0,borderRadius:h=!0,goodsColor:u=!0,goodsGap:g=10,paddingLR:N=0,__link__:b={}})=>{console.log(111,b);const{View:C,Loading:y,SmoothView:w,Image:x,ScrollView:S,IconMobile:k}=p(),[v,I]=t({}),{loading:B,getData:A,list:T}=me(l,o,v),D=n((()=>f("textBox",{btm:!c&&!r})),[c,r]),V=n((()=>f("name",{boxNone:!i})),[i]),L=n((()=>f("middle_margin",{boxNone:!d})),[d]),P=n((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=n((()=>f({detailContent:!(V.includes("boxNone")&&L.includes("boxNone")&&P.includes("boxNone"))})),[V,L,P]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(co,{setParams:I,activeColor:s})}),e(C,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(La,{id:"listWrap",children:a(S,{onScroll:()=>A(v),children:[e(C,{className:"list",style:{gap:g},children:T.map((l=>a(C,{onClick:()=>Qe(b,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:Ye(l.dataPic),className:"img"}),a(C,{className:R,children:[e(w,{className:V,children:l.goodsName}),a(C,{className:L,children:["已售:",l.goodsNum]}),a(C,{className:P,children:[a(C,{className:D,children:[e(w,{className:"price",style:{display:c?"block":"none"},children:ia(l.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:r?"block":"none"},children:ia(l.pricesetMakeprice)})]}),e(C,{style:{display:m?"block":"none"},children:e(k,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),mo=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:i,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=he(a),h=n((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?i:"",borderRadius:o?c:""})),[o,s,t,i,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},ho=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:i}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(i,{"data-code":o,checked:o,value:s})})]})})),po=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:i,ScrollView:n,View:c,SmoothRadio:r}=p();return e(i,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(La,{children:e(n,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(ho,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},uo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:i,shoppingGoodsId:n,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 ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ia(c)}),0===s&&e(h,{count:i,handleStep:r.bind(null,n,i)})]})]})})})),go=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:i}=p(),c=n((()=>{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(i,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(i,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>C("goodDetail",{skuCode:s})})]})})),No=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:i}=p(),c=n((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(i,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),fo=({promotion:o=[],updatePm:s,shoppingGoodsId:i,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=n((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{children:[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(i,"-"))},children:e(po,{promotionCode:c,onChange:e=>{m(!1),s(i,ue(e))},promotion:o||[],visible:d,setVisible:m})})]})},bo=s((l=>{var{item:o}=l,s=la(l,["item"]);const{View:t}=p(),{select:i,cartIsEditor:n}=s;return a(t,{className:"cart-list-item",children:[e(No,{cartIsEditor:n,dataState:o.dataState,select:i,shoppingGoodsId:o.shoppingGoodsId}),e(go,{dataState:o.dataState,dataPic:Ye(o.dataPic),skuCode:o.skuCode}),e(uo,Object.assign({},o,s))]})})),Co=o=>{var{shoppingGoodsList:s=[]}=o,t=la(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(bo,Object.assign({},t,{item:l})),l.pmPromotionList?e(fo,{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(),i=n((()=>V(o)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>Qe(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}),i]})},wo=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:i,SmoothView:n}=p();return a(i,{className:"cart-dis-title",children:[e(n,{className:"tips",children:s}),e(n,{className:"title",children:o}),l&&e(yo,{link:t,disNextMsg:l})]})},xo=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:i={},cartItemRadius:n="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:b,handleStep:C,updatePm:y}=pe(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:n},children:[t?e(wo,{link:i,disNextMsg:s,promotionName:t,pbName:c}):null,e(Co,{cartIsEditor:g,promotionCode:o,handleStep:C,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:n})]})]},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:i="#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:C,clearAll:y,selectAll:w,ids:x,cartDetail:S}=ge(N,u,o),k=n((()=>({border:`1px solid ${s}`,color:t,background:i,borderRadius:c})),[s,t,i,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:w,children:e(h,{checked:u.length===N.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),a(r,f?{className:"del",children:[x.length?e(r,{onClick:y,className:"btn",style:{marginRight:5},children:"一键清空失效商品"}):null,e(r,{onClick:C,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ia(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ia(S.amount)})]})]}),a(r,{onClick:b,className:"btn",style:k,children:["结算(",S.num,")"]})]})]})},ko=({address:a})=>e(l,{children:V(a)?e(Io,{}):e(vo,{address:a})}),vo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),i=n((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:i="",addressPhone:n=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:n,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.addressMember}),e(s,{className:"left-padding",children:i.addressPhone}),i.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Io=()=>{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"})]})},Bo=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s=""})=>{const{View:t}=p(),i=Ne(a,o,l,s);return e(t,{className:"placeOrder-chooseAddress",onClick:()=>C("addressList"),children:e(ko,{address:i})})},Ao=({address:a})=>e(l,{children:V(a)?e(Do,{}):e(To,{address:a})}),To=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),i=n((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:i=""}=l;return{displayName:t,displayPhone:i,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(s,{children:i.displayName}),e(s,{className:"left-padding",children:i.displayPhone})]}),e(s,{className:"left-detail",children:i.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Do=()=>{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"})]})},Vo=({refreshNum:a})=>{const{View:l}=p(),o=fe(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>C("pickupPointList"),children:e(Ao,{address:o})})},Lo=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,i)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Po=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:n=""})=>{const{View:c,Text:r}=p(),[d,m]=t("0");return i((()=>{be.contractPumode=d}),[d]),a(c,{className:"placeOrderAddressTabs",children:[a(c,{className:"delivery-header",children:[e(r,{className:"delivery-label",children:"配送方式:"}),e(c,{className:"tabs",children:e(Lo,{tabActive:d,setTabActive:m})})]}),e(c,{className:"content",children:"0"===d?e(Bo,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:n}):e(Vo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:n})})]})},Ro=s((({couponStart:l,pbName:o,discName:s,promotionCode:t,promotionName:i,couponEnd:n})=>{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:i}),a(r,{className:"date",children:[qe(l).format("YYYY-MM-DD")," - ",qe(n).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Mo=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i})=>{const{View:n,Text:c,Popup:r,SmoothRadio:d,ScrollView:h,Radio:u,Image:g}=p(),{shoppingGoodsList:N}=Ce({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:i}),{coupon:f,visible:b,setVisible:C,selectCoupon:y,onChange:w,onCreditChange:x,contractPmode:S,onPayChange:k,payList:v,payName:I,creditList:B,creditInfo:A,selectCredit:T,creditVisible:D,payVisible:V,setPayVisible:L,handleChooseImg:P,contractEcurl:R,setCreditVisible:M}=ye(N);return a(l,{children:[a(n,{className:"coupon-select",onClick:()=>C(0!==f.length),children:[e(c,{className:"label",children:"使用优惠"}),a(n,{className:"info",children:[e(c,{className:"label",children:y?`已选择: ${y}`:0===f.length?"暂无可用优惠券":"请选择优惠券"}),0===f.length?null:e("img",{src:Bl,alt:"",className:"icon"})]})]}),a(n,{className:"coupon-select",onClick:()=>L(!0),children:[e(c,{className:"label",children:"支付方式"}),a(n,{className:"info",children:[e(c,{className:"label",children:I?`已选择: ${I}`:"请选择支付方式"}),0===f.length?null:e("img",{src:Bl,alt:"",className:"icon"})]})]}),A.urechargeId&&"0"===S&&a(n,{className:"coupon-select",onClick:()=>M(0!==B.length),children:[e(c,{className:"label",children:"使用授信"}),a(n,{className:"info",children:[e(c,{className:"label",children:T?0===+T?"不使用":`已选择: ${T}%`:"请选择授信"}),0===f.length?null:e("img",{src:Bl,alt:"",className:"icon"})]})]}),"1"===S&&a(n,{className:"coupon-select",children:[e(c,{className:"label",children:"附件上传"}),a(n,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(n,{className:"img-fields",onClick:P,children:R?e(g,{src:R,className:"img",alt:R,mode:"widthFix"}):e(n,{children:"上传图片"})}),e(n,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(r,{popupVisible:V,popupHandler:L,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(h,{children:e(d,{value:S||"",onChange:k,children:v.map(((l,o)=>a(n,{style:{marginBottom:5},children:[e(u,{checked:l.ptfpmodeType===S,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(r,{popupVisible:D,popupHandler:M,children:e(n,{className:"goodsDetail-coupon-popup ver-line",children:e(La,{children:e(h,{children:e(d,{onChange:x,children:B.map(((l,o)=>a(n,{style:{marginBottom:5},children:[e(u,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(r,{popupVisible:b,popupHandler:C,children:e(n,{className:"goodsDetail-coupon-popup",children:e(La,{children:e(h,{children:e(d,{onChange:w,children:f.map(((e,a)=>m(Ro,Object.assign({},e,{key:a}))))},"visible")})})})})]})},Oo=({shippingMethod:l=1})=>{const{View:o}=p();return e(o,{className:"info placeOrder-blcWrap",style:1===l?{display:"block"}:{display:"none"},children:a(o,{className:"express placeOrder-blcItem",children:[e(o,{className:"label",children:"配送方式"}),e(o,{className:"value",children:"快递"})]})})},zo=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{View:i}=p(),{list:n}=Ce({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t});return console.log(9,n),e(i,{className:"place-order-goods",children:n.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e(Ya,Object.assign({},a),o)))})))})},Fo=({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t})=>{const{View:i,SmoothView:n,Image:c,TextArea:r,Textarea:d}=p(),m=d||r,h=Ce({refreshNum:l,goodsNum:o,skuId:s,shoppingGoodsId:t}),{payState:u,disCount:g,creditMoney:N,freight:f,payPrice:b,rebMoney:C}=h,y=h.pointsDeduction||0,w=h.urDiscount||0,{shoppingCountPrice:x,comDisMoney:S,changeContent:k,shoppingType:v,pricesetRefrice:I}=we(u),B="06"===v?I+"积分":ia(x),A="06"===v?Math.max(Number(I)-y,0)+"积分":ia(Math.max(b-N,0));return e(i,{style:{paddingBottom:80},children:a(i,{className:"price placeOrder-blcWrap",children:[e(i,{className:"title",children:"价格明细"}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"商品总金额"}),e(n,{className:"value",children:B})]}),null!==y&&a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"积分抵扣"}),a(n,{className:"value",style:{color:"#f00"},children:["-","06"===v?y+"积分":ia(y)]})]}),"06"===v?null:a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"会员权益优惠"}),a(n,{className:"value",style:{color:"#f00"},children:["-",ia(w)]})]}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"授信付款:"}),e(n,{className:"value",children:ia(-N)})]}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"返利金额"}),e(n,{className:"value",children:ia(-C.current)})]}),a(i,{className:"coupon placeOrder-blcItem",children:[e(i,{className:"label",children:"优惠金额"}),e(n,{className:"value",children:ia(-(S+g))})]}),a(i,{className:"express placeOrder-blcItem",children:[e(i,{className:"label",children:"运费"}),e(n,{className:"value",children:ia(f)})]}),a(i,{className:"all placeOrder-blcItem",children:[e(i,{className:"label",children:"订单备注"}),e(m,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:k})]}),a(i,{className:"all placeOrder-blcItem",children:[e(i,{className:"label",children:"总计"}),e(n,{className:"value",style:{color:"#000"},children:A})]})]})})},Wo=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r})=>{const{View:d,Text:m,WrapLoading:h}=p(),{payPrice:u,list:g,payState:N,creditMoney:f,ocContractSettlList:b,pointsDeduction:C}=Ce({refreshNum:i,goodsNum:n,skuId:c,shoppingGoodsId:r}),{savePayPrice:y,loading:w}=xe({ocContractSettlList:b,payState:N,list:g},r,Math.max(u-f,0)),x={shoppingType:"",pricesetRefrice:0};N&&N.length>0&&(x.shoppingType=N[0].shoppingType||"",x.pricesetRefrice=N[0].pricesetRefrice||0);const S="06"===x.shoppingType?Math.max(Number(x.pricesetRefrice)-C,0)+"积分":ia(Math.max(u-f,0));return a(d,{className:"placeOrderFooter",children:[a(m,{className:"price",children:["合计: ",S]}),e(h,{loading:w,children:e(d,{className:"btn",onClick:y,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},jo=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=n((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:b,SmoothRadio:C}=p(),{paymentImpl:w,channelList:x,contract:S,handleRadio:k,loading:v}=Se({contractBillcode:l,contractBbillcode:o});return i((()=>{console.log("打印下当前的channelList",x)}),[]),a(u,{className:"paymentModeWrap",style:{height:h?"inherit":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:[a(u,{className:"paymentMode",children:[a(u,{className:"topInfo",children:[a(g,{className:"title",children:[e(f,{value:"roundcheck"}),"订单提交成功"]}),a(u,{className:"info",children:["订单号:",S.current.contractBillcode," | 总金额:",ia(S.current.contMoney+(S.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ia(S.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(C,{onChange:k,children:null==x?void 0:x.map((l=>a(u,{className:"paymentItem",children:[e(f,{value:l.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:l.fchannelName}),e(N,{value:"1"===l.ptfchannelAmt?l.ptfchannelAmt:l.fchannelCode,className:"choose"})]}),"1"===l.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",l.faccountAmount,"元"]}),a(u,{children:["支付金额:",ia(S.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(b,{loading:v,children:e(u,{className:"btnGroup",onClick:w,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Go=({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:ia(l.dataBmoney)})]})]})},Eo=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:i,leftBorderRadius:n,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:b,IconMobile:y,WrapLoading:w}=p(),{result:S,loading:k}=ke(l||(x("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(w,{loading:k,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(y,{value:S.icon,style:{fontSize:"35px",color:S.color}}),a(f,{className:"tips",children:[e(b,{className:"title",children:S.msg}),e(b,{className:"tip",children:S.info})]}),"success"===S.sysRecode&&e(Go,{dataObj:S.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>C(S.menuCode,{contractBillcode:S.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${i}`,borderRadius:1===n?"20px":"0px"},children:S.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>C(r.value),className:"btn white",children:c})]})]})})})})),{Button:Yo}=g,Ho=a=>{var{dataState:o}=a,s=la(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Uo,Object.assign({dataState:o},s))})},Uo=a=>{var{dataState:l,contractAppraise:o,color:s,borderColor:t,btnColor:i,btnShape:n}=a,c=la(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:d,handlerImpl:m}=ve(Object.assign({dataState:l},c));return e(r,{className:"btnGroup",children:d.map(((a,l)=>e(Yo,{style:{color:s,borderColor:t,backgroundColor:i},className:f({btn:!0,white:0===l,black:1===l}),onClick:()=>m(a.handler),shape:n,children:a.name},l)))})},{Button:$o}=g,Ko=({contractPaydate:a,init:o,countdownCancel:s,contractId:n})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,n]=t("");return i((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,i=s.getTime()-(t.getTime()-3600);i<999&&i>0?l(o).then((()=>{a()})):i>1e3&&n(ca(i,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,n);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function Qo({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:i,contractId:n,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,countdownCancel:u}){const{View:g}=p(),N=Ie(i);return a(g,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(g,{onClick:()=>C("orderDetail",{contractBillcode:l}),children:[a(g,{className:"topInfo",children:[a(g,{className:"orderNo",children:["订单号: ",l,e($o,{className:"copy",size:"mini",fill:"outline",children:"复制"})]}),e(g,{className:"status",children:N})]}),e(g,{className:"card-item-info-countDown"}),e(g,{className:"goodsItemWrap",children:t.map((a=>e(Ya,Object.assign({},a,{dataState:i,children:1===i&&e(Ko,{contractPaydate:h,init:c,countdownCancel:u,contractId:n})}),a.contractGoodsId)))})]}),a(g,{className:"allInfo",children:[a(g,{className:"totalNum",children:["共",s,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",ia(o)]})]}),e(Ho,{init:c,contractId:n,contractBillcode:l,dataState:i,contractAppraise:r,dataBmoney:o})]})}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 Zo=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t}){const{View:i,ScrollView:n,Loading:c}=p(),{onScroll:r,data:d,loading:h,init:u,countdownCancel:g}=Be(l,o);return e(i,{className:"orderListItemWrap",children:e(La,{id:"orderListItemWrap",children:e(n,{onScroll:r,children:d.length>0?a(i,{children:[d.map(((e,a)=>m(Qo,Object.assign({init:u},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:g})))),e(i,{children:h?e(c,{}):null})]}):a(i,{className:"nodata_img",children:[e(qo,{}),e(i,{className:"nodata-btn",onClick:()=>C("goodList"),children:"前往购物"})]})})})})})),Xo=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12})=>{const{View:t,Tabs:i}=p();return e(t,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:Ae,render:l=>e(t,{className:"orderList",children:e(Zo,{item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),{Button:Jo}=g,_o=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=n((()=>y()),[]);return e(Jo,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=b();if(""===a)return void e.showToast({title:"复制内容为空",icon:"error"});e.setClipboardData({data:a,success:()=>{e.showToast({title:"复制成功",icon:"success"}),o(!0)},fail:()=>{e.showToast({title:"复制失败",icon:"error"})}})}},children:l?"已复制":"复制"})})),es=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:i,paddingBottom:n,paddingTop:c,borderColor:r,btnColor:d,btnShape:m})=>{const{View:h,Text:u,Image:g}=p(),{orderDetail:N,handleApplyBtn:f,creditMoney:b,packageRemark:y}=Te(o||""),w=e=>qe(e).format("YYYY-MM-DD HH:mm:ss");return a(h,{className:"orderDetail",children:[e(h,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(h,{className:"orderDetailTopTitleContent",children:[a(h,{className:"icon_text",children:["待收货"===Ie(N.dataState)?e(Je,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(u,{className:"title",children:Ie(N.dataState)})]}),e(h,{className:"subTitleWrap",children:w(N.gmtCreate)})]})}),e(h,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:n+"px"},children:a(h,{style:{position:"relative",top:-26},children:[a(h,{className:"addressInfo",children:[e(h,{className:"lPart",children:e(Je,{value:"dizhi"})}),a(h,{className:"mPart",children:[a(h,{className:"personInfo",children:[e(u,{className:"personName",children:N.goodsReceiptMem}),e(u,{className:"personPhone",children:N.goodsReceiptPhone})]}),e(h,{className:"address",children:N.goodsReceiptArrdess})]}),e(h,{className:"rPart"})]}),a(h,{className:"orderDetailGoodsWrap",children:[N.goodsList.map((o=>a(l,{children:[e(Ya,Object.assign({},o),o.contractGoodsId),e(h,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{C("goodDetail",{skuCode:o.skuCode})},children:"商品快照"}),Number(N.dataState)>1&&Number(N.dataState)<5?e(h,{className:"orderBtn",onClick:f.bind(null,o,N.dataState),children:"申请退款(取消订单)"}):""]}))),a(h,{className:"priceInfo",children:[a(h,{className:"priceInfoFloor top",children:[a(h,{className:"totalNum",children:["共",N.goodsNum,"件商品"]}),a(h,{className:"totalPrice",children:["合计 ",parseFloat((N.dataBmoney-N.refundMoney).toFixed(2))]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"商品总额"}),a(h,{className:"totalPrice",children:["¥",N.contractInmoney]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"运费"}),a(h,{className:"totalPrice",children:["¥",N.goodsLogmoney]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"优惠"}),a(h,{className:"totalPrice",children:["¥",-N.goodsPmoney]})]}),a(h,{className:"priceInfoFloor",children:[e(h,{className:"totalNum",children:"客服电话"}),e(h,{className:"totalPrice",children:"13284246638"})]})]})]}),s&&a(l,{children:[a(h,{className:"express",children:[e(h,{className:"label",children:"物流信息"}),e(h,{className:"name",children:"韵达快递"})]}),a(h,{className:"express",children:[e(h,{className:"label",children:"配送信息"}),e(h,{className:"name",children:"1"===N.contractPumode?"自提":"快递"})]}),a(h,{className:"express",children:[e(h,{className:"label",children:"发票信息"}),e(h,{className:"name",children:"未开票"})]})]}),a(h,{className:"orderInfo",children:[e(h,{className:"orderInfoItem",children:e(h,{style:{fontSize:14},children:"订单信息"})}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"买家留言"}),e(h,{className:"name",children:y||"-"})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"订单编号"}),a(h,{className:"context_copy",children:[e(h,{className:"name",children:N.contractBillcode}),e(_o,{copyContent:N.contractBillcode})]})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"下单时间"}),e(h,{className:"name",children:w(N.gmtCreate)})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"授信金额"}),e(h,{className:"name",children:ia(-b)})]}),a(h,{className:"orderInfoItem",children:[e(h,{className:"label",children:"支付方式"}),e(h,{className:"name",children:e(h,{className:"name",children:"0"===N.contractPmode?"线上支付":"线下支付"})})]}),"1"===N.contractPmode&&a(h,{className:"orderInfoItem container-img-top",children:[e(h,{className:"label",children:"付款凭证"}),e(h,{className:"name",children:e(g,{mode:"widthFix",style:{width:100},src:Ye(N.contractEcurl)})})]})]}),e(h,{className:"btnGroupFooter",children:e(Ho,{borderColor:r,btnColor:d,btnShape:m,color:i,contractBillcode:N.contractBillcode,contractId:N.contractId,dataState:N.dataState,dataBmoney:N.dataBmoney})})]})})]})})),as=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:i}=p(),n=T(o,"packageList[0].contractGoodsList[0].dataPic",l.dataPic),c=T(o,"packageList.length",l.count),r=T(o,"packageList[0].expressName",l.expressName),d=T(o,"packageList[0].packageBillno",l.packageBillno),m=T(s,"state",l.result)||"-1";return a(i,{className:"expressInfoTop",children:[e(i,{className:"goodsImg",style:{backgroundImage:`url(${n})`},children:a(i,{className:"tip",children:["共 ",c," 件商品"]})}),a(i,{className:"list",children:[a(i,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(i,{className:"listItem",children:["快递公司:",r]}),a(i,{className:"listItem",children:["快递单号:",d]})]})]})},ls=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=T(o,"message",l.message),i=T(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?i.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})})},os=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:i,stateObj:n}=De(l);return a(s,{className:"expressInfo",children:[e(as,{info:t,detail:i,stateObj:n,defaultValue:o}),e(ls,{detail:i,defaultValue:o})]})})),ss=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:n,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=sa(),[N,f]=t(c),[b,y]=t(n);return i((()=>{f(x("userNickname")),y(x("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>C("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>C("/account/setting/index"),children:[a(d,{className:"lPart",children:[e(m,{className:"name",children:N||"用户名称"}),e(d,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(u,{src:b,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),ts=s((({title:l,columnList:o})=>{const{View:s,Text:n,Badge:c,Image:r}=p(),[d,m]=t({});i((()=>{oa(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?C("orderlist",{indexId:a>1?a+2:a+1}):C("afterSalesList")};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:()=>C("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:o.map(((l,o)=>a(s,{onClick:h.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(n,{className:"subTitle",children:l.label})]},o)))})]})})),is=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:i,IconMobile:n,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:()=>C(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:Ye(l.imgUrl),className:"icon"}),e(i,{className:"label",children:l.link.label})]}),e(n,{value:"xiangyou1"})]},o)))})})),ns=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:i,Image:n}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(n,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(i,{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(n,{src:a.imgUrl,className:"img"},l)))})]})},cs=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],rs=s((()=>{const[o,s]=t("1"),{View:i}=p(),n=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(i,{className:"evaluateListTab",children:n.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:cs.map(((a,l)=>e(ns,{itemData:a},l)))})]})})),ds=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Ve(l),{Button:b}=g,{View:C,Image:y,TextArea:w,Textarea:x}=p(),S=x||w,k=c("宝贝满足你吗?分享一下它吧");return a(C,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(C,{className:"topInfo",children:[a(C,{className:"lPart",children:[e(y,{src:Ye(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(C,{className:"goodsInfo",children:[e(C,{className:"goodsName",children:l.goodsName}),e(C,{className:"goodsSize",children:l.skuName})]})]}),e(C,{className:"rPart",children:a(C,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(C,{className:"rate",children:[e(C,{className:"title",children:"商品评价"}),e(Ul,{onChange:u.bind(null,s)})]}),e(C,{className:"evaluate",children:e(S,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(b,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),ms=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:i,buttonBorderRadius:n,paddingTop:c,paddingBottom:r})=>{const{orderInfo:d,handleDelete:m}=Le(l),{Button:u}=g,{View:N,Image:f,Text:b}=p();return a(N,{className:"evaluateDetail",style:{paddingTop:c,paddingBottom:r},children:[d.map(((l,s)=>{var t;return a(h,{children:[a(N,{className:"topInfo",children:[a(N,{className:"lPart",children:[e(f,{src:Ye(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(N,{className:"goodsInfo",children:[e(N,{className:"goodsName",children:l.goodsName}),e(N,{className:"goodsSize",children:l.skuName})]})]}),e(N,{className:"rPart",children:l.pricesetNprice&&a(N,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(N,{className:"rate",children:[e(N,{className:"title",children:"商品评价"}),e(Ul,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(N,{className:"evaluate",children:e(N,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),d.length?e(u,{style:{border:`1px solid ${s}`,color:t,backgroundColor:i,borderRadius:1===n?"20px":"0px",marginTop:20},className:"btn",onClick:m,children:"删除"}):null]})})),hs=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:l.collectOpcode}),children:[e(i,{src:Ye(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},ps=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Pe(),{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,{onChange:i,style:{height:"100%"},children:l.map((a=>e(hs,{item:a,edit:o,checked:r},a.collectId)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),us=({item:l,edit:o,checked:s})=>{const{View:t,Image:i,Checkbox:n,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(n,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>C("merchantShop",{memberCode:l.collectOpcode}),children:[e(i,{src:Ye(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},gs=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:i,delItem:n,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Pe(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,{onChange:i,style:{height:"100%"},children:l.map(((a,l)=>e(us,{item:a,edit:o,checked:r},a.collectId||l)))}),o?a(h,{className:"handleBar",children:[e(h,{className:"checkAll",children:e(g,{onChange:d,children:e(N,{value:"1",checked:m,children:"全选"})})}),e(f,{className:"btn",onClick:n,children:"删除"})]}):null]})})]})})})),Ns=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:i,SmoothView:c}=p(),r=n((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(i,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>C("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:Ye(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},fs=({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(Ns,{footprintItem:a,edit:s},l)))]})},bs=({footprintList:a,edit:o})=>{const s=n((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?qe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(fs,{item:a,edit:o},l)))})},Cs=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:i}=p(),{footprintList:n,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Re();return e(i,{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,{onChange:d,children:e(bs,{footprintList:n,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),ys=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:i})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:b}=Me(),C=qe(),y=C.format("YYYY-MM-DD"),w=n((()=>u.includes(y)),[u,y]),x=n((()=>{const e=C.year(),a=C.month(),l=qe(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,i=l.subtract(t,"day"),n=o.day(),c=0===n?0:7-n,r=o.add(c,"day"),d=[];let m=i;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(C,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[C,u]),S=n((()=>C.format("YYYY年MM月")),[C]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:i+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:S})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,l)=>e(c,{className:"weekDay",children:e(r,{children:a})},l)))}),e(c,{className:"calendarGrid",children:x.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:w||f,onClick:b,style:{backgroundColor:o,opacity:w?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":w?"已签到":l})]})]})})})),ws=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:i})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>qe())),[g,N]=t(!1),[f,b]=t((()=>qe().year())),[C,y]=t((()=>qe().month()+1)),{signinDetails:w,loading:x,refresh:S}=Oe(h),k=n((()=>h.format("YYYY年MM月")),[h]),v=n((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=n((()=>w.sort(((e,a)=>qe(a.date).valueOf()-qe(e.date).valueOf()))),[w]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:i+"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),y(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=qe(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:v.map((l=>e(c,{className:"monthItem "+(C===l?"active":""),onClick:()=>(e=>{y(e);const a=qe(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:C===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),xs=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ss=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:xs.map(((t,i)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},i)))})})),ks=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:i,promotionBegintime:n,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:i.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[qe(n).format("YYYY-MM-DD")," ~ ",qe(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},vs=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[i,n]=t(xs[0].val),{list:c,getData:r}=ze({params:i}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(Ss,{activeColor:l,setParams:n,params:i}),e(d,{children:e(La,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(ks,{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 Is=()=>{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:i,color:n,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:i,color:n},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:["有效期至:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}),a(d,{className:"date",children:["领取时间:",`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}):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(Is,{})})},As=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:i})=>{const{View:n,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Fe();return a(n,{className:"couponList",children:[e(n,{className:"couponTab",children:h.current.map(((l,o)=>a(n,{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(n,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Bs,{backgroundColor:l,color:o,queue:i,list:g,coe:d,config:h})})})})]})})),Ts=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=We({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((l,o)=>{const m=T(l,"pbName"),h=T(l,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),g=T(l,"promotionName"),b=qe(T(l,"promotionBegintime")).format("YYYY-MM-DD"),C=qe(T(l,"promotionEndtime")).format("YYYY-MM-DD"),y=T(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:n},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," - ",C]})]})]}),e(u,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ds=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:i,typeColor:n,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:b}=We({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=T(l,"pbName"),h=T(l,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),u=T(l,"promotionName"),N=qe(T(l,"promotionBegintime")).format("YYYY-MM-DD"),C=qe(T(l,"promotionEndtime")).format("YYYY-MM-DD"),y=T(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:n},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," - ",C]})]}),e(g,{className:"rPart",style:{backgroundColor:i},children:-1===l.availabledate||b.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Vs=s((l=>{var{type:o=1,coupons:s=[]}=l,t=la(l,["type","coupons"]);const{View:i}=p();return a(i,{className:"getCouponOne",children:[1===o?e(Ts,Object.assign({coupons:s},t)):null,2===o?e(Ds,Object.assign({coupons:s},t)):null]})})),Ls=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:i}=je(o);return e(N,{navigator:i,color:s,speed:l,direction:a,content:t})},Ps=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{View:n,Image:c}=p(),{info:r}=Ge(l);return a(n,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:[e(n,{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(n,{className:"content",children:r.noticeContext})]})})),Rs=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i})=>{const{info:n}=Ee(l),{View:c,ScrollView:r}=p(),{doclistContent:d,doclistTitle:m,doclistTitle4:h}=n;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:i},children:e(La,{id:"a",children:a(r,{children:[e(c,{className:"title",children:m}),e(c,{className:"author",children:h}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:d||""}})]})})})}));export{nl as AddressDetail,ol as AddressList,sl as AddressListBtn,Oa as AfterSalesApply,Qa as AfterSalesDetail,Ea as AfterSalesList,Ja as AfterSalesType,vs as AllPromotionList,Rs as ArticleDetail,Ba as BackTop,xo as CartList,So as CartOperate,mo as CartTop,ya as ClassifyNav,Sa as ClassifyNavOne,xa as ClassifyNavOneJsx,Ia as ClassifyNavThree,ka as ClassifyNavTwo,ps as CollectionList,gs as CollectionShopList,As as CouponList,Ta as Cube,ds as EvaluateDetail,rs as EvaluateList,ms as EvaluateViewDetail,os as ExpressInfo,Cs as FootPrint,Vs as GetCouponOne,Vl as Goods,Nl as GoodsClassify,wl as GoodsClassifyOne,vl as GoodsClassifyTwo,Zl as GoodsDetailAndEvaluate,Rl as GoodsDetailBanner,Hl as GoodsDetailCoupon,so as GoodsDetailHandleBar,io as GoodsDetailHandleBarOne,Ol as GoodsDetailInfo,Fl as GoodsDetailInfoOne,Gl as GoodsDetailPromotion,jl as GoodsDetailSku,ro as GoodsList,Ll as GoodsSlider,Pl as GoodsSlideshow,aa as Line,ys as MemberSignin,ss as MineData,is as MineFunction,ts as MineOrderEntry,cl as MyAgreementList,dl as MySetting,rl as MySettingJsx,Ls as Notice,Ps as NoticeDetail,es as OrderDetail,Xo as OrderList,jo as PaymentMode,hl as PickupPointList,Bo as PlaceOrderAddress,Po as PlaceOrderAddressTabs,Mo as PlaceOrderCoupon,Oo as PlaceOrderDelivery,zo as PlaceOrderGood,Fo as PlaceOrderInfo,Wo as PlaceOrderOperate,Eo as PlaceOrderResult,Je as QjMobileIcon,Al as Search,Dl as SearchPage,Tl as SearchStyleTwo,Xe as Service,ws as SigninDetail,fa as Slider,ea as TextLine,_e as Title,ra as ToPrice,ba as Video,pl as WechatAddressBtn,ta as addressIdConst,ia as fixPrice,na as fixPrice1,ca as formatTime,sa as useService};
|