s-material-react 0.1.64 → 0.1.66
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/common/icon.scss +57 -37
- package/css/common/index.scss +1 -0
- package/css/common/rateItem.scss +45 -0
- package/css/pages/cart.scss +7 -0
- package/css/pages/goodsDetail.scss +7 -0
- package/css/pages/orderDetail.scss +1 -5
- package/dist/common/card/index.d.ts +3 -2
- package/dist/common/rate/index.d.ts +1 -0
- package/dist/common/rateItem/index.d.ts +1 -0
- package/dist/components/EvaluateDetail/index.d.ts +3 -1
- package/dist/components/Footprint/index.d.ts +1 -0
- package/dist/components/GoodsDetail/components/goodsDetailEvaluate.d.ts +1 -1
- package/dist/components/OrderDetail/component/footer.d.ts +1 -0
- package/dist/components/OrderList/components/orderItem.d.ts +2 -1
- package/dist/components/OrderList/components/orderListItem.d.ts +2 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/routerMap/index.d.ts +1 -0
- package/package.json +2 -2
package/css/common/icon.scss
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
@font-face {
|
|
2
|
-
font-family: 'iconfont';
|
|
3
|
-
src: url('//at.alicdn.com/t/c/
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
font-family: 'iconfont'; /* Project id 3540782 */
|
|
3
|
+
src: url('//at.alicdn.com/t/c/font_3540782_kwbb7d1pnb.woff2?t=1678241812246') format('woff2'),
|
|
4
|
+
url('//at.alicdn.com/t/c/font_3540782_kwbb7d1pnb.woff?t=1678241812246') format('woff'),
|
|
5
|
+
url('//at.alicdn.com/t/c/font_3540782_kwbb7d1pnb.ttf?t=1678241812246') format('truetype');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
8
|
.iconfont {
|
|
@@ -21,122 +21,142 @@
|
|
|
21
21
|
-moz-osx-font-smoothing: grayscale;
|
|
22
22
|
}
|
|
23
23
|
|
|
24
|
+
.icon-star:before {
|
|
25
|
+
content: "\e7df";
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.icon-star-fill:before {
|
|
29
|
+
content: "\e86a";
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.icon-eyes:before {
|
|
33
|
+
content: "\e60f";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.icon-coupons:before {
|
|
37
|
+
content: "\e6ed";
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.icon-collect:before {
|
|
41
|
+
content: "\e793";
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.icon-shouhuodizhi:before {
|
|
45
|
+
content: "\e64e";
|
|
46
|
+
}
|
|
47
|
+
|
|
24
48
|
.icon-shezhi:before {
|
|
25
|
-
content:
|
|
49
|
+
content: "\e602";
|
|
26
50
|
}
|
|
27
51
|
|
|
28
52
|
.icon-xiangyou1:before {
|
|
29
|
-
content:
|
|
53
|
+
content: "\e775";
|
|
30
54
|
}
|
|
31
55
|
|
|
32
56
|
.icon-dizhi:before {
|
|
33
|
-
content:
|
|
57
|
+
content: "\e66e";
|
|
34
58
|
}
|
|
35
59
|
|
|
36
60
|
.icon-kehufuwukefu:before {
|
|
37
|
-
content:
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.icon-youhuiquan:before {
|
|
41
|
-
content: '\e8c0';
|
|
61
|
+
content: "\e698";
|
|
42
62
|
}
|
|
43
63
|
|
|
44
64
|
.icon-daifahuo:before {
|
|
45
|
-
content:
|
|
65
|
+
content: "\e601";
|
|
46
66
|
}
|
|
47
67
|
|
|
48
68
|
.icon-yiwancheng:before {
|
|
49
|
-
content:
|
|
69
|
+
content: "\e6a6";
|
|
50
70
|
}
|
|
51
71
|
|
|
52
72
|
.icon-daishouhuo:before {
|
|
53
|
-
content:
|
|
73
|
+
content: "\e640";
|
|
54
74
|
}
|
|
55
75
|
|
|
56
76
|
.icon-daifukuan:before {
|
|
57
|
-
content:
|
|
77
|
+
content: "\e612";
|
|
58
78
|
}
|
|
59
79
|
|
|
60
80
|
.icon-shouhou:before {
|
|
61
|
-
content:
|
|
81
|
+
content: "\e713";
|
|
62
82
|
}
|
|
63
83
|
|
|
64
84
|
.icon-xiaochengxu:before {
|
|
65
|
-
content:
|
|
85
|
+
content: "\e619";
|
|
66
86
|
}
|
|
67
87
|
|
|
68
88
|
.icon-zhanghu:before {
|
|
69
|
-
content:
|
|
89
|
+
content: "\e611";
|
|
70
90
|
}
|
|
71
91
|
|
|
72
92
|
.icon-roundcheck:before {
|
|
73
|
-
content:
|
|
93
|
+
content: "\e657";
|
|
74
94
|
}
|
|
75
95
|
|
|
76
96
|
.icon-bianjishuru:before {
|
|
77
|
-
content:
|
|
97
|
+
content: "\e8cc";
|
|
78
98
|
}
|
|
79
99
|
|
|
80
100
|
.icon-tianxie:before {
|
|
81
|
-
content:
|
|
101
|
+
content: "\ec88";
|
|
82
102
|
}
|
|
83
103
|
|
|
84
104
|
.icon-close-bold:before {
|
|
85
|
-
content:
|
|
105
|
+
content: "\e685";
|
|
86
106
|
}
|
|
87
107
|
|
|
88
108
|
.icon-jianqu:before {
|
|
89
|
-
content:
|
|
109
|
+
content: "\e60c";
|
|
90
110
|
}
|
|
91
111
|
|
|
92
112
|
.icon-zengjia:before {
|
|
93
|
-
content:
|
|
113
|
+
content: "\e6ea";
|
|
94
114
|
}
|
|
95
115
|
|
|
96
116
|
.icon-shanchu:before {
|
|
97
|
-
content:
|
|
117
|
+
content: "\e623";
|
|
98
118
|
}
|
|
99
119
|
|
|
100
120
|
.icon-jiangxu:before {
|
|
101
|
-
content:
|
|
121
|
+
content: "\e618";
|
|
102
122
|
}
|
|
103
123
|
|
|
104
124
|
.icon-shengxu:before {
|
|
105
|
-
content:
|
|
125
|
+
content: "\e61b";
|
|
106
126
|
}
|
|
107
127
|
|
|
108
128
|
.icon-paixusort-jiang:before {
|
|
109
|
-
content:
|
|
129
|
+
content: "\e7c6";
|
|
110
130
|
}
|
|
111
131
|
|
|
112
132
|
.icon-paixusort-sheng:before {
|
|
113
|
-
content:
|
|
133
|
+
content: "\e7c7";
|
|
114
134
|
}
|
|
115
135
|
|
|
116
136
|
.icon-gouwuche:before {
|
|
117
|
-
content:
|
|
137
|
+
content: "\e73d";
|
|
118
138
|
}
|
|
119
139
|
|
|
120
140
|
.icon-kefu:before {
|
|
121
|
-
content:
|
|
141
|
+
content: "\ec2e";
|
|
122
142
|
}
|
|
123
143
|
|
|
124
144
|
.icon-my:before {
|
|
125
|
-
content:
|
|
145
|
+
content: "\e66f";
|
|
126
146
|
}
|
|
127
147
|
|
|
128
148
|
.icon-fenleiclassify:before {
|
|
129
|
-
content:
|
|
149
|
+
content: "\e7c0";
|
|
130
150
|
}
|
|
131
151
|
|
|
132
152
|
.icon-fenxiang:before {
|
|
133
|
-
content:
|
|
153
|
+
content: "\e600";
|
|
134
154
|
}
|
|
135
155
|
|
|
136
156
|
.icon-cart:before {
|
|
137
|
-
content:
|
|
157
|
+
content: "\e747";
|
|
138
158
|
}
|
|
139
159
|
|
|
140
160
|
.icon-paixu:before {
|
|
141
|
-
content:
|
|
161
|
+
content: "\e610";
|
|
142
162
|
}
|
package/css/common/index.scss
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
.rateItem {
|
|
2
|
+
padding-top: 17px;
|
|
3
|
+
padding-bottom: 20px;
|
|
4
|
+
border-bottom: 1px solid #e2e2e2;
|
|
5
|
+
|
|
6
|
+
&:last-child {
|
|
7
|
+
border-bottom: 0 none;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.topInfo {
|
|
11
|
+
display: flex;
|
|
12
|
+
justify-content: space-between;
|
|
13
|
+
align-items: center;
|
|
14
|
+
margin-bottom: 12px;
|
|
15
|
+
|
|
16
|
+
.lPart {
|
|
17
|
+
display: flex;
|
|
18
|
+
justify-content: space-between;
|
|
19
|
+
align-items: center;
|
|
20
|
+
|
|
21
|
+
.avatar {
|
|
22
|
+
width: 38px;
|
|
23
|
+
height: 38px;
|
|
24
|
+
border-radius: 50%;
|
|
25
|
+
margin-right: 10px;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.rPart {
|
|
30
|
+
color: #999;
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.size {
|
|
36
|
+
font-size: 12px;
|
|
37
|
+
color: #333333;
|
|
38
|
+
margin-bottom: 4px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.content {
|
|
42
|
+
color: #333333;
|
|
43
|
+
font-size: 12px;
|
|
44
|
+
}
|
|
45
|
+
}
|
package/css/pages/cart.scss
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
export interface CardItemType {
|
|
2
2
|
dataPic: string;
|
|
3
3
|
goodsName: number;
|
|
4
|
-
dataBmoney
|
|
4
|
+
dataBmoney?: number;
|
|
5
5
|
goodsCamount: number;
|
|
6
6
|
contractGoodsId: number;
|
|
7
|
+
pricesetNprice?: number;
|
|
7
8
|
}
|
|
8
|
-
export declare const CardJsx: ({ dataPic, goodsName,
|
|
9
|
+
export declare const CardJsx: ({ dataPic, goodsName, goodsCamount, pricesetNprice }: CardItemType) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Rate: ({ onChange, readOnly, size, count }: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const RateItem: ({ item }: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Footprint: import("react").MemoExoticComponent<() => JSX.Element>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const GoodsDetailEvaluate: () => JSX.Element;
|
|
1
|
+
export declare const GoodsDetailEvaluate: ({ evaluateArr }: any) => JSX.Element;
|
|
@@ -6,6 +6,7 @@ interface OrderType {
|
|
|
6
6
|
dataState: number | string;
|
|
7
7
|
contractId: string | number;
|
|
8
8
|
init: () => void;
|
|
9
|
+
contractAppraise: number;
|
|
9
10
|
}
|
|
10
11
|
export interface OrderGoodsItem {
|
|
11
12
|
dataPic: string;
|
|
@@ -15,5 +16,5 @@ export interface OrderGoodsItem {
|
|
|
15
16
|
contractGoodsId: number;
|
|
16
17
|
dataState: number | string;
|
|
17
18
|
}
|
|
18
|
-
export declare function Item({ contractBillcode, dataBmoney, dataBnum, goodsList, dataState, contractId, init }: OrderType): JSX.Element;
|
|
19
|
+
export declare function Item({ contractBillcode, dataBmoney, dataBnum, goodsList, dataState, contractId, init, contractAppraise }: OrderType): JSX.Element;
|
|
19
20
|
export {};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { TabItemType } from '@brushes/simulate-component';
|
|
2
|
-
declare function OrderListItemJsx({ item }: {
|
|
2
|
+
declare function OrderListItemJsx({ item, refreshNum }: {
|
|
3
3
|
item: TabItemType;
|
|
4
|
+
refreshNum: number;
|
|
4
5
|
}): JSX.Element;
|
|
5
6
|
export declare const OrderListItem: import("react").MemoExoticComponent<typeof OrderListItemJsx>;
|
|
6
7
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{memo as c,useState as i,useRef as n,useEffect as t,createElement as l,useMemo as r}from"react";import{useComponent as o,View as d,SmoothSwiper as g,antdMobile as m,ScrollView as h,Loading as b,Tabs as p,Popup as u,SmoothRadio as N,IconMobile as O,NumStep as j,SmoothCheckbox as A,WrapLoading as y}from"@brushes/simulate-component";import{navigatorImpl as f,getEnv as v,switchTabImpl as C,useImmutableCallback as k,navigatorBackImpl as w,getTaro as x}from"@brushes/utils";import{find as I,queryContractPageC as D,checkCollectExit as T,saveCollect as B,deleteCollectByCode as L,queryUsercouponNember as S,getContractNumbers as V}from"qj-b2c-api";import P from"classnames";import{isEqual as R,isEmpty as z,isUndefined as F}from"lodash-es";import{useCube as W,navigatorHandler as M,useOrderOperate as Q,orderStatusImpl as G,routerMap as E,orderStatusList as U,useOrderDetail as K,goodsDetailStore as H,useAddShopping as q,useGoodsDetailImpl as X,useGoodsClassify as J,useGoodsList as Z,useAddressList as Y,useEditAddress as $,usePlaceOrder as _,useOrderResultResult as ee,useCouponList as se,useCartList as ae,useDispatchImpl as ce,useStore as ie,StoreProvider as ne,useOrderResult as te}from"qj-mobile-store";function le(e,s){var a={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&s.indexOf(c)<0&&(a[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(c=Object.getOwnPropertySymbols(e);i<c.length;i++)s.indexOf(c[i])<0&&Object.prototype.propertyIsEnumerable.call(e,c[i])&&(a[c[i]]=e[c[i]])}return a}function re(e,s,a,c){return new(a||(a=Promise))((function(i,n){function t(e){try{r(c.next(e))}catch(e){n(e)}}function l(e){try{r(c.throw(e))}catch(e){n(e)}}function r(e){var s;e.done?i(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(t,l)}r((c=c.apply(e,s||[])).next())}))}const oe=({className:s="iconfont",prefixClass:a="icon",onClick:c=(()=>{}),style:i={fontSize:16,color:"#444",fontWeight:900},value:n})=>{const{Text:t}=o();return e(t,{onClick:c,className:P(a,n?`${a}-${n}`:"",s),style:i})},de={order:"/subpackage/orderlist/index",orderDetail:"/subpackage/orderdetail/index",goodList:"/subpackage/goodlist/index",goodDetail:"/subpackage/gooddetail/index",result:"/subpackage/result/index",rate:"/subpackage/rate/index",search:"/subpackage/search/index",shopping:"/pages/shopping/index",confirm:"/subpackage/orderconfirm/index",addressList:"/subpackage/addresslist/index",addressEditor:"/subpackage/addresseditor/index",setting:"/subpackage/setting/index",couponList:"/subpackage/couponlist/index",paymentMode:"/subpackage/paymentmode/index",collectionList:"/subpackage/collectionlist/index"},ge=c((({defaultValue:a=[],classCode:c="",margin:l,circular:r,cell:d,gap:g=10,goods:m=[],markedPrice:h,paddingTop:b,paddingBottom:p,paddingLeft:u,paddingRight:N})=>{const[O,j]=i(a),A=n(),{View:y,Text:v}=o();return t((()=>{R(A.current,m)||(A.current=m,z(m)?j(a):re(void 0,void 0,void 0,(function*(){try{const e=yield I({goodsCode:m.toString()});j(e.rows)}catch(e){j(a)}})))}),[m]),e(y,Object.assign({style:{paddingTop:b,paddingBottom:p}},{children:e(y,Object.assign({className:P({[`goods-${c}`]:!0}),style:{display:"grid",gap:g,marginBottom:l,gridTemplateColumns:`repeat(${d}, 1fr)`,paddingLeft:u,paddingRight:N}},{children:O.map(((a,c)=>s(y,Object.assign({style:{overflow:"hidden",borderRadius:2===r?0:"8px"},onClick:()=>f(`${de.goodDetail}?skuCode=${a.skuCode}`),className:"goods"},{children:[e(y,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(y,Object.assign({className:"space"},{children:[e(y,Object.assign({className:"titleType"},{children:a.goodsName})),e(y,Object.assign({className:"subTitle"},{children:a.brandName})),s(y,Object.assign({className:"price"},{children:[e(v,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===h&&s(v,Object.assign({className:"markedPrice"},{children:[e(v,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(y,Object.assign({className:"anticon"},{children:e(oe,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),me=({title:s,text:a,backgroundColor:c,color:i,fontSize:n,borderColor:t,paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:g})=>{const{View:m,NoticeBar:h}=o();return m?e(m,Object.assign({style:{paddingTop:l,paddingBottom:r}},{children:e(m,{children:e(h,{speed:50,style:{"--border-color":t,"--font-size":n+"px","--background-color":c,"--text-color":i,paddingLeft:d,paddingRight:g},content:a,color:"alert"})})})):null},he=c((({value:s,fontSize:a,textAlign:c,color:i,backgroundColor:n,fontWeight:t,textDecoration:l,fontStyle:r,paddingTop:d,paddingLeft:g,paddingRight:m,paddingBottom:h})=>{const{View:b}=o();return e(b,Object.assign({style:{paddingTop:d,paddingBottom:h}},{children:e(b,Object.assign({style:{fontSize:a,textAlign:c,color:i,backgroundColor:n,fontWeight:t,textDecoration:l,fontStyle:r,paddingLeft:g,paddingRight:m}},{children:s}))}))})),be=c((({defaultValue:s,type:a,borderRadius:c,paddingTop:i,paddingLeft:n,paddingRight:t,paddingBottom:l,selectImg:r})=>{const{View:d,Image:g}=o(),m=W(s,r);return e(d,Object.assign({style:{paddingTop:i,paddingBottom:l}},{children:e(d,Object.assign({className:`cube-type${a}`,style:{paddingLeft:n,paddingRight:t}},{children:m.map(((s,i)=>{var n,t;return 1===a?e(g,{mode:"widthFix",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:M.bind(null,null===(n=s.link)||void 0===n?void 0:n.value)},i):e(d,{className:"block",style:{backgroundImage:`url(${s.imgUrl})`,width:"100%",borderRadius:c+"px"},onClick:M.bind(null,null===(t=s.link)||void 0===t?void 0:t.value)},i)}))}))}))})),pe=c((({borderRadius:s,height:a,width:c,backgroundColor:i,paddingTop:n,paddingBottom:t})=>{const{View:l}=o();return e(l,Object.assign({style:{paddingTop:n,paddingBottom:t}},{children:e(l,{style:{borderRadius:s+"%",width:c+"%",height:a+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})}))})),ue=c((({url:s,poster:a,autoplay:c,loop:i,paddingTop:n,paddingBottom:t,paddingLeft:l,paddingRight:r})=>{const{View:d}=o();return e(d,Object.assign({style:{paddingTop:n,paddingBottom:t}},{children:e("video",{className:"components-video",src:"https://www.runoob.com/try/demo_source/movie.ogg",poster:a,autoPlay:c,loop:i,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:r}})}))})),Ne=c((({width:s,height:a,top:c,right:i,bottom:n,left:t,borderRadius:l})=>{const{View:r}=o();return e(r,{style:{width:s,height:a,borderRadius:l,top:c,left:t,right:i,bottom:n},className:"components-service"})})),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbk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UqFbWiEPQesPIfj3kjrzyhvg/YuvkW/S2Bb0JnePFp93wXjh+MKvhT8zXLqwjaEGbbSc6GXYbdOejnIyT7K8fTtNXdN2H9eJHMV/JzqQSj3Q/wOhy/Fmd8MrdvF181ShEgjeq2Q/IY0oSei3A4LN5jSz2nkX4LGDNwd8N8LvQKVOMxvhaYUciDxdWoa2yIs5QW1HcskLGZk2wa4KOJnwiKHKROWCYtkINLdN8PyV1oVX6rxjbH+2WT+JHR5JPnXkjuvnRy4vMxyUzgN/RGaZxVIqBA+eayXehK3H+oymstznJAbclQezTIvsgYZfhnzLHQtlLvz60n+xMX+BP0Y+h6U/7ORJTOQGRgmA/8DFKOvGKPxHMsAAAAASUVORK5CYII=",Ae="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",ye=c((({value:a,iconShow:c,fontColor:i,backgroundColor:n,borderRadius:t,paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:g})=>{const{View:m,Image:h}=o();return e(m,Object.assign({onClick:()=>f(de.search),style:{paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:g}},{children:s(m,Object.assign({className:"components-search",style:{backgroundColor:n,borderRadius:t+"px",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(h,{src:Oe,alt:"",mode:"fill",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(m,Object.assign({className:"txt",style:{color:i,display:"inline-block",fontSize:"14px"}},{children:a}))]}))}))})),fe=c((({item:s,type:c})=>{var i,n;const{Image:t,View:l}=o();return e(a,{children:1===c?e(t,{mode:"widthFix",src:s.imgUrl,style:{width:"100%"},onClick:M.bind(null,null===(i=s.link)||void 0===i?void 0:i.value)}):e(l,{className:v()?"slider-block":"pc",style:{backgroundImage:`url(${s.imgUrl})`,width:"100%"},onClick:M.bind(null,null===(n=s.link)||void 0===n?void 0:n.value)})})})),ve=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:i,direction:n,loop:t,paddingTop:l,paddingBottom:r,paddingLeft:o,paddingRight:m,selectImg:h,imgHeight:b})=>{const p=W(s,h);return e(d,Object.assign({style:{paddingTop:l,paddingBottom:r,paddingLeft:o,paddingRight:m}},{children:e(g,{className:v()?"slider-block":"pc",imgHeight:b,data:p,type:a,autoplay:c,autoplayInterval:i,direction:n,loop:t,render:s=>e(fe,{type:a,item:s})})}))})),{JumboTabs:Ce}=m,ke=c((({defaultValue:s=[],type:a,selectGoodsGroup:c=[],marginTop:n,marginBottom:l,borderRadius:r})=>{const[o,d]=i(s);return t((()=>{const e=c.filter((e=>!F(e))).filter((e=>!Object.values(e).every((e=>F(e)))));let a=s;z(e)||(a=e),d(a)}),[c]),e(Ce,Object.assign({style:{marginTop:n+"px",marginBottom:l+"px"}},{children:o.map(((s,a)=>e(Ce.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(ge,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:r})}),a)))}))})),we=({dataPic:a,goodsName:c,dataBmoney:i,goodsCamount:n})=>{const{View:t,Image:l}=o();return s(t,Object.assign({className:"card-item"},{children:[e(l,{src:a,alt:"",className:"card-item-img"}),s(t,Object.assign({className:"card-item-info"},{children:[s(t,Object.assign({className:"card-item-info-container"},{children:[e(t,Object.assign({className:"card-item-info-container-title"},{children:c})),s(t,Object.assign({className:"card-item-info-container-price"},{children:["¥",i]}))]})),s(t,Object.assign({className:"card-item-info-sub"},{children:[e(t,Object.assign({className:"sku"},{children:"30ml"})),s(t,Object.assign({className:"count"},{children:["x ",n]}))]}))]}))]}))},{Button:xe}=m,Ie=s=>{var{dataState:c}=s,i=le(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(De,Object.assign({dataState:c},i))})},De=s=>{var{dataState:a}=s,c=le(s,["dataState"]);const{View:i}=o(),{operateArray:n,handlerImpl:t}=Q(Object.assign({dataState:a},c));return e(i,Object.assign({className:"btnGroup"},{children:n.map(((s,a)=>e(xe,Object.assign({className:P({btn:!0,white:0===a,black:1===a}),onClick:()=>t(s.handler),shape:"rounded"},{children:s.name}))))}))},{Button:Te}=m;function Be({contractBillcode:a,dataBmoney:c,dataBnum:i,goodsList:n,dataState:t,contractId:l,init:r}){const{View:d}=o(),g=G(t);return s(d,Object.assign({className:"orderListItem"},{children:[s(d,Object.assign({onClick:()=>f(`${E.orderDetail}?contractBillcode=${a}`)},{children:[s(d,Object.assign({className:"topInfo"},{children:[s(d,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(Te,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(d,Object.assign({className:"status"},{children:g}))]})),s(d,Object.assign({className:"goodsItemWrap"},{children:[n.map((s=>e(we,Object.assign({},s),s.contractGoodsId))),s(d,Object.assign({className:"allInfo"},{children:[s(d,Object.assign({className:"totalNum"},{children:["共",i,"件商品"]})),s(d,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(Ie,{init:r,contractId:l,contractBillcode:a,dataState:t})]}))}const Le=c((function({item:a}){const{View:c}=o(),r=n(!0),[d,g]=i(!1),[m,p]=i([]),u=n(0),N=v();t((()=>{O()}),[]);const O=()=>{u.current=0,p([]),j()},j=(e={})=>re(this,void 0,void 0,(function*(){if(!r.current)return;g(!0),++u.current;const{code:e}=a;try{const s=yield D({page:u.current,rows:10,isLocalMock:!N,childFlag:!0,dataStateStr:e});r.current=!z(s.rows),p((e=>e.concat(s.rows||[]))),g(!1)}catch(e){console.log(30,e)}}));return e(c,Object.assign({className:"orderListItemWrap",style:{height:N?"100vh":"667px"}},{children:e(h,Object.assign({onScroll:j,style:{height:"calc(100vh - 60px)"}},{children:s(c,{children:[m.map(((e,s)=>l(Be,Object.assign({init:O},e,{key:s})))),d?e(b,{}):null]})}))}))})),Se=c((({defaultIndex:s=0})=>{const{View:a}=o();return e(a,Object.assign({className:"order-container"},{children:e(p,{defaultIndex:s,tabs:U,render:s=>e(a,Object.assign({className:"orderList"},{children:e(Le,{item:s})}))})}))})),Ve=c((({contractBillcode:a})=>{const{View:c,Text:i}=o(),{orderDetail:n,status:t}=K(a||"");return s(c,Object.assign({className:"orderDetail"},{children:[e(c,Object.assign({className:"orderDetailTopTitle"},{children:s(c,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(i,Object.assign({className:"title"},{children:"订单详情"})),s(c,Object.assign({className:"subTitleWrap"},{children:[e("img",{src:je,alt:"",className:"subTitleIcon"}),e(i,Object.assign({className:"subTitle"},{children:t}))]}))]}))})),e(c,Object.assign({className:"orderDetailContent"},{children:s(c,Object.assign({style:{position:"relative",top:-26}},{children:[s(c,Object.assign({className:"addressInfo"},{children:[e(c,Object.assign({className:"lPart"},{children:e("img",{src:je,alt:"",className:"icon"})})),s(c,Object.assign({className:"mPart"},{children:[s(c,Object.assign({className:"personInfo"},{children:[e(i,Object.assign({className:"personName"},{children:n.goodsReceiptMem})),e(i,Object.assign({className:"personPhone"},{children:n.goodsReceiptPhone}))]})),e(c,Object.assign({className:"address"},{children:n.goodsReceiptArrdess}))]})),e(c,Object.assign({className:"rPart"},{children:e("img",{src:je,alt:"",className:"icon"})}))]})),s(c,Object.assign({className:"orderDetailGoodsWrap"},{children:[n.goodsList.map((s=>e(we,Object.assign({},s),s.contractGoodsId))),s(c,Object.assign({className:"priceInfo"},{children:[s(c,Object.assign({className:"priceInfoFloor top"},{children:[s(c,Object.assign({className:"totalNum"},{children:["共",n.goodsNum,"件商品"]})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((n.dataBmoney-n.refundMoney).toFixed(2))]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"商品总额"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",n.contractInmoney]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"优惠"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",n.goodsPmoney]}))]}))]}))]})),s(c,Object.assign({className:"express"},{children:[e(c,Object.assign({className:"label"},{children:"配送方式"})),e(c,Object.assign({className:"name"},{children:"快递"}))]})),s(c,Object.assign({className:"orderInfo"},{children:[e(c,Object.assign({className:"orderInfoItem"},{children:e(c,Object.assign({className:"label"},{children:"订单信息"}))})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"买家留言"})),e(c,Object.assign({className:"name"},{children:n.packageRemark}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"订单编号"})),e(c,Object.assign({className:"name"},{children:n.contractBillcode}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"下单时间"})),e(c,Object.assign({className:"name"},{children:n.gmtCreate}))]}))]})),e(Ie,{contractBillcode:n.contractBillcode,contractId:n.contractId,dataState:n.dataState})]}))}))]}))})),Pe=c((({defaultValue:a,borderRadius:c,paddingTop:i,paddingBottom:n,selectClassifyNav:t})=>{const{View:l,Text:r}=o(),d=W(a,t);return console.log("30",d),e(l,Object.assign({style:{paddingTop:i,paddingBottom:n}},{children:e(l,Object.assign({className:"classifyNav"},{children:d.map(((a,i)=>s(l,Object.assign({className:"classifyNavItem",onClick:()=>{var e;return M(null===(e=a.link)||void 0===e?void 0:e.value)}},{children:[e("img",{src:a.imgUrl,alt:"",className:"img",style:{borderRadius:`${c}px`}}),e(r,Object.assign({className:"label"},{children:a.title}))]}),i)))}))}))})),Re=({starColor:a="#FF0934",starSize:c="12px",itemData:i})=>{const{View:n,Text:t,Image:l}=o(),{Rate:r}=m;return s(n,Object.assign({className:"evaluateItem"},{children:[s(n,Object.assign({className:"userInfo"},{children:[e(l,{src:i.avatar,className:"avatar"}),s(n,Object.assign({className:"userNameWrap"},{children:[e(t,Object.assign({className:"userName"},{children:i.userName})),e(r,{readOnly:!0,value:i.rate,style:{"--star-size":c,"--active-color":a}})]}))]})),s(n,Object.assign({className:"size"},{children:["规格: ",i.size]})),e(n,Object.assign({className:"content"},{children:i.evaluate})),e(n,Object.assign({className:"img-group"},{children:i.imgUrls.map(((s,a)=>e(l,{src:s.imgUrl,className:"img"},a)))}))]}))},ze=({checkCollectionObj:a,setCheckCollectionObj:c,goods:i})=>{const{Text:n,View:l}=o();t((()=>{r()}),[]);const r=()=>re(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:i.rsSkuDomainList[0].skuCode||""};try{const s=yield T(e);c(s)}catch(e){console.log(e)}}));return s(l,Object.assign({onClick:()=>{console.log(123),z(a.dataObj)?re(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:i.rsSkuDomainList[0].skuCode||"",collectOppic:i.dataPic,collectOpcont:i.goodsName,collectOpnum:i.pricesetNprice,goodsOrigin:0};yield B(e)})):re(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:i.rsSkuDomainList[0].skuCode||""};yield L(e)})),r()}},{children:[e("img",{src:Oe,alt:"",className:"icon"}),e(n,Object.assign({className:"txt"},{children:z(a.dataObj)?"收藏":"已收藏"}))]}))},Fe=c((({index:a,item:c,onChange:i})=>{const{View:n,Text:t,Radio:l}=o();return e(n,Object.assign({className:"couponItem"},{children:s(n,Object.assign({className:"coupon-content"},{children:[s(n,Object.assign({className:"price"},{children:[e(t,Object.assign({className:"symbol"},{children:"¥"})),e(t,Object.assign({className:"num"},{children:c.price}))]})),s(n,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"title"},{children:c.title})),s(t,Object.assign({className:"date"},{children:["有效期至:",c.date]}))]})),e(l,{onChange:i,value:c.id,className:"choose"})]}))}))})),{useDispatchImpl:We,useStore:Me}=H,Qe=[{title:"五一大促疯抢 满100立减10",date:"2022-10-01",price:10,id:1},{title:"五一大促疯抢 满100立减10",date:"2022-10-01",price:20,id:2},{title:"五一大促疯抢 满100立减10",date:"2022-10-01",price:30,id:3}],Ge=()=>{const{View:c,Text:n}=o(),[t,l]=i(!1),r=We(),{couponValue:d}=Me();console.log(34,d);return s(a,{children:[s(c,Object.assign({className:"goodsDetail-coupon",onClick:()=>l(!0)},{children:[e(n,Object.assign({className:"label"},{children:"优惠券"})),s(c,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"label"},{children:d?`已选择: ${d}`:"请选择优惠券"})),e("img",{src:Ae,alt:"",className:"icon"})]}))]})),e(u,Object.assign({popupVisible:t,popupHandler:l},{children:e(c,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(c,Object.assign({className:"stampWrap"},{children:e(N,Object.assign({onChange:e=>{r({type:"select",payload:{couponValue:e.detail.value}})},defaultValue:0},{children:Qe.map(((s,a)=>e(Fe,{index:a,item:s},a)))}))}))}))}))]})},Ee=()=>{const{View:s}=o();return e(s,Object.assign({className:"goodsDetailEvaluate"},{children:"1231232"}))},Ue=()=>{const{Text:a,View:c}=o(),i=H.useDispatchImpl();return s(c,Object.assign({className:"goodsDetailHandleBar"},{children:[s(c,Object.assign({className:"linkGroup"},{children:[e(O,{value:"kefu",style:{fontSize:22,display:"block"}}),e(a,Object.assign({className:"txt"},{children:"客服"}))]})),s(c,Object.assign({className:"linkGroup",onClick:()=>C(de.shopping)},{children:[e(O,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(a,Object.assign({className:"txt"},{children:"购物车"}))]})),s(c,Object.assign({className:"btnGroup"},{children:[e(c,Object.assign({className:"btn addCart",onClick:()=>{i({type:"popupImpl",payload:{orderType:0,popupVisible:!0,isNeedButton:!0}})}},{children:"加入购物车"})),e(c,Object.assign({onClick:()=>{i({type:"popupImpl",payload:{orderType:1,popupVisible:!0,isNeedButton:!0}})},className:"btn buy"},{children:"立即购买"}))]}))]}))},Ke=({tabActive:s,goods:a})=>{const{View:c}=o(),[n,l]=i("");return t((()=>{l(a.goodsRemark.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/\<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,""))}),[a.goodsRemark,s]),e(c,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:n||""}})}))},He=({skuName:a,skuOption:c,index:i})=>{const{View:n,Text:t}=o(),{handleChooseSize:l,spec:r}=q();return s(n,Object.assign({className:"sizeArr"},{children:[e(t,Object.assign({className:"title"},{children:a})),e(n,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(n,Object.assign({className:"sizeItem "+(r[i]===s.specValueValue?"active":""),onClick:l.bind(null,s.specValueValue,i)},{children:s.specValueValue}),a)))}))]}))},qe=({goods:a,goodSku:c})=>{const{count:i,spec:n,popupVisible:t,isNeedButton:l,handleStep:r,popupHandler:d,addShoppingImpl:g}=q(),{View:m,Text:h,Image:b}=o();return e(u,Object.assign({popupVisible:t,popupHandler:d},{children:s(m,Object.assign({className:"goodsDetail-size-popup"},{children:[s(m,Object.assign({className:"content"},{children:[s(m,Object.assign({className:"goodsInfo"},{children:[e(m,Object.assign({className:"lPart"},{children:e(b,{src:a.dataPic,alt:"",className:"goodsImg"})})),s(m,Object.assign({className:"rPart"},{children:[e(m,Object.assign({className:"name"},{children:a.goodsShowname||""})),s(m,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice.toFixed(2)||""]})),s(m,Object.assign({className:"chosen"},{children:["已选择: ",n.toString()]}))]}))]})),c.map(((s,a)=>e(He,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(m,Object.assign({className:"countWrap"},{children:[e(m,Object.assign({className:"label"},{children:"购买数量"})),e(j,{count:i,handleStep:r})]}))]})),l&&e(m,Object.assign({className:"btnWrap",onClick:g},{children:e(h,Object.assign({className:"btn"},{children:"确认"}))}))]}))}))},Xe=({promotionList:a})=>{const{View:c,Text:i}=o();return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(i,Object.assign({className:"label"},{children:"促销"})),e(c,Object.assign({className:"group"},{children:a.length?a.map((({discName:s},a)=>e(c,Object.assign({className:"item"},{children:s}),a))):e(c,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},{useDispatchImpl:Je,useStore:Ze}=H,Ye=({goods:c,goodSku:i})=>{const{View:n,Text:t}=o(),{count:l,spec:r}=Ze(),d=Je();return s(a,{children:[s(n,Object.assign({className:"goodsDetail-size",onClick:()=>d({type:"popupImpl",payload:{popupVisible:!0,isNeedButton:!1}})},{children:[e(t,Object.assign({className:"label"},{children:"规格"})),s(n,Object.assign({className:"info"},{children:[s(t,Object.assign({className:"label"},{children:["已选择 数量: ",l," 规格: ",r]})),e("img",{src:Ae,alt:"",className:"icon"})]}))]})),e(qe,{goodSku:i,goods:c})]})},$e=v(),{StoreProvider:_e}=H,es=({skuCode:c})=>{var i;const{View:n,Text:t,Skeleton:l}=o(),{goods:r,promotionArr:d,checkCollectionObj:g,setCheckCollectionObj:m,sliderArr:h,tabActive:b,setTabActive:p,goodSku:u}=X(c);return e(n,Object.assign({className:"GoodsDetailWrap",style:{minHeight:$e?"":"667px",height:$e?"":"auto",overflow:$e?"":"auto"}},{children:z(r)?s(n,Object.assign({className:"skeleton"},{children:[e(l,{animated:!0,style:{"--width":"100%","--height":"300px"}}),e(l.Title,{animated:!0}),e(l.Paragraph,{lineCount:10,animated:!0})]})):s(a,{children:[e(n,Object.assign({className:"topSlider"},{children:e(ve,{selectImg:h,type:1,imgHeight:{height:375,width:375}})})),s(n,Object.assign({className:"goodsDetail-topInfo"},{children:[s(n,{children:[e(t,Object.assign({className:"name"},{children:null==r?void 0:r.goodsName})),s(t,Object.assign({className:"price"},{children:["¥",null===(i=null==r?void 0:r.pricesetNprice)||void 0===i?void 0:i.toFixed(2)]}))]}),e(n,Object.assign({className:"rPart"},{children:e(ze,{goods:r,checkCollectionObj:g,setCheckCollectionObj:m})}))]})),e(Ye,{goods:r,goodSku:u}),e(Xe,{promotionList:d}),e(Ge,{}),s(n,Object.assign({className:"goodsDetailTab"},{children:[s(n,Object.assign({className:"tabs"},{children:[s(t,Object.assign({className:"tabsItem "+(1===b?"active":""),onClick:()=>p(1)},{children:["商品详情",e(t,{className:"line"})]})),s(t,Object.assign({className:"tabsItem "+(2===b?"active":""),onClick:()=>p(2)},{children:["评价",e(t,{className:"line"})]}))]})),e(n,Object.assign({className:"group"},{children:1===b?e(Ke,{tabActive:b,goods:r}):e(Ee,{})}))]})),e(Ue,{})]})}))},ss=c((({skuCode:s})=>e(_e,{children:e(es,{skuCode:s})})));function as(e){const s=process.env.REACT_APP_BASE_URL;return RegExp(/https?/).test(e)?e:s+e}const cs=c((({navList:c,activeKey:i})=>{const{View:n,Text:t}=o();return e(a,{children:c.map((a=>e(n,Object.assign({className:["content",i===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(n,Object.assign({className:"classifyFloor"},{children:[s(n,Object.assign({className:"titleWrap"},{children:[e(t,Object.assign({className:"title"},{children:a.goodsClassName})),e(t,{className:"line"})]})),e(n,Object.assign({className:"container"},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:i,goodsClassName:l})=>s(n,Object.assign({onClick:()=>f(`${de.goodList}?classtreeCode=${a}`),className:"classifyFloorGoodsItem"},{children:[e("img",{src:as(i),className:"logo"}),e(t,Object.assign({className:"title"},{children:l}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:is}=m,ns=c((()=>{const{View:a,Text:c}=o(),{activeKey:i,setActiveKey:n,navList:t,flag:l}=J();return s(a,Object.assign({className:"goodsClassifyWrap",style:{height:l?"100%":"667px"}},{children:[e(a,Object.assign({className:"goods-classify"},{children:s(a,Object.assign({className:"goods-classify-search",onClick:()=>f(de.search)},{children:[e(oe,{value:"fenxiang"}),e(c,{children:"搜索商品"})]}))})),s(a,Object.assign({className:"goodsClassifyContainer"},{children:[e(a,Object.assign({className:"side"},{children:e(is,Object.assign({activeKey:i,onChange:n,style:{"--width":"88px"}},{children:t.map((s=>e(is.Item,{title:s.goodsClassName},s.goodsClassCode)))}))})),e(a,Object.assign({className:"main"},{children:e(cs,{navList:t,activeKey:i})}))]}))]}))})),ts=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],ls=({setParams:a})=>{const{View:c}=o(),[n,t]=i(0),[l,r]=i(ts);return e(c,Object.assign({className:"sortWrap"},{children:l.map((({order:i,sortField:l,name:o},d)=>s(c,Object.assign({className:"sortItem "+(n===d?"active":""),onClick:()=>((e,s,c)=>{t(s),c&&r((e=>(e[s].order="asc"===c?"desc":"asc",[...e]))),a({sortField:e,order:c})})(l,d,i)},{children:[o,i&&e(oe,{style:{color:n===d?"#f00":"#444",fontSize:20},value:"desc"===i?"jiangxu":"shengxu"})]}),d)))}))},rs=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:n,Text:t}=o(),[l,r]=i({}),{loading:d,getData:g,list:m}=Z(a,c,l);return s(n,Object.assign({className:"goodsList"},{children:[s(n,Object.assign({className:"top-info"},{children:[s(n,Object.assign({className:"top-info-search",onClick:()=>f(de.search)},{children:[e(oe,{value:"fenxiang"}),e(t,{children:"搜索商品"})]})),e(ls,{setParams:r})]})),e(n,Object.assign({className:"listWrap"},{children:s(h,Object.assign({onScroll:()=>g(l),style:{height:"100vh"}},{children:[e(n,Object.assign({className:"list"},{children:m.map((a=>s(n,Object.assign({onClick:()=>f(`${de.goodDetail}?skuCode=${a.skuCode}`),className:"listItem"},{children:[e(n,{className:"img",style:{backgroundImage:`url(${a.dataPic})`}}),e(t,Object.assign({className:"name"},{children:a.goodsName})),s(t,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice.toFixed(2)]}))]}),a.skuCode)))})),d?e(b,{}):null]}))}))]}))})),os=v(),ds=c((({placeholder:a,placeholderText:c,history:n})=>{const{View:l,Text:r}=o(),[d,g]=i([]);t((()=>{re(void 0,void 0,void 0,(function*(){if(!os)return;const e=(yield x()).getStorageSync("history")||[];g(e)}))}),[]);const m=k((e=>re(void 0,void 0,void 0,(function*(){if(!os)return;const s=yield x();g((a=>{if(z(e.detail.value))return a;const c=a.concat(e.detail.value);return s.getStorageSync("history",c),c})),h(e.detail.value)})))),h=k((e=>{f(`${de.goodList}?searchParam=${e}`)}));return s(l,Object.assign({className:"searchPage",style:{height:os?"100vh":"667px"}},{children:[s(l,Object.assign({className:"search-title"},{children:[e("img",{src:Oe,alt:""}),e("input",Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:m},a?{placeholder:c}:{})),e(r,Object.assign({className:"btn",onClick:()=>w()},{children:"取消"}))]})),n?s(l,Object.assign({className:"historyWrap"},{children:[s(l,Object.assign({className:"title"},{children:[s(l,Object.assign({className:"label"},{children:[e(l,{className:"icon"}),"历史搜索记录"]})),e(oe,{onClick:()=>re(void 0,void 0,void 0,(function*(){(yield x()).removeStorageSync("history"),g([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(l,Object.assign({className:"content"},{children:d.map(((s,a)=>e(l,Object.assign({onClick:()=>h(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),gs=c((()=>{const{View:a,Text:c}=o();return e(a,Object.assign({className:"goodsDetail-topInfo-wrap"},{children:s(a,Object.assign({className:"goodsDetail-topInfo"},{children:[s(a,{children:[e(c,Object.assign({className:"name"},{children:"宠侣 狗狗零食鸡肉绕饼干620g宠"})),e(c,Object.assign({className:"price"},{children:"¥2300.00"}))]}),s(a,Object.assign({className:"rPart"},{children:[e("img",{src:Oe,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),ms=c((()=>{const{View:s}=o();return e(s,Object.assign({className:"goodsDetail-promotion-wrap"},{children:e(s,{className:"goodsDetail-promotion"})}))})),hs=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],bs=c((()=>{const[c,t]=i("1"),{View:l}=o(),r=n([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),d=e=>{t(e)};return s(a,{children:[e(l,Object.assign({className:"evaluateListTab"},{children:r.current.map((e=>s(l,Object.assign({className:"evaluateListTabItem "+(e.index===c?"active":""),"data-index":e.index,onClick:d.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(l,Object.assign({className:"evaluateListContent"},{children:hs.map(((s,a)=>e(Re,{itemData:s},a)))}))]})})),ps=c((()=>{const{View:a,Image:c}=o(),{Rate:i,Button:t,TextArea:l}=m,r=n("宝贝满足你吗?分享一下它吧");return s(a,Object.assign({className:"evaluateDetail"},{children:[s(a,Object.assign({className:"topInfo"},{children:[s(a,Object.assign({className:"lPart"},{children:[e(c,{src:"https://b2coptdfc134ef12a548e3a60b0d6c316d2976.saas.qjclouds.cn/paas/shop/684080154626121826//84173ffcbdd94364a96a6a2260a8981c.jpg",className:"img"}),s(a,Object.assign({className:"goodsInfo"},{children:[e(a,Object.assign({class:"goodsName"},{children:"外套"})),e(a,Object.assign({class:"goodsSize"},{children:"S/白色"}))]}))]})),e(a,Object.assign({className:"rPart"},{children:e(a,Object.assign({className:"price"},{children:"¥ 9999.99"}))}))]})),s(a,Object.assign({class:"rate"},{children:[e(a,Object.assign({className:"title"},{children:"商品评价"})),e(i,{value:1,style:{"--star-size":"14px","--active-color":"#FF0934"}})]})),e(a,Object.assign({class:"evaluate"},{children:e(l,{className:"content",placeholder:r.current,rows:5,maxLength:30})})),e(t,Object.assign({className:"btn"},{children:"提交"}))]}))})),us=({itemData:a,delAddress:c,setDefault:i,fontSize:n="12px",iconSize:t="12px"})=>{const{View:l,Text:r}=o(),d=v();return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>f(`${de.addressEditor}?addressId=${a.addressId}`)},{children:[s(l,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),s(l,Object.assign({className:"addressInfo"},{children:[s(r,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]})),e(O,{value:"bianjishuru"})]}))]})),s(l,Object.assign({className:"downInfo"},{children:[d?e("label",Object.assign({className:"checkboxMini"},{children:s("checkbox-group",Object.assign({onChange:i,class:"checkBoxWrap"},{children:[e("checkbox",{value:"cb",checked:"1"===(null==a?void 0:a.addressDefault)}),"设为默认地址"]}))})):s("div",Object.assign({className:"checkBoxPc"},{children:[e("input",{type:"checkbox",checked:"1"===a.addressDefault}),e("label",{children:"设为默认地址"})]})),e(r,Object.assign({className:"del",onClick:c},{children:"删除"}))]}))]}))},Ns=c((()=>{const{View:s,Skeleton:c}=o(),i=n(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:i.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),Os=c((({refreshNum:a})=>{const{View:c}=o(),i=v(),{list:n,delAddress:t,setDefault:l,skullShow:r}=Y(a);return s(c,Object.assign({className:"addressListWrap",style:{height:i?"inherit":"667px"}},{children:[r?e(Ns,{}):e(c,Object.assign({className:"addressList"},{children:n.map(((s,a)=>e(us,{itemData:s,setDefault:l.bind(null,s,a),delAddress:t.bind(null,s)},null==s?void 0:s.addressId)))})),e(c,Object.assign({className:"addBtnWrap"},{children:e(c,Object.assign({className:"addBtn",onClick:()=>f(`${de.addressEditor}`)},{children:"+ 新增地址"}))}))]}))})),js=[{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,s)=>new Promise(((e,a)=>{!/^1[3456789]\d{9}$/.test(s)&&s?a("请输入正确手机号"):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"}],As=c((()=>{const{View:s,Skeleton:c}=o(),i=n(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:i.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),ys=v(),fs=c((({addressId:s})=>{const{View:c}=o(),{Form:i,Button:n,Input:t}=m,{skullShow:l,form:r,area:d,defaultAddress:g,handleArea:h,handleDefaultAddress:b,handleFinish:p}=$(s,i,ys);return e(c,Object.assign({className:"addressDetail",style:{height:ys?"100%":"667px"}},{children:l?e(As,{}):e(i,Object.assign({form:r,layout:"horizontal",mode:"card",onFinish:p,footer:e(n,Object.assign({block:!0,type:"submit",color:"primary",size:"large"},{children:"提交"}))},{children:js.map(((s,n)=>e(i.Item,Object.assign({label:s.label,name:s.name,rules:s.rules,trigger:"cascader"===s.type?"onConfirm":"onChange",arrow:!1},{children:"input"===s.type?e(t,Object.assign({},s.props)):"switch"===s.type?e("switch",Object.assign({},s.props,{color:"#000",onChange:b,checked:"1"===g})):"cascader"===s.type?e(a,{children:ys?e("picker",Object.assign({mode:"region",onChange:h,value:"123"},{children:e(c,Object.assign({className:"areaWrap"},{children:d.provinceName?`${d.provinceName}—${d.cityName}-${d.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),n)))}))}))})),vs=({address:s})=>e(a,{children:z(s)?e(ks,{}):e(Cs,{address:s})}),Cs=({address:a})=>{const{View:c,Text:i}=o(),n=r((()=>{const{provinceName:e,addressDefault:s,cityName:c,areaName:i,addressDetail:n,addressMember:t="",addressPhone:l=""}=a;return{addressDefault:"1"===s,addressMember:t,addressPhone:l,address:e+c+i+n}}),[a]);return s(c,Object.assign({className:"address-info"},{children:[e(O,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),s(c,Object.assign({className:"left"},{children:[s(c,Object.assign({className:"left-title"},{children:[e(i,{children:n.addressMember}),e(i,Object.assign({className:"left-padding"},{children:n.addressPhone})),e(i,Object.assign({className:"left-padding left-title-default"},{children:n.addressDefault?"默认":""}))]})),e(c,Object.assign({className:"left-detail"},{children:n.address}))]})),e(O,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},ks=()=>{const{View:c,Text:i}=o();return s(a,{children:[s(c,Object.assign({className:"group"},{children:[e(i,{className:"local"}),e(i,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(i,{className:"arrow"})]})},ws=({payState:c,savePayPrice:i})=>{const{View:n,Text:t}=o(),{shoppingCountPrice:l,freight:r,accountsSumPrice:d,comDisMoney:g}=c;return s(a,{children:[s(n,Object.assign({className:"price blcWrap"},{children:[e(n,Object.assign({className:"title"},{children:"价格明细"})),s(n,Object.assign({className:"express blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"商品总金额"})),s(n,Object.assign({className:"value"},{children:["¥ ",l]}))]})),s(n,Object.assign({className:"coupon blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"优惠金额"})),s(n,Object.assign({className:"value"},{children:["¥ ",g]}))]})),s(n,Object.assign({className:"express blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"运费"})),s(n,Object.assign({className:"value"},{children:["¥ ",r]}))]})),s(n,Object.assign({className:"all blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"总计"})),s(n,Object.assign({className:"value",style:{color:"#000"}},{children:["¥ ",d]}))]}))]})),s(n,Object.assign({className:"placeOrderFooter"},{children:[s(t,Object.assign({className:"price"},{children:["合计: ",d]})),e(n,Object.assign({className:"btn",onClick:i},{children:"生成订单"}))]}))]})},xs=({goodsList:s})=>{console.log(6,s);const{View:a}=o();return e(a,Object.assign({className:"place-order-goods"},{children:s.map(((s,a)=>e(we,Object.assign({},s),a)))}))},Is=v(),Ds=c((({refreshNum:a,goodsNum:c,skuId:i,shoppingGoodsId:n})=>{const{View:t,Text:l}=o(),{savePayPrice:r,address:d,list:g,payState:m}=_({skuId:i,goodsNum:c,shoppingGoodsId:n},a);return s(t,Object.assign({className:"placeOrder",style:{height:Is?"100vh":"667px"}},{children:[e(t,Object.assign({className:"chooseAddress",onClick:()=>f(de.addressList)},{children:e(vs,{address:d})})),e(xs,{goodsList:g.current}),s(t,Object.assign({className:"info blcWrap"},{children:[s(t,Object.assign({className:"express blcItem"},{children:[e(t,Object.assign({className:"label"},{children:"配送方式"})),e(t,Object.assign({className:"value"},{children:"快递"}))]})),s(t,Object.assign({className:"coupon blcItem"},{children:[e(t,Object.assign({className:"label"},{children:"使用优惠"})),s(t,Object.assign({className:"value"},{children:["可选择使用优惠码/优惠码",e(l,{className:"icon"})]}))]}))]})),e(ws,{savePayPrice:r,payState:m.current})]}))})),{useOrderResult:Ts}=ee,Bs=v(),Ls=c((({code:a})=>{const{View:c,Text:i}=o(),{result:n}=Ts(a),{sysRecode:t,dataObj:l}=n;return console.log(15,t,l),e(c,Object.assign({className:"placeOrderResult",style:{height:Bs?"100vh":"667px"}},{children:s(c,t?Object.assign({className:"placeOrderResultContent"},{children:[e(i,{className:"icon"}),e(c,Object.assign({className:"tips"},{children:e(i,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(c,Object.assign({className:"placeOrderResultWrap"},{children:[s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(i,Object.assign({className:"label"},{children:"订单号:"})),e(i,Object.assign({className:"value"},{children:l.contractBillcode}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(i,Object.assign({className:"label"},{children:"支付方式:"})),e(i,Object.assign({className:"value"},{children:"00"===l.contractType?"微信支付":"其他"}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(i,Object.assign({className:"label"},{children:"支付金额:"})),s(i,Object.assign({className:"value"},{children:["¥ ",l.dataBmoney]}))]}))]})),s(c,Object.assign({className:"btnGroup"},{children:[e(c,Object.assign({className:"btn black",onClick:()=>f(`${E.orderDetail}?contractBillcode=${l.contractBillcode}`)},{children:"查看订单"})),e(c,Object.assign({onClick:()=>C(E.classify),className:"btn white"},{children:"继续购物"}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(i,{className:"icon"}),s(c,Object.assign({className:"tips"},{children:[e(i,Object.assign({className:"title"},{children:"订单支付失败"})),e(i,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(c,Object.assign({className:"btnGroup"},{children:e(c,Object.assign({onClick:()=>f(`${E.paymentMode}?code=${n.contractBillcode}`),className:"btn white"},{children:"去支付"}))}))]}))}))})),Ss=({coe:c})=>{const{View:i,Text:n}=o();return e(a,{children:3===c?e(i,Object.assign({className:"couponListItem overdue"},{children:s(i,Object.assign({className:"coupon-content"},{children:[s(i,Object.assign({className:"price"},{children:[e(n,Object.assign({className:"symbol"},{children:"¥"})),e(n,Object.assign({className:"num"},{children:"123"}))]})),s(i,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"title"},{children:"整单立减10元 满199可用"})),e(n,Object.assign({className:"date"},{children:"有效期至:2022-10-01"})),e(i,Object.assign({className:"btn"},{children:"已使用"})),e(i,Object.assign({className:"round"},{children:"已失效"}))]}))]}))})):null})};c((()=>{const{View:s,Skeleton:c}=o(),i=n(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:i.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));const Vs=({coe:c})=>{const{View:i,Text:n}=o();return e(a,{children:1===c?e(i,Object.assign({className:"couponListItem unused"},{children:s(i,Object.assign({className:"coupon-content"},{children:[s(i,Object.assign({className:"price"},{children:[e(n,Object.assign({className:"symbol"},{children:"¥"})),e(n,Object.assign({className:"num"},{children:"123"}))]})),s(i,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"title"},{children:"整单立减10元 满199可用"})),e(n,Object.assign({className:"date"},{children:"有效期至:2022-10-01"})),e(i,Object.assign({className:"btn"},{children:"已使用"}))]}))]}))})):null})},Ps=({coe:c})=>{const{View:i,Text:n}=o();return e(a,{children:2===c?e(i,Object.assign({className:"couponListItem used"},{children:s(i,Object.assign({className:"coupon-content"},{children:[s(i,Object.assign({className:"price"},{children:[e(n,Object.assign({className:"symbol"},{children:"¥"})),e(n,Object.assign({className:"num"},{children:"123"}))]})),s(i,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"title"},{children:"整单立减10元 满199可用"})),e(n,Object.assign({className:"date"},{children:"有效期至:2022-10-01"})),e(i,Object.assign({className:"btn"},{children:"已使用"}))]}))]}))})):null})},Rs=c((()=>{const{View:a,Text:c}=o(),{coe:i,setCoe:n,config:l}=se(),r=v();return t((()=>{S().then((e=>{console.log(26,e)}))}),[]),s(a,Object.assign({className:"couponList",style:{height:r?"100vh":"667px"}},{children:[e(a,Object.assign({className:"couponTab"},{children:l.current.map((t=>s(a,Object.assign({className:"couponTabItem "+(i===t.id?"active":""),onClick:()=>n(t.id)},{children:[t.label,e(c,{className:"icon"})]}),t.id)))})),s(a,Object.assign({className:"couponListContent"},{children:[e(Vs,{coe:i}),e(Ps,{coe:i}),e(Ss,{coe:i})]}))]}))}));function zs({list:a}){const{View:c,Text:i,Image:n,Checkbox:t}=o(),{updateImpl:l}=ae(),r=ce(),{select:d}=ie(),g=(e,s,a)=>re(this,void 0,void 0,(function*(){const c="plus"===a?++s:--s;l(e,c)}));return e(A,Object.assign({onChange:e=>{r({type:"select",payload:e.detail.value})}},{children:a.map(((a,l)=>s(c,Object.assign({className:"cartItem"},{children:[e(c,Object.assign({className:"checkBoxWrap"},{children:e(t,{checked:d.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(n,{className:"img",src:a.dataPic}),s(c,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"goodsName"},{children:a.goodsName})),s(c,Object.assign({className:"size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(c,Object.assign({className:"handleWrap"},{children:[s(i,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(j,{count:a.goodsCamount,handleStep:g.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),l)))}))}const Fs=v(),Ws=()=>{const[a,c]=i(!0),{View:n,Text:t,Checkbox:l}=o(),{cartList:r,amount:d,selectAll:g,allCart:m,toOrderImpl:h,select:b,deleteCart:p}=ae();return s(n,Object.assign({className:"cart",style:{height:Fs?"100%":"667px"}},{children:[e(n,Object.assign({className:"edit"},{children:e(n,Object.assign({className:"btn",onClick:()=>c(!a)},{children:a?"编辑":"完成"}))})),e(n,Object.assign({className:"itemGroup"},{children:e(zs,{list:r.shoppingGoodsList})})),s(n,Object.assign({className:"dashboard"},{children:[e(n,Object.assign({className:"choose"},{children:e(A,Object.assign({onChange:g},{children:e(l,Object.assign({checked:m.current.length===b.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),a?s(n,Object.assign({className:"check"},{children:[s(n,Object.assign({className:"priceGroup"},{children:[s(n,Object.assign({className:"discount"},{children:["优惠: ",s(t,Object.assign({className:"data"},{children:["¥ ",r.disMoney||0]}))]})),s(n,Object.assign({className:"all"},{children:["合计: ",s(t,Object.assign({className:"data"},{children:["¥ ",d.amount]}))]}))]})),s(n,Object.assign({onClick:h,className:"btn"},{children:["结算(",d.num,")"]}))]})):e(n,Object.assign({className:"del"},{children:e(n,Object.assign({onClick:p,className:"btn"},{children:"删除"}))}))]}))]}))},Ms=c((()=>e(ne,{children:e(Ws,{})}))),Qs=()=>{const{View:a,Text:c}=o(),i=n([{icon:"youhuiquan",label:"我的优惠券",link:"couponList"},{icon:"collect",label:"我的收藏",link:"collectionList"},{icon:"dizhi",label:"我的地址",link:"addressList"}]);return e(a,Object.assign({className:"menuList"},{children:i.current.map(((i,n)=>s(a,Object.assign({className:"menuListItem",onClick:()=>f(de[i.link])},{children:[s(a,Object.assign({className:"lPart"},{children:[e(O,{value:i.icon}),e(c,Object.assign({className:"label"},{children:i.label}))]})),e(O,{value:"xiangyou1"})]}),n)))}))},Gs=()=>{const{View:a,Text:c,Badge:i}=o();t((()=>{V().then((e=>{console.log("----------",e)}))}),[]);const l=n([{badge:0,label:"待付款",icon:"daifukuan",link:""},{badge:0,label:"待发货",icon:"daifahuo",link:""},{badge:0,label:"待收货",icon:"daishouhuo",link:""},{badge:0,label:"已完成",icon:"yiwancheng",link:""},{badge:0,label:"退换/售后",icon:"shouhou",link:""}]);return s(a,Object.assign({className:"orderEntry"},{children:[s(a,Object.assign({className:"title"},{children:[e(a,Object.assign({className:"name"},{children:"我的订单"})),e(a,Object.assign({className:"more",onClick:()=>f(de.order)},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:l.current.map(((n,t)=>s(a,Object.assign({onClick:()=>f(`${de.order}?id=${t+1}`),className:"contentItem"},{children:[n.badge?e(i,Object.assign({content:n.badge,color:"#000",style:{color:"#fff",fontSize:12}},{children:e(O,{value:n.icon})})):e(O,{value:n.icon}),e(c,Object.assign({className:"subTitle"},{children:n.label}))]}),t)))}))]}))},Es="400-990-3366",Us=()=>re(void 0,void 0,void 0,(function*(){if(!v())return;const e=yield x();e.showActionSheet({itemList:[`客服电话 ${Es}`],success:()=>{e.makePhoneCall({phoneNumber:Es,fail:e=>{console.log(e)}})},fail:e=>{console.log(e)}})})),Ks=c((({avatarStyle:a,userAvatar:c="",userNickname:i="用户名",banner:n})=>{const{View:t,Text:l}=o(),r=v();return s(t,Object.assign({className:"mine",style:{height:r?"100%":"667px"}},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(O,{value:"shezhi",onClick:()=>f(de.setting)}),e(O,{value:"kehufuwukefu",onClick:Us})]})),s(t,Object.assign({className:"userSetting",onClick:()=>f(de.setting)},{children:[s(t,Object.assign({className:"lPart"},{children:[e(l,Object.assign({className:"name"},{children:i||"用户名称"})),e(t,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e("img",{src:c,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]})),e(Gs,{}),e(Qs,{}),n?e("img",{className:"banner",src:"",alt:""}):null]}))})),Hs=v(),qs=c((({code:a})=>{const{View:c,Text:i}=o(),{paymentImpl:n,channelList:t,contract:l,handleRadio:r,loading:d}=te(a);return s(c,Object.assign({className:"paymentModeWrap",style:{height:Hs?"inherit":"667px"}},{children:[s(c,Object.assign({className:"paymentMode"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(i,Object.assign({className:"title"},{children:[e(O,{value:"roundcheck"}),"订单提交成功"]})),s(c,Object.assign({className:"info"},{children:["订单号:",l.current.contractBillcode," | 总金额:",l.current.dataBmoney,"元"]}))]})),e(c,Object.assign({className:"paymentGroup"},{children:e("radio-group",Object.assign({onChange:r},{children:t.map((a=>s(c,Object.assign({className:"paymentItem"},{children:[e(O,{value:a.icon}),s(c,{children:[s(c,Object.assign({className:"base"},{children:[e(i,{children:a.fchannelName}),Hs?e("radio",{value:a.fchannelCode}):e("input",{type:"radio"})]})),"account"===a.value?s(c,Object.assign({className:"info"},{children:[e(c,{children:"账户余额:0元"}),e(c,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(y,Object.assign({loading:d},{children:e(c,Object.assign({className:"btnGroup",onClick:n},{children:e(c,Object.assign({className:"payment"},{children:"立即支付"}))}))}))]}))}));export{fs as AddressDetail,Os as AddressList,Ms as Cart,Pe as ClassifyNav,Rs as CouponList,be as Cube,ps as EvaluateDetail,bs as EvaluateList,ge as Goods,ns as GoodsClassify,ss as GoodsDetail,ms as GoodsDetailPromotion,gs as GoodsDetailTopInfo,ke as GoodsGroup,rs as GoodsList,pe as Line,Ks as Mine,me as Notice,Ve as OrderDetail,Se as OrderList,qs as PaymentMode,Ds as PlaceOrder,Ls as PlaceOrderResult,oe as QjMobileIcon,ye as Search,ds as SearchPage,Ne as Service,ve as Slider,he as Title,ue as Video};
|
|
1
|
+
import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{memo as c,useState as i,useRef as n,useEffect as t,createElement as l,useMemo as r}from"react";import{useComponent as o,View as d,SmoothSwiper as g,antdMobile as m,ScrollView as h,Loading as b,Tabs as p,Popup as u,SmoothRadio as N,IconMobile as O,NumStep as j,SmoothCheckbox as f,WrapLoading as A}from"@brushes/simulate-component";import{navigatorImpl as y,getEnv as C,switchTabImpl as v,useImmutableCallback as k,navigatorBackImpl as w,getTaro as x}from"@brushes/utils";import{find as I,queryContractPageC as D,checkCollectExit as T,saveCollect as B,deleteCollectByCode as S,queryUsercouponNember as L,getContractNumbers as V}from"qj-b2c-api";import P from"classnames";import{isEqual as z,isEmpty as R,isUndefined as F}from"lodash-es";import{useCube as W,navigatorHandler as M,useOrderOperate as G,orderStatusImpl as U,routerMap as Q,orderStatusList as E,useOrderDetail as H,goodsDetailStore as q,useAddShopping as K,useGoodsDetailImpl as Z,useGoodsClassify as X,useGoodsList as J,useEvaluateDetail as Y,useAddressList as $,useEditAddress as _,usePlaceOrder as ee,useOrderResultResult as se,useCouponList as ae,useCartList as ce,useDispatchImpl as ie,useStore as ne,StoreProvider as te,useOrderResult as le}from"qj-mobile-store";function re(e,s){var a={};for(var c in e)Object.prototype.hasOwnProperty.call(e,c)&&s.indexOf(c)<0&&(a[c]=e[c]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(c=Object.getOwnPropertySymbols(e);i<c.length;i++)s.indexOf(c[i])<0&&Object.prototype.propertyIsEnumerable.call(e,c[i])&&(a[c[i]]=e[c[i]])}return a}function oe(e,s,a,c){return new(a||(a=Promise))((function(i,n){function t(e){try{r(c.next(e))}catch(e){n(e)}}function l(e){try{r(c.throw(e))}catch(e){n(e)}}function r(e){var s;e.done?i(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(t,l)}r((c=c.apply(e,s||[])).next())}))}const de=({className:s="iconfont",prefixClass:a="icon",onClick:c=(()=>{}),style:i={fontSize:16,color:"#444",fontWeight:900},value:n})=>{const{Text:t}=o();return e(t,{onClick:c,className:P(a,n?`${a}-${n}`:"",s),style:i})},ge={order:"/subpackage/orderlist/index",orderDetail:"/subpackage/orderdetail/index",goodList:"/subpackage/goodlist/index",goodDetail:"/subpackage/gooddetail/index",result:"/subpackage/result/index",rate:"/subpackage/rate/index",search:"/subpackage/search/index",shopping:"/pages/shopping/index",confirm:"/subpackage/orderconfirm/index",addressList:"/subpackage/addresslist/index",addressEditor:"/subpackage/addresseditor/index",setting:"/subpackage/setting/index",couponList:"/subpackage/couponlist/index",paymentMode:"/subpackage/paymentmode/index",collectionList:"/subpackage/collectionlist/index",footprint:"/subpackage/footprint/index"},me=c((({defaultValue:a=[],classCode:c="",margin:l,circular:r,cell:d,gap:g=10,goods:m=[],markedPrice:h,paddingTop:b,paddingBottom:p,paddingLeft:u,paddingRight:N})=>{const[O,j]=i(a),f=n(),{View:A,Text:C}=o();return t((()=>{z(f.current,m)||(f.current=m,R(m)?j(a):oe(void 0,void 0,void 0,(function*(){try{const e=yield I({goodsCode:m.toString()});j(e.rows)}catch(e){j(a)}})))}),[m]),e(A,Object.assign({style:{paddingTop:b,paddingBottom:p}},{children:e(A,Object.assign({className:P({[`goods-${c}`]:!0}),style:{display:"grid",gap:g,marginBottom:l,gridTemplateColumns:`repeat(${d}, 1fr)`,paddingLeft:u,paddingRight:N}},{children:O.map(((a,c)=>s(A,Object.assign({style:{overflow:"hidden",borderRadius:2===r?0:"8px"},onClick:()=>y(`${ge.goodDetail}?skuCode=${a.skuCode}`),className:"goods"},{children:[e(A,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(A,Object.assign({className:"space"},{children:[e(A,Object.assign({className:"titleType"},{children:a.goodsName})),e(A,Object.assign({className:"subTitle"},{children:a.brandName})),s(A,Object.assign({className:"price"},{children:[e(C,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===h&&s(C,Object.assign({className:"markedPrice"},{children:[e(C,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(A,Object.assign({className:"anticon"},{children:e(de,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),he=({title:s,text:a,backgroundColor:c,color:i,fontSize:n,borderColor:t,paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:g})=>{const{View:m,NoticeBar:h}=o();return m?e(m,Object.assign({style:{paddingTop:l,paddingBottom:r}},{children:e(m,{children:e(h,{speed:50,style:{"--border-color":t,"--font-size":n+"px","--background-color":c,"--text-color":i,paddingLeft:d,paddingRight:g},content:a,color:"alert"})})})):null},be=c((({value:s,fontSize:a,textAlign:c,color:i,backgroundColor:n,fontWeight:t,textDecoration:l,fontStyle:r,paddingTop:d,paddingLeft:g,paddingRight:m,paddingBottom:h})=>{const{View:b}=o();return e(b,Object.assign({style:{paddingTop:d,paddingBottom:h}},{children:e(b,Object.assign({style:{fontSize:a,textAlign:c,color:i,backgroundColor:n,fontWeight:t,textDecoration:l,fontStyle:r,paddingLeft:g,paddingRight:m}},{children:s}))}))})),pe=c((({defaultValue:s,type:a,borderRadius:c,paddingTop:i,paddingLeft:n,paddingRight:t,paddingBottom:l,selectImg:r})=>{const{View:d,Image:g}=o(),m=W(s,r);return e(d,Object.assign({style:{paddingTop:i,paddingBottom:l}},{children:e(d,Object.assign({className:`cube-type${a}`,style:{paddingLeft:n,paddingRight:t}},{children:m.map(((s,i)=>{var n,t;return 1===a?e(g,{mode:"widthFix",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:M.bind(null,null===(n=s.link)||void 0===n?void 0:n.value)},i):e(d,{className:"block",style:{backgroundImage:`url(${s.imgUrl})`,width:"100%",borderRadius:c+"px"},onClick:M.bind(null,null===(t=s.link)||void 0===t?void 0:t.value)},i)}))}))}))})),ue=c((({borderRadius:s,height:a,width:c,backgroundColor:i,paddingTop:n,paddingBottom:t})=>{const{View:l}=o();return e(l,Object.assign({style:{paddingTop:n,paddingBottom:t}},{children:e(l,{style:{borderRadius:s+"%",width:c+"%",height:a+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})}))})),Ne=c((({url:s,poster:a,autoplay:c,loop:i,paddingTop:n,paddingBottom:t,paddingLeft:l,paddingRight:r})=>{const{View:d}=o();return e(d,Object.assign({style:{paddingTop:n,paddingBottom:t}},{children:e("video",{className:"components-video",src:"https://www.runoob.com/try/demo_source/movie.ogg",poster:a,autoPlay:c,loop:i,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:r}})}))})),Oe=c((({width:s,height:a,top:c,right:i,bottom:n,left:t,borderRadius:l})=>{const{View:r}=o();return e(r,{style:{width:s,height:a,borderRadius:l,top:c,left:t,right:i,bottom:n},className:"components-service"})})),je="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2BMwHnKH+fCNgHOB7gfwv2vwF/BI4E/gD8Cvg68DXgh9tGEomJzHkHOCewH3B54LzAGYFjJOa+K6uAEAifAt4HfAD4eY/+ZtF0TgA4FnBN4ICy8KdsLOF/A18C3g28Gji88e+N0v0cAHAh4JbATYCTjSKlHT96BPAa4GXAt0ccR9WfnioAjg7cGHgQcK6qM+7f2b+Aw4DHleOif48j9jA1AHiR80t/MHC2EeUS/emPAg8H3httMDW+KQHg2sDBwBmmJqTAeN4B3B34VoB3UixTAMBpgMcDt5iUZPKD8Yn5dOARwF/yzcdpMSYA/O37FYEdd5zpN/nVbwIHAh9q0nvlTscCwEmBlwJXrzyfqXT3T+AxwKMAL42TpTEAcFnglYBb/3an9wM3BX461YkODYC7lXOyj8Z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qU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Ae=c((({value:a,iconShow:c,fontColor:i,backgroundColor:n,borderRadius:t,paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:g})=>{const{View:m,Image:h}=o();return e(m,Object.assign({onClick:()=>y(ge.search),style:{paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:g}},{children:s(m,Object.assign({className:"components-search",style:{backgroundColor:n,borderRadius:t+"px",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(h,{src:je,alt:"",mode:"fill",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(m,Object.assign({className:"txt",style:{color:i,display:"inline-block",fontSize:"14px"}},{children:a}))]}))}))})),ye=c((({item:s,type:c})=>{var i,n;const{Image:t,View:l}=o();return e(a,{children:1===c?e(t,{mode:"widthFix",src:s.imgUrl,style:{width:"100%"},onClick:M.bind(null,null===(i=s.link)||void 0===i?void 0:i.value)}):e(l,{className:C()?"slider-block":"pc",style:{backgroundImage:`url(${s.imgUrl})`,width:"100%"},onClick:M.bind(null,null===(n=s.link)||void 0===n?void 0:n.value)})})})),Ce=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:i,direction:n,loop:t,paddingTop:l,paddingBottom:r,paddingLeft:o,paddingRight:m,selectImg:h,imgHeight:b})=>{const p=W(s,h);return e(d,Object.assign({style:{paddingTop:l,paddingBottom:r,paddingLeft:o,paddingRight:m}},{children:e(g,{className:C()?"slider-block":"pc",imgHeight:b,data:p,type:a,autoplay:c,autoplayInterval:i,direction:n,loop:t,render:s=>e(ye,{type:a,item:s})})}))})),{JumboTabs:ve}=m,ke=c((({defaultValue:s=[],type:a,selectGoodsGroup:c=[],marginTop:n,marginBottom:l,borderRadius:r})=>{const[o,d]=i(s);return t((()=>{const e=c.filter((e=>!F(e))).filter((e=>!Object.values(e).every((e=>F(e)))));let a=s;R(e)||(a=e),d(a)}),[c]),e(ve,Object.assign({style:{marginTop:n+"px",marginBottom:l+"px"}},{children:o.map(((s,a)=>e(ve.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(me,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:r})}),a)))}))})),we=({dataPic:a,goodsName:c,goodsCamount:i,pricesetNprice:n})=>{const{View:t,Image:l}=o();return s(t,Object.assign({className:"card-item"},{children:[e(l,{src:a,alt:"",className:"card-item-img"}),s(t,Object.assign({className:"card-item-info"},{children:[s(t,Object.assign({className:"card-item-info-container"},{children:[e(t,Object.assign({className:"card-item-info-container-title"},{children:c})),s(t,Object.assign({className:"card-item-info-container-price"},{children:["¥",n]}))]})),s(t,Object.assign({className:"card-item-info-sub"},{children:[e(t,Object.assign({className:"sku"},{children:"30ml"})),s(t,Object.assign({className:"count"},{children:["x ",i]}))]}))]}))]}))},{Button:xe}=m,Ie=s=>{var{dataState:c}=s,i=re(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(De,Object.assign({dataState:c},i))})},De=s=>{var{dataState:a,contractAppraise:c}=s,i=re(s,["dataState","contractAppraise"]);const{View:n}=o();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:t,handlerImpl:l}=G(Object.assign({dataState:a},i));return e(n,Object.assign({className:"btnGroup"},{children:t.map(((s,a)=>e(xe,Object.assign({className:P({btn:!0,white:0===a,black:1===a}),onClick:()=>l(s.handler),shape:"rounded"},{children:s.name}))))}))},{Button:Te}=m;function Be({contractBillcode:a,dataBmoney:c,dataBnum:i,goodsList:n,dataState:t,contractId:l,init:r,contractAppraise:d}){const{View:g}=o(),m=U(t);return s(g,Object.assign({className:"orderListItem"},{children:[s(g,Object.assign({onClick:()=>y(`${Q.orderDetail}?contractBillcode=${a}`)},{children:[s(g,Object.assign({className:"topInfo"},{children:[s(g,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(Te,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(g,Object.assign({className:"status"},{children:m}))]})),s(g,Object.assign({className:"goodsItemWrap"},{children:[n.map((s=>e(we,Object.assign({},s),s.contractGoodsId))),s(g,Object.assign({className:"allInfo"},{children:[s(g,Object.assign({className:"totalNum"},{children:["共",i,"件商品"]})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(Ie,{init:r,contractId:l,contractBillcode:a,dataState:t,contractAppraise:d})]}))}const Se=c((function({item:a,refreshNum:c}){const{View:r}=o(),d=n(!0),[g,m]=i(!1),[p,u]=i([]),N=n(0),O=C();t((()=>{j()}),[c]);const j=()=>{N.current=0,u([]),f()},f=(e={})=>oe(this,void 0,void 0,(function*(){if(!d.current)return;m(!0),++N.current;const{code:e}=a;try{const s=yield D({page:N.current,rows:10,isLocalMock:!O,childFlag:!0,dataStateStr:e});d.current=!R(s.rows),u((e=>e.concat(s.rows||[]))),m(!1)}catch(e){console.log(30,e)}}));return e(r,Object.assign({className:"orderListItemWrap",style:{height:O?"100vh":"667px"}},{children:e(h,Object.assign({onScroll:f,style:{height:"calc(100vh - 60px)"}},{children:s(r,{children:[p.map(((e,s)=>l(Be,Object.assign({init:j},e,{key:s})))),g?e(b,{}):null]})}))}))})),Le=c((({defaultIndex:s=0,refreshNum:a=0})=>{const{View:c}=o();return e(c,Object.assign({className:"order-container"},{children:e(p,{defaultIndex:s,tabs:E,render:s=>e(c,Object.assign({className:"orderList"},{children:e(Se,{item:s,refreshNum:a})}))})}))})),Ve=c((({contractBillcode:a})=>{const{View:c,Text:i}=o(),{orderDetail:n,status:t}=H(a||"");return s(c,Object.assign({className:"orderDetail"},{children:[e(c,Object.assign({className:"orderDetailTopTitle"},{children:s(c,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(i,Object.assign({className:"title"},{children:(()=>{switch(n.dataState){case-1:return"已取消";case 1:return"需付款";case 2:return"等待发货";case 3:return"等待收货";case 4:return"等待评价";case 5:return"已完成";default:return""}})()})),e(c,Object.assign({className:"subTitleWrap"},{children:e(i,Object.assign({className:"subTitle"},{children:t}))}))]}))})),e(c,Object.assign({className:"orderDetailContent"},{children:s(c,Object.assign({style:{position:"relative",top:-26}},{children:[s(c,Object.assign({className:"addressInfo"},{children:[e(c,{className:"lPart"}),s(c,Object.assign({className:"mPart"},{children:[s(c,Object.assign({className:"personInfo"},{children:[e(i,Object.assign({className:"personName"},{children:n.goodsReceiptMem})),e(i,Object.assign({className:"personPhone"},{children:n.goodsReceiptPhone}))]})),e(c,Object.assign({className:"address"},{children:n.goodsReceiptArrdess}))]})),e(c,{className:"rPart"})]})),s(c,Object.assign({className:"orderDetailGoodsWrap"},{children:[n.goodsList.map((s=>e(we,Object.assign({},s),s.contractGoodsId))),s(c,Object.assign({className:"priceInfo"},{children:[s(c,Object.assign({className:"priceInfoFloor top"},{children:[s(c,Object.assign({className:"totalNum"},{children:["共",n.goodsNum,"件商品"]})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((n.dataBmoney-n.refundMoney).toFixed(2))]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"商品总额"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",n.contractInmoney]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"优惠"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",n.goodsPmoney]}))]}))]}))]})),s(c,Object.assign({className:"express"},{children:[e(c,Object.assign({className:"label"},{children:"配送方式"})),e(c,Object.assign({className:"name"},{children:"快递"}))]})),s(c,Object.assign({className:"orderInfo"},{children:[e(c,Object.assign({className:"orderInfoItem"},{children:e(c,Object.assign({className:"label"},{children:"订单信息"}))})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"买家留言"})),e(c,Object.assign({className:"name"},{children:n.packageRemark}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"订单编号"})),e(c,Object.assign({className:"name"},{children:n.contractBillcode}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"下单时间"})),e(c,Object.assign({className:"name"},{children:n.gmtCreate}))]}))]})),e(c,Object.assign({className:"btnGroupFooter"},{children:e(Ie,{contractBillcode:n.contractBillcode,contractId:n.contractId,dataState:n.dataState})}))]}))}))]}))})),Pe=c((({defaultValue:a,borderRadius:c,paddingTop:i,paddingBottom:n,selectClassifyNav:t})=>{const{View:l,Text:r}=o(),d=W(a,t);return console.log("30",d),e(l,Object.assign({style:{paddingTop:i,paddingBottom:n}},{children:e(l,Object.assign({className:"classifyNav"},{children:d.map(((a,i)=>s(l,Object.assign({className:"classifyNavItem",onClick:()=>{var e;return M(null===(e=a.link)||void 0===e?void 0:e.value)}},{children:[e("img",{src:a.imgUrl,alt:"",className:"img",style:{borderRadius:`${c}px`}}),e(r,Object.assign({className:"label"},{children:a.title}))]}),i)))}))}))})),ze=({starColor:a="#FF0934",starSize:c="12px",itemData:i})=>{const{View:n,Text:t,Image:l}=o(),{Rate:r}=m;return s(n,Object.assign({className:"evaluateItem"},{children:[s(n,Object.assign({className:"userInfo"},{children:[e(l,{src:i.avatar,className:"avatar"}),s(n,Object.assign({className:"userNameWrap"},{children:[e(t,Object.assign({className:"userName"},{children:i.userName})),e(r,{readOnly:!0,value:i.rate,style:{"--star-size":c,"--active-color":a}})]}))]})),s(n,Object.assign({className:"size"},{children:["规格: ",i.size]})),e(n,Object.assign({className:"content"},{children:i.evaluate})),e(n,Object.assign({className:"img-group"},{children:i.imgUrls.map(((s,a)=>e(l,{src:s.imgUrl,className:"img"},a)))}))]}))},Re=({checkCollectionObj:a,setCheckCollectionObj:c,goods:i})=>{const{Text:n,View:l}=o();t((()=>{r()}),[]);const r=()=>oe(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:i.rsSkuDomainList[0].skuCode||""};try{const s=yield T(e);c(s)}catch(e){console.log(e)}}));return s(l,Object.assign({onClick:()=>{console.log(123),R(a.dataObj)?oe(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:i.rsSkuDomainList[0].skuCode||"",collectOppic:i.dataPic,collectOpcont:i.goodsName,collectOpnum:i.pricesetNprice,goodsOrigin:0};yield B(e)})):oe(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:i.rsSkuDomainList[0].skuCode||""};yield S(e)})),r()}},{children:[e("img",{src:je,alt:"",className:"icon"}),e(n,Object.assign({className:"txt"},{children:R(a.dataObj)?"收藏":"已收藏"}))]}))},Fe=c((({index:a,item:c,onChange:i})=>{const{View:n,Text:t,Radio:l}=o();return e(n,Object.assign({className:"couponItem"},{children:s(n,Object.assign({className:"coupon-content"},{children:[s(n,Object.assign({className:"price"},{children:[e(t,Object.assign({className:"symbol"},{children:"¥"})),e(t,Object.assign({className:"num"},{children:c.price}))]})),s(n,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"title"},{children:c.title})),s(t,Object.assign({className:"date"},{children:["有效期至:",c.date]}))]})),e(l,{onChange:i,value:c.id,className:"choose"})]}))}))})),{useDispatchImpl:We,useStore:Me}=q,Ge=[{title:"五一大促疯抢 满100立减10",date:"2022-10-01",price:10,id:1},{title:"五一大促疯抢 满100立减10",date:"2022-10-01",price:20,id:2},{title:"五一大促疯抢 满100立减10",date:"2022-10-01",price:30,id:3}],Ue=()=>{const{View:c,Text:n}=o(),[t,l]=i(!1),r=We(),{couponValue:d}=Me();console.log(34,d);return s(a,{children:[s(c,Object.assign({className:"goodsDetail-coupon",onClick:()=>l(!0)},{children:[e(n,Object.assign({className:"label"},{children:"优惠券"})),s(c,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"label"},{children:d?`已选择: ${d}`:"请选择优惠券"})),e("img",{src:fe,alt:"",className:"icon"})]}))]})),e(u,Object.assign({popupVisible:t,popupHandler:l},{children:e(c,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(c,Object.assign({className:"stampWrap"},{children:e(N,Object.assign({onChange:e=>{r({type:"select",payload:{couponValue:e.detail.value}})},defaultValue:0},{children:Ge.map(((s,a)=>e(Fe,{index:a,item:s},a)))}))}))}))}))]})},Qe=({onChange:s,readOnly:a=!1,size:c=22,count:n})=>{const{View:l}=o(),[r,d]=i([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);t((()=>{if(n){const e=[...r];for(let s=0;s<e.length;s++)e[s].icon=s>n-1?"star":"star-fill";d(e)}}),[]);const g=e=>{if(!a){for(let s=0;s<r.length;s++)r[s].icon=s>e?"star":"star-fill";d([...r]),s(e+1)}};return e(l,{children:r.map(((s,a)=>e(de,{onClick:g.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:c}},a)))})},Ee=({item:a})=>{const{View:c,Image:i}=o();return s(c,Object.assign({className:"rateItem"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(i,{src:a.userImgurl,className:"avatar"}),s(c,Object.assign({className:"userInfo"},{children:[e(c,Object.assign({className:"name"},{children:a.userName})),e(Qe,{readOnly:!0,size:14,count:a.evaluateScopeReList.length})]}))]})),e(c,Object.assign({className:"rPart"},{children:`${new Date(a.gmtCreate).getFullYear()}-${new Date(a.gmtCreate).getMonth()+1}-${new Date(a.gmtCreate).getDate()}`}))]})),e(c,Object.assign({className:"size"},{children:a.skuName})),e(c,Object.assign({className:"content"},{children:a.evaluateGoodsContent}))]}))},He=({evaluateArr:a})=>{const{View:c}=o(),i=n(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:i.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",i.current.length,")"]})),i.current.slice(0,5).map(((s,a)=>e(Ee,{item:s},a)))]}):e(c,Object.assign({className:"noData"},{children:"暂无评论"}))}))},qe=()=>{const{Text:a,View:c}=o(),i=q.useDispatchImpl();return s(c,Object.assign({className:"goodsDetailHandleBar"},{children:[s(c,Object.assign({className:"linkGroup"},{children:[e(O,{value:"kefu",style:{fontSize:22,display:"block"}}),e(a,Object.assign({className:"txt"},{children:"客服"}))]})),s(c,Object.assign({className:"linkGroup",onClick:()=>v(ge.shopping)},{children:[e(O,{value:"gouwuche",style:{fontSize:22,display:"block"}}),e(a,Object.assign({className:"txt"},{children:"购物车"}))]})),s(c,Object.assign({className:"btnGroup"},{children:[e(c,Object.assign({className:"btn addCart",onClick:()=>{i({type:"popupImpl",payload:{orderType:0,popupVisible:!0,isNeedButton:!0}})}},{children:"加入购物车"})),e(c,Object.assign({onClick:()=>{i({type:"popupImpl",payload:{orderType:1,popupVisible:!0,isNeedButton:!0}})},className:"btn buy"},{children:"立即购买"}))]}))]}))},Ke=({tabActive:s,goods:a})=>{const{View:c}=o(),[n,l]=i("");return t((()=>{l(a.goodsRemark.replace(/<style>[\s\S]*<\/style>/gi,"").replace(/\<img/gi,'<img class="mystyle" mode="widthFix"').replace(/<!--[\s\S]*-->/gi,""))}),[a.goodsRemark,s]),e(c,Object.assign({className:"goodsDetail-info"},{children:e("div",{dangerouslySetInnerHTML:{__html:n||""}})}))},Ze=({skuName:a,skuOption:c,index:i})=>{const{View:n,Text:t}=o(),{handleChooseSize:l,spec:r}=K();return s(n,Object.assign({className:"sizeArr"},{children:[e(t,Object.assign({className:"title"},{children:a})),e(n,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(n,Object.assign({className:"sizeItem "+(r[i]===s.specValueValue?"active":""),onClick:l.bind(null,s.specValueValue,i)},{children:s.specValueValue}),a)))}))]}))},Xe=({goods:a,goodSku:c})=>{const{count:i,spec:n,popupVisible:t,isNeedButton:l,handleStep:r,popupHandler:d,addShoppingImpl:g}=K(),{View:m,Text:h,Image:b}=o();return e(u,Object.assign({popupVisible:t,popupHandler:d},{children:s(m,Object.assign({className:"goodsDetail-size-popup"},{children:[s(m,Object.assign({className:"content"},{children:[s(m,Object.assign({className:"goodsInfo"},{children:[e(m,Object.assign({className:"lPart"},{children:e(b,{src:a.dataPic,alt:"",className:"goodsImg"})})),s(m,Object.assign({className:"rPart"},{children:[e(m,Object.assign({className:"name"},{children:a.goodsShowname||""})),s(m,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice.toFixed(2)||""]})),s(m,Object.assign({className:"chosen"},{children:["已选择: ",n.toString()]}))]}))]})),c.map(((s,a)=>e(Ze,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(m,Object.assign({className:"countWrap"},{children:[e(m,Object.assign({className:"label"},{children:"购买数量"})),e(j,{count:i,handleStep:r})]}))]})),l&&e(m,Object.assign({className:"btnWrap",onClick:g},{children:e(h,Object.assign({className:"btn"},{children:"确认"}))}))]}))}))},Je=({promotionList:a})=>{const{View:c,Text:i}=o();return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(i,Object.assign({className:"label"},{children:"促销"})),e(c,Object.assign({className:"group"},{children:a.length?a.map((({discName:s},a)=>e(c,Object.assign({className:"item"},{children:s}),a))):e(c,Object.assign({className:"noPromotion"},{children:"暂无促销活动"}))}))]}))},{useDispatchImpl:Ye,useStore:$e}=q,_e=({goods:c,goodSku:i})=>{const{View:n,Text:t}=o(),{count:l,spec:r}=$e(),d=Ye();return s(a,{children:[s(n,Object.assign({className:"goodsDetail-size",onClick:()=>d({type:"popupImpl",payload:{popupVisible:!0,isNeedButton:!1}})},{children:[e(t,Object.assign({className:"label"},{children:"规格"})),s(n,Object.assign({className:"info"},{children:[s(t,Object.assign({className:"label"},{children:["已选择 数量: ",l," 规格: ",r]})),e("img",{src:fe,alt:"",className:"icon"})]}))]})),e(Xe,{goodSku:i,goods:c})]})},es=C(),{StoreProvider:ss}=q,as=({skuCode:c})=>{var i;const{View:n,Text:t,Skeleton:l}=o(),{goods:r,promotionArr:d,checkCollectionObj:g,setCheckCollectionObj:m,sliderArr:h,tabActive:b,setTabActive:p,goodSku:u,evaluateArr:N}=Z(c);return e(n,Object.assign({className:"GoodsDetailWrap",style:{minHeight:es?"":"667px",height:es?"":"auto",overflow:es?"":"auto"}},{children:R(r)?s(n,Object.assign({className:"skeleton"},{children:[e(l,{animated:!0,style:{"--width":"100%","--height":"300px"}}),e(l.Title,{animated:!0}),e(l.Paragraph,{lineCount:10,animated:!0})]})):s(a,{children:[e(n,Object.assign({className:"topSlider"},{children:e(Ce,{selectImg:h,type:1,imgHeight:{height:375,width:375}})})),s(n,Object.assign({className:"goodsDetail-topInfo"},{children:[s(n,{children:[e(t,Object.assign({className:"name"},{children:null==r?void 0:r.goodsName})),s(t,Object.assign({className:"price"},{children:["¥",null===(i=null==r?void 0:r.pricesetNprice)||void 0===i?void 0:i.toFixed(2)]}))]}),e(n,Object.assign({className:"rPart"},{children:e(Re,{goods:r,checkCollectionObj:g,setCheckCollectionObj:m})}))]})),e(_e,{goods:r,goodSku:u}),e(Je,{promotionList:d}),e(Ue,{}),s(n,Object.assign({className:"goodsDetailTab"},{children:[s(n,Object.assign({className:"tabs"},{children:[s(t,Object.assign({className:"tabsItem "+(1===b?"active":""),onClick:()=>p(1)},{children:["商品详情",e(t,{className:"line"})]})),s(t,Object.assign({className:"tabsItem "+(2===b?"active":""),onClick:()=>p(2)},{children:["评价",e(t,{className:"line"})]}))]})),e(n,Object.assign({className:"group"},{children:1===b?e(Ke,{tabActive:b,goods:r}):e(He,{evaluateArr:N})}))]})),e(qe,{})]})}))},cs=c((({skuCode:s})=>e(ss,{children:e(as,{skuCode:s})})));function is(e){const s=process.env.REACT_APP_BASE_URL;return RegExp(/https?/).test(e)?e:s+e}const ns=c((({navList:c,activeKey:i})=>{const{View:n,Text:t}=o();return e(a,{children:c.map((a=>e(n,Object.assign({className:["content",i===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(n,Object.assign({className:"classifyFloor"},{children:[s(n,Object.assign({className:"titleWrap"},{children:[e(t,Object.assign({className:"title"},{children:a.goodsClassName})),e(t,{className:"line"})]})),e(n,Object.assign({className:"container"},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:i,goodsClassName:l})=>s(n,Object.assign({onClick:()=>y(`${ge.goodList}?classtreeCode=${a}`),className:"classifyFloorGoodsItem"},{children:[e("img",{src:is(i),className:"logo"}),e(t,Object.assign({className:"title"},{children:l}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:ts}=m,ls=c((()=>{const{View:a,Text:c}=o(),{activeKey:i,setActiveKey:n,navList:t,flag:l}=X();return s(a,Object.assign({className:"goodsClassifyWrap",style:{height:l?"100%":"667px"}},{children:[e(a,Object.assign({className:"goods-classify"},{children:s(a,Object.assign({className:"goods-classify-search",onClick:()=>y(ge.search)},{children:[e(de,{value:"fenxiang"}),e(c,{children:"搜索商品"})]}))})),s(a,Object.assign({className:"goodsClassifyContainer"},{children:[e(a,Object.assign({className:"side"},{children:e(ts,Object.assign({activeKey:i,onChange:n,style:{"--width":"88px"}},{children:t.map((s=>e(ts.Item,{title:s.goodsClassName},s.goodsClassCode)))}))})),e(a,Object.assign({className:"main"},{children:e(ns,{navList:t,activeKey:i})}))]}))]}))})),rs=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],os=({setParams:a})=>{const{View:c}=o(),[n,t]=i(0),[l,r]=i(rs);return e(c,Object.assign({className:"sortWrap"},{children:l.map((({order:i,sortField:l,name:o},d)=>s(c,Object.assign({className:"sortItem "+(n===d?"active":""),onClick:()=>((e,s,c)=>{t(s),c&&r((e=>(e[s].order="asc"===c?"desc":"asc",[...e]))),a({sortField:e,order:c})})(l,d,i)},{children:[o,i&&e(de,{style:{color:n===d?"#f00":"#444",fontSize:20},value:"desc"===i?"jiangxu":"shengxu"})]}),d)))}))},ds=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:n,Text:t}=o(),[l,r]=i({}),{loading:d,getData:g,list:m}=J(a,c,l);return s(n,Object.assign({className:"goodsList"},{children:[s(n,Object.assign({className:"top-info"},{children:[s(n,Object.assign({className:"top-info-search",onClick:()=>y(ge.search)},{children:[e(de,{value:"fenxiang"}),e(t,{children:"搜索商品"})]})),e(os,{setParams:r})]})),e(n,Object.assign({className:"listWrap"},{children:s(h,Object.assign({onScroll:()=>g(l),style:{height:"100vh"}},{children:[e(n,Object.assign({className:"list"},{children:m.map((a=>s(n,Object.assign({onClick:()=>y(`${ge.goodDetail}?skuCode=${a.skuCode}`),className:"listItem"},{children:[e(n,{className:"img",style:{backgroundImage:`url(${a.dataPic})`}}),e(t,Object.assign({className:"name"},{children:a.goodsName})),s(t,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice.toFixed(2)]}))]}),a.skuCode)))})),d?e(b,{}):null]}))}))]}))})),gs=C(),ms=c((({placeholder:a,placeholderText:c,history:n})=>{const{View:l,Text:r}=o(),[d,g]=i([]);t((()=>{oe(void 0,void 0,void 0,(function*(){if(!gs)return;const e=(yield x()).getStorageSync("history")||[];g(e)}))}),[]);const m=k((e=>oe(void 0,void 0,void 0,(function*(){if(!gs)return;const s=yield x();g((a=>{if(R(e.detail.value))return a;const c=a.concat(e.detail.value);return s.getStorageSync("history",c),c})),h(e.detail.value)})))),h=k((e=>{y(`${ge.goodList}?searchParam=${e}`)}));return s(l,Object.assign({className:"searchPage",style:{height:gs?"100vh":"667px"}},{children:[s(l,Object.assign({className:"search-title"},{children:[e("img",{src:je,alt:""}),e("input",Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:m},a?{placeholder:c}:{})),e(r,Object.assign({className:"btn",onClick:()=>w()},{children:"取消"}))]})),n?s(l,Object.assign({className:"historyWrap"},{children:[s(l,Object.assign({className:"title"},{children:[s(l,Object.assign({className:"label"},{children:[e(l,{className:"icon"}),"历史搜索记录"]})),e(de,{onClick:()=>oe(void 0,void 0,void 0,(function*(){(yield x()).removeStorageSync("history"),g([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(l,Object.assign({className:"content"},{children:d.map(((s,a)=>e(l,Object.assign({onClick:()=>h(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),hs=c((()=>{const{View:a,Text:c}=o();return e(a,Object.assign({className:"goodsDetail-topInfo-wrap"},{children:s(a,Object.assign({className:"goodsDetail-topInfo"},{children:[s(a,{children:[e(c,Object.assign({className:"name"},{children:"宠侣 狗狗零食鸡肉绕饼干620g宠"})),e(c,Object.assign({className:"price"},{children:"¥2300.00"}))]}),s(a,Object.assign({className:"rPart"},{children:[e("img",{src:je,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),bs=c((()=>{const{View:s}=o();return e(s,Object.assign({className:"goodsDetail-promotion-wrap"},{children:e(s,{className:"goodsDetail-promotion"})}))})),ps=[{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"}]}],us=c((()=>{const[c,t]=i("1"),{View:l}=o(),r=n([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),d=e=>{t(e)};return s(a,{children:[e(l,Object.assign({className:"evaluateListTab"},{children:r.current.map((e=>s(l,Object.assign({className:"evaluateListTabItem "+(e.index===c?"active":""),"data-index":e.index,onClick:d.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(l,Object.assign({className:"evaluateListContent"},{children:ps.map(((s,a)=>e(ze,{itemData:s},a)))}))]})})),Ns=c((({code:c})=>{const{orderInfo:i,changeStar:t,Submit:l,changeContent:r}=Y(c),{Button:d}=m,{View:g,Image:h,TextArea:b,Textarea:p}=o(),u=b||p,N=n("宝贝满足你吗?分享一下它吧");return s(g,Object.assign({className:"evaluateDetail"},{children:[i.map(((c,i)=>s(a,{children:[s(g,Object.assign({className:"topInfo"},{children:[s(g,Object.assign({className:"lPart"},{children:[e(h,{src:c.dataPic,className:"img"}),s(g,Object.assign({className:"goodsInfo"},{children:[e(g,Object.assign({className:"goodsName"},{children:c.goodsName})),e(g,Object.assign({className:"goodsSize"},{children:c.skuName}))]}))]})),e(g,Object.assign({className:"rPart"},{children:s(g,Object.assign({className:"price"},{children:["¥ ",c.pricesetNprice]}))}))]}),i),s(g,Object.assign({className:"rate"},{children:[e(g,Object.assign({className:"title"},{children:"商品评价"})),e(Qe,{onChange:t.bind(null,i)})]})),e(g,Object.assign({className:"evaluate"},{children:e(u,{className:"content",placeholder:N.current,rows:5,maxLength:30,onInput:r.bind(null,i)})}))]}))),e(d,Object.assign({className:"btn",onClick:l},{children:"提交"}))]}))})),Os=({itemData:a,delAddress:c,setDefault:i,fontSize:n="12px",iconSize:t="12px"})=>{const{View:l,Text:r}=o(),d=C();return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>y(`${ge.addressEditor}?addressId=${a.addressId}`)},{children:[s(l,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),s(l,Object.assign({className:"addressInfo"},{children:[s(r,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]})),e(O,{value:"bianjishuru"})]}))]})),s(l,Object.assign({className:"downInfo"},{children:[d?e("label",Object.assign({className:"checkboxMini"},{children:s("checkbox-group",Object.assign({onChange:i,class:"checkBoxWrap"},{children:[e("checkbox",{value:"cb",checked:"1"===(null==a?void 0:a.addressDefault)}),"设为默认地址"]}))})):s("div",Object.assign({className:"checkBoxPc"},{children:[e("input",{type:"checkbox",checked:"1"===a.addressDefault}),e("label",{children:"设为默认地址"})]})),e(r,Object.assign({className:"del",onClick:c},{children:"删除"}))]}))]}))},js=c((()=>{const{View:s,Skeleton:c}=o(),i=n(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:i.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),fs=c((({refreshNum:a})=>{const{View:c}=o(),i=C(),{list:n,delAddress:t,setDefault:l,skullShow:r}=$(a);return s(c,Object.assign({className:"addressListWrap",style:{height:i?"inherit":"667px"}},{children:[r?e(js,{}):e(c,Object.assign({className:"addressList"},{children:n.map(((s,a)=>e(Os,{itemData:s,setDefault:l.bind(null,s,a),delAddress:t.bind(null,s)},null==s?void 0:s.addressId)))})),e(c,Object.assign({className:"addBtnWrap"},{children:e(c,Object.assign({className:"addBtn",onClick:()=>y(`${ge.addressEditor}`)},{children:"+ 新增地址"}))}))]}))})),As=[{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,s)=>new Promise(((e,a)=>{!/^1[3456789]\d{9}$/.test(s)&&s?a("请输入正确手机号"):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"}],ys=c((()=>{const{View:s,Skeleton:c}=o(),i=n(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:i.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),Cs=C(),vs=c((({addressId:s})=>{const{View:c}=o(),{Form:i,Button:n,Input:t}=m,{skullShow:l,form:r,area:d,defaultAddress:g,handleArea:h,handleDefaultAddress:b,handleFinish:p}=_(s,i,Cs);return e(c,Object.assign({className:"addressDetail",style:{height:Cs?"100%":"667px"}},{children:l?e(ys,{}):e(i,Object.assign({form:r,layout:"horizontal",mode:"card",onFinish:p,footer:e(n,Object.assign({block:!0,type:"submit",color:"primary",size:"large"},{children:"提交"}))},{children:As.map(((s,n)=>e(i.Item,Object.assign({label:s.label,name:s.name,rules:s.rules,trigger:"cascader"===s.type?"onConfirm":"onChange",arrow:!1},{children:"input"===s.type?e(t,Object.assign({},s.props)):"switch"===s.type?e("switch",Object.assign({},s.props,{color:"#000",onChange:b,checked:"1"===g})):"cascader"===s.type?e(a,{children:Cs?e("picker",Object.assign({mode:"region",onChange:h,value:"123"},{children:e(c,Object.assign({className:"areaWrap"},{children:d.provinceName?`${d.provinceName}—${d.cityName}-${d.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),n)))}))}))})),ks=({address:s})=>e(a,{children:R(s)?e(xs,{}):e(ws,{address:s})}),ws=({address:a})=>{const{View:c,Text:i}=o(),n=r((()=>{const{provinceName:e,addressDefault:s,cityName:c,areaName:i,addressDetail:n,addressMember:t="",addressPhone:l=""}=a;return{addressDefault:"1"===s,addressMember:t,addressPhone:l,address:e+c+i+n}}),[a]);return s(c,Object.assign({className:"address-info"},{children:[e(O,{style:{fontWeight:900,color:"#444",lineHeight:3.2},value:"shouhuodizhi"}),s(c,Object.assign({className:"left"},{children:[s(c,Object.assign({className:"left-title"},{children:[e(i,{children:n.addressMember}),e(i,Object.assign({className:"left-padding"},{children:n.addressPhone})),e(i,Object.assign({className:"left-padding left-title-default"},{children:n.addressDefault?"默认":""}))]})),e(c,Object.assign({className:"left-detail"},{children:n.address}))]})),e(O,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},xs=()=>{const{View:c,Text:i}=o();return s(a,{children:[s(c,Object.assign({className:"group"},{children:[e(i,{className:"local"}),e(i,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(i,{className:"arrow"})]})},Is=({payState:c,savePayPrice:i})=>{const{View:n,Text:t}=o(),{shoppingCountPrice:l,freight:r,accountsSumPrice:d,comDisMoney:g}=c;return s(a,{children:[s(n,Object.assign({className:"price blcWrap"},{children:[e(n,Object.assign({className:"title"},{children:"价格明细"})),s(n,Object.assign({className:"express blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"商品总金额"})),s(n,Object.assign({className:"value"},{children:["¥ ",l]}))]})),s(n,Object.assign({className:"coupon blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"优惠金额"})),s(n,Object.assign({className:"value"},{children:["¥ ",g]}))]})),s(n,Object.assign({className:"express blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"运费"})),s(n,Object.assign({className:"value"},{children:["¥ ",r]}))]})),s(n,Object.assign({className:"all blcItem"},{children:[e(n,Object.assign({className:"label"},{children:"总计"})),s(n,Object.assign({className:"value",style:{color:"#000"}},{children:["¥ ",d]}))]}))]})),s(n,Object.assign({className:"placeOrderFooter"},{children:[s(t,Object.assign({className:"price"},{children:["合计: ",d]})),e(n,Object.assign({className:"btn",onClick:i},{children:"生成订单"}))]}))]})},Ds=({goodsList:s})=>{console.log(6,s);const{View:a}=o();return e(a,Object.assign({className:"place-order-goods"},{children:s.map(((s,a)=>e(we,Object.assign({},s),a)))}))},Ts=C(),Bs=c((({refreshNum:a,goodsNum:c,skuId:i,shoppingGoodsId:n})=>{const{View:t,Text:l}=o(),{savePayPrice:r,address:d,list:g,payState:m}=ee({skuId:i,goodsNum:c,shoppingGoodsId:n},a);return s(t,Object.assign({className:"placeOrder",style:{height:Ts?"100vh":"667px"}},{children:[e(t,Object.assign({className:"chooseAddress",onClick:()=>y(ge.addressList)},{children:e(ks,{address:d})})),e(Ds,{goodsList:g.current}),s(t,Object.assign({className:"info blcWrap"},{children:[s(t,Object.assign({className:"express blcItem"},{children:[e(t,Object.assign({className:"label"},{children:"配送方式"})),e(t,Object.assign({className:"value"},{children:"快递"}))]})),s(t,Object.assign({className:"coupon blcItem"},{children:[e(t,Object.assign({className:"label"},{children:"使用优惠"})),s(t,Object.assign({className:"value"},{children:["可选择使用优惠码/优惠码",e(l,{className:"icon"})]}))]}))]})),e(Is,{savePayPrice:r,payState:m.current})]}))})),{useOrderResult:Ss}=se,Ls=C(),Vs=c((({code:a})=>{const{View:c,Text:i}=o(),{result:n}=Ss(a),{sysRecode:t,dataObj:l}=n;return console.log(15,t,l),e(c,Object.assign({className:"placeOrderResult",style:{height:Ls?"100vh":"667px"}},{children:s(c,t?Object.assign({className:"placeOrderResultContent"},{children:[e(i,{className:"icon"}),e(c,Object.assign({className:"tips"},{children:e(i,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(c,Object.assign({className:"placeOrderResultWrap"},{children:[s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(i,Object.assign({className:"label"},{children:"订单号:"})),e(i,Object.assign({className:"value"},{children:l.contractBillcode}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(i,Object.assign({className:"label"},{children:"支付方式:"})),e(i,Object.assign({className:"value"},{children:"00"===l.contractType?"微信支付":"其他"}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(i,Object.assign({className:"label"},{children:"支付金额:"})),s(i,Object.assign({className:"value"},{children:["¥ ",l.dataBmoney]}))]}))]})),s(c,Object.assign({className:"btnGroup"},{children:[e(c,Object.assign({className:"btn black",onClick:()=>y(`${Q.orderDetail}?contractBillcode=${l.contractBillcode}`)},{children:"查看订单"})),e(c,Object.assign({onClick:()=>v(Q.classify),className:"btn white"},{children:"继续购物"}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(i,{className:"icon"}),s(c,Object.assign({className:"tips"},{children:[e(i,Object.assign({className:"title"},{children:"订单支付失败"})),e(i,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(c,Object.assign({className:"btnGroup"},{children:e(c,Object.assign({onClick:()=>y(`${Q.paymentMode}?code=${n.contractBillcode}`),className:"btn white"},{children:"去支付"}))}))]}))}))})),Ps=({coe:c})=>{const{View:i,Text:n}=o();return e(a,{children:3===c?e(i,Object.assign({className:"couponListItem overdue"},{children:s(i,Object.assign({className:"coupon-content"},{children:[s(i,Object.assign({className:"price"},{children:[e(n,Object.assign({className:"symbol"},{children:"¥"})),e(n,Object.assign({className:"num"},{children:"123"}))]})),s(i,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"title"},{children:"整单立减10元 满199可用"})),e(n,Object.assign({className:"date"},{children:"有效期至:2022-10-01"})),e(i,Object.assign({className:"btn"},{children:"已使用"})),e(i,Object.assign({className:"round"},{children:"已失效"}))]}))]}))})):null})};c((()=>{const{View:s,Skeleton:c}=o(),i=n(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:i.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));const zs=({coe:c})=>{const{View:i,Text:n}=o();return e(a,{children:1===c?e(i,Object.assign({className:"couponListItem unused"},{children:s(i,Object.assign({className:"coupon-content"},{children:[s(i,Object.assign({className:"price"},{children:[e(n,Object.assign({className:"symbol"},{children:"¥"})),e(n,Object.assign({className:"num"},{children:"123"}))]})),s(i,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"title"},{children:"整单立减10元 满199可用"})),e(n,Object.assign({className:"date"},{children:"有效期至:2022-10-01"})),e(i,Object.assign({className:"btn"},{children:"已使用"}))]}))]}))})):null})},Rs=({coe:c})=>{const{View:i,Text:n}=o();return e(a,{children:2===c?e(i,Object.assign({className:"couponListItem used"},{children:s(i,Object.assign({className:"coupon-content"},{children:[s(i,Object.assign({className:"price"},{children:[e(n,Object.assign({className:"symbol"},{children:"¥"})),e(n,Object.assign({className:"num"},{children:"123"}))]})),s(i,Object.assign({className:"info"},{children:[e(n,Object.assign({className:"title"},{children:"整单立减10元 满199可用"})),e(n,Object.assign({className:"date"},{children:"有效期至:2022-10-01"})),e(i,Object.assign({className:"btn"},{children:"已使用"}))]}))]}))})):null})},Fs=c((()=>{const{View:a,Text:c}=o(),{coe:i,setCoe:n,config:l}=ae(),r=C();return t((()=>{L().then((e=>{console.log(26,e)}))}),[]),s(a,Object.assign({className:"couponList",style:{height:r?"100vh":"667px"}},{children:[e(a,Object.assign({className:"couponTab"},{children:l.current.map((t=>s(a,Object.assign({className:"couponTabItem "+(i===t.id?"active":""),onClick:()=>n(t.id)},{children:[t.label,e(c,{className:"icon"})]}),t.id)))})),s(a,Object.assign({className:"couponListContent"},{children:[e(zs,{coe:i}),e(Rs,{coe:i}),e(Ps,{coe:i})]}))]}))}));function Ws({list:a}){const{View:c,Text:i,Image:n,Checkbox:t}=o(),{updateImpl:l}=ce(),r=ie(),{select:d}=ne(),g=(e,s,a)=>oe(this,void 0,void 0,(function*(){const c="plus"===a?++s:--s;l(e,c)}));return e(f,Object.assign({onChange:e=>{r({type:"select",payload:e.detail.value})}},{children:a.map(((a,l)=>s(c,Object.assign({className:"cartItem"},{children:[e(c,Object.assign({className:"checkBoxWrap"},{children:e(t,{checked:d.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(n,{className:"img",src:a.dataPic}),s(c,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"goodsName"},{children:a.goodsName})),s(c,Object.assign({className:"size"},{children:["规格:",a.skuName," X ",a.goodsCamount]})),s(c,Object.assign({className:"handleWrap"},{children:[s(i,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(j,{count:a.goodsCamount,handleStep:g.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),l)))}))}const Ms=C(),Gs=()=>{const[c,n]=i(!0),{View:t,Text:l,Checkbox:r}=o(),{cartList:d,amount:g,selectAll:m,allCart:h,toOrderImpl:b,select:p,deleteCart:u}=ce();return e(t,Object.assign({className:"cart",style:{height:Ms?"100%":"667px"}},{children:d.length?s(a,{children:[e(t,Object.assign({className:"edit"},{children:e(t,Object.assign({className:"btn",onClick:()=>n(!c)},{children:c?"编辑":"完成"}))})),e(t,Object.assign({className:"itemGroup"},{children:e(Ws,{list:d.shoppingGoodsList})})),s(t,Object.assign({className:"dashboard"},{children:[e(t,Object.assign({className:"choose"},{children:e(f,Object.assign({onChange:m},{children:e(r,Object.assign({checked:h.current.length===p.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),c?s(t,Object.assign({className:"check"},{children:[s(t,Object.assign({className:"priceGroup"},{children:[s(t,Object.assign({className:"discount"},{children:["优惠: ",s(l,Object.assign({className:"data"},{children:["¥ ",d.disMoney||0]}))]})),s(t,Object.assign({className:"all"},{children:["合计: ",s(l,Object.assign({className:"data"},{children:["¥ ",g.amount]}))]}))]})),s(t,Object.assign({onClick:b,className:"btn"},{children:["结算(",g.num,")"]}))]})):e(t,Object.assign({className:"del"},{children:e(t,Object.assign({onClick:u,className:"btn"},{children:"删除"}))}))]}))]}):e(t,Object.assign({className:"noData"},{children:"购物车空空如也~"}))}))},Us=c((()=>e(te,{children:e(Gs,{})}))),Qs=()=>{const{View:a,Text:c}=o(),i=n([{icon:"collect",label:"我的收藏",link:"collectionList"},{icon:"dizhi",label:"我的地址",link:"addressList"},{icon:"eyes",label:"最近浏览",link:"addressList"}]);return e(a,Object.assign({className:"menuList"},{children:i.current.map(((i,n)=>s(a,Object.assign({className:"menuListItem",onClick:()=>y(ge[i.link])},{children:[s(a,Object.assign({className:"lPart"},{children:[e(O,{value:i.icon}),e(c,Object.assign({className:"label"},{children:i.label}))]})),e(O,{value:"xiangyou1"})]}),n)))}))},Es=()=>{const{View:a,Text:c,Badge:i}=o();t((()=>{V().then((e=>{console.log("----------",e)}))}),[]);const l=n([{badge:0,label:"待付款",icon:"daifukuan",link:""},{badge:0,label:"待发货",icon:"daifahuo",link:""},{badge:0,label:"待收货",icon:"daishouhuo",link:""},{badge:0,label:"已完成",icon:"yiwancheng",link:""},{badge:0,label:"退换/售后",icon:"shouhou",link:""}]);return s(a,Object.assign({className:"orderEntry"},{children:[s(a,Object.assign({className:"title"},{children:[e(a,Object.assign({className:"name"},{children:"我的订单"})),e(a,Object.assign({className:"more",onClick:()=>y(ge.order)},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:l.current.map(((n,t)=>s(a,Object.assign({onClick:()=>y(`${ge.order}?id=${t+1}`),className:"contentItem"},{children:[n.badge?e(i,Object.assign({content:n.badge,color:"#000",style:{color:"#fff",fontSize:12}},{children:e(O,{value:n.icon})})):e(O,{value:n.icon}),e(c,Object.assign({className:"subTitle"},{children:n.label}))]}),t)))}))]}))},Hs="400-990-3366",qs=()=>oe(void 0,void 0,void 0,(function*(){if(!C())return;const e=yield x();e.showActionSheet({itemList:[`客服电话 ${Hs}`],success:()=>{e.makePhoneCall({phoneNumber:Hs,fail:e=>{console.log(e)}})},fail:e=>{console.log(e)}})})),Ks=c((({avatarStyle:a,userAvatar:c="",userNickname:i="用户名",banner:n})=>{const{View:t,Text:l}=o(),r=C();return s(t,Object.assign({className:"mine",style:{height:r?"100%":"667px"}},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(O,{value:"shezhi",onClick:()=>y(ge.setting)}),e(O,{value:"kehufuwukefu",onClick:qs})]})),s(t,Object.assign({className:"userSetting",onClick:()=>y(ge.setting)},{children:[s(t,Object.assign({className:"lPart"},{children:[e(l,Object.assign({className:"name"},{children:i||"用户名称"})),e(t,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e("img",{src:c,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]})),e(Es,{}),e(Qs,{}),n?e("img",{className:"banner",src:"",alt:""}):null]}))})),Zs=C(),Xs=c((({code:a})=>{const{View:c,Text:i}=o(),{paymentImpl:n,channelList:t,contract:l,handleRadio:r,loading:d}=le(a);return s(c,Object.assign({className:"paymentModeWrap",style:{height:Zs?"inherit":"667px"}},{children:[s(c,Object.assign({className:"paymentMode"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(i,Object.assign({className:"title"},{children:[e(O,{value:"roundcheck"}),"订单提交成功"]})),s(c,Object.assign({className:"info"},{children:["订单号:",l.current.contractBillcode," | 总金额:",l.current.dataBmoney,"元"]}))]})),e(c,Object.assign({className:"paymentGroup"},{children:e("radio-group",Object.assign({onChange:r},{children:t.map((a=>s(c,Object.assign({className:"paymentItem"},{children:[e(O,{value:a.icon}),s(c,{children:[s(c,Object.assign({className:"base"},{children:[e(i,{children:a.fchannelName}),Zs?e("radio",{value:a.fchannelCode}):e("input",{type:"radio"})]})),"account"===a.value?s(c,Object.assign({className:"info"},{children:[e(c,{children:"账户余额:0元"}),e(c,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(A,Object.assign({loading:d},{children:e(c,Object.assign({className:"btnGroup",onClick:n},{children:e(c,Object.assign({className:"payment"},{children:"立即支付"}))}))}))]}))})),Js=c((()=>{const{View:s}=o();return e(s,Object.assign({clasName:"footprint"},{children:123123}))}));export{vs as AddressDetail,fs as AddressList,Us as Cart,Pe as ClassifyNav,Fs as CouponList,pe as Cube,Ns as EvaluateDetail,us as EvaluateList,Js as Footprint,me as Goods,ls as GoodsClassify,cs as GoodsDetail,bs as GoodsDetailPromotion,hs as GoodsDetailTopInfo,ke as GoodsGroup,ds as GoodsList,ue as Line,Ks as Mine,he as Notice,Ve as OrderDetail,Le as OrderList,Xs as PaymentMode,Bs as PlaceOrder,Vs as PlaceOrderResult,de as QjMobileIcon,Ae as Search,ms as SearchPage,Oe as Service,Ce as Slider,be as Title,Ne as Video};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "s-material-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.66",
|
|
4
4
|
"description": "'组件库'",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": [
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"classnames": "^2.3.2",
|
|
35
35
|
"lodash-es": "^4.17.21",
|
|
36
36
|
"qj-b2c-api": "^1.0.17",
|
|
37
|
-
"qj-mobile-store": "^1.0.
|
|
37
|
+
"qj-mobile-store": "^1.0.37",
|
|
38
38
|
"react": "^18.2.0"
|
|
39
39
|
},
|
|
40
40
|
"devDependencies": {
|