s-material-react 1.3.11 → 1.3.12
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/pages/cart.scss +66 -66
- package/css/pages/cube.scss +8 -11
- package/css/pages/goods.scss +4 -0
- package/css/pages/goodsDetail.scss +0 -1
- package/css/pages/goodsList.scss +0 -1
- package/css/pages/placeOrder.scss +2 -0
- package/dist/common/card/index.d.ts +1 -2
- package/dist/common/scrollWrap/index.d.ts +9 -0
- package/dist/components/Goods/index.d.ts +2 -0
- package/dist/components/Line/index.d.ts +1 -0
- package/dist/components/OrderList/components/orderItem.d.ts +3 -17
- package/dist/components/OrderList/components/orderListItem.d.ts +16 -0
- package/dist/components/PlaceOrder/components/shop.d.ts +2 -1
- package/dist/components/Slider/item.d.ts +1 -2
- package/dist/components/Title/index.d.ts +1 -0
- package/dist/components/index.d.ts +0 -1
- package/dist/index.js +1 -1
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/util.d.ts +1 -0
- package/package.json +3 -3
- package/dist/components/Footprint/index.d.ts +0 -1
package/css/pages/cart.scss
CHANGED
|
@@ -16,84 +16,87 @@
|
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
.checkBoxWrap {
|
|
33
|
-
position: relative;
|
|
34
|
-
|
|
35
|
-
checkbox {
|
|
36
|
-
position: absolute;
|
|
37
|
-
top: 50%;
|
|
38
|
-
margin-top: -10px;
|
|
39
|
-
}
|
|
19
|
+
//.itemGroup {
|
|
20
|
+
// overflow: scroll;
|
|
21
|
+
// height: calc(100vh - 150px);
|
|
22
|
+
.cartItem {
|
|
23
|
+
width: 100%;
|
|
24
|
+
padding: 22px 12px;
|
|
25
|
+
box-sizing: border-box;
|
|
26
|
+
display: grid;
|
|
27
|
+
grid-template-columns: 20px 82px 1fr;
|
|
28
|
+
gap: 10px;
|
|
29
|
+
border-bottom: 1px solid #e2e2e2;
|
|
30
|
+
background-color: #ffffff;
|
|
40
31
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
height: 18px;
|
|
44
|
-
border-radius: 50%;
|
|
45
|
-
}
|
|
32
|
+
.checkBoxWrap {
|
|
33
|
+
position: relative;
|
|
46
34
|
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
35
|
+
checkbox {
|
|
36
|
+
position: absolute;
|
|
37
|
+
top: 50%;
|
|
38
|
+
left: 0;
|
|
39
|
+
margin-top: -10px;
|
|
40
|
+
}
|
|
50
41
|
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
42
|
+
.wx-checkbox-input {
|
|
43
|
+
width: 18px;
|
|
44
|
+
height: 18px;
|
|
45
|
+
border-radius: 50%;
|
|
55
46
|
}
|
|
56
47
|
|
|
57
|
-
.
|
|
58
|
-
|
|
59
|
-
height: 82px;
|
|
60
|
-
border-radius: 10px;
|
|
48
|
+
.wx-checkbox-input.wx-checkbox-input-checked {
|
|
49
|
+
background-color: #000000;
|
|
61
50
|
}
|
|
62
51
|
|
|
63
|
-
.
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
display: block;
|
|
69
|
-
margin-bottom: 6px;
|
|
70
|
-
padding-top: 4px;
|
|
71
|
-
}
|
|
52
|
+
.wx-checkbox-input.wx-checkbox-input-checked::before {
|
|
53
|
+
color: #ffffff;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
72
57
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
58
|
+
.img {
|
|
59
|
+
width: 82px;
|
|
60
|
+
height: 82px;
|
|
61
|
+
border-radius: 10px;
|
|
62
|
+
}
|
|
78
63
|
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
64
|
+
.info {
|
|
65
|
+
.goodsName {
|
|
66
|
+
font-size: 14px;
|
|
67
|
+
min-height: 28px;
|
|
68
|
+
line-height: 17px;
|
|
69
|
+
display: block;
|
|
70
|
+
margin-bottom: 6px;
|
|
71
|
+
padding-top: 4px;
|
|
72
|
+
text-align: left;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.size {
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
color: #bababa;
|
|
78
|
+
margin-bottom: 6px;
|
|
79
|
+
text-align: left;
|
|
80
|
+
}
|
|
82
81
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
}
|
|
82
|
+
.handleWrap {
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: space-between;
|
|
87
85
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
86
|
+
.price {
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
color: #000;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.stepper {
|
|
92
|
+
height: 18px;
|
|
93
|
+
--input-width: 30px;
|
|
94
|
+
--button-width: 18px;
|
|
93
95
|
}
|
|
94
96
|
}
|
|
95
97
|
}
|
|
96
98
|
}
|
|
99
|
+
//}
|
|
97
100
|
|
|
98
101
|
.dashboard {
|
|
99
102
|
width: 100%;
|
|
@@ -102,9 +105,6 @@
|
|
|
102
105
|
display: flex;
|
|
103
106
|
justify-content: space-between;
|
|
104
107
|
background: rgba(255, 255, 255, 1);
|
|
105
|
-
position: fixed;
|
|
106
|
-
bottom: 50px;
|
|
107
|
-
left: 0;
|
|
108
108
|
|
|
109
109
|
.choose {
|
|
110
110
|
display: flex;
|
package/css/pages/cube.scss
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/*一行两个*/
|
|
2
2
|
|
|
3
3
|
.cube-type2 {
|
|
4
|
+
height: 200px;
|
|
4
5
|
display: grid;
|
|
5
6
|
grid-template-columns: repeat(2, 1fr);
|
|
6
7
|
gap: 10px;
|
|
@@ -9,6 +10,7 @@
|
|
|
9
10
|
/*一上二下*/
|
|
10
11
|
|
|
11
12
|
.cube-type3 {
|
|
13
|
+
height: 400px;
|
|
12
14
|
display: grid;
|
|
13
15
|
grid-template-columns: repeat(2, 1fr);
|
|
14
16
|
grid-template-rows: repeat(2, 1fr);
|
|
@@ -28,25 +30,20 @@
|
|
|
28
30
|
/*一左二右*/
|
|
29
31
|
|
|
30
32
|
.cube-type4 {
|
|
33
|
+
height: 400px;
|
|
31
34
|
display: grid;
|
|
32
|
-
grid-template-columns: repeat(2, 1fr);
|
|
33
|
-
grid-template-rows: repeat(2, 1fr);
|
|
34
35
|
gap: 10px;
|
|
35
|
-
|
|
36
|
+
grid-template-rows: repeat(2, 1fr);
|
|
37
|
+
grid-template-columns: repeat(2, 1fr);
|
|
36
38
|
& .block:nth-child(1) {
|
|
37
|
-
grid-
|
|
38
|
-
}
|
|
39
|
-
& .block:nth-child(2) {
|
|
40
|
-
grid-area: 1 / 2 / 2 / 3;
|
|
41
|
-
}
|
|
42
|
-
& .block:nth-child(3) {
|
|
43
|
-
grid-area: 2 / 2 / 3 / 3;
|
|
39
|
+
grid-row: 1 / 3;
|
|
44
40
|
}
|
|
45
41
|
}
|
|
46
42
|
|
|
47
43
|
/*田字形*/
|
|
48
44
|
|
|
49
45
|
.cube-type5 {
|
|
46
|
+
height: 400px;
|
|
50
47
|
display: grid;
|
|
51
48
|
grid-template-columns: repeat(2, 1fr);
|
|
52
49
|
grid-template-rows: repeat(2, 1fr);
|
|
@@ -67,7 +64,7 @@
|
|
|
67
64
|
}
|
|
68
65
|
|
|
69
66
|
.block {
|
|
70
|
-
height:
|
|
67
|
+
height: 100%;
|
|
71
68
|
width: 100%;
|
|
72
69
|
overflow: hidden;
|
|
73
70
|
background-size: cover;
|
package/css/pages/goods.scss
CHANGED
package/css/pages/goodsList.scss
CHANGED
|
@@ -3,6 +3,7 @@ interface GoodsType {
|
|
|
3
3
|
goodsCode: string | number;
|
|
4
4
|
goodsName: string | number;
|
|
5
5
|
dataPic: string;
|
|
6
|
+
sales: number;
|
|
6
7
|
brandName: string | number;
|
|
7
8
|
pricesetNprice: number;
|
|
8
9
|
pricesetMakeprice?: number;
|
|
@@ -10,6 +11,7 @@ interface GoodsType {
|
|
|
10
11
|
margin?: number;
|
|
11
12
|
cell: number;
|
|
12
13
|
gap?: number;
|
|
14
|
+
showSales: boolean;
|
|
13
15
|
goods: Array<never> | undefined;
|
|
14
16
|
circular?: number;
|
|
15
17
|
markedPrice?: number;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
goodsList: Array<OrderGoodsItem>;
|
|
4
|
-
dataBmoney: number;
|
|
5
|
-
dataBnum: number;
|
|
6
|
-
dataState: number | string;
|
|
7
|
-
contractId: string | number;
|
|
1
|
+
import { orderType } from '@/components/OrderList/components/orderListItem';
|
|
2
|
+
interface action {
|
|
8
3
|
init: () => void;
|
|
9
|
-
contractAppraise: number;
|
|
10
4
|
}
|
|
11
|
-
export
|
|
12
|
-
dataPic: string;
|
|
13
|
-
goodsName: number;
|
|
14
|
-
dataBmoney: number;
|
|
15
|
-
goodsCamount: number;
|
|
16
|
-
contractGoodsId: number;
|
|
17
|
-
dataState: number | string;
|
|
18
|
-
}
|
|
19
|
-
export declare function Item({ contractBillcode, dataBmoney, dataBnum, goodsList, dataState, contractId, init, contractAppraise }: OrderType): JSX.Element;
|
|
5
|
+
export declare function Item({ contractBillcode, dataBmoney, dataBnum, goodsList, dataState, contractId, init, contractAppraise }: typeof orderType & action): JSX.Element;
|
|
20
6
|
export {};
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { TabItemType } from '@brushes/simulate-component';
|
|
2
|
+
export declare const orderType: {
|
|
3
|
+
contractBillcode: string;
|
|
4
|
+
goodsList: {
|
|
5
|
+
dataPic: string;
|
|
6
|
+
goodsName: string;
|
|
7
|
+
dataBmoney: number;
|
|
8
|
+
goodsCamount: number;
|
|
9
|
+
contractGoodsId: number;
|
|
10
|
+
dataState: number;
|
|
11
|
+
}[];
|
|
12
|
+
dataBmoney: number;
|
|
13
|
+
dataBnum: number;
|
|
14
|
+
dataState: number;
|
|
15
|
+
contractId: string;
|
|
16
|
+
contractAppraise: number;
|
|
17
|
+
};
|
|
2
18
|
declare function OrderListItemJsx({ item, refreshNum }: {
|
|
3
19
|
item: TabItemType;
|
|
4
20
|
refreshNum: number;
|
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 n,useRef as i,useEffect as t,useMemo as l,createElement as r}from"react";import{useComponent as o,NoticeBar as d,View as m,SmoothSwiper as g,antdMobile as h,ScrollView as b,Loading as u,Tabs as p,Popup as N,IconMobile as j,NumStep as O,SmoothRadio as f,WrapLoading as y,SmoothCheckbox as A}from"@brushes/simulate-component";import{navigatorImpl as v,getEnv as C,getTaro as k,useImmutableCallback as w,switchTabImpl as x,getStorage as I,navigatorBackImpl as D,setStorage as T}from"@brushes/utils";import{find as S,queryContractPageC as V,checkCollectExit as B,saveCollect as L,deleteCollectByCode as P,queryOcsconfigList as R,queryUsercouponNember as M,getContractNumbers as z}from"qj-b2c-api";import F from"classnames";import{isEqual as W,isEmpty as E,isUndefined as G}from"lodash-es";import{useNotice as Q,useCube as U,navigatorHandler as H,useOrderOperate as q,orderStatusImpl as K,routerMap as Z,orderStatusList as X,useOrderDetail as Y,useAddCoupon as J,goodsDetailStore as $,refreshCard as _,useAddShopping as ee,useGoodsDetailImpl as se,useGoodsClassify as ae,useGoodsList as ce,useEvaluateDetail as ne,useAddressList as ie,useEditAddress as te,usePlaceOrder as le,useOrderResultResult as re,useOverdue as oe,useUnused as de,useUsed as me,useCouponList as ge,useStore as he,useCartItem as be,StoreProvider as ue,useCartList as pe,useOrderResult as Ne}from"qj-mobile-store";import je from"dayjs";import Oe from"china-division/dist/provinces.json";import fe from"china-division/dist/cities.json";import ye from"china-division/dist/areas.json";function Ae(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 n=0;for(c=Object.getOwnPropertySymbols(e);n<c.length;n++)s.indexOf(c[n])<0&&Object.prototype.propertyIsEnumerable.call(e,c[n])&&(a[c[n]]=e[c[n]])}return a}function ve(e,s,a,c){return new(a||(a=Promise))((function(n,i){function t(e){try{r(c.next(e))}catch(e){i(e)}}function l(e){try{r(c.throw(e))}catch(e){i(e)}}function r(e){var s;e.done?n(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 Ce=({className:s="iconfont",prefixClass:a="icon",onClick:c=(()=>{}),style:n={fontSize:16,color:"#444",fontWeight:900},value:i})=>{const{Text:t}=o();return e(t,{onClick:c,className:F(a,i?`${a}-${i}`:"",s),style:n})},ke={index:"/pages/index/index",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",myAgreementList:"/subpackage/myagreementlist/index",mySetting:"/subpackage/mysetting/index"},we=c((({defaultValue:a=[],classCode:c="",margin:l,circular:r,cell:d,gap:m=10,goods:g=[],markedPrice:h,paddingTop:b,paddingBottom:u,paddingLeft:p,paddingRight:N})=>{const[j,O]=n(a),f=i(),{View:y,Text:A}=o();return t((()=>{W(f.current,g)||(f.current=g,E(g)?O(a):ve(void 0,void 0,void 0,(function*(){try{const e=yield S({goodsCode:g.toString()});O(e.rows)}catch(e){O(a)}})))}),[g]),e(y,Object.assign({style:{paddingTop:b,paddingBottom:u}},{children:e(y,Object.assign({className:F({[`goods-${c}`]:!0}),style:{display:"grid",gap:m,marginBottom:l,gridTemplateColumns:`repeat(${d}, 1fr)`,paddingLeft:p,paddingRight:N}},{children:j.map(((a,c)=>s(y,Object.assign({style:{overflow:"hidden",borderRadius:2===r?0:"8px"},onClick:()=>v(`${ke.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(A,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===h&&s(A,Object.assign({className:"markedPrice"},{children:[e(A,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(y,Object.assign({className:"anticon"},{children:e(Ce,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),xe=({direction:s,speed:a,num:c,color:n})=>{const{content:i,navigator:t}=Q(c);return e(d,{navigator:t,color:n,speed:a,direction:s,content:i})},Ie=c((({value:s,fontSize:a,textAlign:c,color:n,backgroundColor:i,fontWeight:t,textDecoration:l,fontStyle:r,paddingTop:d,paddingLeft:m,paddingRight:g,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:n,backgroundColor:i,fontWeight:t,textDecoration:l,fontStyle:r,paddingLeft:m,paddingRight:g}},{children:s}))}))})),De=c((({defaultValue:s,type:a,borderRadius:c,paddingTop:n,paddingLeft:i,paddingRight:t,paddingBottom:l,selectImg:r})=>{const{View:d,Image:m}=o(),g=U(s,r);return e(d,Object.assign({style:{paddingTop:n,paddingBottom:l}},{children:e(d,Object.assign({className:`cube-type${a}`,style:{paddingLeft:i,paddingRight:t}},{children:g.map(((s,n)=>{var i,t;return 1===a?e(m,{mode:"widthFix",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:H.bind(null,null===(i=s.link)||void 0===i?void 0:i.value)},n):e(d,{className:"block",style:{backgroundImage:`url(${s.imgUrl})`,width:"100%",borderRadius:c+"px"},onClick:H.bind(null,null===(t=s.link)||void 0===t?void 0:t.value)},n)}))}))}))})),Te=c((({borderRadius:s,height:a,width:c,backgroundColor:n,paddingTop:i,paddingBottom:t})=>{const{View:l}=o();return e(l,Object.assign({style:{paddingTop:i,paddingBottom:t}},{children:e(l,{style:{borderRadius:s+"%",width:c+"%",height:a+"px",backgroundColor:n,marginLeft:"auto",marginRight:"auto"}})}))})),Se=c((({url:s,poster:a,autoplay:c,loop:n,paddingTop:i,paddingBottom:t,paddingLeft:l,paddingRight:r})=>{const{View:d}=o();return e(d,Object.assign({style:{paddingTop:i,paddingBottom:t}},{children:e("video",{className:"components-video",src:"https://www.runoob.com/try/demo_source/movie.ogg",poster:a,autoPlay:c,loop:n,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:r}})}))})),Ve=c((({width:s,height:a,top:c,right:n,bottom:i,left:t,borderRadius:l})=>{const{View:r}=o();return e(r,{style:{width:s,height:a,borderRadius:l,top:c,left:t,right:n,bottom:i},className:"components-service"})})),Be="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/jhzdi4U2WgJ7bfTsl8mzAGDDQbAAYAHAhktgw6e/7AALADZcAhs+/WUHWACw4RLY8OkvO8ACgG0jgb2B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mKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",Le="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Pe=c((({value:a,iconShow:c,fontColor:n,backgroundColor:i,borderRadius:t,paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:m})=>{const{View:g,Image:h}=o();return e(g,Object.assign({onClick:()=>v(ke.search),style:{paddingTop:l,paddingBottom:r,paddingLeft:d,paddingRight:m}},{children:s(g,Object.assign({className:"components-search",style:{backgroundColor:i,borderRadius:t+"px",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(h,{src:Be,alt:"",mode:"fill",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,Object.assign({className:"txt",style:{color:n,display:"inline-block",fontSize:"14px"}},{children:a}))]}))}))})),Re=c((({item:s,type:c})=>{var n,i;const{Image:t,View:l}=o();return e(a,{children:1===c?e(t,{mode:"widthFix",src:s.imgUrl,style:{width:"100%"},onClick:H.bind(null,null===(n=s.link)||void 0===n?void 0:n.value)}):e(l,{className:C()?"slider-block":"pc",style:{backgroundImage:`url(${s.imgUrl})`,width:"100%"},onClick:H.bind(null,null===(i=s.link)||void 0===i?void 0:i.value)})})})),Me=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:n,direction:i,loop:t,paddingTop:l,paddingBottom:r,paddingLeft:o,paddingRight:d,selectImg:h,imgHeight:b})=>{const u=U(s,h);return e(m,Object.assign({style:{paddingTop:l,paddingBottom:r,paddingLeft:o,paddingRight:d}},{children:e(g,{className:C()?"slider-block":"pc",imgHeight:b,data:u,type:a,autoplay:c,autoplayInterval:n,direction:i,loop:t,render:s=>e(Re,{type:a,item:s})})}))})),{JumboTabs:ze}=h,Fe=c((({defaultValue:s=[],type:a,selectGoodsGroup:c=[],marginTop:i,marginBottom:l,borderRadius:r})=>{const[o,d]=n(s);return t((()=>{const e=c.filter((e=>!G(e))).filter((e=>!Object.values(e).every((e=>G(e)))));let a=s;E(e)||(a=e),d(a)}),[c]),e(ze,Object.assign({style:{marginTop:i+"px",marginBottom:l+"px"}},{children:o.map(((s,a)=>e(ze.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(we,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:r})}),a)))}))})),We=({dataPic:a,goodsName:c,goodsCamount:n,pricesetNprice:i,skuName:t})=>{const{View:l,Image:r}=o();return s(l,Object.assign({className:"card-item"},{children:[e(r,{src:a,alt:"",className:"card-item-img"}),s(l,Object.assign({className:"card-item-info"},{children:[s(l,Object.assign({className:"card-item-info-container"},{children:[e(l,Object.assign({className:"card-item-info-container-title"},{children:c})),s(l,Object.assign({className:"card-item-info-container-price"},{children:["¥",i]}))]})),s(l,Object.assign({className:"card-item-info-sub"},{children:[e(l,Object.assign({className:"sku"},{children:t})),s(l,Object.assign({className:"count"},{children:["x ",n]}))]}))]}))]}))},{Button:Ee}=h,Ge=s=>{var{dataState:c}=s,n=Ae(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(Qe,Object.assign({dataState:c},n))})},Qe=s=>{var{dataState:a,contractAppraise:c}=s,n=Ae(s,["dataState","contractAppraise"]);const{View:i}=o();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:t,handlerImpl:l}=q(Object.assign({dataState:a},n));return e(i,Object.assign({className:"btnGroup"},{children:t.map(((s,a)=>e(Ee,Object.assign({className:F({btn:!0,white:0===a,black:1===a}),onClick:()=>l(s.handler),shape:"rounded"},{children:s.name}),a)))}))},{Button:Ue}=h;function He({contractBillcode:a,dataBmoney:c,dataBnum:n,goodsList:i,dataState:t,contractId:l,init:r,contractAppraise:d}){const{View:m}=o(),g=K(t);return s(m,Object.assign({className:"orderListItem"},{children:[s(m,Object.assign({onClick:()=>v(`${Z.orderDetail}?contractBillcode=${a}`)},{children:[s(m,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(Ue,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(m,Object.assign({className:"status"},{children:g}))]})),s(m,Object.assign({className:"goodsItemWrap"},{children:[i.map((s=>e(We,Object.assign({},s),s.contractGoodsId))),s(m,Object.assign({className:"allInfo"},{children:[s(m,Object.assign({className:"totalNum"},{children:["共",n,"件商品"]})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(Ge,{init:r,contractId:l,contractBillcode:a,dataState:t,contractAppraise:d})]}))}function qe(e){const[s,a]=n(0);return t((()=>{if(!C())return;k().createSelectorQuery().select(e).boundingClientRect((e=>{if(e){const{bottom:s}=e;a(s)}})).exec()})),s}const Ke=C();const Ze=c((function({item:a,refreshNum:c}){const{View:d}=o(),m=i(!1),[g,h]=n(!1),[p,N]=n([]),j=i(0),O=qe("#qj-tabs-id");t((()=>{f()}),[c]);const f=w((()=>{j.current=0,N([]),y()})),y=w(((e={})=>ve(this,void 0,void 0,(function*(){if(m.current)return;h(!0),++j.current;const{code:e}=a;try{const s=yield V({page:j.current,rows:10,isLocalMock:!Ke,childFlag:!0,dataStateStr:e});m.current=E(s.rows)||s.rows.length<10,N((e=>e.concat(s.rows||[]))),h(!1)}catch(e){--j.current,console.log(30,e)}}))));return e(d,Object.assign({className:"orderListItemWrap"},{children:l((()=>e(b,Object.assign({onScroll:y,height:O+15},{children:s(d,{children:[p.map(((e,s)=>r(He,Object.assign({init:f},e,{key:s})))),e(d,{children:g?e(u,{}):null})]})}))),[p,O])}))})),Xe=c((({refreshNum:s=0,id:a=""})=>{const{View:c}=o();return e(c,Object.assign({className:"order-container"},{children:e(p,{defaultIndex:+a,tabs:X,render:a=>e(c,Object.assign({className:"orderList"},{children:e(Ze,{item:a,refreshNum:s})}))})}))})),Ye=c((({contractBillcode:a})=>{const{View:c,Text:n}=o(),{orderDetail:i}=Y(a||"");return s(c,Object.assign({className:"orderDetail"},{children:[e(c,Object.assign({className:"orderDetailTopTitle"},{children:s(c,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(n,Object.assign({className:"title"},{children:K(i.dataState)})),e(c,{className:"subTitleWrap"})]}))})),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(n,Object.assign({className:"personName"},{children:i.goodsReceiptMem})),e(n,Object.assign({className:"personPhone"},{children:i.goodsReceiptPhone}))]})),e(c,Object.assign({className:"address"},{children:i.goodsReceiptArrdess}))]})),e(c,{className:"rPart"})]})),s(c,Object.assign({className:"orderDetailGoodsWrap"},{children:[i.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:["共",i.goodsNum,"件商品"]})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((i.dataBmoney-i.refundMoney).toFixed(2))]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"商品总额"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",i.contractInmoney]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"优惠"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",i.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:i.packageRemark}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"订单编号"})),e(c,Object.assign({className:"name"},{children:i.contractBillcode}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"下单时间"})),e(c,Object.assign({className:"name"},{children:i.gmtCreate}))]}))]})),e(c,Object.assign({className:"btnGroupFooter"},{children:e(Ge,{contractBillcode:i.contractBillcode,contractId:i.contractId,dataState:i.dataState})}))]}))}))]}))})),Je=c((({defaultValue:a,borderRadius:c,paddingTop:n,paddingBottom:i,selectClassifyNav:t})=>{const{View:l,Text:r}=o(),d=U(a,t);return e(l,Object.assign({style:{paddingTop:n,paddingBottom:i}},{children:e(l,Object.assign({className:"classifyNav"},{children:d.map(((a,n)=>s(l,Object.assign({className:"classifyNavItem",onClick:()=>{var e;return H(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}))]}),n)))}))}))})),$e=({checkCollectionObj:a,setCheckCollectionObj:c,goods:n})=>{const{Text:i,View:l}=o();t((()=>{r()}),[]);const r=()=>ve(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:n.rsSkuDomainList[0].skuCode||""};try{const s=yield B(e);c(s)}catch(e){console.log(e)}}));return s(l,Object.assign({onClick:()=>{console.log(123),E(a.dataObj)?ve(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:n.rsSkuDomainList[0].skuCode||"",collectOppic:n.dataPic,collectOpcont:n.goodsName,collectOpnum:n.pricesetNprice,goodsOrigin:0};yield L(e),r()})):ve(void 0,void 0,void 0,(function*(){console.log(53,12313132);const e={collectType:0,collectCode:a.dataObj||""};yield P(e),r()}))}},{children:[e("img",{src:Be,alt:"",className:"icon"}),e(i,Object.assign({className:"txt"},{children:E(a.dataObj)?"收藏":"已收藏"}))]}))},_e=c((({promotionBegintime:a,pbName:c,discName:n,promotionCode:i,promotionName:t,couponOnceNums:r,couponOnceNumd:d,promotionEndtime:m})=>{const{View:g,Text:h}=o(),{save:b,isPick:u}=J(),p=l((()=>r-d),[r,d]);return e(g,Object.assign({className:"couponItem"},{children:s(g,Object.assign({className:"coupon-content"},{children:[s(g,Object.assign({className:"price"},{children:[e(g,Object.assign({className:"symbol"},{children:c})),e(g,Object.assign({className:"num"},{children:n}))]})),s(g,Object.assign({className:"info"},{children:[e(h,Object.assign({className:"title"},{children:t})),s(h,Object.assign({className:"date"},{children:[je(a).format("YYYY-MM-DD")," -"," ",je(m).format("YYYY-MM-DD")]}))]})),e(g,p>0?Object.assign({className:u?"coupon-pick-default":"coupon-pick",onClick:()=>b({promotionCode:i,couponAmount:1})},{children:u?"已领取":"领取"}):Object.assign({className:"coupon-pick-default"},{children:"已领完"}))]}))}))})),{useDispatchImpl:es,useStore:ss}=$,as=({coupon:c})=>{const{View:i,Text:t}=o(),[l,d]=n(!1),{couponValue:m}=ss();return console.log(34,c),s(a,{children:[s(i,Object.assign({className:"goodsDetail-coupon",onClick:()=>d(!0)},{children:[e(t,Object.assign({className:"label"},{children:"优惠券"})),s(i,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"label"},{children:m?`已选择: ${m}`:"请选择优惠券"})),e("img",{src:Le,alt:"",className:"icon"})]}))]})),e(N,Object.assign({popupVisible:l,popupHandler:d},{children:e(i,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(b,Object.assign({height:"400"},{children:c.map(((e,s)=>r(_e,Object.assign({},e,{key:s}))))}))}))}))]})},cs=({onChange:s,readOnly:a=!1,size:c=22,count:i})=>{const{View:l}=o(),[r,d]=n([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);t((()=>{if(i){const e=[...r];for(let s=0;s<e.length;s++)e[s].icon=s>i-1?"star":"star-fill";d(e)}}),[]);const m=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(Ce,{onClick:m.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:c}},a)))})},ns=({item:a})=>{const{View:c,Image:n}=o();return s(c,Object.assign({className:"rateItem"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(n,{src:a.userImgurl,className:"avatar"}),s(c,Object.assign({className:"userInfo"},{children:[e(c,Object.assign({className:"name"},{children:a.userName})),e(cs,{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}))]}))},is=c((({url:a,title:c,subTitle:n,link:i,style:t})=>{const{View:l,Image:r}=o(),d=k();return e(l,Object.assign({className:"noData",style:t},{children:s(l,Object.assign({className:"content"},{children:[e(r,{className:"img",src:a}),e(l,Object.assign({className:"title"},{children:c})),e(l,Object.assign({className:"subTitle"},{children:n})),i?s(l,Object.assign({className:"link",onClick:()=>d.switchTab({url:i})},{children:["去看看",e(j,{value:"xiangyou1"})]})):null]}))}))})),ts=({evaluateArr:a})=>{const{View:c}=o(),n=i(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:n.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",n.current.length,")"]})),n.current.slice(0,5).map(((s,a)=>e(ns,{item:s},a)))]}):e(is,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},ls=()=>{const e=k(),[s,a]=n([]);t((()=>{ve(void 0,void 0,void 0,(function*(){const s=e.getStorageSync("service");if(s)a(c(s));else{const e=yield R();a(c(e))}}))}),[]);const c=e=>{let s=[];for(let a=0;a<e.length;a++){const c=e[a].ocsOcserviceReDomain;s.push(`${c.ocserviceName}: ${c.ocserviceRemark}`)}return s};return{servicePopup:()=>{e.showActionSheet({itemList:s,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},rs={label:""},os=()=>{const{Text:a,View:c}=o(),n=$.useDispatchImpl(),{servicePopup:i}=ls();return s(c,Object.assign({className:"goodsDetailHandleBar"},{children:[s(c,Object.assign({className:"linkGroup",onClick:i},{children:[e(j,{value:"kefu",style:{fontSize:22,display:"block"}}),e(a,Object.assign({className:"txt"},{children:"客服"}))]})),s(c,Object.assign({className:"linkGroup",onClick:()=>x(ke.shopping)},{children:[e(j,{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:()=>{++_.num,n({type:"popupImpl",payload:{orderType:0,popupVisible:!0,isNeedButton:!0}})}},{children:"加入购物车"})),e(c,Object.assign({onClick:()=>{n({type:"popupImpl",payload:{orderType:1,popupVisible:!0,isNeedButton:!0}})},className:"btn buy"},{children:"立即购买"}))]}))]}))},ds=({tabActive:s,goods:a})=>{const{View:c}=o(),[i,l]=n("");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:i||""}})}))},ms=({skuName:a,skuOption:c,index:n})=>{const{View:i,Text:t}=o(),{handleChooseSize:l,spec:r}=ee();return s(i,Object.assign({className:"sizeArr"},{children:[e(t,Object.assign({className:"title"},{children:a})),e(i,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(i,Object.assign({className:"sizeItem "+(r[n]===s.specValueValue?"active":""),onClick:l.bind(null,s.specValueValue,n)},{children:s.specValueValue}),a)))}))]}))},gs=({goods:a,goodSku:c})=>{const{count:n,spec:i,popupVisible:t,isNeedButton:l,handleStep:r,popupHandler:d,addShoppingImpl:m}=ee(),{View:g,Text:h,Image:b}=o();return e(N,Object.assign({popupVisible:t,popupHandler:d},{children:s(g,Object.assign({className:"goodsDetail-size-popup"},{children:[s(g,Object.assign({className:"content"},{children:[s(g,Object.assign({className:"goodsInfo"},{children:[e(g,Object.assign({className:"lPart"},{children:e(b,{src:a.dataPic,alt:"",className:"goodsImg"})})),s(g,Object.assign({className:"rPart"},{children:[e(g,Object.assign({className:"name"},{children:a.goodsShowname||""})),s(g,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice.toFixed(2)||""]})),s(g,Object.assign({className:"chosen"},{children:["已选择: ",i.toString()]}))]}))]})),c.map(((s,a)=>e(ms,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(g,Object.assign({className:"countWrap"},{children:[e(g,Object.assign({className:"label"},{children:"购买数量"})),e(O,{count:n,handleStep:r})]}))]})),l&&e(g,Object.assign({className:"btnWrap",onClick:m},{children:e(h,Object.assign({className:"btn"},{children:"确认"}))}))]}))}))},hs=({promotionList:a})=>{const{View:c,Text:n}=o();return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(n,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:bs,useStore:us}=$,ps=({goods:c,goodSku:n})=>{const{View:i,Text:t}=o(),{count:l,spec:r}=us(),d=bs();return s(a,{children:[s(i,Object.assign({className:"goodsDetail-size",onClick:()=>d({type:"popupImpl",payload:{popupVisible:!0,isNeedButton:!1}})},{children:[e(t,Object.assign({className:"label"},{children:"规格"})),s(i,Object.assign({className:"info"},{children:[s(t,Object.assign({className:"label"},{children:["已选择 数量: ",l," 规格: ",r.toString()]})),e("img",{src:Le,alt:"",className:"icon"})]}))]})),e(gs,{goodSku:n,goods:c})]})},Ns=C(),{StoreProvider:js}=$,Os=({skuCode:c})=>{var n;const{View:i,Text:t,Skeleton:l}=o(),{goods:r,promotionArr:d,checkCollectionObj:m,setCheckCollectionObj:g,sliderArr:h,tabActive:b,setTabActive:u,goodSku:p,evaluateArr:N,coupon:j}=se(c);return e(i,Object.assign({className:"GoodsDetailWrap",style:{minHeight:Ns?"":"667px",height:Ns?"":"auto",overflow:Ns?"":"auto"}},{children:E(r)?s(i,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(i,Object.assign({className:"topSlider"},{children:e(Me,{selectImg:h,type:1,imgHeight:{height:375,width:375}})})),s(i,Object.assign({className:"goodsDetail-topInfo"},{children:[s(i,{children:[e(t,Object.assign({className:"name"},{children:null==r?void 0:r.goodsName})),s(t,Object.assign({className:"price"},{children:["¥",null===(n=null==r?void 0:r.pricesetNprice)||void 0===n?void 0:n.toFixed(2)]}))]}),e(i,Object.assign({className:"rPart"},{children:e($e,{goods:r,checkCollectionObj:m,setCheckCollectionObj:g})}))]})),e(ps,{goods:r,goodSku:p}),e(hs,{promotionList:d}),e(as,{coupon:j}),s(i,Object.assign({className:"goodsDetailTab"},{children:[s(i,Object.assign({className:"tabs"},{children:[s(t,Object.assign({className:"tabsItem "+(1===b?"active":""),onClick:()=>u(1)},{children:["商品详情",e(t,{className:"line"})]})),s(t,Object.assign({className:"tabsItem "+(2===b?"active":""),onClick:()=>u(2)},{children:["评价",e(t,{className:"line"})]}))]})),e(i,Object.assign({className:"group"},{children:1===b?e(ds,{tabActive:b,goods:r}):e(ts,{evaluateArr:N})}))]})),e(os,{})]})}))},fs=c((({skuCode:s})=>e(js,{children:e(Os,{skuCode:s})})));function ys(e){const s=process.env.REACT_APP_BASE_URL;return RegExp(/https?/).test(e)?e:s+e}const As=c((({navList:c,activeKey:n})=>{const{View:i,Text:t}=o();return e(a,{children:c.map((a=>e(i,Object.assign({className:["content",n===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(i,Object.assign({className:"classifyFloor"},{children:[s(i,Object.assign({className:"titleWrap"},{children:[e(t,Object.assign({className:"title"},{children:a.goodsClassName})),e(t,{className:"line"})]})),e(i,Object.assign({className:"container"},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:n,goodsClassName:l})=>s(i,Object.assign({onClick:()=>v(`${ke.goodList}?classtreeCode=${a}`),className:"classifyFloorGoodsItem"},{children:[e("img",{src:ys(n),className:"logo"}),e(t,Object.assign({className:"title"},{children:l}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:vs}=h,Cs=c((()=>{const{View:a,Text:c}=o(),{activeKey:n,setActiveKey:i,navList:t,flag:l}=ae();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:()=>v(ke.search)},{children:[e(Ce,{value:"fenxiang"}),e(c,{children:"搜索商品"})]}))})),s(a,Object.assign({className:"goodsClassifyContainer"},{children:[e(a,Object.assign({className:"side"},{children:e(vs,Object.assign({activeKey:n,onChange:i,style:{"--width":"88px"}},{children:t.map((s=>e(vs.Item,{title:s.goodsClassName},s.goodsClassCode)))}))})),e(a,Object.assign({className:"main"},{children:e(As,{navList:t,activeKey:n})}))]}))]}))})),ks=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],ws=({setParams:a})=>{const{View:c}=o(),[i,t]=n(0),[l,r]=n(ks);return e(c,Object.assign({className:"sortWrap"},{children:l.map((({order:n,sortField:l,name:o},d)=>s(c,Object.assign({className:"sortItem "+(i===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,n)},{children:[o,n&&e(Ce,{style:{color:i===d?"#f00":"#444",fontSize:20},value:"desc"===n?"jiangxu":"shengxu"})]}),d)))}))},xs=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:i,Text:t}=o(),[r,d]=n({}),{loading:m,getData:g,list:h}=ce(a,c,r),p=qe("#searchId");return s(i,Object.assign({className:"goodsList"},{children:[s(i,Object.assign({id:"searchId",className:"top-info"},{children:[s(i,Object.assign({className:"top-info-search",onClick:()=>v(ke.search)},{children:[e(Ce,{value:"fenxiang"}),e(t,{children:"搜索商品"})]})),e(ws,{setParams:d})]})),e(i,Object.assign({className:"listWrap"},{children:l((()=>s(b,Object.assign({onScroll:()=>g(r),height:p},{children:[e(i,Object.assign({className:"list"},{children:h.map((a=>s(i,Object.assign({onClick:()=>v(`${ke.goodDetail}?skuCode=${a.skuCode}`),className:"listItem"},{children:[e(i,{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)))})),m?e(u,{}):null]}))),[p,h])}))]}))})),Is=C(),Ds=c((({placeholder:a,placeholderText:c,history:i})=>{const{View:t,Text:l,Input:r}=o(),[d,m]=n((()=>I("history")||[]));console.log(23,I("history"));const g=w((e=>ve(void 0,void 0,void 0,(function*(){Is&&(m((s=>{if(E(e.detail.value))return s;const a=s.concat(e.detail.value);return T("history",a),a})),h(e.detail.value))})))),h=w((e=>{v(`${ke.goodList}?searchParam=${e}`)}));return s(t,Object.assign({className:"searchPage"},{children:[s(t,Object.assign({className:"search-title"},{children:[e("img",{src:Be,alt:""}),e(r,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:g},a?{placeholder:c}:{})),e(l,Object.assign({className:"btn",onClick:()=>D()},{children:"取消"}))]})),i?s(t,Object.assign({className:"historyWrap"},{children:[s(t,Object.assign({className:"title"},{children:[s(t,Object.assign({className:"label"},{children:[e(t,{className:"icon"}),"历史搜索记录"]})),e(Ce,{onClick:()=>ve(void 0,void 0,void 0,(function*(){(yield k()).removeStorageSync("history"),m([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(t,Object.assign({className:"content"},{children:d.map(((s,a)=>e(t,Object.assign({onClick:()=>h(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),Ts=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:Be,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),Ss=c((()=>{const{View:s}=o();return e(s,Object.assign({className:"goodsDetail-promotion-wrap"},{children:e(s,{className:"goodsDetail-promotion"})}))})),Vs=({starColor:a="#FF0934",starSize:c="12px",itemData:n})=>{const{View:i,Text:t,Image:l}=o(),{Rate:r}=h;return s(i,Object.assign({className:"evaluateItem"},{children:[s(i,Object.assign({className:"userInfo"},{children:[e(l,{src:n.avatar,className:"avatar"}),s(i,Object.assign({className:"userNameWrap"},{children:[e(t,Object.assign({className:"userName"},{children:n.userName})),e(r,{readOnly:!0,value:n.rate,style:{"--star-size":c,"--active-color":a}})]}))]})),s(i,Object.assign({className:"size"},{children:["规格: ",n.size]})),e(i,Object.assign({className:"content"},{children:n.evaluate})),e(i,Object.assign({className:"img-group"},{children:n.imgUrls.map(((s,a)=>e(l,{src:s.imgUrl,className:"img"},a)))}))]}))},Bs=[{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"}]}],Ls=c((()=>{const[c,t]=n("1"),{View:l}=o(),r=i([{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:Bs.map(((s,a)=>e(Vs,{itemData:s},a)))}))]})})),Ps=c((({code:c})=>{const{orderInfo:n,changeStar:t,Submit:l,changeContent:r}=ne(c),{Button:d}=h,{View:m,Image:g,TextArea:b,Textarea:u}=o(),p=b||u,N=i("宝贝满足你吗?分享一下它吧");return s(m,Object.assign({className:"evaluateDetail"},{children:[n.map(((c,n)=>s(a,{children:[s(m,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"lPart"},{children:[e(g,{src:c.dataPic,className:"img"}),s(m,Object.assign({className:"goodsInfo"},{children:[e(m,Object.assign({className:"goodsName"},{children:c.goodsName})),e(m,Object.assign({className:"goodsSize"},{children:c.skuName}))]}))]})),e(m,Object.assign({className:"rPart"},{children:s(m,Object.assign({className:"price"},{children:["¥ ",c.pricesetNprice]}))}))]}),n),s(m,Object.assign({className:"rate"},{children:[e(m,Object.assign({className:"title"},{children:"商品评价"})),e(cs,{onChange:t.bind(null,n)})]})),e(m,Object.assign({className:"evaluate"},{children:e(p,{className:"content",placeholder:N.current,rows:5,maxLength:30,onInput:r.bind(null,n)})}))]}))),e(d,Object.assign({className:"btn",onClick:l},{children:"提交"}))]}))})),Rs=({txt:s,onChange:a,checked:c})=>{const{View:n}=o(),{Checkbox:i}=h;return e(n,{children:e(i,Object.assign({onChange:a,checked:c,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},Ms=({itemData:a,delAddress:c,setDefault:n,fontSize:i="12px",iconSize:t="12px"})=>{const{View:l,Text:r}=o(),d=C(),m=k(),g=process.env.TARO_ENV;return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>{rs.label=a.addressId,m.navigateBack({delta:1})}},{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(j,{value:"bianjishuru"})]}))]})),s(l,Object.assign({className:"downInfo"},{children:[d?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===g?e(Rs,{txt:"设为默认地址",onChange:n,checked:"1"===(null==a?void 0:a.addressDefault)}):s("checkbox-group",Object.assign({onChange:n,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:"删除"}))]}))]}))},zs=c((()=>{const{View:s,Skeleton:c}=o(),n=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),Fs=c((({refreshNum:a})=>{const{View:c}=o(),n=C(),{list:i,delAddress:t,setDefault:l,skullShow:r}=ie(a);return s(c,Object.assign({className:"addressListWrap",style:{height:n?"inherit":"667px"}},{children:[r?e(zs,{}):e(c,Object.assign({className:"addressList"},{children:i.length?i.map(((s,a)=>e(Ms,{itemData:s,setDefault:l.bind(null,s,a),delAddress:t.bind(null,s)},null==s?void 0:s.addressId))):e(is,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(c,Object.assign({className:"addBtnWrap"},{children:e(c,Object.assign({className:"addBtn",onClick:()=>v(`${ke.addressEditor}`)},{children:"+ 新增地址"}))}))]}))})),Ws=[{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"}],Es=c((()=>{const{View:s,Skeleton:c}=o(),n=i(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));ye.forEach((e=>{const s=fe.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),fe.forEach((e=>{const s=Oe.filter((s=>s.code===e.provinceCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code+"00",children:e.children}))}));const Gs=Oe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Qs=({form:a,handleArea:c})=>{const{View:i}=o(),{CascadePicker:t}=h,l=a.getFieldValue("area"),[r,d]=n(!1),m=e=>{const s={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},a={pIndex:0,cIndex:0};for(let c=0;c<Gs.length;c++)if(Gs[c].value===e[0]){s.provinceName=Gs[c].label,a.pIndex=c;break}for(let c=0;c<Gs[a.pIndex].children.length;c++)if(Gs[a.pIndex].children[c].value===e[1]){s.cityName=Gs[a.pIndex].children[c].label,a.cIndex=c;break}for(let c=0;c<Gs[a.pIndex].children[a.cIndex].children.length;c++)if(Gs[a.pIndex].children[a.cIndex].children[c].value===e[2]){s.areaName=Gs[a.pIndex].children[a.cIndex].children[c].label;break}return console.log(52,s),s};return s(i,{children:[e(i,Object.assign({className:"txt",onClick:()=>d(!0)},{children:(null==l?void 0:l.provinceName)?`${l.provinceName}—${l.cityName}-${l.areaName}`:"请选择所在地区"})),e(t,{onConfirm:e=>{c("h5",m(e))},options:Gs,visible:r,onClose:()=>d(!1)})]})},Us=({checked:s,onChange:a})=>{const{View:c}=o(),{Switch:n}=h;return e(c,{children:e(n,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},Hs=C(),qs=c((({addressId:s})=>{const{View:c,Switch:n}=o(),{Form:i,Button:t,Input:l}=h,r=process.env.TARO_ENV,{skullShow:d,form:m,area:g,defaultAddress:b,handleArea:u,handleDefaultAddress:p,handleFinish:N}=te(s,i,Hs);return e(c,Object.assign({className:"addressDetail",style:{height:Hs?"100%":"667px"}},{children:d?e(Es,{}):e(i,Object.assign({form:m,layout:"horizontal",mode:"card",onFinish:N,footer:e(t,Object.assign({block:!0,type:"submit",color:"primary",size:"large"},{children:"提交"}))},{children:Ws.map(((s,t)=>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(l,Object.assign({},s.props)):"switch"===s.type?"h5"===r?e(Us,{onChange:p.bind(null,"h5"),checked:"1"===b}):e(n,{color:"#000",onChange:p.bind(null,"weapp"),checked:"1"===b}):"cascader"===s.type?e(a,{children:Hs?"h5"===r?e(Qs,{form:m,handleArea:u}):e("picker",Object.assign({mode:"region",onChange:u.bind(null,"weapp"),value:"123"},{children:e(c,Object.assign({className:"areaWrap"},{children:g.provinceName?`${g.provinceName}—${g.cityName}-${g.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),t)))}))}))})),Ks=({address:s})=>e(a,{children:E(s)?e(Xs,{}):e(Zs,{address:s})}),Zs=({address:a})=>{const{View:c,Text:n}=o(),i=l((()=>{const{provinceName:e,addressDefault:s,cityName:c,areaName:n,addressDetail:i,addressMember:t="",addressPhone:l=""}=a;return{addressDefault:"1"===s,addressMember:t,addressPhone:l,address:e+c+n+i}}),[a]);return s(c,Object.assign({className:"address-info"},{children:[e(j,{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(n,{children:i.addressMember}),e(n,Object.assign({className:"left-padding"},{children:i.addressPhone})),e(n,Object.assign({className:"left-padding left-title-default"},{children:i.addressDefault?"默认":""}))]})),e(c,Object.assign({className:"left-detail"},{children:i.address}))]})),e(j,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},Xs=()=>{const{View:c,Text:n}=o();return s(a,{children:[s(c,Object.assign({className:"group"},{children:[e(n,{className:"local"}),e(n,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(n,{className:"arrow"})]})},Ys=({payState:c,amount:n})=>{const{View:i}=o(),{shoppingCountPrice:t,freight:l,comDisMoney:r}=c;return e(a,{children:s(i,Object.assign({className:"price blcWrap"},{children:[e(i,Object.assign({className:"title"},{children:"价格明细"})),s(i,Object.assign({className:"express blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"商品总金额"})),s(i,Object.assign({className:"value"},{children:["¥ ",(+t).toFixed(2)]}))]})),s(i,Object.assign({className:"coupon blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"优惠金额"})),s(i,Object.assign({className:"value"},{children:["¥ ",r]}))]})),s(i,Object.assign({className:"express blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"运费"})),s(i,Object.assign({className:"value"},{children:["¥ ",l]}))]})),s(i,Object.assign({className:"all blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"总计"})),s(i,Object.assign({className:"value",style:{color:"#000"}},{children:["¥ ",n]}))]}))]}))})},Js=({goodsList: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)))}))},$s=({amount:a,savePayPrice:c})=>{const{View:n,Text:i}=o();return s(n,Object.assign({className:"placeOrderFooter"},{children:[s(i,Object.assign({className:"price"},{children:["合计: ",a]})),e(n,Object.assign({className:"btn",onClick:c},{children:"生成订单"}))]}))},_s=c((({couponStart:a,pbName:c,discName:n,promotionCode:i,promotionName:t,couponEnd:l,disable:r})=>{const{View:d,Text:m,Radio:g}=o();return e(d,Object.assign({className:"couponItem"},{children:s(d,Object.assign({className:"coupon-content"},{children:[s(d,Object.assign({className:"price"},{children:[e(d,Object.assign({className:"symbol"},{children:c})),e(d,Object.assign({className:"num"},{children:n}))]})),s(d,Object.assign({className:"info"},{children:[e(m,Object.assign({className:"title"},{children:t})),s(m,Object.assign({className:"date"},{children:[je(a).format("YYYY-MM-DD")," - ",je(l).format("YYYY-MM-DD")]}))]})),e(d,r?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(g,{disabled:r,value:i})}))]}))}))})),ea=({coupon:c,confirm:i,amount:t})=>{const{View:d,Text:m}=o(),[g,h]=n(!1),[u,p]=n(),j=l((()=>(c.find((e=>e.promotionCode===u))||{}).promotionName),[u]);return s(a,{children:[s(d,Object.assign({className:"coupon-select",onClick:()=>h(!0)},{children:[e(m,Object.assign({className:"label"},{children:"优惠券"})),s(d,Object.assign({className:"info"},{children:[e(m,Object.assign({className:"label"},{children:j?`已选择: ${j}`:"请选择优惠券"})),e("img",{src:Le,alt:"",className:"icon"})]}))]})),e(N,Object.assign({popupVisible:g,popupHandler:h},{children:e(d,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(b,Object.assign({height:400},{children:e(f,Object.assign({onChange:e=>{const s=e.detail.value,a=c.find((e=>e.promotionCode===s))||{};p(s),h(!1),i(a)}},{children:c.map(((e,s)=>r(_s,Object.assign({disable:t<e.discAmount},e,{key:s}))))}))}))}))}))]})},sa=c((({refreshNum:a,goodsNum:c,skuId:n,shoppingGoodsId:i})=>{const{View:t}=o(),{label:l}=rs,{savePayPrice:r,address:d,list:m,payState:g,coupon:h,confirm:b,amount:u}=le({skuId:n,goodsNum:c,shoppingGoodsId:i},a,l);return s(t,Object.assign({style:{height:"100%"},className:"placeOrder"},{children:[s(t,Object.assign({className:"order-wrap",style:{height:"calc(100% - 54px)"}},{children:[e(t,Object.assign({className:"chooseAddress",onClick:()=>v(ke.addressList)},{children:e(Ks,{address:d})})),e(Js,{goodsList:m.current}),e(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:"快递"}))]}))})),e(ea,{coupon:h,confirm:b,amount:u}),e(Ys,{amount:u,savePayPrice:r,payState:g.current})]})),e($s,{savePayPrice:r,amount:u})]}))})),{useOrderResult:aa}=re,ca=C(),na=c((({code:a})=>{const{View:c,Text:n}=o(),{result:i}=aa(a||(I("contractBillcode")||{}).contractBillcode),{sysRecode:t,dataObj:l}=i;return console.log(15,t,l),e(c,Object.assign({className:"placeOrderResult",style:{height:ca?"100vh":"667px"}},{children:s(c,t?Object.assign({className:"placeOrderResultContent"},{children:[e(n,{className:"icon"}),e(c,Object.assign({className:"tips"},{children:e(n,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(c,Object.assign({className:"placeOrderResultWrap"},{children:[s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(n,Object.assign({className:"label"},{children:"订单号:"})),e(n,Object.assign({className:"value"},{children:l.contractBillcode}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(n,Object.assign({className:"label"},{children:"支付方式:"})),e(n,Object.assign({className:"value"},{children:"在线支付"}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(n,Object.assign({className:"label"},{children:"支付金额:"})),s(n,Object.assign({className:"value"},{children:["¥ ",l.dataBmoney]}))]}))]})),s(c,Object.assign({className:"btnGroup"},{children:[e(c,Object.assign({className:"btn black",onClick:()=>v(`${Z.orderDetail}?contractBillcode=${l.contractBillcode}`)},{children:"查看订单"})),e(c,Object.assign({onClick:()=>x(Z.classify),className:"btn white"},{children:"继续购物"}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(n,{className:"icon"}),s(c,Object.assign({className:"tips"},{children:[e(n,Object.assign({className:"title"},{children:"订单支付失败"})),e(n,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(c,Object.assign({className:"btnGroup"},{children:e(c,Object.assign({onClick:()=>v(`${Z.paymentMode}?code=${i.contractBillcode}`),className:"btn white"},{children:"去支付"}))}))]}))}))})),ia=()=>{const{View:s,Image:a}=o();return e(s,Object.assign({className:"noData"},{children:e(a,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})}))},ta=({coe:c})=>{const{overdueList:n}=oe(),{View:i,Text:t}=o();return e(a,{children:3===c?n.length?e(b,Object.assign({style:{height:"80vh"}},{children:n.map(((a,c)=>e(i,Object.assign({className:"couponListItem overdue"},{children:s(i,Object.assign({className:"coupon-content"},{children:[e(i,Object.assign({className:"price"},{children:e(t,Object.assign({className:"num"},{children:a.pbName}))})),s(i,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"title"},{children:a.discName})),s(t,Object.assign({className:"date"},{children:["有效期至:",`${new Date(a.gmtModified).getFullYear()}-${new Date(a.gmtModified).getMonth()+1}-${new Date(a.gmtModified).getDate()}`]})),e(i,Object.assign({className:"btn"},{children:"已使用"})),e(i,Object.assign({className:"round"},{children:"已失效"}))]}))]}))}),c)))})):e(ia,{}):null})};c((()=>{const{View:s,Skeleton:c}=o(),n=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));const la=({coe:c})=>{const{unusedList:n}=de(),{View:i,Text:t}=o(),l=qe("#couponTab");return e(a,{children:1===c?n.length?e(b,Object.assign({height:l+40},{children:n.map(((a,c)=>e(i,Object.assign({className:"couponListItem unused"},{children:s(i,Object.assign({className:"coupon-content"},{children:[e(i,Object.assign({className:"price"},{children:e(t,Object.assign({className:"num"},{children:a.pbName}))})),s(i,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"title"},{children:a.discName})),s(t,Object.assign({className:"date"},{children:["有效期至:",`${new Date(a.gmtModified).getFullYear()}-${new Date(a.gmtModified).getMonth()+1}-${new Date(a.gmtModified).getDate()}`]})),e(i,Object.assign({className:"btn"},{children:"未使用"}))]}))]}))}),c)))})):e(ia,{}):null})},ra=({coe:c})=>{const{View:n,Text:i}=o(),{usedList:t}=me();return e(a,{children:2===c?t.length?e(b,Object.assign({style:{height:"80vh"}},{children:t.map(((a,c)=>e(n,Object.assign({className:"couponListItem used"},{children:s(n,Object.assign({className:"coupon-content"},{children:[e(n,Object.assign({className:"price"},{children:e(i,Object.assign({className:"num"},{children:a.pbName}))})),s(n,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"title"},{children:a.discName})),s(i,Object.assign({className:"date"},{children:["有效期至:",`${new Date(a.gmtModified).getFullYear()}-${new Date(a.gmtModified).getMonth()+1}-${new Date(a.gmtModified).getDate()}`]})),e(n,Object.assign({className:"btn"},{children:"已使用"}))]}))]}))}),c)))})):e(ia,{}):null})},oa=c((()=>{const{View:a,Text:c}=o(),{coe:n,setCoe:i,config:l}=ge();return C(),t((()=>{M().then((e=>{console.log(26,e)}))}),[]),s(a,Object.assign({className:"couponList"},{children:[e(a,Object.assign({className:"couponTab",id:"couponTab"},{children:l.current.map((t=>s(a,Object.assign({className:"couponTabItem "+(n===t.id?"active":""),onClick:()=>i(t.id)},{children:[t.label,e(c,{className:"icon"})]}),t.id)))})),s(a,Object.assign({className:"couponListContent"},{children:[e(la,{coe:n}),e(ra,{coe:n}),e(ta,{coe:n})]}))]}))}));function da({list:a}){const{View:c,Text:n,Image:i,Checkbox:t}=o(),{loading:l}=he(),{select:r,onChange:d,handleStep:m}=be();return e(y,Object.assign({loading:l},{children:e(A,Object.assign({onChange:d},{children:a.map(((a,l)=>s(c,Object.assign({className:"cartItem"},{children:[e(c,Object.assign({className:"checkBoxWrap"},{children:e(t,{checked:r.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(i,{className:"img",src:a.dataPic}),s(c,Object.assign({className:"info"},{children:[e(n,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(n,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(O,{count:a.goodsCamount,handleStep:m.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),l)))}))}))}const ma=C(),ga=({refreshNum:c})=>{const{View:i,Text:t,Checkbox:l}=o(),[r,d]=n(!0),{cartList:m,amount:g,selectAll:h,allCart:b,toOrderImpl:u,select:p,deleteCart:N,disMoney:j}=pe(c);return e(i,Object.assign({className:"cart",style:{height:ma?"100%":"667px"}},{children:m.length?s(a,{children:[e(i,Object.assign({className:"edit"},{children:e(i,Object.assign({className:"btn",onClick:()=>d(!r)},{children:r?"编辑":"完成"}))})),e(i,Object.assign({className:"itemGroup"},{children:e(da,{list:m})})),s(i,Object.assign({className:"dashboard"},{children:[e(i,Object.assign({className:"choose"},{children:e(A,Object.assign({onChange:h},{children:e(l,Object.assign({checked:b.current.length===p.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),r?s(i,Object.assign({className:"check"},{children:[s(i,Object.assign({className:"priceGroup"},{children:[s(i,Object.assign({className:"discount"},{children:["优惠: ",s(t,Object.assign({className:"data"},{children:["¥ ",j||0]}))]})),s(i,Object.assign({className:"all"},{children:["合计: ",s(t,Object.assign({className:"data"},{children:["¥ ",g.amount.toFixed(2)]}))]}))]})),s(i,Object.assign({onClick:u,className:"btn"},{children:["结算(",g.num,")"]}))]})):e(i,Object.assign({className:"del"},{children:e(i,Object.assign({onClick:N,className:"btn"},{children:"删除"}))}))]}))]}):e(is,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:ke.index})}))},ha=c((({refreshNum:s})=>e(ue,{children:e(ga,{refreshNum:s})}))),ba=()=>{const{View:a,Text:c}=o(),n=i([{icon:"coupons",label:"我的优惠券",link:"couponList"},{icon:"collect",label:"我的收藏",link:"collectionList"},{icon:"dizhi",label:"我的地址",link:"addressList"},{icon:"eyes",label:"我的足迹",link:"footprint"},{icon:"tianxie",label:"我的协议",link:"myAgreementList"},{icon:"shezhi",label:"我的设置",link:"mySetting"}]);return e(a,Object.assign({className:"menuList"},{children:n.current.map(((n,i)=>s(a,Object.assign({className:"menuListItem",onClick:()=>v(ke[n.link])},{children:[s(a,Object.assign({className:"lPart"},{children:[e(j,{value:n.icon}),e(c,Object.assign({className:"label"},{children:n.label}))]})),e(j,{value:"xiangyou1"})]}),i)))}))},ua=()=>{const{View:a,Text:c,Badge:l}=o(),[r,d]=n({}),m=i([{badge:0,code:"waitPayNum",label:"待付款",icon:"daifukuan",link:""},{badge:0,code:"waitDeliveryNum",label:"待发货",icon:"daifahuo",link:""},{badge:0,code:"waitArriveNum",label:"待收货",icon:"daishouhuo",link:""},{badge:0,code:"evaluateNum",label:"已完成",icon:"yiwancheng",link:""},{badge:0,code:"afterSalesNum",label:"已取消",icon:"shouhou",link:""}]);return t((()=>{ve(void 0,void 0,void 0,(function*(){try{const e=yield z();d(e.dataObj)}catch(e){}}))}),[]),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:()=>v(ke.order)},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:m.current.map(((n,i)=>s(a,Object.assign({onClick:()=>v(`${ke.order}?id=${i+1}`),className:"contentItem"},{children:[e(l,Object.assign({},r[n.code]>0?{content:r[n.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12}},{children:e(j,{value:n.icon})})),e(c,Object.assign({className:"subTitle"},{children:n.label}))]}),i)))}))]}))},pa=c((({avatarStyle:a,userAvatar:c="",userNickname:n="用户名",banner:i})=>{const{View:t,Text:l}=o(),r=C(),{servicePopup:d}=ls();return s(t,Object.assign({className:"mine",style:{height:r?"100%":"667px"}},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(j,{value:"shezhi",onClick:()=>v(ke.setting)}),e(j,{value:"kehufuwukefu",onClick:d})]})),s(t,Object.assign({className:"userSetting",onClick:()=>v(ke.setting)},{children:[s(t,Object.assign({className:"lPart"},{children:[e(l,Object.assign({className:"name"},{children:n||"用户名称"})),e(t,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e("img",{src:c,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]})),e(ua,{}),e(ba,{}),i?e("img",{className:"banner",src:"",alt:""}):null]}))})),Na=C(),ja=c((({code:a})=>{const{View:c,Text:n,Radio:i}=o(),{paymentImpl:t,channelList:l,contract:r,handleRadio:d,loading:m}=Ne(a);return s(c,Object.assign({className:"paymentModeWrap",style:{height:Na?"inherit":"667px"}},{children:[s(c,Object.assign({className:"paymentMode"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(n,Object.assign({className:"title"},{children:[e(j,{value:"roundcheck"}),"订单提交成功"]})),s(c,Object.assign({className:"info"},{children:["订单号:",r.current.contractBillcode," | 总金额:",r.current.dataBmoney,"元"]}))]})),e(c,Object.assign({className:"paymentGroup"},{children:e(f,Object.assign({onChange:d},{children:l.map((a=>s(c,Object.assign({className:"paymentItem"},{children:[e(j,{value:a.icon}),s(c,{children:[s(c,Object.assign({className:"base"},{children:[e(n,{children:a.fchannelName}),e(i,{value:a.fchannelCode,className:"choose"})]})),"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:m},{children:e(c,Object.assign({className:"btnGroup",onClick:t},{children:e(c,Object.assign({className:"payment"},{children:"立即支付"}))}))}))]}))})),Oa=c((()=>{const{View:s}=o();return e(s,Object.assign({clasName:"footprint"},{children:123123}))}));export{qs as AddressDetail,Fs as AddressList,ha as Cart,Je as ClassifyNav,oa as CouponList,De as Cube,Ps as EvaluateDetail,Ls as EvaluateList,Oa as Footprint,we as Goods,Cs as GoodsClassify,fs as GoodsDetail,Ss as GoodsDetailPromotion,Ts as GoodsDetailTopInfo,Fe as GoodsGroup,xs as GoodsList,Te as Line,pa as Mine,xe as Notice,Ye as OrderDetail,Xe as OrderList,ja as PaymentMode,sa as PlaceOrder,na as PlaceOrderResult,Ce as QjMobileIcon,Pe as Search,Ds as SearchPage,Ve as Service,Me as Slider,Ie as Title,Se as Video};
|
|
1
|
+
import{jsx as e,jsxs as s,Fragment as a}from"react/jsx-runtime";import{memo as c,useState as n,useRef as i,useEffect as t,useMemo as l,createElement as o,Fragment as r}from"react";import{useComponent as d,NoticeBar as m,antdMobile as g,IconMobile as h,ScrollView as b}from"@brushes/simulate-component";import{navigatorImpl as p,getEnv as u,getStorage as N,getTaro as O,useImmutableCallback as j,switchTabImpl as f,navigatorBackImpl as A,setStorage as y}from"@brushes/utils";import{find as C,queryOcsconfigList as v,queryContractPageC as w,checkCollectExit as k,saveCollect as I,deleteCollectByCode as x,queryUsercouponNember as D,getContractNumbers as S}from"qj-b2c-api";import V from"classnames";import{routerMap as T,useNotice as B,useCube as L,navigatorHandler as P,useOrderOperate as M,orderStatusImpl as R,orderStatusList as z,useOrderDetail as F,useAddCoupon as W,goodsDetailStore as G,refreshCard as E,useAddShopping as H,useGoodsDetailImpl as Q,useGoodsClassify as U,useGoodsList as q,useEvaluateDetail as K,useAddressList as Z,useEditAddress as X,usePlaceOrder as Y,useOrderResultResult as J,useOverdue as $,useUnused as _,useUsed as ee,useCouponList as se,useStore as ae,useCartItem as ce,StoreProvider as ne,useCartList as ie,useOrderResult as te}from"qj-mobile-store";import{isEqual as le,isEmpty as oe,isUndefined as re,get as de}from"lodash-es";import me from"dayjs";import ge from"china-division/dist/provinces.json";import he from"china-division/dist/cities.json";import be from"china-division/dist/areas.json";function pe(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 n=0;for(c=Object.getOwnPropertySymbols(e);n<c.length;n++)s.indexOf(c[n])<0&&Object.prototype.propertyIsEnumerable.call(e,c[n])&&(a[c[n]]=e[c[n]])}return a}function ue(e,s,a,c){return new(a||(a=Promise))((function(n,i){function t(e){try{o(c.next(e))}catch(e){i(e)}}function l(e){try{o(c.throw(e))}catch(e){i(e)}}function o(e){var s;e.done?n(e.value):(s=e.value,s instanceof a?s:new a((function(e){e(s)}))).then(t,l)}o((c=c.apply(e,s||[])).next())}))}const Ne=({className:s="iconfont",prefixClass:a="icon",onClick:c=(()=>{}),style:n={fontSize:16,color:"#444",fontWeight:900},value:i})=>{const{Text:t}=d();return e(t,{onClick:c,className:V(a,i?`${a}-${i}`:"",s),style:n})},Oe=c((({defaultValue:a=[],classCode:c="",margin:l,circular:o,cell:r,showSales:m,gap:g=10,goods:h=[],markedPrice:b,paddingTop:u,paddingBottom:N,paddingLeft:O,paddingRight:j})=>{const[f,A]=n(a),y=i(),{View:v,Text:w}=d();return t((()=>{le(y.current,h)||(y.current=h,oe(h)?A(a):ue(void 0,void 0,void 0,(function*(){try{const e=yield C({goodsCode:h.toString()});console.log(63,e),A(e.rows)}catch(e){A(a)}})))}),[h]),e(v,Object.assign({style:{paddingTop:u,paddingBottom:N}},{children:e(v,Object.assign({className:V({[`goods-${c}`]:!0}),style:{display:"grid",gap:g,marginBottom:l,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:O,paddingRight:j}},{children:f.map(((a,c)=>s(v,Object.assign({style:{overflow:"hidden",borderRadius:2===o?0:"8px"},onClick:()=>p(`${T.goodDetail}?skuCode=${a.skuCode}`),className:"goods"},{children:[e(v,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(v,Object.assign({className:"space"},{children:[e(v,Object.assign({className:"titleType"},{children:a.goodsName})),e(v,Object.assign({className:"subTitle"},{children:a.brandName})),m&&s(v,Object.assign({className:"sales"},{children:["已售:",a.sales,"件"]})),s(v,Object.assign({className:"price"},{children:[e(w,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===b&&s(w,Object.assign({className:"markedPrice"},{children:[e(w,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(v,Object.assign({className:"anticon"},{children:e(Ne,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),je=({direction:s,speed:a,num:c,color:n})=>{const{content:i,navigator:t}=B(c);return e(m,{navigator:t,color:n,speed:a,direction:s,content:i})},fe=c((({value:s,textIndent:a,fontSize:c,textAlign:n,color:i,backgroundColor:t,fontWeight:l,textDecoration:o,fontStyle:r,paddingTop:m,paddingLeft:g,paddingRight:h,paddingBottom:b})=>{const{View:p}=d();return e(p,Object.assign({className:"components-title",style:{paddingTop:m,paddingBottom:b}},{children:e(p,Object.assign({style:{fontSize:c,textAlign:n,color:i,backgroundColor:t,fontWeight:l,textDecoration:o,fontStyle:r,paddingLeft:g,paddingRight:h,textIndent:a}},{children:s}))}))})),Ae=c((({imgWidthHeight:s,defaultValue:a,type:c,borderRadius:n,paddingTop:i,paddingLeft:t,paddingRight:l,paddingBottom:o,selectImg:r})=>{const{View:m,Image:g}=d(),h=L(a,r);return e(m,Object.assign({style:{paddingTop:i,paddingBottom:o}},{children:e(m,Object.assign({className:`cube-type${c}`,style:{paddingLeft:t,paddingRight:l}},{children:h.map(((s,a)=>{var c;return e(g,{className:"block",mode:"scaleToFill",src:s.imgUrl,style:{borderRadius:n+"px"},onClick:P.bind(null,null===(c=s.link)||void 0===c?void 0:c.value)},a)}))}))}))})),ye=c((({borderStyle:s,borderRadius:a,height:c,width:n,backgroundColor:i,paddingTop:t,paddingBottom:l})=>{const{View:o}=d();return e(o,Object.assign({style:{paddingTop:t,paddingBottom:l}},{children:e(o,{style:{borderRadius:a+"%",borderStyle:s,width:n+"%",height:c+"px",backgroundColor:i,marginLeft:"auto",marginRight:"auto"}})}))})),Ce=c((({url:s,poster:a,autoplay:c,loop:n,paddingTop:i,paddingBottom:t,paddingLeft:l,paddingRight:o})=>{const{View:r}=d();return e(r,Object.assign({style:{paddingTop:i,paddingBottom:t}},{children:e("video",{className:"components-video",src:"https://www.runoob.com/try/demo_source/movie.ogg",poster:a,autoPlay:c,loop:n,controls:!0,"object-fit":"contain",style:{width:"100%",height:"240px",paddingLeft:l,paddingRight:o}})}))})),ve=c((({width:s,height:a,top:c,right:n,bottom:i,left:t,borderRadius:l})=>{const{View:o}=d();return e(o,{style:{width:s,height:a,borderRadius:l,top:c,left:t,right:n,bottom:i},className:"components-service"})})),we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAADcdJREFUeF7tnQXMZUcVx38FihUvbkGCu7sVDVYo7lLctUhwd1JcUiw4FCgeXIMU1+LuUtwtP3Ze2C673zvn3pkr37sn2WzTPTNv5sz/j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fjQD/Mt0dGvgAgIqXxeTIgMNBWQ1OoatsCgPEXNzqCKAhM3xetQzSot2t0ogvfniUgCDRC7al8jO5nxmKEI62XHWB+cDMji84zhtSv1s/IqUOKCT28+E59AcD8ALAasU6mFpLwzNeG0SndzgKA+QKgysgXAFQR43w7WQAw37WrMvIFAFXEON9OFgDMd+2qjHwBQBUxzreTBQDzXbsqI18AUEWM8+1kAcB8167KyBcAVBHjfDv5D+vIKZ/vdzjHAAAAAElFTkSuQmCC",ke="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Ie=c((({value:a,iconShow:c,fontColor:n,backgroundColor:i,borderRadius:t,paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:m})=>{const{View:g,Image:h}=d();return e(g,Object.assign({onClick:()=>p(T.search),style:{paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:m}},{children:s(g,Object.assign({className:"components-search",style:{backgroundColor:i,borderRadius:t+"px",height:"32px",lineHeight:"32px",width:"100%",display:"inline-block",textAlign:"center"}},{children:[e(h,{src:we,alt:"",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(g,Object.assign({className:"txt",style:{color:n,display:"inline-block",fontSize:"14px"}},{children:a}))]}))}))})),xe=c((({item:s})=>{var a;const{Image:c}=d();return e(c,{mode:"widthFix",src:s.imgUrl,style:{width:"100%",height:"100%"},onClick:P.bind(null,null===(a=s.link)||void 0===a?void 0:a.value)})})),De=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:n,direction:i,loop:t,paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:m,selectImg:g,imgHeight:h})=>{const{SmoothSwiper:b,View:p}=d(),u=L(s,g);return e(p,Object.assign({style:{paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:m}},{children:e(b,{imgHeight:h,data:u,type:a,autoplay:c,autoplayInterval:n,direction:i,loop:t,render:s=>e(xe,{item:s})})}))})),{JumboTabs:Se}=g,Ve=c((({defaultValue:s=[],type:a,selectGoodsGroup:c=[],marginTop:i,marginBottom:l,borderRadius:o})=>{const[r,d]=n(s);return t((()=>{const e=c.filter((e=>!re(e))).filter((e=>!Object.values(e).every((e=>re(e)))));let a=s;oe(e)||(a=e),d(a)}),[c]),e(Se,Object.assign({style:{marginTop:i+"px",marginBottom:l+"px"}},{children:r.map(((s,a)=>e(Se.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(Oe,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:o})}),a)))}))})),Te=u(),Be=()=>{const[e,s]=n([]);t((()=>{ue(void 0,void 0,void 0,(function*(){const e=N("service");if(e)s(a(e));else{const e=yield v();s(a(e))}}))}),[]);const a=e=>{let s=[];for(let a=0;a<e.length;a++){const c=e[a].ocsOcserviceReDomain;s.push(`${c.ocserviceName}: ${c.ocserviceRemark}`)}return s};return{servicePopup:()=>{if(!Te)return;O().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},Le={label:""},Pe=(e=0)=>e?"¥ "+ +e.toFixed(2):"",Me=({dataPic:a,goodsName:c,goodsCamount:n,pricesetNprice:i,skuName:t})=>{const{View:l,Image:o}=d(),r=Pe(i);return s(l,Object.assign({className:"card-item"},{children:[e(o,{src:a,alt:"",className:"card-item-img"}),s(l,Object.assign({className:"card-item-info"},{children:[s(l,Object.assign({className:"card-item-info-container"},{children:[e(l,Object.assign({className:"card-item-info-container-title"},{children:c})),e(l,Object.assign({className:"card-item-info-container-price"},{children:r}))]})),s(l,Object.assign({className:"card-item-info-sub"},{children:[e(l,Object.assign({className:"sku"},{children:t})),s(l,Object.assign({className:"count"},{children:["x ",n]}))]}))]}))]}))},{Button:Re}=g,ze=s=>{var{dataState:c}=s,n=pe(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(Fe,Object.assign({dataState:c},n))})},Fe=s=>{var{dataState:a,contractAppraise:c}=s,n=pe(s,["dataState","contractAppraise"]);const{View:i}=d();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:t,handlerImpl:l}=M(Object.assign({dataState:a},n));return e(i,Object.assign({className:"btnGroup"},{children:t.map(((s,a)=>e(Re,Object.assign({className:V({btn:!0,white:0===a,black:1===a}),onClick:()=>l(s.handler),shape:"rounded"},{children:s.name}),a)))}))},{Button:We}=g;function Ge({contractBillcode:a,dataBmoney:c,dataBnum:n,goodsList:i,dataState:t,contractId:l,init:o,contractAppraise:r}){const{View:m}=d(),g=R(t);return s(m,Object.assign({className:"orderListItem"},{children:[s(m,Object.assign({onClick:()=>p(`${T.orderDetail}?contractBillcode=${a}`)},{children:[s(m,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(We,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(m,Object.assign({className:"status"},{children:g}))]})),s(m,Object.assign({className:"goodsItemWrap"},{children:[i.map((s=>e(Me,Object.assign({},s),s.contractGoodsId))),s(m,Object.assign({className:"allInfo"},{children:[s(m,Object.assign({className:"totalNum"},{children:["共",n,"件商品"]})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(ze,{init:o,contractId:l,contractBillcode:a,dataState:t,contractAppraise:r})]}))}function Ee(e){const[s,a]=n(0);return t((()=>{if(!u())return;const s=O().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{bottom:s}=e;a(s)}})).exec()}))})),s}const He=u(),Qe={contractBillcode:"",goodsList:[{dataPic:"",goodsName:"",dataBmoney:0,goodsCamount:0,contractGoodsId:0,dataState:0}],dataBmoney:0,dataBnum:0,dataState:0,contractId:"",contractAppraise:0};const Ue=c((function({item:a,refreshNum:c}){const{View:r,ScrollView:m,Loading:g}=d(),h=i(!1),[b,p]=n(!1),[u,N]=n([Qe]),O=i(0),f=Ee("#qj-tabs-id");t((()=>{A()}),[c]);const A=j((()=>{O.current=0,N([]),y()})),y=j(((e={})=>ue(this,void 0,void 0,(function*(){if(h.current)return;p(!0),++O.current;const{code:e}=a;try{const s=yield w({page:O.current,rows:10,isLocalMock:!He,childFlag:!0,dataStateStr:e});h.current=oe(s.rows)||s.rows.length<10,N((e=>e.concat(s.rows||[]))),p(!1)}catch(e){--O.current,console.log(30,e)}}))));return e(r,Object.assign({className:"orderListItemWrap"},{children:l((()=>e(m,Object.assign({onScroll:y,height:f+15},{children:s(r,{children:[u.map(((e,s)=>o(Ge,Object.assign({init:A},e,{key:s})))),e(r,{children:b?e(g,{}):null})]})}))),[u,f])}))})),qe=c((({refreshNum:s=0,id:a=""})=>{const{View:c,Tabs:n}=d();return e(c,Object.assign({className:"order-container"},{children:e(n,{defaultIndex:+a,tabs:z,render:a=>e(c,Object.assign({className:"orderList"},{children:e(Ue,{item:a,refreshNum:s})}))})}))})),Ke=c((({contractBillcode:a})=>{const{View:c,Text:n}=d(),{orderDetail:i}=F(a||"");return s(c,Object.assign({className:"orderDetail"},{children:[e(c,Object.assign({className:"orderDetailTopTitle"},{children:s(c,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(n,Object.assign({className:"title"},{children:R(i.dataState)})),e(c,{className:"subTitleWrap"})]}))})),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(n,Object.assign({className:"personName"},{children:i.goodsReceiptMem})),e(n,Object.assign({className:"personPhone"},{children:i.goodsReceiptPhone}))]})),e(c,Object.assign({className:"address"},{children:i.goodsReceiptArrdess}))]})),e(c,{className:"rPart"})]})),s(c,Object.assign({className:"orderDetailGoodsWrap"},{children:[i.goodsList.map((s=>e(Me,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:["共",i.goodsNum,"件商品"]})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((i.dataBmoney-i.refundMoney).toFixed(2))]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"商品总额"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",i.contractInmoney]}))]})),s(c,Object.assign({className:"priceInfoFloor"},{children:[e(c,Object.assign({className:"totalNum"},{children:"优惠"})),s(c,Object.assign({className:"totalPrice"},{children:["合计 ¥",i.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:i.packageRemark}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"订单编号"})),e(c,Object.assign({className:"name"},{children:i.contractBillcode}))]})),s(c,Object.assign({className:"orderInfoItem"},{children:[e(c,Object.assign({className:"label"},{children:"下单时间"})),e(c,Object.assign({className:"name"},{children:i.gmtCreate}))]}))]})),e(c,Object.assign({className:"btnGroupFooter"},{children:e(ze,{contractBillcode:i.contractBillcode,contractId:i.contractId,dataState:i.dataState})}))]}))}))]}))})),Ze=c((({defaultValue:a,borderRadius:c,paddingTop:n,paddingBottom:i,selectClassifyNav:t})=>{const{View:l,Text:o}=d(),r=L(a,t);return e(l,Object.assign({style:{paddingTop:n,paddingBottom:i}},{children:e(l,Object.assign({className:"classifyNav"},{children:r.map(((a,n)=>s(l,Object.assign({className:"classifyNavItem",onClick:()=>{var e;return P(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(o,Object.assign({className:"label"},{children:a.title}))]}),n)))}))}))})),Xe=({checkCollectionObj:a,setCheckCollectionObj:c,goods:n})=>{const{SmoothView:i,View:l}=d();t((()=>{o()}),[]);const o=()=>ue(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:de(n,"rsSkuDomainList[0].skuCode","")};try{const s=yield k(e);c(s)}catch(e){console.log(e)}}));return s(l,Object.assign({onClick:()=>{oe(a.dataObj)?ue(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:de(n,"rsSkuDomainList[0].skuCode",""),collectOppic:n.dataPic,collectOpcont:n.goodsName,collectOpnum:n.pricesetNprice,goodsOrigin:0};yield I(e),o()})):ue(void 0,void 0,void 0,(function*(){const e={collectType:0,collectCode:a.dataObj||""};yield x(e),o()}))}},{children:[e("img",{src:we,alt:"",className:"icon"}),e(i,Object.assign({className:"txt"},{children:oe(a.dataObj)?"收藏":"已收藏"}))]}))},Ye=c((({promotionBegintime:a,pbName:c,discName:n,promotionCode:i,promotionName:t,couponOnceNums:o,couponOnceNumd:r,promotionEndtime:m})=>{const{View:g,Text:h}=d(),{save:b,isPick:p}=W(),u=l((()=>o-r),[o,r]);return e(g,Object.assign({className:"couponItem"},{children:s(g,Object.assign({className:"coupon-content"},{children:[s(g,Object.assign({className:"price"},{children:[e(g,Object.assign({className:"symbol"},{children:c})),e(g,Object.assign({className:"num"},{children:n}))]})),s(g,Object.assign({className:"info"},{children:[e(h,Object.assign({className:"title"},{children:t})),s(h,Object.assign({className:"date"},{children:[me(a).format("YYYY-MM-DD")," -"," ",me(m).format("YYYY-MM-DD")]}))]})),e(g,u>0?Object.assign({className:p?"coupon-pick-default":"coupon-pick",onClick:()=>b({promotionCode:i,couponAmount:1})},{children:p?"已领取":"领取"}):Object.assign({className:"coupon-pick-default"},{children:"已领完"}))]}))}))})),{useStore:Je}=G,$e=({coupon:c})=>{const{View:i,Text:t,Popup:l,ScrollView:r}=d(),[m,g]=n(!1),{couponValue:h}=Je();return s(a,{children:[s(i,Object.assign({className:"goodsDetail-coupon",onClick:()=>g(!0)},{children:[e(t,Object.assign({className:"label"},{children:"优惠券"})),s(i,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"label"},{children:h?`已选择: ${h}`:"请选择优惠券"})),e("img",{src:ke,alt:"",className:"icon"})]}))]})),e(l,Object.assign({popupVisible:m,popupHandler:g},{children:e(i,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(r,Object.assign({height:"400"},{children:c.map(((e,s)=>o(Ye,Object.assign({},e,{key:s}))))}))}))}))]})},_e=({onChange:s,readOnly:a=!1,size:c=22,count:i})=>{const{View:l}=d(),[o,r]=n([{icon:"star-fill"},{icon:"star"},{icon:"star"},{icon:"star"},{icon:"star"}]);t((()=>{if(i){const e=[...o];for(let s=0;s<e.length;s++)e[s].icon=s>i-1?"star":"star-fill";r(e)}}),[]);const m=e=>{if(!a){for(let s=0;s<o.length;s++)o[s].icon=s>e?"star":"star-fill";r([...o]),s(e+1)}};return e(l,{children:o.map(((s,a)=>e(Ne,{onClick:m.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:c}},a)))})},es=({item:a})=>{const{View:c,Image:n}=d();return s(c,Object.assign({className:"rateItem"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(c,Object.assign({className:"lPart"},{children:[e(n,{src:a.userImgurl,className:"avatar"}),s(c,Object.assign({className:"userInfo"},{children:[e(c,Object.assign({className:"name"},{children:a.userName})),e(_e,{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}))]}))},ss=c((({url:a,title:c,subTitle:n,link:i,style:t})=>{const{View:l,Image:o}=d();return e(l,Object.assign({className:"noData",style:t},{children:s(l,Object.assign({className:"content"},{children:[e(o,{className:"img",src:a}),e(l,Object.assign({className:"title"},{children:c})),e(l,Object.assign({className:"subTitle"},{children:n})),i?s(l,Object.assign({className:"link",onClick:()=>f(i)},{children:["去看看",e(h,{value:"xiangyou1"})]})):null]}))}))})),as=({evaluateArr:a})=>{const{View:c}=d(),n=i(a);return e(c,Object.assign({className:"goodsDetailEvaluate"},{children:n.current.length?s(c,{children:[s(c,Object.assign({className:"topInfo"},{children:["评价 (",n.current.length,")"]})),n.current.slice(0,5).map(((s,a)=>e(es,{item:s},a)))]}):e(ss,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},cs=()=>{const{Text:a,View:c,IconMobile:n}=d(),i=G.useDispatchImpl(),{servicePopup:t}=Be();return s(c,Object.assign({className:"goodsDetailHandleBar"},{children:[s(c,Object.assign({className:"linkGroup",onClick:t},{children:[e(n,{value:"kefu",style:{fontSize:22,display:"block"}}),e(a,Object.assign({className:"txt"},{children:"客服"}))]})),s(c,Object.assign({className:"linkGroup",onClick:()=>f(T.shopping)},{children:[e(n,{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:()=>{++E.num,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:"立即购买"}))]}))]}))},ns=({tabActive:s,goods:a})=>{const{View:c}=d(),[i,l]=n("");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:i||""}})}))},is=({skuName:a,skuOption:c,index:n})=>{const{View:i,Text:t}=d(),{handleChooseSize:l,spec:o}=H();return s(i,Object.assign({className:"sizeArr"},{children:[e(t,Object.assign({className:"title"},{children:a})),e(i,Object.assign({className:"sizeArrItemWrap"},{children:c.map(((s,a)=>e(i,Object.assign({className:"sizeItem "+(o[n]===s.specValueValue?"active":""),onClick:l.bind(null,s.specValueValue,n)},{children:s.specValueValue}),a)))}))]}))},ts=({goods:a={},goodSku:c})=>{const{count:n,spec:i,popupVisible:t,isNeedButton:l,handleStep:o,popupHandler:r,addShoppingImpl:m}=H(),{View:g,Text:h,Image:b,Popup:p,NumStep:u}=d();return e(p,Object.assign({popupVisible:t,popupHandler:r},{children:s(g,Object.assign({className:"goodsDetail-size-popup"},{children:[s(g,Object.assign({className:"content"},{children:[s(g,Object.assign({className:"goodsInfo"},{children:[e(g,Object.assign({className:"lPart"},{children:e(b,{src:a.dataPic,alt:"",className:"goodsImg"})})),s(g,Object.assign({className:"rPart"},{children:[e(g,Object.assign({className:"name"},{children:a.goodsShowname||""})),s(g,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice.toFixed(2)||""]})),s(g,Object.assign({className:"chosen"},{children:["已选择: ",i.toString()]}))]}))]})),c.map(((s,a)=>e(is,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(g,Object.assign({className:"countWrap"},{children:[e(g,Object.assign({className:"label"},{children:"购买数量"})),e(u,{count:n,handleStep:o})]}))]})),l&&e(g,Object.assign({className:"btnWrap",onClick:m},{children:e(h,Object.assign({className:"btn"},{children:"确认"}))}))]}))}))},ls=({promotionList:a})=>{const{View:c,Text:n}=d();return s(c,Object.assign({className:"goodsDetail-promotion"},{children:[e(n,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:os,useStore:rs}=G,ds=({goods:c,goodSku:n})=>{const{View:i,Text:t}=d(),{count:l,spec:o}=rs(),r=os();return s(a,{children:[s(i,Object.assign({className:"goodsDetail-size",onClick:()=>r({type:"popupImpl",payload:{popupVisible:!0,isNeedButton:!1}})},{children:[e(t,Object.assign({className:"label"},{children:"规格"})),s(i,Object.assign({className:"info"},{children:[s(t,Object.assign({className:"label"},{children:["已选择 数量: ",l," 规格: ",o.toString()]})),e("img",{src:ke,alt:"",className:"icon"})]}))]})),e(ts,{goodSku:n,goods:c})]})},ms=u(),{StoreProvider:gs}=G,hs=({skuCode:a})=>{const{View:c,Text:n,SmoothView:i}=d(),{goods:t,promotionArr:l,checkCollectionObj:o,setCheckCollectionObj:r,sliderArr:m,tabActive:g,setTabActive:h,goodSku:b,evaluateArr:p,coupon:u}=Q(a);return s(c,Object.assign({className:"GoodsDetailWrap",style:{minHeight:ms?"":"667px",height:ms?"":"auto",overflow:ms?"":"auto"}},{children:[e(c,Object.assign({className:"topSlider"},{children:e(De,{selectImg:m,type:1,imgHeight:{height:375,width:375}})})),s(c,Object.assign({className:"goodsDetail-topInfo"},{children:[s(c,{children:[e(i,Object.assign({className:"name"},{children:null==t?void 0:t.goodsName})),e(i,Object.assign({className:"price"},{children:Pe(null==t?void 0:t.pricesetNprice)}))]}),e(c,Object.assign({className:"rPart"},{children:e(Xe,{goods:t,checkCollectionObj:o,setCheckCollectionObj:r})}))]})),e(ds,{goods:t,goodSku:b}),e(ls,{promotionList:l}),e($e,{coupon:u}),s(c,Object.assign({className:"goodsDetailTab"},{children:[s(c,Object.assign({className:"tabs"},{children:[s(n,Object.assign({className:"tabsItem "+(1===g?"active":""),onClick:()=>h(1)},{children:["商品详情",e(n,{className:"line"})]})),s(n,Object.assign({className:"tabsItem "+(2===g?"active":""),onClick:()=>h(2)},{children:["评价",e(n,{className:"line"})]}))]})),e(c,Object.assign({className:"group"},{children:1===g?e(ns,{tabActive:g,goods:t}):e(as,{evaluateArr:p})}))]})),e(cs,{})]}))},bs=c((({skuCode:s})=>e(gs,{children:e(hs,{skuCode:s})})));function ps(e){const s=process.env.REACT_APP_BASE_URL;return RegExp(/https?/).test(e)?e:s+e}const us=c((({navList:c,activeKey:n})=>{const{View:i,Text:t,Image:l}=d();return e(a,{children:c.map((a=>e(i,Object.assign({className:["content",n===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(i,Object.assign({className:"classifyFloor"},{children:[s(i,Object.assign({className:"titleWrap"},{children:[e(t,Object.assign({className:"title"},{children:a.goodsClassName})),e(t,{className:"line"})]})),e(i,Object.assign({className:"container"},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:n,goodsClassName:t})=>s(i,Object.assign({onClick:()=>p(`${T.goodList}?classtreeCode=${a}`),className:"classifyFloorGoodsItem"},{children:[e(l,{src:ps(n),className:"logo"}),e(i,Object.assign({className:"title"},{children:t}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:Ns}=g,Os=c((()=>{const{View:a,Text:c}=d(),{activeKey:n,setActiveKey:i,navList:t,flag:l}=U();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:()=>p(T.search)},{children:[e(Ne,{value:"fenxiang"}),e(c,{children:"搜索商品"})]}))})),s(a,Object.assign({className:"goodsClassifyContainer"},{children:[e(a,Object.assign({className:"side"},{children:e(Ns,Object.assign({activeKey:n,onChange:i,style:{"--width":"88px"}},{children:t.map((s=>e(Ns.Item,{title:s.goodsClassName},s.goodsClassCode)))}))})),e(a,Object.assign({className:"main"},{children:e(us,{navList:t,activeKey:n})}))]}))]}))})),js=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],fs=({setParams:a})=>{const{View:c}=d(),[i,t]=n(0),[l,o]=n(js);return e(c,Object.assign({className:"sortWrap"},{children:l.map((({order:n,sortField:l,name:r},d)=>s(c,Object.assign({className:"sortItem "+(i===d?"active":""),onClick:()=>((e,s,c)=>{t(s),c&&o((e=>(e[s].order="asc"===c?"desc":"asc",[...e]))),a({sortField:e,order:c})})(l,d,n)},{children:[r,n&&e(Ne,{style:{color:i===d?"#f00":"#444",fontSize:20},value:"desc"===n?"jiangxu":"shengxu"})]}),d)))}))},As=({propId:s,bottomHeight:a,scrollFn:c,children:n})=>{const i=O(),t=Ee(s),l=i.getStorageSync("safeArea"),o=i.getStorageSync("tabBarHeight")||0,r=i.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?o:0,d=a?+a:0;return e(b,Object.assign({onScroll:()=>c(),height:t+l+r+d},{children:n}))},ys=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:i,Text:t,Loading:o,ScrollView:r,SmoothView:m,Image:g}=d(),[h,b]=n({}),{loading:u,getData:N,list:O}=q(a,c,h),j=Ee("#searchId");return s(i,Object.assign({className:"goodsList"},{children:[s(i,Object.assign({id:"searchId",className:"top-info"},{children:[s(i,Object.assign({className:"top-info-search",onClick:()=>p(T.search)},{children:[e(Ne,{value:"fenxiang"}),e(t,{children:"搜索商品"})]})),e(fs,{setParams:b})]})),e(i,Object.assign({className:"listWrap"},{children:l((()=>s(As,Object.assign({propId:"searchId",scrollFn:N.bind(null,h)},{children:[e(i,Object.assign({className:"list"},{children:O.map((a=>s(i,Object.assign({onClick:()=>p(`${T.goodDetail}?skuCode=${a.skuCode}`),className:"listItem"},{children:[e(g,{src:a.dataPic,className:"img"}),e(m,Object.assign({className:"name"},{children:a.goodsName})),e(m,Object.assign({className:"price"},{children:Pe(a.pricesetNprice)}))]}),a.skuCode)))})),u?e(o,{}):null]}))),[j,O])}))]}))})),Cs=u(),vs=c((({placeholder:a,placeholderText:c,history:i})=>{const{View:t,Text:l,Input:o}=d(),[r,m]=n((()=>N("history")||[]));console.log(23,N("history"));const g=j((e=>ue(void 0,void 0,void 0,(function*(){Cs&&(m((s=>{if(oe(e.detail.value))return s;const a=s.concat(e.detail.value);return y("history",a),a})),h(e.detail.value))})))),h=j((e=>{p(`${T.goodList}?searchParam=${e}`)}));return s(t,Object.assign({className:"searchPage"},{children:[s(t,Object.assign({className:"search-title"},{children:[e("img",{src:we,alt:""}),e(o,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:g},a?{placeholder:c}:{})),e(l,Object.assign({className:"btn",onClick:()=>A()},{children:"取消"}))]})),i?s(t,Object.assign({className:"historyWrap"},{children:[s(t,Object.assign({className:"title"},{children:[s(t,Object.assign({className:"label"},{children:[e(t,{className:"icon"}),"历史搜索记录"]})),e(Ne,{onClick:()=>ue(void 0,void 0,void 0,(function*(){(yield O()).removeStorageSync("history"),m([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(t,Object.assign({className:"content"},{children:r.map(((s,a)=>e(t,Object.assign({onClick:()=>h(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),ws=c((()=>{const{View:a,Text:c}=d();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:we,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),ks=c((()=>{const{View:s}=d();return e(s,Object.assign({className:"goodsDetail-promotion-wrap"},{children:e(s,{className:"goodsDetail-promotion"})}))})),Is=({starColor:a="#FF0934",starSize:c="12px",itemData:n})=>{const{View:i,Text:t,Image:l}=d(),{Rate:o}=g;return s(i,Object.assign({className:"evaluateItem"},{children:[s(i,Object.assign({className:"userInfo"},{children:[e(l,{src:n.avatar,className:"avatar"}),s(i,Object.assign({className:"userNameWrap"},{children:[e(t,Object.assign({className:"userName"},{children:n.userName})),e(o,{readOnly:!0,value:n.rate,style:{"--star-size":c,"--active-color":a}})]}))]})),s(i,Object.assign({className:"size"},{children:["规格: ",n.size]})),e(i,Object.assign({className:"content"},{children:n.evaluate})),e(i,Object.assign({className:"img-group"},{children:n.imgUrls.map(((s,a)=>e(l,{src:s.imgUrl,className:"img"},a)))}))]}))},xs=[{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"},{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]},{avatar:"http://www.qianjiangcloud.com/images/centerimga/pic%EF%BC%8Flogo+@2x.png",userName:"张三李四王五",rate:4.5,size:"一大通",evaluate:"实物与描述的一样,质量相当好,卖家态度也好,有问必答,发货速度杠杠的,值得购买哦。外观设计漂亮,尺寸大小合适,包装仔细完整,宝贝手感不错,感觉很好,发货速度快,服务态度一流,给力!5星好评!",imgUrls:[{imgUrl:"https://img12.360buyimg.com/n1/jfs/t1/137059/18/27631/76566/635fc607E0b9e9c60/762dac6802e989d3.jpg"}]}],Ds=c((()=>{const[c,t]=n("1"),{View:l}=d(),o=i([{label:"全部",num:"900+",index:"1"},{label:"好评",num:"800+",index:"2"},{label:"中评",num:"99+",index:"3"},{label:"差评",num:"12",index:"4"}]),r=e=>{t(e)};return s(a,{children:[e(l,Object.assign({className:"evaluateListTab"},{children:o.current.map((e=>s(l,Object.assign({className:"evaluateListTabItem "+(e.index===c?"active":""),"data-index":e.index,onClick:r.bind(null,e.index)},{children:[e.label," ",e.num]}),e.index)))})),e(l,Object.assign({className:"evaluateListContent"},{children:xs.map(((s,a)=>e(Is,{itemData:s},a)))}))]})})),Ss=c((({code:a})=>{const{orderInfo:c,changeStar:n,Submit:t,changeContent:l}=K(a),{Button:o}=g,{View:m,Image:h,TextArea:b,Textarea:p}=d(),u=b||p,N=i("宝贝满足你吗?分享一下它吧");return s(m,Object.assign({className:"evaluateDetail"},{children:[c.map(((a,c)=>s(r,{children:[s(m,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"lPart"},{children:[e(h,{src:a.dataPic,className:"img"}),s(m,Object.assign({className:"goodsInfo"},{children:[e(m,Object.assign({className:"goodsName"},{children:a.goodsName})),e(m,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(m,Object.assign({className:"rPart"},{children:s(m,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(m,Object.assign({className:"rate"},{children:[e(m,Object.assign({className:"title"},{children:"商品评价"})),e(_e,{onChange:n.bind(null,c)})]})),e(m,Object.assign({className:"evaluate"},{children:e(u,{className:"content",placeholder:N.current,rows:5,maxLength:30,onInput:l.bind(null,c)})}))]},c))),e(o,Object.assign({className:"btn",onClick:t},{children:"提交"}))]}))})),Vs=({txt:s,onChange:a,checked:c})=>{const{View:n}=d(),{Checkbox:i}=g;return e(n,{children:e(i,Object.assign({onChange:a,checked:c,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},Ts=({itemData:a,delAddress:c,setDefault:n,fontSize:i="12px",iconSize:t="12px"})=>{const{View:l,Text:o}=d(),r=u(),m=process.env.TARO_ENV;return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>{Le.label=a.addressId,A(1)}},{children:[s(l,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),s(l,Object.assign({className:"addressInfo"},{children:[s(o,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]})),e(h,{value:"bianjishuru"})]}))]})),s(l,Object.assign({className:"downInfo"},{children:[r?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===m?e(Vs,{txt:"设为默认地址",onChange:n,checked:"1"===(null==a?void 0:a.addressDefault)}):s("checkbox-group",Object.assign({onChange:n,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(o,Object.assign({className:"del",onClick:c},{children:"删除"}))]}))]}))},Bs=c((()=>{const{View:s,Skeleton:c}=d(),n=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})})),Ls=c((({refreshNum:a})=>{const{View:c}=d(),{list:n,delAddress:i,setDefault:t,skullShow:l}=Z(a);return s(c,Object.assign({className:"addressListWrap"},{children:[l?e(Bs,{}):e(c,Object.assign({className:"addressList"},{children:n.length?n.map(((s,a)=>e(Ts,{itemData:s,setDefault:t.bind(null,s,a),delAddress:i.bind(null,s)},null==s?void 0:s.addressId))):e(ss,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(c,Object.assign({className:"addBtnWrap"},{children:e(c,Object.assign({className:"addBtn",onClick:()=>p(`${T.addressEditor}`)},{children:"+ 新增地址"}))}))]}))})),Ps=[{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"}],Ms=c((()=>{const{View:s,Skeleton:c}=d(),n=i(new Array(5).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));be.forEach((e=>{const s=he.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),he.forEach((e=>{const s=ge.filter((s=>s.code===e.provinceCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code+"00",children:e.children}))}));const Rs=ge.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),zs=({form:a,handleArea:c})=>{const{View:i}=d(),{CascadePicker:t}=g,l=a.getFieldValue("area"),[o,r]=n(!1),m=e=>{const s={provinceName:"",provinceCode:e[0],cityName:"",cityCode:e[1],areaName:"",areaCode:e[2]},a={pIndex:0,cIndex:0};for(let c=0;c<Rs.length;c++)if(Rs[c].value===e[0]){s.provinceName=Rs[c].label,a.pIndex=c;break}for(let c=0;c<Rs[a.pIndex].children.length;c++)if(Rs[a.pIndex].children[c].value===e[1]){s.cityName=Rs[a.pIndex].children[c].label,a.cIndex=c;break}for(let c=0;c<Rs[a.pIndex].children[a.cIndex].children.length;c++)if(Rs[a.pIndex].children[a.cIndex].children[c].value===e[2]){s.areaName=Rs[a.pIndex].children[a.cIndex].children[c].label;break}return console.log(52,s),s};return s(i,{children:[e(i,Object.assign({className:"txt",onClick:()=>r(!0)},{children:(null==l?void 0:l.provinceName)?`${l.provinceName}—${l.cityName}-${l.areaName}`:"请选择所在地区"})),e(t,{onConfirm:e=>{c("h5",m(e))},options:Rs,visible:o,onClose:()=>r(!1)})]})},Fs=({checked:s,onChange:a})=>{const{View:c}=d(),{Switch:n}=g;return e(c,{children:e(n,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},Ws=u(),Gs=c((({addressId:s})=>{const{View:c,Switch:n}=d(),{Form:i,Button:t,Input:l}=g,o=process.env.TARO_ENV,{skullShow:r,form:m,area:h,defaultAddress:b,handleArea:p,handleDefaultAddress:u,handleFinish:N}=X(s,i,Ws);return e(c,Object.assign({className:"addressDetail",style:{height:Ws?"100%":"667px"}},{children:r?e(Ms,{}):e(i,Object.assign({form:m,layout:"horizontal",mode:"card",onFinish:N,footer:e(t,Object.assign({block:!0,type:"submit",color:"primary",size:"large"},{children:"提交"}))},{children:Ps.map(((s,t)=>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(l,Object.assign({},s.props)):"switch"===s.type?"h5"===o?e(Fs,{onChange:u.bind(null,"h5"),checked:"1"===b}):e(n,{color:"#000",onChange:u.bind(null,"weapp"),checked:"1"===b}):"cascader"===s.type?e(a,{children:Ws?"h5"===o?e(zs,{form:m,handleArea:p}):e("picker",Object.assign({mode:"region",onChange:p.bind(null,"weapp"),value:"123"},{children:e(c,Object.assign({className:"areaWrap"},{children:h.provinceName?`${h.provinceName}—${h.cityName}-${h.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),t)))}))}))})),Es=({address:s})=>e(a,{children:oe(s)?e(Qs,{}):e(Hs,{address:s})}),Hs=({address:a})=>{const{View:c,SmoothView:n,IconMobile:i}=d(),t=l((()=>{const{provinceName:e,addressDefault:s,cityName:c,areaName:n,addressDetail:i,addressMember:t="",addressPhone:l=""}=a;return{addressDefault:"1"===s,addressMember:t,addressPhone:l,address:e+c+n+i}}),[a]);return s(c,Object.assign({className:"address-info"},{children:[e(i,{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(n,{children:t.addressMember}),e(n,Object.assign({className:"left-padding"},{children:t.addressPhone})),e(n,Object.assign({className:"left-padding left-title-default"},{children:t.addressDefault?"默认":""}))]})),e(n,Object.assign({className:"left-detail"},{children:t.address}))]})),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},Qs=()=>{const{View:c,Text:n}=d();return s(a,{children:[s(c,Object.assign({className:"group"},{children:[e(n,{className:"local"}),e(n,Object.assign({className:"address"},{children:"选择收货地址"}))]})),e(n,{className:"arrow"})]})},Us=({payState:c,amount:n})=>{const{View:i}=d(),{shoppingCountPrice:t,freight:l,comDisMoney:o}=c;return e(a,{children:s(i,Object.assign({className:"price blcWrap"},{children:[e(i,Object.assign({className:"title"},{children:"价格明细"})),s(i,Object.assign({className:"express blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"商品总金额"})),s(i,Object.assign({className:"value"},{children:["¥ ",(+t).toFixed(2)]}))]})),s(i,Object.assign({className:"coupon blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"优惠金额"})),s(i,Object.assign({className:"value"},{children:["¥ ",o]}))]})),s(i,Object.assign({className:"express blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"运费"})),s(i,Object.assign({className:"value"},{children:["¥ ",l]}))]})),s(i,Object.assign({className:"all blcItem"},{children:[e(i,Object.assign({className:"label"},{children:"总计"})),s(i,Object.assign({className:"value",style:{color:"#000"}},{children:["¥ ",n]}))]}))]}))})},qs=({goodsList:s})=>{const{View:a}=d();return console.dir(s),e(a,Object.assign({className:"place-order-goods"},{children:s.map(((s,a)=>e(Me,Object.assign({},s),a)))}))},Ks=({amount:a,savePayPrice:c})=>{const{View:n,Text:i}=d();return s(n,Object.assign({className:"placeOrderFooter"},{children:[s(i,Object.assign({className:"price"},{children:["合计: ",a]})),e(n,Object.assign({className:"btn",onClick:c},{children:"生成订单"}))]}))},Zs=c((({couponStart:a,pbName:c,discName:n,promotionCode:i,promotionName:t,couponEnd:l,disable:o})=>{const{View:r,Text:m,Radio:g}=d();return e(r,Object.assign({className:"couponItem"},{children:s(r,Object.assign({className:"coupon-content"},{children:[s(r,Object.assign({className:"price"},{children:[e(r,Object.assign({className:"symbol"},{children:c})),e(r,Object.assign({className:"num"},{children:n}))]})),s(r,Object.assign({className:"info"},{children:[e(m,Object.assign({className:"title"},{children:t})),s(m,Object.assign({className:"date"},{children:[me(a).format("YYYY-MM-DD")," - ",me(l).format("YYYY-MM-DD")]}))]})),e(r,o?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(g,{disabled:o,value:i})}))]}))}))})),Xs=({coupon:c,confirm:i,amount:t})=>{const{View:r,Text:m,Popup:g,SmoothRadio:h,ScrollView:b}=d(),[p,u]=n(!1),[N,O]=n(),j=l((()=>(c.find((e=>e.promotionCode===N))||{}).promotionName),[N]);return s(a,{children:[s(r,Object.assign({className:"coupon-select",onClick:()=>u(!0)},{children:[e(m,Object.assign({className:"label"},{children:"优惠券"})),s(r,Object.assign({className:"info"},{children:[e(m,Object.assign({className:"label"},{children:j?`已选择: ${j}`:"请选择优惠券"})),e("img",{src:ke,alt:"",className:"icon"})]}))]})),e(g,Object.assign({popupVisible:p,popupHandler:u},{children:e(r,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(b,Object.assign({height:400},{children:e(h,Object.assign({onChange:e=>{const s=e.detail.value,a=c.find((e=>e.promotionCode===s))||{};O(s),u(!1),i(a)}},{children:c.map(((e,s)=>o(Zs,Object.assign({disable:t<e.discAmount},e,{key:s}))))}))}))}))}))]})},Ys=c((({refreshNum:a,goodsNum:c,skuId:n,shoppingGoodsId:i})=>{const{View:t}=d(),{label:l}=Le,{savePayPrice:o,address:r,list:m,payState:g,coupon:h,confirm:b,amount:u}=Y({skuId:n,goodsNum:c,shoppingGoodsId:i},a,l);return s(t,Object.assign({style:{height:"100%"},className:"placeOrder"},{children:[s(t,Object.assign({className:"order-wrap",style:{height:"calc(100% - 54px)"}},{children:[e(t,Object.assign({className:"chooseAddress",onClick:()=>p(T.addressList)},{children:e(Es,{address:r})})),e(qs,{goodsList:m.current}),e(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:"快递"}))]}))})),e(Xs,{coupon:h,confirm:b,amount:u}),e(Us,{amount:u,savePayPrice:o,payState:g.current})]})),e(Ks,{savePayPrice:o,amount:u})]}))})),{useOrderResult:Js}=J,$s=u(),_s=c((({code:a})=>{const{View:c,Text:n}=d(),{result:i}=Js(a||(N("contractBillcode")||{}).contractBillcode),{sysRecode:t,dataObj:l}=i;return console.log(15,t,l),e(c,Object.assign({className:"placeOrderResult",style:{height:$s?"100vh":"667px"}},{children:s(c,t?Object.assign({className:"placeOrderResultContent"},{children:[e(n,{className:"icon"}),e(c,Object.assign({className:"tips"},{children:e(n,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(c,Object.assign({className:"placeOrderResultWrap"},{children:[s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(n,Object.assign({className:"label"},{children:"订单号:"})),e(n,Object.assign({className:"value"},{children:l.contractBillcode}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(n,Object.assign({className:"label"},{children:"支付方式:"})),e(n,Object.assign({className:"value"},{children:"在线支付"}))]})),s(c,Object.assign({className:"placeOrderResultItem"},{children:[e(n,Object.assign({className:"label"},{children:"支付金额:"})),s(n,Object.assign({className:"value"},{children:["¥ ",l.dataBmoney]}))]}))]})),s(c,Object.assign({className:"btnGroup"},{children:[e(c,Object.assign({className:"btn black",onClick:()=>p(`${T.orderDetail}?contractBillcode=${l.contractBillcode}`)},{children:"查看订单"})),e(c,Object.assign({onClick:()=>f(T.classify),className:"btn white"},{children:"继续购物"}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(n,{className:"icon"}),s(c,Object.assign({className:"tips"},{children:[e(n,Object.assign({className:"title"},{children:"订单支付失败"})),e(n,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(c,Object.assign({className:"btnGroup"},{children:e(c,Object.assign({onClick:()=>p(`${T.paymentMode}?code=${i.contractBillcode}`),className:"btn white"},{children:"去支付"}))}))]}))}))})),ea=()=>{const{View:s,Image:a}=d();return e(s,Object.assign({className:"noData"},{children:e(a,{src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/no_coupon.png",className:"img"})}))},sa=({coe:c})=>{const{overdueList:n}=$(),{View:i,Text:t,ScrollView:l}=d();return e(a,{children:3===c?n.length?e(l,Object.assign({style:{height:"80vh"}},{children:n.map(((a,c)=>e(i,Object.assign({className:"couponListItem overdue"},{children:s(i,Object.assign({className:"coupon-content"},{children:[e(i,Object.assign({className:"price"},{children:e(t,Object.assign({className:"num"},{children:a.pbName}))})),s(i,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"title"},{children:a.discName})),s(t,Object.assign({className:"date"},{children:["有效期至:",`${new Date(a.gmtModified).getFullYear()}-${new Date(a.gmtModified).getMonth()+1}-${new Date(a.gmtModified).getDate()}`]})),e(i,Object.assign({className:"btn"},{children:"已使用"})),e(i,Object.assign({className:"round"},{children:"已失效"}))]}))]}))}),c)))})):e(ea,{}):null})};c((()=>{const{View:s,Skeleton:c}=d(),n=i(new Array(3).fill(0));return e(a,{children:e(s,Object.assign({className:"skullWrap"},{children:e(s,Object.assign({className:"skull"},{children:n.current.map(((s,a)=>e(c,{className:"skullItem",animated:!0},a)))}))}))})}));const aa=({coe:c})=>{const{unusedList:n}=_(),{View:i,Text:t,ScrollView:l}=d(),o=Ee("#couponTab");return e(a,{children:1===c?n.length?e(l,Object.assign({height:o+40},{children:n.map(((a,c)=>e(i,Object.assign({className:"couponListItem unused"},{children:s(i,Object.assign({className:"coupon-content"},{children:[e(i,Object.assign({className:"price"},{children:e(t,Object.assign({className:"num"},{children:a.pbName}))})),s(i,Object.assign({className:"info"},{children:[e(t,Object.assign({className:"title"},{children:a.discName})),s(t,Object.assign({className:"date"},{children:["有效期至:",`${new Date(a.gmtModified).getFullYear()}-${new Date(a.gmtModified).getMonth()+1}-${new Date(a.gmtModified).getDate()}`]})),e(i,Object.assign({className:"btn"},{children:"未使用"}))]}))]}))}),c)))})):e(ea,{}):null})},ca=({coe:c})=>{const{View:n,Text:i,ScrollView:t}=d(),{usedList:l}=ee();return e(a,{children:2===c?l.length?e(t,Object.assign({style:{height:"80vh"}},{children:l.map(((a,c)=>e(n,Object.assign({className:"couponListItem used"},{children:s(n,Object.assign({className:"coupon-content"},{children:[e(n,Object.assign({className:"price"},{children:e(i,Object.assign({className:"num"},{children:a.pbName}))})),s(n,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"title"},{children:a.discName})),s(i,Object.assign({className:"date"},{children:["有效期至:",`${new Date(a.gmtModified).getFullYear()}-${new Date(a.gmtModified).getMonth()+1}-${new Date(a.gmtModified).getDate()}`]})),e(n,Object.assign({className:"btn"},{children:"已使用"}))]}))]}))}),c)))})):e(ea,{}):null})},na=c((()=>{const{View:a,Text:c}=d(),{coe:n,setCoe:i,config:l}=se();return u(),t((()=>{D().then((e=>{console.log(26,e)}))}),[]),s(a,Object.assign({className:"couponList"},{children:[e(a,Object.assign({className:"couponTab",id:"couponTab"},{children:l.current.map((t=>s(a,Object.assign({className:"couponTabItem "+(n===t.id?"active":""),onClick:()=>i(t.id)},{children:[t.label,e(c,{className:"icon"})]}),t.id)))})),s(a,Object.assign({className:"couponListContent"},{children:[e(aa,{coe:n}),e(ca,{coe:n}),e(sa,{coe:n})]}))]}))}));function ia({list:a}){const{View:c,Text:n,Image:i,Checkbox:t,NumStep:l,SmoothCheckbox:o,WrapLoading:r}=d(),{loading:m}=ae(),{select:g,onChange:h,handleStep:b}=ce();return e(r,Object.assign({loading:m},{children:e(o,Object.assign({onChange:h},{children:a.map(((a,o)=>s(c,Object.assign({className:"cartItem"},{children:[e(c,Object.assign({className:"checkBoxWrap"},{children:e(t,{checked:g.includes(a.shoppingGoodsId+""),value:a.shoppingGoodsId,style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}})})),e(i,{className:"img",src:a.dataPic}),s(c,Object.assign({className:"info"},{children:[e(n,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(n,Object.assign({className:"price"},{children:["¥",a.pricesetNprice]})),e(l,{count:a.goodsCamount,handleStep:b.bind(null,a.shoppingGoodsId,a.goodsCamount)})]}))]}))]}),o)))}))}))}const ta=u(),la=({refreshNum:c})=>{const{View:i,Text:t,Checkbox:l,SmoothCheckbox:o}=d(),[r,m]=n(!0),{cartList:g,initImpl:h,amount:b,selectAll:p,allCart:u,toOrderImpl:N,select:O,deleteCart:j,disMoney:f}=ie(c);return e(i,Object.assign({className:"cart",style:{height:ta?"100%":"667px"}},{children:g.length?s(a,{children:[e(i,Object.assign({className:"edit",id:"editId"},{children:e(i,Object.assign({className:"btn",onClick:()=>m(!r)},{children:r?"编辑":"完成"}))})),e(As,Object.assign({propId:"editId",bottomHeight:"50",scrollFn:h},{children:e(ia,{list:g})})),s(i,Object.assign({className:"dashboard"},{children:[e(i,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:p},{children:e(l,Object.assign({checked:u.current.length===O.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),r?s(i,Object.assign({className:"check"},{children:[s(i,Object.assign({className:"priceGroup"},{children:[s(i,Object.assign({className:"discount"},{children:["优惠: ",s(t,Object.assign({className:"data"},{children:["¥ ",f||0]}))]})),s(i,Object.assign({className:"all"},{children:["合计: ",s(t,Object.assign({className:"data"},{children:["¥ ",b.amount.toFixed(2)]}))]}))]})),s(i,Object.assign({onClick:N,className:"btn"},{children:["结算(",b.num,")"]}))]})):e(i,Object.assign({className:"del"},{children:e(i,Object.assign({onClick:j,className:"btn"},{children:"删除"}))}))]}))]}):e(ss,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:T.index})}))},oa=c((({refreshNum:s})=>e(ne,{children:e(la,{refreshNum:s})}))),ra=()=>{const{View:a,Text:c,IconMobile:n}=d(),t=i([{icon:"coupons",label:"我的优惠券",link:"couponList"},{icon:"collect",label:"我的收藏",link:"collectionList"},{icon:"dizhi",label:"我的地址",link:"addressList"},{icon:"eyes",label:"我的足迹",link:"footprint"},{icon:"tianxie",label:"我的协议",link:"myAgreementList"},{icon:"shezhi",label:"我的设置",link:"mySetting"}]);return e(a,Object.assign({className:"menuList"},{children:t.current.map(((i,t)=>s(a,Object.assign({className:"menuListItem",onClick:()=>p(T[i.link])},{children:[s(a,Object.assign({className:"lPart"},{children:[e(n,{value:i.icon}),e(c,Object.assign({className:"label"},{children:i.label}))]})),e(n,{value:"xiangyou1"})]}),t)))}))},da=()=>{const{View:a,Text:c,Badge:l,IconMobile:o}=d(),[r,m]=n({}),g=i([{badge:0,code:"waitPayNum",label:"待付款",icon:"daifukuan",link:""},{badge:0,code:"waitDeliveryNum",label:"待发货",icon:"daifahuo",link:""},{badge:0,code:"waitArriveNum",label:"待收货",icon:"daishouhuo",link:""},{badge:0,code:"evaluateNum",label:"已完成",icon:"yiwancheng",link:""},{badge:0,code:"afterSalesNum",label:"已取消",icon:"shouhou",link:""}]);return t((()=>{ue(void 0,void 0,void 0,(function*(){try{const e=yield S();m(e.dataObj)}catch(e){}}))}),[]),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:()=>p(T.order)},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:g.current.map(((n,i)=>s(a,Object.assign({onClick:()=>p(`${T.order}?id=${i+1}`),className:"contentItem"},{children:[e(l,Object.assign({},r[n.code]>0?{content:r[n.code]}:{},{color:"#000",style:{color:"#fff",fontSize:12}},{children:e(o,{value:n.icon})})),e(c,Object.assign({className:"subTitle"},{children:n.label}))]}),i)))}))]}))},ma=c((({avatarStyle:a,userAvatar:c="",userNickname:n="用户名",banner:i})=>{const{View:t,Text:l,IconMobile:o,Image:r}=d(),m=u(),{servicePopup:g}=Be();return s(t,Object.assign({className:"mine",style:{height:m?"100%":"667px"}},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(o,{value:"shezhi",onClick:()=>p(T.setting)}),e(o,{value:"kehufuwukefu",onClick:g})]})),s(t,Object.assign({className:"userSetting",onClick:()=>p(T.setting)},{children:[s(t,Object.assign({className:"lPart"},{children:[e(l,Object.assign({className:"name"},{children:n||"用户名称"})),e(t,Object.assign({className:"link",style:{paddingTop:"10px"}},{children:"编辑个人资料 >"}))]})),e(r,{src:c,alt:"",className:"avatar",style:{borderRadius:a?"50%":"2px"}})]})),e(da,{}),e(ra,{})]}))})),ga=u(),ha=c((({code:a})=>{const{View:c,Text:n,Radio:i,IconMobile:t,WrapLoading:l,SmoothRadio:o}=d(),{paymentImpl:r,channelList:m,contract:g,handleRadio:h,loading:b}=te(a);return s(c,Object.assign({className:"paymentModeWrap",style:{height:ga?"inherit":"667px"}},{children:[s(c,Object.assign({className:"paymentMode"},{children:[s(c,Object.assign({className:"topInfo"},{children:[s(n,Object.assign({className:"title"},{children:[e(t,{value:"roundcheck"}),"订单提交成功"]})),s(c,Object.assign({className:"info"},{children:["订单号:",g.current.contractBillcode," | 总金额:",g.current.dataBmoney,"元"]}))]})),e(c,Object.assign({className:"paymentGroup"},{children:e(o,Object.assign({onChange:h},{children:m.map((a=>s(c,Object.assign({className:"paymentItem"},{children:[e(t,{value:a.icon}),s(c,{children:[s(c,Object.assign({className:"base"},{children:[e(n,{children:a.fchannelName}),e(i,{value:a.fchannelCode,className:"choose"})]})),"account"===a.value?s(c,Object.assign({className:"info"},{children:[e(c,{children:"账户余额:0元"}),e(c,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(l,Object.assign({loading:b},{children:e(c,Object.assign({className:"btnGroup",onClick:r},{children:e(c,Object.assign({className:"payment"},{children:"立即支付"}))}))}))]}))}));export{Gs as AddressDetail,Ls as AddressList,oa as Cart,Ze as ClassifyNav,na as CouponList,Ae as Cube,Ss as EvaluateDetail,Ds as EvaluateList,Oe as Goods,Os as GoodsClassify,bs as GoodsDetail,ks as GoodsDetailPromotion,ws as GoodsDetailTopInfo,Ve as GoodsGroup,ys as GoodsList,ye as Line,ma as Mine,je as Notice,Ke as OrderDetail,qe as OrderList,ha as PaymentMode,Ys as PlaceOrder,_s as PlaceOrderResult,Ne as QjMobileIcon,Ie as Search,vs as SearchPage,ve as Service,De as Slider,fe as Title,Ce as Video};
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const fixPrice: (num?: number) => string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "s-material-react",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.12",
|
|
4
4
|
"description": "'组件库'",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": [
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@brushes/simulate-component": "^0.1.
|
|
30
|
+
"@brushes/simulate-component": "^0.1.21",
|
|
31
31
|
"@brushes/utils": "^0.0.15",
|
|
32
32
|
"@stencil/core": "^3.2.0",
|
|
33
33
|
"china-division": "^2.6.1",
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"dayjs": "^1.11.7",
|
|
36
36
|
"lodash-es": "^4.17.21",
|
|
37
37
|
"qj-b2c-api": "^1.0.30",
|
|
38
|
-
"qj-mobile-store": "^1.0.
|
|
38
|
+
"qj-mobile-store": "^1.0.58",
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const Footprint: import("react").MemoExoticComponent<() => JSX.Element>;
|