s-material-react 2.0.435 → 2.0.437
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/common/coupon.scss +2 -2
- package/css/common/stepNum.scss +1 -0
- package/css/pages/afterSalesDetailGroup/afterSalesDetail.scss +1 -1
- package/css/pages/cart.scss +7 -3
- package/css/pages/collectionList.scss +1 -1
- package/css/pages/evaluateDetail.scss +1 -1
- package/css/pages/footprint.scss +1 -1
- package/css/pages/goodsDetail.scss +4 -5
- package/css/pages/goodsDetailGroup/GoodsDetailHandleBarOne.scss +1 -1
- package/css/pages/goodsGroup/goodsSlideshow.scss +1 -1
- package/css/pages/mySettingGroup/mySetting.scss +1 -1
- package/css/pages/orderDetail.scss +5 -3
- package/css/pages/orderList.scss +3 -3
- package/css/pages/placeOrder.scss +1 -1
- package/css/pages/placeOrderGroup.scss +1 -1
- package/css/pages/searchPage.scss +2 -1
- package/dist/components/business/goods-group/common/NumStep.d.ts +10 -0
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/css/common/coupon.scss
CHANGED
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
.coupon-pick {
|
|
36
36
|
line-height: 30px;
|
|
37
37
|
height: 30px;
|
|
38
|
-
background: #
|
|
38
|
+
background: #34c0bc;
|
|
39
39
|
//color: #fff;
|
|
40
40
|
text-align: center;
|
|
41
41
|
border-radius: 12px;
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
.coupon-pick-default {
|
|
45
45
|
line-height: 30px;
|
|
46
46
|
height: 30px;
|
|
47
|
-
background: #
|
|
47
|
+
background: #34c0bc;
|
|
48
48
|
//color: #fff;
|
|
49
49
|
text-align: center;
|
|
50
50
|
border-radius: 12px;
|
package/css/common/stepNum.scss
CHANGED
package/css/pages/cart.scss
CHANGED
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
display: inline-block;
|
|
68
68
|
font-size: 12px;
|
|
69
69
|
margin-right: 10px;
|
|
70
|
-
color: #
|
|
70
|
+
color: #fff;
|
|
71
|
+
background-color: #34c0bc;
|
|
71
72
|
padding: 6px 9px;
|
|
72
73
|
}
|
|
73
74
|
}
|
|
@@ -236,6 +237,8 @@
|
|
|
236
237
|
// color: #fff;
|
|
237
238
|
display: inline-block;
|
|
238
239
|
vertical-align: top;
|
|
240
|
+
border: #34c0bc !important;
|
|
241
|
+
background: #34c0bc !important;
|
|
239
242
|
}
|
|
240
243
|
}
|
|
241
244
|
|
|
@@ -246,7 +249,7 @@
|
|
|
246
249
|
line-height: 40px;
|
|
247
250
|
padding: 0 26px;
|
|
248
251
|
border-radius: 20px;
|
|
249
|
-
background: #
|
|
252
|
+
background: #34c0bc;
|
|
250
253
|
font-size: 14px;
|
|
251
254
|
color: #fff;
|
|
252
255
|
display: inline-block;
|
|
@@ -269,7 +272,8 @@
|
|
|
269
272
|
display: inline-block;
|
|
270
273
|
font-size: 12px;
|
|
271
274
|
margin-right: 10px;
|
|
272
|
-
color: #
|
|
275
|
+
color: #fff;
|
|
276
|
+
background-color: #34c0bc;
|
|
273
277
|
padding: 6px 9px;
|
|
274
278
|
}
|
|
275
279
|
}
|
package/css/pages/footprint.scss
CHANGED
|
@@ -181,7 +181,7 @@
|
|
|
181
181
|
}
|
|
182
182
|
|
|
183
183
|
&.buy {
|
|
184
|
-
background-color: #
|
|
184
|
+
background-color: #34c0bc;
|
|
185
185
|
color: #ffffff;
|
|
186
186
|
border-top-right-radius: 20px;
|
|
187
187
|
border-bottom-right-radius: 20px;
|
|
@@ -369,7 +369,7 @@
|
|
|
369
369
|
margin: 20px;
|
|
370
370
|
line-height: 40px;
|
|
371
371
|
text-align: center;
|
|
372
|
-
background: #
|
|
372
|
+
background-color: #34c0bc;
|
|
373
373
|
color: #ffffff;
|
|
374
374
|
border-radius: 50px;
|
|
375
375
|
}
|
|
@@ -461,9 +461,8 @@
|
|
|
461
461
|
margin-bottom: 10px;
|
|
462
462
|
|
|
463
463
|
&.active {
|
|
464
|
-
background: #
|
|
464
|
+
background: #34c0bc;
|
|
465
465
|
color: #fff;
|
|
466
|
-
border-color: #1a1a1a;
|
|
467
466
|
}
|
|
468
467
|
&.offShelf {
|
|
469
468
|
background: #999;
|
|
@@ -498,7 +497,7 @@
|
|
|
498
497
|
width: 100%;
|
|
499
498
|
height: 40px;
|
|
500
499
|
line-height: 40px;
|
|
501
|
-
background-color: #
|
|
500
|
+
background-color: #34c0bc;
|
|
502
501
|
display: block;
|
|
503
502
|
border-radius: 20px;
|
|
504
503
|
text-align: center;
|
|
@@ -97,10 +97,12 @@
|
|
|
97
97
|
height: 28px;
|
|
98
98
|
font-size: 12px;
|
|
99
99
|
line-height: 28px;
|
|
100
|
-
border: 1px solid #
|
|
100
|
+
border: 1px solid #34c0bc;
|
|
101
|
+
color: #fff;
|
|
101
102
|
text-align: center;
|
|
102
103
|
border-radius: 20px;
|
|
103
104
|
margin-left: 79%;
|
|
105
|
+
background-color: #34c0bc;
|
|
104
106
|
}
|
|
105
107
|
.maxWidth {
|
|
106
108
|
width: 140px;
|
|
@@ -159,8 +161,8 @@
|
|
|
159
161
|
font-size: 12px;
|
|
160
162
|
padding: 0 4px;
|
|
161
163
|
margin-left: 5px;
|
|
162
|
-
color: #
|
|
163
|
-
|
|
164
|
+
color: #fff;
|
|
165
|
+
background-color: #34c0bc;
|
|
164
166
|
border-radius: 10px;
|
|
165
167
|
}
|
|
166
168
|
}
|
package/css/pages/orderList.scss
CHANGED
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
height: 50px;
|
|
45
45
|
line-height: 50px;
|
|
46
46
|
text-align: center;
|
|
47
|
-
background: #
|
|
47
|
+
background-color: #34c0bc;
|
|
48
48
|
color: #ffffff;
|
|
49
49
|
border-radius: 30px;
|
|
50
50
|
font-size: 18px;
|
|
@@ -72,8 +72,8 @@
|
|
|
72
72
|
.copy {
|
|
73
73
|
padding: 0 4px;
|
|
74
74
|
margin-left: 5px;
|
|
75
|
-
color: #
|
|
76
|
-
border-color: #
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
border-color: #34c0bc;
|
|
77
77
|
border-radius: 2px;
|
|
78
78
|
font-size: 12px;
|
|
79
79
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { actionName } from 'qj-b2c-store';
|
|
3
|
+
interface NumStepType {
|
|
4
|
+
count: number;
|
|
5
|
+
handleStep: (e: actionName) => void;
|
|
6
|
+
goodsNum?: number;
|
|
7
|
+
goodsMinnum?: number;
|
|
8
|
+
}
|
|
9
|
+
export declare const NumStep: React.FC<NumStepType>;
|
|
10
|
+
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import o,{memo as s,useState as t,useEffect as n,useMemo as i,useRef as c,useContext as r,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 C,navigatorHandler as b,getEnv as y,taroMessage as S,getStorage as x,setStorage as w}from"@brushes/utils";import{queryOcsconfigList as v,getAddress as k,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as T,isEmpty as D,isEqual 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 Y,useAfterSalesChooseType as E,useAddressItem as W,useAddressList as G,useEditAddress as j,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,useCreateMiniPoster as le,useGoodsShare as oe,useGoodSkuStore as se,popupImplement as te,usePromotion as ne,useAddCoupon as ie,useCoupon as ce,useEvaluate as re,useAddShopping as de,useGoodSku as me,useGoodsList as he,useCartTop as pe,useCartListNext as ue,getRadioValue as ge,useCartOperate as Ne,useOrderAddress as fe,useOrderPickupAddress as Ce,userAddressData as be,useOrderGood as ye,useOrderCoupon as Se,useOrderInfo as xe,useOrderPay as we,useOrderResult as ve,useOrderResultResult as ke,useOrderOperate as Ie,orderStatusImpl as Be,useOrderList as Ae,orderStatusList as Te,useOrderDetail as De,useExpressInfo as Ve,useEvaluateDetail as Le,useEvaluateViewDetail as Pe,useCollectionList as Re,useFootprint as Me,useMemberSignin as Oe,useSigninDetail as ze,useMarketingPromotion as Fe,useCouponList as Ye,useAllCoupon as Ee,useNotice as We,useNoticeDetail as Ge,useArticleDetail as je}from"qj-b2c-store";import{fullPath as He,checkMobile as Ue,ProvinceComponent as $e,CityComponent as Ke,AreaComponent as Qe,navigatorLink as qe}from"@brushes/shared-utils";import Ze from"dayjs";import{DynamicForm as Xe}from"@brushes/mobile-form";import Je from"@tarojs/taro";import{deleteEvaluateGoods as _e}from"b2c-api";const ea=s((({width:a,height:l,top:o,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:l,borderRadius:i,top:o,left:n,right:s,bottom:t},className:"components-service"})})),aa=({className:a="iconfont",prefixClass:l="icon",onClick:o=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:o,className:f(l,t?`${l}-${t}`:"",a),style:s})},la=s((({value:l,shared:o,goPath:s,goPointsPath:t,textIndent:n,fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingTop:g,paddingLeft:N,paddingRight:f,paddingBottom:y})=>{const{View:S,IconMobile:x}=p(),w=()=>{console.log(107,window.location.href);const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(S,{className:"components-title",style:{paddingTop:g,paddingBottom:y},children:[e(S,{onClick:()=>{var e;e=l,s?b("goodList",{searchParam:e}):t&&b("PointsGoodsList",{searchParam:e})},style:{fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingLeft:N,paddingRight:f,textIndent:n},children:l}),o&&e(S,{onClick:e=>{e.stopPropagation(),w()},children:e(x,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),oa=({TextLineBgColor:l,text:o,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:i,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:`${n}px`,color:c},children:o})]})},sa=s((({borderStyle:a,borderRadius:l,height:o,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=p();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:l+"%",borderStyle:a,width:s+"%",height:o+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ta(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 na(e,a,l,o){return new(l||(l=Promise))((function(s,t){function n(e){try{c(o.next(e))}catch(e){t(e)}}function i(e){try{c(o.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(n,i)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ia=(e="b2c")=>{const[a,l]=t([]),o=i((()=>y()),[]);n((()=>{na(void 0,void 0,void 0,(function*(){const e=yield s();l(c(e))}))}),[]);const s=()=>na(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;C().showActionSheet({itemList:a})}}},ca={label:""},ra=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",da=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ma=(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}`},ha=e=>1===String(e).indexOf(".")?pa(e):ua(e),pa=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)},ua=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"},ga=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Na=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ga+e:e?ga+"/paas/shop/"+e:e),[e]),fa=({src:a,style:l,actived:o})=>{const s=c(null);return n((()=>{s.current&&(o?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[o]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:l,src:a})},Ca=s((({item:a,isPlay:o,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=Na(a.imgUrl);return e(l,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(fa,{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:b.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),ba=s((({Position:o="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:b,imgHeight:y,fontsize:S=16,textAlign:x="center",fontColor:w="#000000",backGroundColor:v="#ffffff"})=>{const k=i((()=>f({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),A=R(n,b||[]),T=a=>e(B,{className:t,style:{fontSize:S,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:w,backgroundColor:v},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C},children:e(I,{imgHeight:y,data:A,className:k,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(l,{children:["top"===o||"bottom"===o?T(s):null,e(Ca,{isPlay:t===n,item:s,position:o,direction:m})]})})})})),ya=s((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:C=0,fontsize:b=16,textAlign:y="center",fontColor:S="#000000",backGroundColor:x="#ffffff",otherStyles:w=[],ImgShadow:v=!1,Position:k="top"})=>{const{View:I}=p(),B=i((()=>f("silder-title",{"silder-tops1":"top"===k&&"horizontal"===d,"silder-bottoms":"bottom"===k&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===k,"silder-tops":"vertical"===d&&"top"===k},...w)),[w,k]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(ba,{Position:k,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:s,fontsize:b,textAlign:y,fontColor:S,backGroundColor:x,className:f({"outer-shadow":v}),className1:B})})})),Sa=s((({url:a,poster:l,autoplay:o,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:n},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:i,paddingRight:c}})})})),xa=({src:a,borderRadius:l})=>{const{Image:o}=p(),s=Na(a);return e(o,{src:s,alt:"",className:"img",style:{borderRadius:`${l}px`}})},wa=s((({defaultValue:l,borderRadius:o,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=R(l,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((l,s)=>a(i,{className:"classifyNavItem",onClick:()=>(e=>{var a,l,o;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href="http://47.102.147.197:8816/#/":b(null===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(l),children:[e(xa,{src:l.imgUrl,borderRadius:o}),e(c,{className:"label",children:l.title})]},s)))})})})),va=({src:a,imgRadius:l,imgBoxShadow:o})=>{const{Image:s}=p(),t=Na(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:l,boxShadow:o?"0px 0px 20px 5px #EEE":"none"}})},ka=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,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:n?"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 b(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e(va,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},l)))})},Ia=s(ka),Ba=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),C=R(a,l),y=i((()=>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:n?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:C.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return b(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)))})})),Aa=a=>{const{imgRadius:l,imgBoxShadow:o,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=p(),m=Na(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return b(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:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ta=s((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),C=R(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:o,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:C.map(((a,l)=>e(Aa,{layout:u,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},l)))})})),Da=s((({position:a=10,bg:l,color:o,fontSize:s})=>{const t=i((()=>y()),[]),{View:n}=p(),{goTop:c}=M();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(aa,{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"})})})),Va=({outerShadow:a,type:l,item:o,borderRadius:s})=>{const{Image:t}=p(),n=Na(o.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,l,o;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href="http://47.102.147.197:8816/#/":b(null===(l=e.link)||void 0===l?void 0:l.value,null===(o=e.link)||void 0===o?void 0:o.params)})(o)})},La=s((({defaultValue:a,type:l,borderRadius:o,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${l}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Va,{borderRadius:o,item:a,outerShadow:s,type:l},t)))})})})),Pa=o.createContext(null),Ra=s((()=>{const{View:a}=p(),{tip:l}=r(Pa);return e(a,{className:"afterSalesApplyTip",children:l})}));const Ma=a=>{var{bottomHeight:l,children:o,id:s,heightWrap:c}=a,r=ta(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>y()),[]),m=function(e){const[a,l]=t(0);return n((()=>{if(!y()||!e)return;const a=C().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!y())return 0;const a=C(),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=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,C().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${C().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}))},Oa=s((()=>{const{View:l,SmoothRadio:o,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Pa);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(l,{className:"reasonPopup",children:e(Ma,{children:a(n,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,t)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(s,{value:o.flagSettingInfo})]},t)))})]})})})})})})),za=s((()=>{const{View:l}=p(),{handlePopupShow:o,popupVisible:s,reason:t,goodsPrice:n}=r(Pa);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(aa,{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:ra(n)})})]}),e(Oa,{popupShow:s})]})})),Fa=s((()=>{const{View:l,TextArea:o,Textarea:s}=p(),t=s||o,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Pa);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[i.length<m?e(l,{className:"add",onClick:n,children:a(l,{className:"addContent",children:[e(aa,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(aa,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),Ya=({refundType:l,contractBillcode:o,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:v,limit:k,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:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Pa.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:v,limit:k,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(Ra,{}),e(za,{}),e(Fa,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,o,l,n),children:"确定"})]})})})},Ea={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Wa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ga=s((({data:l,goAfterSalesDetail:o})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(n,{className:"rPart",children:[e(aa,{style:{color:null===(s=Ea[l.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ea[l.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ea[l.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:He(l.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Wa[l.refundType][l.dataState]}),e(aa,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ha=s((({item:a,refreshNum:l})=>{const{View:o,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,l);return e(t,{loading:c,children:e(o,{className:"tabContent",children:e(Ma,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Ga,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ua=s((({refreshNum:a,paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:l,paddingBottom:o,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:l=>e(Ha,{item:l,refreshNum:a})})})})),$a=({dataPic:o,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ra(n),C=i((()=>t?`x ${t}`:""),[t]);return e(l,{children:a(u,{className:"card-item",children:[e(g,{src:He(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:C})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ka=(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]}},Qa=o.createContext(null),qa=s((()=>{const{companyList:l,popupShow:o,handlePopupShow:s,chooseCompany:t}=r(Qa),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:o,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(Ma,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:l.map(((l,o)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:l.expressName}),e(c,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),Za=s((()=>{const{handlePopupShow:o,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(Qa),{View:i,Input:c}=p();return a(l,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:o,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(qa,{})]})})),Xa=s((({refundCode:o,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:C}=Y({refundCode:o}),{dataState:b,gmtCreate:y,ocRefundGoodsList:S,refundMoney:x,refundMeo:w,refundEx:v,refundType:k,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:T,packageCode:D,packageBillno:V,packageName:L}=c,{View:P,Image:R,WrapLoading:M}=p();return e(M,{loading:C,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(Qa.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Ka(k,b)}),e(P,{className:"right_time",children:Ze(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(P,{className:"afterSalesDetailContent",children:a(P,{className:"refundDetail",children:[e(P,{className:"title",children:"退款信息"}),e(P,{className:"goodsDetail",children:null==S?void 0:S.map(((a,l)=>e($a,{dataPic:He(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款原因"}),e(P,{className:"right",children:v})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款金额"}),e(P,{className:"right",children:x})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"描述说明"}),e(P,{className:"right",children:w})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"补充凭证"}),e(P,{className:"right",children:null==I?void 0:I.map(((a,l)=>e(R,{src:He(a.refundFileUrl),mode:"widthFix",className:"refundImg"},l)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:Ze(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款编号"}),e(P,{className:"right",children:o})]}),e(l,{children:"B02"===k?a(l,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[B," ",A]}),e(P,{className:"address",children:T})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e(Za,{})]}):"",b>1?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流单号"}),e(P,{className:"code",children:V})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:L})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ja=o.createContext(null),_a=s((()=>{const{View:l,Image:o,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Ja),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ra(h);return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:He(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(aa,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),el=s((({contractGoodsSendnum:l,afterSalesType:o=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Ja);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=l,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((l,o)=>a(n,{className:"item",onClick:i.bind(null,l.value,s,t,c),children:[e(n,{className:"headline",children:l.label}),e(aa,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},o)))]})});var d})),al=l=>{const{contractBillcode:o,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=l,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:C}=E({contractBillcode:o,skuCode:s}),{View:b,WrapLoading:y}=p();return e(y,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ja.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(_a,{}),e(el,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:o,skuCode:s})]})})})},ll=({setDefault:a,checked:l,itemData:o})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:l?[o.addressId]:[],onChange:a,children:e(t,{value:o.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},ol=({itemData:l,delAddress:o,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=W(l);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(ll,{itemData:l,checked:"1"===(null==l?void 0:l.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>b("addressEditor",{addressId:l.addressId}),children:"编辑"}),e(n,{className:"del",onClick:o,children:"删除"})]})]})]})},sl=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)))})})})})),tl=s((({url:l,title:o,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:l}),e(i,{className:"title",children:o}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>b(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),nl=s((({refreshNum:a,btnShape:l,btnColor:o,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=G(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(sl,{}):e(c,{className:"addressList",children:r.length?r.map(((a,l)=>e(ol,{itemData:a,setDefault:m.bind(null,a,l),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(tl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),il=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>b("addressEditor"),children:"+ 新增地址"})})})),cl=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],rl=[{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:Ue}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:$e}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Ke}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Qe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],dl=s((({btnShape:a,btnColor:l,borderColor:o,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({addressDefault:!1}),{Button:u}=g,{onSubmit:N}=j(r);if(n((()=>{na(void 0,void 0,void 0,(function*(){if(r){let e=yield k({addressId:r});e.addressDefault="1"===e.addressDefault,h(e)}}))}),[]),!r||!D(m))return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(Xe,{initialValues:m,footer:e(u,{style:{color:s,backgroundColor:l,borderColor:o},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:cl,onSubmit:N,fields:rl})})})),ml=s((()=>{const{View:l}=p(),o=e=>{b(`/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)))})})})),hl=()=>{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(aa,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:s,children:"退出登录"})]})},pl=s(hl),ul=({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||""]})})]})})},gl=s((({refreshNum:l,paddingBottom:o,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=p(),{list:c,loading:r,skullShow:d,onScroll:m}=$(l);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:o+"px"},children:d?e(sl,{}):e(t,{className:"addressList",children:e(Ma,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,l)=>e(ul,{itemData:a},a&&a.userinfoOcode||l))),r&&e(i,{})]}):e(tl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),Nl=s((({borderColor:a,color:l,btnColor:o,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>na(void 0,void 0,void 0,(function*(){yield S("导入成功","none")})),children:"导入微信收件地址"})})})),fl=s((({navList:o,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(l,{children:o.map((l=>e(n,{className:["content",s===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(n,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:l.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{className:`container container_columns${t}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:t})=>a(n,{onClick:()=>b("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:Cl}=g,bl=s((({cell:l,color:o,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(i,{children:e(Ma,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(Cl,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(Cl.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?o:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(fl,{navList:m,activeKey:r,cell:l})})]})})})})})),yl=d(null),Sl=s((()=>{const{navList:l,activeKey:o,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(yl),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("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(Ma,{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]})})),xl=s((({thirdList:l})=>{const{View:o,Image:s}=p(),{picShadow:t,layout:n}=r(yl);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:l.map(((l,n)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>b("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})]},n)))})})),wl=s((()=>{const{navList:l,fCoe:o,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(yl),m=i((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:l})=>{const o=i((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=i((()=>{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(Ma,{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":n,"--adm-color-primary":n}},l)))}),e(xl,{thirdList:u})]})})})})})),vl=s((({selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=K(),[g,N]=t("0"),[f,C]=t("0");return e(yl.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:u,selectFontColor:l,selectBlcColor:o,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(Sl,{}),e(wl,{})]})})})),kl=s((({childList:l,layout:o,picShadow:s,style:t})=>{const{View:n,Image:i}=p();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},t),children:l.map(((l,o)=>a(n,{className:"level3ArrItem",onClick:()=>b("goodList",{classtreeCode:l.classtreeCode}),children:[e(i,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:l.goodsClassName})]},o)))})})),Il=s((({navList:l,activeKey:o,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{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(kl,{childList:l.childList,layout:s,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Bl}=g,Al=s((({selectFontColor:l,selectBlcShow:o,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(c,{className:"goodsClassifyTwo",children:e(Ma,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Bl,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Bl.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Il,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),Tl="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",Dl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Vl=s((({value:l,urlPath:o="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:C,Image:y}=p(),S=i((()=>f("txt",...g)),[g]);return e(C,{onClick:()=>b(o),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(C,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(y,{src:Tl,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,{className:S,style:{color:t,display:"inline-block",fontSize:h},children:l})]})})})),Ll=s((({value:l,iconShow:o,fontColor:s,backgroundColor:t,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"],urlPath:g="search"})=>{const{View:N,Image:C}=p(),y=i((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>b(g),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(N,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(N,{style:{width:"80%"},children:[e(C,{src:Tl,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})]}),e(N,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Pl=s((({placeholder:l,placeholderText:o,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>y()),[]),{View:f,Text:S,Input:v}=p(),[k,I]=t((()=>x("history")||[])),[B,A]=t(""),T=e=>{b(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:Tl,alt:""}),e(v,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:B,onInput:e=>A(e.detail.value),onConfirm:e=>na(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const l=a.concat(g.current.value||e.detail.value);return w("history",l),l}return a})),T(g.current.value||e.detail.value))}))},l?{placeholder:o}:{})),e(S,{className:"btn",onClick:()=>{const e=B.trim();e&&(I((a=>{if(!a.includes(e)){const l=a.concat(e);return w("history",l),l}return a})),T(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(aa,{onClick:()=>na(void 0,void 0,void 0,(function*(){(yield C()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:k.map(((a,l)=>e(f,{onClick:()=>T(a),className:"historyItem",children:a},l)))})]}):null]})})),Rl=s((({defaultValue:l=[],classCode:o="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:C,paddingLeft:y,paddingRight:S,goodsName:x=!0,goodsPrice:w=!0,goodsCar:v=!0,goodsBorder:k=!0,goodsShadow:B=!1,marginGap:A=10})=>{const[L,P]=t(l),R=c(),{View:M,Text:O}=p();return n((()=>{V(R.current,u)||(R.current=u,D(u)?P(l):na(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:C},children:e(M,{className:f({[`goods-${o}`]:!0}),style:{display:"grid",gap:A,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:S},children:L.map(((l,o)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:k?"1px solid #000000":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${He(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:[w?ra(l.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ra(l.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:v?"block":"none"},children:e(aa,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Ml=s((({defaultValue:l,goods:o,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:C,marginRight:y})=>{const{View:S}=p(),{list:x}=Q({defaultValue:l,goods:o},i);return e(S,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:C,marginRight:y},children:x.map(((l,o)=>a(S,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(S,{className:"img",style:{backgroundImage:`url(${He(l.dataPic)})`}}),a(S,{className:"board",children:[e(S,{className:"title",children:l.goodsName}),a(S,{className:"info",children:[a(S,{className:"lPart",children:[s?e(S,{className:"price",children:ra(l.pricesetNprice)}):null,t?e(S,{className:"marketPrice",children:ra(l.pricesetMakeprice)}):null]}),n?e(S,{className:"rPart",children:e(aa,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),Ol=s((({defaultValue:l,goods:o,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:C,btnRadius:S})=>{const x=i((()=>y()),[]),{list:w}=Q({defaultValue:l,goods:o},m),{SmoothSwiper:v,View:k,Image:I}=p(),[B,A]=t(0);return a(k,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(v,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:w,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(k,{className:["goodsSlideshowItem",""+(l.goodsCode===w[B].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>b("goodDetail",{skuCode:l.skuCode}),children:[e(I,{className:"logo",src:He(l.dataPic),mode:"widthFix"}),c?e(k,{className:"goodsName",children:l.goodsShowname}):null,r?a(k,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,d?e(k,{className:"price",children:ra(l.pricesetNprice)}):null,n?e(k,{className:"marketPrice",children:ra(l.pricesetMakeprice)}):null,e(k,{className:"btn",style:{backgroundColor:f,color:C,borderRadius:S},children:N})]})})]})})),zl=({autoplay:a,vertical:l,skuCode:o,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:n=""}=q(o,s),i=Z.getState();Z.setState(Object.assign(Object.assign({},i),{memberCode:n})),console.log(24,n);const c=X(t);return e(ba,{selectImg:c,type:1,autoplay:a,vertical:l,imgHeight:{height:375,width:375}})},Fl=l=>{const{SmoothView:o,View:s}=p(),{handleCollect:t,collection:n}=J(l);return a(s,{onClick:t,children:[D(n.dataObj)?e(aa,{value:"star-fill",style:{fontSize:20}}):e(aa,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:D(n.dataObj)?"收藏":"已收藏"})]})},Yl=({shareShow:a,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{if(!y())return;return"WEB"===C().getEnv()?e(l,{children:a?e(El,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s}):null}):e(Wl,{goodsName:t,shareShow:a,setShareShow:o,rsGoodsFileDomainList:s})},El=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r,width:d,height:m}=ae(o,s,t);return e(n,{className:"share",children:l?a(n,{className:"share-content",style:{margin:"80px auto"},onClick:e=>{e.stopPropagation()},children:[e(n,{id:"share-canvas-id",className:"share-canvas",children:e("canvas",{ref:r,width:d,height:m,style:{width:`${d}px`,height:`${m}px`}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>o(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Wl=({shareShow:l,setShareShow:o,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Canvas:i,Button:c}=p(),{save:r,width:d,height:m}=le(o,s,t,l);return e(n,{style:{zIndex:l?1e3:-10,opacity:l?1:0},className:"share",children:a(n,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[l&&e(n,{className:"share-canvas",id:"share-canvas-id",children:e(i,{"canvas-id":"canvas",style:{width:`${d}px`,height:`${m}px`,position:"absolute"}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(c,{className:"txt",onClick:()=>{const e=Je.createCanvasContext("canvas");e.clearRect(0,0,d,m),e.draw(!0),o(!1)},children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:r,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},Gl=({skuCode:l,priceShow:o,collectionShow:s,scene:n})=>{const[i,c]=t(!1),{View:r,SmoothView:d,Canvas:m,Image:h,Button:u,IconMobile:g}=p(),{rsSkuDomainList:N,rsGoodsFileDomainList:f}=q(l,n),{goodInfo:b}=_(N);ee(l);return a(r,{className:"goodsDetail-topInfo",children:[e(Yl,{goodsName:b.goodsName,shareShow:i,setShareShow:c,rsGoodsFileDomainList:f}),a(r,{className:"lPart",children:[e(d,{className:"name",children:b.goodsName}),a(r,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(r,{style:{display:"flex",flexDirection:"column"},children:[a(d,{className:"price",style:{display:o?"block":"none"},children:["会员价:",ra(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["促销价:",ra(b.pricesetNprice)]}),a(d,{className:"price",style:{display:o?"block":"none"},children:["阶梯价:",ra(.9*b.pricesetNprice)]})]}),e(u,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>{c(!0)},children:"生成海报"}),e(r,{onClick:e=>{e.stopPropagation(),(()=>{const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(g,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(r,{className:"rPart",style:{display:s?"flex":"none"},children:e(Fl,{goodsName:b.goodsName,pricesetNprice:b.pricesetNprice,dataPic:He(b.dataPic),skuCode:l})})]})},jl=s((l=>{const{collectionShow:o,shareShow:s}=l,{View:t}=p(),{handleCollect:n,collection:i}=J(l),{handleShare:c}=oe();return a(t,{className:"handleBar",children:[o?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:D(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Hl=s((({priceShow:l,collectionShow:o,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,n),{goodInfo:d}=_(r);return se((e=>e.spec)),ee(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:l?"block":"none"},children:ra(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(jl,{collectionShow:o,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:He(d.dataPic),skuCode:t})]})})),Ul=s((()=>{const{Text:e}=p(),l=se((e=>e.count)),o=se((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),$l=({dispatchPageStore:o})=>{const{View:s,Text:t}=p(),{openPopup:n}=te(o);return e(l,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e(Ul,{}),e("img",{src:Dl,alt:"",className:"icon"})]})]})})},Kl=({skuCode:l,scene:o})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=q(l,o),{goodInfo:i}=_(n),c=ne(n,i.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.length<20?a:a.substring(0,10)+"..."},l))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},Ql=s((({promotionBegintime:l,pbName:o,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ie(),N=i((()=>c-r),[c,r]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:o}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>u({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),ql=()=>{const{View:a,Image:l}=p();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Zl=o=>{var{skuCode:s,scene:t}=o;ta(o,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ce(d,h.skuCode);return a(l,{children:[a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:Dl,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(Ma,{children:u.length>0?u.map(((e,a)=>m(Ql,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(ql,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Xl=({onChange:a,readOnly:l=!1,size:o=22,count:s})=>{const{View:i}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(s){const e=[...c];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!l){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(i,{children:c.map(((a,l)=>e(aa,{onClick:d.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Jl=({item:l})=>{const{View:o,Image:s,Text:t,Button:n}=p(),i=y(),c=C();x("user");const{userInfoCode:r}=x("user")||{userInfoCode:""};return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(s,{src:l.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Xl,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),a(o,{className:"pj-wrapper",children:[a(o,{className:"flex-1",children:[e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]}),l.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{na(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield _e({evaluateGoodsId:a,isLocalMock:!i}),yield S("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(l)},children:"删除"}):null]}),l.shopReply&&l.shopReply.length?e(o,{className:"merchant-reply",children:l.shopReply.map((({evaluateReplyContent:l},s)=>a(o,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:l})]},s)))}):null]})},_l=({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(Jl,{item:a},l)))]}):e(tl,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},eo=({goodsRemark:a})=>{const{View:l}=p(),o=i((()=>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||""}})})},ao=({tabActive:o,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),d=i((()=>n?[{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)))})},lo=({evaluateShow:l,evaluateImgShow:o,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(n,i),u=re(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(ao,{tabActive:r,setTabActive:d,evaluateShow:l,evaluateImgShow:o,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(eo,{goodsRemark:m}):e(_l,{evaluateArr:u,evaluateImgShow:o,evaluateImg:s})})]})},oo=({skuName:l,handleChooseSize:o,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=p(),r=se((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:l}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,l)=>e(i,{className:f({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:o.bind(null,a.specValueValue,n),children:a.specValueValue},l)))})]})},so=s((({handleStep:l})=>{const{View:o,NumStep:s}=p(),t=se((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(s,{count:t,handleStep:l})]})})),to=({skuInfo:o,handleChooseSize:s,spec:t,goodInfo:n})=>{const{Image:i,View:c}=p(),{skuList:r}=o,d=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ra(n.pricesetNprice);return a(l,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(i,{src:He(n.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:n.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",n.goodsSupplynum||"100"]})]})]}),r.map(((a,l)=>e(oo,{goodsShowname:n.skuName,handleChooseSize:s,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},no=({cashImpl:o,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=se((e=>e.isNeedButton)),r=se((e=>e.offShelf));return r?e(i,{className:f({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(l,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:o,children:"立即购买"})]})})},io=s((({dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=de(o,s,t,l);return a(n,{className:"goodsDetail-size-popup",children:[e(Ma,{children:e(i,{children:a(n,{className:"content",children:[e(to,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(so,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum)})]})})}),e(no,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),co=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(io,{dispatchPageStore:l,goodsCode:o,skuInfo:s,rsSkuDomainList:t})})},ro=s((({serverShow:o,cartShow:s,lPartShow:i,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:u,rPartText:g,dispatchPageStore:N,skuCode:f,platform:C,scene:y})=>{const{View:S,IconMobile:x,Text:w}=p(),v=se((e=>e.offShelf)),{rsSkuDomainList:k,goodPro:I}=q(f,y),{goodInfo:B}=_(k),{servicePopup:A}=ia(C),{addCardPopup:T,buyOpenPopup:D}=te(N),[V,L]=t("10px");return n((()=>{const e=(()=>{try{const e=Je.getSystemInfoSync(),a=Je.getEnv();if(a===Je.ENV_TYPE.WEAPP||a===Je.ENV_TYPE.ALIPAY||a===Je.ENV_TYPE.SWAN||a===Je.ENV_TYPE.TT||a===Je.ENV_TYPE.JD){let a=0;if(e.safeArea&&e.safeArea.bottom)a=e.screenHeight-e.safeArea.bottom;else if(e.safeAreaInsets&&e.safeAreaInsets.bottom)a=e.safeAreaInsets.bottom;else if(e.model){const l=e.model.toLowerCase();(l.includes("iphone x")||l.includes("iphone 11")||l.includes("iphone 12")||l.includes("iphone 13")||l.includes("iphone 14")||l.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();L(e)}),[]),a(S,{className:"goodsDetailHandleBar",style:{paddingBottom:V},children:[a(S,{className:"linkGroup server",onClick:A,style:{display:o?"block":"none"},children:[e(x,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(S,{className:"txt",children:"客服"})]}),a(S,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:s?"block":"none"},children:[e(x,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(S,{className:"txt",children:"购物车"})]}),e(S,{className:"goods-detail-btn-group",children:v?e(S,{className:"btn addCart offShelf",children:e(w,{className:"btn",children:"已下架"})}):a(l,{children:["26"===I||!1===i?null:e(S,{className:"btn addCart",onClick:T,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(S,{onClick:D,className:"btn buy",style:Object.assign({color:m,backgroundColor:h,borderTopRightRadius:u,borderBottomRightRadius:u},!1===i?{borderTopLeftRadius:u,borderBottomLeftRadius:u}:{}),children:g||("10"===B.goodsPro?"预售抢购":"立即购买")})]})})]})})),mo=o=>{var{$_dataSource:s={},dispatchPageStore:t=L,skuCode:n,scene:i}=o,c=ta(o,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m),{popupVisible:p}=s;return a(l,{children:[e(ro,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(co,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},ho=s((({serverShow:l,cartShow:o,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:C}=p(),{rsSkuDomainList:y}=q(u,g),{goodInfo:S}=_(y),{servicePopup:x}=ia(N),{addCardPopup:w,buyOpenPopup:v}=te(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:l?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:o?"block":"none"},children:[e(C,{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:w,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0"},children:"加入购物车"}),e(f,{onClick:v,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===S.goodsPro?"预售抢购":"立即购买"})]})]})})),po=o=>{var{popupVisible:s=!1,dispatchPageStore:t=L,skuCode:n,scene:i}=o,c=ta(o,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m);return a(l,{children:[e(ho,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(co,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},uo=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],go=({setParams:l,activeColor:o})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(uo);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===m?"active":""),onClick:()=>((e,a,o)=>{i(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,t),style:{color:n===m?o:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(aa,{style:{color:n===m&&"desc"!==t?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(aa,{style:{color:n===m&&"desc"===t?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},No=s((({classtreeCode:l="",searchParam:o="",activeColor:s="#e54e29",goodsName:n=!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__:C={}})=>{console.log(111,C);const{View:b,Loading:y,SmoothView:S,Image:x,ScrollView:w,IconMobile:v}=p(),[k,I]=t({}),{loading:B,getData:A,list:T}=he(l,o,k),D=i((()=>f("textBox",{btm:!c&&!r})),[c,r]),V=i((()=>f("name",{boxNone:!n})),[n]),L=i((()=>f("middle_margin",{boxNone:!d})),[d]),P=i((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=i((()=>f({detailContent:!(V.includes("boxNone")&&L.includes("boxNone")&&P.includes("boxNone"))})),[V,L,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(go,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Ma,{id:"listWrap",children:a(w,{onScroll:()=>A(k),children:[e(b,{className:"list",style:{gap:g},children:T.map((l=>a(b,{onClick:()=>qe(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:He(l.dataPic),className:"img"}),a(b,{className:R,children:[e(S,{className:V,children:l.goodsName}),a(b,{className:L,children:["已售:",l.goodsNum]}),a(b,{className:P,children:[a(b,{className:D,children:[e(S,{className:"price",style:{display:c?"block":"none"},children:ra(l.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:ra(l.pricesetMakeprice)})]}),e(b,{style:{display:m?"block":"none"},children:e(v,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),B?e(y,{}):null]})})})]})})),fo=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=l,{editorImpl:m}=pe(a),h=i((()=>({border:o?`2px solid ${s}`:"",color:o?t:"",background:o?n:"",borderRadius:o?c:""})),[o,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},Co=s((({promotionName:l,checked:o,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:l}),e(t,{className:"choose",children:e(n,{"data-code":o,checked:o,value:s})})]})})),bo=({onChange:a,promotionCode:l,visible:o,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:o,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ma,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(Co,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},yo=s((({goodsName:o,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",t," X ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ra(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),So=s((({dataPic:l,dataState:o,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{let a="";switch(o){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==o?e(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[o]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:l,onClick:()=>b("goodDetail",{skuCode:s})})]})})),xo=s((({cartIsEditor:a,shoppingGoodsId:l,dataState:o,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===o)&&s.includes(l)),[s,a,l,o]);return console.log(106,typeof l),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==o,checked:c,value:l,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),wo=({promotion:o=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((o||[]).find((e=>e.promotionCode===c))||{}).promotionName),[o]);return a(l,{children:[a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(bo,{promotionCode:c,onChange:e=>{m(!1),s(n,ge(e))},promotion:o||[],visible:d,setVisible:m})})]})},vo=s((l=>{var{item:o}=l,s=ta(l,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(xo,{cartIsEditor:i,dataState:o.dataState,select:n,shoppingGoodsId:o.shoppingGoodsId}),e(So,{dataState:o.dataState,dataPic:He(o.dataPic),skuCode:o.skuCode}),e(yo,Object.assign({},o,s))]})})),ko=o=>{var{shoppingGoodsList:s=[]}=o,t=ta(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(h,{children:[e(vo,Object.assign({},t,{item:l})),l.pmPromotionList?e(wo,{promotionCode:t.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:t.updatePm,promotion:l.pmPromotionList}):null]},o)))})},Io=({disNextMsg:l,link:o})=>{const{View:s,IconMobile:t}=p(),n=i((()=>D(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}),n]})},Bo=({disNextMsg:l,promotionName:o,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:o}),l&&e(Io,{link:t,disNextMsg:l})]})},Ao=({refreshNum:o,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:C,handleStep:b,updatePm:y}=ue(o,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:C,children:f.length?e(l,{children:f.map((({memberName:l,promotionCode:o,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Bo,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(ko,{cartIsEditor:g,promotionCode:o,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(tl,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},To=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=l,{toOrderImpl:C,deleteCart:b,clearAll:y,selectAll:S,ids:x,cartDetail:w}=Ne(N,u,o),v=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:S,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:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ra(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ra(w.amount)})]})]}),a(r,{onClick:C,className:"btn",style:v,children:["结算(",w.num,")"]})]})]})},Do=({address:a})=>e(l,{children:D(a)?e(Lo,{}):e(Vo,{address:a})}),Vo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=l;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,address:e+o+s+t}}),[l]);return a(o,{className:"address-info",children:[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:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Lo=()=>{const{View:o,Text:s}=p();return a(l,{children:[a(o,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Po=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:s="",longContractgoodsBeanStr:t=""})=>{const{View:n}=p(),i=fe(a,o,l,s,t);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>b("addressList"),children:e(Do,{address:i})})},Ro=({address:a})=>e(l,{children:D(a)?e(Oo,{}):e(Mo,{address:a})}),Mo=({address:l})=>{const{View:o,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:o,addressDetail:s,addressMember:t="",addressPhone:n=""}=l;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(o||"")+(s||"")}}),[l]);return a(o,{className:"address-info",children:[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:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Oo=()=>{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"})]})},zo=({refreshNum:a})=>{const{View:l}=p(),o=Ce(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>b("pickupPointList"),children:e(Ro,{address:o})})},Fo=({tabActive:o,setTabActive:s})=>{const{Text:t}=p();return e(l,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((l,n)=>e(h,{children:a(t,{className:"tabsItem "+(o===l.id?"active":""),onClick:()=>s(l.id),children:[l.title,e(t,{className:"line"})]})},l.id)))})},Yo=({refreshNum:l,skuId:o="",goodsNum:s=0,shoppingGoodsId:i="",longContractgoodsBeanStr:c=""})=>{const{View:r,Text:d}=p(),[m,h]=t("0");return n((()=>{be.contractPumode=m}),[m]),a(r,{className:"placeOrderAddressTabs",children:[a(r,{className:"delivery-header",children:[e(d,{className:"delivery-label",children:"配送方式:"}),e(r,{className:"tabs",children:e(Fo,{tabActive:m,setTabActive:h})})]}),e(r,{className:"content",children:"0"===m?e(Po,{refreshNum:l&&l.addressId,skuId:o,goodsNum:s,shoppingGoodsId:i,longContractgoodsBeanStr:c}):e(zo,{refreshNum:l&&l.userinfoOcode,skuId:o,goodsNum:s,shoppingGoodsId:i})})]})},Eo=s((({couponStart:l,pbName:o,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:o}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),Wo=s((({couponStart:l,pbName:o,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:o}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[Ze(l).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Go=({refreshNum:o,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:u,Popup:g,Form:N,SmoothRadio:f,Button:C,SmoothCheckbox:b,ScrollView:y,Radio:S,Image:x}=p(),{shoppingGoodsList:w}=ye({refreshNum:o,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:v,visible:k,couponValue:I=[],setVisible:B,selectCoupon:A,onChange:T,onCreditChange:D,confirmImpl:V,resetImpl:L,contractPmode:P,onPayChange:R,payList:M,payName:O,creditList:z,creditInfo:F,selectCredit:Y,creditVisible:E,payVisible:W,setPayVisible:G,handleChooseImg:j,contractEcurl:H,setCreditVisible:U}=Se(w,s);return a(l,{children:[w.some((e=>"06"===e.goodsType))?null:a(l,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==v.length),children:[e(u,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(u,{className:"label",children:A?`已选择: ${A}`:0===v.length?"暂无可用优惠券":"请选择优惠券"}),0===v.length?null:e("img",{src:Dl,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>G(!0),children:[e(u,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(u,{className:"label",children:O?`已选择: ${O}`:"请选择支付方式"}),0===v.length?null:e("img",{src:Dl,alt:"",className:"icon"})]})]})]}),F.urechargeId&&"0"===P&&a(h,{className:"coupon-select",onClick:()=>U(0!==z.length),children:[e(u,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(u,{className:"label",children:Y?0===+Y?"不使用":`已选择: ${Y}%`:"请选择授信"}),0===v.length?null:e("img",{src:Dl,alt:"",className:"icon"})]})]}),"1"===P&&a(h,{className:"coupon-select",children:[e(u,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:j,children:H?e(x,{src:H,className:"img",alt:H,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(g,{popupVisible:W,popupHandler:G,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ma,{children:e(y,{children:e(f,{value:P||"",onChange:R,children:(null==M?void 0:M.length)>0&&M.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{checked:l.ptfpmodeType===P,value:l.ptfpmodeType}),l.ptfpmodeName]},o)))},"payVisible")})})})}),e(g,{popupVisible:E,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ma,{children:e(y,{children:e(f,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((l,o)=>a(h,{style:{marginBottom:5},children:[e(S,{value:l.flagSettingInfo}),0===l.flagSettingInfo?"不使用":`${l.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(g,{popupVisible:k,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ma,{children:e(y,{children:s?e(b,{value:(null==I?void 0:I.length)>0?I.map((e=>e.couponNo)):[],onChange:T,children:(null==v?void 0:v.length)>0&&v.map((e=>m(Eo,Object.assign({isDisabled:2===I.length},e,{key:e.couponNo}))))},"visible"):e(f,{value:(null==I?void 0:I.length)>0?I[0].couponNo:"",onChange:T,children:v.map(((e,a)=>m(Wo,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(C,{className:"operate reset",onClick:L,children:"重置"}),e(C,{className:"operate",onClick:V,children:"确认"})]})]})})]})},jo=({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:"快递"})]})})},Ho=({refreshNum:a,goodsNum:o,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=ye({refreshNum:a,goodsNum:o,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],o)=>e(l,{children:(a||[]).map(((a,l)=>e($a,Object.assign({},a),o)))})))})},Uo=({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=ye({refreshNum:o,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:C,disCount:b,creditMoney:y,freight:S,payPrice:x,rebMoney:w}=f,v=f.pointsDeduction||0,k=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:B,changeContent:A,shoppingType:T,pricesetRefrice:D}=xe(C),V=ra(Math.max(x-y,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===T?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ra(I)})]}),null!==v&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===T?v+"积分":ra(v)]})]}),"06"===T?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ra(k)]})]}),"06"===T?null:a(l,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ra(-y)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ra(-w.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ra(-(B+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ra(S)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:A})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":V})]})]})})},$o=({color:l,buttonColor:o,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:C,payState:b,creditMoney:y,ocContractSettlList:S,pointsDeduction:x}=ye({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:w,loading:v}=we({ocContractSettlList:S,payState:b,list:C,goodsBeanStr:r},d,Math.max(f-y,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const k=ra(Math.max(f-y,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",r?"0.00":k]}),e(N,{loading:v,children:e(u,{className:"btn",onClick:w,style:{color:`${l}`,border:`1px solid ${s}`,backgroundColor:`${o}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},Ko=s((({contractBillcode:l,contractBbillcode:o,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:C,SmoothRadio:b}=p(),{paymentImpl:S,channelList:x,contract:w,handleRadio:v,loading:k}=ve({contractBillcode:l,contractBbillcode:o});return n((()=>{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:["订单号:",w.current.contractBillcode," | 总金额:",ra(w.current.contMoney+(w.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ra(w.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(b,{onChange:v,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:["支付金额:",ra(w.current.orderMoney),"元"]})]}):null]})]},l.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(C,{loading:k,children:e(u,{className:"btnGroup",onClick:S,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Qo=({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:ra(l.dataBmoney)})]})]})},qo=s((({code:l,borderRadius:o,leftColor:s,leftButtonColor:t,leftBorderColor:n,leftBorderRadius:i,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:y,WrapLoading:S}=p(),{result:w,loading:v}=ke(l||(x("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:v,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(y,{value:w.icon,style:{fontSize:"35px",color:w.color}}),a(f,{className:"tips",children:[e(C,{className:"title",children:w.msg}),e(C,{className:"tip",children:w.info})]}),"success"===w.sysRecode&&e(Qo,{dataObj:w.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>b(w.menuCode,{contractBillcode:w.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${n}`,borderRadius:1===i?"20px":"0px"},children:w.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>b(r.value),className:"btn white",children:c})]})]})})})})),{Button:Zo}=g,Xo=a=>{var{dataState:o}=a,s=ta(a,["dataState"]);return e(l,{children:["-1"].includes(o+"")?null:e(Jo,Object.assign({dataState:o},s))})},Jo=a=>{var{dataState:l,contractAppraise:o,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=ta(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:m,handlerImpl:h}=Ie(Object.assign({dataState:l,contractAppraise:o,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,l)=>e(Zo,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:l<m.length-1,black:l===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},l)))})},{Button:_o}=g,es=s((({copyContent:a=""})=>{const[l,o]=t(!1),s=i((()=>y()),[]),n=i((()=>s?C():null),[s]),c=e=>na(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const l=document.execCommand("copy");if(document.body.removeChild(a),!l)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(_o,{className:"copy",size:"mini",fill:"outline",onClick:()=>na(void 0,void 0,void 0,(function*(){if(a)try{s&&n&&n.setClipboardData?(yield new Promise(((e,l)=>{n.setClipboardData({data:a,success:e,fail:l})})),r("复制成功","success"),o(!0)):(yield c(a),r("复制成功","success"),o(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:l?"已复制":"复制"})})),as=({contractPaydate:a,init:o,countdownCancel:s,contractId:i})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,l,o)=>{const[s,i]=t("");return n((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,n=s.getTime()-(t.getTime()-3600);n<999&&n>0?l(o).then((()=>{a()})):n>1e3&&i(ma(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,o,s,i);return e(l,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function ls({contractBillcode:l,dataBmoney:o,dataBnum:s,goodsList:t,dataState:n,contractId:i,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:u,countdownCancel:g}){const{View:N}=p(),f=Be(n,r);return a(N,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(N,{children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",l,e(es,{copyContent:l})]}),e(N,{className:"status",children:f})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>b("orderDetail",{contractBillcode:l}),children:t.map((a=>e($a,Object.assign({},a,{dataState:n,children:1===n&&e(as,{contractPaydate:h,init:c,countdownCancel:g,contractId:i})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",ra(o)]})]}),e(Xo,{init:c,contractType:u,contractId:i,contractBillcode:l,dataState:n,contractAppraise:r,dataBmoney:o})]})}const os=()=>{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 ss=s((function({item:l,refreshNum:o,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=p(),{onScroll:d,data:h,loading:u,init:g,countdownCancel:N}=Ae(l,o,n);return e(i,{className:"orderListItemWrap",children:e(Ma,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(ls,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:u?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(os,{}),e(i,{className:"nodata-btn",onClick:()=>b("goodList"),children:"前往购物"})]})})})})})),ts=process.env.TARO_ENV;let ns=Te;if(console.log("platform",ts),"h5"==ts){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(ns=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=Je.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(ns=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const is=s((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:n,Tabs:i}=p();return e(n,{className:"order-container",children:e(i,{defaultIndex:+l,tabs:ns,render:l=>e(n,{className:"orderList",children:e(ss,{contractType:t,item:l,orderSpacing:s,refreshNum:a,borderRadius:o})})})})})),cs=s((({contractBillcode:o,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:C,handleApplyBtn:y,creditMoney:S,packageRemark:x}=De(o||""),w=e=>Ze(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Be(C.dataState)?e(aa,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Be(C.dataState,C.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:w(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(aa,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:C.goodsReceiptMem}),e(N,{className:"personPhone",children:C.goodsReceiptPhone})]}),e(g,{className:"address",children:C.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[C.goodsList.map((o=>a(l,{children:[e($a,Object.assign({},o),o.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{b(u,{skuCode:o.skuCode})},children:"商品快照"}),Number(C.dataState)>1&&Number(C.dataState)<5&&"06"!==C.contractType?e(g,{className:"orderBtn maxWidth",onClick:y.bind(null,o,C.dataState),children:"申请退款(取消订单)"}):""]}))),e(g,{className:"priceInfo",children:"06"!=C.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",C.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((C.dataBmoney-C.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",C.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-C.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(l,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:"韵达快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===C.contractPumode?"自提":"快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:"未开票"})]})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",C.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:x||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(es,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:w(C.gmtCreate)})]}),"06"!=C.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ra(-S)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===C.contractPmode?"线上支付":"线下支付"})})]}),"1"===C.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:He(C.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(Xo,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:C.contractBillcode,contractId:C.contractId,contractType:C.contractType,dataState:C.dataState,dataBmoney:C.dataBmoney,contractAppraise:C.contractAppraise})})]})})]})})),rs=({defaultValue:l,info:o,detail:s,stateObj:t})=>{const{View:n}=p(),i=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(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},ds=({defaultValue:l,detail:o})=>{const{View:s}=p(),t=T(o,"message",l.message),n=T(o,"data",l.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.map(((l,o)=>a(s,{className:"step",children:[e(s,{className:"time",children:l.time}),e(s,{children:l.context})]},o))):e(s,{className:"noInfo",children:t})})},ms=s((({code:l,defaultValue:o})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Ve(l);return a(s,{className:"expressInfo",children:[e(rs,{info:t,detail:n,stateObj:i,defaultValue:o}),e(ds,{detail:n,defaultValue:o})]})})),hs=s((({avatarStyle:l,paddingTop:o,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=ia(),[N,f]=t(c),[C,y]=t(i);return n((()=>{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:()=>b("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>b("/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:C,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),ps=s((({title:l,columnList:o})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({});n((()=>{na(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?b("orderlist",{indexId:a+1}):b("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:()=>b("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(i,{className:"subTitle",children:l.label})]},o)))})]})})),us=s((({paddingTop:l,paddingBottom:o,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:s.map(((l,o)=>a(t,{className:"menuListItem",onClick:()=>b(l.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:He(l.imgUrl),className:"icon"}),e(n,{className:"label",children:l.link.label})]}),e(i,{value:"xiangyou1"})]},o)))})})),gs=({starColor:l="#FF0934",starSize:o="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,l)=>e(i,{src:a.imgUrl,className:"img"},l)))})]})},Ns=[{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"}]}],fs=s((()=>{const[o,s]=t("1"),{View:n}=p(),i=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(l,{children:[e(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:Ns.map(((a,l)=>e(gs,{itemData:a},l)))})]})})),Cs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,buttonBorderRadius:i,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Le(l),{Button:C}=g,{View:b,Image:y,TextArea:S,Textarea:x}=p(),w=x||S,v=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>a(h,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:He(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:l.goodsName}),e(b,{className:"goodsSize",children:l.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(Xl,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(w,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(C,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),bs=s((({code:l,borderRadius:o,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Pe(l),{Button:N}=g,{View:f,Image:C,Text:b}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((l,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(C,{src:He(l.dataPic),className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:l.goodsName}),e(f,{className:"goodsSize",children:l.skuName})]})]}),e(f,{className:"rPart",children:l.pricesetNprice&&a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Xl,{readOnly:!0,count:(null===(t=l.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:l.evaluateGoodsContent||""})})})]},s)})),m.length&&i?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),ys=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.collectOpcode}),children:[e(n,{src:He(l.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:l.collectOpcont}),a(c,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Ss=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{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(Ma,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map((a=>e(ys,{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:i,children:"删除"})]}):null]})})]})})})),xs=({item:l,edit:o,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[o?e(i,{className:"lPart",value:l.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("merchantShop",{memberCode:l.collectOpcode}),children:[e(n,{src:He(l.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:l.collectOpcont})})]})]})},ws=s((()=>{const{collectionList:l,edit:o,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===l.length?e(h,{className:"noDate",children:e(C,{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(Ma,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:l.map(((a,l)=>e(xs,{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:i,children:"删除"})]}):null]})})]})})})),vs=({footprintItem:l,edit:o})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(s,{className:"footprintItem",children:[o?e(s,{className:"lPart",children:e(n,{value:l.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:l.footprintOpcode}),children:[e(t,{src:He(l.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},ks=({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(vs,{footprintItem:a,edit:s},l)))]})},Is=({footprintList:a,edit:o})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=P(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(ks,{item:a,edit:o},l)))})},Bs=s((()=>{const{View:l,ScrollView:o,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Me();return e(n,{loading:u,children:e(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(Ma,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{onChange:d,children:e(Is,{footprintList:i,edit:c})}),c?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),As=s((({buttonText:l,buttonBackground:o,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:C}=Oe(),b=Ze(),y=b.format("YYYY-MM-DD"),S=i((()=>u.includes(y)),[u,y]),x=i((()=>{const e=b.year(),a=b.month(),l=Ze(`${e}-${a+1}-01`),o=l.endOf("month"),s=l.day(),t=0===s?6:s-1,n=l.subtract(t,"day"),i=o.day(),c=0===i?0:7-i,r=o.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[b,u]),w=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:w})}),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:S||f,onClick:C,style:{backgroundColor:o,opacity:S?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":S?"已签到":l})]})]})})})),Ts=s((({title:l,themeColor:o="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Ze())),[g,N]=t(!1),[f,C]=t((()=>Ze().year())),[b,y]=t((()=>Ze().month()+1)),{signinDetails:S,loading:x,refresh:w}=ze(h),v=i((()=>h.format("YYYY年MM月")),[h]),k=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>S.sort(((e,a)=>Ze(a.date).valueOf()-Ze(e.date).valueOf()))),[S]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:l}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;C(e),y(a),N(!0)},children:[e(r,{className:"dateText",children:v}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((l,s)=>{const t=Ze(l.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:o},children:["+",l.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{C((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{C((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:k.map((l=>e(c,{className:"monthItem "+(b===l?"active":""),onClick:()=>(e=>{y(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(l),style:b===l?{backgroundColor:o}:{},children:a(r,{className:"monthText",children:[l,"月"]})},l)))})]})})})]})})})),Ds=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Vs=s((({activeColor:a,setParams:l,params:o})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:Ds.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>l(t.val),style:{color:t.val===o?a:"#000"},children:t.label},n)))})})),Ls=({data:l})=>{const{View:o}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,promotionEndtime:c}=l;return a(o,{className:"promotionItem",children:[a(o,{className:"lPart",children:[e(o,{className:"round"}),e(o,{className:"tagBg",children:a(o,{className:"txt",children:["官方",s]})}),e(o,{className:"rule",children:n.at(-1).discName}),e(o,{className:"title",children:t}),a(o,{className:"time",children:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Ps=s((({activeColor:l,paddingTop:o,paddingBottom:s})=>{const[n,i]=t(Ds[0].val),{list:c,getData:r}=Fe({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${o}px 0 ${s}px`},children:[e(Vs,{activeColor:l,setParams:i,params:n}),e(d,{children:e(Ma,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Ls,{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 Rs=()=>{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"})})},Ms=({list:o,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(l,{children:o.length?o.map(((o,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===o.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:o.pbName}),e(d,{className:"title",children:o.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||o.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",o.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Ze(o.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(o.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===o.dataState?a(d,{className:"date",children:["使用时间:",Ze(o.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===o.dataState?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Rs,{})})},Os=s((({backgroundColor:l,color:o,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ye();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((l,o)=>a(i,{className:"couponTabItem "+(d.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(c,{className:"icon"})]},l.id)))}),e(Ma,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(Ms,{backgroundColor:l,color:o,queue:n,list:g,coe:d,config:h})})})})]})})),zs=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=Ee({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"),C=Ze(T(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(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:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},children:-1===l.availabledate||f.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Fs=s((({defaultValue:l,coupons:o,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:C}=Ee({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=Ze(T(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(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:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),e(g,{className:"info",style:{color:r},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===l.availabledate||C.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),Ys=s((l=>{var{type:o=1,coupons:s=[]}=l,t=ta(l,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===o?e(zs,Object.assign({coupons:s},t)):null,2===o?e(Fs,Object.assign({coupons:s},t)):null]})})),Es=({direction:a,speed:l,num:o,color:s})=>{const{content:t,navigator:n}=We(o);return e(N,{navigator:n,color:s,speed:l,direction:a,content:t})},Ws=s((({noticeId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=Ge(l);return a(i,{className:"noticeDetailContainer",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(i,{className:"content",children:r.noticeContext})]})})),Gs=s((({doclistId:l,paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=je(l),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:o,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(Ma,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Ze(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{dl as AddressDetail,nl as AddressList,il as AddressListBtn,Ya as AfterSalesApply,Xa as AfterSalesDetail,Ua as AfterSalesList,al as AfterSalesType,Ps as AllPromotionList,Gs as ArticleDetail,Da as BackTop,Ao as CartList,To as CartOperate,fo as CartTop,wa as ClassifyNav,Ia as ClassifyNavOne,ka as ClassifyNavOneJsx,Ta as ClassifyNavThree,Ba as ClassifyNavTwo,Ss as CollectionList,ws as CollectionShopList,Os as CouponList,La as Cube,Cs as EvaluateDetail,fs as EvaluateList,bs as EvaluateViewDetail,ms as ExpressInfo,Bs as FootPrint,Ys as GetCouponOne,Rl as Goods,bl as GoodsClassify,vl as GoodsClassifyOne,Al as GoodsClassifyTwo,lo as GoodsDetailAndEvaluate,zl as GoodsDetailBanner,Zl as GoodsDetailCoupon,mo as GoodsDetailHandleBar,po as GoodsDetailHandleBarOne,Gl as GoodsDetailInfo,Hl as GoodsDetailInfoOne,Kl as GoodsDetailPromotion,$l as GoodsDetailSku,No as GoodsList,Ml as GoodsSlider,Ol as GoodsSlideshow,sa as Line,As as MemberSignin,hs as MineData,us as MineFunction,ps as MineOrderEntry,ml as MyAgreementList,pl as MySetting,hl as MySettingJsx,Es as Notice,Ws as NoticeDetail,cs as OrderDetail,is as OrderList,Ko as PaymentMode,gl as PickupPointList,Po as PlaceOrderAddress,Yo as PlaceOrderAddressTabs,Go as PlaceOrderCoupon,jo as PlaceOrderDelivery,Ho as PlaceOrderGood,Uo as PlaceOrderInfo,$o as PlaceOrderOperate,qo as PlaceOrderResult,aa as QjMobileIcon,Vl as Search,Pl as SearchPage,Ll as SearchStyleTwo,ea as Service,Ts as SigninDetail,ya as Slider,oa as TextLine,la as Title,ha as ToPrice,Sa as Video,Nl as WechatAddressBtn,ca as addressIdConst,ra as fixPrice,da as fixPrice1,ma as formatTime,ia as useService};
|
|
1
|
+
import{jsx as e,jsxs as a,Fragment as o}from"react/jsx-runtime";import l,{memo as s,useState as t,useEffect as n,useMemo as i,useRef as c,useContext as r,createContext as d,createElement as m,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 C,navigatorHandler as b,getEnv as y,taroMessage as S,getStorage as x,setStorage as w}from"@brushes/utils";import{queryOcsconfigList as v,getAddress as k,find as I,getContractNumbers as B}from"qj-b2c-api";import{queryOcserviceConfPageByMember as A}from"qj-b2b-api";import{get as T,isEmpty as D,isEqual 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 Y,useAfterSalesChooseType as E,useAddressItem as W,useAddressList as G,useEditAddress as j,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,useCreateMiniPoster as oe,useGoodsShare as le,useGoodSkuStore as se,popupImplement as te,usePromotion as ne,useAddCoupon as ie,useCoupon as ce,useEvaluate as re,useAddShopping as de,useGoodSku as me,useGoodsList as he,useCartTop as pe,useCartListNext as ue,getRadioValue as ge,useCartOperate as Ne,useOrderAddress as fe,useOrderPickupAddress as Ce,userAddressData as be,useOrderGood as ye,useOrderCoupon as Se,useOrderInfo as xe,useOrderPay as we,useOrderResult as ve,useOrderResultResult as ke,useOrderOperate as Ie,orderStatusImpl as Be,useOrderList as Ae,orderStatusList as Te,useOrderDetail as De,useExpressInfo as Ve,useEvaluateDetail as Le,useEvaluateViewDetail as Pe,useCollectionList as Re,useFootprint as Me,useMemberSignin as Oe,useSigninDetail as ze,useMarketingPromotion as Fe,useCouponList as Ye,useAllCoupon as Ee,useNotice as We,useNoticeDetail as Ge,useArticleDetail as je}from"qj-b2c-store";import{fullPath as He,checkMobile as Ue,ProvinceComponent as $e,CityComponent as Ke,AreaComponent as Qe,navigatorLink as qe}from"@brushes/shared-utils";import Ze from"dayjs";import{DynamicForm as Xe}from"@brushes/mobile-form";import Je from"@tarojs/taro";import{deleteEvaluateGoods as _e}from"b2c-api";const ea=s((({width:a,height:o,top:l,right:s,bottom:t,left:n,borderRadius:i})=>{const{View:c}=p();return e(c,{style:{width:a,height:o,borderRadius:i,top:l,left:n,right:s,bottom:t},className:"components-service"})})),aa=({className:a="iconfont",prefixClass:o="icon",onClick:l=()=>{},style:s={fontSize:16,color:"#444",fontWeight:900},value:t})=>{const{Text:n}=p();return e(n,{onClick:l,className:f(o,t?`${o}-${t}`:"",a),style:s})},oa=s((({value:o,shared:l,goPath:s,goPointsPath:t,textIndent:n,fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingTop:g,paddingLeft:N,paddingRight:f,paddingBottom:y})=>{const{View:S,IconMobile:x}=p(),w=()=>{console.log(107,window.location.href);const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})};return a(S,{className:"components-title",style:{paddingTop:g,paddingBottom:y},children:[e(S,{onClick:()=>{var e;e=o,s?b("goodList",{searchParam:e}):t&&b("PointsGoodsList",{searchParam:e})},style:{fontSize:i,textAlign:c,color:r,backgroundColor:d,fontWeight:m,textDecoration:h,fontStyle:u,paddingLeft:N,paddingRight:f,textIndent:n},children:o}),l&&e(S,{onClick:e=>{e.stopPropagation(),w()},children:e(x,{style:{fontSize:20,color:"#f00"},value:"share"})})]})})),la=({TextLineBgColor:o,text:l,contentSize:s,lineStyle:t,fontSize:n,textAlign:i,fontColor:c,lineColor:r,fontWeight:d,fontStyle:m,textDecoration:h})=>{const{View:u}=p();return a(u,{className:"textLine",style:{backgroundColor:o,textAlign:i,margin:1===s?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${t} ${r}`}}),e(u,{className:"txt",style:{backgroundColor:o,fontWeight:d,fontStyle:m,textDecoration:h,fontSize:`${n}px`,color:c},children:l})]})},sa=s((({borderStyle:a,borderRadius:o,height:l,width:s,backgroundColor:t,paddingTop:n,paddingBottom:i})=>{const{View:c}=p();return e(c,{style:{paddingTop:n,paddingBottom:i},children:e(c,{style:{borderRadius:o+"%",borderStyle:a,width:s+"%",height:l+"px",backgroundColor:t,marginLeft:"auto",marginRight:"auto"}})})}));function ta(e,a){var o={};for(var l in e)Object.prototype.hasOwnProperty.call(e,l)&&a.indexOf(l)<0&&(o[l]=e[l]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(l=Object.getOwnPropertySymbols(e);s<l.length;s++)a.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(e,l[s])&&(o[l[s]]=e[l[s]])}return o}function na(e,a,o,l){return new(o||(o=Promise))((function(s,t){function n(e){try{c(l.next(e))}catch(e){t(e)}}function i(e){try{c(l.throw(e))}catch(e){t(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof o?a:new o((function(e){e(a)}))).then(n,i)}c((l=l.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const ia=(e="b2c")=>{const[a,o]=t([]),l=i((()=>y()),[]);n((()=>{na(void 0,void 0,void 0,(function*(){const e=yield s();o(c(e))}))}),[]);const s=()=>na(void 0,void 0,void 0,(function*(){switch(e){case"b2c":return yield v();case"b2b":return yield A().then((e=>e.list))}})),c=a=>{if(0===a.length)return["未知客服信息"];let o=[];if("b2c"===e){const e=T(a[0],"ocsOcserviceReDomain.ocsOcserviceConfReDomainList",[]);for(let a=0;a<e.length;a++){const l=e[a];o.push(`${T(l,"ocserviceConfRemark")}: ${T(l,"ocserviceConfValue")}`)}}else"b2b"===e&&o.push(`客服电话: ${T(a[0],"ocserviceConfValue")}`);return o};return{servicePopup:()=>{if(!l)return;C().showActionSheet({itemList:a})}}},ca={label:""},ra=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",da=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",ma=(e,a)=>{const o=Math.floor(e/1e3)%60,l=Math.floor(e/1e3/60)%60,s=Math.floor(e/1e3/60/60)%24;return`${Math.floor(e/1e3/60/60/24)}天 ${s}小时 ${l}分钟 ${o}秒${a}`},ha=e=>1===String(e).indexOf(".")?pa(e):ua(e),pa=e=>{const a=Number(e).toFixed(0),o=(Number(e)-Number(a)).toFixed(2),l=[];a.split("").reverse().forEach(((e,o)=>{l.push(e),(o+1)%3==0&&o!==a.length-1&&l.push(",")}));return l.reverse().join("")+"."+String(o).slice(2)},ua=e=>{const a=Number(e).toFixed(0),o=[];a.split("").reverse().forEach(((e,l)=>{o.push(e),(l+1)%3==0&&l!==a.length-1&&o.push(",")}));return o.reverse().join("")+".00"},ga=process.env.REACT_APP_BASE_URL;process.env.REACT_IMG_PATH;const Na=(e="")=>i((()=>e.startsWith("http")?e:e.startsWith("paas")||e.startsWith("/paas")?ga+e:e?ga+"/paas/shop/"+e:e),[e]),fa=({src:a,style:o,actived:l})=>{const s=c(null);return n((()=>{s.current&&(l?s.current.play&&"function"==typeof s.current.play&&s.current.play().catch((e=>{console.log("自动播放被阻止:",e),s.current&&(s.current.controls=!0)})):(s.current.pause&&"function"==typeof s.current.pause&&s.current.pause(),void 0!==s.current.currentTime&&(s.current.currentTime=0),void 0!==s.current.controls&&(s.current.controls=!1)))}),[l]),e("video",{ref:s,muted:!0,loop:!0,preload:"auto",controls:!0,style:o,src:a})},Ca=s((({item:a,isPlay:l,position:s,direction:t})=>{var n,i;const{Image:c,View:r}=p(),d=Na(a.imgUrl);return e(o,{children:d.includes(".mp4")||d.includes(".webm")||d.includes(".avi")?e(fa,{actived:l,style:{height:"100%",overflow:"hidden"},src:d}):e(c,{mode:"scaleToFill",src:d,style:{width:"100%",height:"100%",paddingBottom:"top"===s&&"vertical"===t?"30px":"",marginTop:"top"===s&&"horizontal"===t?"30px":""},onClick:b.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})})),ba=s((({Position:l="none",className:s="",className1:t="",defaultValue:n=[],type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:b,imgHeight:y,fontsize:S=16,textAlign:x="center",fontColor:w="#000000",backGroundColor:v="#ffffff"})=>{const k=i((()=>f({paddingbtm:"none"!==l,imgHeights:"bottom"===l&&"horizontal"===m}))),{SmoothSwiper:I,View:B}=p(),A=R(n,b||[]),T=a=>e(B,{className:t,style:{fontSize:S,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:w,backgroundColor:v},children:a.title});return e(B,{className:s,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C},children:e(I,{imgHeight:y,data:A,className:k,type:c,autoplay:r,autoplayInterval:d,direction:m,loop:h,interval:5e3,vertical:"vertical"===m,render:(s,t,n)=>a(o,{children:["top"===l||"bottom"===l?T(s):null,e(Ca,{isPlay:t===n,item:s,position:l,direction:m})]})})})})),ya=s((({paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,defaultValue:t=[],type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTB:N=0,paddingLR:C=0,fontsize:b=16,textAlign:y="center",fontColor:S="#000000",backGroundColor:x="#ffffff",otherStyles:w=[],ImgShadow:v=!1,Position:k="top"})=>{const{View:I}=p(),B=i((()=>f("silder-title",{"silder-tops1":"top"===k&&"horizontal"===d,"silder-bottoms":"bottom"===k&&"horizontal"===d,"silder-bottoms1":"vertical"===d&&"bottom"===k,"silder-tops":"vertical"===d&&"top"===k},...w)),[w,k]);return e(I,{style:{padding:`${N}px ${C}px`},children:e(ba,{Position:k,defaultValue:t,type:n,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:u,imgHeight:g,paddingTop:a,paddingBottom:o,paddingLeft:l,paddingRight:s,fontsize:b,textAlign:y,fontColor:S,backGroundColor:x,className:f({"outer-shadow":v}),className1:B})})})),Sa=s((({url:a,poster:o,autoplay:l,loop:s,paddingTop:t,paddingBottom:n,paddingLeft:i,paddingRight:c})=>{const{View:r}=p();return e(r,{style:{paddingTop:t,paddingBottom:n},children:e("video",{className:"components-video",src:a,poster:o,autoPlay:l,loop:s,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:i,paddingRight:c}})})})),xa=({src:a,borderRadius:o})=>{const{Image:l}=p(),s=Na(a);return e(l,{src:s,alt:"",className:"img",style:{borderRadius:`${o}px`}})},wa=s((({defaultValue:o,borderRadius:l,paddingTop:s,paddingBottom:t,selectClassifyNav:n})=>{const{View:i,Text:c}=p(),r=R(o,n);return e(i,{style:{paddingTop:s,paddingBottom:t},children:e(i,{className:"classifyNav",children:r.map(((o,s)=>a(i,{className:"classifyNavItem",onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href="http://47.102.147.197:8816/#/":b(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(o),children:[e(xa,{src:o.imgUrl,borderRadius:l}),e(c,{className:"label",children:o.title})]},s)))})})})),va=({src:a,imgRadius:o,imgBoxShadow:l})=>{const{Image:s}=p(),t=Na(a);return e(s,{src:t,alt:"",className:"classifyNav-item-img",style:{borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none"}})},ka=({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,layout:r,marginTop:d,marginBottom:m})=>{const{View:h}=p(),u=R(a,o);return e(h,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${r}, 1fr)`,borderRadius:l,border:`1px solid ${s}`,backgroundColor:t,boxShadow:n?"0px 0px 20px 10px #ddd":"none",marginTop:d,marginBottom:m},children:u.map(((a,o)=>e(h,{className:"classifyNav-item",onClick:()=>{var e,o;return b(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},children:e(va,{src:a.imgUrl,imgBoxShadow:c,imgRadius:i})},o)))})},Ia=s(ka),Ba=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,fontSize:c,fontColor:r,tagBgColor:d,otherStyle:m,layout:h,marginTop:u,marginBottom:g})=>{const{View:N}=p(),C=R(a,o),y=i((()=>f("classifyNav-two-item-title",...m)),[m]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${h}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:C.map(((a,o)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,o;return b(null===(e=a.link)||void 0===e?void 0:e.value,null===(o=a.link)||void 0===o?void 0:o.params)},style:{width:4===h?"74px":"60px"},children:e(N,{className:y,style:{fontSize:c,color:r},children:a.title})},o)))})})),Aa=a=>{const{imgRadius:o,imgBoxShadow:l,fontSize:s,fontColor:t,tagBgColor:n,otherStyle:i,item:c,layout:r}=a,{View:d}=p(),m=Na(c.imgUrl);return e(d,{className:"classifyNav-three-item",onClick:()=>{var e,a;return b(null===(e=c.link)||void 0===e?void 0:e.value,null===(a=c.link)||void 0===a?void 0:a.params)},style:{backgroundImage:`url(${m})`,borderRadius:o,boxShadow:l?"0px 0px 20px 5px #EEE":"none",width:4===r?"74px":"60px",height:4===r?"74px":"60px"},children:e(d,{className:"classifyNav-three-item-tag",style:{backgroundColor:n},children:e(d,{className:["classifyNav-three-item-txt",...i].join(" "),style:{fontSize:s,color:t},children:c.title})})})},Ta=s((({defaultValue:a,selectClassifyNav:o,navRadius:l,navBorderColor:s,navBgColor:t,navBoxShadow:n,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:u,marginTop:g,marginBottom:N})=>{const{View:f}=p(),C=R(a,o);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${u}, 1fr)`,border:`1px solid ${s}`,borderRadius:l,backgroundColor:t,boxShadow:n?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N},children:C.map(((a,o)=>e(Aa,{layout:u,item:a,imgRadius:i,imgBoxShadow:c,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h},o)))})})),Da=s((({position:a=10,bg:o,color:l,fontSize:s})=>{const t=i((()=>y()),[]),{View:n}=p(),{goTop:c}=M();return e(n,{className:"backTop",onClick:c,style:{padding:t?"0":"10px"},children:e(aa,{style:{display:"inline-block",color:l,fontSize:s,backgroundColor:o,position:t?"fixed":"relative",right:t?"20px":"0",bottom:t?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Va=({outerShadow:a,type:o,item:l,borderRadius:s})=>{const{Image:t}=p(),n=Na(l.imgUrl);return e(t,{className:"block "+(a?"outer-shadow":""),mode:1===o?"widthFix":"scaleToFill",src:n,style:{width:"100%",borderRadius:s+"px"},onClick:()=>(e=>{var a,o,l;(null===(a=e.link)||void 0===a?void 0:a.value.includes("/extra/index"))?window.location.href="http://47.102.147.197:8816/#/":b(null===(o=e.link)||void 0===o?void 0:o.value,null===(l=e.link)||void 0===l?void 0:l.params)})(l)})},La=s((({defaultValue:a,type:o,borderRadius:l,outerShadow:s,paddingRight:t,paddingLeft:n,picGap:i,xGap:c,paddingTop:r,paddingBottom:d,selectImg:m})=>{const{View:h}=p(),u=R(a,m);return e(h,{style:{paddingTop:r,paddingBottom:d,paddingLeft:c,paddingRight:c},children:e(h,{className:`cube-type${o}`,style:{paddingLeft:n,paddingRight:t,gap:i},children:u.map(((a,t)=>e(Va,{borderRadius:l,item:a,outerShadow:s,type:o},t)))})})})),Pa=l.createContext(null),Ra=s((()=>{const{View:a}=p(),{tip:o}=r(Pa);return e(a,{className:"afterSalesApplyTip",children:o})}));const Ma=a=>{var{bottomHeight:o,children:l,id:s,heightWrap:c}=a,r=ta(a,["bottomHeight","children","id","heightWrap"]);const d=i((()=>y()),[]),m=function(e){const[a,o]=t(0);return n((()=>{if(!y()||!e)return;const a=C().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;o(a)}})).exec()}))})),a}(s),h=function(e=""){return i((()=>{if(!y())return 0;const a=C(),o=+a.getStorageSync("safeArea"),l=+(a.getStorageSync("tabBarHeight")||0);return o+(a.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?l:0)+(e?+e:0)}),[])}(o),{View:u}=p(),g=i((()=>{if(!d)return s?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(console.log(1111,C().getSystemInfoSync().windowHeight,m,h),s){return{height:`calc(${C().getSystemInfoSync().windowHeight+"px"} - ${m+h}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[m,h]);return e(u,Object.assign({},r,{style:Object.assign(Object.assign({},g),{paddingBottom:s?"":h}),id:s,children:l}))},Oa=s((()=>{const{View:o,SmoothRadio:l,Radio:s,Popup:t,ScrollView:n,WrapLoading:i}=p(),{handlePopupShow:c,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:u}=r(Pa);return e(t,{popupVisible:d,popupHandler:c,children:e(i,{loading:u,children:e(o,{className:"reasonPopup",children:e(Ma,{children:a(n,{children:[e(o,{className:"title",children:"退款原因"}),e(l,{onChange:h,children:m.map(((l,t)=>a(o,{className:"reasonItem",children:[e(o,{className:"label",children:l.flagSettingInfo}),e(s,{value:l.flagSettingInfo})]},t)))})]})})})})})})),za=s((()=>{const{View:o}=p(),{handlePopupShow:l,popupVisible:s,reason:t,goodsPrice:n}=r(Pa);return a(o,{className:"afterSalesApplyFillIn",children:[a(o,{className:"reason",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款原因"})]}),e(o,{className:"choose",onClick:l,children:t?e(o,{className:"chooseResult",children:t}):a(o,{children:["请选择",e(aa,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(o,{className:"price",children:[a(o,{className:"fillInLabel",children:[e(o,{className:"icon",children:"*"}),e(o,{className:"word",children:"退款金额"})]}),e(o,{className:"allPrice",children:e(o,{className:"single",children:ra(n)})})]}),e(Oa,{popupShow:s})]})})),Fa=s((()=>{const{View:o,TextArea:l,Textarea:s}=p(),t=s||l,{handleChooseImg:n,imgGroup:i,placeholder:c,handleDelImg:d,limit:m,handleFillInReason:h}=r(Pa);return a(o,{className:"afterSalesApplySubFillIn",children:[e(o,{className:"title",children:"补充描述和凭证"}),a(o,{className:"content",children:[e(t,{placeholder:c,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(o,{className:"imgGroup",children:[i.length<m?e(o,{className:"add",onClick:n,children:a(o,{className:"addContent",children:[e(aa,{value:"shangchuanpingzheng"}),e(o,{className:"word",children:"上传凭证"}),a(o,{className:"num",children:[i.length,"/",m]})]})}):null,i.map(((a,l)=>e(o,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(o,{className:"cancel",onClick:d.bind(null,l),children:e(aa,{value:"close-bold",style:{fontSize:12}})})},l)))]})]})]})})),Ya=({refundType:o,contractBillcode:l,skuCode:s,goodsNum:t,goodsPrice:n,paddingTop:i,paddingLeft:c,paddingRight:r,paddingBottom:d})=>{const{View:m,WrapLoading:h}=p(),{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:v,limit:k,goodsInfo:I,handleFillInReason:B,handleSubmit:A,loading:T}=O({contractBillcode:l,skuCode:s});return e(h,{loading:T,children:e(m,{className:"afterSalesApply",style:{paddingTop:i,paddingBottom:d,paddingLeft:c,paddingRight:r},children:a(Pa.Provider,{value:{tip:u,reasonList:g,popupVisible:N,popupLoading:f,handlePopupShow:C,handleChooseReason:b,reason:y,handleChooseImg:S,imgGroup:x,placeholder:w,handleDelImg:v,limit:k,goodsNum:t,goodsPrice:n,goodsInfo:I,handleFillInReason:B,handleSubmit:A},children:[e(Ra,{}),e(za,{}),e(Fa,{}),e(m,{className:"submitBtn",onClick:A.bind(null,t,l,o,n),children:"确定"})]})})})},Ea={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},Wa={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},Ga=s((({data:o,goAfterSalesDetail:l})=>{var s,t;const{View:n,Image:i}=p();return a(n,{className:"afterSalesListItem",onClick:l.bind(null,o.refundCode),children:[a(n,{className:"title",children:[a(n,{className:"lPart",children:["服务单号: ",o.refundCode]}),a(n,{className:"rPart",children:[e(aa,{style:{color:null===(s=Ea[o.refundType])||void 0===s?void 0:s.color,fontSize:12},value:null===(t=Ea[o.refundType])||void 0===t?void 0:t.icon}),e(n,{className:"txt",children:Ea[o.refundType].label})]})]}),a(n,{className:"goodsInfo",children:[e(n,{className:"lPart",children:e(i,{src:He(o.ocRefundGoodsList[0].dataPic),className:"img"})}),a(n,{className:"rPart",children:[e(n,{className:"goodsName",children:o.ocRefundGoodsList[0].goodsName}),a(n,{className:"count",children:["申请数量: ",o.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(n,{className:"tip",children:[e(n,{class:"lPart",children:Wa[o.refundType][o.dataState]}),e(aa,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),ja=s((()=>{const{View:a}=p();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),Ha=s((({item:a,refreshNum:o})=>{const{View:l,ScrollView:s,WrapLoading:t}=p(),{afterSalesList:n,goAfterSalesDetail:i,loading:c,haseData:r}=z(a,o);return e(t,{loading:c,children:e(l,{className:"tabContent",children:e(Ma,{id:"tabContent",children:e(s,{children:r?n.map((a=>e(Ga,{data:a,goAfterSalesDetail:i.bind(null,a.refundCode)}))):e(ja,{})})})})})})),Ua=s((({refreshNum:a,paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t})=>{const{View:n,Tabs:i}=p();return e(n,{className:"afterSalesList",style:{paddingTop:o,paddingBottom:l,paddingLeft:s,paddingRight:t},children:e(i,{defaultIndex:0,tabs:F,render:o=>e(Ha,{item:o,refreshNum:a})})})})),$a=({dataPic:l,goodsName:s,goodsCamount:t,pricesetNprice:n,skuName:c,children:r,goodsType:d,pricesetRefrice:m,memberName:h})=>{const{View:u,Image:g,SmoothView:N}=p(),f="06"===d?m+"积分":ra(n),C=i((()=>t?`x ${t}`:""),[t]);return e(o,{children:a(u,{className:"card-item",children:[e(g,{src:He(l),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:C})]}),e(u,{className:"card-item-info-sub",children:a(N,{className:"sku",children:["店铺名称:",h]})}),r]})]})})},Ka=(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]}},Qa=l.createContext(null),qa=s((()=>{const{companyList:o,popupShow:l,handlePopupShow:s,chooseCompany:t}=r(Qa),{View:n,SmoothRadio:i,Radio:c,Popup:d,ScrollView:m}=p();return e(d,{popupVisible:l,popupHandler:s,children:e(n,{className:"reasonPopup",children:e(Ma,{children:a(m,{children:[e(n,{className:"title",children:"物流选择"}),e(i,{onChange:t,children:o.map(((o,l)=>a(n,{className:"reasonItem",children:[e(n,{className:"label",children:o.expressName}),e(c,{value:`${o.expressName}-${o.expressCode}`})]},l)))})]})})})})})),Za=s((()=>{const{handlePopupShow:l,packageName:s,setPackageBillno:t,submitExpressInfo:n}=r(Qa),{View:i,Input:c}=p();return a(o,{children:[a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流公司"})]}),e(i,{className:"sender_input name_style",onClick:l,children:e(i,""===s?{style:{color:"#666"},children:"请填写"}:{children:s})})]}),a(i,{className:"sender_content",children:[a(i,{className:"sender_name",children:[e(i,{className:"sender_icon",children:"*"}),e(i,{className:"sender_names",children:"物流单号"})]}),e(i,{className:"sender_input",children:e(c,{placeholder:"请填写",onInput:e=>t(e.detail.value)})})]}),e(i,{className:"expressInfo",children:e(i,{className:"expressInfo_btn",onClick:n,children:"提交物流信息"})}),e(qa,{})]})})),Xa=s((({refundCode:l,paddingTop:s,paddingLeft:t,paddingRight:n,paddingBottom:i})=>{const{afterSalesDetailInfo:c,submitExpressInfo:r,handleCancelAfterSales:d,companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,loading:C}=Y({refundCode:l}),{dataState:b,gmtCreate:y,ocRefundGoodsList:S,refundMoney:x,refundMeo:w,refundEx:v,refundType:k,ocRefundFileList:I,goodsReceiptMem:B,goodsReceiptPhone:A,goodsReceiptArrdess:T,packageCode:D,packageBillno:V,packageName:L}=c,{View:P,Image:R,WrapLoading:M}=p();return e(M,{loading:C,children:e(P,{className:"afterSalesDetail",style:{paddingTop:s,paddingBottom:i,paddingLeft:t,paddingRight:n},children:a(Qa.Provider,{value:{companyList:m,popupShow:h,handlePopupShow:u,chooseCompany:g,packageName:N,setPackageBillno:f,submitExpressInfo:r},children:[a(P,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(P,{className:"left_text",children:Ka(k,b)}),e(P,{className:"right_time",children:Ze(y).format("YYYY-MM-DD HH:mm:ss")})]}),e(P,{className:"afterSalesDetailContent",children:a(P,{className:"refundDetail",children:[e(P,{className:"title",children:"退款信息"}),e(P,{className:"goodsDetail",children:null==S?void 0:S.map(((a,o)=>e($a,{dataPic:He(a.dataPic),pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},o)))}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款原因"}),e(P,{className:"right",children:v})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款金额"}),e(P,{className:"right",children:x})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"描述说明"}),e(P,{className:"right",children:w})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"补充凭证"}),e(P,{className:"right",children:null==I?void 0:I.map(((a,o)=>e(R,{src:He(a.refundFileUrl),mode:"widthFix",className:"refundImg"},o)))})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"申请时间"}),e(P,{className:"right",children:Ze(y).format("YYYY-MM-DD HH:mm:ss")})]}),a(P,{className:"refund_Detail",children:[e(P,{className:"left",children:"退款编号"}),e(P,{className:"right",children:l})]}),e(o,{children:"B02"===k?a(o,{children:[b>0?a(P,{className:"merchantMsg",children:[e(P,{className:"title",children:"商家信息"}),a(P,{className:"name",children:[B," ",A]}),e(P,{className:"address",children:T})]}):"",1===b?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),e(Za,{})]}):"",b>1?a(P,{className:"writeMsg",children:[e(P,{className:"wlMsg",children:"物流信息"}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流单号"}),e(P,{className:"code",children:V})]}),a(P,{className:"express_content",children:[e(P,{className:"name",children:"物流公司"}),e(P,{className:"code",children:L})]})]}):""]}):""})]})}),0===b?e(P,{className:"footerBtn",children:e(P,{className:"btn",onClick:d.bind(null,S[0].goodsCode),children:"撤销申请"})}):null]})})})})),Ja=l.createContext(null),_a=s((()=>{const{View:o,Image:l,NumStep:s,SmoothView:t}=p(),{typeTip:n,setTypeTip:i,goodsNum:c,handleStep:d,goodsInfo:m,goodsPrice:h}=r(Ja),{goodsName:u,skuName:g,dataPic:N}=m,f=m&&"06"===m.goodsType?m.pricesetRefrice+"积分":ra(h);return a(o,{className:"afterSalesTypeItem",children:[e(o,{className:"afterSalesTypeTitle",children:"退款商品"}),a(o,{className:"afterSalesTypeContent",children:[e(l,{src:He(N),className:"img"}),a(o,{className:"info",children:[a(o,{className:"base",children:[e(t,{className:"name",children:u}),e(t,{className:"price",children:f})]}),a(o,{className:"advance",children:[e(o,{className:"size",children:g}),a(o,{className:"stepWrap",children:[e(aa,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>i((e=>!e))}),e(s,{count:c,handleStep:d})]})]}),n?e(o,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),eo=s((({contractGoodsSendnum:o,afterSalesType:l=2,contractBillcode:s,skuCode:t})=>{const{View:n}=p(),{goApply:i,goodsNum:c}=r(Ja);return e(n,{children:a(n,{className:"afterSalesTypeType",children:[e(n,{className:"title",children:"售后类型"}),(d=o,d>0?[{label:"退货退款",value:"B02"}]:[{label:"仅退款(无需退货)",value:"B01"}]).map(((o,l)=>a(n,{className:"item",onClick:i.bind(null,o.value,s,t,c),children:[e(n,{className:"headline",children:o.label}),e(aa,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},l)))]})});var d})),ao=o=>{const{contractBillcode:l,skuCode:s,dataState:t,paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r}=o,{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,loading:f,goodsPrice:C}=E({contractBillcode:l,skuCode:s}),{View:b,WrapLoading:y}=p();return e(y,{loading:f,children:e(b,{className:"afterSalesType",style:{paddingTop:n,paddingLeft:i,paddingRight:c,paddingBottom:r},children:a(Ja.Provider,{value:{typeTip:d,setTypeTip:m,goodsNum:h,handleStep:u,goodsInfo:g,goApply:N,goodsPrice:C},children:[e(_a,{}),e(eo,{contractGoodsSendnum:g.contractGoodsSendnum||0,afterSalesType:t,contractBillcode:l,skuCode:s})]})})})},oo=({setDefault:a,checked:o,itemData:l})=>{const{SmoothCheckbox:s,Checkbox:t}=p();return e(s,{value:o?[l.addressId]:[],onChange:a,children:e(t,{value:l.addressId,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},lo=({itemData:o,delAddress:l,setDefault:s})=>{const{View:t,Text:n}=p(),{handlerImpl:i}=W(o);return a(t,{className:"addressItem",children:[a(t,{className:"upInfo",onClick:i,children:[a(t,{className:"userInfo",children:[o.addressMember," ",o.addressPhone]}),e(t,{className:"addressInfo",children:a(n,{className:"address",children:[o.provinceName," ",o.areaName," ",o.cityName," ",o.addressDetail]})})]}),a(t,{className:"downInfo",children:[e(oo,{itemData:o,checked:"1"===(null==o?void 0:o.addressDefault),setDefault:s}),a(t,{children:[e(n,{className:"del",style:{marginRight:20},onClick:()=>b("addressEditor",{addressId:o.addressId}),children:"编辑"}),e(n,{className:"del",onClick:l,children:"删除"})]})]})]})},so=s((()=>{const{View:a,Skeleton:l}=p(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})})),to=s((({url:o,title:l,subTitle:s,link:t,style:n})=>{const{View:i,Image:c}=p();return e(i,{className:"noData",style:n,children:a(i,{className:"content",children:[e(c,{className:"img",src:o}),e(i,{className:"title",children:l}),e(i,{className:"subTitle",children:s}),t?a(i,{className:"link",onClick:()=>b(t),children:["去看看",e(u,{value:"xiangyou1"})]}):null]})})})),no=s((({refreshNum:a,btnShape:o,btnColor:l,borderColor:s,paddingBottom:t,paddingTop:n,color:i})=>{const{View:c}=p(),{list:r,delAddress:d,setDefault:m,skullShow:h}=G(a);return e(c,{className:"addressListWrap",style:{paddingTop:n+"px",marginBottom:t+"px"},children:h?e(so,{}):e(c,{className:"addressList",children:r.length?r.map(((a,o)=>e(lo,{itemData:a,setDefault:m.bind(null,a,o),delAddress:d.bind(null,a)},null==a?void 0:a.addressId))):e(to,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),io=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>b("addressEditor"),children:"+ 新增地址"})})})),co=[{from:"addressDefault",to:"addressDefault",format:e=>!0===e||1===e?1:0}],ro=[{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:Ue}]},{type:"slot",name:"provinceCode",extraProps:{label:"所在省",render:$e}},{type:"slot",name:"cityCode",extraProps:{label:"所在市",shouldUpdate:(e,a)=>e.provinceCode!==a.provinceCode,render:Ke}},{type:"slot",name:"areaCode",extraProps:{label:"所在区",shouldUpdate:(e,a)=>e.cityCode!==a.cityCode,render:Qe}},{type:"text",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]}],mo=s((({btnShape:a,btnColor:o,borderColor:l,color:s,paddingTop:i,paddingBottom:c,addressId:r})=>{const{View:d}=p(),[m,h]=t({addressDefault:!1}),{Button:u}=g,{onSubmit:N}=j(r);if(n((()=>{na(void 0,void 0,void 0,(function*(){if(r){let e=yield k({addressId:r});e.addressDefault="1"===e.addressDefault,h(e)}}))}),[]),!r||!D(m))return e(d,{className:"addressDetail",style:{paddingBottom:c+"px",paddingTop:i+"px"},children:e(Xe,{initialValues:m,footer:e(u,{style:{color:s,backgroundColor:o,borderColor:l},shape:a,block:!0,type:"submit",size:"large",children:"提交"}),transformSubmitDataConfig:co,onSubmit:N,fields:ro})})})),ho=s((()=>{const{View:o}=p(),l=e=>{b(`/account/agreement/index?type=${e}`)},s=c([{label:"用户协议",type:"xieyi"},{label:"隐私协议",type:"yinsi"}]);return e(o,{className:"myAgreementList",children:e(o,{className:"list",children:s.current.map(((s,t)=>a(o,{className:"item",onClick:l.bind(null,s.type),children:[e(o,{children:s.label}),e(o,{children:e(u,{value:"xiangyou1"})})]},t)))})})})),po=()=>{const{View:o}=p(),{mySettingGoBind:l,mySettingLogout:s}=H();return a(o,{className:"mySetting",children:[a(o,{className:"item",onClick:l,children:[e(o,{children:"绑定手机"}),e(o,{children:e(aa,{value:"xiangyou1"})})]}),e(o,{className:"btn",onClick:s,children:"退出登录"})]})},uo=s(po),go=({itemData:o})=>{const{View:l,Text:s}=p(),{handlerImpl:t}=U(o);return e(l,{className:"addressItem",children:a(l,{className:"upInfo",onClick:t,children:[e(l,{className:"userInfo",children:(o.addressMember||"")+" "+(o.addressPhone||"")}),e(l,{className:"addressInfo",children:a(s,{className:"address",children:[o.provinceName||""," ",o.areaName||""," ",o.cityName||""," ",o.addressDetail||""]})})]})})},No=s((({refreshNum:o,paddingBottom:l,paddingTop:s})=>{const{View:t,ScrollView:n,Loading:i}=p(),{list:c,loading:r,skullShow:d,onScroll:m}=$(o);return console.log("list",c,d),e(t,{className:"addressListWrap",style:{paddingTop:s+"px",marginBottom:l+"px"},children:d?e(so,{}):e(t,{className:"addressList",children:e(Ma,{id:"pickupPointListWrap",children:e(n,{onScroll:m,children:c.length?a(t,{children:[c.map(((a,o)=>e(go,{itemData:a},a&&a.userinfoOcode||o))),r&&e(i,{})]}):e(to,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有自提点"})})})})})})),fo=s((({borderColor:a,color:o,btnColor:l,btnShape:s,paddingTop:t,paddingBottom:n})=>{const{View:i}=p();return e(i,{className:"addressListBtnWrap",style:{paddingTop:`${t}px`,paddingBottom:`${n}px`},children:e(i,{style:{borderRadius:s,borderColor:a,color:o,backgroundColor:l},className:"addressListBtn",onClick:()=>na(void 0,void 0,void 0,(function*(){yield S("导入成功","none")})),children:"导入微信收件地址"})})})),Co=s((({navList:l,activeKey:s,cell:t=4})=>{const{View:n,Text:i,Image:c}=p();return e(o,{children:l.map((o=>e(n,{className:["content",s===`${o.goodsClassCode}`?" active":""].join(""),children:((null==o?void 0:o.childList)||[]).map((o=>a(n,{className:"classifyFloor",children:["0"===o.goodsClassHide?a(n,{className:"titleWrap",children:[e(i,{className:"title",children:o.goodsClassName}),e(i,{className:"line"})]}):"",e(n,{className:`container container_columns${t}`,style:{marginTop:"0"===o.goodsClassHide?"":"20px"},children:((null==o?void 0:o.childList)||[]).map((({classtreeCode:o,goodsClassCode:l,goodsClassLogo:s,goodsClassName:t})=>a(n,{onClick:()=>b("goodList",{classtreeCode:o}),className:"classifyFloorGoodsItem",children:[e(c,{src:s,className:"logo"}),e(n,{className:"title",children:t})]},l)))})]},o.goodsClassCode)))},o.goodsClassCode)))})})),{SideBar:bo}=g,yo=s((({cell:o,color:l,activeTitle:s,paddingTop:t,paddingBottom:n})=>{const{View:i,ScrollView:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(i,{children:e(Ma,{id:"goodsClassify",children:e(c,{children:a(i,{style:{height:h?"100%":"667px",paddingTop:t,paddingBottom:n},className:"goodsClassifyContainer",children:[e(i,{className:"side",children:e(bo,{activeKey:r,onChange:d,style:{"--width":"90px","--background-color":"#f5f5f5"},children:m.map((a=>e(bo.Item,{title:a.goodsClassName,className:0===s?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===r?l:"#000"}},a.goodsClassCode)))})}),e(i,{className:"main",children:e(Co,{navList:m,activeKey:r,cell:o})})]})})})})})),So=d(null),xo=s((()=>{const{navList:o,activeKey:l,setActiveKey:s,setFCoe:n,setSCoe:i,selectFontColor:c}=r(So),{View:d,ScrollView:m}=p(),[h,g]=t(!1),N=(e,a)=>{s.bind(null,e)(),n(`${a}`),i("0"),h&&g(!1)};return a(d,{className:"goodsClassifyOne-headerPart",children:[a(d,{className:"goodsClassifyOne-topListWrap",children:[e(d,{className:"goodsClassifyOne-topList",children:o.map(((a,o)=>e(d,{className:["goodsClassifyOne-topListItem"].join(" "),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>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(Ma,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:o.map(((a,o)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>N(a.goodsClassCode,o),style:{color:l===`${a.goodsClassCode}`?c:"#000",borderColor:l===`${a.goodsClassCode}`?c:"#000"},children:a.goodsClassName},o)))})})})]}):null]})})),wo=s((({thirdList:o})=>{const{View:l,Image:s}=p(),{picShadow:t,layout:n}=r(So);return e(l,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${n}, 1fr)`},children:o.map(((o,n)=>a(l,{className:"goodsClassifyOneFloorItem",onClick:()=>b("goodList",{classtreeCode:o.classtreeCode}),children:[e(s,{src:o.goodsClassLogo,className:"pic",style:{boxShadow:t?"#DDDDDD 0px 0px 10px":""}}),e(l,{className:"title",children:o.goodsClassName})]},n)))})})),vo=s((()=>{const{navList:o,fCoe:l,sCoe:s,setSCoe:t,selectFontColor:n,selectBlcShow:c,selectBlcStyle:d}=r(So),m=i((()=>y()),[]),{secondList:h,thirdList:u}=(({navList:e,fCoe:a,sCoe:o})=>{const l=i((()=>{var o;return(null===(o=e[a])||void 0===o?void 0:o.childList)||[]}),[a,e]),s=i((()=>{var e;return(null===(e=l[o])||void 0===e?void 0:e.childList)||[]}),[o,a,e]);return{secondList:l,thirdList:s}})({navList:o,fCoe:l,sCoe:s}),{View:g,ScrollView:N,SideBar:f}=p();return e(g,{children:e(Ma,{id:"goodsClassifyOneContent",children:e(N,{children:a(g,{className:"goodsClassifyOneContent",style:{height:m?"100%":"667px"},children:[e(f,{activeKey:s,onChange:t,children:h.map(((a,o)=>e(f.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===d?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":n,"--adm-color-primary":n}},o)))}),e(wo,{thirdList:u})]})})})})})),ko=s((({selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r})=>{const{View:d}=p(),{navList:m,activeKey:h,setActiveKey:u}=K(),[g,N]=t("0"),[f,C]=t("0");return e(So.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:u,selectFontColor:o,selectBlcColor:l,selectBlcShow:s,selectBlc:n,selectBlcStyle:i,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(xo,{}),e(vo,{})]})})})),Io=s((({childList:o,layout:l,picShadow:s,style:t})=>{const{View:n,Image:i}=p();return e(n,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${l}, 1fr)`},t),children:o.map(((o,l)=>a(n,{className:"level3ArrItem",onClick:()=>b("goodList",{classtreeCode:o.classtreeCode}),children:[e(i,{src:o.goodsClassLogo,className:"logo",style:{boxShadow:s?"#DDDDDD 0px 0px 10px":""}}),e(n,{className:"title",children:o.goodsClassName})]},l)))})})),Bo=s((({navList:o,activeKey:l,layout:s,picShadow:i})=>{var c;const[r,d]=t(0);n((()=>{d(o.findIndex(m))}),[l,r]);const m=e=>e.goodsClassCode===l,{View:h,Image:u}=p();return a(h,{className:"goodsClassifyTwoContent",children:[e(u,{className:"firstLevelImg",src:T(o[r],"goodsClassLogo"),mode:"widthFix"}),null===(c=T(o[r],"childList"))||void 0===c?void 0:c.map(((o,l)=>a(h,{children:["0"===o.goodsClassHide?e(h,{className:"level2Title",children:o.goodsClassName}):"",e(Io,{childList:o.childList,layout:s,picShadow:i,style:{marginTop:"0"===o.goodsClassHide?"":"30px"}})]},l)))]})})),{SideBar:Ao}=g,To=s((({selectFontColor:o,selectBlcShow:l,selectBlcColor:s,selectBlcStyle:t,layout:n,picShadow:i})=>{const{View:c}=p(),{activeKey:r,setActiveKey:d,navList:m,flag:h}=K();return e(c,{className:"goodsClassifyTwo",children:e(Ma,{id:"goodsClassifyTwo",children:a(c,{className:"goodsClassifyTwoWrap",style:{height:h?"100%":"667px"},children:[e(c,{className:"side",children:e(Ao,{activeKey:r,onChange:d,style:{"--width":"88px","--background-color":"#f5f5f5"},children:m.map((a=>e(Ao.Item,{title:a.goodsClassName,className:[l?"":"goodsClassifyTwoFloorNoBlc",1===t?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":o}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(Bo,{navList:m,activeKey:r,layout:n,picShadow:i})})]})})})})),Do="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",Vo="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Lo=s((({value:o,urlPath:l="search",iconShow:s,fontColor:t,backgroundColor:n,borderRadius:c,paddingLeft:r,paddingRight:d,sticky:m,fontsize:h,paddings:u,otherStyles:g=[],__pageConfig:N})=>{const{View:C,Image:y}=p(),S=i((()=>f("txt",...g)),[g]);return e(C,{onClick:()=>b(l),style:{paddingTop:u,paddingBottom:u,paddingLeft:r,paddingRight:d},className:m?"boxpositon":"",children:a(C,{className:"components-search",style:{backgroundColor:n,borderRadius:c?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(y,{src:Do,alt:"",style:{height:"16px",width:"16px",display:s?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(C,{className:S,style:{color:t,display:"inline-block",fontSize:h},children:o})]})})})),Po=s((({value:o,iconShow:l,fontColor:s,backgroundColor:t,borderRadius:n,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:u=["mockWeight","mockItalic"],urlPath:g="search"})=>{const{View:N,Image:C}=p(),y=i((()=>f("txt",...u)),[u]);return e(N,{onClick:()=>b(g),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(N,{className:"components-search",style:{border:`1px solid ${t}`,borderRadius:n?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(N,{style:{width:"80%"},children:[e(C,{src:Do,alt:"",style:{height:"16px",width:"16px",display:l?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(N,{className:y,style:{color:s,display:"inline-block",fontSize:m},children:o})]}),e(N,{className:["seachBtn",n?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:t,width:"20%",color:s},children:"搜索"})]})})})),Ro=s((({placeholder:o,placeholderText:l,history:s,historyText:n,paddingBottom:r,paddingTop:d,fontSize:m,fontColor:h,isPointsGood:u})=>{const g=c(null),N=i((()=>y()),[]),{View:f,Text:S,Input:v}=p(),[k,I]=t((()=>x("history")||[])),[B,A]=t(""),T=e=>{b(u?"PointsGoodsList":"goodList",{searchParam:e})};return a(f,{className:"searchPage",style:{paddingTop:d,paddingBottom:r},children:[a(f,{className:"search-title",children:[e("img",{src:Do,alt:""}),e(v,Object.assign({ref:g,"confirm-type":"search",type:"text",className:"content",value:B,onInput:e=>A(e.detail.value),onConfirm:e=>na(void 0,void 0,void 0,(function*(){N&&(I((a=>{if(!a.includes(g.current.value||e.detail.value)&&(g.current.value||e.detail.value)){const o=a.concat(g.current.value||e.detail.value);return w("history",o),o}return a})),T(g.current.value||e.detail.value))}))},o?{placeholder:l}:{})),e(S,{className:"btn",onClick:()=>{const e=B.trim();e&&(I((a=>{if(!a.includes(e)){const o=a.concat(e);return w("history",o),o}return a})),T(e))},children:"搜索"})]}),s?a(f,{className:"historyWrap",children:[a(f,{className:"title",children:[e(f,{className:"label",style:{fontSize:m,color:h},children:n}),e(aa,{onClick:()=>na(void 0,void 0,void 0,(function*(){(yield C()).removeStorageSync("history"),I([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(f,{className:"content",children:k.map(((a,o)=>e(f,{onClick:()=>T(a),className:"historyItem",children:a},o)))})]}):null]})})),Mo=s((({defaultValue:o=[],classCode:l="",margin:s,circular:i=!1,cell:r,showSales:d=!0,gap:m=10,apiKey:h="goodsCode",goods:u=[],markedPrice:g,paddingTop:N,paddingBottom:C,paddingLeft:y,paddingRight:S,goodsName:x=!0,goodsPrice:w=!0,goodsCar:v=!0,goodsBorder:k=!0,goodsShadow:B=!1,marginGap:A=10})=>{const[L,P]=t(o),R=c(),{View:M,Text:O}=p();return n((()=>{V(R.current,u)||(R.current=u,D(u)?P(o):na(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(o)}})))}),[u]),e(M,{style:{paddingTop:N,paddingBottom:C},children:e(M,{className:f({[`goods-${l}`]:!0}),style:{display:"grid",gap:A,marginBottom:s,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:y,paddingRight:S},children:L.map(((o,l)=>a(M,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:k?"1px solid #000000":""},onClick:()=>b("goodDetail",{skuCode:o.skuCode}),className:["goods "+(B?"outer-shadow":"")].join(" "),children:[e(M,{className:"goods-img",style:{backgroundImage:`url(${He(o.dataPic)})`}}),a(M,{className:"space",children:[e(M,{className:"titleType",style:{display:x?"block":"none"},children:o.goodsName}),e(M,{className:"subTitle",children:o.brandName}),d&&a(M,{className:"sales",children:["已售:",o.goodsSalesvolume,"件"]}),a(M,{className:"price",children:[a(M,{style:{fontSize:18},children:[w?ra(o.pricesetNprice):"",1===g&&e(O,{className:"markedPrice",children:ra(o.pricesetMakeprice)})]}),e(M,{className:"anticon",style:{display:v?"block":"none"},children:e(aa,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},l)))})})})),Oo=s((({defaultValue:o,goods:l,price:s,marketPrice:t,cart:n,apiKey:i="goodsCode",wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:u,goodsGap:g,marginTop:N,marginBottom:f,marginLeft:C,marginRight:y})=>{const{View:S}=p(),{list:x}=Q({defaultValue:o,goods:l},i);return e(S,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f,marginLeft:C,marginRight:y},children:x.map(((o,l)=>a(S,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:u,marginRight:`${g}px`},onClick:()=>b("goodDetail",{skuCode:o.skuCode}),children:[e(S,{className:"img",style:{backgroundImage:`url(${He(o.dataPic)})`}}),a(S,{className:"board",children:[e(S,{className:"title",children:o.goodsName}),a(S,{className:"info",children:[a(S,{className:"lPart",children:[s?e(S,{className:"price",children:ra(o.pricesetNprice)}):null,t?e(S,{className:"marketPrice",children:ra(o.pricesetMakeprice)}):null]}),n?e(S,{className:"rPart",children:e(aa,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},l)))})})),zo=s((({defaultValue:o,goods:l,GoodsSlideshowBg:s,marketPrice:n,goodsName:c,salesNum:r,price:d,apiKey:m="goodsCode",goodsRadius:h,goodsBorder:u,goodsShadow:g,btnText:N,btnBg:f,btnColor:C,btnRadius:S})=>{const x=i((()=>y()),[]),{list:w}=Q({defaultValue:o,goods:l},m),{SmoothSwiper:v,View:k,Image:I}=p(),[B,A]=t(0);return a(k,{className:"goodsSlideshow",children:[e(I,{src:s,className:"bg",mode:"widthFix"}),e(v,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:w,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{A(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:o=>a(k,{className:["goodsSlideshowItem",""+(o.goodsCode===w[B].goodsCode&&x?"active":"")].join(" "),style:{borderRadius:h,borderStyle:u?"solid":"none",boxShadow:g?"0px 0px 20px 10px #ddd":""},onClick:()=>b("goodDetail",{skuCode:o.skuCode}),children:[e(I,{className:"logo",src:He(o.dataPic),mode:"widthFix"}),c?e(k,{className:"goodsName",children:o.goodsShowname}):null,r?a(k,{className:"salesNum",children:["销量:",o.goodsSalesvolume]}):null,d?e(k,{className:"price",children:ra(o.pricesetNprice)}):null,n?e(k,{className:"marketPrice",children:ra(o.pricesetMakeprice)}):null,e(k,{className:"btn",style:{backgroundColor:f,color:C,borderRadius:S},children:N})]})})]})})),Fo=({autoplay:a,vertical:o,skuCode:l,scene:s})=>{const{rsGoodsFileDomainList:t=[],memberCode:n=""}=q(l,s),i=Z.getState();Z.setState(Object.assign(Object.assign({},i),{memberCode:n})),console.log(24,n);const c=X(t);return e(ba,{selectImg:c,type:1,autoplay:a,vertical:o,imgHeight:{height:375,width:375}})},Yo=o=>{const{SmoothView:l,View:s}=p(),{handleCollect:t,collection:n}=J(o);return a(s,{onClick:t,children:[D(n.dataObj)?e(aa,{value:"star-fill",style:{fontSize:20}}):e(aa,{value:"star-fill",style:{color:"red",fontSize:20}}),e(l,{className:"txt",children:D(n.dataObj)?"收藏":"已收藏"})]})},Eo=({shareShow:a,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{if(!y())return;return"WEB"===C().getEnv()?e(o,{children:a?e(Wo,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s}):null}):e(Go,{goodsName:t,shareShow:a,setShareShow:l,rsGoodsFileDomainList:s})},Wo=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Button:i}=p(),{save:c,canvasRef:r,width:d,height:m}=ae(l,s,t);return e(n,{className:"share",children:o?a(n,{className:"share-content",style:{margin:"80px auto"},onClick:e=>{e.stopPropagation()},children:[e(n,{id:"share-canvas-id",className:"share-canvas",children:e("canvas",{ref:r,width:d,height:m,style:{width:`${d}px`,height:`${m}px`}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(i,{className:"txt",onClick:()=>l(!1),children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:c,children:e(i,{className:"txt",children:"保存图片"})})]})]}):null})},Go=({shareShow:o,setShareShow:l,rsGoodsFileDomainList:s,goodsName:t})=>{const{View:n,Canvas:i,Button:c}=p(),{save:r,width:d,height:m}=oe(l,s,t,o);return e(n,{style:{zIndex:o?1e3:-10,opacity:o?1:0},className:"share",children:a(n,{className:"share-content",style:{margin:"30px auto"},onClick:e=>{e.stopPropagation()},children:[o&&e(n,{className:"share-canvas",id:"share-canvas-id",children:e(i,{"canvas-id":"canvas",style:{width:`${d}px`,height:`${m}px`,position:"absolute"}})}),a(n,{className:"dashboard",children:[e(n,{className:"dashboard-item",children:e(c,{className:"txt",onClick:()=>{const e=Je.createCanvasContext("canvas");e.clearRect(0,0,d,m),e.draw(!0),l(!1)},children:"关闭海报"})}),e(n,{className:"dashboard-item",onClick:r,children:e(c,{className:"txt",children:"保存图片"})})]})]})})},jo=({skuCode:o,priceShow:l,collectionShow:s,scene:n})=>{const[i,c]=t(!1),{View:r,SmoothView:d,Canvas:m,Image:h,Button:u,IconMobile:g}=p(),{rsSkuDomainList:N,rsGoodsFileDomainList:f}=q(o,n),{goodInfo:b}=_(N);ee(o);return a(r,{className:"goodsDetail-topInfo",children:[e(Eo,{goodsName:b.goodsName,shareShow:i,setShareShow:c,rsGoodsFileDomainList:f}),a(r,{className:"lPart",children:[e(d,{className:"name",children:b.goodsName}),a(r,{style:{display:"flex",justifyContent:"space-between",marginTop:5},children:[a(r,{style:{display:"flex",flexDirection:"column"},children:[a(d,{className:"price",style:{display:l?"block":"none"},children:["会员价:",ra(b.pricesetNprice)]}),a(d,{className:"price",style:{display:l?"block":"none"},children:["促销价:",ra(b.pricesetNprice)]}),a(d,{className:"price",style:{display:l?"block":"none"},children:["阶梯价:",ra(.9*b.pricesetNprice)]})]}),e(u,{style:{width:80,padding:0,fontSize:14,marginRight:10,height:36},onClick:()=>{c(!0)},children:"生成海报"}),e(r,{onClick:e=>{e.stopPropagation(),(()=>{const e=C();e.setClipboardData({data:window.location.href,success:()=>{e.showToast({title:"复制成功",icon:"success"})},fail:()=>{e.showToast({title:"复制失败",icon:"none"})}})})()},children:e(g,{style:{fontSize:20,color:"#f00"},value:"share"})})]})]}),e(r,{className:"rPart",style:{display:s?"flex":"none"},children:e(Yo,{goodsName:b.goodsName,pricesetNprice:b.pricesetNprice,dataPic:He(b.dataPic),skuCode:o})})]})},Ho=s((o=>{const{collectionShow:l,shareShow:s}=o,{View:t}=p(),{handleCollect:n,collection:i}=J(o),{handleShare:c}=le();return a(t,{className:"handleBar",children:[l?e(t,{className:"collection",onClick:n,style:{borderRight:s?"1px solid #ddd":"none"},children:D(i.dataObj)?"收藏":"已收藏"}):null,s?e(t,{className:"share",onClick:c,children:"分享"}):null]})})),Uo=s((({priceShow:o,collectionShow:l,shareShow:s,skuCode:t,scene:n})=>{const{View:i,SmoothView:c}=p(),{rsSkuDomainList:r}=q(t,n),{goodInfo:d}=_(r);return se((e=>e.spec)),ee(t),a(i,{className:"goodsDetail-info-one",children:[e(c,{className:"price",style:{display:o?"block":"none"},children:ra(d.pricesetNprice)}),e(c,{className:"title",children:d.goodsName}),e(Ho,{collectionShow:l,shareShow:s,goodsName:d.goodsName,pricesetNprice:d.pricesetNprice,dataPic:He(d.dataPic),skuCode:t})]})})),$o=s((()=>{const{Text:e}=p(),o=se((e=>e.count)),l=se((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",o," 规格: ",l.toString()]})})),Ko=({dispatchPageStore:l})=>{const{View:s,Text:t}=p(),{openPopup:n}=te(l);return e(o,{children:a(s,{className:"goodsDetail-size",onClick:n,children:[e(t,{className:"label",children:"属性规格"}),a(s,{className:"info",children:[e($o,{}),e("img",{src:Vo,alt:"",className:"icon"})]})]})})},Qo=({skuCode:o,scene:l})=>{const{View:s,Text:t}=p(),{rsSkuDomainList:n}=q(o,l),{goodInfo:i}=_(n),c=ne(n,i.skuCode);return a(s,{className:"goodsDetail-promotion",children:[e(t,{className:"label",children:"促销"}),e(s,{className:"group",children:c.length?c.map((({discName:a},o)=>e(s,{className:"item",children:a.length<20?a:a.substring(0,10)+"..."},o))):e(s,{className:"noPromotion",children:"暂无促销活动"})})]})},qo=s((({promotionBegintime:o,pbName:l,discName:s,promotionCode:t,promotionName:n,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=p(),{save:u,isPick:g}=ie(),N=i((()=>c-r),[c,r]);return e(m,{className:"couponItem",children:a(m,{className:"coupon-content",children:[a(m,{className:"price",children:[e(m,{className:"symbol",children:l}),e(m,{className:"num",children:s})]}),a(m,{className:"info",children:[e(h,{className:"title",children:n}),a(h,{className:"date",children:[Ze(o).format("YYYY-MM-DD")," - ",Ze(d).format("YYYY-MM-DD")]})]}),e(m,N>0?{className:g?"coupon-pick-default":"coupon-pick",onClick:()=>u({promotionCode:t,couponAmount:1}),children:g?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),Zo=()=>{const{View:a,Image:o}=p();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},Xo=l=>{var{skuCode:s,scene:t}=l;ta(l,["skuCode","scene"]);const{View:n,Text:i,Popup:c,Image:r}=p(),{rsSkuDomainList:d}=q(s,t),{goodInfo:h}=_(d),{coupon:u,visible:g,setVisible:N}=ce(d,h.skuCode);return a(o,{children:[a(n,{className:"goodsDetail-coupon",onClick:()=>N(!0),children:[e(i,{className:"label",children:"优惠券"}),a(n,{className:"info",children:[e(i,{className:"label",children:"请选择优惠券"}),e(r,{src:Vo,alt:"",className:"icon"})]})]}),e(c,{popupVisible:g,popupHandler:N,children:e(n,{className:"goodsDetail-coupon-popup",children:e(Ma,{children:u.length>0?u.map(((e,a)=>m(qo,Object.assign({},e,{key:a})))):a(n,{className:"NoDataImg",children:[e(Zo,{}),e(n,{className:"btn",onClick:()=>N(!1),children:"确定"})]})})})})]})},Jo=({onChange:a,readOnly:o=!1,size:l=22,count:s})=>{const{View:i}=p(),[c,r]=t([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);n((()=>{if(s){const e=[...c];for(let a=0;a<e.length;a++)e[a].icon=a>s-1?"star":"star-fill";r(e)}}),[]);const d=e=>{if(!o){for(let a=0;a<c.length;a++)c[a].icon=a>e?"star":"star-fill";r([...c]),a(e+1)}};return e(i,{children:c.map(((a,o)=>e(aa,{onClick:d.bind(null,o),value:a.icon,style:{color:"#EC6C5C",fontSize:l}},o)))})},_o=({item:o})=>{const{View:l,Image:s,Text:t,Button:n}=p(),i=y(),c=C();x("user");const{userInfoCode:r}=x("user")||{userInfoCode:""};return a(l,{className:"rateItem",children:[a(l,{className:"topInfo",children:[a(l,{className:"lPart",children:[e(s,{src:o.userImgurl||"https://brushes.oss-cn-shanghai.aliyuncs.com/jinmen/avatar.png",className:"avatar"}),a(l,{className:"userInfo",children:[e(l,{className:"name",children:o.userName}),e(Jo,{readOnly:!0,size:14,count:o.evaluateScopeReList.length})]})]}),e(l,{className:"rPart",children:`${new Date(o.gmtCreate).getFullYear()}-${new Date(o.gmtCreate).getMonth()+1}-${new Date(o.gmtCreate).getDate()}`})]}),a(l,{className:"pj-wrapper",children:[a(l,{className:"flex-1",children:[e(l,{className:"size",children:o.skuName}),e(l,{className:"content",children:o.evaluateGoodsContent})]}),o.memberBcode===r?e(t,{className:"del-txt",onClick:()=>{(e=>{na(void 0,void 0,void 0,(function*(){try{const a=e.evaluateGoodsId;if(!a)return;yield _e({evaluateGoodsId:a,isLocalMock:!i}),yield S("删除成功","none"),c.navigateBack({delta:1})}catch(e){console.log(e)}}))})(o)},children:"删除"}):null]}),o.shopReply&&o.shopReply.length?e(l,{className:"merchant-reply",children:o.shopReply.map((({evaluateReplyContent:o},s)=>a(l,{children:[e(t,{className:"merchant-reply-title",children:"商家回复"}),e(t,{children:o})]},s)))}):null]})},el=({evaluateArr:o})=>{const{View:l}=p();return console.log(7,o),e(l,{className:"goodsDetailEvaluate",children:o.length?a(l,{children:[a(l,{className:"topInfo",children:["评价 (",o.length,")"]}),o.slice(0,5).map(((a,o)=>e(_o,{item:a},o)))]}):e(to,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},al=({goodsRemark:a})=>{const{View:o}=p(),l=i((()=>a.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,"")),[a]);return e(o,{className:"goodsDetail-info",children:e("div",{dangerouslySetInnerHTML:{__html:l||""}})})},ol=({tabActive:l,setTabActive:s,evaluateShow:t,evaluateImgShow:n,evaluateImg:c})=>{const{Text:r}=p(),d=i((()=>n?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[t]);return e(o,{children:d.map(((o,t)=>e(h,{children:a(r,{className:"tabsItem "+(l===t?"active":""),onClick:()=>s(t),children:[o.title,e(r,{className:"line"})]})},t)))})},ll=({evaluateShow:o,evaluateImgShow:l,evaluateImg:s,skuCode:n,scene:i})=>{const{View:c}=p(),[r,d]=t(0),{goodsRemark:m,goodsCode:h}=q(n,i),u=re(h);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(ol,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:l,evaluateImg:s})}),e(c,{className:"group",children:0===r?e(al,{goodsRemark:m}):e(el,{evaluateArr:u,evaluateImgShow:l,evaluateImg:s})})]})},sl=({skuName:o,handleChooseSize:l,goodsShowname:s,skuOption:t,index:n})=>{const{View:i,Text:c}=p(),r=se((e=>e.offShelf)),d=(e,a)=>!!e&&(e.includes(`/${a}/`)||e.endsWith(a)||e.startsWith(a));return a(i,{className:"sizeArr",children:[e(c,{className:"title",children:o}),e(i,{className:"sizeArrItemWrap",children:t.map(((a,o)=>e(i,{className:f({sizeItem:!0,active:d(s,a.specValueValue),offShelf:!d(s,a.specValueValue)&&r}),onClick:l.bind(null,a.specValueValue,n),children:a.specValueValue},o)))})]})},{Stepper:tl}=g,nl=({count:a,handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=p(),n=s||1,i=l||999;return e(t,{className:"numStep",style:{width:"100px"},children:e(tl,{value:a,min:n,max:i,onChange:e=>{if(null===e||isNaN(e))return;const l=Math.floor(e);if(l!==a+1)if(l!==a-1){if(l<n)S(`不能小于${n}`,"none");else if(l>i)S("超库存","none");else if(l!==a){const e=Z.getState();Z.setState(Object.assign(Object.assign({},e),{count:l}))}}else o("minus");else o("plus")}})})},il=s((({handleStep:o,goodsNum:l,goodsMinnum:s})=>{const{View:t}=p(),n=se((e=>e.count));return a(t,{className:"countWrap",children:[e(t,{className:"label",children:"购买数量"}),e(nl,{count:n,handleStep:o,goodsNum:l,goodsMinnum:s})]})})),cl=({skuInfo:l,handleChooseSize:s,spec:t,goodInfo:n})=>{const{Image:i,View:c}=p(),{skuList:r}=l,d=n&&"06"===n.goodsType?n.pricesetRefrice+"积分":ra(n.pricesetNprice);return a(o,{children:[a(c,{className:"goodsInfo",children:[e(c,{className:"lPart",children:e(i,{src:He(n.dataPic),alt:"",className:"goodsImg"})}),a(c,{className:"rPart",children:[e(c,{className:"name",children:n.goodsName}),e(c,{className:"price",children:d}),a(c,{className:"chosen",children:["已选择: ",t.toString()]}),a(c,{className:"price",children:["库存: ",n.goodsSupplynum||"100"]})]})]}),r.map(((a,o)=>e(sl,{goodsShowname:n.skuName,handleChooseSize:s,index:o,skuName:a.skuName,skuOption:a.skuOption},o)))]})},rl=({cashImpl:l,addShoppingImpl:s,addCardImpl:t})=>{const{Text:n,View:i}=p(),c=se((e=>e.isNeedButton)),r=se((e=>e.offShelf));return r?e(i,{className:f({btnWrap:!0,offShelf:r}),children:e(n,{className:"btn",children:"已下架"})}):e(o,{children:c?e(i,{className:"btnWrap",onClick:s,children:e(n,{className:"btn",children:"确认"})}):a(i,{className:"goods-detail-btn-group popup-buy-button",children:[e(i,{className:"btn addCart",onClick:t,children:"加入购物车"}),e(i,{className:"btn buy",onClick:l,children:"立即购买"})]})})},dl=s((({dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{View:n,ScrollView:i}=p(),{spec:c,goodInfo:r}=_(t),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:u,addShoppingImpl:g}=de(l,s,t,o);return a(n,{className:"goodsDetail-size-popup",children:[e(Ma,{children:e(i,{children:a(n,{className:"content",children:[e(cl,{skuInfo:s,handleChooseSize:d,spec:c,goodInfo:r}),e(il,{handleStep:m.bind(null,r.goodsNum,r.goodsMinnum),goodsNum:r.goodsNum,goodsMinnum:r.goodsMinnum})]})})}),e(rl,{cashImpl:u,addShoppingImpl:g,addCardImpl:h})]})})),ml=({popupVisible:a,dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})=>{const{Popup:n}=p();return e(n,{popupVisible:a,popupHandler:()=>{o({visible:!1})},children:e(dl,{dispatchPageStore:o,goodsCode:l,skuInfo:s,rsSkuDomainList:t})})},hl=s((({serverShow:l,cartShow:s,lPartShow:i,lPartColor:c,lPartBgColor:r,lPartStyle:d,rPartColor:m,rPartBgColor:h,rPartStyle:u,rPartText:g,dispatchPageStore:N,skuCode:f,platform:C,scene:y})=>{const{View:S,IconMobile:x,Text:w}=p(),v=se((e=>e.offShelf)),{rsSkuDomainList:k,goodPro:I}=q(f,y),{goodInfo:B}=_(k),{servicePopup:A}=ia(C),{addCardPopup:T,buyOpenPopup:D}=te(N),[V,L]=t("10px");return n((()=>{const e=(()=>{try{const e=Je.getSystemInfoSync(),a=Je.getEnv();if(a===Je.ENV_TYPE.WEAPP||a===Je.ENV_TYPE.ALIPAY||a===Je.ENV_TYPE.SWAN||a===Je.ENV_TYPE.TT||a===Je.ENV_TYPE.JD){let a=0;if(e.safeArea&&e.safeArea.bottom)a=e.screenHeight-e.safeArea.bottom;else if(e.safeAreaInsets&&e.safeAreaInsets.bottom)a=e.safeAreaInsets.bottom;else if(e.model){const o=e.model.toLowerCase();(o.includes("iphone x")||o.includes("iphone 11")||o.includes("iphone 12")||o.includes("iphone 13")||o.includes("iphone 14")||o.includes("iphone 15"))&&(a=34)}return`${10+a}px`}return"calc(15px + env(safe-area-inset-bottom, 0px))"}catch(e){return"15px"}})();L(e)}),[]),a(S,{className:"goodsDetailHandleBar",style:{paddingBottom:V},children:[a(S,{className:"linkGroup server",onClick:A,style:{display:l?"block":"none"},children:[e(x,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(S,{className:"txt",children:"客服"})]}),a(S,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:s?"block":"none"},children:[e(x,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(S,{className:"txt",children:"购物车"})]}),e(S,{className:"goods-detail-btn-group",children:v?e(S,{className:"btn addCart offShelf",children:e(w,{className:"btn",children:"已下架"})}):a(o,{children:["26"===I||!1===i?null:e(S,{className:"btn addCart",onClick:T,style:{color:c,backgroundColor:r,borderTopLeftRadius:d,borderBottomLeftRadius:d},children:"加入购物车"}),e(S,{onClick:D,className:"btn buy",style:Object.assign({color:m,backgroundColor:h,borderTopRightRadius:u,borderBottomRightRadius:u},!1===i?{borderTopLeftRadius:u,borderBottomLeftRadius:u}:{}),children:g||("10"===B.goodsPro?"预售抢购":"立即购买")})]})})]})})),pl=l=>{var{$_dataSource:s={},dispatchPageStore:t=L,skuCode:n,scene:i}=l,c=ta(l,["$_dataSource","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m),{popupVisible:p}=s;return a(o,{children:[e(hl,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(ml,{dispatchPageStore:t,popupVisible:p,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},ul=s((({serverShow:o,cartShow:l,lBtnBorderColor:s,lBtnFontColor:t,lBtnColor:n,lBtnStyle:i,rBtnBorderColor:c,rBtnFontColor:r,rBtnColor:d,rBtnStyle:m,dispatchPageStore:h,skuCode:u,scene:g,platform:N})=>{const{View:f,IconMobile:C}=p(),{rsSkuDomainList:y}=q(u,g),{goodInfo:S}=_(y),{servicePopup:x}=ia(N),{addCardPopup:w,buyOpenPopup:v}=te(h);return a(f,{className:"goodsDetailHandleBarOne",children:[a(f,{className:"linkGroup server",onClick:x,style:{display:o?"block":"none"},children:[e(C,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(f,{className:"txt",children:"客服"})]}),a(f,{className:"linkGroup cart",onClick:()=>b("shopping"),style:{display:l?"block":"none"},children:[e(C,{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:w,style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0"},children:"加入购物车"}),e(f,{onClick:v,className:"btn buy",style:{border:`1px solid ${c}`,color:r,backgroundColor:d,borderRadius:1===m?"20px":"0"},children:"10"===S.goodsPro?"预售抢购":"立即购买"})]})]})})),gl=l=>{var{popupVisible:s=!1,dispatchPageStore:t=L,skuCode:n,scene:i}=l,c=ta(l,["popupVisible","dispatchPageStore","skuCode","scene"]);const{rsSpecValueDomainList:r,goodsCode:d,rsSkuDomainList:m}=q(n,i),h=me(r,m);return a(o,{children:[e(ul,Object.assign({skuCode:n},c,{dispatchPageStore:t})),e(ml,{dispatchPageStore:t,popupVisible:s,goodsCode:d,rsSkuDomainList:m,skuInfo:h})]})},Nl=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],fl=({setParams:o,activeColor:l})=>{const{View:s}=p(),[n,i]=t(0),[c,r]=t(Nl);return e(s,{className:"sortWrap",children:c.map((({order:t,sortField:c,name:d},m)=>a(s,{className:"sortItem "+(n===m?"active":""),onClick:()=>((e,a,l)=>{i(a),l&&r((e=>(e[a].order="asc"===l?"desc":"asc",[...e]))),o({sortField:e,order:l})})(c,m,t),style:{color:n===m?l:""},children:[d,t&&a(s,{className:"orderIcons",children:[e(aa,{style:{color:n===m&&"desc"!==t?l:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(aa,{style:{color:n===m&&"desc"===t?l:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},Cl=s((({classtreeCode:o="",searchParam:l="",activeColor:s="#e54e29",goodsName:n=!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__:C={}})=>{console.log(111,C);const{View:b,Loading:y,SmoothView:S,Image:x,ScrollView:w,IconMobile:v}=p(),[k,I]=t({}),{loading:B,getData:A,list:T}=he(o,l,k),D=i((()=>f("textBox",{btm:!c&&!r})),[c,r]),V=i((()=>f("name",{boxNone:!n})),[n]),L=i((()=>f("middle_margin",{boxNone:!d})),[d]),P=i((()=>f("goodDetail",{boxNone:!c&&!r&&!m})),[c,r,m]),R=i((()=>f({detailContent:!(V.includes("boxNone")&&L.includes("boxNone")&&P.includes("boxNone"))})),[V,L,P]);return a(b,{className:"goodsList",children:[e(b,{className:"top-info",children:e(fl,{setParams:I,activeColor:s})}),e(b,{className:"listWrap",style:{padding:` 0px ${N}px`},children:e(Ma,{id:"listWrap",children:a(w,{onScroll:()=>A(k),children:[e(b,{className:"list",style:{gap:g},children:T.map((o=>a(b,{onClick:()=>qe(C,{skuCode:o.skuCode}),className:"listItem",style:{borderRadius:h?"8px":"",boxShadow:u?"4px 4px 4px #969292":""},children:[e(x,{src:He(o.dataPic),className:"img"}),a(b,{className:R,children:[e(S,{className:V,children:o.goodsName}),a(b,{className:L,children:["已售:",o.goodsNum]}),a(b,{className:P,children:[a(b,{className:D,children:[e(S,{className:"price",style:{display:c?"block":"none"},children:ra(o.pricesetNprice)})," ",e(b,{className:"decoration",style:{display:r?"block":"none"},children:ra(o.pricesetMakeprice)})]}),e(b,{style:{display:m?"block":"none"},children:e(v,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},o.skuCode)))}),B?e(y,{}):null]})})})]})})),bl=({dispatchPageStore:a,$_dataSource:o={cartIsEditor:!1},btnStyle:l,borderColor:s,textColor:t,btnColor:n,btnShape:c})=>{const{View:r}=p(),{cartIsEditor:d}=o,{editorImpl:m}=pe(a),h=i((()=>({border:l?`2px solid ${s}`:"",color:l?t:"",background:l?n:"",borderRadius:l?c:""})),[l,s,t,n,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},yl=s((({promotionName:o,checked:l,promotionCode:s})=>{const{View:t,Radio:n}=p();return a(t,{className:"promotion-item",children:[e(t,{className:"content",children:o}),e(t,{className:"choose",children:e(n,{"data-code":l,checked:l,value:s})})]})})),Sl=({onChange:a,promotionCode:o,visible:l,setVisible:s,promotion:t})=>{const{Popup:n,ScrollView:i,View:c,SmoothRadio:r}=p();return e(n,{popupVisible:l,popupHandler:s,children:e(c,{className:"goodsDetail-coupon-popup",children:e(Ma,{children:e(i,{children:e(r,{onChange:a,children:t.map(((e,a)=>m(yl,Object.assign({checked:e.promotionCode===o},e,{key:a}))))})})})})})},xl=s((({goodsName:l,dataState:s,skuName:t,goodsCamount:n,shoppingGoodsId:i,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=p();return e(o,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:l}),a(d,{className:"cartItem-size",children:["规格:",t," X ",n]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:ra(c)}),0===s&&e(h,{count:n,handleStep:r.bind(null,i,n)})]})]})})})),wl=s((({dataPic:o,dataState:l,skuCode:s})=>{const{Image:t,View:n}=p(),c=i((()=>{let a="";switch(l){case 3:case 1:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/goodsLose.png";break;case 2:a="https://brushes.oss-cn-shanghai.aliyuncs.com/static/lowcode-platform/offshelf.png"}return 0!==l?e(n,{className:"bg",children:e(t,{className:"icon-img",src:a})}):null}),[l]);return a(n,{className:"cart-item-image",children:[c,e(t,{className:"img",src:o,onClick:()=>b("goodDetail",{skuCode:s})})]})})),vl=s((({cartIsEditor:a,shoppingGoodsId:o,dataState:l,select:s=[]})=>{const{View:t,Checkbox:n}=p(),c=i((()=>(a||0===l)&&s.includes(o)),[s,a,o,l]);return console.log(106,typeof o),e(t,{className:"checkBoxWrap",children:e(n,{disabled:!a&&0!==l,checked:c,value:o,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),kl=({promotion:l=[],updatePm:s,shoppingGoodsId:n,promotionCode:c})=>{const{View:r}=p(),[d,m]=t(!1),h=i((()=>((l||[]).find((e=>e.promotionCode===c))||{}).promotionName),[l]);return a(o,{children:[a(r,{className:"cart-promote-active",onClick:()=>m(!0),children:[e(r,{children:h}),e(r,{children:"修改"})]}),e(r,{onClick:e=>{e.target.dataset.code&&(m(!1),s(n,"-"))},children:e(Sl,{promotionCode:c,onChange:e=>{m(!1),s(n,ge(e))},promotion:l||[],visible:d,setVisible:m})})]})},Il=s((o=>{var{item:l}=o,s=ta(o,["item"]);const{View:t}=p(),{select:n,cartIsEditor:i}=s;return a(t,{className:"cart-list-item",children:[e(vl,{cartIsEditor:i,dataState:l.dataState,select:n,shoppingGoodsId:l.shoppingGoodsId}),e(wl,{dataState:l.dataState,dataPic:He(l.dataPic),skuCode:l.skuCode}),e(xl,Object.assign({},l,s))]})})),Bl=l=>{var{shoppingGoodsList:s=[]}=l,t=ta(l,["shoppingGoodsList"]);return e(o,{children:s.map(((o,l)=>a(h,{children:[e(Il,Object.assign({},t,{item:o})),o.pmPromotionList?e(kl,{promotionCode:t.promotionCode,shoppingGoodsId:o.shoppingGoodsId,updatePm:t.updatePm,promotion:o.pmPromotionList}):null]},l)))})},Al=({disNextMsg:o,link:l})=>{const{View:s,IconMobile:t}=p(),n=i((()=>D(l)?null:a(s,{style:{color:"#ED4444",textAlign:"right"},onClick:()=>qe(l,{}),children:["去凑单",e(t,{style:{fontSize:"14px",color:"#888"},value:"xiangyou1"})]})),[l]);return a(s,{className:"cart-dis-title-msg",children:[e(s,{className:"dis-msg",children:o}),n]})},Tl=({disNextMsg:o,promotionName:l,pbName:s,link:t})=>{const{View:n,SmoothView:i}=p();return a(n,{className:"cart-dis-title",children:[e(i,{className:"tips",children:s}),e(i,{className:"title",children:l}),o&&e(Al,{link:t,disNextMsg:o})]})},Dl=({refreshNum:l,dispatchPageStore:s,$_dataSource:t={cartSelect:[],cartUpdateCount:0,cartIsEditor:!1},__link__:n={},cartItemRadius:i="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=p(),{cartSelect:m,cartUpdateCount:u,cartIsEditor:g}=t,{loading:N,cartList:f,onChange:C,handleStep:b,updatePm:y}=ue(l,u,s);return console.log(286,m),e(r,{loading:N,children:e(d,{className:"cart-wrap",children:e(c,{value:m,onChange:C,children:f.length?e(o,{children:f.map((({memberName:o,promotionCode:l,disNextMsg:s,promotionName:t,pbName:c,shoppingGoodsList:r},p)=>a(h,{children:[e("h4",{children:o}),a(d,{className:"cart-bg",style:{borderRadius:i},children:[t?e(Tl,{link:n,disNextMsg:s,promotionName:t,pbName:c}):null,e(Bl,{cartIsEditor:g,promotionCode:l,handleStep:b,select:m,updatePm:y,shoppingGoodsList:r,cartItemRadius:i})]})]},p)))}):e(to,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Vl=({$_dataSource:o={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:l,countBorderColor:s="#000000",countTextColor:t="#ffffff",countBtnColor:n="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=p(),{cartInfo:u,cartDisMoney:g,cartSelect:N,cartIsEditor:f}=o,{toOrderImpl:C,deleteCart:b,clearAll:y,selectAll:S,ids:x,cartDetail:w}=Ne(N,u,l),v=i((()=>({border:`1px solid ${s}`,color:t,background:n,borderRadius:c})),[s,t,n,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{value:u.length===N.length?["true"]:[],onChange:S,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:b,className:"btn",children:"删除"})]}:{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:ra(g)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:ra(w.amount)})]})]}),a(r,{onClick:C,className:"btn",style:v,children:["结算(",w.num,")"]})]})]})},Ll=({address:a})=>e(o,{children:D(a)?e(Rl,{}):e(Pl,{address:a})}),Pl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,addressDefault:a,cityName:l,areaName:s,addressDetail:t,addressMember:n="",addressPhone:i=""}=o;return{addressDefault:"1"===a,addressMember:n,addressPhone:i,address:e+l+s+t}}),[o]);return a(l,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(l,{className:"left",children:[a(l,{className:"left-title",children:[e(s,{children:n.addressMember}),e(s,{className:"left-padding",children:n.addressPhone}),n.addressDefault?e(s,{className:"left-padding left-title-default",children:"默认"}):null]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Rl=()=>{const{View:l,Text:s}=p();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Ml=({refreshNum:a,skuId:o="",goodsNum:l=0,shoppingGoodsId:s="",longContractgoodsBeanStr:t=""})=>{const{View:n}=p(),i=fe(a,l,o,s,t);return e(n,{className:"placeOrder-chooseAddress",onClick:()=>b("addressList"),children:e(Ll,{address:i})})},Ol=({address:a})=>e(o,{children:D(a)?e(Fl,{}):e(zl,{address:a})}),zl=({address:o})=>{const{View:l,SmoothView:s,IconMobile:t}=p(),n=i((()=>{const{provinceName:e,cityName:a,areaName:l,addressDetail:s,addressMember:t="",addressPhone:n=""}=o;return{displayName:t,displayPhone:n,address:(e||"")+(a||"")+(l||"")+(s||"")}}),[o]);return a(l,{className:"address-info",children:[e(t,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(l,{className:"left",children:[a(l,{className:"left-title",children:[e(s,{children:n.displayName}),e(s,{className:"left-padding",children:n.displayPhone})]}),e(s,{className:"left-detail",children:n.address})]}),e(t,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Fl=()=>{const{View:l,Text:s}=p();return a(o,{children:[a(l,{className:"group",children:[e(s,{className:"local"}),e(s,{className:"address",children:"选择收货地址"})]}),e(s,{className:"arrow"})]})},Yl=({refreshNum:a})=>{const{View:o}=p(),l=Ce(a);return e(o,{className:"placeOrder-chooseAddress",onClick:()=>b("pickupPointList"),children:e(Ol,{address:l})})},El=({tabActive:l,setTabActive:s})=>{const{Text:t}=p();return e(o,{children:[{title:"快递",id:"0"},{title:"自提",id:"1"}].map(((o,n)=>e(h,{children:a(t,{className:"tabsItem "+(l===o.id?"active":""),onClick:()=>s(o.id),children:[o.title,e(t,{className:"line"})]})},o.id)))})},Wl=({refreshNum:o,skuId:l="",goodsNum:s=0,shoppingGoodsId:i="",longContractgoodsBeanStr:c=""})=>{const{View:r,Text:d}=p(),[m,h]=t("0");return n((()=>{be.contractPumode=m}),[m]),a(r,{className:"placeOrderAddressTabs",children:[a(r,{className:"delivery-header",children:[e(d,{className:"delivery-label",children:"配送方式:"}),e(r,{className:"tabs",children:e(El,{tabActive:m,setTabActive:h})})]}),e(r,{className:"content",children:"0"===m?e(Ml,{refreshNum:o&&o.addressId,skuId:l,goodsNum:s,shoppingGoodsId:i,longContractgoodsBeanStr:c}):e(Yl,{refreshNum:o&&o.userinfoOcode,skuId:l,goodsNum:s,shoppingGoodsId:i})})]})},Gl=s((({couponStart:o,pbName:l,discName:s,isDisabled:t,couponNo:n,promotionName:i,couponEnd:c})=>{const{View:r,Text:d,Checkbox:m}=p();return e(r,{className:"couponItem",children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(r,{className:"symbol",children:l}),e(r,{className:"num",children:s})]}),a(r,{className:"info",children:[e(d,{className:"title",children:i}),a(d,{className:"date",children:[Ze(o).format("YYYY-MM-DD")," - ",Ze(c).format("YYYY-MM-DD")]})]}),e(r,{className:"choose",children:e(m,{disabled:t,value:n})})]})})})),jl=s((({couponStart:o,pbName:l,discName:s,couponNo:t,promotionName:n,couponEnd:i})=>{const{View:c,Text:r,Radio:d}=p();return e(c,{className:"couponItem",children:a(c,{className:"coupon-content",children:[a(c,{className:"price",children:[e(c,{className:"symbol",children:l}),e(c,{className:"num",children:s})]}),a(c,{className:"info",children:[e(r,{className:"title",children:n}),a(r,{className:"date",children:[Ze(o).format("YYYY-MM-DD")," - ",Ze(i).format("YYYY-MM-DD")]})]}),e(c,{className:"choose",children:e(d,{value:t})})]})})})),Hl=({refreshNum:l,couponType:s=!0,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d})=>{const{View:h,Text:u,Popup:g,Form:N,SmoothRadio:f,Button:C,SmoothCheckbox:b,ScrollView:y,Radio:S,Image:x}=p(),{shoppingGoodsList:w}=ye({refreshNum:l,goodsNum:t,skuId:n,shoppingGoodsId:i,goodsBeanStr:c,longContractgoodsBeanStr:r,scontractCode:d}),{coupon:v,visible:k,couponValue:I=[],setVisible:B,selectCoupon:A,onChange:T,onCreditChange:D,confirmImpl:V,resetImpl:L,contractPmode:P,onPayChange:R,payList:M,payName:O,creditList:z,creditInfo:F,selectCredit:Y,creditVisible:E,payVisible:W,setPayVisible:G,handleChooseImg:j,contractEcurl:H,setCreditVisible:U}=Se(w,s);return a(o,{children:[w.some((e=>"06"===e.goodsType))?null:a(o,{children:[a(h,{className:"coupon-select",onClick:()=>B(0!==v.length),children:[e(u,{className:"label",children:"使用优惠"}),a(h,{className:"info",children:[e(u,{className:"label",children:A?`已选择: ${A}`:0===v.length?"暂无可用优惠券":"请选择优惠券"}),0===v.length?null:e("img",{src:Vo,alt:"",className:"icon"})]})]}),a(h,{className:"coupon-select",onClick:()=>G(!0),children:[e(u,{className:"label",children:"支付方式"}),a(h,{className:"info",children:[e(u,{className:"label",children:O?`已选择: ${O}`:"请选择支付方式"}),0===v.length?null:e("img",{src:Vo,alt:"",className:"icon"})]})]})]}),F.urechargeId&&"0"===P&&a(h,{className:"coupon-select",onClick:()=>U(0!==z.length),children:[e(u,{className:"label",children:"使用授信"}),a(h,{className:"info",children:[e(u,{className:"label",children:Y?0===+Y?"不使用":`已选择: ${Y}%`:"请选择授信"}),0===v.length?null:e("img",{src:Vo,alt:"",className:"icon"})]})]}),"1"===P&&a(h,{className:"coupon-select",children:[e(u,{className:"label",children:"附件上传"}),a(h,{style:{fontSize:12,display:"flex",flexDirection:"column",alignItems:"flex-end"},children:[e(h,{className:"img-fields",onClick:j,children:H?e(x,{src:H,className:"img",alt:H,mode:"widthFix"}):e(h,{children:"上传图片"})}),e(h,{children:"只能上传jpg/png文件,且不超过5mb"})]})]}),e(g,{popupVisible:W,popupHandler:G,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ma,{children:e(y,{children:e(f,{value:P||"",onChange:R,children:(null==M?void 0:M.length)>0&&M.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(S,{checked:o.ptfpmodeType===P,value:o.ptfpmodeType}),o.ptfpmodeName]},l)))},"payVisible")})})})}),e(g,{popupVisible:E,popupHandler:U,children:e(h,{className:"goodsDetail-coupon-popup ver-line",children:e(Ma,{children:e(y,{children:e(f,{onChange:D,children:(null==z?void 0:z.length)>0&&z.map(((o,l)=>a(h,{style:{marginBottom:5},children:[e(S,{value:o.flagSettingInfo}),0===o.flagSettingInfo?"不使用":`${o.flagSettingInfo}%`]})))},"creditVisible")})})})}),e(g,{popupVisible:k,popupHandler:B,children:a(h,{className:"goodsDetail-coupon-popup",children:[e(Ma,{children:e(y,{children:s?e(b,{value:(null==I?void 0:I.length)>0?I.map((e=>e.couponNo)):[],onChange:T,children:(null==v?void 0:v.length)>0&&v.map((e=>m(Gl,Object.assign({isDisabled:2===I.length},e,{key:e.couponNo}))))},"visible"):e(f,{value:(null==I?void 0:I.length)>0?I[0].couponNo:"",onChange:T,children:v.map(((e,a)=>m(jl,Object.assign({},e,{key:a}))))},"visible")})}),a(h,{className:"place-footer",children:[e(C,{className:"operate reset",onClick:L,children:"重置"}),e(C,{className:"operate",onClick:V,children:"确认"})]})]})})]})},Ul=({shippingMethod:o=1})=>{const{View:l}=p();return e(l,{className:"info placeOrder-blcWrap",style:1===o?{display:"block"}:{display:"none"},children:a(l,{className:"express placeOrder-blcItem",children:[e(l,{className:"label",children:"配送方式"}),e(l,{className:"value",children:"快递"})]})})},$l=({refreshNum:a,goodsNum:l,skuId:s,shoppingGoodsId:t,goodsBeanStr:n,longContractgoodsBeanStr:i,scontractCode:c})=>{const{View:r}=p(),{list:d}=ye({refreshNum:a,goodsNum:l,skuId:s,goodsBeanStr:n,shoppingGoodsId:t,longContractgoodsBeanStr:i,scontractCode:c});return e(r,{className:"place-order-goods",children:d.map(((a=[],l)=>e(o,{children:(a||[]).map(((a,o)=>e($a,Object.assign({},a),l)))})))})},Kl=({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r})=>{const{View:d,SmoothView:m,Image:h,TextArea:u,Textarea:g}=p(),N=g||u,f=ye({refreshNum:l,goodsNum:s,skuId:t,shoppingGoodsId:n,goodsBeanStr:i,longContractgoodsBeanStr:c,scontractCode:r}),{payState:C,disCount:b,creditMoney:y,freight:S,payPrice:x,rebMoney:w}=f,v=f.pointsDeduction||0,k=f.urDiscount||0,{shoppingCountPrice:I,comDisMoney:B,changeContent:A,shoppingType:T,pricesetRefrice:D}=xe(C),V=ra(Math.max(x-y,0));return e(d,{style:{paddingBottom:80},children:a(d,{className:"price placeOrder-blcWrap",children:[e(d,{className:"title",children:"价格明细"}),"06"===T?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"商品总金额"}),e(m,{className:"value",children:ra(I)})]}),null!==v&&a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"积分抵扣"}),a(m,{className:"value",style:{color:"#f00"},children:["-","06"===T?v+"积分":ra(v)]})]}),"06"===T?null:a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"会员权益优惠"}),a(m,{className:"value",style:{color:"#f00"},children:["-",ra(k)]})]}),"06"===T?null:a(o,{children:[a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"授信付款:"}),e(m,{className:"value",children:ra(-y)})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"返利金额"}),e(m,{className:"value",children:ra(-w.current)})]}),a(d,{className:"coupon placeOrder-blcItem",children:[e(d,{className:"label",children:"优惠金额"}),e(m,{className:"value",children:ra(-(B+b))})]})]}),a(d,{className:"express placeOrder-blcItem",children:[e(d,{className:"label",children:"运费"}),e(m,{className:"value",children:ra(S)})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"订单备注"}),e(N,{className:"content",placeholder:"订单备注",rows:5,maxLength:30,onInput:A})]}),a(d,{className:"all placeOrder-blcItem",children:[e(d,{className:"label",children:"总计"}),e(m,{className:"value",style:{color:"#000"},children:i?"0.00":V})]})]})})},Ql=({color:o,buttonColor:l,borderColor:s,borderRadius:t,refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h})=>{const{View:u,Text:g,WrapLoading:N}=p(),{payPrice:f,list:C,payState:b,creditMoney:y,ocContractSettlList:S,pointsDeduction:x}=ye({refreshNum:n,goodsNum:i,skuId:c,goodsBeanStr:r,shoppingGoodsId:d,longContractgoodsBeanStr:m,scontractCode:h}),{savePayPrice:w,loading:v}=we({ocContractSettlList:S,payState:b,list:C,goodsBeanStr:r},d,Math.max(f-y,0));b&&b.length>0&&(b[0].shoppingType,b[0].pricesetRefrice);const k=ra(Math.max(f-y,0));return a(u,{className:"placeOrderFooter",children:[a(g,{className:"price",children:["合计: ",r?"0.00":k]}),e(N,{loading:v,children:e(u,{className:"btn",onClick:w,style:{color:`${o}`,border:`1px solid ${s}`,backgroundColor:`${l}`,borderRadius:1===t?"40px":"0px"},children:"生成订单"})})]})},ql=s((({contractBillcode:o,contractBbillcode:l,btnColor:s,btnShape:t,borderColor:c,paddingTop:r,paddingBottom:d,color:m})=>{const h=i((()=>y()),[]),{View:u,Text:g,Radio:N,IconMobile:f,WrapLoading:C,SmoothRadio:b}=p(),{paymentImpl:S,channelList:x,contract:w,handleRadio:v,loading:k}=ve({contractBillcode:o,contractBbillcode:l});return n((()=>{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:["订单号:",w.current.contractBillcode," | 总金额:",ra(w.current.contMoney+(w.current.logMoney||0)),"元"]}),a(u,{className:"info",children:["还需支付:",ra(w.current.orderMoney),"元"]})]}),e(u,{className:"paymentGroup",children:e(b,{onChange:v,children:null==x?void 0:x.map((o=>a(u,{className:"paymentItem",children:[e(f,{value:o.fchannelBankImgurl}),a(u,{children:[a(u,{className:"base",children:[e(g,{children:o.fchannelName}),e(N,{value:"1"===o.ptfchannelAmt?o.ptfchannelAmt:o.fchannelCode,className:"choose"})]}),"1"===o.ptfchannelAmt?a(u,{className:"info",children:[a(u,{children:["账户余额:",o.faccountAmount,"元"]}),a(u,{children:["支付金额:",ra(w.current.orderMoney),"元"]})]}):null]})]},o.fchannelCode)))})})]}),e(u,{id:"v_html"}),e(C,{loading:k,children:e(u,{className:"btnGroup",onClick:S,children:e(u,{style:{borderRadius:t,backgroundColor:s,color:m,borderColor:c},className:"payment",children:"立即支付"})})})]})})),Zl=({dataObj:o})=>{const{View:l,Text:s}=p();return a(l,{className:"placeOrderResultWrap",children:[a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"订单号:"}),e(s,{className:"value",children:o.contractBillcode})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付方式:"}),e(s,{className:"value",children:"在线支付"})]}),a(l,{className:"placeOrderResultItem",children:[e(s,{className:"label",children:"支付金额:"}),e(s,{className:"value",children:ra(o.dataBmoney)})]})]})},Xl=s((({code:o,borderRadius:l,leftColor:s,leftButtonColor:t,leftBorderColor:n,leftBorderRadius:i,rightValue:c,rightAddHref:r,rightColor:d,rightButtonColor:m,rightBorderColor:h,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:y,WrapLoading:S}=p(),{result:w,loading:v}=ke(o||(x("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(S,{loading:v,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===l?"20px":"0px"},children:[e(y,{value:w.icon,style:{fontSize:"35px",color:w.color}}),a(f,{className:"tips",children:[e(C,{className:"title",children:w.msg}),e(C,{className:"tip",children:w.info})]}),"success"===w.sysRecode&&e(Zl,{dataObj:w.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>b(w.menuCode,{contractBillcode:w.dataObj.contractBillcode}),style:{color:s,backgroundColor:t,border:`1px solid ${n}`,borderRadius:1===i?"20px":"0px"},children:w.buttonText}),e(f,{style:{color:d,backgroundColor:m,border:`1px solid ${h}`,borderRadius:1===u?"20px":"0px"},onClick:()=>b(r.value),className:"btn white",children:c})]})]})})})})),{Button:Jl}=g,_l=a=>{var{dataState:l}=a,s=ta(a,["dataState"]);return e(o,{children:["-1"].includes(l+"")?null:e(es,Object.assign({dataState:l},s))})},es=a=>{var{dataState:o,contractAppraise:l,contractType:s,color:t,borderColor:n,btnColor:i,btnShape:c}=a,r=ta(a,["dataState","contractAppraise","contractType","color","borderColor","btnColor","btnShape"]);const{View:d}=p();4!==o&&4!==o||1===l?4!==o&&4!==o||1!==l||(o=5):o=4;const{operateArray:m,handlerImpl:h}=Ie(Object.assign({dataState:o,contractAppraise:l,contractType:s},r));return e(d,{className:"btnGroup",children:m.map(((a,o)=>e(Jl,{style:{color:t,borderColor:n,backgroundColor:i},className:f({btn:!0,white:o<m.length-1,black:o===m.length-1}),onClick:()=>h(a.handler),shape:c,children:a.name},o)))})},{Button:as}=g,os=s((({copyContent:a=""})=>{const[o,l]=t(!1),s=i((()=>y()),[]),n=i((()=>s?C():null),[s]),c=e=>na(void 0,void 0,void 0,(function*(){if(navigator.clipboard&&navigator.clipboard.writeText)return navigator.clipboard.writeText(e);const a=document.createElement("textarea");a.value=e,a.style.position="fixed",a.style.top="0",a.style.left="0",a.style.opacity="0",document.body.appendChild(a),a.select();const o=document.execCommand("copy");if(document.body.removeChild(a),!o)throw new Error("复制失败")})),r=(e,a="success")=>{s&&n&&n.showToast?n.showToast({title:e,icon:a}):alert(e)};return e(as,{className:"copy",size:"mini",fill:"outline",onClick:()=>na(void 0,void 0,void 0,(function*(){if(a)try{s&&n&&n.setClipboardData?(yield new Promise(((e,o)=>{n.setClipboardData({data:a,success:e,fail:o})})),r("复制成功","success"),l(!0)):(yield c(a),r("复制成功","success"),l(!0))}catch(e){console.error("复制失败:",e),r("复制失败","error")}else r("复制内容为空","error")})),children:o?"已复制":"复制"})})),ls=({contractPaydate:a,init:l,countdownCancel:s,contractId:i})=>{const{View:c,SmoothView:r}=p(),{resultTime:d}=((e,a,o,l)=>{const[s,i]=t("");return n((()=>{const s=setTimeout((()=>{const s=new Date(e),t=new Date,n=s.getTime()-(t.getTime()-3600);n<999&&n>0?o(l).then((()=>{a()})):n>1e3&&i(ma(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}})(a,l,s,i);return e(o,{children:d?e(c,{className:"card-item-info-countDown",children:e(r,{children:d})}):null})};function ss({contractBillcode:o,dataBmoney:l,dataBnum:s,goodsList:t,dataState:n,contractId:i,init:c,contractAppraise:r,borderRadius:d,orderSpacing:m,contractPaydate:h,contractType:u,countdownCancel:g}){const{View:N}=p(),f=Be(n,r);return a(N,{className:"orderListItem",style:{borderRadius:d?8:"",marginTop:m,marginBottom:m},children:[a(N,{children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",o,e(os,{copyContent:o})]}),e(N,{className:"status",children:f})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",onClick:()=>b("orderDetail",{contractBillcode:o}),children:t.map((a=>e($a,Object.assign({},a,{dataState:n,children:1===n&&e(ls,{contractPaydate:h,init:c,countdownCancel:g,contractId:i})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",s,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",ra(l)]})]}),e(_l,{init:c,contractType:u,contractId:i,contractBillcode:o,dataState:n,contractAppraise:r,dataBmoney:l})]})}const ts=()=>{const{View:a,Image:o}=p();return e(a,{children:e(o,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ns=s((function({item:o,refreshNum:l,borderRadius:s,orderSpacing:t,contractType:n}){const{View:i,ScrollView:c,Loading:r}=p(),{onScroll:d,data:h,loading:u,init:g,countdownCancel:N}=Ae(o,l,n);return e(i,{className:"orderListItemWrap",children:e(Ma,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(i,{children:[h.map(((e,a)=>m(ss,Object.assign({init:g},e,{key:a,borderRadius:s,orderSpacing:t,countdownCancel:N})))),e(i,{children:u?e(r,{}):null})]}):a(i,{className:"nodata_img",children:[e(ts,{}),e(i,{className:"nodata-btn",onClick:()=>b("goodList"),children:"前往购物"})]})})})})})),is=process.env.TARO_ENV;let cs=Te;if(console.log("platform",is),"h5"==is){const e=window.location.origin;console.log("origin",e),e.includes("points-mall.beiq.net")&&(cs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}else{const e=Je.getAccountInfoSync().miniProgram.domainInfo;console.log(e),e&&e.requestDomain&&e.requestDomain.includes("points-mall.beiq.net")&&(cs=[{name:"全部",code:""},{name:"待付款",code:"1"},{name:"待发货",code:"2"},{name:"待收货",code:"3"},{name:"已完成",code:"4"},{name:"已取消",code:"-1"}])}const rs=s((({refreshNum:a=0,indexId:o=0,borderRadius:l=!1,orderSpacing:s=12,contractType:t=""})=>{const{View:n,Tabs:i}=p();return e(n,{className:"order-container",children:e(i,{defaultIndex:+o,tabs:cs,render:o=>e(n,{className:"orderList",children:e(ns,{contractType:t,item:o,orderSpacing:s,refreshNum:a,borderRadius:l})})})})})),ds=s((({contractBillcode:l,expressWay:s,backgroundColor:t,color:n,paddingBottom:i,paddingTop:c,borderColor:r,btnColor:d,btnShape:m,url:u})=>{const{View:g,Text:N,Image:f}=p(),{orderDetail:C,handleApplyBtn:y,creditMoney:S,packageRemark:x}=De(l||""),w=e=>Ze(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:t},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===Be(C.dataState)?e(aa,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:Be(C.dataState,C.contractAppraise)})]}),e(g,{className:"subTitleWrap",children:w(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:c+"px",paddingBottom:i+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(aa,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:C.goodsReceiptMem}),e(N,{className:"personPhone",children:C.goodsReceiptPhone})]}),e(g,{className:"address",children:C.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[C.goodsList.map((l=>a(o,{children:[e($a,Object.assign({},l),l.contractGoodsId),e(g,{className:"orderBtn",style:{marginBottom:5},onClick:()=>{b(u,{skuCode:l.skuCode})},children:"商品快照"}),Number(C.dataState)>1&&Number(C.dataState)<5&&"06"!==C.contractType?e(g,{className:"orderBtn maxWidth",onClick:y.bind(null,l,C.dataState),children:"申请退款(取消订单)"}):""]}))),e(g,{className:"priceInfo",children:"06"!=C.contractType?a(h,{children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",C.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((C.dataBmoney-C.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",C.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",-C.goodsPmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"客服电话"}),e(g,{className:"totalPrice",children:"13284246638"})]})]}):""})]}),s&&a(o,{children:[a(g,{className:"express",children:[e(g,{className:"label",children:"物流信息"}),e(g,{className:"name",children:"韵达快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"配送信息"}),e(g,{className:"name",children:"1"===C.contractPumode?"自提":"快递"})]}),a(g,{className:"express",children:[e(g,{className:"label",children:"发票信息"}),e(g,{className:"name",children:"未开票"})]})]}),a(g,{className:"orderInfo",children:[e(g,{className:"orderInfoItem",children:e(g,{style:{fontSize:14},children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"运费"}),a(g,{className:"name",children:["¥",C.goodsLogmoney]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"买家留言"}),e(g,{className:"name",children:x||"-"})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(os,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:w(C.gmtCreate)})]}),"06"!=C.contractType?a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"授信金额"}),e(g,{className:"name",children:ra(-S)})]}):"",a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"支付方式"}),e(g,{className:"name",children:e(g,{className:"name",children:"0"===C.contractPmode?"线上支付":"线下支付"})})]}),"1"===C.contractPmode&&a(g,{className:"orderInfoItem container-img-top",children:[e(g,{className:"label",children:"付款凭证"}),e(g,{className:"name",children:e(f,{mode:"widthFix",style:{width:100},src:He(C.contractEcurl)})})]})]}),e(g,{className:"btnGroupFooter",children:e(_l,{borderColor:r,btnColor:d,btnShape:m,color:n,contractBillcode:C.contractBillcode,contractId:C.contractId,contractType:C.contractType,dataState:C.dataState,dataBmoney:C.dataBmoney,contractAppraise:C.contractAppraise})})]})})]})})),ms=({defaultValue:o,info:l,detail:s,stateObj:t})=>{const{View:n}=p(),i=T(l,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),c=T(l,"packageList.length",o.count),r=T(l,"packageList[0].expressName",o.expressName),d=T(l,"packageList[0].packageBillno",o.packageBillno),m=T(s,"state",o.result)||"-1";return a(n,{className:"expressInfoTop",children:[e(n,{className:"goodsImg",style:{backgroundImage:`url(${i})`},children:a(n,{className:"tip",children:["共 ",c," 件商品"]})}),a(n,{className:"list",children:[a(n,{className:"listItem",children:["物流状态:",m?t[m]:"暂时无法获取物流状态"]}),a(n,{className:"listItem",children:["快递公司:",r]}),a(n,{className:"listItem",children:["快递单号:",d]})]})]})},hs=({defaultValue:o,detail:l})=>{const{View:s}=p(),t=T(l,"message",o.message),n=T(l,"data",o.list);return e(s,{className:"expressInfoStep",children:"ok"===t?n.map(((o,l)=>a(s,{className:"step",children:[e(s,{className:"time",children:o.time}),e(s,{children:o.context})]},l))):e(s,{className:"noInfo",children:t})})},ps=s((({code:o,defaultValue:l})=>{const{View:s}=p(),{info:t,detail:n,stateObj:i}=Ve(o);return a(s,{className:"expressInfo",children:[e(ms,{info:t,detail:n,stateObj:i,defaultValue:l}),e(hs,{detail:n,defaultValue:l})]})})),us=s((({avatarStyle:o,paddingTop:l,paddingBottom:s,userAvatar:i,userNickname:c,refreshNum:r})=>{const{View:d,Text:m,IconMobile:h,Image:u}=p(),{servicePopup:g}=ia(),[N,f]=t(c),[C,y]=t(i);return n((()=>{f(x("userNickname")),y(x("userAvatar"))}),[r]),a(d,{className:"mineData",style:{paddingTop:`${l}px`,paddingBottom:`${s}px`},children:[a(d,{className:"topBoard",children:[e(h,{value:"bianzu",onClick:()=>b("/account/setting/index")}),e(h,{value:"kehufuwukefu",onClick:g})]}),a(d,{className:"userSetting",onClick:()=>b("/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:C,alt:"",className:"avatar",style:{borderRadius:o?"50%":"2px"}})]})]})})),gs=s((({title:o,columnList:l})=>{const{View:s,Text:i,Badge:c,Image:r}=p(),[d,m]=t({});n((()=>{na(void 0,void 0,void 0,(function*(){try{const e=yield B();m(e.dataObj)}catch(e){}}))}),[]);const h=(e,a)=>{4!==e.id?b("orderlist",{indexId:a+1}):b("afterSalesList")};return console.log(333,l,d),a(s,{className:"mineOrderEntry",children:[a(s,{className:"title",children:[e(s,{className:"name",children:o}),e(s,{className:"more",onClick:()=>b("orderlist"),children:"查看全部"})]}),e(s,{className:"content",children:l.map(((o,l)=>a(s,{onClick:h.bind(null,o,l),className:"contentItem",style:{display:o.show?"block":"none"},children:[e(c,Object.assign({},d[o.code]>0?{content:d[o.code]}:{},{color:"#f00",style:{color:"#fff",fontSize:12},children:e(r,{src:o.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:o.label})]},l)))})]})})),Ns=s((({paddingTop:o,paddingBottom:l,columnList:s})=>{const{View:t,Text:n,IconMobile:i,Image:c}=p();return e(t,{className:"mineFunction",style:{paddingTop:o+"px",paddingBottom:l+"px"},children:s.map(((o,l)=>a(t,{className:"menuListItem",onClick:()=>b(o.link.value),children:[a(t,{className:"lPart",children:[e(c,{src:He(o.imgUrl),className:"icon"}),e(n,{className:"label",children:o.link.label})]}),e(i,{value:"xiangyou1"})]},l)))})})),fs=({starColor:o="#FF0934",starSize:l="12px",itemData:s})=>{const{View:t,Text:n,Image:i}=p(),{Rate:c}=g;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(i,{src:s.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(n,{className:"userName",children:s.userName}),e(c,{readOnly:!0,value:s.rate,style:{"--star-size":l,"--active-color":o}})]})]}),a(t,{className:"size",children:["规格: ",s.size]}),e(t,{className:"content",children:s.evaluate}),e(t,{className:"img-group",children:s.imgUrls.map(((a,o)=>e(i,{src:a.imgUrl,className:"img"},o)))})]})},Cs=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],bs=s((()=>{const[l,s]=t("1"),{View:n}=p(),i=c([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{s(e)};return a(o,{children:[e(n,{className:"evaluateListTab",children:i.current.map((e=>a(n,{className:"evaluateListTabItem "+(e.index===l?"active":""),"data-index":e.index,onClick:r.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(n,{className:"evaluateListContent",children:Cs.map(((a,o)=>e(fs,{itemData:a},o)))})]})})),ys=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:n,buttonBorderRadius:i,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,changeStar:u,Submit:N,changeContent:f}=Le(o),{Button:C}=g,{View:b,Image:y,TextArea:S,Textarea:x}=p(),w=x||S,v=c("宝贝满足你吗?分享一下它吧");return a(b,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>a(h,{children:[a(b,{className:"topInfo",children:[a(b,{className:"lPart",children:[e(y,{src:He(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(b,{className:"goodsInfo",children:[e(b,{className:"goodsName",children:o.goodsName}),e(b,{className:"goodsSize",children:o.skuName})]})]}),e(b,{className:"rPart",children:a(b,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(b,{className:"rate",children:[e(b,{className:"title",children:"商品评价"}),e(Jo,{onChange:u.bind(null,s)})]}),e(b,{className:"evaluate",children:e(w,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:f.bind(null,s)})})]},s))),e(C,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===i?"20px":"0px"},className:"btn",onClick:N,children:"提交"})]})})),Ss=s((({code:o,borderRadius:l,borderColor:s,color:t,buttonColor:n,isNeedDelete:i,buttonBorderRadius:c,paddingTop:r,paddingBottom:d})=>{const{orderInfo:m,handleDelete:u}=Pe(o),{Button:N}=g,{View:f,Image:C,Text:b}=p();return a(f,{className:"evaluateDetail",style:{paddingTop:r,paddingBottom:d},children:[m.map(((o,s)=>{var t;return a(h,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(C,{src:He(o.dataPic),className:"img",style:{borderRadius:1===l?"20px":"0px"}}),a(f,{className:"goodsInfo",children:[e(f,{className:"goodsName",children:o.goodsName}),e(f,{className:"goodsSize",children:o.skuName})]})]}),e(f,{className:"rPart",children:o.pricesetNprice&&a(f,{className:"price",children:["¥ ",o.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Jo,{readOnly:!0,count:(null===(t=o.evaluateScopeReList)||void 0===t?void 0:t.length)||0})]}),e(f,{className:"evaluate",children:e(f,{className:"content",children:e(b,{children:o.evaluateGoodsContent||""})})})]},s)})),m.length?e(N,{style:{border:`1px solid ${s}`,color:t,backgroundColor:n,borderRadius:1===c?"20px":"0px",marginTop:20},className:"btn",onClick:u,children:"删除"}):null]})})),xs=({item:o,edit:l,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[l?e(i,{className:"lPart",value:o.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:o.collectOpcode}),children:[e(n,{src:He(o.collectOppic),className:"img"}),a(t,{className:"info",children:[e(c,{className:"title",children:o.collectOpcont}),a(c,{className:"price",children:[o.collectOpnum," 元"]})]})]})]})},ws=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(Ma,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:o.map((a=>e(xs,{item:a,edit:l,checked:r},a.collectId)))}),l?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:i,children:"删除"})]}):null]})})]})})})),vs=({item:o,edit:l,checked:s})=>{const{View:t,Image:n,Checkbox:i,SmoothView:c}=p();return a(t,{className:"collectItem",children:[l?e(i,{className:"lPart",value:o.collectCode,checked:s}):null,a(t,{className:"rPart",onClick:()=>b("merchantShop",{memberCode:o.collectOpcode}),children:[e(n,{src:He(o.collectOppic),className:"img"}),e(t,{className:"info",children:e(c,{className:"title",children:o.collectOpcont})})]})]})},ks=s((()=>{const{collectionList:o,edit:l,setEdit:s,getData:t,getSelectItem:n,delItem:i,init:c,checked:r,handleSelectAll:d,selectAllChecked:m}=Re(1),{View:h,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=p();return e(h,{className:"collectList",children:0===o.length?e(h,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(h,{className:"hasDate",children:[e(h,{className:"topBar",children:e(h,{className:"edit",onClick:()=>s(!l),children:l?"完成":"编辑"})}),e(Ma,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:t,onScrollToUpper:c,children:[e(g,{onChange:n,style:{height:"100%"},children:o.map(((a,o)=>e(vs,{item:a,edit:l,checked:r},a.collectId||o)))}),l?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:i,children:"删除"})]}):null]})})]})})})),Is=({footprintItem:o,edit:l})=>{const{View:s,Image:t,Checkbox:n,SmoothView:c}=p(),r=i((()=>o.footprintOpnum?`${o.footprintOpnum}元`:""),[o.footprintOpnum]);return a(s,{className:"footprintItem",children:[l?e(s,{className:"lPart",children:e(n,{value:o.footprintCode})}):null,a(s,{className:"rPart",onClick:()=>b("goodDetail",{skuCode:o.footprintOpcode}),children:[e(t,{src:He(o.footprintOppic),className:"img"}),a(s,{className:"info",children:[e(c,{className:"title",children:o.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},Bs=({item:l,edit:s})=>{const{View:t}=p();return a(t,{className:"footPrint",children:[e(o,{children:e(t,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==l?void 0:l.title})}),l.option.map(((a,o)=>e(Is,{footprintItem:a,edit:s},o)))]})},As=({footprintList:a,edit:l})=>{const s=i((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Ze(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),o=P(e,"gmtCreate");return Object.keys(o).map((e=>({title:e||"",option:o[e]})))}),[a]);return e(o,{children:s.map(((a,o)=>e(Bs,{item:a,edit:l},o)))})},Ts=s((()=>{const{View:o,ScrollView:l,SmoothCheckbox:s,Button:t,WrapLoading:n}=p(),{footprintList:i,edit:c,setEdit:r,getSelectItem:d,delItem:m,getData:h,loading:u}=Me();return e(n,{loading:u,children:e(o,{className:"footprint",children:a(o,{className:"hasDate",children:[e(o,{className:"topBar",children:e(o,{className:"edit",onClick:()=>r(!c),children:c?"完成":"编辑"})}),e(Ma,{id:"topBar1",children:a(l,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:h,children:[e(s,{onChange:d,children:e(As,{footprintList:i,edit:c})}),c?a(o,{className:"handleBar",children:[e(o,{className:"checkAll"}),e(t,{className:"btn",onClick:m,children:"删除"})]}):null]})})]})})})})),Ds=s((({buttonText:o,buttonBackground:l,borderRadius:s,paddingTop:t,paddingBottom:n})=>{const{View:c,Text:r,Button:d,WrapLoading:m,IconMobile:h}=p(),{signedDates:u,pointsNum:g,loading:N,signing:f,handleSignin:C}=Oe(),b=Ze(),y=b.format("YYYY-MM-DD"),S=i((()=>u.includes(y)),[u,y]),x=i((()=>{const e=b.year(),a=b.month(),o=Ze(`${e}-${a+1}-01`),l=o.endOf("month"),s=o.day(),t=0===s?6:s-1,n=o.subtract(t,"day"),i=l.day(),c=0===i?0:7-i,r=l.add(c,"day"),d=[];let m=n;for(;m.isBefore(r)||m.isSame(r,"day");){const e=m.format("YYYY-MM-DD");d.push({date:m,isCurrentMonth:m.month()===a,isToday:m.isSame(b,"day"),isSigned:u.includes(e)}),m=m.add(1,"day")}return d}),[b,u]),w=i((()=>b.format("YYYY年MM月")),[b]);return e(m,{loading:N,children:a(c,{className:"memberSignin",style:{paddingTop:t+"px",paddingBottom:n+"px"},children:[e(c,{className:"signinHeader",children:e(r,{className:"dateText",children:w})}),a(c,{className:"signinCalendar",children:[e(c,{className:"weekDays",children:["一","二","三","四","五","六","日"].map(((a,o)=>e(c,{className:"weekDay",children:e(r,{children:a})},o)))}),e(c,{className:"calendarGrid",children:x.map(((o,s)=>a(c,{className:`calendarDay ${o.isCurrentMonth?"":"otherMonth"} ${o.isToday?"today":""} ${o.isSigned?"signed":""}`,children:[e(r,{className:"dayNumber",style:o.isToday?{color:l}:{},children:o.date.date()}),o.isSigned&&e(h,{value:"roundcheck",style:{fontSize:"12px",color:"#52c41a",position:"absolute",bottom:"2px",left:"50%",transform:"translateX(-50%)"}})]},s)))})]}),a(c,{className:"signinButtonWrapper",children:[g>0&&e(c,{className:"pointsTip",children:a(r,{className:"pointsTipText",children:["每日签到可获得 ",e(r,{children:g})," 积分"]})}),e(d,{className:"signinButton",disabled:S||f,onClick:C,style:{backgroundColor:l,opacity:S?.3:1,borderRadius:1===s?"22px":"8px"},children:f?"签到中...":S?"已签到":o})]})]})})})),Vs=s((({title:o,themeColor:l="#fa8c16",paddingTop:s,paddingBottom:n})=>{const{View:c,Text:r,Popup:d,WrapLoading:m}=p(),[h,u]=t((()=>Ze())),[g,N]=t(!1),[f,C]=t((()=>Ze().year())),[b,y]=t((()=>Ze().month()+1)),{signinDetails:S,loading:x,refresh:w}=ze(h),v=i((()=>h.format("YYYY年MM月")),[h]),k=i((()=>Array.from({length:12},((e,a)=>a+1))),[]),I=i((()=>S.sort(((e,a)=>Ze(a.date).valueOf()-Ze(e.date).valueOf()))),[S]);return e(m,{loading:x,children:a(c,{className:"signinDetail",style:{paddingTop:s+"px",paddingBottom:n+"px"},children:[a(c,{className:"signinDetailHeader",children:[e(r,{className:"titleText",children:o}),a(c,{className:"dateSelector",onClick:()=>{const e=h.year(),a=h.month()+1;C(e),y(a),N(!0)},children:[e(r,{className:"dateText",children:v}),e(r,{className:"arrowIcon",children:"▼"})]})]}),e(c,{className:"signinDetailList",children:I.length>0?I.map(((o,s)=>{const t=Ze(o.date);return a(c,{className:"signinDetailItem",children:[e(r,{className:"dateText",children:t.format("MM月DD日")}),a(r,{className:"pointsText",style:{color:l},children:["+",o.points,"积分"]})]},s)})):e(c,{className:"emptyState",children:e(r,{className:"emptyText",children:"暂无签到记录"})})}),e(d,{popupVisible:g,popupHandler:N,children:e(c,{className:"datePickerPopup",children:a(c,{className:"pickerContent",children:[a(c,{className:"yearSelector",children:[e(c,{className:"yearArrow",onClick:()=>{C((e=>e-1))},children:e(r,{className:"arrowText",children:"«"})}),a(r,{className:"yearText",children:[f,"年"]}),e(c,{className:"yearArrow",onClick:()=>{C((e=>e+1))},children:e(r,{className:"arrowText",children:"»"})})]}),e(c,{className:"monthGrid",children:k.map((o=>e(c,{className:"monthItem "+(b===o?"active":""),onClick:()=>(e=>{y(e);const a=Ze(`${f}-${String(e).padStart(2,"0")}-01`);u(a),N(!1)})(o),style:b===o?{backgroundColor:l}:{},children:a(r,{className:"monthText",children:[o,"月"]})},o)))})]})})})]})})})),Ls=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ps=s((({activeColor:a,setParams:o,params:l})=>{const{View:s}=p();return e(s,{className:"promotionListTab",children:Ls.map(((t,n)=>e(s,{className:"promotionListTabItem",onClick:()=>o(t.val),style:{color:t.val===l?a:"#000"},children:t.label},n)))})})),Rs=({data:o})=>{const{View:l}=p(),{pbName:s,promotionName:t,pmPromotionDiscountList:n,promotionBegintime:i,promotionEndtime:c}=o;return a(l,{className:"promotionItem",children:[a(l,{className:"lPart",children:[e(l,{className:"round"}),e(l,{className:"tagBg",children:a(l,{className:"txt",children:["官方",s]})}),e(l,{className:"rule",children:n.at(-1).discName}),e(l,{className:"title",children:t}),a(l,{className:"time",children:[Ze(i).format("YYYY-MM-DD")," ~ ",Ze(c).format("YYYY-MM-DD")]})]}),e(l,{className:"rPart",children:e(l,{className:"sideBorder"})})]})},Ms=s((({activeColor:o,paddingTop:l,paddingBottom:s})=>{const[n,i]=t(Ls[0].val),{list:c,getData:r}=Fe({params:n}),{View:d,ScrollView:m}=p();return a(d,{style:{padding:`${l}px 0 ${s}px`},children:[e(Ps,{activeColor:o,setParams:i,params:n}),e(d,{children:e(Ma,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,o)=>e(Rs,{data:a},o)))})})})]})}));s((()=>{const{View:a,Skeleton:l}=p(),s=c(new Array(3).fill(0));return e(o,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:s.current.map(((a,o)=>e(l,{className:"skullItem",animated:!0},o)))})})})}));const Os=()=>{const{View:a,Image:o}=p();return e(a,{className:"noData",children:e(o,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})})},zs=({list:l,coe:s,config:t,backgroundColor:n,color:i,shopName:c})=>{const{View:r,Text:d}=p();return e(o,{children:l.length?l.map(((l,m)=>e(r,{className:`couponListItem\n ${t.current[s.current].styleName} ${2===l.dataState?"overdue":""}`,style:{backgroundColor:n,color:i},children:a(r,{className:"coupon-content",children:[a(r,{className:"price",children:[e(d,{className:"num",children:l.pbName}),e(d,{className:"title",children:l.discName})]}),a(r,{className:"couponListItem-info",children:[e(d,{className:"member-name",children:c||l.memberName}),e(r,{className:"info-top",children:a(d,{className:"disc-start",children:["使用规则:满",l.discStart,"元可用"]})}),a(d,{className:"date",children:["有效期至:",Ze(l.couponEnd).format("YYYY-MM-DD HH:mm")]}),a(d,{className:"date",children:["领取时间:",Ze(l.gmtCreate).format("YYYY-MM-DD HH:mm")]}),1===l.dataState?a(d,{className:"date",children:["使用时间:",Ze(l.gmtModified).format("YYYY-MM-DD HH:mm")]}):null,t.current[s.current].text?e(r,{className:"btn",children:t.current[s.current].text}):null,2===l.dataState?e(o,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},m))):e(Os,{})})},Fs=s((({backgroundColor:o,color:l,paddingTop:s,paddingBottom:t,queue:n})=>{const{View:i,Text:c,ScrollView:r}=p(),{coe:d,getList:m,config:h,switchTab:u,list:g=[]}=Ye();return a(i,{className:"couponList",children:[e(i,{className:"couponTab",children:h.current.map(((o,l)=>a(i,{className:"couponTabItem "+(d.current===l?"active":""),onClick:()=>u(l),children:[o.label,e(c,{className:"icon"})]},o.id)))}),e(Ma,{id:"couponTab",bottomHeight:"60",children:e(r,{onScroll:m,children:e(i,{className:"couponListContent",style:{paddingTop:s,paddingBottom:t},children:e(zs,{backgroundColor:o,color:l,queue:n,list:g,coe:d,config:h})})})})]})})),Ys=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,titleColor:c,ruleColor:r,timeColor:d,paddingTop:m,paddingBottom:h})=>{const{View:u}=p(),{list:g,takeCoupon:N,takeList:f}=Ee({defaultValue:o,coupons:l});return e(u,{style:{paddingTop:`${m}px`,paddingBottom:`${h}px`},children:g.map(((o,l)=>{const m=T(o,"pbName"),h=T(o,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),g=T(o,"promotionName"),C=Ze(T(o,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(T(o,"promotionEndtime")).format("YYYY-MM-DD"),y=T(o,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:s,borderColor:t},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:i},children:m}),e(u,{className:"rule",style:{color:r},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:c},children:g}),a(u,{className:"validity",style:{color:d},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||f.includes(l)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Es=s((({defaultValue:o,coupons:l,bg:s,borderColor:t,btnColor:n,typeColor:i,ruleColor:c,titleColor:r,timeColor:d,gap:m,paddingTop:h,paddingBottom:u})=>{const{View:g}=p(),{list:N,takeCoupon:f,takeList:C}=Ee({defaultValue:o,coupons:l});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:h,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:m},children:N.map(((o,l)=>{const m=T(o,"pbName"),h=T(o,"pmPromotionDiscountList"),p=T(h.at(-1),"discName"),u=T(o,"promotionName"),N=Ze(T(o,"promotionBegintime")).format("YYYY-MM-DD"),b=Ze(T(o,"promotionEndtime")).format("YYYY-MM-DD"),y=T(o,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:s,borderColor:t},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:i},children:m}),e(g,{className:"rule",style:{color:c},children:p}),e(g,{className:"info",style:{color:r},children:u}),a(g,{className:"validity",style:{color:d},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:n},children:-1===o.availabledate||C.includes(l)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>f({promotionCode:y,couponAmount:1,index:l}),children:"立 即 领 取"})})]},l)}))})})),Ws=s((o=>{var{type:l=1,coupons:s=[]}=o,t=ta(o,["type","coupons"]);const{View:n}=p();return a(n,{className:"getCouponOne",children:[1===l?e(Ys,Object.assign({coupons:s},t)):null,2===l?e(Es,Object.assign({coupons:s},t)):null]})})),Gs=({direction:a,speed:o,num:l,color:s})=>{const{content:t,navigator:n}=We(l);return e(N,{navigator:n,color:s,speed:o,direction:a,content:t})},js=s((({noticeId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{View:i,Image:c}=p(),{info:r}=Ge(o);return a(i,{className:"noticeDetailContainer",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:[e(i,{className:"title",children:r.noticeTitle}),r.noticePicurl?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl}):null,r.noticePicurl1?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl1}):null,r.noticePicurl2?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl2}):null,r.noticePicurl3?e(c,{className:"img",mode:"widthFix",src:r.noticePicurl3}):null,e(i,{className:"content",children:r.noticeContext})]})})),Hs=s((({doclistId:o,paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n})=>{const{info:i}=je(o),{View:c,ScrollView:r}=p(),{gmtCreate:d,doclistContent:m,doclistTitle:h,doclistTitle4:u}=i;return e(c,{className:"articleDetail",style:{paddingTop:l,paddingBottom:s,paddingLeft:t,paddingRight:n},children:e(Ma,{id:"a",children:a(r,{children:[e(c,{className:"title",children:h}),e(c,{className:"author",children:u}),a(c,{className:"time",children:["发布时间:",Ze(d).format("YYYY-MM-DD")]}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:m||""}})]})})})}));export{mo as AddressDetail,no as AddressList,io as AddressListBtn,Ya as AfterSalesApply,Xa as AfterSalesDetail,Ua as AfterSalesList,ao as AfterSalesType,Ms as AllPromotionList,Hs as ArticleDetail,Da as BackTop,Dl as CartList,Vl as CartOperate,bl as CartTop,wa as ClassifyNav,Ia as ClassifyNavOne,ka as ClassifyNavOneJsx,Ta as ClassifyNavThree,Ba as ClassifyNavTwo,ws as CollectionList,ks as CollectionShopList,Fs as CouponList,La as Cube,ys as EvaluateDetail,bs as EvaluateList,Ss as EvaluateViewDetail,ps as ExpressInfo,Ts as FootPrint,Ws as GetCouponOne,Mo as Goods,yo as GoodsClassify,ko as GoodsClassifyOne,To as GoodsClassifyTwo,ll as GoodsDetailAndEvaluate,Fo as GoodsDetailBanner,Xo as GoodsDetailCoupon,pl as GoodsDetailHandleBar,gl as GoodsDetailHandleBarOne,jo as GoodsDetailInfo,Uo as GoodsDetailInfoOne,Qo as GoodsDetailPromotion,Ko as GoodsDetailSku,Cl as GoodsList,Oo as GoodsSlider,zo as GoodsSlideshow,sa as Line,Ds as MemberSignin,us as MineData,Ns as MineFunction,gs as MineOrderEntry,ho as MyAgreementList,uo as MySetting,po as MySettingJsx,Gs as Notice,js as NoticeDetail,ds as OrderDetail,rs as OrderList,ql as PaymentMode,No as PickupPointList,Ml as PlaceOrderAddress,Wl as PlaceOrderAddressTabs,Hl as PlaceOrderCoupon,Ul as PlaceOrderDelivery,$l as PlaceOrderGood,Kl as PlaceOrderInfo,Ql as PlaceOrderOperate,Xl as PlaceOrderResult,aa as QjMobileIcon,Lo as Search,Ro as SearchPage,Po as SearchStyleTwo,ea as Service,Vs as SigninDetail,ya as Slider,la as TextLine,oa as Title,ha as ToPrice,Sa as Video,fo as WechatAddressBtn,ca as addressIdConst,ra as fixPrice,da as fixPrice1,ma as formatTime,ia as useService};
|