s-material-react 1.4.32 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,91 +2,94 @@
2
2
 
3
3
  .afterSalesList {
4
4
  background-color: #f7f7f7;
5
- padding: 20px 0;
6
5
 
7
6
  .qj-tabs {
8
7
  background-color: #ffffff;
9
8
  }
10
9
 
11
- .afterSalesListItem {
12
- background-color: #ffffff;
13
- border-radius: 12px;
14
- padding: 0 12px 12px;
15
- box-sizing: border-box;
16
- margin-bottom: 12px;
17
-
18
- .title {
19
- padding: 6px 0;
20
- border-bottom: 1px solid #f1f1f1;
21
- display: flex;
22
- align-items: center;
23
- justify-content: space-between;
24
-
25
- .lPart {
26
- color: #999999;
27
- font-size: 14px;
28
- }
10
+ .tabContent {
11
+ .afterSalesListItem {
12
+ background-color: #ffffff;
13
+ border-radius: 12px;
14
+ padding: 0 12px 12px;
15
+ box-sizing: border-box;
16
+ margin-bottom: 12px;
29
17
 
30
- .rPart {
18
+ .title {
19
+ padding: 6px 0;
20
+ border-bottom: 1px solid #f1f1f1;
31
21
  display: flex;
32
22
  align-items: center;
23
+ justify-content: space-between;
33
24
 
34
- .txt {
35
- color: $fontColor;
36
- padding-left: 5px;
37
- font-size: 12px;
25
+ .lPart {
26
+ color: #999999;
27
+ font-size: 14px;
38
28
  }
39
- }
40
- }
41
-
42
- .goodsInfo {
43
- display: flex;
44
- padding: 12px 0;
45
29
 
46
- .lPart {
47
- margin-right: 12px;
30
+ .rPart {
31
+ display: flex;
32
+ align-items: center;
48
33
 
49
- .img {
50
- width: 60px;
51
- height: 60px;
52
- border-radius: 4px;
34
+ .txt {
35
+ color: $fontColor;
36
+ padding-left: 5px;
37
+ font-size: 12px;
38
+ }
53
39
  }
54
40
  }
55
41
 
56
- .rPart {
57
- flex: 1;
42
+ .goodsInfo {
43
+ display: flex;
44
+ padding: 12px 0;
58
45
 
59
- .goodsName {
60
- color: $fontColor;
61
- font-size: 14px;
62
- margin-bottom: 9px;
46
+ .lPart {
47
+ margin-right: 12px;
48
+
49
+ .img {
50
+ width: 60px;
51
+ height: 60px;
52
+ border-radius: 4px;
53
+ }
63
54
  }
64
55
 
65
- .count {
66
- font-size: 12px;
67
- color: #a5a5a5;
56
+ .rPart {
57
+ flex: 1;
58
+ text-align: left;
59
+
60
+ .goodsName {
61
+ color: $fontColor;
62
+ font-size: 14px;
63
+ margin-bottom: 9px;
64
+ }
65
+
66
+ .count {
67
+ font-size: 12px;
68
+ color: #a5a5a5;
69
+ }
68
70
  }
69
71
  }
70
- }
71
72
 
72
- .tip {
73
- height: 40px;
74
- line-height: 40px;
75
- width: 100%;
76
- border-radius: 4px;
77
- background-color: #f5f5f5;
78
- display: flex;
79
- justify-content: space-between;
80
- align-items: center;
81
- padding: 0 12px;
82
- box-sizing: border-box;
73
+ .tip {
74
+ height: 40px;
75
+ line-height: 40px;
76
+ width: 100%;
77
+ border-radius: 4px;
78
+ background-color: #f5f5f5;
79
+ display: flex;
80
+ justify-content: space-between;
81
+ align-items: center;
82
+ padding: 0 12px;
83
+ box-sizing: border-box;
83
84
 
84
- .lPart {
85
- color: $fontColor;
86
- font-size: 12px;
85
+ .lPart {
86
+ color: $fontColor;
87
+ font-size: 12px;
88
+ }
87
89
  }
88
90
  }
89
91
  }
92
+
90
93
  .noData {
91
94
  .txt {
92
95
  font-size: 16px;
@@ -31,6 +31,7 @@
31
31
  flex: 1;
32
32
  display: block;
33
33
  padding-left: 8px;
34
+ text-align: left;
34
35
 
35
36
  .base {
36
37
  display: flex;
@@ -4,6 +4,7 @@ interface AfterSalesApplyType {
4
4
  contractBillcode: string;
5
5
  skuCode: string;
6
6
  goodsNum: number;
7
+ goodsPrice: number;
7
8
  }
8
9
  export declare const AfterSalesApply: React.FC<AfterSalesApplyType>;
9
10
  export {};
@@ -1,3 +1,4 @@
1
1
  export * from './collectItem';
2
2
  export * from './footprint';
3
3
  export * from './footprintGroup';
4
+ export * from './noData';
@@ -0,0 +1 @@
1
+ export declare const NoData: () => import("react/jsx-runtime").JSX.Element;
@@ -2,5 +2,5 @@ import { orderType } from 'qj-mobile-store';
2
2
  interface action {
3
3
  init: () => void;
4
4
  }
5
- export declare function Item({ contractBillcode, dataBmoney, dataBnum, goodsList, dataState, contractId, init, contractAppraise, borderRadius, orderSpacing, contractPaydate }: typeof orderType & action): import("react/jsx-runtime").JSX.Element;
5
+ export declare function Item({ contractBillcode, dataBmoney, dataBnum, goodsList, dataState, contractId, init, contractAppraise, borderRadius, orderSpacing, contractPaydate, countdownCancel }: typeof orderType & action): import("react/jsx-runtime").JSX.Element;
6
6
  export {};
@@ -1,3 +1,6 @@
1
- export declare const PlaceOrderAddress: ({ refreshNum }: {
1
+ export declare const PlaceOrderAddress: ({ refreshNum, skuId, goodsNum, shoppingGoodsId }: {
2
2
  refreshNum: string;
3
+ goodsNum: number;
4
+ skuId: string;
5
+ shoppingGoodsId: string;
3
6
  }) => import("react/jsx-runtime").JSX.Element;
@@ -1,3 +1,3 @@
1
- export declare const useCountDown: (contractPaydate: number, init: () => void) => {
1
+ export declare const useCountDown: (contractPaydate: number, init: () => void, countdownCancel: any, contractId: string | number) => {
2
2
  resultTime: string;
3
3
  };
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import{NoticeBar as o,useComponent as s,antdMobile as n,IconMobile as i}from"@brushes/simulate-component";import{useNotice as t,useCube as c,useOrderOperate as r,orderStatusImpl as d,useOrderList as m,orderStatusList as h,useOrderDetail as p,useGoodsClassify as u,useGoodsList as g,navigator as N,useEvaluateDetail as f,useExpressInfo as C,useEditAddress as b,useOrderResultResult as y,useCouponList as x,useStore as w,useCartItem as k,StoreProvider as v,useCartList as S,useCartTop as I,useCartListNext as A,useCartOperate as B,useFootprint as V,useCollectionList as T,useNoticeDetail as D,useArticleDetail as P,useOrderAddress as L,useOrderGood as R,useOrderCoupon as z,useOrderInfo as M,useOrderPay as O,useGoTop as F,useGoods as j,useGoodDetail as G,useBanner as W,useGoodCollection as E,useGoodSpecAndPrice as H,useGoodFootprint as Y,useGoodsShare as U,useGoodSkuStore as Q,popupImplement as _,usePromotion as K,useAddCoupon as q,useCoupon as $,useEvaluate as Z,useAddShopping as X,useGoodSku as J,useAllCoupon as ee,useMarketingPromotion as ae,useAddressItem as le,useAddressList as oe,useOrderResult as se,useMySetting as ne,useAfterSalesChooseType as ie,useAfterSalesApply as te,useAfterSalesDetail as ce,useAfterSalesList as re,afterSalesTabConfig as de}from"qj-mobile-store";import me,{memo as he,useMemo as pe,useState as ue,useEffect as ge,createElement as Ne,createContext as fe,useContext as Ce,useRef as be,Fragment as ye}from"react";import{navigatorHandler as xe,getEnv as we,getStorage as ke,getTaro as ve,useImmutableCallback as Se,navigatorBackImpl as Ie,setStorage as Ae}from"@brushes/utils";import Be from"classnames";import{queryOcsconfigList as Ve,getContractNumbers as Te,find as De}from"qj-b2c-api";import Pe from"dayjs";import{get as Le,isEmpty as Re,groupBy as ze,isEqual as Me,noop as Oe}from"lodash-es";import Fe from"china-division/dist/provinces.json";import je from"china-division/dist/cities.json";import Ge from"china-division/dist/areas.json";const We=({direction:a,speed:l,num:s,color:n})=>{const{content:i,navigator:c}=t(s);return e(o,{navigator:c,color:n,speed:l,direction:a,content:i})},Ee=he((({value:a,textIndent:l,fontSize:o,textAlign:n,color:i,backgroundColor:t,fontWeight:c,textDecoration:r,fontStyle:d,paddingTop:m,paddingLeft:h,paddingRight:p,paddingBottom:u})=>{const{View:g}=s();return e(g,{className:"components-title",style:{paddingTop:m,paddingBottom:u},children:e(g,{style:{fontSize:o,textAlign:n,color:i,backgroundColor:t,fontWeight:c,textDecoration:r,fontStyle:d,paddingLeft:h,paddingRight:p,textIndent:l},children:a})})})),He=he((({defaultValue:a,type:l,borderRadius:o,outerShadow:n,paddingRight:i,paddingLeft:t,picGap:r,xGap:d,paddingTop:m,paddingBottom:h,selectImg:p})=>{const{View:u,Image:g}=s(),N=c(a,p);return e(u,{style:{paddingTop:m,paddingBottom:h,paddingLeft:d,paddingRight:d},children:e(u,{className:`cube-type${l}`,style:{paddingLeft:t,paddingRight:i,gap:r},children:N.map(((a,s)=>e(g,{className:"block "+(n?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:a.imgUrl,style:{width:"100%",borderRadius:o+"px"},onClick:()=>{var e,l;return xe(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)}},s)))})})})),Ye=he((({url:a,poster:l,autoplay:o,loop:n,paddingTop:i,paddingBottom:t,paddingLeft:c,paddingRight:r})=>{const{View:d}=s();return e(d,{style:{paddingTop:i,paddingBottom:t},children:e("video",{className:"components-video",src:a,poster:l,autoPlay:o,loop:n,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:c,paddingRight:r}})})})),Ue=he((({width:a,height:l,top:o,right:n,bottom:i,left:t,borderRadius:c})=>{const{View:r}=s();return e(r,{style:{width:a,height:l,borderRadius:c,top:o,left:t,right:n,bottom:i},className:"components-service"})})),Qe="data:image/png;base64,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",_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Ke=he((({value:l,iconShow:o,fontColor:n,backgroundColor:i,borderRadius:t,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:p=[],__pageConfig:u})=>{console.log(36,u);const{View:g,Image:N}=s(),f=pe((()=>Be("txt",...p)),[p]);return e(g,{onClick:()=>xe("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxpositon":"",children:a(g,{className:"components-search",style:{backgroundColor:i,borderRadius:t?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(N,{src:Qe,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:f,style:{color:n,display:"inline-block",fontSize:m},children:l})]})})})),qe=he((({value:l,iconShow:o,fontColor:n,backgroundColor:i,borderRadius:t,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:p=["mockWeight","mockItalic"]})=>{const{View:u,Image:g}=s(),N=pe((()=>Be("txt",...p)),[p]);return e(u,{onClick:()=>xe("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(u,{className:"components-search",style:{border:`1px solid ${i}`,borderRadius:t?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(u,{style:{width:"80%"},children:[e(g,{src:Qe,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(u,{className:N,style:{color:n,display:"inline-block",fontSize:m},children:l})]}),e(u,{className:["seachBtn",t?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:i,width:"20%",color:n},children:"搜索"})]})})})),$e=he((({item:a,position:l,direction:o})=>{var n,i;const{Image:t,View:c}=s();return e(t,{mode:"scaleToFill",src:a.imgUrl,style:{width:"100%",height:"100%",paddingBottom:"top"===l&&"vertical"===o?"30px":"",marginTop:"top"===l&&"horizontal"===o?"30px":""},onClick:xe.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})),Ze=he((({Position:o,className:n="",className1:i="",defaultValue:t=[],type:r,autoplay:d,autoplayInterval:m,direction:h,loop:p,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f,selectImg:C,imgHeight:b,fontsize:y=16,textAlign:x="center",fontColor:w="#000000",backGroundColor:k="#ffffff"})=>{const v=pe((()=>Be({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===h}))),{SmoothSwiper:S,View:I}=s(),A=c(t,C||[]),B=a=>e(I,{className:i,style:{fontSize:y,zIndex:99,justifyContent:"left"===x?"flex-start":"center"===x?"center":"flex-end",color:w,backgroundColor:k},children:a.title});return e(I,{className:n,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:f},children:e(S,{imgHeight:b,data:A,className:v,type:r,autoplay:d,autoplayInterval:m,direction:h,loop:p,interval:5e3,vertical:"vertical"===h,render:s=>a(l,{children:["top"===o||"bottom"===o?B(s):null,e($e,{item:s,position:o,direction:h})]})})})})),Xe=he((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:n,defaultValue:i=[],type:t,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTB:g=0,paddingLR:N=0,fontsize:f=16,textAlign:C="center",fontColor:b="#000000",backGroundColor:y="#ffffff",otherStyles:x=[],ImgShadow:w=!1,Position:k="top"})=>{const{View:v}=s(),S=pe((()=>Be("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},...x)),[x,k]);return e(v,{style:{padding:`${g}px ${N}px`},children:e(Ze,{Position:k,defaultValue:i,type:t,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:n,fontsize:f,textAlign:C,fontColor:b,backGroundColor:y,className:Be({"outer-shadow":w}),className1:S})})}));function Je(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 ea(e,a,l,o){return new(l||(l=Promise))((function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function t(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(i,t)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const aa=()=>{const[e,a]=ue([]),l=pe((()=>we()),[]);ge((()=>{ea(void 0,void 0,void 0,(function*(){const e=ke("service");if(e)a(o(e));else{const e=yield Ve();a(o(e))}}))}),[]);const o=e=>{let a=[];for(let l=0;l<e.length;l++){const o=e[l].ocsOcserviceReDomain;a.push(`${o.ocserviceName}: ${o.ocserviceRemark}`)}return a};return{servicePopup:()=>{if(!l)return;ve().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},la=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2}):"¥ 0",oa=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",sa=({dataPic:o,goodsName:n,goodsCamount:i,pricesetNprice:t,skuName:c,children:r})=>{const{View:d,Image:m,SmoothView:h}=s(),p=la(t),u=pe((()=>i?`x ${i}`:""),[i]);return e(l,{children:a(d,{className:"card-item",children:[e(m,{src:o,alt:"",className:"card-item-img"}),a(d,{className:"card-item-info",children:[a(d,{className:"card-item-info-container",children:[e(h,{className:"card-item-info-container-title",children:n}),e(h,{className:"card-item-info-container-price",children:p})]}),a(d,{className:"card-item-info-sub",children:[e(h,{className:"sku",children:c}),e(h,{className:"count",children:u})]}),r]})]})})},{Button:na}=n,ia=a=>{var{dataState:o}=a,s=Je(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(ta,Object.assign({dataState:o},s))})},ta=a=>{var{dataState:l,contractAppraise:o,color:n,borderColor:i,btnColor:t,btnShape:c}=a,d=Je(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:m}=s();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:h,handlerImpl:p}=r(Object.assign({dataState:l},d));return e(m,{className:"btnGroup",children:h.map(((a,l)=>e(na,{style:{color:n,borderColor:i,backgroundColor:t},className:Be({btn:!0,white:0===l,black:1===l}),onClick:()=>p(a.handler),shape:c,children:a.name},l)))})};const ca=(e,a)=>{const[l,o]=ue("");return ge((()=>{const l=setTimeout((()=>{const l=new Date(e),s=new Date,n=l.getTime()-s.getTime();n<999&&n>0?a():n>1e3&&o(((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}`})(n,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(l)}}),[l]),{resultTime:l}},ra=(e,a)=>pe((()=>{const{$_pageQuery:l={}}=e,o=l[a];return e[o]}),[e]),{Button:da}=n,ma=({contractPaydate:a,init:o})=>{const{View:n,SmoothView:i}=s(),{resultTime:t}=ca(a,o);return e(l,{children:t?e(n,{className:"card-item-info-countDown",children:e(i,{children:t})}):null})};function ha({contractBillcode:l,dataBmoney:o,dataBnum:n,goodsList:i,dataState:t,contractId:c,init:r,contractAppraise:m,borderRadius:h,orderSpacing:p,contractPaydate:u}){const{View:g}=s(),N=d(t);return a(g,{className:"orderListItem",style:{borderRadius:h?8:"",marginTop:p,marginBottom:p},children:[a(g,{onClick:()=>xe("orderDetail",{contractBillcode:l}),children:[a(g,{className:"topInfo",children:[a(g,{className:"orderNo",children:["订单号: ",l,e(da,{className:"copy",size:"mini",fill:"outline",children:"复制"})]}),e(g,{className:"status",children:N})]}),e(g,{className:"card-item-info-countDown"}),e(g,{className:"goodsItemWrap",children:i.map((a=>e(sa,Object.assign({},a,{dataState:t,children:1===t&&e(ma,{contractPaydate:u,init:r})}),a.contractGoodsId)))})]}),a(g,{className:"allInfo",children:[a(g,{className:"totalNum",children:["共",n,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",la(o)]})]}),e(ia,{init:r,contractId:c,contractBillcode:l,dataState:t,contractAppraise:m})]})}const pa=a=>{var{bottomHeight:l,children:o,id:n,heightWrap:i}=a,t=Je(a,["bottomHeight","children","id","heightWrap"]);const c=pe((()=>we()),[]),r=function(e){const[a,l]=ue(0);return ge((()=>{if(!we()||!e)return;const a=ve().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(n),d=function(e=""){return pe((()=>{if(!we())return 0;const a=ve(),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:m}=s(),h=pe((()=>{if(!c)return n?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(n){return{height:`calc(${ve().getSystemInfoSync().windowHeight+"px"} - ${r+d}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[r,d]);return e(m,Object.assign({},t,{style:Object.assign(Object.assign({},h),{paddingBottom:n?"":d}),id:n,children:o}))},ua=()=>{const{View:a,Image:l}=s();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ga=he((function({item:l,refreshNum:o,borderRadius:n,orderSpacing:i}){const{View:t,ScrollView:c,Loading:r}=s(),{onScroll:d,data:h,loading:p,init:u}=m(l,o);return e(t,{className:"orderListItemWrap",children:e(pa,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(t,{children:[h.map(((e,a)=>Ne(ha,Object.assign({init:u},e,{key:a,borderRadius:n,orderSpacing:i})))),e(t,{children:p?e(r,{}):null})]}):a(t,{className:"nodata_img",children:[e(ua,{}),e(t,{className:"nodata-btn",onClick:()=>xe("goodList"),children:"前往购物"})]})})})})})),Na=he((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:n=12})=>{const{View:i,Tabs:t}=s();return e(i,{className:"order-container",children:e(t,{defaultIndex:+l,tabs:h,render:l=>e(i,{className:"orderList",children:e(ga,{item:l,orderSpacing:n,refreshNum:a,borderRadius:o})})})})})),fa=({className:a="iconfont",prefixClass:l="icon",onClick:o=(()=>{}),style:n={fontSize:16,color:"#444",fontWeight:900},value:i})=>{const{Text:t}=s();return e(t,{onClick:o,className:Be(l,i?`${l}-${i}`:"",a),style:n})},{Button:Ca}=n,ba=he((({copyContent:a=""})=>{const[l,o]=ue(!1),s=pe((()=>we()),[]);return e(Ca,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=ve();if(""===a)return void e.showToast({title:"复制内容为空",icon:"error"});e.setClipboardData({data:a,success:()=>{e.showToast({title:"复制成功",icon:"success"}),o(!0)},fail:()=>{e.showToast({title:"复制失败",icon:"error"})}})}},children:l?"已复制":"复制"})})),ya=he((({contractBillcode:o,expressWay:n,backgroundColor:i,color:t,paddingBottom:c,paddingTop:r,borderColor:m,btnColor:h,btnShape:u})=>{const{View:g,Text:N}=s(),{orderDetail:f,handleApplyBtn:C}=p(o||""),b=e=>Pe(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:i},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===d(f.dataState)?e(fa,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:d(f.dataState)})]}),e(g,{className:"subTitleWrap",children:b(f.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:r+"px",paddingBottom:c+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(fa,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children:f.goodsReceiptMem}),e(N,{className:"personPhone",children:f.goodsReceiptPhone})]}),e(g,{className:"address",children:f.goodsReceiptArrdess})]}),e(g,{className:"rPart"})]}),a(g,{className:"orderDetailGoodsWrap",children:[f.goodsList.map((o=>a(l,{children:[e(sa,Object.assign({},o),o.contractGoodsId),Number(f.dataState)>1&&Number(f.dataState)<5?e(g,{className:"orderBtn",onClick:C.bind(null,o,f.dataState),children:"申请退款"}):""]}))),a(g,{className:"priceInfo",children:[a(g,{className:"priceInfoFloor top",children:[a(g,{className:"totalNum",children:["共",f.goodsNum,"件商品"]}),a(g,{className:"totalPrice",children:["合计 ",parseFloat((f.dataBmoney-f.refundMoney).toFixed(2))]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"商品总额"}),a(g,{className:"totalPrice",children:["¥",f.contractInmoney]})]}),a(g,{className:"priceInfoFloor",children:[e(g,{className:"totalNum",children:"优惠"}),a(g,{className:"totalPrice",children:["¥",f.goodsPmoney]})]})]})]}),n&&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,{className:"label",children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:f.contractBillcode}),e(ba,{copyContent:f.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:b(f.gmtCreate)})]})]}),e(g,{className:"btnGroupFooter",children:e(ia,{borderColor:m,btnColor:h,btnShape:u,color:t,contractBillcode:f.contractBillcode,contractId:f.contractId,dataState:f.dataState})})]})})]})})),xa=he((({navList:o,activeKey:n,cell:i=4})=>{const{View:t,Text:c,Image:r}=s();return e(l,{children:o.map((l=>e(t,{className:["content",n===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(t,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(t,{className:"titleWrap",children:[e(c,{className:"title",children:l.goodsClassName}),e(c,{className:"line"})]}):"",e(t,{className:`container container_columns${i}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:n})=>a(t,{onClick:()=>xe("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(r,{src:s,className:"logo"}),e(t,{className:"title",children:n})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:wa}=n,ka=he((({cell:l,color:o,activeTitle:n,paddingTop:i,paddingBottom:t})=>{const{View:c,ScrollView:r}=s(),{activeKey:d,setActiveKey:m,navList:h,flag:p}=u();return e(c,{children:e(pa,{id:"goodsClassify",children:e(r,{children:a(c,{style:{height:p?"100%":"667px",paddingTop:i,paddingBottom:t},className:"goodsClassifyContainer",children:[e(c,{className:"side",children:e(wa,{activeKey:d,onChange:m,style:{"--width":"90px","--background-color":"#f5f5f5"},children:h.map((a=>e(wa.Item,{title:a.goodsClassName,className:0===n?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===d?o:"#000"}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(xa,{navList:h,activeKey:d,cell:l})})]})})})})})),va=fe(null),Sa=he((()=>{const{navList:l,activeKey:o,setActiveKey:n,setFCoe:t,setSCoe:c,selectFontColor:r}=Ce(va),{View:d,ScrollView:m}=s(),[h,p]=ue(!1),u=(e,a)=>{n.bind(null,e)(),t(`${a}`),c("0"),h&&p(!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:()=>u(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?r:"#000",borderColor:o===`${a.goodsClassCode}`?r:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!0),children:e(i,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!1),children:e(i,{value:"paixusort-sheng"})})}),e(pa,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>u(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?r:"#000",borderColor:o===`${a.goodsClassCode}`?r:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),Ia=he((({thirdList:l})=>{const{View:o,Image:n}=s(),{picShadow:i,layout:t}=Ce(va);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:l.map(((l,s)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>xe("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:i?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},s)))})})),Aa=he((()=>{const{navList:l,fCoe:o,sCoe:n,setSCoe:i,selectFontColor:t,selectBlcShow:c,selectBlcStyle:r}=Ce(va),d=pe((()=>we()),[]),{secondList:m,thirdList:h}=(({navList:e,fCoe:a,sCoe:l})=>{const o=pe((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=pe((()=>{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:n}),{View:p,ScrollView:u,SideBar:g}=s();return e(p,{children:e(pa,{id:"goodsClassifyOneContent",children:e(u,{children:a(p,{className:"goodsClassifyOneContent",style:{height:d?"100%":"667px"},children:[e(g,{activeKey:n,onChange:i,children:m.map(((a,l)=>e(g.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===r?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":t,"--adm-color-primary":t}},l)))}),e(Ia,{thirdList:h})]})})})})})),Ba=he((({selectFontColor:l,selectBlcColor:o,selectBlcShow:n,selectBlc:i,selectBlcStyle:t,picShadow:c,layout:r})=>{const{View:d}=s(),{navList:m,activeKey:h,setActiveKey:p}=u(),[g,N]=ue("0"),[f,C]=ue("0");return e(va.Provider,{value:{fCoe:g,setFCoe:N,sCoe:f,setSCoe:C,navList:m,activeKey:h,setActiveKey:p,selectFontColor:l,selectBlcColor:o,selectBlcShow:n,selectBlc:i,selectBlcStyle:t,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(Sa,{}),e(Aa,{})]})})})),Va=he((({childList:l,layout:o,picShadow:n,style:i})=>{const{View:t,Image:c}=s();return e(t,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},i),children:l.map(((l,o)=>a(t,{className:"level3ArrItem",onClick:()=>xe("goodList",{classtreeCode:l.classtreeCode}),children:[e(c,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:n?"#DDDDDD 0px 0px 10px":""}}),e(t,{className:"title",children:l.goodsClassName})]},o)))})})),Ta=he((({navList:l,activeKey:o,layout:n,picShadow:i})=>{var t;const[c,r]=ue(0);ge((()=>{r(l.findIndex(d))}),[o,c]);const d=e=>e.goodsClassCode===o,{View:m,Image:h}=s();return a(m,{className:"goodsClassifyTwoContent",children:[e(h,{className:"firstLevelImg",src:Le(l[c],"goodsClassLogo"),mode:"widthFix"}),null===(t=Le(l[c],"childList"))||void 0===t?void 0:t.map(((l,o)=>a(m,{children:["0"===l.goodsClassHide?e(m,{className:"level2Title",children:l.goodsClassName}):"",e(Va,{childList:l.childList,layout:n,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Da}=n,Pa=he((({selectFontColor:l,selectBlcShow:o,selectBlcColor:n,selectBlcStyle:i,layout:t,picShadow:c})=>{const{View:r}=s(),{activeKey:d,setActiveKey:m,navList:h,flag:p}=u();return e(r,{className:"goodsClassifyTwo",children:e(pa,{id:"goodsClassifyTwo",children:a(r,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(r,{className:"side",children:e(Da,{activeKey:d,onChange:m,style:{"--width":"88px","--background-color":"#f5f5f5"},children:h.map((a=>e(Da.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===i?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(r,{className:"main",children:e(Ta,{navList:h,activeKey:d,layout:t,picShadow:c})})]})})})})),La=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Ra=({setParams:l,activeColor:o})=>{const{View:n}=s(),[i,t]=ue(0),[c,r]=ue(La);return e(n,{className:"sortWrap",children:c.map((({order:s,sortField:c,name:d},m)=>a(n,{className:"sortItem "+(i===m?"active":""),onClick:()=>((e,a,o)=>{t(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,s),style:{color:i===m?o:""},children:[d,s&&a(n,{className:"orderIcons",children:[e(fa,{style:{color:i===m&&"desc"!==s?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(fa,{style:{color:i===m&&"desc"===s?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},za=he((({classtreeCode:l="",searchParam:o="",activeColor:n="#e54e29",goodsName:i=!0,goodsPrice:t=!0,lineationGoods:c=!0,salesQuantity:r=!0,goodsCar:d=!0,borderRadius:m=!0,goodsColor:h=!0,goodsGap:p=10,paddingLR:u=0,__link__:f={}})=>{const{View:C,Loading:b,SmoothView:y,Image:x,ScrollView:w,IconMobile:k}=s(),[v,S]=ue({}),{loading:I,getData:A,list:B}=g(l,o,v),V=pe((()=>Be("textBox",{btm:!t&&!c})),[t,c]),T=pe((()=>Be("name",{boxNone:!i})),[i]),D=pe((()=>Be("middle_margin",{boxNone:!r})),[r]),P=pe((()=>Be("goodDetail",{boxNone:!t&&!c&&!d})),[t,c,d]),L=pe((()=>Be({detailContent:!(T.includes("boxNone")&&D.includes("boxNone")&&P.includes("boxNone"))})),[T,D,P]);return a(C,{className:"goodsList",children:[e(C,{className:"top-info",children:e(Ra,{setParams:S,activeColor:n})}),e(C,{className:"listWrap",style:{padding:` 0px ${u}px`},children:e(pa,{id:"listWrap",children:a(w,{onScroll:()=>A(v),children:[e(C,{className:"list",style:{gap:p},children:B.map((l=>a(C,{onClick:()=>N(f,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:m?"8px":"",boxShadow:h?"4px 4px 4px #969292":""},children:[e(x,{src:l.dataPic,className:"img"}),a(C,{className:L,children:[e(y,{className:T,children:l.goodsName}),a(C,{className:D,children:["已售:",l.goodsNum]}),a(C,{className:P,children:[a(C,{className:V,children:[e(y,{className:"price",style:{display:t?"block":"none"},children:la(l.pricesetNprice)})," ",e(C,{className:"decoration",style:{display:c?"block":"none"},children:la(l.pricesetMakeprice)})]}),e(C,{style:{display:d?"block":"none"},children:e(k,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),I?e(b,{}):null]})})})]})})),Ma=he((({placeholder:l,placeholderText:o,history:n,historyText:i,paddingBottom:t,paddingTop:c})=>{const r=pe((()=>we()),[]),{View:d,Text:m,Input:h}=s(),[p,u]=ue((()=>ke("history")||[])),g=Se((e=>ea(void 0,void 0,void 0,(function*(){r&&(u((a=>{if(Re(e.detail.value))return a;const l=a.concat(e.detail.value);return Ae("history",l),l})),N(e.detail.value))})))),N=Se((e=>{xe("goodList",{searchParam:e})}));return a(d,{className:"searchPage",style:{paddingTop:c,paddingBottom:t},children:[a(d,{className:"search-title",children:[e("img",{src:Qe,alt:""}),e(h,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:g},l?{placeholder:o}:{})),e(m,{className:"btn",onClick:()=>Ie(),children:"取消"})]}),n?a(d,{className:"historyWrap",children:[a(d,{className:"title",children:[a(d,{className:"label",children:[e(d,{className:"icon"}),i]}),e(fa,{onClick:()=>ea(void 0,void 0,void 0,(function*(){(yield ve()).removeStorageSync("history"),u([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(d,{className:"content",children:p.map(((a,l)=>e(d,{onClick:()=>N(a),className:"historyItem",children:a},l)))})]}):null]})})),Oa=({starColor:l="#FF0934",starSize:o="12px",itemData:i})=>{const{View:t,Text:c,Image:r}=s(),{Rate:d}=n;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(r,{src:i.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(c,{className:"userName",children:i.userName}),e(d,{readOnly:!0,value:i.rate,style:{"--star-size":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",i.size]}),e(t,{className:"content",children:i.evaluate}),e(t,{className:"img-group",children:i.imgUrls.map(((a,l)=>e(r,{src:a.imgUrl,className:"img"},l)))})]})},Fa=[{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"}]}],ja=he((()=>{const[o,n]=ue("1"),{View:i}=s(),t=be([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),c=e=>{n(e)};return a(l,{children:[e(i,{className:"evaluateListTab",children:t.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:c.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:Fa.map(((a,l)=>e(Oa,{itemData:a},l)))})]})})),Ga=({onChange:a,readOnly:l=!1,size:o=22,count:n})=>{const{View:i}=s(),[t,c]=ue([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);ge((()=>{if(n){const e=[...t];for(let a=0;a<e.length;a++)e[a].icon=a>n-1?"star":"star-fill";c(e)}}),[]);const r=e=>{if(!l){for(let a=0;a<t.length;a++)t[a].icon=a>e?"star":"star-fill";c([...t]),a(e+1)}};return e(i,{children:t.map(((a,l)=>e(fa,{onClick:r.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Wa=he((({code:l,borderRadius:o,borderColor:i,color:t,buttonColor:c,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:p,Submit:u,changeContent:g}=f(l),{Button:N}=n,{View:C,Image:b,TextArea:y,Textarea:x}=s(),w=y||x,k=be("宝贝满足你吗?分享一下它吧");return a(C,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((l,s)=>a(ye,{children:[a(C,{className:"topInfo",children:[a(C,{className:"lPart",children:[e(b,{src:l.dataPic,className:"img",style:{borderRadius:1===o?"20px":"0px"}}),a(C,{className:"goodsInfo",children:[e(C,{className:"goodsName",children:l.goodsName}),e(C,{className:"goodsSize",children:l.skuName})]})]}),e(C,{className:"rPart",children:a(C,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(C,{className:"rate",children:[e(C,{className:"title",children:"商品评价"}),e(Ga,{onChange:p.bind(null,s)})]}),e(C,{className:"evaluate",children:e(w,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:g.bind(null,s)})})]},s))),e(N,{style:{border:`1px solid ${i}`,color:t,backgroundColor:c,borderRadius:1===r?"20px":"0px"},className:"btn",onClick:u,children:"提交"})]})})),Ea=({code:l,defaultValue:o})=>{const{info:n,detail:i,stateObj:t}=C(l),{View:c}=s(),r=Le(n,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),d=Le(n,"packageList.length",o.count),m=Le(n,"packageList[0].expressName",o.expressName),h=Le(n,"packageList[0].packageBillno",o.packageBillno),p=Le(i,"state",o.result)||"-1";return a(c,{className:"expressInfoTop",children:[e(c,{className:"goodsImg",style:{backgroundImage:`url(${r})`},children:a(c,{className:"tip",children:["共 ",d," 件商品"]})}),a(c,{className:"list",children:[a(c,{className:"listItem",children:["物流状态:",p?t[p]:"暂时无法获取物流状态"]}),a(c,{className:"listItem",children:["快递公司:",m]}),a(c,{className:"listItem",children:["快递单号:",h]})]})]})},Ha=({code:l,defaultValue:o})=>{const{detail:n}=C(l),{View:i}=s(),t=Le(n,"message",o.message),c=Le(n,"data",o.list);return e(i,{className:"expressInfoStep",children:"ok"===t?c.map(((l,o)=>a(i,{className:"step",children:[e(i,{className:"time",children:l.time}),e(i,{children:l.context})]},o))):e(i,{className:"noInfo",children:t})})},Ya=he((({code:l,defaultValue:o})=>{const{View:n}=s();return a(n,{className:"expressInfo",children:[e(Ea,{code:l,defaultValue:o}),e(Ha,{code:l,defaultValue:o})]})})),Ua=[{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"input",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:(e,a)=>new Promise(((e,l)=>{!/^1[3456789]\d{9}$/.test(a)&&a?l("请输入正确手机号"):e("")}))}]},{type:"cascader",label:"所在地区",name:"area",rules:[{required:!0,message:"所在地区不能为空"}]},{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",props:{},label:"设置默认地址",name:"addressDefault"}],Qa=he((()=>{const{View:a,Skeleton:o}=s(),n=be(new Array(5).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:n.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));Ge.forEach((e=>{const a=je.filter((a=>a.code===e.cityCode))[0];a&&(a.children=a.children||[],a.children.push({label:e.name,value:e.code}))})),je.forEach((e=>{const a=Fe.filter((a=>a.code===e.provinceCode))[0];a&&(a.children=a.children||[],a.children.push({label:e.name,value:e.code+"00",children:e.children}))}));const _a=Fe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Ka=({form:l,handleArea:o})=>{const{View:i}=s(),{CascadePicker:t}=n,c=l.getFieldValue("area"),[r,d]=ue(!1),m=e=>{const a={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},l={pIndex:0,cIndex:0};for(let o=0;o<_a.length;o++)if(_a[o].value===e[0]){a.provinceName=_a[o].label,l.pIndex=o;break}for(let o=0;o<_a[l.pIndex].children.length;o++)if(_a[l.pIndex].children[o].value===e[1]){a.cityName=_a[l.pIndex].children[o].label,l.cIndex=o;break}for(let o=0;o<_a[l.pIndex].children[l.cIndex].children.length;o++)if(_a[l.pIndex].children[l.cIndex].children[o].value===e[2]){a.areaName=_a[l.pIndex].children[l.cIndex].children[o].label;break}return a};return a(i,{children:[e(i,{className:"txt",onClick:()=>d(!0),children:(null==c?void 0:c.provinceName)?`${c.provinceName}—${c.cityName}-${c.areaName}`:"请选择所在地区"}),e(t,{onConfirm:e=>{o("h5",m(e))},options:_a,visible:r,onClose:()=>d(!1)})]})},qa=({checked:a,onChange:l})=>{const{View:o}=s(),{Switch:i}=n;return e(o,{children:e(i,{checked:a,onChange:l,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},$a=he((({addressId:a,btnShape:o,btnColor:i,borderColor:t,color:c,paddingTop:r,paddingBottom:d})=>{const{View:m,Switch:h}=s(),{Form:p,Button:u,Input:g}=n,N=process.env.TARO_ENV,f=pe((()=>we()),[]),{skullShow:C,form:y,area:x,defaultAddress:w,handleArea:k,handleDefaultAddress:v,handleFinish:S}=b(a,p,f);return e(m,{className:"addressDetail",style:{height:f?"100%":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:C?e(Qa,{}):e(p,{form:y,layout:"horizontal",mode:"card",onFinish:S,footer:e(u,{style:{color:c,backgroundColor:i,borderColor:t},shape:o,block:!0,type:"submit",size:"large",children:"提交"}),children:Ua.map(((a,o)=>e(p.Item,{label:a.label,name:a.name,rules:a.rules,trigger:"cascader"===a.type?"onConfirm":"onChange",arrow:!1,children:"input"===a.type?e(g,Object.assign({},a.props)):"switch"===a.type?"h5"===N?e(qa,{onChange:v.bind(null,"h5"),checked:"1"===w}):e(h,{color:"#000",onChange:v.bind(null,"weapp"),checked:"1"===w}):"cascader"===a.type?e(l,{children:f?"h5"===N?e(Ka,{form:y,handleArea:k}):e("picker",{mode:"region",onChange:k.bind(null,"weapp"),value:x,children:e(m,{className:"areaWrap",children:x.provinceName?`${x.provinceName}—${x.cityName}-${x.areaName}`:"请选择所在地区"})}):"请选择所在地区"}):void 0},o)))})})})),Za=({dataObj:l})=>{const{View:o,Text:n}=s();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(n,{className:"label",children:"订单号:"}),e(n,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(n,{className:"label",children:"支付方式:"}),e(n,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(n,{className:"label",children:"支付金额:"}),e(n,{className:"value",children:la(l.dataBmoney)})]})]})},Xa=he((({code:l,borderRadius:o,leftColor:n,leftButtonColor:i,leftBorderColor:t,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:f,Text:C,IconMobile:b,WrapLoading:x}=s(),{result:w,loading:k}=y(l||(ke("contractBillcode")||{}).contractBillcode);return e(f,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(x,{loading:k,children:a(f,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(b,{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(Za,{dataObj:w.dataObj}),a(f,{className:"btnGroup",style:{marginTop:20},children:[e(f,{className:"btn black",onClick:()=>xe(w.menuCode,{contractBillcode:w.dataObj.contractBillcode}),style:{color:n,backgroundColor:i,border:`1px solid ${t}`,borderRadius:1===c?"20px":"0px"},children:w.buttonText}),e(f,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>xe(d.value),className:"btn white",children:r})]})]})})})}));he((()=>{const{View:a,Skeleton:o}=s(),n=be(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:n.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Ja=()=>{const{View:a,Image:l}=s();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"})})},el=({list:o,coe:n,config:i,backgroundColor:t,color:c})=>{const{View:r,Text:d}=s();return e(l,{children:o.length?o.map(((o,s)=>e(r,{className:`couponListItem\n ${i.current[n.current].styleName}`,style:{backgroundColor:t,color:c},children:a(r,{className:"coupon-content",children:[e(r,{className:"price",children:e(d,{className:"num",children:o.pbName})}),a(r,{className:"couponListItem-info",children:[e(d,{className:"title",children:o.discName}),a(d,{className:"date",children:["有效期至:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}),i.current[n.current].text?e(r,{className:"btn",children:i.current[n.current].text}):null,2===n.current?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},s))):e(Ja,{})})},al=he((({backgroundColor:l,color:o,paddingTop:n,paddingBottom:i,queue:t})=>{const{View:c,Text:r,ScrollView:d}=s(),{coe:m,getList:h,config:p,switchTab:u,list:g=[]}=x();return a(c,{className:"couponList",children:[e(c,{className:"couponTab",children:p.current.map(((l,o)=>a(c,{className:"couponTabItem "+(m.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(r,{className:"icon"})]},l.id)))}),e(pa,{id:"couponTab",bottomHeight:"60",children:e(d,{onScroll:h,children:e(c,{className:"couponListContent",style:{paddingTop:n,paddingBottom:i},children:e(el,{backgroundColor:l,color:o,queue:t,list:g,coe:m,config:p})})})})]})})),ll=({list:l,cartItemRadius:o})=>{const{View:n,Text:i,Image:t,Checkbox:c,NumStep:r,SmoothCheckbox:d,WrapLoading:m}=s(),{loading:h}=w(),{select:p,onChange:u,handleStep:g}=k();return e(m,{loading:h,children:e(d,{onChange:u,children:l.map(((l,s)=>e(n,{className:"cartItem",children:a(n,{className:"cartItem-box",style:{borderRadius:o},children:[e(n,{className:"checkBoxWrap",children:e(c,{checked:p.includes(l.shoppingGoodsId+""),value:l.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})}),e(t,{className:"img",src:l.dataPic,onClick:()=>xe("goodDetail",{skuCode:l.skuCode})}),a(n,{className:"cartItem-info",children:[e(i,{className:"cartItem-goodsName",children:l.goodsName}),a(n,{className:"cartItem-size",children:["规格:",l.skuName," X ",l.goodsCamount]}),a(n,{className:"cartItem-handleWrap",children:[e(i,{className:"price",children:la(l.pricesetNprice)}),e(r,{count:l.goodsCamount,handleStep:g.bind(null,l.shoppingGoodsId,l.goodsCamount)})]})]})]})},s)))})})},ol=he((({url:l,title:o,subTitle:n,link:t,style:c})=>{const{View:r,Image:d}=s();return e(r,{className:"noData",style:c,children:a(r,{className:"content",children:[e(d,{className:"img",src:l}),e(r,{className:"title",children:o}),e(r,{className:"subTitle",children:n}),t?a(r,{className:"link",onClick:()=>xe(t),children:["去看看",e(i,{value:"xiangyou1"})]}):null]})})})),sl=({refreshNum:o,btnStyle:n,borderColor:i,textColor:t,btnColor:c,btnShape:r,cartItemRadius:d,countBorderColor:m,countTextColor:h,countBtnColor:p,countBtnShape:u})=>{const g=pe((()=>we()),[]),{View:N,SmoothView:f,Checkbox:C,SmoothCheckbox:b,ScrollView:y}=s(),[x,w]=ue(!0),{cartList:k,amount:v,selectAll:I,allCart:A,toOrderImpl:B,select:V,deleteCart:T,disMoney:D}=S(o),P=pe((()=>({border:n?`2px solid ${i}`:"",color:n?t:"",background:n?c:"",borderRadius:n?r:""})),[n,i,t,c,r]),L=pe((()=>({border:`1px solid ${m}`,color:h,background:p,borderRadius:u})),[m,h,p,u]);return e(N,{className:"cart",style:{height:g?"100%":"667px"},children:k.length?a(l,{children:[e(N,{className:"edit",children:e(N,{className:"btn",style:P,onClick:()=>w(!x),children:x?"编辑":"完成"})}),e(pa,{id:"editId",bottomHeight:"50",children:e(y,{children:e(ll,{list:k,cartItemRadius:d})})}),a(N,{className:"cart-dashboard",children:[e(N,{className:"choose",children:e(b,{onChange:I,children:e(C,{checked:A.current.length===V.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),x?a(N,{className:"check",children:[a(N,{className:"priceGroup",children:[a(N,{className:"discount",children:["优惠: ",e(f,{className:"data",children:la(D)})]}),a(N,{className:"all",children:["合计: ",e(f,{className:"data",children:la(v.amount)})]})]}),a(N,{onClick:B,className:"btn",style:L,children:["结算(",v.num,")"]})]}):e(N,{className:"del",children:e(N,{onClick:T,className:"btn",children:"删除"})})]})]}):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})},nl=he((a=>e(v,{children:e(sl,Object.assign({},a))}))),il=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:n,textColor:i,btnColor:t,btnShape:c})=>{const{View:r}=s(),{cartIsEditor:d}=l,{editorImpl:m}=I(a),h=pe((()=>({border:o?`2px solid ${n}`:"",color:o?i:"",background:o?t:"",borderRadius:o?c:""})),[o,n,i,t,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},tl=he((({promotionName:l,checked:o,promotionCode:n})=>{const{View:i,Radio:t}=s();return a(i,{className:"promotion-item",children:[e(i,{className:"content",children:l}),e(i,{className:"choose",children:e(t,{checked:o,value:n})})]})})),cl=({onChange:a,promotionCode:l,visible:o,setVisible:n,promotion:i})=>{const{Popup:t,ScrollView:c,View:r,SmoothRadio:d}=s();return e(t,{popupVisible:o,popupHandler:n,children:e(r,{className:"goodsDetail-coupon-popup",children:e(pa,{children:e(c,{children:e(d,{onChange:a,children:i.map(((e,a)=>Ne(tl,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},rl=he((({goodsName:o,skuName:n,goodsCamount:i,shoppingGoodsId:t,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=s();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",n," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:la(c)}),e(h,{count:i,handleStep:r.bind(null,t,i)})]})]})})})),dl=he((({dataPic:a,skuCode:l})=>{const{Image:o}=s();return e(o,{className:"img",src:a,onClick:()=>xe("goodDetail",{skuCode:l})})})),ml=he((({shoppingGoodsId:a,select:l=[]})=>{const{View:o,Checkbox:n}=s();return e(o,{className:"checkBoxWrap",children:e(n,{checked:l.includes(a+""),value:a,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),hl=({promotion:o=[],updatePm:n,shoppingGoodsId:i,promotionCode:t})=>{const{View:c}=s(),[r,d]=ue(!1),m=pe((()=>((o||[]).find((e=>e.promotionCode===t))||{}).promotionName),[o]);return a(l,{children:[a(c,{className:"cart-promote-active",onClick:()=>d(!0),children:[m,e(c,{children:"修改"})]}),e(cl,{promotionCode:t,onChange:e=>{d(!1),n(i,e.detail.value)},promotion:o||[],visible:r,setVisible:d})]})},pl=he((l=>{var{item:o}=l,n=Je(l,["item"]);const{View:i}=s(),{select:t}=n;return a(i,{className:"cart-list-item",children:[e(ml,{select:t,shoppingGoodsId:o.shoppingGoodsId}),e(dl,{dataPic:o.dataPic,skuCode:o.skuCode}),e(rl,Object.assign({},o,n))]})})),ul=o=>{var{shoppingGoodsList:s=[]}=o,n=Je(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(ye,{children:[e(pl,Object.assign({},n,{item:l})),l.pmPromotionList?e(hl,{promotionCode:n.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:n.updatePm,promotion:l.pmPromotionList}):null]},o)))})},gl=({disNextMsg:l,promotionName:o,pbName:n})=>{const{View:i,SmoothView:t}=s();return a(i,{className:"cart-dis-title",children:[e(t,{className:"tips",children:n}),e(t,{style:{padding:"0 10px"},children:o}),e(t,{children:l})]})},Nl=({refreshNum:o,dispatchPageStore:n,$_dataSource:i={cartSelect:[],cartUpdateCount:0},cartItemRadius:t="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=s(),{cartSelect:m,cartUpdateCount:h}=i,{loading:p,cartList:u,onChange:g,handleStep:N,updatePm:f}=A(o,h,n);return e(r,{loading:p,children:e(d,{className:"cart-wrap",children:e(c,{onChange:g,children:u.length?e(l,{children:u.map((({memberCname:l,promotionCode:o,disNextMsg:s,promotionName:n,pbName:i,shoppingGoodsList:c},r)=>a(ye,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:t},children:[n?e(gl,{disNextMsg:s,promotionName:n,pbName:i}):null,e(ul,{promotionCode:o,handleStep:N,select:m,updatePm:f,shoppingGoodsList:c,cartItemRadius:t})]})]},r)))}):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},fl=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:n="#000000",countTextColor:i="#ffffff",countBtnColor:t="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=s(),{cartInfo:p,cartDisMoney:u,cartSelect:g,cartIsEditor:N}=l,{toOrderImpl:f,deleteCart:C,selectAll:b,cartDetail:y}=B(g,p,o),x=pe((()=>({border:`1px solid ${n}`,color:i,background:t,borderRadius:c})),[n,i,t,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{onChange:b,children:e(h,{checked:p.length===g.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),N?e(r,{className:"del",children:e(r,{onClick:C,className:"btn",children:"删除"})}):a(r,{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:la(u)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:la(y.amount)})]})]}),a(r,{onClick:f,className:"btn",style:x,children:["结算(",y.num,")"]})]})]})},Cl=he((({avatarStyle:l,paddingTop:o,paddingBottom:n,userAvatar:i,userNickname:t,refreshNum:c})=>{const{View:r,Text:d,IconMobile:m,Image:h}=s(),{servicePopup:p}=aa(),[u,g]=ue(t),[N,f]=ue(i);return ge((()=>{g(ke("userNickname")),f(ke("userAvatar"))}),[c]),a(r,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${n}px`},children:[a(r,{className:"topBoard",children:[e(m,{value:"bianzu",onClick:()=>xe("/account/setting/index")}),e(m,{value:"kehufuwukefu",onClick:p})]}),a(r,{className:"userSetting",onClick:()=>xe("/account/setting/index"),children:[a(r,{className:"lPart",children:[e(d,{className:"name",children:u||"用户名称"}),e(r,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(h,{src:N,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),bl=he((({title:l,columnList:o})=>{const{View:n,Text:i,Badge:t,Image:c}=s(),[r,d]=ue({});ge((()=>{ea(void 0,void 0,void 0,(function*(){try{const e=yield Te();d(e.dataObj)}catch(e){}}))}),[]);const m=(e,a)=>{4!==e.id?xe("orderlist",{indexId:a+1}):xe("afterSalesList")};return a(n,{className:"mineOrderEntry",children:[a(n,{className:"title",children:[e(n,{className:"name",children:l}),e(n,{className:"more",onClick:()=>xe("orderlist"),children:"查看全部"})]}),e(n,{className:"content",children:o.map(((l,o)=>a(n,{onClick:m.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(t,Object.assign({},r[l.code]>0?{content:r[l.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12},children:e(c,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),yl=he((({paddingTop:l,paddingBottom:o,columnList:n})=>{const{View:i,Text:t,IconMobile:c,Image:r}=s();return e(i,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:n.map(((l,o)=>a(i,{className:"menuListItem",onClick:()=>xe(l.link.value),children:[a(i,{className:"lPart",children:[e(r,{src:l.imgUrl,className:"icon"}),e(t,{className:"label",children:l.link.label})]}),e(c,{value:"xiangyou1"})]},o)))})})),xl=({footprintItem:l,edit:o})=>{const{View:n,Image:i,Checkbox:t,SmoothView:c}=s(),r=pe((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(n,{className:"footprintItem",children:[o?e(n,{className:"lPart",children:e(t,{value:l.footprintCode})}):null,a(n,{className:"rPart",onClick:()=>xe("goodDetail",{skuCode:l.footprintOpcode}),children:[e(i,{src:l.footprintOppic,className:"img"}),a(n,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},wl=({item:o,edit:n})=>{const{View:i}=s();return a(i,{className:"footPrint",children:[e(l,{children:e(i,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(xl,{footprintItem:a,edit:n},l)))]})},kl=({footprintList:a,edit:o})=>{const s=pe((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Pe(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=ze(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(wl,{item:a,edit:o},l)))})},vl=he((()=>{const{View:l,ScrollView:o,SmoothCheckbox:n,Button:i,Image:t}=s(),{footprintList:c,edit:r,setEdit:d,getSelectItem:m,delItem:h,getData:p}=V();return e(l,{className:"footprint",children:0===c.length?e(l,{className:"noDate",children:e(t,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>d(!r),children:r?"完成":"编辑"})}),e(pa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScroll:p,children:[e(n,{onChange:m,children:e(kl,{footprintList:c,edit:r})}),r?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(i,{className:"btn",onClick:h,children:"删除"})]}):null]})})]})})})),Sl=({item:l,edit:o,checked:n})=>{const{View:i,Image:t,Checkbox:c,SmoothView:r}=s();return a(i,{className:"collectItem",children:[o?e(c,{className:"lPart",value:l.collectCode,checked:n}):null,a(i,{className:"rPart",onClick:()=>xe("goodDetail",{skuCode:l.collectOpcode}),children:[e(t,{src:l.collectOppic,className:"img"}),a(i,{className:"info",children:[e(r,{className:"title",children:l.collectOpcont}),a(r,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Il=he((()=>{const{collectionList:l,edit:o,setEdit:n,getData:i,getSelectItem:t,delItem:c,init:r,checked:d,handleSelectAll:m,selectAllChecked:h}=T(),{View:p,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:f,Image:C}=s();return e(p,{className:"collectList",children:0===l.length?e(p,{className:"noDate",children:e(C,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(p,{className:"hasDate",children:[e(p,{className:"topBar",children:e(p,{className:"edit",onClick:()=>n(!o),children:o?"完成":"编辑"})}),e(pa,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:i,onScrollToUpper:r,children:[e(g,{onChange:t,style:{height:"100%"},children:l.map((a=>e(Sl,{item:a,edit:o,checked:d},a.collectId)))}),o?a(p,{className:"handleBar",children:[e(p,{className:"checkAll",children:e(g,{onChange:m,children:e(N,{value:"1",checked:h,children:"全选"})})}),e(f,{className:"btn",onClick:c,children:"删除"})]}):null]})})]})})})),Al=he((({noticeId:l})=>{const{View:o,Image:n}=s(),{info:i}=D(l);return a(o,{className:"noticeDetailContainer",children:[e(o,{className:"title",children:i.noticeTitle}),i.noticePicurl?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl}):null,i.noticePicurl1?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl1}):null,i.noticePicurl2?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl2}):null,i.noticePicurl3?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl3}):null,e(o,{className:"content",children:i.noticeContext})]})})),Bl=he((({doclistId:l=2031})=>{const{info:o}=P(l),{View:n,ScrollView:i}=s(),{doclistContent:t,doclistTitle:c,doclistTitle4:r}=o;return e(n,{className:"articleDetail",children:e(pa,{id:"a",children:a(i,{children:[e(n,{className:"title",children:c}),e(n,{className:"author",children:r}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:t||""}})]})})})})),Vl=({address:a})=>e(l,{children:Re(a)?e(Dl,{}):e(Tl,{address:a})}),Tl=({address:l})=>{const{View:o,SmoothView:n,IconMobile:i}=s(),t=pe((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:n,addressMember:i="",addressPhone:t=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:t,address:e+o+s+n}}),[l]);return a(o,{className:"address-info",children:[e(i,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(n,{children:t.addressMember}),e(n,{className:"left-padding",children:t.addressPhone}),t.addressDefault?e(n,{className:"left-padding left-title-default",children:"默认"}):null]}),e(n,{className:"left-detail",children:t.address})]}),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Dl=()=>{const{View:o,Text:n}=s();return a(l,{children:[a(o,{className:"group",children:[e(n,{className:"local"}),e(n,{className:"address",children:"选择收货地址"})]}),e(n,{className:"arrow"})]})},Pl=({refreshNum:a})=>{const{View:l}=s(),o=L(a);return e(l,{className:"placeOrder-chooseAddress",onClick:()=>xe("addressList"),children:e(Vl,{address:o})})},Ll=he((({couponStart:l,pbName:o,discName:n,promotionCode:i,promotionName:t,couponEnd:c,disable:r})=>{const{View:d,Text:m,Radio:h}=s();return e(d,{className:"couponItem",children:a(d,{className:"coupon-content",children:[a(d,{className:"price",children:[e(d,{className:"symbol",children:o}),e(d,{className:"num",children:n})]}),a(d,{className:"info",children:[e(m,{className:"title",children:t}),a(m,{className:"date",children:[Pe(l).format("YYYY-MM-DD")," - ",Pe(c).format("YYYY-MM-DD")]})]}),e(d,r?{className:"coupon-pick-default",children:"不能用"}:{className:"choose",children:e(h,{disabled:r,value:i})})]})})})),Rl=({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t})=>{const{View:c,Text:r,Popup:d,SmoothRadio:m,ScrollView:h}=s(),{amount:p,shoppingGoodsList:u}=R({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t}),{coupon:g,visible:N,setVisible:f,selectCoupon:C,onChange:b}=z(u);return a(l,{children:[a(c,{className:"coupon-select",onClick:()=>f(0!==g.length),children:[e(r,{className:"label",children:"使用优惠"}),a(c,{className:"info",children:[e(r,{className:"label",children:C?`已选择: ${C}`:0===g.length?"暂无可用优惠券":"请选择优惠券"}),0===g.length?null:e("img",{src:_e,alt:"",className:"icon"})]})]}),e(d,{popupVisible:N,popupHandler:f,children:e(c,{className:"goodsDetail-coupon-popup",children:e(pa,{children:e(h,{children:e(m,{onChange:b,children:g.map(((e,a)=>Ne(Ll,Object.assign({disable:p<e.discAmount},e,{key:a}))))})})})})})]})},zl=({shippingMethod:l=1})=>{const{View:o}=s();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:"快递"})]})})},Ml=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:n})=>{const{View:i}=s(),{list:t}=R({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:n});return e(i,{className:"place-order-goods",children:t.map(((a,l)=>e(sa,Object.assign({},a),l)))})},Ol=({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t})=>{const{SmoothView:c,View:r}=s(),{payState:d,amount:m,disCount:h}=R({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t}),{shoppingCountPrice:p,freight:u,comDisMoney:g}=M(d);return e(l,{children:a(r,{className:"price placeOrder-blcWrap",children:[e(r,{className:"title",children:"价格明细"}),a(r,{className:"express placeOrder-blcItem",children:[e(r,{className:"label",children:"商品总金额"}),e(c,{className:"value",children:la(p)})]}),a(r,{className:"coupon placeOrder-blcItem",children:[e(r,{className:"label",children:"优惠金额"}),e(c,{className:"value",children:la(g+h)})]}),a(r,{className:"express placeOrder-blcItem",children:[e(r,{className:"label",children:"运费"}),e(c,{className:"value",children:la(u)})]}),a(r,{className:"all placeOrder-blcItem",children:[e(r,{className:"label",children:"总计"}),e(c,{className:"value",style:{color:"#000"},children:la(m-h)})]})]})})},Fl=({color:l,buttonColor:o,borderColor:n,borderRadius:i,refreshNum:t,goodsNum:c,skuId:r,shoppingGoodsId:d})=>{const{View:m,Text:h,WrapLoading:p}=s(),{amount:u,list:g,disCount:N,payState:f,orderStoreInfo:C,ocContractSettlList:b}=R({refreshNum:t,goodsNum:c,skuId:r,shoppingGoodsId:d}),{savePayPrice:y,loading:x}=O({ocContractSettlList:b,payState:f,list:g},r,c,C,d);return a(m,{className:"placeOrderFooter",children:[a(h,{className:"price",children:["合计: ",la(u-N)]}),e(p,{loading:x,children:e(m,{className:"btn",onClick:y,style:{color:`${l}`,border:`1px solid ${n}`,backgroundColor:`${o}`,borderRadius:1===i?"40px":"0px"},children:"生成订单"})})]})},jl=he((({position:a=10,bg:l,color:o,fontSize:n})=>{const i=pe((()=>we()),[]),{View:t}=s(),{goTop:c}=F();return e(t,{className:"backTop",onClick:c,style:{padding:i?"0":"10px"},children:e(fa,{style:{display:"inline-block",color:o,fontSize:n,backgroundColor:l,position:i?"fixed":"relative",right:i?"20px":"0",bottom:i?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Gl=({TextLineBgColor:l,text:o,contentSize:n,lineStyle:i,fontSize:t,textAlign:c,fontColor:r,lineColor:d,fontWeight:m,fontStyle:h,textDecoration:p})=>{const{View:u}=s();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:c,margin:1===n?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${i} ${d}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:m,fontStyle:h,textDecoration:p,fontSize:`${t}px`,color:r},children:o})]})},Wl=he((({borderStyle:a,borderRadius:l,height:o,width:n,backgroundColor:i,paddingTop:t,paddingBottom:c})=>{const{View:r}=s();return e(r,{style:{paddingTop:t,paddingBottom:c},children:e(r,{style:{borderRadius:l+"%",borderStyle:a,width:n+"%",height:o+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})})})),El=he((({defaultValue:l,borderRadius:o,paddingTop:n,paddingBottom:i,selectClassifyNav:t})=>{const{View:r,Text:d}=s(),m=c(l,t);return e(r,{style:{paddingTop:n,paddingBottom:i},children:e(r,{className:"classifyNav",children:m.map(((l,s)=>a(r,{className:"classifyNavItem",onClick:()=>{var e,a;return xe(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e("img",{src:l.imgUrl,alt:"",className:"img",style:{borderRadius:`${o}px`}}),e(d,{className:"label",children:l.title})]},s)))})})})),Hl=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:n,navBgColor:i,navBoxShadow:t,imgRadius:r,imgBoxShadow:d,layout:m,marginTop:h,marginBottom:p})=>{const{View:u}=s(),g=c(a,l);return e(u,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${m}, 1fr)`,borderRadius:o,border:`1px solid ${n}`,backgroundColor:i,boxShadow:t?"0px 0px 20px 10px #ddd":"none",marginTop:h,marginBottom:p},children:g.map(((a,l)=>e(u,{className:"classifyNav-item",onClick:()=>{var e,l;return xe(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e("img",{src:a.imgUrl,alt:"",className:"classifyNav-item-img",style:{borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none"}})},l)))})},Yl=he(Hl),Ul=he((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:n,navBgColor:i,navBoxShadow:t,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:u,marginBottom:g})=>{const{View:N}=s(),f=c(a,l),C=pe((()=>Be("classifyNav-two-item-title",...h)),[h]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${n}`,borderRadius:o,backgroundColor:i,boxShadow:t?"0px 0px 20px 5px #EEE":"none",marginTop:u,marginBottom:g},children:f.map(((a,l)=>e(N,{className:"classifyNav-two-item",onClick:()=>{var e,l;return xe(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===p?"74px":"60px"},children:e(N,{className:C,style:{fontSize:r,color:d},children:a.title})},l)))})})),Ql=he((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:n,navBgColor:i,navBoxShadow:t,imgRadius:r,imgBoxShadow:d,fontSize:m,fontColor:h,tagBgColor:p,otherStyle:u,layout:g,marginTop:N,marginBottom:f})=>{const{View:C}=s(),b=c(a,l);return e(C,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${g}, 1fr)`,border:`1px solid ${n}`,borderRadius:o,backgroundColor:i,boxShadow:t?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:f},children:b.map(((a,l)=>e(C,{className:"classifyNav-three-item",onClick:()=>{var e,l;return xe(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{backgroundImage:`url(${a.imgUrl})`,borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none",width:4===g?"74px":"60px",height:4===g?"74px":"60px"},children:e(C,{className:"classifyNav-three-item-tag",style:{backgroundColor:p},children:e(C,{className:["classifyNav-three-item-txt",...u].join(" "),style:{fontSize:m,color:h},children:a.title})})},l)))})})),_l=he((({defaultValue:l=[],classCode:o="",margin:n,circular:i=!1,cell:t,showSales:c=!0,gap:r=10,goods:d=[],markedPrice:m,paddingTop:h,paddingBottom:p,paddingLeft:u,paddingRight:g,goodsName:N=!0,goodsPrice:f=!0,goodsCar:C=!0,goodsBorder:b=!0,goodsShadow:y=!1,marginGap:x=10})=>{const[w,k]=ue(l),v=be(),{View:S,Text:I}=s();return ge((()=>{Me(v.current,d)||(v.current=d,Re(d)?k(l):ea(void 0,void 0,void 0,(function*(){try{const e=yield De({goodsCode:d.toString(),distinctField:"goodsNo"}),a=Le(e,"list",[]);k(a)}catch(e){k(l)}})))}),[d]),e(S,{style:{paddingTop:h,paddingBottom:p},children:e(S,{className:Be({[`goods-${o}`]:!0}),style:{display:"grid",gap:x,marginBottom:n,gridTemplateColumns:`repeat(${t}, 1fr)`,paddingLeft:u,paddingRight:g},children:w.map(((l,o)=>a(S,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:b?"1px solid #000000":""},onClick:()=>xe("goodDetail",{skuCode:l.skuCode}),className:["goods "+(y?"outer-shadow":"")].join(" "),children:[e(S,{className:"goods-img",style:{backgroundImage:`url(${l.dataPic})`}}),a(S,{className:"space",children:[e(S,{className:"titleType",style:{display:N?"block":"none"},children:l.goodsName}),e(S,{className:"subTitle",children:l.brandName}),c&&a(S,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(S,{className:"price",children:[a(S,{style:{fontSize:18},children:[f?la(l.pricesetNprice):"",1===m&&e(I,{className:"markedPrice",children:la(l.pricesetMakeprice)})]}),e(S,{className:"anticon",style:{display:C?"block":"none"},children:e(fa,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Kl=he((({defaultValue:l,goods:o,price:n,marketPrice:i,cart:t,wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:u,marginTop:g,marginBottom:N,marginLeft:f,marginRight:C})=>{const{View:b}=s(),{list:y}=j({defaultValue:l,goods:o});return e(b,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N,marginLeft:f,marginRight:C},children:y.map(((l,o)=>a(b,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${u}px`},onClick:()=>xe("goodDetail",{skuCode:l.skuCode}),children:[e(b,{className:"img",style:{backgroundImage:`url(${l.dataPic})`}}),a(b,{className:"board",children:[e(b,{className:"title",children:l.goodsName}),a(b,{className:"info",children:[a(b,{className:"lPart",children:[n?e(b,{className:"price",children:la(l.pricesetNprice)}):null,i?e(b,{className:"marketPrice",children:la(l.pricesetMakeprice)}):null]}),t?e(b,{className:"rPart",children:e(fa,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),ql=he((({defaultValue:l,goods:o,GoodsSlideshowBg:n,marketPrice:i,goodsName:t,salesNum:c,price:r,goodsRadius:d,goodsBorder:m,goodsShadow:h,btnText:p,btnBg:u,btnColor:g,btnRadius:N})=>{const f=pe((()=>we()),[]),{list:C}=j({defaultValue:l,goods:o}),{SmoothSwiper:b,View:y,Image:x}=s(),[w,k]=ue(0);return a(y,{className:"goodsSlideshow",children:[e(x,{src:n,className:"bg",mode:"widthFix"}),e(b,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:C,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{k(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(y,{className:["goodsSlideshowItem",""+(l.goodsCode===C[w].goodsCode&&f?"active":"")].join(" "),style:{borderRadius:d,borderStyle:m?"solid":"none",boxShadow:h?"0px 0px 20px 10px #ddd":""},onClick:()=>xe("goodDetail",{skuCode:l.skuCode}),children:[e(x,{className:"logo",src:l.dataPic,mode:"widthFix"}),t?e(y,{className:"goodsName",children:l.goodsShowname}):null,c?a(y,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,r?e(y,{className:"price",children:la(l.pricesetNprice)}):null,i?e(y,{className:"marketPrice",children:la(l.pricesetMakeprice)}):null,e(y,{className:"btn",style:{backgroundColor:u,color:g,borderRadius:N},children:p})]})})]})})),$l=a=>{var{autoplay:l,vertical:o}=a,s=Je(a,["autoplay","vertical"]);const n=ra(s,"skuNo"),{rsGoodsFileDomainList:i=[]}=G(n),t=W(i);return e(Ze,{selectImg:t,type:1,autoplay:l,vertical:o,imgHeight:{height:375,width:375}})},Zl=l=>{const{SmoothView:o,View:n}=s(),{handleCollect:i,collection:t}=E(l);return a(n,{onClick:i,children:[Re(t.dataObj)?e(fa,{value:"star-fill",style:{fontSize:20}}):e(fa,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:Re(t.dataObj)?"收藏":"已收藏"})]})},Xl=l=>{var{priceShow:o,collectionShow:n}=l,i=Je(l,["priceShow","collectionShow"]);const{View:t,SmoothView:c}=s(),r=ra(i,"skuNo"),{rsSkuDomainList:d}=G(r),{goodInfo:m}=H(d);return Y(r),a(t,{className:"goodsDetail-topInfo",children:[a(t,{className:"lPart",children:[e(c,{className:"name",children:m.goodsName}),e(c,{className:"price",style:{display:o?"block":"none"},children:la(m.pricesetNprice)})]}),e(t,{className:"rPart",style:{display:n?"flex":"none"},children:e(Zl,{goodsName:m.goodsName,pricesetNprice:m.pricesetNprice,dataPic:m.dataPic,skuCode:r})})]})},Jl=he((l=>{const{collectionShow:o,shareShow:n}=l,{View:i}=s(),{handleCollect:t,collection:c}=E(l),{handleShare:r}=U();return a(i,{className:"handleBar",children:[o?e(i,{className:"collection",onClick:t,style:{borderRight:n?"1px solid #ddd":"none"},children:Re(c.dataObj)?"收藏":"已收藏"}):null,n?e(i,{className:"share",onClick:r,children:"分享"}):null]})})),eo=he((l=>{var{priceShow:o,collectionShow:n,shareShow:i}=l,t=Je(l,["priceShow","collectionShow","shareShow"]);const{View:c,SmoothView:r}=s(),d=ra(t,"skuNo"),{rsSkuDomainList:m}=G(d),{goodInfo:h}=H(m);return Y(d),a(c,{className:"goodsDetail-info-one",children:[e(r,{className:"price",style:{display:o?"block":"none"},children:la(h.pricesetNprice)}),e(r,{className:"title",children:h.goodsName}),e(Jl,{collectionShow:n,shareShow:i,goodsName:h.goodsName,pricesetNprice:h.pricesetNprice,dataPic:h.dataPic,skuCode:d})]})})),ao=he((()=>{const{Text:e}=s(),l=Q((e=>e.count)),o=Q((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),lo=({dispatchPageStore:o})=>{const{View:n,Text:i}=s(),{openPopup:t}=_(o);return e(l,{children:a(n,{className:"goodsDetail-size",onClick:t,children:[e(i,{className:"label",children:"规格"}),a(n,{className:"info",children:[e(ao,{}),e("img",{src:_e,alt:"",className:"icon"})]})]})})},oo=l=>{var o=Je(l,[]);const{View:n,Text:i}=s(),t=ra(o,"skuNo"),{rsSkuDomainList:c}=G(t),{goodInfo:r}=H(c),d=K(c,r.skuCode||t);return a(n,{className:"goodsDetail-promotion",children:[e(i,{className:"label",children:"促销"}),e(n,{className:"group",children:d.length?d.map((({discName:a},l)=>e(n,{className:"item",children:a},l))):e(n,{className:"noPromotion",children:"暂无促销活动"})})]})},so=he((({promotionBegintime:l,pbName:o,discName:n,promotionCode:i,promotionName:t,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=s(),{save:p,isPick:u}=q(),g=pe((()=>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:n})]}),a(m,{className:"info",children:[e(h,{className:"title",children:t}),a(h,{className:"date",children:[Pe(l).format("YYYY-MM-DD")," - ",Pe(d).format("YYYY-MM-DD")]})]}),e(m,g>0?{className:u?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:i,couponAmount:1}),children:u?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),no=()=>{const{View:a,Image:l}=s();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},io=o=>{var n=Je(o,[]);const{View:i,Text:t,Popup:c}=s(),r=ra(n,"skuNo"),{rsSkuDomainList:d}=G(r),{goodInfo:m}=H(d),{coupon:h,visible:p,setVisible:u}=$(d,m.skuCode||r);return a(l,{children:[a(i,{className:"goodsDetail-coupon",onClick:()=>u(!0),children:[e(t,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(t,{className:"label",children:"请选择优惠券"}),e("img",{src:_e,alt:"",className:"icon"})]})]}),e(c,{popupVisible:p,popupHandler:u,children:e(i,{className:"goodsDetail-coupon-popup",children:e(pa,{children:h.length>0?h.map(((e,a)=>Ne(so,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(no,{}),e(i,{className:"btn",onClick:()=>u(!1),children:"确定"})]})})})})]})},to=({item:l})=>{const{View:o,Image:n}=s();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(n,{src:l.userImgurl,className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Ga,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]})},co=({evaluateArr:l})=>{const{View:o}=s(),n=be(l);return e(o,{className:"goodsDetailEvaluate",children:n.current.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",n.current.length,")"]}),n.current.slice(0,5).map(((a,l)=>e(to,{item:a},l)))]}):e(ol,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ro=({goodsRemark:a})=>{const{View:l}=s(),o=pe((()=>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||""}})})},mo=({tabActive:o,setTabActive:n,evaluateShow:i,evaluateImgShow:t,evaluateImg:c})=>{const{Text:r}=s(),d=pe((()=>t?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[i]);return e(l,{children:d.map(((l,s)=>e(ye,{children:a(r,{className:"tabsItem "+(o===s?"active":""),onClick:()=>n(s),children:[l.title,e(r,{className:"line"})]})},s)))})},ho=l=>{var{evaluateShow:o,evaluateImgShow:n,evaluateImg:i}=l,t=Je(l,["evaluateShow","evaluateImgShow","evaluateImg"]);const{View:c}=s(),[r,d]=ue(0),m=ra(t,"skuNo"),{goodsRemark:h,goodsCode:p}=G(m),u=Z(p);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(mo,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:n,evaluateImg:i})}),e(c,{className:"group",children:0===r?e(ro,{goodsRemark:h}):e(co,{evaluateArr:u,evaluateImgShow:n,evaluateImg:i})})]})},po=({skuName:l,handleChooseSize:o,spec:n,skuOption:i,index:t})=>{const{View:c,Text:r}=s();return a(c,{className:"sizeArr",children:[e(r,{className:"title",children:l}),e(c,{className:"sizeArrItemWrap",children:i.map(((a,l)=>e(c,{className:"sizeItem "+(n[t]===a.specValueValue?"active":""),onClick:o.bind(null,a.specValueValue,t),children:a.specValueValue},l)))})]})},uo=he((({handleStep:l})=>{const{View:o,NumStep:n}=s(),i=Q((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(n,{count:i,handleStep:l})]})})),go=({skuInfo:o,handleChooseSize:n,spec:i,goodInfo:t})=>{const{Image:c,View:r}=s(),{skuList:d}=o;return a(l,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(c,{src:t.dataPic,alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:t.goodsName}),e(r,{className:"price",children:la(t.pricesetNprice)}),a(r,{className:"chosen",children:["已选择: ",i.toString()]})]})]}),d.map(((a,l)=>e(po,{spec:i,handleChooseSize:n,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},No=({cashImpl:o,addShoppingImpl:n,addCardImpl:i})=>{const{Text:t,View:c}=s(),r=Q((e=>e.isNeedButton));return e(l,{children:r?e(c,{className:"btnWrap",onClick:n,children:e(t,{className:"btn",children:"确认"})}):a(c,{className:"goods-detail-btn-group popup-buy-button",children:[e(c,{className:"btn addCart",onClick:i,children:"加入购物车"}),e(c,{className:"btn buy",onClick:o,children:"立即购买"})]})})},fo=he((({dispatchPageStore:l,goodsCode:o,skuInfo:n,rsSkuDomainList:i})=>{const{View:t}=s(),{spec:c,goodInfo:r}=H(i),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:u}=X(o,n,l);return a(t,{className:"goodsDetail-size-popup",children:[a(t,{className:"content",children:[e(go,{skuInfo:n,handleChooseSize:d,spec:c,goodInfo:r}),e(uo,{handleStep:m.bind(null,r.goodsNum)})]}),e(No,{cashImpl:p,addShoppingImpl:u,addCardImpl:h})]})})),Co=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:n,rsSkuDomainList:i})=>{const{Popup:t}=s();return e(t,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(fo,{dispatchPageStore:l,goodsCode:o,skuInfo:n,rsSkuDomainList:i})})},bo=he((({serverShow:l,cartShow:o,lPartColor:n,lPartBgColor:i,lPartStyle:t,rPartColor:c,rPartBgColor:r,rPartStyle:d,dispatchPageStore:m})=>{const{Text:h,View:p,IconMobile:u}=s(),{servicePopup:g}=aa(),{addCardPopup:N,buyOpenPopup:f}=_(m);return a(p,{className:"goodsDetailHandleBar",children:[a(p,{className:"linkGroup server",onClick:g,style:{display:l?"block":"none"},children:[e(u,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(h,{className:"txt",children:"客服"})]}),a(p,{className:"linkGroup cart",onClick:()=>xe("shopping"),style:{display:o?"block":"none"},children:[e(u,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(h,{className:"txt",children:"购物车"})]}),a(p,{className:"goods-detail-btn-group",children:[e(p,{className:"btn addCart",onClick:N,style:{color:n,backgroundColor:i,borderTopLeftRadius:t,borderBottomLeftRadius:t},children:"加入购物车"}),e(p,{onClick:f,className:"btn buy",style:{color:c,backgroundColor:r,borderTopRightRadius:d,borderBottomRightRadius:d},children:"立即购买"})]})]})})),yo=o=>{var{$_dataSource:s={},dispatchPageStore:n=Oe}=o,i=Je(o,["$_dataSource","dispatchPageStore"]);const t=ra(i,"skuNo"),{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=G(t),m=J(c),{popupVisible:h}=s;return a(l,{children:[e(bo,Object.assign({},i,{dispatchPageStore:n})),e(Co,{dispatchPageStore:n,popupVisible:h,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},xo=he((({serverShow:l,cartShow:o,lBtnBorderColor:n,lBtnFontColor:i,lBtnColor:t,lBtnStyle:c,rBtnBorderColor:r,rBtnFontColor:d,rBtnColor:m,rBtnStyle:h,dispatchPageStore:p})=>{const{Text:u,View:g,IconMobile:N}=s(),{servicePopup:f}=aa(),{addCardPopup:C,buyOpenPopup:b}=_(p);return a(g,{className:"goodsDetailHandleBarOne",children:[a(g,{className:"linkGroup server",onClick:f,style:{display:l?"block":"none"},children:[e(N,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(u,{className:"txt",children:"客服"})]}),a(g,{className:"linkGroup cart",onClick:()=>xe("shopping"),style:{display:o?"block":"none"},children:[e(N,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(u,{className:"txt",children:"购物车"})]}),a(g,{className:"goods-detail-one-btn-group",children:[e(g,{className:"btn addCart",onClick:C,style:{border:`1px solid ${n}`,color:i,backgroundColor:t,borderRadius:1===c?"20px":"0"},children:"加入购物车"}),e(g,{onClick:b,className:"btn buy",style:{border:`1px solid ${r}`,color:d,backgroundColor:m,borderRadius:1===h?"20px":"0"},children:"立即购买"})]})]})})),wo=o=>{var{popupVisible:s=!1,dispatchPageStore:n=Oe}=o,i=Je(o,["popupVisible","dispatchPageStore"]);const t=ra(i,"skuNo"),{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=G(t),m=J(c);return a(l,{children:[e(xo,Object.assign({},i,{dispatchPageStore:n})),e(Co,{dispatchPageStore:n,popupVisible:s,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},ko=he((({defaultValue:l,coupons:o,bg:n,borderColor:i,btnColor:t,typeColor:c,titleColor:r,ruleColor:d,timeColor:m,paddingTop:h,paddingBottom:p})=>{const{View:u}=s(),{list:g,takeCoupon:N,takeList:f}=ee({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${h}px`,paddingBottom:`${p}px`},children:g.map(((l,o)=>{const s=Le(l,"pbName"),h=Le(l,"pmPromotionDiscountList"),p=Le(h.at(-1),"discName"),g=Le(l,"promotionName"),C=Pe(Le(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Pe(Le(l,"promotionEndtime")).format("YYYY-MM-DD"),y=Le(l,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:n,borderColor:i},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:c},children:s}),e(u,{className:"rule",style:{color:d},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:r},children:g}),a(u,{className:"validity",style:{color:m},children:[C," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:t},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)}))})})),vo=he((({defaultValue:l,coupons:o,bg:n,borderColor:i,btnColor:t,typeColor:c,ruleColor:r,titleColor:d,timeColor:m,gap:h,paddingTop:p,paddingBottom:u})=>{const{View:g}=s(),{list:N,takeCoupon:f,takeList:C}=ee({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:p,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:h},children:N.map(((l,o)=>{const s=Le(l,"pbName"),h=Le(l,"pmPromotionDiscountList"),p=Le(h.at(-1),"discName"),u=Le(l,"promotionName"),N=Pe(Le(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Pe(Le(l,"promotionEndtime")).format("YYYY-MM-DD"),y=Le(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:n,borderColor:i},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:c},children:s}),e(g,{className:"rule",style:{color:r},children:p}),e(g,{className:"info",style:{color:d},children:u}),a(g,{className:"validity",style:{color:m},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:t},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)}))})})),So=he((l=>{var{type:o=1,coupons:n=[]}=l,i=Je(l,["type","coupons"]);const{View:t}=s();return a(t,{className:"getCouponOne",children:[1===o?e(ko,Object.assign({coupons:n},i)):null,2===o?e(vo,Object.assign({coupons:n},i)):null]})})),Io=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ao=he((({activeColor:a,setParams:l,params:o})=>{const{View:n}=s();return e(n,{className:"promotionListTab",children:Io.map(((s,i)=>e(n,{className:"promotionListTabItem",onClick:()=>l(s.val),style:{color:s.val===o?a:"#000"},children:s.label},i)))})})),Bo=({data:l})=>{const{View:o}=s(),{pbName:n,promotionName:i,pmPromotionDiscountList:t,promotionBegintime:c,promotionEndtime:r}=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:["官方",n]})}),e(o,{className:"rule",children:t.at(-1).discName}),e(o,{className:"title",children:i}),a(o,{className:"time",children:[Pe(c).format("YYYY-MM-DD")," ~ ",Pe(r).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Vo=he((({activeColor:l,paddingTop:o,paddingBottom:n})=>{const[i,t]=ue(Io[0].val),{list:c,getData:r}=ae({params:i}),{View:d,ScrollView:m}=s();return a(d,{style:{padding:`${o}px 0 ${n}px`},children:[e(Ao,{activeColor:l,setParams:t,params:i}),e(d,{children:e(pa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Bo,{data:a},l)))})})})]})})),To=he((()=>e(l,{children:"123"}))),Do=({setDefault:a,checked:l})=>{const{SmoothCheckbox:o,Checkbox:n}=s();return e(o,{onChange:a,children:e(n,{checked:l,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},Po=({itemData:l,delAddress:o,setDefault:n})=>{const{View:i,Text:t}=s(),{handlerImpl:c}=le(l);return a(i,{className:"addressItem",children:[a(i,{className:"upInfo",onClick:c,children:[a(i,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(i,{className:"addressInfo",children:a(t,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(i,{className:"downInfo",children:[e(Do,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:n}),e(t,{className:"del",onClick:o,children:"删除"})]})]})},Lo=he((()=>{const{View:a,Skeleton:o}=s(),n=be(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:n.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),Ro=he((({refreshNum:a,btnShape:l,btnColor:o,borderColor:n,paddingBottom:i,paddingTop:t,color:c})=>{const{View:r}=s(),{list:d,delAddress:m,setDefault:h,skullShow:p}=oe(a);return e(r,{className:"addressListWrap",style:{paddingTop:t+"px",marginBottom:i+"px"},children:p?e(Lo,{}):e(r,{className:"addressList",children:d.length?d.map(((a,l)=>e(Po,{itemData:a,setDefault:h.bind(null,a,l),delAddress:m.bind(null,a)},null==a?void 0:a.addressId))):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),zo=he((({borderColor:a,color:l,btnColor:o,btnShape:n,paddingTop:i,paddingBottom:t})=>{const{View:c}=s();return e(c,{className:"addressListBtnWrap",style:{paddingTop:`${i}px`,paddingBottom:`${t}px`},children:e(c,{style:{borderRadius:n,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>xe("addressEditor"),children:"+ 新增地址"})})})),Mo=he((({contractBillcode:l,contractBbillcode:o,btnColor:n,btnShape:i,borderColor:t,paddingTop:c,paddingBottom:r,color:d})=>{const m=pe((()=>we()),[]),{View:h,Text:p,Radio:u,IconMobile:g,WrapLoading:N,SmoothRadio:f}=s(),{paymentImpl:C,channelList:b,contract:y,handleRadio:x,loading:w}=se({contractBillcode:l,contractBbillcode:o});return a(h,{className:"paymentModeWrap",style:{height:m?"inherit":"667px",paddingBottom:r+"px",paddingTop:c+"px"},children:[a(h,{className:"paymentMode",children:[a(h,{className:"topInfo",children:[a(p,{className:"title",children:[e(g,{value:"roundcheck"}),"订单提交成功"]}),a(h,{className:"info",children:["订单号:",y.current.contractBillcode," | 总金额:",la(y.current.dataBmoney),"元"]})]}),e(h,{className:"paymentGroup",children:e(f,{onChange:x,children:null==b?void 0:b.map((l=>a(h,{className:"paymentItem",children:[e(g,{value:l.icon}),a(h,{children:[a(h,{className:"base",children:[e(p,{children:l.fchannelName}),e(u,{value:l.fchannelCode,className:"choose"})]}),"account"===l.value?a(h,{className:"info",children:[e(h,{children:"账户余额:0元"}),e(h,{children:"本单抵扣:5.4元"})]}):null]})]},l.fchannelCode)))})})]}),e(h,{id:"v_html"}),e(N,{loading:w,children:e(h,{className:"btnGroup",onClick:C,children:e(h,{style:{borderRadius:i,backgroundColor:n,color:d,borderColor:t},className:"payment",children:"立即支付"})})})]})})),Oo=he((({title:l})=>{const{View:o}=s();return a(o,{className:"refundOptionStyle",children:[l,a(o,{className:"optionItem",onClick:()=>{xe("refundOnly",{})},children:[e(o,{className:"refund_icon",children:e(fa,{value:"tuikuantuihuo",style:{fontSize:20,color:"rgb(255, 136, 9)"}})}),a(o,{className:"refund_text",children:[e(o,{className:"refund_type_title",children:"仅退款(无需退货)"}),e(o,{className:"refund_tip",children:"没收到货,或与卖家协商同意不用退货只退款"})]}),e(o,{className:"refund_icon_end",children:e(fa,{value:"xiangyou1",style:{fontSize:16}})})]}),a(o,{className:"optionItem",children:[e(o,{className:"refund_icon",children:e(fa,{value:"tuikuantuihuo1",style:{fontSize:20,color:"rgb(255, 136, 9)"}})}),a(o,{className:"refund_text",children:[e(o,{className:"refund_type_title",children:"我要退货退款"}),e(o,{className:"refund_tip",children:"已收到货,需要退还收到的货物"})]}),e(o,{className:"refund_icon_end",children:e(fa,{value:"xiangyou1",style:{fontSize:16}})})]}),a(o,{className:"optionItem",children:[e(o,{className:"refund_icon",children:e(fa,{value:"huanhuo",style:{fontSize:20,color:"rgb(255, 136, 9)"}})}),a(o,{className:"refund_text",children:[e(o,{className:"refund_type_title",children:"我要换货"}),e(o,{className:"refund_tip",children:"已收到或,需要退还更换"})]}),e(o,{className:"refund_icon_end",children:e(fa,{value:"xiangyou1",style:{fontSize:16}})})]})]})})),Fo=he((({value:l,getAmountNum:o,goodsCamount:n})=>{const{View:i}=s(),t=pe((()=>we()),[]);return a(i,{className:"count_btn_style",children:[e(i,{className:"btn_left",onClick:()=>{if(l<=1){if(t){ve().showToast({title:"退货数量最低为1",icon:"none",mask:!0})}}else o(l-1)},children:"-"}),e(i,{className:"btn_middle",children:l}),e(i,{className:"btn_right",onClick:()=>{if(l>=n){if(t){ve().showToast({title:"退货数量最多不得超出购买该商品总数量!",icon:"none",mask:!0})}}else o(l+1)},children:"+"})]})})),jo=he((({title:l,dataPic:o,goodsName:n,goodsCamount:i=2,price:t})=>{const[c,r]=ue(!0),[d,m]=ue(i),{View:h,Image:p}=s();console.log("当前退货数量为",d);const u=pe((()=>Be("goods_nums",{goods_nums_btm:Number(i)>1},{goods_nums_btm1:Number(i)<2})),[i]);return a(h,{className:"refundGoodsDeatil",children:[l,a(h,{className:"goodsDeatilMsg",children:[e(h,{className:"goods_img",children:e(p,{src:"https://b2coptfa10b0d4f03f4ff48c571f14558fa068.saas.qjclouds.com/paas/shop/597370900596056114//63758997dcb34f15ae1b7f2244d52916.png",alt:"",className:"img"})}),a(h,{className:"goods_content",children:[a(h,{className:"goods_text",children:[e(h,{className:"goods_title",children:"花秘瑰萃 明星臻选套装 花秘瑰萃 明星臻发顺丰水电费付付水电费"}),e(h,{className:"goods_price",children:"¥980.00"})]}),a(h,{className:u,children:[e(h,{className:"goods_size",children:"30ml/清淡型"}),Number(i)>1?a(h,{className:"nums_btn",children:[e(h,{className:"icon_btn",onClick:()=>r(!c),children:e(fa,{value:"bangzhu",style:{fontSize:15}})}),e(Fo,{value:d,getAmountNum:e=>{m(e)},goodsCamount:i})]}):`x${i}`]})]}),e(h,{className:"help_btn",style:{display:c?"block":"none"},children:"如部分商品售后成功,剩余商品将不能申请售后"})]})]})})),Go=he((l=>{console.log("退款类型",l);const{View:o}=s();return a(o,{className:"refundPage",children:[e(o,{className:"goodsMsg",children:e(jo,Object.assign({title:"退款商品"},l))}),e(o,{className:"refundOption",children:e(Oo,{title:"选择售后类型"})})]})})),Wo=he((()=>{const[l,o]=ue(!1),[n,i]=ue(980),{View:t,Input:c,Popup:r}=s();return a(t,{className:"refundMsgPage",children:[a(t,{className:"refundItem",onClick:()=>{o(!0)},children:[a(t,{className:"refundMsg",children:[a(t,{className:"inputText",children:[e(t,{className:"icon",children:"*"}),e(t,{className:"text",children:"退款原因"})]}),a(t,{className:"optionText",children:[e(t,{className:"text1",children:"请选择"}),e(t,{className:"icon",children:">"})]})]}),e(t,{className:"refundTip",children:"请选择退款原因!退款原因不能为空!"})]}),a(t,{className:"refundItem",children:[a(t,{className:"refundMsg",children:[a(t,{className:"inputText",children:[e(t,{className:"icon",children:"*"}),e(t,{className:"text",children:"退款金额"})]}),a(t,{className:"optionText",children:[e(t,{className:"text",children:a(t,{className:"textInp",children:["¥",e(c,{className:"inputText",disabled:!1,value:oa(n),onBlur:e=>{i(e.detail.value)}})]})}),e(t,{className:"icon1",children:a(t,{className:"iconContent",children:[e(fa,{value:"bianjishuru",style:{fontSize:12,color:"#000000"}}),e(t,{className:"updatebtn",children:"修改"})]})})]})]}),e(t,{className:"refundTip1",children:"可修改,最多¥980.00,含运费¥0.00"})]}),e(r,{popupVisible:l,popupHandler:o,children:e(t,{className:"goodsDetail-coupon-popup",children:e(pa,{children:"123213"})})})]})})),Eo=he((()=>{const[l,o]=ue(!1),[n,i]=ue([]),{View:t,Popup:c,Image:r}=s(),d=pe((()=>we()),[]);return console.log("图片路径",n),a(t,{className:"select_img",children:[a(t,{className:"icon_img",onClick:()=>{if(n.length>=3){if(d){ve().showToast({title:"最多只能上传3张图片!",duration:2e3,icon:"none",mask:!0})}}else o(!0)},children:[e(fa,{value:"shangchuanpingzheng",style:{fontSize:20,color:"#9e9e9e"}}),e(t,{children:"上传凭证"}),e(t,{children:"(最多3张)"})]}),n.length>0?n.map(((l,o)=>a(t,{className:"show_img",children:[e(t,{className:"delete_btn",onClick:()=>(e=>{console.log("下标",e);const a=n.slice();a.splice(e,1),i((e=>[...a]))})(o),children:"x"}),e(r,{className:"img",src:l,onClick:()=>(e=>{if(d){const a=ve();let l=[];l.push(e),a.previewImage({current:e,urls:l,showmenu:!0})}})(l)},o)]}))):"",e(c,{popupVisible:l,popupHandler:o,children:e(t,{className:"upload_content",children:a(pa,{children:[e(t,{className:"upload_btn",children:"拍照"}),e(t,{className:"upload_btn",onClick:()=>{if(d){ve().chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(e){console.log("上传图片-相册",e);var a=[];a.push(e.tempFilePaths[0]),console.log("上传路径",a),i((e=>[...e,...a])),o(!1)}})}},children:"从相册选择"}),e(t,{className:"upload_unbtn",onClick:()=>o(!1),children:"取消"})]})})})]})})),Ho=he((()=>{const{View:l}=s();return a(l,{className:"uploadingPage",children:[e(l,{className:"uploadingContent",children:"补充描述和凭证"}),a(l,{className:"uploadingText",children:["补充描述,有助于商家更好的处理售后问题",e(l,{className:"uploadImg",children:e(Eo,{})})]})]})})),Yo=he((()=>{const{View:l}=s();return a(l,{className:"refundOnlyPage",children:[e(l,{className:"refundTip",children:"请与商家协商,确认达成一致后填写协商好的退款金额"}),e(l,{className:"refundMsg_style",children:e(Wo,{})}),e(l,{className:"refundUploading",children:e(Ho,{})})]})})),Uo=()=>{const{View:l}=s(),{mySettingGoBind:o,mySettingLogout:n}=ne();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(fa,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:n,children:"退出登录"})]})},Qo=he(Uo),_o=he((()=>e(l,{children:"agree"}))),Ko=me.createContext(null),qo=he((()=>{const{View:l,Image:o,NumStep:n}=s(),{typeTip:i,setTypeTip:t,goodsNum:c,handleStep:r,goodsInfo:d}=Ce(Ko),{goodsName:m,skuName:h,dataPic:p,contractGoodsPrice:u}=d;return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:p,className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(l,{className:"name",children:m}),e(l,{className:"price",children:la(u)})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:h}),a(l,{className:"stepWrap",children:[e(fa,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>t((e=>!e))}),e(n,{count:c,handleStep:r})]})]}),i?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),$o={1:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],2:[{label:"仅退款(无需退货)",value:"B01"}],3:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],4:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}]},Zo=(e=2)=>$o[e],Xo=he((({afterSalesType:l=2,contractBillcode:o,skuCode:n})=>{const{View:i}=s(),{goApply:t,goodsNum:c}=Ce(Ko);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),Zo(+l).map(((l,s)=>a(i,{className:"item",onClick:t.bind(null,l.value,o,n,c),children:[e(i,{className:"headline",children:l.label}),e(fa,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},s)))]})})})),Jo=l=>{const{contractBillcode:o,skuCode:n,dataState:i}=l,{typeTip:t,setTypeTip:c,goodsNum:r,handleStep:d,goodsInfo:m,goApply:h}=ie({contractBillcode:o,skuCode:n}),{View:p}=s();return e(p,{className:"afterSalesType",children:a(Ko.Provider,{value:{typeTip:t,setTypeTip:c,goodsNum:r,handleStep:d,goodsInfo:m,goApply:h},children:[e(qo,{}),e(Xo,{afterSalesType:i,contractBillcode:o,skuCode:n})]})})},es=me.createContext(null),as=he((()=>{const{View:a}=s(),{tip:l}=Ce(es);return e(a,{className:"afterSalesApplyTip",children:l})})),ls=he((()=>{const{View:l,SmoothRadio:o,Radio:n,Popup:i,ScrollView:t}=s(),{handlePopupShow:c,popupVisible:r,reasonList:d,handleChooseReason:m}=Ce(es);return e(i,{popupVisible:r,popupHandler:c,children:e(l,{className:"reasonPopup",children:e(pa,{children:a(t,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:m,children:d.map(((o,s)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(n,{value:o.flagSettingInfo})]},s)))})]})})})})})),os=he((()=>{const{View:l}=s(),{handlePopupShow:o,popupVisible:n,reason:i,goodsInfo:t,goodsNum:c}=Ce(es);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:i?e(l,{className:"chooseResult",children:i}):a(l,{children:["请选择",e(fa,{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:"退款金额"})]}),a(l,{className:"allPrice",children:[e(l,{className:"single",children:la(null==t?void 0:t.contractGoodsPrice)}),a(l,{className:"count",children:["x ",c]})]})]}),e(ls,{popupShow:n})]})})),ss=he((()=>{const{View:l,TextArea:o,Textarea:n}=s(),i=n||o,{handleChooseImg:t,imgGroup:c,placeholder:r,handleDelImg:d,limit:m,handleFillInReason:h}=Ce(es);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(i,{placeholder:r,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[c.length<m?e(l,{className:"add",onClick:t,children:a(l,{className:"addContent",children:[e(fa,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[c.length,"/",m]})]})}):null,c.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(fa,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),ns=({refundType:l,contractBillcode:o,skuCode:n,goodsNum:i})=>{const{View:t,WrapLoading:c}=s(),{tip:r,reasonList:d,popupVisible:m,handlePopupShow:h,handleChooseReason:p,reason:u,handleChooseImg:g,imgGroup:N,placeholder:f,handleDelImg:C,limit:b,goodsInfo:y,handleFillInReason:x,handleSubmit:w,loading:k}=te({contractBillcode:o,skuCode:n});return e(c,{loading:k,children:e(t,{className:"afterSalesApply",children:a(es.Provider,{value:{tip:r,reasonList:d,popupVisible:m,handlePopupShow:h,handleChooseReason:p,reason:u,handleChooseImg:g,imgGroup:N,placeholder:f,handleDelImg:C,limit:b,goodsNum:i,goodsInfo:y,handleFillInReason:x,handleSubmit:w},children:[e(as,{}),e(os,{}),e(ss,{}),e(t,{className:"submitBtn",onClick:w.bind(null,i,o,l),children:"确定"})]})})})},is=(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]}},ts=me.createContext(null),cs=he((()=>{const{companyList:l,popupShow:o,handlePopupShow:n,chooseCompany:i}=Ce(ts),{View:t,SmoothRadio:c,Radio:r,Popup:d,ScrollView:m}=s();return e(d,{popupVisible:o,popupHandler:n,children:e(t,{className:"reasonPopup",children:e(pa,{children:a(m,{children:[e(t,{className:"title",children:"物流选择"}),e(c,{onChange:i,children:l.map(((l,o)=>a(t,{className:"reasonItem",children:[e(t,{className:"label",children:l.expressName}),e(r,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),rs=he((()=>{const{handlePopupShow:o,packageName:n,setPackageBillno:i,submitExpressInfo:t}=Ce(ts),{View:c,Input:r}=s();return a(l,{children:[a(c,{className:"sender_content",children:[a(c,{className:"sender_name",children:[e(c,{className:"sender_icon",children:"*"}),e(c,{className:"sender_names",children:"物流公司"})]}),e(c,{className:"sender_input name_style",onClick:o,children:e(c,""===n?{style:{color:"#000"},children:"请填写"}:{children:n})})]}),a(c,{className:"sender_content",children:[a(c,{className:"sender_name",children:[e(c,{className:"sender_icon",children:"*"}),e(c,{className:"sender_names",children:"物流单号"})]}),e(c,{className:"sender_input",children:e(r,{type:"number",placeholder:"请填写",onInput:e=>i(e.detail.value)})})]}),e(c,{className:"expressInfo",children:e(c,{className:"expressInfo_btn",onClick:t,children:"提交物流信息"})}),e(cs,{})]})})),ds=he((({refundCode:o})=>{const{afterSalesDetailInfo:n,submitExpressInfo:i,handleCancelAfterSales:t,companyList:c,popupShow:r,handlePopupShow:d,chooseCompany:m,packageName:h,setPackageBillno:p}=ce({refundCode:o}),{dataState:u,gmtCreate:g,ocRefundGoodsList:N,refundMoney:f,refundMeo:C,refundEx:b,refundType:y,ocRefundFileList:x,goodsReceiptMem:w,goodsReceiptPhone:k,goodsReceiptArrdess:v,packageCode:S,packageBillno:I}=n,{View:A,Image:B}=s();return e(A,{className:"afterSalesDetail",children:a(ts.Provider,{value:{companyList:c,popupShow:r,handlePopupShow:d,chooseCompany:m,packageName:h,setPackageBillno:p,submitExpressInfo:i},children:[a(A,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(A,{className:"left_text",children:is(y,u)}),e(A,{className:"right_time",children:Pe(g).format("YYYY-MM-DD HH:mm:ss")})]}),e(A,{className:"afterSalesDetailContent",children:a(A,{className:"refundDetail",children:[e(A,{className:"title",children:"退款信息"}),e(A,{className:"goodsDetail",children:null==N?void 0:N.map(((a,l)=>e(sa,{dataPic:a.dataPic,pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款原因"}),e(A,{className:"right",children:b})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款金额"}),e(A,{className:"right",children:f})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"描述说明"}),e(A,{className:"right",children:C})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"补充凭证"}),e(A,{className:"right",children:null==x?void 0:x.map(((a,l)=>e(B,{src:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"申请时间"}),e(A,{className:"right",children:Pe(g).format("YYYY-MM-DD HH:mm:ss")})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款编号"}),e(A,{className:"right",children:o})]}),e(l,{children:"B02"===y?a(l,{children:[u>0?a(A,{className:"merchantMsg",children:[e(A,{className:"title",children:"商家信息"}),a(A,{className:"name",children:[w,"  ",k]}),e(A,{className:"address",children:v})]}):"",1===u?a(A,{className:"writeMsg",children:[e(A,{className:"wlMsg",children:"物流信息"}),e(rs,{})]}):"",u>1?a(A,{className:"writeMsg",children:[e(A,{className:"wlMsg",children:"物流信息"}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流单号"}),e(A,{className:"code",children:I})]}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流公司"}),e(A,{className:"code",children:h})]}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流公司编码"}),e(A,{className:"code",children:S})]})]}):""]}):""})]})}),0===u?e(A,{className:"footerBtn",children:e(A,{className:"btn",onClick:t.bind(null,N[0].goodsCode),children:"撤销申请"})}):null]})})})),ms={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},hs={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},ps=he((({data:l,goAfterSalesDetail:o})=>{var n,i;const{View:t,Image:c}=s();return a(t,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(t,{className:"title",children:[a(t,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(t,{className:"rPart",children:[e(fa,{style:{color:null===(n=ms[l.refundType])||void 0===n?void 0:n.color,fontSize:12},value:null===(i=ms[l.refundType])||void 0===i?void 0:i.icon}),e(t,{className:"txt",children:ms[l.refundType].label})]})]}),a(t,{className:"goodsInfo",children:[e(t,{className:"lPart",children:e(c,{src:l.ocRefundGoodsList[0].dataPic,className:"img"})}),a(t,{className:"rPart",children:[e(t,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(t,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(t,{className:"tip",children:[e(t,{class:"lPart",children:hs[l.refundType][l.dataState]}),e(fa,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),us=he((()=>{const{View:a}=s();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),gs=he((({item:a,refreshNum:l})=>{const{View:o,ScrollView:n}=s(),{afterSalesList:i,goAfterSalesDetail:t}=re(a,l);return e(o,{className:"tabContent",children:e(pa,{id:"tabContent",children:e(n,{children:i.length?i.map((a=>e(ps,{data:a,goAfterSalesDetail:t.bind(null,a.refundCode)}))):e(us,{})})})})})),Ns=he((({refreshNum:a=0})=>{const{View:l,Tabs:o}=s();return e(l,{className:"afterSalesList",children:e(o,{defaultIndex:0,tabs:de,render:l=>e(gs,{item:l,refreshNum:a})})})}));export{$a as AddressDetail,Ro as AddressList,zo as AddressListBtn,ns as AfterSalesApply,ds as AfterSalesDetail,Ns as AfterSalesList,Jo as AfterSalesType,To as AllCouponList,Vo as AllPromotionList,Bl as ArticleDetail,jl as BackTop,nl as Cart,Nl as CartList,fl as CartOperate,il as CartTop,El as ClassifyNav,Yl as ClassifyNavOne,Hl as ClassifyNavOneJsx,Ql as ClassifyNavThree,Ul as ClassifyNavTwo,Il as CollectionList,al as CouponList,He as Cube,Wa as EvaluateDetail,ja as EvaluateList,Ya as ExpressInfo,vl as FootPrint,So as GetCouponOne,_l as Goods,ka as GoodsClassify,Ba as GoodsClassifyOne,Pa as GoodsClassifyTwo,ho as GoodsDetailAndEvaluate,$l as GoodsDetailBanner,io as GoodsDetailCoupon,yo as GoodsDetailHandleBar,wo as GoodsDetailHandleBarOne,Xl as GoodsDetailInfo,eo as GoodsDetailInfoOne,oo as GoodsDetailPromotion,lo as GoodsDetailSku,za as GoodsList,Kl as GoodsSlider,ql as GoodsSlideshow,Wl as Line,Cl as MineData,yl as MineFunction,bl as MineOrderEntry,_o as MyAgreement,Qo as MySetting,Uo as MySettingJsx,We as Notice,Al as NoticeDetail,ya as OrderDetail,Na as OrderList,Mo as PaymentMode,Pl as PlaceOrderAddress,Rl as PlaceOrderCoupon,zl as PlaceOrderDelivery,Ml as PlaceOrderGood,Ol as PlaceOrderInfo,Fl as PlaceOrderOperate,Xa as PlaceOrderResult,fa as QjMobileIcon,Go as RefundAfter,Yo as RefundOnly,Ke as Search,Ma as SearchPage,qe as SearchStyleTwo,Ue as Service,Xe as Slider,Gl as TextLine,Ee as Title,Ye as Video};
1
+ import{jsx as e,jsxs as a,Fragment as l}from"react/jsx-runtime";import{NoticeBar as o,useComponent as s,antdMobile as n,IconMobile as i}from"@brushes/simulate-component";import{useNotice as t,useCube as c,useOrderOperate as r,orderStatusImpl as d,useOrderList as m,orderStatusList as h,useOrderDetail as p,useGoodsClassify as u,useGoodsList as g,navigator as N,useEvaluateDetail as C,useExpressInfo as f,useEditAddress as b,useOrderResultResult as y,useCouponList as w,useStore as x,useCartItem as k,StoreProvider as v,useCartList as S,useCartTop as I,useCartListNext as A,useCartOperate as B,useFootprint as V,useCollectionList as T,useNoticeDetail as D,useArticleDetail as L,useOrderAddress as P,useOrderGood as R,useOrderCoupon as z,useOrderInfo as M,useOrderPay as O,useGoTop as F,useGoods as j,useGoodDetail as W,useBanner as G,useGoodCollection as E,useGoodSpecAndPrice as H,useGoodFootprint as Y,useGoodsShare as U,useGoodSkuStore as Q,popupImplement as _,usePromotion as K,useAddCoupon as $,useCoupon as q,useEvaluate as Z,useAddShopping as X,useGoodSku as J,useAllCoupon as ee,useMarketingPromotion as ae,useAddressItem as le,useAddressList as oe,useOrderResult as se,useMySetting as ne,useAfterSalesChooseType as ie,useAfterSalesApply as te,useAfterSalesDetail as ce,useAfterSalesList as re,afterSalesTabConfig as de}from"qj-mobile-store";import me,{memo as he,useMemo as pe,useState as ue,useEffect as ge,createElement as Ne,createContext as Ce,useContext as fe,useRef as be,Fragment as ye}from"react";import{navigatorHandler as we,getEnv as xe,getStorage as ke,getTaro as ve,useImmutableCallback as Se,navigatorBackImpl as Ie,setStorage as Ae}from"@brushes/utils";import Be from"classnames";import{queryOcsconfigList as Ve,getContractNumbers as Te,find as De}from"qj-b2c-api";import Le from"dayjs";import{get as Pe,isEmpty as Re,groupBy as ze,isEqual as Me,noop as Oe}from"lodash-es";import Fe from"china-division/dist/provinces.json";import je from"china-division/dist/cities.json";import We from"china-division/dist/areas.json";const Ge=({direction:a,speed:l,num:s,color:n})=>{const{content:i,navigator:c}=t(s);return e(o,{navigator:c,color:n,speed:l,direction:a,content:i})},Ee=he((({value:a,textIndent:l,fontSize:o,textAlign:n,color:i,backgroundColor:t,fontWeight:c,textDecoration:r,fontStyle:d,paddingTop:m,paddingLeft:h,paddingRight:p,paddingBottom:u})=>{const{View:g}=s();return e(g,{className:"components-title",style:{paddingTop:m,paddingBottom:u},children:e(g,{style:{fontSize:o,textAlign:n,color:i,backgroundColor:t,fontWeight:c,textDecoration:r,fontStyle:d,paddingLeft:h,paddingRight:p,textIndent:l},children:a})})})),He=he((({defaultValue:a,type:l,borderRadius:o,outerShadow:n,paddingRight:i,paddingLeft:t,picGap:r,xGap:d,paddingTop:m,paddingBottom:h,selectImg:p})=>{const{View:u,Image:g}=s(),N=c(a,p);return e(u,{style:{paddingTop:m,paddingBottom:h,paddingLeft:d,paddingRight:d},children:e(u,{className:`cube-type${l}`,style:{paddingLeft:t,paddingRight:i,gap:r},children:N.map(((a,s)=>e(g,{className:"block "+(n?"outer-shadow":""),mode:1===l?"widthFix":"scaleToFill",src:a.imgUrl,style:{width:"100%",borderRadius:o+"px"},onClick:()=>{var e,l;return we(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)}},s)))})})})),Ye=he((({url:a,poster:l,autoplay:o,loop:n,paddingTop:i,paddingBottom:t,paddingLeft:c,paddingRight:r})=>{const{View:d}=s();return e(d,{style:{paddingTop:i,paddingBottom:t},children:e("video",{className:"components-video",src:a,poster:l,autoPlay:o,loop:n,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:c,paddingRight:r}})})})),Ue=he((({width:a,height:l,top:o,right:n,bottom:i,left:t,borderRadius:c})=>{const{View:r}=s();return e(r,{style:{width:a,height:l,borderRadius:c,top:o,left:t,right:n,bottom:i},className:"components-service"})})),Qe="data:image/png;base64,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",_e="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Ke=he((({value:l,iconShow:o,fontColor:n,backgroundColor:i,borderRadius:t,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:p=[],__pageConfig:u})=>{console.log(36,u);const{View:g,Image:N}=s(),C=pe((()=>Be("txt",...p)),[p]);return e(g,{onClick:()=>we("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxpositon":"",children:a(g,{className:"components-search",style:{backgroundColor:i,borderRadius:t?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"},children:[e(N,{src:Qe,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,{className:C,style:{color:n,display:"inline-block",fontSize:m},children:l})]})})})),$e=he((({value:l,iconShow:o,fontColor:n,backgroundColor:i,borderRadius:t,paddingLeft:c,paddingRight:r,sticky:d,fontsize:m,paddings:h,otherStyles:p=["mockWeight","mockItalic"]})=>{const{View:u,Image:g}=s(),N=pe((()=>Be("txt",...p)),[p]);return e(u,{onClick:()=>we("search"),style:{paddingTop:h,paddingBottom:h,paddingLeft:c,paddingRight:r},className:d?"boxPosition":"",children:a(u,{className:"components-search",style:{border:`1px solid ${i}`,borderRadius:t?"20px":"",height:"32px",lineHeight:"32px",width:"100%",display:"flex",textAlign:"center",backgroundColor:"#ffffff"},children:[a(u,{style:{width:"80%"},children:[e(g,{src:Qe,alt:"",style:{height:"16px",width:"16px",display:o?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(u,{className:N,style:{color:n,display:"inline-block",fontSize:m},children:l})]}),e(u,{className:["seachBtn",t?"btnBorderRadius":""].join(" "),style:{fontSize:m,backgroundColor:i,width:"20%",color:n},children:"搜索"})]})})})),qe=he((({item:a,position:l,direction:o})=>{var n,i;const{Image:t,View:c}=s();return e(t,{mode:"scaleToFill",src:a.imgUrl,style:{width:"100%",height:"100%",paddingBottom:"top"===l&&"vertical"===o?"30px":"",marginTop:"top"===l&&"horizontal"===o?"30px":""},onClick:we.bind(null,null===(n=a.link)||void 0===n?void 0:n.value,null===(i=a.link)||void 0===i?void 0:i.params)})})),Ze=he((({Position:o,className:n="",className1:i="",defaultValue:t=[],type:r,autoplay:d,autoplayInterval:m,direction:h,loop:p,paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C,selectImg:f,imgHeight:b,fontsize:y=16,textAlign:w="center",fontColor:x="#000000",backGroundColor:k="#ffffff"})=>{const v=pe((()=>Be({paddingbtm:"none"!==o,imgHeights:"bottom"===o&&"horizontal"===h}))),{SmoothSwiper:S,View:I}=s(),A=c(t,f||[]),B=a=>e(I,{className:i,style:{fontSize:y,zIndex:99,justifyContent:"left"===w?"flex-start":"center"===w?"center":"flex-end",color:x,backgroundColor:k},children:a.title});return e(I,{className:n,style:{paddingTop:u,paddingBottom:g,paddingLeft:N,paddingRight:C},children:e(S,{imgHeight:b,data:A,className:v,type:r,autoplay:d,autoplayInterval:m,direction:h,loop:p,interval:5e3,vertical:"vertical"===h,render:s=>a(l,{children:["top"===o||"bottom"===o?B(s):null,e(qe,{item:s,position:o,direction:h})]})})})})),Xe=he((({paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:n,defaultValue:i=[],type:t,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTB:g=0,paddingLR:N=0,fontsize:C=16,textAlign:f="center",fontColor:b="#000000",backGroundColor:y="#ffffff",otherStyles:w=[],ImgShadow:x=!1,Position:k="top"})=>{const{View:v}=s(),S=pe((()=>Be("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(v,{style:{padding:`${g}px ${N}px`},children:e(Ze,{Position:k,defaultValue:i,type:t,autoplay:c,autoplayInterval:r,direction:d,loop:m,selectImg:h,vertical:p,imgHeight:u,paddingTop:a,paddingBottom:l,paddingLeft:o,paddingRight:n,fontsize:C,textAlign:f,fontColor:b,backGroundColor:y,className:Be({"outer-shadow":x}),className1:S})})}));function Je(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 ea(e,a,l,o){return new(l||(l=Promise))((function(s,n){function i(e){try{c(o.next(e))}catch(e){n(e)}}function t(e){try{c(o.throw(e))}catch(e){n(e)}}function c(e){var a;e.done?s(e.value):(a=e.value,a instanceof l?a:new l((function(e){e(a)}))).then(i,t)}c((o=o.apply(e,a||[])).next())}))}"function"==typeof SuppressedError&&SuppressedError;const aa=()=>{const[e,a]=ue([]),l=pe((()=>xe()),[]);ge((()=>{ea(void 0,void 0,void 0,(function*(){const e=ke("service");if(e)a(o(e));else{const e=yield Ve();a(o(e))}}))}),[]);const o=e=>{let a=[];for(let l=0;l<e.length;l++){const o=e[l].ocsOcserviceReDomain;a.push(`${o.ocserviceName}: ${o.ocserviceRemark}`)}return a};return{servicePopup:()=>{if(!l)return;ve().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},la=(e=0)=>e?"¥"+e.toLocaleString("en-US",{minimumFractionDigits:2,maximumFractionDigits:2}):"¥ 0",oa=(e=0)=>e?e.toLocaleString("en-Us",{minimumFractionDigits:2}):"0",sa=({dataPic:o,goodsName:n,goodsCamount:i,pricesetNprice:t,skuName:c,children:r})=>{const{View:d,Image:m,SmoothView:h}=s(),p=la(t),u=pe((()=>i?`x ${i}`:""),[i]);return e(l,{children:a(d,{className:"card-item",children:[e(m,{src:o,alt:"",className:"card-item-img"}),a(d,{className:"card-item-info",children:[a(d,{className:"card-item-info-container",children:[e(h,{className:"card-item-info-container-title",children:n}),e(h,{className:"card-item-info-container-price",children:p})]}),a(d,{className:"card-item-info-sub",children:[e(h,{className:"sku",children:c}),e(h,{className:"count",children:u})]}),r]})]})})},{Button:na}=n,ia=a=>{var{dataState:o}=a,s=Je(a,["dataState"]);return e(l,{children:["2","-1"].includes(o+"")?null:e(ta,Object.assign({dataState:o},s))})},ta=a=>{var{dataState:l,contractAppraise:o,color:n,borderColor:i,btnColor:t,btnShape:c}=a,d=Je(a,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:m}=s();4!==l&&4!==l||1===o?4!==l&&4!==l||1!==o||(l=5):l=4;const{operateArray:h,handlerImpl:p}=r(Object.assign({dataState:l},d));return e(m,{className:"btnGroup",children:h.map(((a,l)=>e(na,{style:{color:n,borderColor:i,backgroundColor:t},className:Be({btn:!0,white:0===l,black:1===l}),onClick:()=>p(a.handler),shape:c,children:a.name},l)))})};const ca=(e,a,l,o)=>{const[s,n]=ue("");return ge((()=>{const s=setTimeout((()=>{const s=new Date(e),i=new Date,t=s.getTime()-(i.getTime()-3600);t<999&&t>0?l(o).then((()=>{a()})):t>1e3&&n(((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}`})(t,"后将取消订单,请尽快支付"))}),1e3);return()=>{clearTimeout(s)}}),[s]),{resultTime:s}},ra=(e,a)=>pe((()=>{const{$_pageQuery:l={}}=e,o=l[a];return e[o]}),[e]),{Button:da}=n,ma=({contractPaydate:a,init:o,countdownCancel:n,contractId:i})=>{const{View:t,SmoothView:c}=s(),{resultTime:r}=ca(a,o,n,i);return e(l,{children:r?e(t,{className:"card-item-info-countDown",children:e(c,{children:r})}):null})};function ha({contractBillcode:l,dataBmoney:o,dataBnum:n,goodsList:i,dataState:t,contractId:c,init:r,contractAppraise:m,borderRadius:h,orderSpacing:p,contractPaydate:u,countdownCancel:g}){const{View:N}=s(),C=d(t);return a(N,{className:"orderListItem",style:{borderRadius:h?8:"",marginTop:p,marginBottom:p},children:[a(N,{onClick:()=>we("orderDetail",{contractBillcode:l}),children:[a(N,{className:"topInfo",children:[a(N,{className:"orderNo",children:["订单号: ",l,e(da,{className:"copy",size:"mini",fill:"outline",children:"复制"})]}),e(N,{className:"status",children:C})]}),e(N,{className:"card-item-info-countDown"}),e(N,{className:"goodsItemWrap",children:i.map((a=>e(sa,Object.assign({},a,{dataState:t,children:1===t&&e(ma,{contractPaydate:u,init:r,countdownCancel:g,contractId:c})}),a.contractGoodsId)))})]}),a(N,{className:"allInfo",children:[a(N,{className:"totalNum",children:["共",n,"件商品"]}),a(N,{className:"totalPrice",children:["合计 ",la(o)]})]}),e(ia,{init:r,contractId:c,contractBillcode:l,dataState:t,contractAppraise:m})]})}const pa=a=>{var{bottomHeight:l,children:o,id:n,heightWrap:i}=a,t=Je(a,["bottomHeight","children","id","heightWrap"]);const c=pe((()=>xe()),[]),r=function(e){const[a,l]=ue(0);return ge((()=>{if(!xe()||!e)return;const a=ve().createSelectorQuery();setTimeout((()=>{a.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:a}=e;l(a)}})).exec()}))})),a}(n),d=function(e=""){return pe((()=>{if(!xe())return 0;const a=ve(),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:m}=s(),h=pe((()=>{if(!c)return n?{height:"100%"}:{maxHeight:"50vh",overflow:"auto"};if(n){return{height:`calc(${ve().getSystemInfoSync().windowHeight+"px"} - ${r+d}px)`}}return{maxHeight:"50vh",overflow:"auto"}}),[r,d]);return e(m,Object.assign({},t,{style:Object.assign(Object.assign({},h),{paddingBottom:n?"":d}),id:n,children:o}))},ua=()=>{const{View:a,Image:l}=s();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noOrder.png",className:"img",mode:"widthFix"})})};const ga=he((function({item:l,refreshNum:o,borderRadius:n,orderSpacing:i}){const{View:t,ScrollView:c,Loading:r}=s(),{onScroll:d,data:h,loading:p,init:u,countdownCancel:g}=m(l,o);return e(t,{className:"orderListItemWrap",children:e(pa,{id:"orderListItemWrap",children:e(c,{onScroll:d,children:h.length>0?a(t,{children:[h.map(((e,a)=>Ne(ha,Object.assign({init:u},e,{key:a,borderRadius:n,orderSpacing:i,countdownCancel:g})))),e(t,{children:p?e(r,{}):null})]}):a(t,{className:"nodata_img",children:[e(ua,{}),e(t,{className:"nodata-btn",onClick:()=>we("goodList"),children:"前往购物"})]})})})})})),Na=he((({refreshNum:a=0,indexId:l=0,borderRadius:o=!1,orderSpacing:n=12})=>{const{View:i,Tabs:t}=s();return e(i,{className:"order-container",children:e(t,{defaultIndex:+l,tabs:h,render:l=>e(i,{className:"orderList",children:e(ga,{item:l,orderSpacing:n,refreshNum:a,borderRadius:o})})})})})),Ca=({className:a="iconfont",prefixClass:l="icon",onClick:o=(()=>{}),style:n={fontSize:16,color:"#444",fontWeight:900},value:i})=>{const{Text:t}=s();return e(t,{onClick:o,className:Be(l,i?`${l}-${i}`:"",a),style:n})},{Button:fa}=n,ba=he((({copyContent:a=""})=>{const[l,o]=ue(!1),s=pe((()=>xe()),[]);return e(fa,{className:"copy",size:"mini",fill:"outline",onClick:()=>{if(s){const e=ve();if(""===a)return void e.showToast({title:"复制内容为空",icon:"error"});e.setClipboardData({data:a,success:()=>{e.showToast({title:"复制成功",icon:"success"}),o(!0)},fail:()=>{e.showToast({title:"复制失败",icon:"error"})}})}},children:l?"已复制":"复制"})})),ya=he((({contractBillcode:o,expressWay:n,backgroundColor:i,color:t,paddingBottom:c,paddingTop:r,borderColor:m,btnColor:h,btnShape:u})=>{const{View:g,Text:N}=s(),{orderDetail:C,handleApplyBtn:f}=p(o||""),b=e=>Le(e).format("YYYY-MM-DD HH:mm:ss");return a(g,{className:"orderDetail",children:[e(g,{style:{backgroundColor:i},className:"orderDetailTopTitle",children:a(g,{className:"orderDetailTopTitleContent",children:[a(g,{className:"icon_text",children:["待收货"===d(C.dataState)?e(Ca,{value:"daishouhuo",style:{color:"#ffffff",marginRight:"10px",fontSize:"20px"}}):"",e(N,{className:"title",children:d(C.dataState)})]}),e(g,{className:"subTitleWrap",children:b(C.gmtCreate)})]})}),e(g,{className:"orderDetailContent",style:{paddingTop:r+"px",paddingBottom:c+"px"},children:a(g,{style:{position:"relative",top:-26},children:[a(g,{className:"addressInfo",children:[e(g,{className:"lPart",children:e(Ca,{value:"dizhi"})}),a(g,{className:"mPart",children:[a(g,{className:"personInfo",children:[e(N,{className:"personName",children: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(sa,Object.assign({},o),o.contractGoodsId),Number(C.dataState)>1&&Number(C.dataState)<5?e(g,{className:"orderBtn",onClick:f.bind(null,o,C.dataState),children:"申请退款"}):""]}))),a(g,{className:"priceInfo",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]})]})]})]}),n&&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,{className:"label",children:"订单信息"})}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"订单编号"}),a(g,{className:"context_copy",children:[e(g,{className:"name",children:C.contractBillcode}),e(ba,{copyContent:C.contractBillcode})]})]}),a(g,{className:"orderInfoItem",children:[e(g,{className:"label",children:"下单时间"}),e(g,{className:"name",children:b(C.gmtCreate)})]})]}),e(g,{className:"btnGroupFooter",children:e(ia,{borderColor:m,btnColor:h,btnShape:u,color:t,contractBillcode:C.contractBillcode,contractId:C.contractId,dataState:C.dataState})})]})})]})})),wa=he((({navList:o,activeKey:n,cell:i=4})=>{const{View:t,Text:c,Image:r}=s();return e(l,{children:o.map((l=>e(t,{className:["content",n===`${l.goodsClassCode}`?" active":""].join(""),children:((null==l?void 0:l.childList)||[]).map((l=>a(t,{className:"classifyFloor",children:["0"===l.goodsClassHide?a(t,{className:"titleWrap",children:[e(c,{className:"title",children:l.goodsClassName}),e(c,{className:"line"})]}):"",e(t,{className:`container container_columns${i}`,style:{marginTop:"0"===l.goodsClassHide?"":"20px"},children:((null==l?void 0:l.childList)||[]).map((({classtreeCode:l,goodsClassCode:o,goodsClassLogo:s,goodsClassName:n})=>a(t,{onClick:()=>we("goodList",{classtreeCode:l}),className:"classifyFloorGoodsItem",children:[e(r,{src:s,className:"logo"}),e(t,{className:"title",children:n})]},o)))})]},l.goodsClassCode)))},l.goodsClassCode)))})})),{SideBar:xa}=n,ka=he((({cell:l,color:o,activeTitle:n,paddingTop:i,paddingBottom:t})=>{const{View:c,ScrollView:r}=s(),{activeKey:d,setActiveKey:m,navList:h,flag:p}=u();return e(c,{children:e(pa,{id:"goodsClassify",children:e(r,{children:a(c,{style:{height:p?"100%":"667px",paddingTop:i,paddingBottom:t},className:"goodsClassifyContainer",children:[e(c,{className:"side",children:e(xa,{activeKey:d,onChange:m,style:{"--width":"90px","--background-color":"#f5f5f5"},children:h.map((a=>e(xa.Item,{title:a.goodsClassName,className:0===n?"typeBlock":"typeNoBlock",style:{color:a.goodsClassCode===d?o:"#000"}},a.goodsClassCode)))})}),e(c,{className:"main",children:e(wa,{navList:h,activeKey:d,cell:l})})]})})})})})),va=Ce(null),Sa=he((()=>{const{navList:l,activeKey:o,setActiveKey:n,setFCoe:t,setSCoe:c,selectFontColor:r}=fe(va),{View:d,ScrollView:m}=s(),[h,p]=ue(!1),u=(e,a)=>{n.bind(null,e)(),t(`${a}`),c("0"),h&&p(!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:()=>u(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?r:"#000",borderColor:o===`${a.goodsClassCode}`?r:"#000"},children:a.goodsClassName},l)))}),e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!0),children:e(i,{value:"paixusort-jiang"})})]}),h?a(d,{className:"goodsClassifyOne-tipWrap",children:[e(d,{className:"goodsClassifyOne-tipWrap-handleBar",children:e(d,{className:"goodsClassifyOne-icon",onClick:()=>p(!1),children:e(i,{value:"paixusort-sheng"})})}),e(pa,{children:e(m,{children:e(d,{className:"goodsClassifyOne-tipWrapItemWrap",children:l.map(((a,l)=>e(d,{class:["goodsClassifyOne-tipWrapItem"].join(""),onClick:()=>u(a.goodsClassCode,l),style:{color:o===`${a.goodsClassCode}`?r:"#000",borderColor:o===`${a.goodsClassCode}`?r:"#000"},children:a.goodsClassName},l)))})})})]}):null]})})),Ia=he((({thirdList:l})=>{const{View:o,Image:n}=s(),{picShadow:i,layout:t}=fe(va);return e(o,{className:"goodsClassifyOneFloor",style:{gridTemplateColumns:`repeat(${t}, 1fr)`},children:l.map(((l,s)=>a(o,{className:"goodsClassifyOneFloorItem",onClick:()=>we("goodList",{classtreeCode:l.classtreeCode}),children:[e(n,{src:l.goodsClassLogo,className:"pic",style:{boxShadow:i?"#DDDDDD 0px 0px 10px":""}}),e(o,{className:"title",children:l.goodsClassName})]},s)))})})),Aa=he((()=>{const{navList:l,fCoe:o,sCoe:n,setSCoe:i,selectFontColor:t,selectBlcShow:c,selectBlcStyle:r}=fe(va),d=pe((()=>xe()),[]),{secondList:m,thirdList:h}=(({navList:e,fCoe:a,sCoe:l})=>{const o=pe((()=>{var l;return(null===(l=e[a])||void 0===l?void 0:l.childList)||[]}),[a,e]),s=pe((()=>{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:n}),{View:p,ScrollView:u,SideBar:g}=s();return e(p,{children:e(pa,{id:"goodsClassifyOneContent",children:e(u,{children:a(p,{className:"goodsClassifyOneContent",style:{height:d?"100%":"667px"},children:[e(g,{activeKey:n,onChange:i,children:m.map(((a,l)=>e(g.Item,{title:a.goodsClassName,className:[c?"":"goodsClassifyOneFloorNoBlc",1===r?"":"goodsClassifyOneFloorNoRound"].join(" "),style:{"adm-side-bar-item-active":t,"--adm-color-primary":t}},l)))}),e(Ia,{thirdList:h})]})})})})})),Ba=he((({selectFontColor:l,selectBlcColor:o,selectBlcShow:n,selectBlc:i,selectBlcStyle:t,picShadow:c,layout:r})=>{const{View:d}=s(),{navList:m,activeKey:h,setActiveKey:p}=u(),[g,N]=ue("0"),[C,f]=ue("0");return e(va.Provider,{value:{fCoe:g,setFCoe:N,sCoe:C,setSCoe:f,navList:m,activeKey:h,setActiveKey:p,selectFontColor:l,selectBlcColor:o,selectBlcShow:n,selectBlc:i,selectBlcStyle:t,picShadow:c,layout:r},children:a(d,{className:"goodsClassifyOne",children:[e(Sa,{}),e(Aa,{})]})})})),Va=he((({childList:l,layout:o,picShadow:n,style:i})=>{const{View:t,Image:c}=s();return e(t,{className:"level3Arr",style:Object.assign({gridTemplateColumns:`repeat(${o}, 1fr)`},i),children:l.map(((l,o)=>a(t,{className:"level3ArrItem",onClick:()=>we("goodList",{classtreeCode:l.classtreeCode}),children:[e(c,{src:l.goodsClassLogo,className:"logo",style:{boxShadow:n?"#DDDDDD 0px 0px 10px":""}}),e(t,{className:"title",children:l.goodsClassName})]},o)))})})),Ta=he((({navList:l,activeKey:o,layout:n,picShadow:i})=>{var t;const[c,r]=ue(0);ge((()=>{r(l.findIndex(d))}),[o,c]);const d=e=>e.goodsClassCode===o,{View:m,Image:h}=s();return a(m,{className:"goodsClassifyTwoContent",children:[e(h,{className:"firstLevelImg",src:Pe(l[c],"goodsClassLogo"),mode:"widthFix"}),null===(t=Pe(l[c],"childList"))||void 0===t?void 0:t.map(((l,o)=>a(m,{children:["0"===l.goodsClassHide?e(m,{className:"level2Title",children:l.goodsClassName}):"",e(Va,{childList:l.childList,layout:n,picShadow:i,style:{marginTop:"0"===l.goodsClassHide?"":"30px"}})]},o)))]})})),{SideBar:Da}=n,La=he((({selectFontColor:l,selectBlcShow:o,selectBlcColor:n,selectBlcStyle:i,layout:t,picShadow:c})=>{const{View:r}=s(),{activeKey:d,setActiveKey:m,navList:h,flag:p}=u();return e(r,{className:"goodsClassifyTwo",children:e(pa,{id:"goodsClassifyTwo",children:a(r,{className:"goodsClassifyTwoWrap",style:{height:p?"100%":"667px"},children:[e(r,{className:"side",children:e(Da,{activeKey:d,onChange:m,style:{"--width":"88px","--background-color":"#f5f5f5"},children:h.map((a=>e(Da.Item,{title:a.goodsClassName,className:[o?"":"goodsClassifyTwoFloorNoBlc",1===i?"":"goodsClassifyTwoFloorNoRound"].join(" "),style:{"--adm-color-primary":l}},a.goodsClassCode)))})}),e(r,{className:"main",children:e(Ta,{navList:h,activeKey:d,layout:t,picShadow:c})})]})})})})),Pa=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],Ra=({setParams:l,activeColor:o})=>{const{View:n}=s(),[i,t]=ue(0),[c,r]=ue(Pa);return e(n,{className:"sortWrap",children:c.map((({order:s,sortField:c,name:d},m)=>a(n,{className:"sortItem "+(i===m?"active":""),onClick:()=>((e,a,o)=>{t(a),o&&r((e=>(e[a].order="asc"===o?"desc":"asc",[...e]))),l({sortField:e,order:o})})(c,m,s),style:{color:i===m?o:""},children:[d,s&&a(n,{className:"orderIcons",children:[e(Ca,{style:{color:i===m&&"desc"!==s?o:"#444",fontSize:14,width:8,height:8},value:"shengxu1"}),e(Ca,{style:{color:i===m&&"desc"===s?o:"#444",fontSize:14,width:8,height:8},value:"jiangxu1"})]})]},m)))})},za=he((({classtreeCode:l="",searchParam:o="",activeColor:n="#e54e29",goodsName:i=!0,goodsPrice:t=!0,lineationGoods:c=!0,salesQuantity:r=!0,goodsCar:d=!0,borderRadius:m=!0,goodsColor:h=!0,goodsGap:p=10,paddingLR:u=0,__link__:C={}})=>{const{View:f,Loading:b,SmoothView:y,Image:w,ScrollView:x,IconMobile:k}=s(),[v,S]=ue({}),{loading:I,getData:A,list:B}=g(l,o,v),V=pe((()=>Be("textBox",{btm:!t&&!c})),[t,c]),T=pe((()=>Be("name",{boxNone:!i})),[i]),D=pe((()=>Be("middle_margin",{boxNone:!r})),[r]),L=pe((()=>Be("goodDetail",{boxNone:!t&&!c&&!d})),[t,c,d]),P=pe((()=>Be({detailContent:!(T.includes("boxNone")&&D.includes("boxNone")&&L.includes("boxNone"))})),[T,D,L]);return a(f,{className:"goodsList",children:[e(f,{className:"top-info",children:e(Ra,{setParams:S,activeColor:n})}),e(f,{className:"listWrap",style:{padding:` 0px ${u}px`},children:e(pa,{id:"listWrap",children:a(x,{onScroll:()=>A(v),children:[e(f,{className:"list",style:{gap:p},children:B.map((l=>a(f,{onClick:()=>N(C,{skuCode:l.skuCode}),className:"listItem",style:{borderRadius:m?"8px":"",boxShadow:h?"4px 4px 4px #969292":""},children:[e(w,{src:l.dataPic,className:"img"}),a(f,{className:P,children:[e(y,{className:T,children:l.goodsName}),a(f,{className:D,children:["已售:",l.goodsNum]}),a(f,{className:L,children:[a(f,{className:V,children:[e(y,{className:"price",style:{display:t?"block":"none"},children:la(l.pricesetNprice)})," ",e(f,{className:"decoration",style:{display:c?"block":"none"},children:la(l.pricesetMakeprice)})]}),e(f,{style:{display:d?"block":"none"},children:e(k,{style:{fontSize:20,color:"#f00"},value:"cart"})})]})]})]},l.skuCode)))}),I?e(b,{}):null]})})})]})})),Ma=he((({placeholder:l,placeholderText:o,history:n,historyText:i,paddingBottom:t,paddingTop:c})=>{const r=pe((()=>xe()),[]),{View:d,Text:m,Input:h}=s(),[p,u]=ue((()=>ke("history")||[])),g=Se((e=>ea(void 0,void 0,void 0,(function*(){r&&(u((a=>{if(Re(e.detail.value))return a;const l=a.concat(e.detail.value);return Ae("history",l),l})),N(e.detail.value))})))),N=Se((e=>{we("goodList",{searchParam:e})}));return a(d,{className:"searchPage",style:{paddingTop:c,paddingBottom:t},children:[a(d,{className:"search-title",children:[e("img",{src:Qe,alt:""}),e(h,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:g},l?{placeholder:o}:{})),e(m,{className:"btn",onClick:()=>Ie(),children:"取消"})]}),n?a(d,{className:"historyWrap",children:[a(d,{className:"title",children:[a(d,{className:"label",children:[e(d,{className:"icon"}),i]}),e(Ca,{onClick:()=>ea(void 0,void 0,void 0,(function*(){(yield ve()).removeStorageSync("history"),u([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]}),e(d,{className:"content",children:p.map(((a,l)=>e(d,{onClick:()=>N(a),className:"historyItem",children:a},l)))})]}):null]})})),Oa=({starColor:l="#FF0934",starSize:o="12px",itemData:i})=>{const{View:t,Text:c,Image:r}=s(),{Rate:d}=n;return a(t,{className:"evaluateItem",children:[a(t,{className:"userInfo",children:[e(r,{src:i.avatar,className:"avatar"}),a(t,{className:"userNameWrap",children:[e(c,{className:"userName",children:i.userName}),e(d,{readOnly:!0,value:i.rate,style:{"--star-size":o,"--active-color":l}})]})]}),a(t,{className:"size",children:["规格: ",i.size]}),e(t,{className:"content",children:i.evaluate}),e(t,{className:"img-group",children:i.imgUrls.map(((a,l)=>e(r,{src:a.imgUrl,className:"img"},l)))})]})},Fa=[{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"}]}],ja=he((()=>{const[o,n]=ue("1"),{View:i}=s(),t=be([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),c=e=>{n(e)};return a(l,{children:[e(i,{className:"evaluateListTab",children:t.current.map((e=>a(i,{className:"evaluateListTabItem "+(e.index===o?"active":""),"data-index":e.index,onClick:c.bind(null,e.index),children:[e.label," ",e.num]},e.index)))}),e(i,{className:"evaluateListContent",children:Fa.map(((a,l)=>e(Oa,{itemData:a},l)))})]})})),Wa=({onChange:a,readOnly:l=!1,size:o=22,count:n})=>{const{View:i}=s(),[t,c]=ue([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);ge((()=>{if(n){const e=[...t];for(let a=0;a<e.length;a++)e[a].icon=a>n-1?"star":"star-fill";c(e)}}),[]);const r=e=>{if(!l){for(let a=0;a<t.length;a++)t[a].icon=a>e?"star":"star-fill";c([...t]),a(e+1)}};return e(i,{children:t.map(((a,l)=>e(Ca,{onClick:r.bind(null,l),value:a.icon,style:{color:"#EC6C5C",fontSize:o}},l)))})},Ga=he((({code:l,borderRadius:o,borderColor:i,color:t,buttonColor:c,buttonBorderRadius:r,paddingTop:d,paddingBottom:m})=>{const{orderInfo:h,changeStar:p,Submit:u,changeContent:g}=C(l),{Button:N}=n,{View:f,Image:b,TextArea:y,Textarea:w}=s(),x=y||w,k=be("宝贝满足你吗?分享一下它吧");return a(f,{className:"evaluateDetail",style:{paddingTop:d,paddingBottom:m},children:[h.map(((l,s)=>a(ye,{children:[a(f,{className:"topInfo",children:[a(f,{className:"lPart",children:[e(b,{src: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:a(f,{className:"price",children:["¥ ",l.pricesetNprice]})})]}),a(f,{className:"rate",children:[e(f,{className:"title",children:"商品评价"}),e(Wa,{onChange:p.bind(null,s)})]}),e(f,{className:"evaluate",children:e(x,{className:"content",placeholder:k.current,rows:5,maxLength:30,onInput:g.bind(null,s)})})]},s))),e(N,{style:{border:`1px solid ${i}`,color:t,backgroundColor:c,borderRadius:1===r?"20px":"0px"},className:"btn",onClick:u,children:"提交"})]})})),Ea=({code:l,defaultValue:o})=>{const{info:n,detail:i,stateObj:t}=f(l),{View:c}=s(),r=Pe(n,"packageList[0].contractGoodsList[0].dataPic",o.dataPic),d=Pe(n,"packageList.length",o.count),m=Pe(n,"packageList[0].expressName",o.expressName),h=Pe(n,"packageList[0].packageBillno",o.packageBillno),p=Pe(i,"state",o.result)||"-1";return a(c,{className:"expressInfoTop",children:[e(c,{className:"goodsImg",style:{backgroundImage:`url(${r})`},children:a(c,{className:"tip",children:["共 ",d," 件商品"]})}),a(c,{className:"list",children:[a(c,{className:"listItem",children:["物流状态:",p?t[p]:"暂时无法获取物流状态"]}),a(c,{className:"listItem",children:["快递公司:",m]}),a(c,{className:"listItem",children:["快递单号:",h]})]})]})},Ha=({code:l,defaultValue:o})=>{const{detail:n}=f(l),{View:i}=s(),t=Pe(n,"message",o.message),c=Pe(n,"data",o.list);return e(i,{className:"expressInfoStep",children:"ok"===t?c.map(((l,o)=>a(i,{className:"step",children:[e(i,{className:"time",children:l.time}),e(i,{children:l.context})]},o))):e(i,{className:"noInfo",children:t})})},Ya=he((({code:l,defaultValue:o})=>{const{View:n}=s();return a(n,{className:"expressInfo",children:[e(Ea,{code:l,defaultValue:o}),e(Ha,{code:l,defaultValue:o})]})})),Ua=[{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"请填写收货人姓名"},label:"收货人",name:"addressMember",rules:[{required:!0,message:"收货人姓名不能为空"}]},{type:"input",props:{type:"number",onlyShowClearWhenFocus:!0,placeholder:"请填写收货人手机号码"},label:"手机号码",name:"addressPhone",rules:[{required:!0,message:"收货人手机号码不能为空"},{validator:(e,a)=>new Promise(((e,l)=>{!/^1[3456789]\d{9}$/.test(a)&&a?l("请输入正确手机号"):e("")}))}]},{type:"cascader",label:"所在地区",name:"area",rules:[{required:!0,message:"所在地区不能为空"}]},{type:"input",props:{onlyShowClearWhenFocus:!0,placeholder:"街道/楼牌号等"},label:"详细地址",name:"addressDetail",rules:[{required:!0,message:"收货人详细地址不能为空"}]},{type:"switch",props:{},label:"设置默认地址",name:"addressDefault"}],Qa=he((()=>{const{View:a,Skeleton:o}=s(),n=be(new Array(5).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:n.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));We.forEach((e=>{const a=je.filter((a=>a.code===e.cityCode))[0];a&&(a.children=a.children||[],a.children.push({label:e.name,value:e.code}))})),je.forEach((e=>{const a=Fe.filter((a=>a.code===e.provinceCode))[0];a&&(a.children=a.children||[],a.children.push({label:e.name,value:e.code+"00",children:e.children}))}));const _a=Fe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Ka=({form:l,handleArea:o})=>{const{View:i}=s(),{CascadePicker:t}=n,c=l.getFieldValue("area"),[r,d]=ue(!1),m=e=>{const a={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},l={pIndex:0,cIndex:0};for(let o=0;o<_a.length;o++)if(_a[o].value===e[0]){a.provinceName=_a[o].label,l.pIndex=o;break}for(let o=0;o<_a[l.pIndex].children.length;o++)if(_a[l.pIndex].children[o].value===e[1]){a.cityName=_a[l.pIndex].children[o].label,l.cIndex=o;break}for(let o=0;o<_a[l.pIndex].children[l.cIndex].children.length;o++)if(_a[l.pIndex].children[l.cIndex].children[o].value===e[2]){a.areaName=_a[l.pIndex].children[l.cIndex].children[o].label;break}return a};return a(i,{children:[e(i,{className:"txt",onClick:()=>d(!0),children:(null==c?void 0:c.provinceName)?`${c.provinceName}—${c.cityName}-${c.areaName}`:"请选择所在地区"}),e(t,{onConfirm:e=>{o("h5",m(e))},options:_a,visible:r,onClose:()=>d(!1)})]})},$a=({checked:a,onChange:l})=>{const{View:o}=s(),{Switch:i}=n;return e(o,{children:e(i,{checked:a,onChange:l,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},qa=he((({addressId:a,btnShape:o,btnColor:i,borderColor:t,color:c,paddingTop:r,paddingBottom:d})=>{const{View:m,Switch:h}=s(),{Form:p,Button:u,Input:g}=n,N=process.env.TARO_ENV,C=pe((()=>xe()),[]),{skullShow:f,form:y,area:w,defaultAddress:x,handleArea:k,handleDefaultAddress:v,handleFinish:S}=b(a,p,C);return e(m,{className:"addressDetail",style:{height:C?"100%":"667px",paddingBottom:d+"px",paddingTop:r+"px"},children:f?e(Qa,{}):e(p,{form:y,layout:"horizontal",mode:"card",onFinish:S,footer:e(u,{style:{color:c,backgroundColor:i,borderColor:t},shape:o,block:!0,type:"submit",size:"large",children:"提交"}),children:Ua.map(((a,o)=>e(p.Item,{label:a.label,name:a.name,rules:a.rules,trigger:"cascader"===a.type?"onConfirm":"onChange",arrow:!1,children:"input"===a.type?e(g,Object.assign({},a.props)):"switch"===a.type?"h5"===N?e($a,{onChange:v.bind(null,"h5"),checked:"1"===x}):e(h,{color:"#000",onChange:v.bind(null,"weapp"),checked:"1"===x}):"cascader"===a.type?e(l,{children:C?"h5"===N?e(Ka,{form:y,handleArea:k}):e("picker",{mode:"region",onChange:k.bind(null,"weapp"),value:w,children:e(m,{className:"areaWrap",children:w.provinceName?`${w.provinceName}—${w.cityName}-${w.areaName}`:"请选择所在地区"})}):"请选择所在地区"}):void 0},o)))})})})),Za=({dataObj:l})=>{const{View:o,Text:n}=s();return a(o,{className:"placeOrderResultWrap",children:[a(o,{className:"placeOrderResultItem",children:[e(n,{className:"label",children:"订单号:"}),e(n,{className:"value",children:l.contractBillcode})]}),a(o,{className:"placeOrderResultItem",children:[e(n,{className:"label",children:"支付方式:"}),e(n,{className:"value",children:"在线支付"})]}),a(o,{className:"placeOrderResultItem",children:[e(n,{className:"label",children:"支付金额:"}),e(n,{className:"value",children:la(l.dataBmoney)})]})]})},Xa=he((({code:l,borderRadius:o,leftColor:n,leftButtonColor:i,leftBorderColor:t,leftBorderRadius:c,rightValue:r,rightAddHref:d,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:u,paddingTop:g,paddingBottom:N})=>{const{View:C,Text:f,IconMobile:b,WrapLoading:w}=s(),{result:x,loading:k}=y(l||(ke("contractBillcode")||{}).contractBillcode);return e(C,{className:"placeOrderResult",style:{paddingTop:g,paddingBottom:N},children:e(w,{loading:k,children:a(C,{className:"placeOrderResultContent",style:{borderRadius:1===o?"20px":"0px"},children:[e(b,{value:x.icon,style:{fontSize:"35px",color:x.color}}),a(C,{className:"tips",children:[e(f,{className:"title",children:x.msg}),e(f,{className:"tip",children:x.info})]}),"success"===x.sysRecode&&e(Za,{dataObj:x.dataObj}),a(C,{className:"btnGroup",style:{marginTop:20},children:[e(C,{className:"btn black",onClick:()=>we(x.menuCode,{contractBillcode:x.dataObj.contractBillcode}),style:{color:n,backgroundColor:i,border:`1px solid ${t}`,borderRadius:1===c?"20px":"0px"},children:x.buttonText}),e(C,{style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===u?"20px":"0px"},onClick:()=>we(d.value),className:"btn white",children:r})]})]})})})}));he((()=>{const{View:a,Skeleton:o}=s(),n=be(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:n.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})}));const Ja=()=>{const{View:a,Image:l}=s();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"})})},el=({list:o,coe:n,config:i,backgroundColor:t,color:c})=>{const{View:r,Text:d}=s();return e(l,{children:o.length?o.map(((o,s)=>e(r,{className:`couponListItem\n ${i.current[n.current].styleName}`,style:{backgroundColor:t,color:c},children:a(r,{className:"coupon-content",children:[e(r,{className:"price",children:e(d,{className:"num",children:o.pbName})}),a(r,{className:"couponListItem-info",children:[e(d,{className:"title",children:o.discName}),a(d,{className:"date",children:["有效期至:",`${new Date(o.gmtModified).getFullYear()}-${new Date(o.gmtModified).getMonth()+1}-${new Date(o.gmtModified).getDate()}`]}),i.current[n.current].text?e(r,{className:"btn",children:i.current[n.current].text}):null,2===n.current?e(l,{children:e(r,{className:"round",children:"已失效"})}):null]})]})},s))):e(Ja,{})})},al=he((({backgroundColor:l,color:o,paddingTop:n,paddingBottom:i,queue:t})=>{const{View:c,Text:r,ScrollView:d}=s(),{coe:m,getList:h,config:p,switchTab:u,list:g=[]}=w();return a(c,{className:"couponList",children:[e(c,{className:"couponTab",children:p.current.map(((l,o)=>a(c,{className:"couponTabItem "+(m.current===o?"active":""),onClick:()=>u(o),children:[l.label,e(r,{className:"icon"})]},l.id)))}),e(pa,{id:"couponTab",bottomHeight:"60",children:e(d,{onScroll:h,children:e(c,{className:"couponListContent",style:{paddingTop:n,paddingBottom:i},children:e(el,{backgroundColor:l,color:o,queue:t,list:g,coe:m,config:p})})})})]})})),ll=({list:l,cartItemRadius:o})=>{const{View:n,Text:i,Image:t,Checkbox:c,NumStep:r,SmoothCheckbox:d,WrapLoading:m}=s(),{loading:h}=x(),{select:p,onChange:u,handleStep:g}=k();return e(m,{loading:h,children:e(d,{onChange:u,children:l.map(((l,s)=>e(n,{className:"cartItem",children:a(n,{className:"cartItem-box",style:{borderRadius:o},children:[e(n,{className:"checkBoxWrap",children:e(c,{checked:p.includes(l.shoppingGoodsId+""),value:l.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})}),e(t,{className:"img",src:l.dataPic,onClick:()=>we("goodDetail",{skuCode:l.skuCode})}),a(n,{className:"cartItem-info",children:[e(i,{className:"cartItem-goodsName",children:l.goodsName}),a(n,{className:"cartItem-size",children:["规格:",l.skuName," X ",l.goodsCamount]}),a(n,{className:"cartItem-handleWrap",children:[e(i,{className:"price",children:la(l.pricesetNprice)}),e(r,{count:l.goodsCamount,handleStep:g.bind(null,l.shoppingGoodsId,l.goodsCamount)})]})]})]})},s)))})})},ol=he((({url:l,title:o,subTitle:n,link:t,style:c})=>{const{View:r,Image:d}=s();return e(r,{className:"noData",style:c,children:a(r,{className:"content",children:[e(d,{className:"img",src:l}),e(r,{className:"title",children:o}),e(r,{className:"subTitle",children:n}),t?a(r,{className:"link",onClick:()=>we(t),children:["去看看",e(i,{value:"xiangyou1"})]}):null]})})})),sl=({refreshNum:o,btnStyle:n,borderColor:i,textColor:t,btnColor:c,btnShape:r,cartItemRadius:d,countBorderColor:m,countTextColor:h,countBtnColor:p,countBtnShape:u})=>{const g=pe((()=>xe()),[]),{View:N,SmoothView:C,Checkbox:f,SmoothCheckbox:b,ScrollView:y}=s(),[w,x]=ue(!0),{cartList:k,amount:v,selectAll:I,allCart:A,toOrderImpl:B,select:V,deleteCart:T,disMoney:D}=S(o),L=pe((()=>({border:n?`2px solid ${i}`:"",color:n?t:"",background:n?c:"",borderRadius:n?r:""})),[n,i,t,c,r]),P=pe((()=>({border:`1px solid ${m}`,color:h,background:p,borderRadius:u})),[m,h,p,u]);return e(N,{className:"cart",style:{height:g?"100%":"667px"},children:k.length?a(l,{children:[e(N,{className:"edit",children:e(N,{className:"btn",style:L,onClick:()=>x(!w),children:w?"编辑":"完成"})}),e(pa,{id:"editId",bottomHeight:"50",children:e(y,{children:e(ll,{list:k,cartItemRadius:d})})}),a(N,{className:"cart-dashboard",children:[e(N,{className:"choose",children:e(b,{onChange:I,children:e(f,{checked:A.current.length===V.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),w?a(N,{className:"check",children:[a(N,{className:"priceGroup",children:[a(N,{className:"discount",children:["优惠: ",e(C,{className:"data",children:la(D)})]}),a(N,{className:"all",children:["合计: ",e(C,{className:"data",children:la(v.amount)})]})]}),a(N,{onClick:B,className:"btn",style:P,children:["结算(",v.num,")"]})]}):e(N,{className:"del",children:e(N,{onClick:T,className:"btn",children:"删除"})})]})]}):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})},nl=he((a=>e(v,{children:e(sl,Object.assign({},a))}))),il=({dispatchPageStore:a,$_dataSource:l={cartIsEditor:!1},btnStyle:o,borderColor:n,textColor:i,btnColor:t,btnShape:c})=>{const{View:r}=s(),{cartIsEditor:d}=l,{editorImpl:m}=I(a),h=pe((()=>({border:o?`2px solid ${n}`:"",color:o?i:"",background:o?t:"",borderRadius:o?c:""})),[o,n,i,t,c]);return e(r,{className:"cart-edit",children:e(r,{className:"btn",onClick:m,style:h,children:d?"完成":"编辑"})})},tl=he((({promotionName:l,checked:o,promotionCode:n})=>{const{View:i,Radio:t}=s();return a(i,{className:"promotion-item",children:[e(i,{className:"content",children:l}),e(i,{className:"choose",children:e(t,{checked:o,value:n})})]})})),cl=({onChange:a,promotionCode:l,visible:o,setVisible:n,promotion:i})=>{const{Popup:t,ScrollView:c,View:r,SmoothRadio:d}=s();return e(t,{popupVisible:o,popupHandler:n,children:e(r,{className:"goodsDetail-coupon-popup",children:e(pa,{children:e(c,{children:e(d,{onChange:a,children:i.map(((e,a)=>Ne(tl,Object.assign({checked:e.promotionCode===l},e,{key:a}))))})})})})})},rl=he((({goodsName:o,skuName:n,goodsCamount:i,shoppingGoodsId:t,pricesetNprice:c,handleStep:r})=>{const{View:d,SmoothView:m,NumStep:h}=s();return e(l,{children:a(d,{className:"cartItem-info",children:[e(m,{className:"cartItem-goodsName",children:o}),a(d,{className:"cartItem-size",children:["规格:",n," X ",i]}),a(d,{className:"cartItem-handleWrap",children:[e(m,{className:"price",children:la(c)}),e(h,{count:i,handleStep:r.bind(null,t,i)})]})]})})})),dl=he((({dataPic:a,skuCode:l})=>{const{Image:o}=s();return e(o,{className:"img",src:a,onClick:()=>we("goodDetail",{skuCode:l})})})),ml=he((({shoppingGoodsId:a,select:l=[]})=>{const{View:o,Checkbox:n}=s();return e(o,{className:"checkBoxWrap",children:e(n,{checked:l.includes(a+""),value:a,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})})),hl=({promotion:o=[],updatePm:n,shoppingGoodsId:i,promotionCode:t})=>{const{View:c}=s(),[r,d]=ue(!1),m=pe((()=>((o||[]).find((e=>e.promotionCode===t))||{}).promotionName),[o]);return a(l,{children:[a(c,{className:"cart-promote-active",onClick:()=>d(!0),children:[m,e(c,{children:"修改"})]}),e(cl,{promotionCode:t,onChange:e=>{d(!1),n(i,e.detail.value)},promotion:o||[],visible:r,setVisible:d})]})},pl=he((l=>{var{item:o}=l,n=Je(l,["item"]);const{View:i}=s(),{select:t}=n;return a(i,{className:"cart-list-item",children:[e(ml,{select:t,shoppingGoodsId:o.shoppingGoodsId}),e(dl,{dataPic:o.dataPic,skuCode:o.skuCode}),e(rl,Object.assign({},o,n))]})})),ul=o=>{var{shoppingGoodsList:s=[]}=o,n=Je(o,["shoppingGoodsList"]);return e(l,{children:s.map(((l,o)=>a(ye,{children:[e(pl,Object.assign({},n,{item:l})),l.pmPromotionList?e(hl,{promotionCode:n.promotionCode,shoppingGoodsId:l.shoppingGoodsId,updatePm:n.updatePm,promotion:l.pmPromotionList}):null]},o)))})},gl=({disNextMsg:l,promotionName:o,pbName:n})=>{const{View:i,SmoothView:t}=s();return a(i,{className:"cart-dis-title",children:[e(t,{className:"tips",children:n}),e(t,{style:{padding:"0 10px"},children:o}),e(t,{children:l})]})},Nl=({refreshNum:o,dispatchPageStore:n,$_dataSource:i={cartSelect:[],cartUpdateCount:0},cartItemRadius:t="10px"})=>{const{SmoothCheckbox:c,WrapLoading:r,View:d}=s(),{cartSelect:m,cartUpdateCount:h}=i,{loading:p,cartList:u,onChange:g,handleStep:N,updatePm:C}=A(o,h,n);return e(r,{loading:p,children:e(d,{className:"cart-wrap",children:e(c,{onChange:g,children:u.length?e(l,{children:u.map((({memberCname:l,promotionCode:o,disNextMsg:s,promotionName:n,pbName:i,shoppingGoodsList:c},r)=>a(ye,{children:[e("h4",{children:l}),a(d,{className:"cart-bg",style:{borderRadius:t},children:[n?e(gl,{disNextMsg:s,promotionName:n,pbName:i}):null,e(ul,{promotionCode:o,handleStep:N,select:m,updatePm:C,shoppingGoodsList:c,cartItemRadius:t})]})]},r)))}):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:"index"})})})})},Cl=({$_dataSource:l={cartInfo:[],cartDisMoney:0,cartSelect:[],cartIsEditor:!1},dispatchPageStore:o,countBorderColor:n="#000000",countTextColor:i="#ffffff",countBtnColor:t="#000000",countBtnShape:c="20px"})=>{const{View:r,SmoothView:d,SmoothCheckbox:m,Checkbox:h}=s(),{cartInfo:p,cartDisMoney:u,cartSelect:g,cartIsEditor:N}=l,{toOrderImpl:C,deleteCart:f,selectAll:b,cartDetail:y}=B(g,p,o),w=pe((()=>({border:`1px solid ${n}`,color:i,background:t,borderRadius:c})),[n,i,t,c]);return a(r,{className:"cart-dashboard",children:[e(r,{className:"choose",children:e(m,{onChange:b,children:e(h,{checked:p.length===g.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"},children:"全选"})})}),N?e(r,{className:"del",children:e(r,{onClick:f,className:"btn",children:"删除"})}):a(r,{className:"check",children:[a(r,{className:"priceGroup",children:[a(r,{className:"discount",children:["优惠: ",e(d,{className:"data",children:la(u)})]}),a(r,{className:"all",children:["总计: ",e(d,{className:"data",children:la(y.amount)})]})]}),a(r,{onClick:C,className:"btn",style:w,children:["结算(",y.num,")"]})]})]})},fl=he((({avatarStyle:l,paddingTop:o,paddingBottom:n,userAvatar:i,userNickname:t,refreshNum:c})=>{const{View:r,Text:d,IconMobile:m,Image:h}=s(),{servicePopup:p}=aa(),[u,g]=ue(t),[N,C]=ue(i);return ge((()=>{g(ke("userNickname")),C(ke("userAvatar"))}),[c]),a(r,{className:"mineData",style:{paddingTop:`${o}px`,paddingBottom:`${n}px`},children:[a(r,{className:"topBoard",children:[e(m,{value:"bianzu",onClick:()=>we("/account/setting/index")}),e(m,{value:"kehufuwukefu",onClick:p})]}),a(r,{className:"userSetting",onClick:()=>we("/account/setting/index"),children:[a(r,{className:"lPart",children:[e(d,{className:"name",children:u||"用户名称"}),e(r,{className:"link",style:{paddingTop:"10px"},children:"编辑个人资料 >"})]}),e(h,{src:N,alt:"",className:"avatar",style:{borderRadius:l?"50%":"2px"}})]})]})})),bl=he((({title:l,columnList:o})=>{const{View:n,Text:i,Badge:t,Image:c}=s(),[r,d]=ue({});ge((()=>{ea(void 0,void 0,void 0,(function*(){try{const e=yield Te();d(e.dataObj)}catch(e){}}))}),[]);const m=(e,a)=>{4!==e.id?we("orderlist",{indexId:a+1}):we("afterSalesList")};return a(n,{className:"mineOrderEntry",children:[a(n,{className:"title",children:[e(n,{className:"name",children:l}),e(n,{className:"more",onClick:()=>we("orderlist"),children:"查看全部"})]}),e(n,{className:"content",children:o.map(((l,o)=>a(n,{onClick:m.bind(null,l,o),className:"contentItem",style:{display:l.show?"block":"none"},children:[e(t,Object.assign({},r[l.code]>0?{content:r[l.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12},children:e(c,{src:l.imgUrl,className:"icon"})})),e(i,{className:"subTitle",children:l.label})]},o)))})]})})),yl=he((({paddingTop:l,paddingBottom:o,columnList:n})=>{const{View:i,Text:t,IconMobile:c,Image:r}=s();return e(i,{className:"mineFunction",style:{paddingTop:l+"px",paddingBottom:o+"px"},children:n.map(((l,o)=>a(i,{className:"menuListItem",onClick:()=>we(l.link.value),children:[a(i,{className:"lPart",children:[e(r,{src:l.imgUrl,className:"icon"}),e(t,{className:"label",children:l.link.label})]}),e(c,{value:"xiangyou1"})]},o)))})})),wl=({footprintItem:l,edit:o})=>{const{View:n,Image:i,Checkbox:t,SmoothView:c}=s(),r=pe((()=>l.footprintOpnum?`${l.footprintOpnum}元`:""),[l.footprintOpnum]);return a(n,{className:"footprintItem",children:[o?e(n,{className:"lPart",children:e(t,{value:l.footprintCode})}):null,a(n,{className:"rPart",onClick:()=>we("goodDetail",{skuCode:l.footprintOpcode}),children:[e(i,{src:l.footprintOppic,className:"img"}),a(n,{className:"info",children:[e(c,{className:"title",children:l.footprintOpcont}),e(c,{className:"price",children:r})]})]})]})},xl=({item:o,edit:n})=>{const{View:i}=s();return a(i,{className:"footPrint",children:[e(l,{children:e(i,{className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"},children:null==o?void 0:o.title})}),o.option.map(((a,l)=>e(wl,{footprintItem:a,edit:n},l)))]})},kl=({footprintList:a,edit:o})=>{const s=pe((()=>{const e=a.map((e=>(e.gmtCreate=e.gmtCreate?Le(e.gmtCreate).format("YYYY-MM-DD"):e.gmtCreate,e))),l=ze(e,"gmtCreate");return Object.keys(l).map((e=>({title:e||"",option:l[e]})))}),[a]);return e(l,{children:s.map(((a,l)=>e(xl,{item:a,edit:o},l)))})},vl=he((()=>{const{View:l,ScrollView:o,SmoothCheckbox:n,Button:i,WrapLoading:t}=s(),{footprintList:c,edit:r,setEdit:d,getSelectItem:m,delItem:h,getData:p,loading:u}=V();return e(t,{loading:u,children:e(l,{className:"footprint",children:a(l,{className:"hasDate",children:[e(l,{className:"topBar",children:e(l,{className:"edit",onClick:()=>d(!r),children:r?"完成":"编辑"})}),e(pa,{id:"topBar1",children:a(o,{scrollY:!0,scrollWithAnimation:!0,refresherEnabled:!0,onScrollToLower:p,children:[e(n,{onChange:m,children:e(kl,{footprintList:c,edit:r})}),r?a(l,{className:"handleBar",children:[e(l,{className:"checkAll"}),e(i,{className:"btn",onClick:h,children:"删除"})]}):null]})})]})})})})),Sl=({item:l,edit:o,checked:n})=>{const{View:i,Image:t,Checkbox:c,SmoothView:r}=s();return a(i,{className:"collectItem",children:[o?e(c,{className:"lPart",value:l.collectCode,checked:n}):null,a(i,{className:"rPart",onClick:()=>we("goodDetail",{skuCode:l.collectOpcode}),children:[e(t,{src:l.collectOppic,className:"img"}),a(i,{className:"info",children:[e(r,{className:"title",children:l.collectOpcont}),a(r,{className:"price",children:[l.collectOpnum," 元"]})]})]})]})},Il=he((()=>{const{collectionList:l,edit:o,setEdit:n,getData:i,getSelectItem:t,delItem:c,init:r,checked:d,handleSelectAll:m,selectAllChecked:h}=T(),{View:p,ScrollView:u,SmoothCheckbox:g,Checkbox:N,Button:C,Image:f}=s();return e(p,{className:"collectList",children:0===l.length?e(p,{className:"noDate",children:e(f,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})}):a(p,{className:"hasDate",children:[e(p,{className:"topBar",children:e(p,{className:"edit",onClick:()=>n(!o),children:o?"完成":"编辑"})}),e(pa,{id:"topBar",children:a(u,{scrollY:!0,scrollWithAnimation:!0,onScrollToLower:i,onScrollToUpper:r,children:[e(g,{onChange:t,style:{height:"100%"},children:l.map((a=>e(Sl,{item:a,edit:o,checked:d},a.collectId)))}),o?a(p,{className:"handleBar",children:[e(p,{className:"checkAll",children:e(g,{onChange:m,children:e(N,{value:"1",checked:h,children:"全选"})})}),e(C,{className:"btn",onClick:c,children:"删除"})]}):null]})})]})})})),Al=he((({noticeId:l})=>{const{View:o,Image:n}=s(),{info:i}=D(l);return a(o,{className:"noticeDetailContainer",children:[e(o,{className:"title",children:i.noticeTitle}),i.noticePicurl?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl}):null,i.noticePicurl1?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl1}):null,i.noticePicurl2?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl2}):null,i.noticePicurl3?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl3}):null,e(o,{className:"content",children:i.noticeContext})]})})),Bl=he((({doclistId:l=2031})=>{const{info:o}=L(l),{View:n,ScrollView:i}=s(),{doclistContent:t,doclistTitle:c,doclistTitle4:r}=o;return e(n,{className:"articleDetail",children:e(pa,{id:"a",children:a(i,{children:[e(n,{className:"title",children:c}),e(n,{className:"author",children:r}),e("div",{className:"content",dangerouslySetInnerHTML:{__html:t||""}})]})})})})),Vl=({address:a})=>e(l,{children:Re(a)?e(Dl,{}):e(Tl,{address:a})}),Tl=({address:l})=>{const{View:o,SmoothView:n,IconMobile:i}=s(),t=pe((()=>{const{provinceName:e,addressDefault:a,cityName:o,areaName:s,addressDetail:n,addressMember:i="",addressPhone:t=""}=l;return{addressDefault:"1"===a,addressMember:i,addressPhone:t,address:e+o+s+n}}),[l]);return a(o,{className:"address-info",children:[e(i,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),a(o,{className:"left",children:[a(o,{className:"left-title",children:[e(n,{children:t.addressMember}),e(n,{className:"left-padding",children:t.addressPhone}),t.addressDefault?e(n,{className:"left-padding left-title-default",children:"默认"}):null]}),e(n,{className:"left-detail",children:t.address})]}),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]})},Dl=()=>{const{View:o,Text:n}=s();return a(l,{children:[a(o,{className:"group",children:[e(n,{className:"local"}),e(n,{className:"address",children:"选择收货地址"})]}),e(n,{className:"arrow"})]})},Ll=({refreshNum:a,skuId:l="",goodsNum:o=0,shoppingGoodsId:n=""})=>{const{View:i}=s(),t=P(a,o,l,n);return e(i,{className:"placeOrder-chooseAddress",onClick:()=>we("addressList"),children:e(Vl,{address:t})})},Pl=he((({couponStart:l,pbName:o,discName:n,promotionCode:i,promotionName:t,couponEnd:c,disable:r})=>{const{View:d,Text:m,Radio:h}=s();return e(d,{className:"couponItem",children:a(d,{className:"coupon-content",children:[a(d,{className:"price",children:[e(d,{className:"symbol",children:o}),e(d,{className:"num",children:n})]}),a(d,{className:"info",children:[e(m,{className:"title",children:t}),a(m,{className:"date",children:[Le(l).format("YYYY-MM-DD")," - ",Le(c).format("YYYY-MM-DD")]})]}),e(d,r?{className:"coupon-pick-default",children:"不能用"}:{className:"choose",children:e(h,{disabled:r,value:i})})]})})})),Rl=({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t})=>{const{View:c,Text:r,Popup:d,SmoothRadio:m,ScrollView:h}=s(),{amount:p,shoppingGoodsList:u}=R({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t}),{coupon:g,visible:N,setVisible:C,selectCoupon:f,onChange:b}=z(u);return a(l,{children:[a(c,{className:"coupon-select",onClick:()=>C(0!==g.length),children:[e(r,{className:"label",children:"使用优惠"}),a(c,{className:"info",children:[e(r,{className:"label",children:f?`已选择: ${f}`:0===g.length?"暂无可用优惠券":"请选择优惠券"}),0===g.length?null:e("img",{src:_e,alt:"",className:"icon"})]})]}),e(d,{popupVisible:N,popupHandler:C,children:e(c,{className:"goodsDetail-coupon-popup",children:e(pa,{children:e(h,{children:e(m,{onChange:b,children:g.map(((e,a)=>Ne(Pl,Object.assign({disable:p<e.discAmount},e,{key:a}))))})})})})})]})},zl=({shippingMethod:l=1})=>{const{View:o}=s();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:"快递"})]})})},Ml=({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:n})=>{const{View:i}=s(),{list:t}=R({refreshNum:a,goodsNum:l,skuId:o,shoppingGoodsId:n});return e(i,{className:"place-order-goods",children:t.map(((a,l)=>e(sa,Object.assign({},a),l)))})},Ol=({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t})=>{const{SmoothView:c,View:r}=s(),{payState:d,amount:m,disCount:h,freight:p}=R({refreshNum:o,goodsNum:n,skuId:i,shoppingGoodsId:t}),{shoppingCountPrice:u,comDisMoney:g}=M(d);return e(l,{children:a(r,{className:"price placeOrder-blcWrap",children:[e(r,{className:"title",children:"价格明细"}),a(r,{className:"express placeOrder-blcItem",children:[e(r,{className:"label",children:"商品总金额"}),e(c,{className:"value",children:la(u)})]}),a(r,{className:"coupon placeOrder-blcItem",children:[e(r,{className:"label",children:"优惠金额"}),e(c,{className:"value",children:la(g+h)})]}),a(r,{className:"express placeOrder-blcItem",children:[e(r,{className:"label",children:"运费"}),e(c,{className:"value",children:la(p)})]}),a(r,{className:"all placeOrder-blcItem",children:[e(r,{className:"label",children:"总计"}),e(c,{className:"value",style:{color:"#000"},children:la(m-h+p)})]})]})})},Fl=({color:l,buttonColor:o,borderColor:n,borderRadius:i,refreshNum:t,goodsNum:c,skuId:r,shoppingGoodsId:d})=>{const{View:m,Text:h,WrapLoading:p}=s(),{amount:u,list:g,freight:N,disCount:C,payState:f,orderStoreInfo:b,ocContractSettlList:y}=R({refreshNum:t,goodsNum:c,skuId:r,shoppingGoodsId:d}),{savePayPrice:w,loading:x}=O({ocContractSettlList:y,payState:f,list:g},r,c,b,d);return a(m,{className:"placeOrderFooter",children:[a(h,{className:"price",children:["合计: ",la(u-C+N)]}),e(p,{loading:x,children:e(m,{className:"btn",onClick:w,style:{color:`${l}`,border:`1px solid ${n}`,backgroundColor:`${o}`,borderRadius:1===i?"40px":"0px"},children:"生成订单"})})]})},jl=he((({position:a=10,bg:l,color:o,fontSize:n})=>{const i=pe((()=>xe()),[]),{View:t}=s(),{goTop:c}=F();return e(t,{className:"backTop",onClick:c,style:{padding:i?"0":"10px"},children:e(Ca,{style:{display:"inline-block",color:o,fontSize:n,backgroundColor:l,position:i?"fixed":"relative",right:i?"20px":"0",bottom:i?"120px":"0",margin:`0 auto ${a}px`,zIndex:999},value:"backtop"})})})),Wl=({TextLineBgColor:l,text:o,contentSize:n,lineStyle:i,fontSize:t,textAlign:c,fontColor:r,lineColor:d,fontWeight:m,fontStyle:h,textDecoration:p})=>{const{View:u}=s();return a(u,{className:"textLine",style:{backgroundColor:l,textAlign:c,margin:1===n?"0 10px":""},children:[e(u,{className:"blc",style:{borderBottom:`1px ${i} ${d}`}}),e(u,{className:"txt",style:{backgroundColor:l,fontWeight:m,fontStyle:h,textDecoration:p,fontSize:`${t}px`,color:r},children:o})]})},Gl=he((({borderStyle:a,borderRadius:l,height:o,width:n,backgroundColor:i,paddingTop:t,paddingBottom:c})=>{const{View:r}=s();return e(r,{style:{paddingTop:t,paddingBottom:c},children:e(r,{style:{borderRadius:l+"%",borderStyle:a,width:n+"%",height:o+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})})})),El=he((({defaultValue:l,borderRadius:o,paddingTop:n,paddingBottom:i,selectClassifyNav:t})=>{const{View:r,Text:d}=s(),m=c(l,t);return e(r,{style:{paddingTop:n,paddingBottom:i},children:e(r,{className:"classifyNav",children:m.map(((l,s)=>a(r,{className:"classifyNavItem",onClick:()=>{var e,a;return we(null===(e=l.link)||void 0===e?void 0:e.value,null===(a=l.link)||void 0===a?void 0:a.params)},children:[e("img",{src:l.imgUrl,alt:"",className:"img",style:{borderRadius:`${o}px`}}),e(d,{className:"label",children:l.title})]},s)))})})})),Hl=({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:n,navBgColor:i,navBoxShadow:t,imgRadius:r,imgBoxShadow:d,layout:m,marginTop:h,marginBottom:p})=>{const{View:u}=s(),g=c(a,l);return e(u,{className:"classifyNav-one",style:{gridTemplateColumns:`repeat(${m}, 1fr)`,borderRadius:o,border:`1px solid ${n}`,backgroundColor:i,boxShadow:t?"0px 0px 20px 10px #ddd":"none",marginTop:h,marginBottom:p},children:g.map(((a,l)=>e(u,{className:"classifyNav-item",onClick:()=>{var e,l;return we(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},children:e("img",{src:a.imgUrl,alt:"",className:"classifyNav-item-img",style:{borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none"}})},l)))})},Yl=he(Hl),Ul=he((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:n,navBgColor:i,navBoxShadow:t,fontSize:r,fontColor:d,tagBgColor:m,otherStyle:h,layout:p,marginTop:u,marginBottom:g})=>{const{View:N}=s(),C=c(a,l),f=pe((()=>Be("classifyNav-two-item-title",...h)),[h]);return e(N,{className:"classifyNav-two",style:{gridTemplateColumns:`repeat(${p}, 1fr)`,border:`1px solid ${n}`,borderRadius:o,backgroundColor:i,boxShadow:t?"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 we(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===p?"74px":"60px"},children:e(N,{className:f,style:{fontSize:r,color:d},children:a.title})},l)))})})),Ql=he((({defaultValue:a,selectClassifyNav:l,navRadius:o,navBorderColor:n,navBgColor:i,navBoxShadow:t,imgRadius:r,imgBoxShadow:d,fontSize:m,fontColor:h,tagBgColor:p,otherStyle:u,layout:g,marginTop:N,marginBottom:C})=>{const{View:f}=s(),b=c(a,l);return e(f,{className:"classifyNav-three",style:{gridTemplateColumns:`repeat(${g}, 1fr)`,border:`1px solid ${n}`,borderRadius:o,backgroundColor:i,boxShadow:t?"0px 0px 20px 5px #EEE":"none",marginTop:N,marginBottom:C},children:b.map(((a,l)=>e(f,{className:"classifyNav-three-item",onClick:()=>{var e,l;return we(null===(e=a.link)||void 0===e?void 0:e.value,null===(l=a.link)||void 0===l?void 0:l.params)},style:{backgroundImage:`url(${a.imgUrl})`,borderRadius:r,boxShadow:d?"0px 0px 20px 5px #EEE":"none",width:4===g?"74px":"60px",height:4===g?"74px":"60px"},children:e(f,{className:"classifyNav-three-item-tag",style:{backgroundColor:p},children:e(f,{className:["classifyNav-three-item-txt",...u].join(" "),style:{fontSize:m,color:h},children:a.title})})},l)))})})),_l=he((({defaultValue:l=[],classCode:o="",margin:n,circular:i=!1,cell:t,showSales:c=!0,gap:r=10,goods:d=[],markedPrice:m,paddingTop:h,paddingBottom:p,paddingLeft:u,paddingRight:g,goodsName:N=!0,goodsPrice:C=!0,goodsCar:f=!0,goodsBorder:b=!0,goodsShadow:y=!1,marginGap:w=10})=>{const[x,k]=ue(l),v=be(),{View:S,Text:I}=s();return ge((()=>{Me(v.current,d)||(v.current=d,Re(d)?k(l):ea(void 0,void 0,void 0,(function*(){try{const e=yield De({goodsCode:d.toString(),distinctField:"goodsNo"}),a=Pe(e,"list",[]);k(a)}catch(e){k(l)}})))}),[d]),e(S,{style:{paddingTop:h,paddingBottom:p},children:e(S,{className:Be({[`goods-${o}`]:!0}),style:{display:"grid",gap:w,marginBottom:n,gridTemplateColumns:`repeat(${t}, 1fr)`,paddingLeft:u,paddingRight:g},children:x.map(((l,o)=>a(S,{style:{overflow:"hidden",borderRadius:i?"8px":"0px",border:b?"1px solid #000000":""},onClick:()=>we("goodDetail",{skuCode:l.skuCode}),className:["goods "+(y?"outer-shadow":"")].join(" "),children:[e(S,{className:"goods-img",style:{backgroundImage:`url(${l.dataPic})`}}),a(S,{className:"space",children:[e(S,{className:"titleType",style:{display:N?"block":"none"},children:l.goodsName}),e(S,{className:"subTitle",children:l.brandName}),c&&a(S,{className:"sales",children:["已售:",l.goodsSalesvolume,"件"]}),a(S,{className:"price",children:[a(S,{style:{fontSize:18},children:[C?la(l.pricesetNprice):"",1===m&&e(I,{className:"markedPrice",children:la(l.pricesetMakeprice)})]}),e(S,{className:"anticon",style:{display:f?"block":"none"},children:e(Ca,{style:{fontSize:30,color:"#f00"},value:"cart"})})]})]})]},o)))})})})),Kl=he((({defaultValue:l,goods:o,price:n,marketPrice:i,cart:t,wrapRadius:c,wrapBorderColor:r,wrapBgColor:d,wrapShadow:m,goodsRadius:h,goodsBgColor:p,goodsGap:u,marginTop:g,marginBottom:N,marginLeft:C,marginRight:f})=>{const{View:b}=s(),{list:y}=j({defaultValue:l,goods:o});return e(b,{className:"goodsSlider",style:{borderRadius:c,borderColor:r,backgroundColor:d,boxShadow:m?"0px 0px 20px 5px #EEE":"none",marginTop:g,marginBottom:N,marginLeft:C,marginRight:f},children:y.map(((l,o)=>a(b,{className:"goodsSliderItem",style:{borderRadius:h,backgroundColor:p,marginRight:`${u}px`},onClick:()=>we("goodDetail",{skuCode:l.skuCode}),children:[e(b,{className:"img",style:{backgroundImage:`url(${l.dataPic})`}}),a(b,{className:"board",children:[e(b,{className:"title",children:l.goodsName}),a(b,{className:"info",children:[a(b,{className:"lPart",children:[n?e(b,{className:"price",children:la(l.pricesetNprice)}):null,i?e(b,{className:"marketPrice",children:la(l.pricesetMakeprice)}):null]}),t?e(b,{className:"rPart",children:e(Ca,{style:{fontSize:26,color:"#f00"},value:"cart"})}):null]})]})]},o)))})})),$l=he((({defaultValue:l,goods:o,GoodsSlideshowBg:n,marketPrice:i,goodsName:t,salesNum:c,price:r,goodsRadius:d,goodsBorder:m,goodsShadow:h,btnText:p,btnBg:u,btnColor:g,btnRadius:N})=>{const C=pe((()=>xe()),[]),{list:f}=j({defaultValue:l,goods:o}),{SmoothSwiper:b,View:y,Image:w}=s(),[x,k]=ue(0);return a(y,{className:"goodsSlideshow",children:[e(w,{src:n,className:"bg",mode:"widthFix"}),e(b,{indicatorDots:!1,imgHeight:{width:190,height:410},defaultIndex:1,data:f,style:{},type:1,autoplay:!1,autoplayInterval:5e3,onChange:e=>{k(e.detail.current)},previousMargin:40,nextMargin:40,slideSize:70,trackOffset:15,render:l=>a(y,{className:["goodsSlideshowItem",""+(l.goodsCode===f[x].goodsCode&&C?"active":"")].join(" "),style:{borderRadius:d,borderStyle:m?"solid":"none",boxShadow:h?"0px 0px 20px 10px #ddd":""},onClick:()=>we("goodDetail",{skuCode:l.skuCode}),children:[e(w,{className:"logo",src:l.dataPic,mode:"widthFix"}),t?e(y,{className:"goodsName",children:l.goodsShowname}):null,c?a(y,{className:"salesNum",children:["销量:",l.goodsSalesvolume]}):null,r?e(y,{className:"price",children:la(l.pricesetNprice)}):null,i?e(y,{className:"marketPrice",children:la(l.pricesetMakeprice)}):null,e(y,{className:"btn",style:{backgroundColor:u,color:g,borderRadius:N},children:p})]})})]})})),ql=a=>{var{autoplay:l,vertical:o}=a,s=Je(a,["autoplay","vertical"]);const n=ra(s,"skuNo"),{rsGoodsFileDomainList:i=[]}=W(n),t=G(i);return e(Ze,{selectImg:t,type:1,autoplay:l,vertical:o,imgHeight:{height:375,width:375}})},Zl=l=>{const{SmoothView:o,View:n}=s(),{handleCollect:i,collection:t}=E(l);return a(n,{onClick:i,children:[Re(t.dataObj)?e(Ca,{value:"star-fill",style:{fontSize:20}}):e(Ca,{value:"star-fill",style:{color:"red",fontSize:20}}),e(o,{className:"txt",children:Re(t.dataObj)?"收藏":"已收藏"})]})},Xl=l=>{var{priceShow:o,collectionShow:n}=l,i=Je(l,["priceShow","collectionShow"]);const{View:t,SmoothView:c}=s(),r=ra(i,"skuNo"),{rsSkuDomainList:d}=W(r),{goodInfo:m}=H(d);return Y(r),a(t,{className:"goodsDetail-topInfo",children:[a(t,{className:"lPart",children:[e(c,{className:"name",children:m.goodsName}),e(c,{className:"price",style:{display:o?"block":"none"},children:la(m.pricesetNprice)})]}),e(t,{className:"rPart",style:{display:n?"flex":"none"},children:e(Zl,{goodsName:m.goodsName,pricesetNprice:m.pricesetNprice,dataPic:m.dataPic,skuCode:r})})]})},Jl=he((l=>{const{collectionShow:o,shareShow:n}=l,{View:i}=s(),{handleCollect:t,collection:c}=E(l),{handleShare:r}=U();return a(i,{className:"handleBar",children:[o?e(i,{className:"collection",onClick:t,style:{borderRight:n?"1px solid #ddd":"none"},children:Re(c.dataObj)?"收藏":"已收藏"}):null,n?e(i,{className:"share",onClick:r,children:"分享"}):null]})})),eo=he((l=>{var{priceShow:o,collectionShow:n,shareShow:i}=l,t=Je(l,["priceShow","collectionShow","shareShow"]);const{View:c,SmoothView:r}=s(),d=ra(t,"skuNo"),{rsSkuDomainList:m}=W(d),{goodInfo:h}=H(m);return Y(d),a(c,{className:"goodsDetail-info-one",children:[e(r,{className:"price",style:{display:o?"block":"none"},children:la(h.pricesetNprice)}),e(r,{className:"title",children:h.goodsName}),e(Jl,{collectionShow:n,shareShow:i,goodsName:h.goodsName,pricesetNprice:h.pricesetNprice,dataPic:h.dataPic,skuCode:d})]})})),ao=he((()=>{const{Text:e}=s(),l=Q((e=>e.count)),o=Q((e=>e.spec));return a(e,{className:"label",children:["已选择 数量: ",l," 规格: ",o.toString()]})})),lo=({dispatchPageStore:o})=>{const{View:n,Text:i}=s(),{openPopup:t}=_(o);return e(l,{children:a(n,{className:"goodsDetail-size",onClick:t,children:[e(i,{className:"label",children:"规格"}),a(n,{className:"info",children:[e(ao,{}),e("img",{src:_e,alt:"",className:"icon"})]})]})})},oo=l=>{var o=Je(l,[]);const{View:n,Text:i}=s(),t=ra(o,"skuNo"),{rsSkuDomainList:c}=W(t),{goodInfo:r}=H(c),d=K(c,r.skuCode||t);return a(n,{className:"goodsDetail-promotion",children:[e(i,{className:"label",children:"促销"}),e(n,{className:"group",children:d.length?d.map((({discName:a},l)=>e(n,{className:"item",children:a},l))):e(n,{className:"noPromotion",children:"暂无促销活动"})})]})},so=he((({promotionBegintime:l,pbName:o,discName:n,promotionCode:i,promotionName:t,couponOnceNums:c,couponOnceNumd:r,promotionEndtime:d})=>{const{View:m,Text:h}=s(),{save:p,isPick:u}=$(),g=pe((()=>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:n})]}),a(m,{className:"info",children:[e(h,{className:"title",children:t}),a(h,{className:"date",children:[Le(l).format("YYYY-MM-DD")," - ",Le(d).format("YYYY-MM-DD")]})]}),e(m,g>0?{className:u?"coupon-pick-default":"coupon-pick",onClick:()=>p({promotionCode:i,couponAmount:1}),children:u?"已领取":"领取"}:{className:"coupon-pick-default",children:"已领完"})]})})})),no=()=>{const{View:a,Image:l}=s();return e(a,{children:e(l,{src:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCoupon.png",className:"img"})})},io=o=>{var n=Je(o,[]);const{View:i,Text:t,Popup:c}=s(),r=ra(n,"skuNo"),{rsSkuDomainList:d}=W(r),{goodInfo:m}=H(d),{coupon:h,visible:p,setVisible:u}=q(d,m.skuCode||r);return a(l,{children:[a(i,{className:"goodsDetail-coupon",onClick:()=>u(!0),children:[e(t,{className:"label",children:"优惠券"}),a(i,{className:"info",children:[e(t,{className:"label",children:"请选择优惠券"}),e("img",{src:_e,alt:"",className:"icon"})]})]}),e(c,{popupVisible:p,popupHandler:u,children:e(i,{className:"goodsDetail-coupon-popup",children:e(pa,{children:h.length>0?h.map(((e,a)=>Ne(so,Object.assign({},e,{key:a})))):a(i,{className:"NoDataImg",children:[e(no,{}),e(i,{className:"btn",onClick:()=>u(!1),children:"确定"})]})})})})]})},to=({item:l})=>{const{View:o,Image:n}=s();return a(o,{className:"rateItem",children:[a(o,{className:"topInfo",children:[a(o,{className:"lPart",children:[e(n,{src:l.userImgurl,className:"avatar"}),a(o,{className:"userInfo",children:[e(o,{className:"name",children:l.userName}),e(Wa,{readOnly:!0,size:14,count:l.evaluateScopeReList.length})]})]}),e(o,{className:"rPart",children:`${new Date(l.gmtCreate).getFullYear()}-${new Date(l.gmtCreate).getMonth()+1}-${new Date(l.gmtCreate).getDate()}`})]}),e(o,{className:"size",children:l.skuName}),e(o,{className:"content",children:l.evaluateGoodsContent})]})},co=({evaluateArr:l})=>{const{View:o}=s(),n=be(l);return e(o,{className:"goodsDetailEvaluate",children:n.current.length?a(o,{children:[a(o,{className:"topInfo",children:["评价 (",n.current.length,")"]}),n.current.slice(0,5).map(((a,l)=>e(to,{item:a},l)))]}):e(ol,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})})},ro=({goodsRemark:a})=>{const{View:l}=s(),o=pe((()=>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||""}})})},mo=({tabActive:o,setTabActive:n,evaluateShow:i,evaluateImgShow:t,evaluateImg:c})=>{const{Text:r}=s(),d=pe((()=>t?[{title:"商品详情",id:"1"},{title:"评价",id:"2"}]:[{title:"商品详情",id:"1"}]),[i]);return e(l,{children:d.map(((l,s)=>e(ye,{children:a(r,{className:"tabsItem "+(o===s?"active":""),onClick:()=>n(s),children:[l.title,e(r,{className:"line"})]})},s)))})},ho=l=>{var{evaluateShow:o,evaluateImgShow:n,evaluateImg:i}=l,t=Je(l,["evaluateShow","evaluateImgShow","evaluateImg"]);const{View:c}=s(),[r,d]=ue(0),m=ra(t,"skuNo"),{goodsRemark:h,goodsCode:p}=W(m),u=Z(p);return a(c,{className:"goodsDetailTab",children:[e(c,{className:"tabs",children:e(mo,{tabActive:r,setTabActive:d,evaluateShow:o,evaluateImgShow:n,evaluateImg:i})}),e(c,{className:"group",children:0===r?e(ro,{goodsRemark:h}):e(co,{evaluateArr:u,evaluateImgShow:n,evaluateImg:i})})]})},po=({skuName:l,handleChooseSize:o,spec:n,skuOption:i,index:t})=>{const{View:c,Text:r}=s();return a(c,{className:"sizeArr",children:[e(r,{className:"title",children:l}),e(c,{className:"sizeArrItemWrap",children:i.map(((a,l)=>e(c,{className:"sizeItem "+(n[t]===a.specValueValue?"active":""),onClick:o.bind(null,a.specValueValue,t),children:a.specValueValue},l)))})]})},uo=he((({handleStep:l})=>{const{View:o,NumStep:n}=s(),i=Q((e=>e.count));return a(o,{className:"countWrap",children:[e(o,{className:"label",children:"购买数量"}),e(n,{count:i,handleStep:l})]})})),go=({skuInfo:o,handleChooseSize:n,spec:i,goodInfo:t})=>{const{Image:c,View:r}=s(),{skuList:d}=o;return a(l,{children:[a(r,{className:"goodsInfo",children:[e(r,{className:"lPart",children:e(c,{src:t.dataPic,alt:"",className:"goodsImg"})}),a(r,{className:"rPart",children:[e(r,{className:"name",children:t.goodsName}),e(r,{className:"price",children:la(t.pricesetNprice)}),a(r,{className:"chosen",children:["已选择: ",i.toString()]})]})]}),d.map(((a,l)=>e(po,{spec:i,handleChooseSize:n,index:l,skuName:a.skuName,skuOption:a.skuOption},l)))]})},No=({cashImpl:o,addShoppingImpl:n,addCardImpl:i})=>{const{Text:t,View:c}=s(),r=Q((e=>e.isNeedButton));return e(l,{children:r?e(c,{className:"btnWrap",onClick:n,children:e(t,{className:"btn",children:"确认"})}):a(c,{className:"goods-detail-btn-group popup-buy-button",children:[e(c,{className:"btn addCart",onClick:i,children:"加入购物车"}),e(c,{className:"btn buy",onClick:o,children:"立即购买"})]})})},Co=he((({dispatchPageStore:l,goodsCode:o,skuInfo:n,rsSkuDomainList:i})=>{const{View:t}=s(),{spec:c,goodInfo:r}=H(i),{handleChooseSize:d,handleStep:m,addCardImpl:h,cashImpl:p,addShoppingImpl:u}=X(o,n,l);return a(t,{className:"goodsDetail-size-popup",children:[a(t,{className:"content",children:[e(go,{skuInfo:n,handleChooseSize:d,spec:c,goodInfo:r}),e(uo,{handleStep:m.bind(null,r.goodsNum)})]}),e(No,{cashImpl:p,addShoppingImpl:u,addCardImpl:h})]})})),fo=({popupVisible:a,dispatchPageStore:l,goodsCode:o,skuInfo:n,rsSkuDomainList:i})=>{const{Popup:t}=s();return e(t,{popupVisible:a,popupHandler:()=>{l({visible:!1})},children:e(Co,{dispatchPageStore:l,goodsCode:o,skuInfo:n,rsSkuDomainList:i})})},bo=he((({serverShow:l,cartShow:o,lPartColor:n,lPartBgColor:i,lPartStyle:t,rPartColor:c,rPartBgColor:r,rPartStyle:d,dispatchPageStore:m})=>{const{Text:h,View:p,IconMobile:u}=s(),{servicePopup:g}=aa(),{addCardPopup:N,buyOpenPopup:C}=_(m);return a(p,{className:"goodsDetailHandleBar",children:[a(p,{className:"linkGroup server",onClick:g,style:{display:l?"block":"none"},children:[e(u,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(h,{className:"txt",children:"客服"})]}),a(p,{className:"linkGroup cart",onClick:()=>we("shopping"),style:{display:o?"block":"none"},children:[e(u,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(h,{className:"txt",children:"购物车"})]}),a(p,{className:"goods-detail-btn-group",children:[e(p,{className:"btn addCart",onClick:N,style:{color:n,backgroundColor:i,borderTopLeftRadius:t,borderBottomLeftRadius:t},children:"加入购物车"}),e(p,{onClick:C,className:"btn buy",style:{color:c,backgroundColor:r,borderTopRightRadius:d,borderBottomRightRadius:d},children:"立即购买"})]})]})})),yo=o=>{var{$_dataSource:s={},dispatchPageStore:n=Oe}=o,i=Je(o,["$_dataSource","dispatchPageStore"]);const t=ra(i,"skuNo"),{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=W(t),m=J(c),{popupVisible:h}=s;return a(l,{children:[e(bo,Object.assign({},i,{dispatchPageStore:n})),e(fo,{dispatchPageStore:n,popupVisible:h,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},wo=he((({serverShow:l,cartShow:o,lBtnBorderColor:n,lBtnFontColor:i,lBtnColor:t,lBtnStyle:c,rBtnBorderColor:r,rBtnFontColor:d,rBtnColor:m,rBtnStyle:h,dispatchPageStore:p})=>{const{Text:u,View:g,IconMobile:N}=s(),{servicePopup:C}=aa(),{addCardPopup:f,buyOpenPopup:b}=_(p);return a(g,{className:"goodsDetailHandleBarOne",children:[a(g,{className:"linkGroup server",onClick:C,style:{display:l?"block":"none"},children:[e(N,{value:"kehufuwukefu",style:{fontSize:22,display:"block"}}),e(u,{className:"txt",children:"客服"})]}),a(g,{className:"linkGroup cart",onClick:()=>we("shopping"),style:{display:o?"block":"none"},children:[e(N,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(u,{className:"txt",children:"购物车"})]}),a(g,{className:"goods-detail-one-btn-group",children:[e(g,{className:"btn addCart",onClick:f,style:{border:`1px solid ${n}`,color:i,backgroundColor:t,borderRadius:1===c?"20px":"0"},children:"加入购物车"}),e(g,{onClick:b,className:"btn buy",style:{border:`1px solid ${r}`,color:d,backgroundColor:m,borderRadius:1===h?"20px":"0"},children:"立即购买"})]})]})})),xo=o=>{var{popupVisible:s=!1,dispatchPageStore:n=Oe}=o,i=Je(o,["popupVisible","dispatchPageStore"]);const t=ra(i,"skuNo"),{rsSpecValueDomainList:c,goodsCode:r,rsSkuDomainList:d}=W(t),m=J(c);return a(l,{children:[e(wo,Object.assign({},i,{dispatchPageStore:n})),e(fo,{dispatchPageStore:n,popupVisible:s,goodsCode:r,rsSkuDomainList:d,skuInfo:m})]})},ko=he((({defaultValue:l,coupons:o,bg:n,borderColor:i,btnColor:t,typeColor:c,titleColor:r,ruleColor:d,timeColor:m,paddingTop:h,paddingBottom:p})=>{const{View:u}=s(),{list:g,takeCoupon:N,takeList:C}=ee({defaultValue:l,coupons:o});return e(u,{style:{paddingTop:`${h}px`,paddingBottom:`${p}px`},children:g.map(((l,o)=>{const s=Pe(l,"pbName"),h=Pe(l,"pmPromotionDiscountList"),p=Pe(h.at(-1),"discName"),g=Pe(l,"promotionName"),f=Le(Pe(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Le(Pe(l,"promotionEndtime")).format("YYYY-MM-DD"),y=Pe(l,"promotionCode");return a(u,{className:"OneLineOneBlc",style:{backgroundColor:n,borderColor:i},children:[a(u,{className:"lPart",children:[a(u,{className:"intro",children:[e(u,{className:"type",style:{color:c},children:s}),e(u,{className:"rule",style:{color:d},children:p})]}),a(u,{className:"info",children:[e(u,{className:"title",style:{color:r},children:g}),a(u,{className:"validity",style:{color:m},children:[f," - ",b]})]})]}),e(u,{className:"rPart",style:{backgroundColor:t},children:-1===l.availabledate||C.includes(o)?e(u,{className:"txt",children:"已 领 取"}):e(u,{className:"txt",onClick:()=>N({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),vo=he((({defaultValue:l,coupons:o,bg:n,borderColor:i,btnColor:t,typeColor:c,ruleColor:r,titleColor:d,timeColor:m,gap:h,paddingTop:p,paddingBottom:u})=>{const{View:g}=s(),{list:N,takeCoupon:C,takeList:f}=ee({defaultValue:l,coupons:o});return e(g,{className:"oneLineTwoBlc",style:{paddingTop:p,paddingBottom:u,paddingLeft:"10px",paddingRight:"10px",gap:h},children:N.map(((l,o)=>{const s=Pe(l,"pbName"),h=Pe(l,"pmPromotionDiscountList"),p=Pe(h.at(-1),"discName"),u=Pe(l,"promotionName"),N=Le(Pe(l,"promotionBegintime")).format("YYYY-MM-DD"),b=Le(Pe(l,"promotionEndtime")).format("YYYY-MM-DD"),y=Pe(l,"promotionCode");return a(g,{className:"oneLineTwoBlcItem",style:{backgroundColor:n,borderColor:i},children:[a(g,{className:"lPart",children:[e(g,{className:"type",style:{color:c},children:s}),e(g,{className:"rule",style:{color:r},children:p}),e(g,{className:"info",style:{color:d},children:u}),a(g,{className:"validity",style:{color:m},children:[N," - ",b]})]}),e(g,{className:"rPart",style:{backgroundColor:t},children:-1===l.availabledate||f.includes(o)?e(g,{className:"txt",children:"已 领 取"}):e(g,{className:"txt",onClick:()=>C({promotionCode:y,couponAmount:1,index:o}),children:"立 即 领 取"})})]},o)}))})})),So=he((l=>{var{type:o=1,coupons:n=[]}=l,i=Je(l,["type","coupons"]);const{View:t}=s();return a(t,{className:"getCouponOne",children:[1===o?e(ko,Object.assign({coupons:n},i)):null,2===o?e(vo,Object.assign({coupons:n},i)):null]})})),Io=[{label:"全部",val:"0002,0006"},{label:"满减",val:"0002"},{label:"满折",val:"0006"}],Ao=he((({activeColor:a,setParams:l,params:o})=>{const{View:n}=s();return e(n,{className:"promotionListTab",children:Io.map(((s,i)=>e(n,{className:"promotionListTabItem",onClick:()=>l(s.val),style:{color:s.val===o?a:"#000"},children:s.label},i)))})})),Bo=({data:l})=>{const{View:o}=s(),{pbName:n,promotionName:i,pmPromotionDiscountList:t,promotionBegintime:c,promotionEndtime:r}=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:["官方",n]})}),e(o,{className:"rule",children:t.at(-1).discName}),e(o,{className:"title",children:i}),a(o,{className:"time",children:[Le(c).format("YYYY-MM-DD")," ~ ",Le(r).format("YYYY-MM-DD")]})]}),e(o,{className:"rPart",children:e(o,{className:"sideBorder"})})]})},Vo=he((({activeColor:l,paddingTop:o,paddingBottom:n})=>{const[i,t]=ue(Io[0].val),{list:c,getData:r}=ae({params:i}),{View:d,ScrollView:m}=s();return a(d,{style:{padding:`${o}px 0 ${n}px`},children:[e(Ao,{activeColor:l,setParams:t,params:i}),e(d,{children:e(pa,{id:"listWrap",children:e(m,{onScroll:()=>r(),children:c.map(((a,l)=>e(Bo,{data:a},l)))})})})]})})),To=he((()=>e(l,{children:"123"}))),Do=({setDefault:a,checked:l})=>{const{SmoothCheckbox:o,Checkbox:n}=s();return e(o,{onChange:a,children:e(n,{checked:l,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"},children:"设为默认地址"})})},Lo=({itemData:l,delAddress:o,setDefault:n})=>{const{View:i,Text:t}=s(),{handlerImpl:c}=le(l);return a(i,{className:"addressItem",children:[a(i,{className:"upInfo",onClick:c,children:[a(i,{className:"userInfo",children:[l.addressMember," ",l.addressPhone]}),e(i,{className:"addressInfo",children:a(t,{className:"address",children:[l.provinceName," ",l.areaName," ",l.cityName," ",l.addressDetail]})})]}),a(i,{className:"downInfo",children:[e(Do,{checked:"1"===(null==l?void 0:l.addressDefault),setDefault:n}),e(t,{className:"del",onClick:o,children:"删除"})]})]})},Po=he((()=>{const{View:a,Skeleton:o}=s(),n=be(new Array(3).fill(0));return e(l,{children:e(a,{className:"skullWrap",children:e(a,{className:"skull",children:n.current.map(((a,l)=>e(o,{className:"skullItem",animated:!0},l)))})})})})),Ro=he((({refreshNum:a,btnShape:l,btnColor:o,borderColor:n,paddingBottom:i,paddingTop:t,color:c})=>{const{View:r}=s(),{list:d,delAddress:m,setDefault:h,skullShow:p}=oe(a);return e(r,{className:"addressListWrap",style:{paddingTop:t+"px",marginBottom:i+"px"},children:p?e(Po,{}):e(r,{className:"addressList",children:d.length?d.map(((a,l)=>e(Lo,{itemData:a,setDefault:h.bind(null,a,l),delAddress:m.bind(null,a)},null==a?void 0:a.addressId))):e(ol,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})})})),zo=he((({borderColor:a,color:l,btnColor:o,btnShape:n,paddingTop:i,paddingBottom:t})=>{const{View:c}=s();return e(c,{className:"addressListBtnWrap",style:{paddingTop:`${i}px`,paddingBottom:`${t}px`},children:e(c,{style:{borderRadius:n,borderColor:a,color:l,backgroundColor:o},className:"addressListBtn",onClick:()=>we("addressEditor"),children:"+ 新增地址"})})})),Mo=he((({contractBillcode:l,contractBbillcode:o,btnColor:n,btnShape:i,borderColor:t,paddingTop:c,paddingBottom:r,color:d})=>{const m=pe((()=>xe()),[]),{View:h,Text:p,Radio:u,IconMobile:g,WrapLoading:N,SmoothRadio:C}=s(),{paymentImpl:f,channelList:b,contract:y,handleRadio:w,loading:x}=se({contractBillcode:l,contractBbillcode:o});return a(h,{className:"paymentModeWrap",style:{height:m?"inherit":"667px",paddingBottom:r+"px",paddingTop:c+"px"},children:[a(h,{className:"paymentMode",children:[a(h,{className:"topInfo",children:[a(p,{className:"title",children:[e(g,{value:"roundcheck"}),"订单提交成功"]}),a(h,{className:"info",children:["订单号:",y.current.contractBillcode," | 总金额:",la(y.current.dataBmoney),"元"]})]}),e(h,{className:"paymentGroup",children:e(C,{onChange:w,children:null==b?void 0:b.map((l=>a(h,{className:"paymentItem",children:[e(g,{value:l.icon}),a(h,{children:[a(h,{className:"base",children:[e(p,{children:l.fchannelName}),e(u,{value:l.fchannelCode,className:"choose"})]}),"account"===l.value?a(h,{className:"info",children:[e(h,{children:"账户余额:0元"}),e(h,{children:"本单抵扣:5.4元"})]}):null]})]},l.fchannelCode)))})})]}),e(h,{id:"v_html"}),e(N,{loading:x,children:e(h,{className:"btnGroup",onClick:f,children:e(h,{style:{borderRadius:i,backgroundColor:n,color:d,borderColor:t},className:"payment",children:"立即支付"})})})]})})),Oo=he((({title:l})=>{const{View:o}=s();return a(o,{className:"refundOptionStyle",children:[l,a(o,{className:"optionItem",onClick:()=>{we("refundOnly",{})},children:[e(o,{className:"refund_icon",children:e(Ca,{value:"tuikuantuihuo",style:{fontSize:20,color:"rgb(255, 136, 9)"}})}),a(o,{className:"refund_text",children:[e(o,{className:"refund_type_title",children:"仅退款(无需退货)"}),e(o,{className:"refund_tip",children:"没收到货,或与卖家协商同意不用退货只退款"})]}),e(o,{className:"refund_icon_end",children:e(Ca,{value:"xiangyou1",style:{fontSize:16}})})]}),a(o,{className:"optionItem",children:[e(o,{className:"refund_icon",children:e(Ca,{value:"tuikuantuihuo1",style:{fontSize:20,color:"rgb(255, 136, 9)"}})}),a(o,{className:"refund_text",children:[e(o,{className:"refund_type_title",children:"我要退货退款"}),e(o,{className:"refund_tip",children:"已收到货,需要退还收到的货物"})]}),e(o,{className:"refund_icon_end",children:e(Ca,{value:"xiangyou1",style:{fontSize:16}})})]}),a(o,{className:"optionItem",children:[e(o,{className:"refund_icon",children:e(Ca,{value:"huanhuo",style:{fontSize:20,color:"rgb(255, 136, 9)"}})}),a(o,{className:"refund_text",children:[e(o,{className:"refund_type_title",children:"我要换货"}),e(o,{className:"refund_tip",children:"已收到或,需要退还更换"})]}),e(o,{className:"refund_icon_end",children:e(Ca,{value:"xiangyou1",style:{fontSize:16}})})]})]})})),Fo=he((({value:l,getAmountNum:o,goodsCamount:n})=>{const{View:i}=s(),t=pe((()=>xe()),[]);return a(i,{className:"count_btn_style",children:[e(i,{className:"btn_left",onClick:()=>{if(l<=1){if(t){ve().showToast({title:"退货数量最低为1",icon:"none",mask:!0})}}else o(l-1)},children:"-"}),e(i,{className:"btn_middle",children:l}),e(i,{className:"btn_right",onClick:()=>{if(l>=n){if(t){ve().showToast({title:"退货数量最多不得超出购买该商品总数量!",icon:"none",mask:!0})}}else o(l+1)},children:"+"})]})})),jo=he((({title:l,dataPic:o,goodsName:n,goodsCamount:i=2,price:t})=>{const[c,r]=ue(!0),[d,m]=ue(i),{View:h,Image:p}=s();console.log("当前退货数量为",d);const u=pe((()=>Be("goods_nums",{goods_nums_btm:Number(i)>1},{goods_nums_btm1:Number(i)<2})),[i]);return a(h,{className:"refundGoodsDeatil",children:[l,a(h,{className:"goodsDeatilMsg",children:[e(h,{className:"goods_img",children:e(p,{src:"https://b2coptfa10b0d4f03f4ff48c571f14558fa068.saas.qjclouds.com/paas/shop/597370900596056114//63758997dcb34f15ae1b7f2244d52916.png",alt:"",className:"img"})}),a(h,{className:"goods_content",children:[a(h,{className:"goods_text",children:[e(h,{className:"goods_title",children:"花秘瑰萃 明星臻选套装 花秘瑰萃 明星臻发顺丰水电费付付水电费"}),e(h,{className:"goods_price",children:"¥980.00"})]}),a(h,{className:u,children:[e(h,{className:"goods_size",children:"30ml/清淡型"}),Number(i)>1?a(h,{className:"nums_btn",children:[e(h,{className:"icon_btn",onClick:()=>r(!c),children:e(Ca,{value:"bangzhu",style:{fontSize:15}})}),e(Fo,{value:d,getAmountNum:e=>{m(e)},goodsCamount:i})]}):`x${i}`]})]}),e(h,{className:"help_btn",style:{display:c?"block":"none"},children:"如部分商品售后成功,剩余商品将不能申请售后"})]})]})})),Wo=he((l=>{console.log("退款类型",l);const{View:o}=s();return a(o,{className:"refundPage",children:[e(o,{className:"goodsMsg",children:e(jo,Object.assign({title:"退款商品"},l))}),e(o,{className:"refundOption",children:e(Oo,{title:"选择售后类型"})})]})})),Go=he((()=>{const[l,o]=ue(!1),[n,i]=ue(980),{View:t,Input:c,Popup:r}=s();return a(t,{className:"refundMsgPage",children:[a(t,{className:"refundItem",onClick:()=>{o(!0)},children:[a(t,{className:"refundMsg",children:[a(t,{className:"inputText",children:[e(t,{className:"icon",children:"*"}),e(t,{className:"text",children:"退款原因"})]}),a(t,{className:"optionText",children:[e(t,{className:"text1",children:"请选择"}),e(t,{className:"icon",children:">"})]})]}),e(t,{className:"refundTip",children:"请选择退款原因!退款原因不能为空!"})]}),a(t,{className:"refundItem",children:[a(t,{className:"refundMsg",children:[a(t,{className:"inputText",children:[e(t,{className:"icon",children:"*"}),e(t,{className:"text",children:"退款金额"})]}),a(t,{className:"optionText",children:[e(t,{className:"text",children:a(t,{className:"textInp",children:["¥",e(c,{className:"inputText",disabled:!1,value:oa(n),onBlur:e=>{i(e.detail.value)}})]})}),e(t,{className:"icon1",children:a(t,{className:"iconContent",children:[e(Ca,{value:"bianjishuru",style:{fontSize:12,color:"#000000"}}),e(t,{className:"updatebtn",children:"修改"})]})})]})]}),e(t,{className:"refundTip1",children:"可修改,最多¥980.00,含运费¥0.00"})]}),e(r,{popupVisible:l,popupHandler:o,children:e(t,{className:"goodsDetail-coupon-popup",children:e(pa,{children:"123213"})})})]})})),Eo=he((()=>{const[l,o]=ue(!1),[n,i]=ue([]),{View:t,Popup:c,Image:r}=s(),d=pe((()=>xe()),[]);return console.log("图片路径",n),a(t,{className:"select_img",children:[a(t,{className:"icon_img",onClick:()=>{if(n.length>=3){if(d){ve().showToast({title:"最多只能上传3张图片!",duration:2e3,icon:"none",mask:!0})}}else o(!0)},children:[e(Ca,{value:"shangchuanpingzheng",style:{fontSize:20,color:"#9e9e9e"}}),e(t,{children:"上传凭证"}),e(t,{children:"(最多3张)"})]}),n.length>0?n.map(((l,o)=>a(t,{className:"show_img",children:[e(t,{className:"delete_btn",onClick:()=>(e=>{console.log("下标",e);const a=n.slice();a.splice(e,1),i((e=>[...a]))})(o),children:"x"}),e(r,{className:"img",src:l,onClick:()=>(e=>{if(d){const a=ve();let l=[];l.push(e),a.previewImage({current:e,urls:l,showmenu:!0})}})(l)},o)]}))):"",e(c,{popupVisible:l,popupHandler:o,children:e(t,{className:"upload_content",children:a(pa,{children:[e(t,{className:"upload_btn",children:"拍照"}),e(t,{className:"upload_btn",onClick:()=>{if(d){ve().chooseImage({count:1,sizeType:["original","compressed"],sourceType:["album"],success:function(e){console.log("上传图片-相册",e);var a=[];a.push(e.tempFilePaths[0]),console.log("上传路径",a),i((e=>[...e,...a])),o(!1)}})}},children:"从相册选择"}),e(t,{className:"upload_unbtn",onClick:()=>o(!1),children:"取消"})]})})})]})})),Ho=he((()=>{const{View:l}=s();return a(l,{className:"uploadingPage",children:[e(l,{className:"uploadingContent",children:"补充描述和凭证"}),a(l,{className:"uploadingText",children:["补充描述,有助于商家更好的处理售后问题",e(l,{className:"uploadImg",children:e(Eo,{})})]})]})})),Yo=he((()=>{const{View:l}=s();return a(l,{className:"refundOnlyPage",children:[e(l,{className:"refundTip",children:"请与商家协商,确认达成一致后填写协商好的退款金额"}),e(l,{className:"refundMsg_style",children:e(Go,{})}),e(l,{className:"refundUploading",children:e(Ho,{})})]})})),Uo=()=>{const{View:l}=s(),{mySettingGoBind:o,mySettingLogout:n}=ne();return a(l,{className:"mySetting",children:[a(l,{className:"item",onClick:o,children:[e(l,{children:"绑定手机"}),e(l,{children:e(Ca,{value:"xiangyou1"})})]}),e(l,{className:"btn",onClick:n,children:"退出登录"})]})},Qo=he(Uo),_o=he((()=>e(l,{children:"agree"}))),Ko=me.createContext(null),$o=he((()=>{const{View:l,Image:o,NumStep:n,SmoothView:i}=s(),{typeTip:t,setTypeTip:c,goodsNum:r,handleStep:d,goodsInfo:m,goodsPrice:h}=fe(Ko),{goodsName:p,skuName:u,dataPic:g}=m;return a(l,{className:"afterSalesTypeItem",children:[e(l,{className:"afterSalesTypeTitle",children:"退款商品"}),a(l,{className:"afterSalesTypeContent",children:[e(o,{src:g,className:"img"}),a(l,{className:"info",children:[a(l,{className:"base",children:[e(i,{className:"name",children:p}),e(i,{className:"price",children:la(h)})]}),a(l,{className:"advance",children:[e(l,{className:"size",children:u}),a(l,{className:"stepWrap",children:[e(Ca,{style:{fontSize:12,color:"#C3C6CD",margin:"8px"},value:"bangzhu",onClick:()=>c((e=>!e))}),e(n,{count:r,handleStep:d})]})]}),t?e(l,{className:"tip",children:"如部分商品未售后成功, 剩余商品将不能申请售后"}):null]})]})]})})),qo={1:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],2:[{label:"仅退款(无需退货)",value:"B01"}],3:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}],4:[{label:"仅退款(无需退货)",value:"B01"},{label:"退货退款",value:"B02"}]},Zo=(e=2)=>qo[e],Xo=he((({afterSalesType:l=2,contractBillcode:o,skuCode:n})=>{const{View:i}=s(),{goApply:t,goodsNum:c}=fe(Ko);return e(i,{children:a(i,{className:"afterSalesTypeType",children:[e(i,{className:"title",children:"售后类型"}),Zo(+l).map(((l,s)=>a(i,{className:"item",onClick:t.bind(null,l.value,o,n,c),children:[e(i,{className:"headline",children:l.label}),e(Ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]},s)))]})})})),Jo=l=>{const{contractBillcode:o,skuCode:n,dataState:i}=l,{typeTip:t,setTypeTip:c,goodsNum:r,handleStep:d,goodsInfo:m,goApply:h,loading:p,goodsPrice:u}=ie({contractBillcode:o,skuCode:n}),{View:g,WrapLoading:N}=s();return e(N,{loading:p,children:e(g,{className:"afterSalesType",children:a(Ko.Provider,{value:{typeTip:t,setTypeTip:c,goodsNum:r,handleStep:d,goodsInfo:m,goApply:h,goodsPrice:u},children:[e($o,{}),e(Xo,{afterSalesType:i,contractBillcode:o,skuCode:n})]})})})},es=me.createContext(null),as=he((()=>{const{View:a}=s(),{tip:l}=fe(es);return e(a,{className:"afterSalesApplyTip",children:l})})),ls=he((()=>{const{View:l,SmoothRadio:o,Radio:n,Popup:i,ScrollView:t,WrapLoading:c}=s(),{handlePopupShow:r,popupVisible:d,reasonList:m,handleChooseReason:h,popupLoading:p}=fe(es);return e(i,{popupVisible:d,popupHandler:r,children:e(c,{loading:p,children:e(l,{className:"reasonPopup",children:e(pa,{children:a(t,{children:[e(l,{className:"title",children:"退款原因"}),e(o,{onChange:h,children:m.map(((o,s)=>a(l,{className:"reasonItem",children:[e(l,{className:"label",children:o.flagSettingInfo}),e(n,{value:o.flagSettingInfo})]},s)))})]})})})})})})),os=he((()=>{const{View:l}=s(),{handlePopupShow:o,popupVisible:n,reason:i,goodsPrice:t}=fe(es);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:i?e(l,{className:"chooseResult",children:i}):a(l,{children:["请选择",e(Ca,{style:{fontSize:12,color:"#C3C6CD"},value:"xiangyou1"})]})})]}),a(l,{className:"price",children:[a(l,{className:"fillInLabel",children:[e(l,{className:"icon",children:"*"}),e(l,{className:"word",children:"退款金额"})]}),e(l,{className:"allPrice",children:e(l,{className:"single",children:la(t)})})]}),e(ls,{popupShow:n})]})})),ss=he((()=>{const{View:l,TextArea:o,Textarea:n}=s(),i=n||o,{handleChooseImg:t,imgGroup:c,placeholder:r,handleDelImg:d,limit:m,handleFillInReason:h}=fe(es);return a(l,{className:"afterSalesApplySubFillIn",children:[e(l,{className:"title",children:"补充描述和凭证"}),a(l,{className:"content",children:[e(i,{placeholder:r,rows:5,maxLength:200,style:{marginBottom:15},onInput:h}),a(l,{className:"imgGroup",children:[c.length<m?e(l,{className:"add",onClick:t,children:a(l,{className:"addContent",children:[e(Ca,{value:"shangchuanpingzheng"}),e(l,{className:"word",children:"上传凭证"}),a(l,{className:"num",children:[c.length,"/",m]})]})}):null,c.map(((a,o)=>e(l,{className:"imgItem",style:{backgroundImage:`url(${a})`},children:e(l,{className:"cancel",onClick:d.bind(null,o),children:e(Ca,{value:"close-bold",style:{fontSize:12}})})},o)))]})]})]})})),ns=({refundType:l,contractBillcode:o,skuCode:n,goodsNum:i,goodsPrice:t})=>{const{View:c,WrapLoading:r}=s(),{tip:d,reasonList:m,popupVisible:h,popupLoading:p,handlePopupShow:u,handleChooseReason:g,reason:N,handleChooseImg:C,imgGroup:f,placeholder:b,handleDelImg:y,limit:w,goodsInfo:x,handleFillInReason:k,handleSubmit:v,loading:S}=te({contractBillcode:o,skuCode:n});return e(r,{loading:S,children:e(c,{className:"afterSalesApply",children:a(es.Provider,{value:{tip:d,reasonList:m,popupVisible:h,popupLoading:p,handlePopupShow:u,handleChooseReason:g,reason:N,handleChooseImg:C,imgGroup:f,placeholder:b,handleDelImg:y,limit:w,goodsNum:i,goodsPrice:t,goodsInfo:x,handleFillInReason:k,handleSubmit:v},children:[e(as,{}),e(os,{}),e(ss,{}),e(c,{className:"submitBtn",onClick:v.bind(null,i,o,l),children:"确定"})]})})})},is=(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]}},ts=me.createContext(null),cs=he((()=>{const{companyList:l,popupShow:o,handlePopupShow:n,chooseCompany:i}=fe(ts),{View:t,SmoothRadio:c,Radio:r,Popup:d,ScrollView:m}=s();return e(d,{popupVisible:o,popupHandler:n,children:e(t,{className:"reasonPopup",children:e(pa,{children:a(m,{children:[e(t,{className:"title",children:"物流选择"}),e(c,{onChange:i,children:l.map(((l,o)=>a(t,{className:"reasonItem",children:[e(t,{className:"label",children:l.expressName}),e(r,{value:`${l.expressName}-${l.expressCode}`})]},o)))})]})})})})})),rs=he((()=>{const{handlePopupShow:o,packageName:n,setPackageBillno:i,submitExpressInfo:t}=fe(ts),{View:c,Input:r}=s();return a(l,{children:[a(c,{className:"sender_content",children:[a(c,{className:"sender_name",children:[e(c,{className:"sender_icon",children:"*"}),e(c,{className:"sender_names",children:"物流公司"})]}),e(c,{className:"sender_input name_style",onClick:o,children:e(c,""===n?{style:{color:"#000"},children:"请填写"}:{children:n})})]}),a(c,{className:"sender_content",children:[a(c,{className:"sender_name",children:[e(c,{className:"sender_icon",children:"*"}),e(c,{className:"sender_names",children:"物流单号"})]}),e(c,{className:"sender_input",children:e(r,{type:"number",placeholder:"请填写",onInput:e=>i(e.detail.value)})})]}),e(c,{className:"expressInfo",children:e(c,{className:"expressInfo_btn",onClick:t,children:"提交物流信息"})}),e(cs,{})]})})),ds=he((({refundCode:o})=>{const{afterSalesDetailInfo:n,submitExpressInfo:i,handleCancelAfterSales:t,companyList:c,popupShow:r,handlePopupShow:d,chooseCompany:m,packageName:h,setPackageBillno:p}=ce({refundCode:o}),{dataState:u,gmtCreate:g,ocRefundGoodsList:N,refundMoney:C,refundMeo:f,refundEx:b,refundType:y,ocRefundFileList:w,goodsReceiptMem:x,goodsReceiptPhone:k,goodsReceiptArrdess:v,packageCode:S,packageBillno:I}=n,{View:A,Image:B}=s();return e(A,{className:"afterSalesDetail",children:a(ts.Provider,{value:{companyList:c,popupShow:r,handlePopupShow:d,chooseCompany:m,packageName:h,setPackageBillno:p,submitExpressInfo:i},children:[a(A,{className:"afterSalesDetailTopTitle",style:{background:"#000"},children:[e(A,{className:"left_text",children:is(y,u)}),e(A,{className:"right_time",children:Le(g).format("YYYY-MM-DD HH:mm:ss")})]}),e(A,{className:"afterSalesDetailContent",children:a(A,{className:"refundDetail",children:[e(A,{className:"title",children:"退款信息"}),e(A,{className:"goodsDetail",children:null==N?void 0:N.map(((a,l)=>e(sa,{dataPic:a.dataPic,pricesetNprice:a.pricesetNprice,goodsName:a.goodsName,goodsCamount:a.refundGoodsNum,skuName:a.skuName},l)))}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款原因"}),e(A,{className:"right",children:b})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款金额"}),e(A,{className:"right",children:C})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"描述说明"}),e(A,{className:"right",children:f})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"补充凭证"}),e(A,{className:"right",children:null==w?void 0:w.map(((a,l)=>e(B,{src:a.refundFileUrl,mode:"widthFix",className:"refundImg"},l)))})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"申请时间"}),e(A,{className:"right",children:Le(g).format("YYYY-MM-DD HH:mm:ss")})]}),a(A,{className:"refund_Detail",children:[e(A,{className:"left",children:"退款编号"}),e(A,{className:"right",children:o})]}),e(l,{children:"B02"===y?a(l,{children:[u>0?a(A,{className:"merchantMsg",children:[e(A,{className:"title",children:"商家信息"}),a(A,{className:"name",children:[x,"  ",k]}),e(A,{className:"address",children:v})]}):"",1===u?a(A,{className:"writeMsg",children:[e(A,{className:"wlMsg",children:"物流信息"}),e(rs,{})]}):"",u>1?a(A,{className:"writeMsg",children:[e(A,{className:"wlMsg",children:"物流信息"}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流单号"}),e(A,{className:"code",children:I})]}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流公司"}),e(A,{className:"code",children:h})]}),a(A,{className:"express_content",children:[e(A,{className:"name",children:"物流公司编码"}),e(A,{className:"code",children:S})]})]}):""]}):""})]})}),0===u?e(A,{className:"footerBtn",children:e(A,{className:"btn",onClick:t.bind(null,N[0].goodsCode),children:"撤销申请"})}):null]})})})),ms={B01:{icon:"tuikuan1",label:"仅退款(无需退货)",color:"#58BE6A"},B02:{icon:"tuikuan1",label:"退货退款",color:"#C52922"}},hs={B01:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退款-待审核",3:"退款中",8:"审核通过-退款完成",9:"退款失败"},B02:{"-2":"商家拒绝","-1":"撤销申请",0:"申请退货退款-待审核",1:"审核通过-商家通过申请-填写物流信息",2:"用户填写完物流信息-待商家收货",3:"退款中",6:"商家拒绝收货",8:"商家收货完成-退款完成",9:"退款失败"}},ps=he((({data:l,goAfterSalesDetail:o})=>{var n,i;const{View:t,Image:c}=s();return a(t,{className:"afterSalesListItem",onClick:o.bind(null,l.refundCode),children:[a(t,{className:"title",children:[a(t,{className:"lPart",children:["服务单号: ",l.refundCode]}),a(t,{className:"rPart",children:[e(Ca,{style:{color:null===(n=ms[l.refundType])||void 0===n?void 0:n.color,fontSize:12},value:null===(i=ms[l.refundType])||void 0===i?void 0:i.icon}),e(t,{className:"txt",children:ms[l.refundType].label})]})]}),a(t,{className:"goodsInfo",children:[e(t,{className:"lPart",children:e(c,{src:l.ocRefundGoodsList[0].dataPic,className:"img"})}),a(t,{className:"rPart",children:[e(t,{className:"goodsName",children:l.ocRefundGoodsList[0].goodsName}),a(t,{className:"count",children:["申请数量: ",l.ocRefundGoodsList[0].refundGoodsNum]})]})]}),a(t,{className:"tip",children:[e(t,{class:"lPart",children:hs[l.refundType][l.dataState]}),e(Ca,{style:{fontSize:12,color:"#A5A5A5"},value:"xiangyou1"})]})]})})),us=he((()=>{const{View:a}=s();return e(a,{className:"noData",children:e(a,{className:"txt",children:"暂无售后单"})})})),gs=he((({item:a,refreshNum:l})=>{const{View:o,ScrollView:n,WrapLoading:i}=s(),{afterSalesList:t,goAfterSalesDetail:c,loading:r,haseData:d}=re(a,l);return e(i,{loading:r,children:e(o,{className:"tabContent",children:e(pa,{id:"tabContent",children:e(n,{children:d?t.map((a=>e(ps,{data:a,goAfterSalesDetail:c.bind(null,a.refundCode)}))):e(us,{})})})})})})),Ns=he((({refreshNum:a=0})=>{const{View:l,Tabs:o}=s();return e(l,{className:"afterSalesList",children:e(o,{defaultIndex:0,tabs:de,render:l=>e(gs,{item:l,refreshNum:a})})})}));export{qa as AddressDetail,Ro as AddressList,zo as AddressListBtn,ns as AfterSalesApply,ds as AfterSalesDetail,Ns as AfterSalesList,Jo as AfterSalesType,To as AllCouponList,Vo as AllPromotionList,Bl as ArticleDetail,jl as BackTop,nl as Cart,Nl as CartList,Cl as CartOperate,il as CartTop,El as ClassifyNav,Yl as ClassifyNavOne,Hl as ClassifyNavOneJsx,Ql as ClassifyNavThree,Ul as ClassifyNavTwo,Il as CollectionList,al as CouponList,He as Cube,Ga as EvaluateDetail,ja as EvaluateList,Ya as ExpressInfo,vl as FootPrint,So as GetCouponOne,_l as Goods,ka as GoodsClassify,Ba as GoodsClassifyOne,La as GoodsClassifyTwo,ho as GoodsDetailAndEvaluate,ql as GoodsDetailBanner,io as GoodsDetailCoupon,yo as GoodsDetailHandleBar,xo as GoodsDetailHandleBarOne,Xl as GoodsDetailInfo,eo as GoodsDetailInfoOne,oo as GoodsDetailPromotion,lo as GoodsDetailSku,za as GoodsList,Kl as GoodsSlider,$l as GoodsSlideshow,Gl as Line,fl as MineData,yl as MineFunction,bl as MineOrderEntry,_o as MyAgreement,Qo as MySetting,Uo as MySettingJsx,Ge as Notice,Al as NoticeDetail,ya as OrderDetail,Na as OrderList,Mo as PaymentMode,Ll as PlaceOrderAddress,Rl as PlaceOrderCoupon,zl as PlaceOrderDelivery,Ml as PlaceOrderGood,Ol as PlaceOrderInfo,Fl as PlaceOrderOperate,Xa as PlaceOrderResult,Ca as QjMobileIcon,Wo as RefundAfter,Yo as RefundOnly,Ke as Search,Ma as SearchPage,$e as SearchStyleTwo,Ue as Service,Xe as Slider,Wl as TextLine,Ee as Title,Ye as Video};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "s-material-react",
3
- "version": "1.4.32",
3
+ "version": "1.5.0",
4
4
  "description": "'组件库'",
5
5
  "main": "dist/index.js",
6
6
  "sideEffects": [