s-material-react 1.3.26 → 1.3.28
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 +1 -0
- package/css/pages/collectionList.scss +111 -0
- package/css/pages/expressinfo.scss +56 -0
- package/css/pages/footprint.scss +111 -0
- package/css/pages/index.scss +4 -0
- package/css/pages/noticeDetail.scss +23 -0
- package/css/pages/orderList.scss +2 -2
- package/dist/components/CollectionList/components/collectItem.d.ts +2 -0
- package/dist/components/CollectionList/index.d.ts +2 -0
- package/dist/components/ExpressInfo/components/expressInfoStep.d.ts +6 -0
- package/dist/components/ExpressInfo/components/expressInfoTop.d.ts +6 -0
- package/dist/components/ExpressInfo/components/index.d.ts +2 -0
- package/dist/components/ExpressInfo/index.d.ts +16 -0
- package/dist/components/Footprint/components/collectItem.d.ts +2 -0
- package/dist/components/Footprint/components/footprint.d.ts +1 -0
- package/dist/components/Footprint/components/footprintGroup.d.ts +1 -0
- package/dist/components/Footprint/components/index.d.ts +3 -0
- package/dist/components/Footprint/index.d.ts +1 -0
- package/dist/components/NoticeDetail/index.d.ts +3 -0
- package/dist/components/PlaceOrder/index.d.ts +2 -1
- package/dist/components/index.d.ts +4 -0
- package/dist/index.js +1 -1
- package/dist/utils/checkImgUrl.d.ts +0 -1
- package/package.json +4 -4
package/css/pages/cart.scss
CHANGED
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.collectList {
|
|
2
|
+
.noDate {
|
|
3
|
+
.img {
|
|
4
|
+
display: block;
|
|
5
|
+
margin: 100px auto 0;
|
|
6
|
+
width: 203px;
|
|
7
|
+
height: 165px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.topBar {
|
|
12
|
+
height: 50px;
|
|
13
|
+
line-height: 50px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row-reverse;
|
|
16
|
+
|
|
17
|
+
.edit {
|
|
18
|
+
margin-right: 15px;
|
|
19
|
+
padding: 0 20px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.handleBar {
|
|
24
|
+
height: 54px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
|
|
30
|
+
.checkAll {
|
|
31
|
+
margin-left: 20px;
|
|
32
|
+
.wx-checkbox-input {
|
|
33
|
+
width: 14px;
|
|
34
|
+
height: 14px;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wx-checkbox-input.wx-checkbox-input-checked {
|
|
39
|
+
background-color: #000000;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wx-checkbox-input.wx-checkbox-input-checked::before {
|
|
43
|
+
color: #ffffff;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.btn {
|
|
49
|
+
margin: 0 20px 0 0;
|
|
50
|
+
height: 40px;
|
|
51
|
+
line-height: 40px;
|
|
52
|
+
border-radius: 20px;
|
|
53
|
+
background-color: #000000;
|
|
54
|
+
color: #ffffff;
|
|
55
|
+
padding: 0 25px;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.collectItem {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
padding: 20px 20px 10px;
|
|
65
|
+
border-bottom: 1px solid #ccc;
|
|
66
|
+
|
|
67
|
+
.lPart {
|
|
68
|
+
padding-left: 0;
|
|
69
|
+
padding-right: 10px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rPart {
|
|
73
|
+
flex: 1;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
|
|
77
|
+
.img {
|
|
78
|
+
width: 90px;
|
|
79
|
+
height: 90px;
|
|
80
|
+
margin-right: 20px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.info {
|
|
84
|
+
flex: 1;
|
|
85
|
+
|
|
86
|
+
.title {
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.price {
|
|
91
|
+
color: #d66377;
|
|
92
|
+
font-size: 16px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.wx-checkbox-input {
|
|
98
|
+
width: 14px;
|
|
99
|
+
height: 14px;
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.wx-checkbox-input.wx-checkbox-input-checked {
|
|
104
|
+
background-color: #000000;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wx-checkbox-input.wx-checkbox-input-checked::before {
|
|
108
|
+
color: #ffffff;
|
|
109
|
+
font-size: 14px;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
.expressInfo {
|
|
2
|
+
.expressInfoTop {
|
|
3
|
+
padding: 22px 16px;
|
|
4
|
+
display: flex;
|
|
5
|
+
border-bottom: 10px solid #fafafa;
|
|
6
|
+
|
|
7
|
+
.goodsImg {
|
|
8
|
+
width: 90px;
|
|
9
|
+
height: 90px;
|
|
10
|
+
margin-right: 20px;
|
|
11
|
+
position: relative;
|
|
12
|
+
background: center no-repeat;
|
|
13
|
+
background-size: cover;
|
|
14
|
+
|
|
15
|
+
.tip {
|
|
16
|
+
position: absolute;
|
|
17
|
+
bottom: 0;
|
|
18
|
+
left: 0;
|
|
19
|
+
color: #fff;
|
|
20
|
+
height: 30px;
|
|
21
|
+
line-height: 30px;
|
|
22
|
+
width: 100%;
|
|
23
|
+
text-align: center;
|
|
24
|
+
background-color: rgba(0, 0, 0, 0.5);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.list {
|
|
29
|
+
flex: 1;
|
|
30
|
+
|
|
31
|
+
.listItem {
|
|
32
|
+
height: 30px;
|
|
33
|
+
line-height: 30px;
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.expressInfoStep {
|
|
39
|
+
padding: 40px 20px;
|
|
40
|
+
text-align: left;
|
|
41
|
+
|
|
42
|
+
.step {
|
|
43
|
+
text-align: left;
|
|
44
|
+
margin-bottom: 20px;
|
|
45
|
+
|
|
46
|
+
.time {
|
|
47
|
+
margin-bottom: 5px;
|
|
48
|
+
font-weight: bold;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.noInfo {
|
|
53
|
+
text-align: center;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
.collectList {
|
|
2
|
+
.noDate {
|
|
3
|
+
.img {
|
|
4
|
+
display: block;
|
|
5
|
+
margin: 100px auto 0;
|
|
6
|
+
width: 203px;
|
|
7
|
+
height: 165px;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.topBar {
|
|
12
|
+
height: 50px;
|
|
13
|
+
line-height: 50px;
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: row-reverse;
|
|
16
|
+
|
|
17
|
+
.edit {
|
|
18
|
+
margin-right: 15px;
|
|
19
|
+
padding: 0 20px;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.handleBar {
|
|
24
|
+
height: 54px;
|
|
25
|
+
width: 100%;
|
|
26
|
+
display: flex;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: space-between;
|
|
29
|
+
|
|
30
|
+
.checkAll {
|
|
31
|
+
margin-left: 20px;
|
|
32
|
+
.wx-checkbox-input {
|
|
33
|
+
width: 14px;
|
|
34
|
+
height: 14px;
|
|
35
|
+
border-radius: 50%;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
.wx-checkbox-input.wx-checkbox-input-checked {
|
|
39
|
+
background-color: #000000;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.wx-checkbox-input.wx-checkbox-input-checked::before {
|
|
43
|
+
color: #ffffff;
|
|
44
|
+
font-size: 14px;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.btn {
|
|
49
|
+
margin: 0 20px 0 0;
|
|
50
|
+
height: 40px;
|
|
51
|
+
line-height: 40px;
|
|
52
|
+
border-radius: 20px;
|
|
53
|
+
background-color: #000000;
|
|
54
|
+
color: #ffffff;
|
|
55
|
+
padding: 0 25px;
|
|
56
|
+
font-size: 14px;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
.footprintItem {
|
|
62
|
+
display: flex;
|
|
63
|
+
align-items: center;
|
|
64
|
+
padding: 20px 20px 10px;
|
|
65
|
+
border-bottom: 1px solid #ccc;
|
|
66
|
+
|
|
67
|
+
.lPart {
|
|
68
|
+
padding-left: 0;
|
|
69
|
+
padding-right: 10px;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
.rPart {
|
|
73
|
+
flex: 1;
|
|
74
|
+
display: flex;
|
|
75
|
+
align-items: flex-start;
|
|
76
|
+
|
|
77
|
+
.img {
|
|
78
|
+
width: 90px;
|
|
79
|
+
height: 90px;
|
|
80
|
+
margin-right: 20px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.info {
|
|
84
|
+
flex: 1;
|
|
85
|
+
|
|
86
|
+
.title {
|
|
87
|
+
font-size: 14px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.price {
|
|
91
|
+
color: #d66377;
|
|
92
|
+
font-size: 16px;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.wx-checkbox-input {
|
|
98
|
+
width: 14px;
|
|
99
|
+
height: 14px;
|
|
100
|
+
border-radius: 50%;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
.wx-checkbox-input.wx-checkbox-input-checked {
|
|
104
|
+
background-color: #000000;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.wx-checkbox-input.wx-checkbox-input-checked::before {
|
|
108
|
+
color: #ffffff;
|
|
109
|
+
font-size: 14px;
|
|
110
|
+
}
|
|
111
|
+
}
|
package/css/pages/index.scss
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
.noticeDetailContainer {
|
|
2
|
+
height: 100vh;
|
|
3
|
+
overflow-y: auto;
|
|
4
|
+
box-sizing: border-box;
|
|
5
|
+
padding: 20px;
|
|
6
|
+
|
|
7
|
+
.title {
|
|
8
|
+
font-size: 30px;
|
|
9
|
+
color: #999;
|
|
10
|
+
margin-bottom: 10px;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.img {
|
|
14
|
+
display: block;
|
|
15
|
+
margin: 0 auto 10px;
|
|
16
|
+
max-width: 100%;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.content {
|
|
20
|
+
font-size: 16px;
|
|
21
|
+
margin: 0 auto 10px;
|
|
22
|
+
}
|
|
23
|
+
}
|
package/css/pages/orderList.scss
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
@import './order-goodsItem.scss';
|
|
2
2
|
|
|
3
3
|
.order-container {
|
|
4
|
-
|
|
4
|
+
height: 100%;
|
|
5
5
|
overflow: hidden;
|
|
6
6
|
background: #f5f5f5;
|
|
7
7
|
.qj-tabs {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
.orderListItemWrap {
|
|
15
15
|
//overflow-y: auto;
|
|
16
|
-
margin-bottom: 20px;
|
|
16
|
+
//margin-bottom: 20px;
|
|
17
17
|
.orderListItem {
|
|
18
18
|
margin: 12px;
|
|
19
19
|
background: #fff;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
export interface ExpressInfoProps {
|
|
2
|
+
defaultValue: {
|
|
3
|
+
message: string;
|
|
4
|
+
list: Array<{
|
|
5
|
+
time: string;
|
|
6
|
+
context: string;
|
|
7
|
+
}>;
|
|
8
|
+
dataPic: string;
|
|
9
|
+
count: number;
|
|
10
|
+
expressName: string;
|
|
11
|
+
packageBillno: string;
|
|
12
|
+
result: string;
|
|
13
|
+
};
|
|
14
|
+
code: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const ExpressInfo: import("react").NamedExoticComponent<ExpressInfoProps>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const Footprint: ({ item, edit }: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FootprintGroup: ({ footprintList, edit }: any) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const FootPrint: import("react").MemoExoticComponent<() => JSX.Element>;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
export interface PaymentOrderType {
|
|
2
3
|
skuId?: string;
|
|
3
4
|
goodsNum?: string;
|
|
@@ -11,4 +12,4 @@ export interface PaymentOrderType {
|
|
|
11
12
|
paddingTop: number;
|
|
12
13
|
paddingBottom: number;
|
|
13
14
|
}
|
|
14
|
-
export declare const PlaceOrder:
|
|
15
|
+
export declare const PlaceOrder: React.NamedExoticComponent<PaymentOrderType>;
|
|
@@ -20,6 +20,7 @@ export * from './GoodsDetailTopInfo';
|
|
|
20
20
|
export * from './GoodsDetailPromotion';
|
|
21
21
|
export * from './EvaluateList';
|
|
22
22
|
export * from './EvaluateDetail';
|
|
23
|
+
export * from './ExpressInfo';
|
|
23
24
|
export * from './AddressList';
|
|
24
25
|
export * from './AddressDetail';
|
|
25
26
|
export * from './PlaceOrder';
|
|
@@ -31,3 +32,6 @@ export * from './MineData';
|
|
|
31
32
|
export * from './MineOrderEntry';
|
|
32
33
|
export * from './MineFunction';
|
|
33
34
|
export * from './PaymentMode';
|
|
35
|
+
export * from './Footprint';
|
|
36
|
+
export * from './CollectionList';
|
|
37
|
+
export * from './NoticeDetail';
|
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 o,Fragment as r}from"react";import{useComponent as d,NoticeBar as g,antdMobile as m,IconMobile as h}from"@brushes/simulate-component";import{navigatorImpl as b,getEnv as p,getStorage as u,getTaro as N,useImmutableCallback as O,switchTabImpl as j,navigatorBackImpl as f,setStorage as C}from"@brushes/utils";import{find as y,queryOcsconfigList as A,queryContractPageC as v,checkCollectExit as k,saveCollect as w,deleteCollectByCode as x,queryUsercouponNember as I,getContractNumbers as S}from"qj-b2c-api";import B from"classnames";import{routerMap as T,useNotice as D,useCube as V,navigatorHandler as L,useOrderOperate as P,orderStatusImpl as R,orderStatusList as z,useOrderDetail as M,useAddCoupon as F,goodsDetailStore as W,refreshCard as E,useAddShopping as G,useGoodsDetailImpl as H,useGoodsClassify as Q,useGoodsList as U,useEvaluateDetail as q,useAddressList as K,useEditAddress as Z,usePlaceOrder as X,useOrderResultResult as Y,useCouponList as J,useStore as $,useCartItem as _,StoreProvider as ee,useCartList as se,useOrderResult as ae}from"qj-mobile-store";import{isEqual as ce,isEmpty as ne,isUndefined as ie,get as te}from"lodash-es";import le from"dayjs";import oe from"china-division/dist/provinces.json";import re from"china-division/dist/cities.json";import de from"china-division/dist/areas.json";function ge(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 me(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 he=({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:B(a,i?`${a}-${i}`:"",s),style:n})},be=c((({defaultValue:a=[],classCode:c="",margin:l,circular:o,cell:r,showSales:g,gap:m=10,goods:h=[],markedPrice:p,paddingTop:u,paddingBottom:N,paddingLeft:O,paddingRight:j})=>{const[f,C]=n(a),A=i(),{View:v,Text:k}=d();return t((()=>{ce(A.current,h)||(A.current=h,ne(h)?C(a):me(void 0,void 0,void 0,(function*(){try{const e=yield y({goodsCode:h.toString(),distinctField:"goodsNo"});console.log(63,e),C(e.rows)}catch(e){C(a)}})))}),[h]),e(v,Object.assign({style:{paddingTop:u,paddingBottom:N}},{children:e(v,Object.assign({className:B({[`goods-${c}`]:!0}),style:{display:"grid",gap:m,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:()=>b(`${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})),g&&s(v,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(v,Object.assign({className:"price"},{children:[e(k,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===p&&s(k,Object.assign({className:"markedPrice"},{children:[e(k,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(v,Object.assign({className:"anticon"},{children:e(he,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),pe=({direction:s,speed:a,num:c,color:n})=>{const{content:i,navigator:t}=D(c);return e(g,{navigator:t,color:n,speed:a,direction:s,content:i})},ue=c((({value:s,textIndent:a,fontSize:c,textAlign:n,color:i,backgroundColor:t,fontWeight:l,textDecoration:o,fontStyle:r,paddingTop:g,paddingLeft:m,paddingRight:h,paddingBottom:b})=>{const{View:p}=d();return e(p,Object.assign({className:"components-title",style:{paddingTop:g,paddingBottom:b}},{children:e(p,Object.assign({style:{fontSize:c,textAlign:n,color:i,backgroundColor:t,fontWeight:l,textDecoration:o,fontStyle:r,paddingLeft:m,paddingRight:h,textIndent:a}},{children:s}))}))})),Ne=c((({defaultValue:s,type:a,borderRadius:c,paddingTop:n,paddingLeft:i,paddingRight:t,paddingBottom:l,selectImg:o})=>{const{View:r,Image:g}=d(),m=V(s,o);return e(r,Object.assign({style:{paddingTop:n,paddingBottom:l}},{children:e(r,Object.assign({className:`cube-type${a}`,style:{paddingLeft:i,paddingRight:t}},{children:m.map(((s,n)=>{var i;return e(g,{className:"block",mode:1===a?"widthFix":"scaleToFill",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:L.bind(null,null===(i=s.link)||void 0===i?void 0:i.value)},n)}))}))}))})),Oe=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"}})}))})),je=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}})}))})),fe=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"})})),Ce="data:image/png;base64,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",ye="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",Ae=c((({value:a,iconShow:c,fontColor:n,backgroundColor:i,borderRadius:t,paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g})=>{const{View:m,Image:h}=d();return e(m,Object.assign({onClick:()=>b(T.search),style:{paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g}},{children:s(m,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:Ce,alt:"",style:{height:"16px",width:"16px",display:c?"inline-block":"none",verticalAlign:"top",marginTop:"8px",marginRight:"10px"}}),e(m,Object.assign({className:"txt",style:{color:n,display:"inline-block",fontSize:"14px"}},{children:a}))]}))}))})),ve=c((({item:s})=>{var a;const{Image:c}=d();return e(c,{mode:"scaleToFill",src:s.imgUrl,style:{width:"100%",height:"100%"},onClick:L.bind(null,null===(a=s.link)||void 0===a?void 0:a.value)})})),ke=c((({defaultValue:s=[],type:a,autoplay:c,autoplayInterval:n,direction:i,loop:t,paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g,selectImg:m,imgHeight:h})=>{const{SmoothSwiper:b,View:p}=d(),u=V(s,m);return e(p,Object.assign({style:{paddingTop:l,paddingBottom:o,paddingLeft:r,paddingRight:g}},{children:e(b,{imgHeight:h,data:u,type:a,autoplay:c,autoplayInterval:n,direction:i,loop:t,render:s=>e(ve,{item:s})})}))})),{JumboTabs:we}=m,xe=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=>!ie(e))).filter((e=>!Object.values(e).every((e=>ie(e)))));let a=s;ne(e)||(a=e),d(a)}),[c]),e(we,Object.assign({style:{marginTop:i+"px",marginBottom:l+"px"}},{children:r.map(((s,a)=>e(we.Tab,Object.assign({title:s.title,description:s.subTitle},{children:e(be,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:o})}),a)))}))})),Ie=p(),Se=()=>{const[e,s]=n([]);t((()=>{me(void 0,void 0,void 0,(function*(){const e=u("service");if(e)s(a(e));else{const e=yield A();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(!Ie)return;N().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},Be={label:""},Te=(e=0)=>e?"¥ "+ +e.toFixed(2):"",De=({dataPic:a,goodsName:c,goodsCamount:n,pricesetNprice:i,skuName:t})=>{const{View:l,Image:o}=d(),r=Te(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:Ve}=m,Le=s=>{var{dataState:c}=s,n=ge(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(Pe,Object.assign({dataState:c},n))})},Pe=s=>{var{dataState:a,contractAppraise:c,color:n,borderColor:i,btnColor:t,btnShape:l}=s,o=ge(s,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=d();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:g,handlerImpl:m}=P(Object.assign({dataState:a},o));return e(r,Object.assign({className:"btnGroup"},{children:g.map(((s,a)=>e(Ve,Object.assign({style:{color:n,borderColor:i,backgroundColor:t},className:B({btn:!0,white:0===a,black:1===a}),onClick:()=>m(s.handler),shape:l},{children:s.name}),a)))}))},{Button:Re}=m;function ze({contractBillcode:a,dataBmoney:c,dataBnum:n,goodsList:i,dataState:t,contractId:l,init:o,contractAppraise:r}){const{View:g}=d(),m=R(t);return s(g,Object.assign({className:"orderListItem"},{children:[s(g,Object.assign({onClick:()=>b(`${T.orderDetail}?contractBillcode=${a}`)},{children:[s(g,Object.assign({className:"topInfo"},{children:[s(g,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(Re,Object.assign({className:"copy",size:"mini",fill:"outline"},{children:"复制"}))]})),e(g,Object.assign({className:"status"},{children:m}))]})),s(g,Object.assign({className:"goodsItemWrap"},{children:[i.map((s=>e(De,Object.assign({},s),s.contractGoodsId))),s(g,Object.assign({className:"allInfo"},{children:[s(g,Object.assign({className:"totalNum"},{children:["共",n,"件商品"]})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ¥",c]}))]}))]}))]})),e(Le,{init:o,contractId:l,contractBillcode:a,dataState:t,contractAppraise:r})]}))}function Me(e){const[s,a]=n(0);return t((()=>{if(!p())return;const s=N().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;console.log(17,s),a(s)}})).exec()}))})),s}const Fe=p(),We={contractBillcode:"",goodsList:[{dataPic:"",goodsName:"",dataBmoney:0,goodsCamount:0,contractGoodsId:0,dataState:0}],dataBmoney:0,dataBnum:0,dataState:0,contractId:"",contractAppraise:0};const Ee=c((function({item:a,refreshNum:c}){const{View:r,ScrollView:g,Loading:m}=d(),h=i(!1),[b,p]=n(!1),[u,N]=n([We]),j=i(0),f=Me("qj-tabs-id");t((()=>{C()}),[c]);const C=O((()=>{j.current=0,N([]),y()})),y=O(((e={})=>me(this,void 0,void 0,(function*(){if(h.current)return;p(!0),++j.current;const{code:e}=a;try{const s=yield v({page:j.current,rows:10,isLocalMock:!Fe,childFlag:!0,dataStateStr:e});h.current=ne(s.rows)||s.rows.length<10,N((e=>e.concat(s.rows||[]))),p(!1)}catch(e){--j.current,console.log(30,e)}}))));return e(r,Object.assign({className:"orderListItemWrap"},{children:l((()=>e(g,Object.assign({onScroll:y,height:f+15},{children:s(r,{children:[u.map(((e,s)=>o(ze,Object.assign({init:C},e,{key:s})))),e(r,{children:b?e(m,{}):null})]})}))),[u,f])}))})),Ge=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(Ee,{item:a,refreshNum:s})}))})}))})),He=c((({contractBillcode:a,expressWay:c,backgroundColor:n,color:i,paddingBottom:t,paddingTop:l,borderColor:o,btnColor:r,btnShape:g})=>{const{View:m,Text:h}=d(),{orderDetail:b}=M(a||"");return s(m,Object.assign({className:"orderDetail"},{children:[e(m,Object.assign({style:{backgroundColor:n},className:"orderDetailTopTitle"},{children:s(m,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(h,Object.assign({className:"title"},{children:R(b.dataState)})),e(m,{className:"subTitleWrap"})]}))})),e(m,Object.assign({className:"orderDetailContent",style:{paddingTop:l+"px",paddingBottom:t+"px"}},{children:s(m,Object.assign({style:{position:"relative",top:-26}},{children:[s(m,Object.assign({className:"addressInfo"},{children:[e(m,{className:"lPart"}),s(m,Object.assign({className:"mPart"},{children:[s(m,Object.assign({className:"personInfo"},{children:[e(h,Object.assign({className:"personName"},{children:b.goodsReceiptMem})),e(h,Object.assign({className:"personPhone"},{children:b.goodsReceiptPhone}))]})),e(m,Object.assign({className:"address"},{children:b.goodsReceiptArrdess}))]})),e(m,{className:"rPart"})]})),s(m,Object.assign({className:"orderDetailGoodsWrap"},{children:[b.goodsList.map((s=>e(De,Object.assign({},s),s.contractGoodsId))),s(m,Object.assign({className:"priceInfo"},{children:[s(m,Object.assign({className:"priceInfoFloor top"},{children:[s(m,Object.assign({className:"totalNum"},{children:["共",b.goodsNum,"件商品"]})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((b.dataBmoney-b.refundMoney).toFixed(2))]}))]})),s(m,Object.assign({className:"priceInfoFloor"},{children:[e(m,Object.assign({className:"totalNum"},{children:"商品总额"})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",b.contractInmoney]}))]})),s(m,Object.assign({className:"priceInfoFloor"},{children:[e(m,Object.assign({className:"totalNum"},{children:"优惠"})),s(m,Object.assign({className:"totalPrice"},{children:["合计 ¥",b.goodsPmoney]}))]}))]}))]})),c&&s(m,Object.assign({className:"express"},{children:[e(m,Object.assign({className:"label"},{children:"配送方式"})),e(m,Object.assign({className:"name"},{children:"快递"}))]})),s(m,Object.assign({className:"orderInfo"},{children:[e(m,Object.assign({className:"orderInfoItem"},{children:e(m,Object.assign({className:"label"},{children:"订单信息"}))})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"买家留言"})),e(m,Object.assign({className:"name"},{children:b.packageRemark}))]})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"订单编号"})),e(m,Object.assign({className:"name"},{children:b.contractBillcode}))]})),s(m,Object.assign({className:"orderInfoItem"},{children:[e(m,Object.assign({className:"label"},{children:"下单时间"})),e(m,Object.assign({className:"name"},{children:b.gmtCreate}))]}))]})),e(m,Object.assign({className:"btnGroupFooter"},{children:e(Le,{borderColor:o,btnColor:r,btnShape:g,color:i,contractBillcode:b.contractBillcode,contractId:b.contractId,dataState:b.dataState})}))]}))}))]}))})),Qe=c((({defaultValue:a,borderRadius:c,paddingTop:n,paddingBottom:i,selectClassifyNav:t})=>{const{View:l,Text:o}=d(),r=V(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 L(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)))}))}))})),Ue=({checkCollectionObj:a,setCheckCollectionObj:c,goods:n})=>{const{SmoothView:i,View:l}=d();t((()=>{o()}),[]);const o=()=>me(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:te(n,"rsSkuDomainList[0].skuCode","")};try{const s=yield k(e);c(s)}catch(e){console.log(e)}}));return s(l,Object.assign({onClick:()=>{ne(a.dataObj)?me(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:te(n,"rsSkuDomainList[0].skuCode",""),collectOppic:n.dataPic,collectOpcont:n.goodsName,collectOpnum:n.pricesetNprice,goodsOrigin:0};yield w(e),o()})):me(void 0,void 0,void 0,(function*(){const e={collectType:0,collectCode:a.dataObj||""};yield x(e),o()}))}},{children:[e("img",{src:Ce,alt:"",className:"icon"}),e(i,Object.assign({className:"txt"},{children:ne(a.dataObj)?"收藏":"已收藏"}))]}))},qe=c((({promotionBegintime:a,pbName:c,discName:n,promotionCode:i,promotionName:t,couponOnceNums:o,couponOnceNumd:r,promotionEndtime:g})=>{const{View:m,Text:h}=d(),{save:b,isPick:p}=F(),u=l((()=>o-r),[o,r]);return e(m,Object.assign({className:"couponItem"},{children:s(m,Object.assign({className:"coupon-content"},{children:[s(m,Object.assign({className:"price"},{children:[e(m,Object.assign({className:"symbol"},{children:c})),e(m,Object.assign({className:"num"},{children:n}))]})),s(m,Object.assign({className:"info"},{children:[e(h,Object.assign({className:"title"},{children:t})),s(h,Object.assign({className:"date"},{children:[le(a).format("YYYY-MM-DD")," - ",le(g).format("YYYY-MM-DD")]}))]})),e(m,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:Ke}=W,Ze=({coupon:c})=>{const{View:i,Text:t,Popup:l,ScrollView:r}=d(),[g,m]=n(!1),{couponValue:h}=Ke();return s(a,{children:[s(i,Object.assign({className:"goodsDetail-coupon",onClick:()=>m(!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:ye,alt:"",className:"icon"})]}))]})),e(l,Object.assign({popupVisible:g,popupHandler:m},{children:e(i,Object.assign({className:"goodsDetail-coupon-popup"},{children:e(r,Object.assign({height:"400"},{children:c.map(((e,s)=>o(qe,Object.assign({},e,{key:s}))))}))}))}))]})},Xe=({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 g=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(he,{onClick:g.bind(null,a),value:s.icon,style:{color:"#EC6C5C",fontSize:c}},a)))})},Ye=({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(Xe,{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}))]}))},Je=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:()=>j(i)},{children:["去看看",e(h,{value:"xiangyou1"})]})):null]}))}))})),$e=({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(Ye,{item:s},a)))]}):e(Je,{style:{margin:"100px auto"},url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noEvaluate.png",title:"还没有评价, 期待您的评价"})}))},_e=()=>{const{Text:a,View:c,IconMobile:n}=d(),i=W.useDispatchImpl(),{servicePopup:t}=Se();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:()=>j(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:"立即购买"}))]}))]}))},es=({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||""}})}))},ss=({skuName:a,skuOption:c,index:n})=>{const{View:i,Text:t}=d(),{handleChooseSize:l,spec:o}=G();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)))}))]}))},as=({goods:a={},goodSku:c})=>{const{count:n,spec:i,popupVisible:t,isNeedButton:l,handleStep:o,popupHandler:r,addShoppingImpl:g}=G(),{View:m,Text:h,Image:b,Popup:p,NumStep:u}=d();return e(p,Object.assign({popupVisible:t,popupHandler:r},{children:s(m,Object.assign({className:"goodsDetail-size-popup"},{children:[s(m,Object.assign({className:"content"},{children:[s(m,Object.assign({className:"goodsInfo"},{children:[e(m,Object.assign({className:"lPart"},{children:e(b,{src:a.dataPic,alt:"",className:"goodsImg"})})),s(m,Object.assign({className:"rPart"},{children:[e(m,Object.assign({className:"name"},{children:a.goodsShowname||""})),e(m,Object.assign({className:"price"},{children:Te(null==a?void 0:a.pricesetNprice)})),s(m,Object.assign({className:"chosen"},{children:["已选择: ",i.toString()]}))]}))]})),c.map(((s,a)=>e(ss,{index:a,skuName:s.skuName,skuOption:s.skuOption},a))),s(m,Object.assign({className:"countWrap"},{children:[e(m,Object.assign({className:"label"},{children:"购买数量"})),e(u,{count:n,handleStep:o})]}))]})),l&&e(m,Object.assign({className:"btnWrap",onClick:g},{children:e(h,Object.assign({className:"btn"},{children:"确认"}))}))]}))}))},cs=({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:ns,useStore:is}=W,ts=({goods:c,goodSku:n})=>{const{View:i,Text:t}=d(),{count:l,spec:o}=is(),r=ns();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:ye,alt:"",className:"icon"})]}))]})),e(as,{goodSku:n,goods:c})]})},ls=p(),{StoreProvider:os}=W,rs=({skuCode:a})=>{const{View:c,Text:n,SmoothView:i}=d(),{goods:t,promotionArr:l,checkCollectionObj:o,setCheckCollectionObj:r,sliderArr:g,tabActive:m,setTabActive:h,goodSku:b,evaluateArr:p,coupon:u}=H(a);return s(c,Object.assign({className:"GoodsDetailWrap",style:{minHeight:ls?"":"667px",height:ls?"":"auto",overflow:ls?"":"auto"}},{children:[e(c,Object.assign({className:"topSlider"},{children:e(ke,{selectImg:g,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:Te(null==t?void 0:t.pricesetNprice)}))]}),e(c,Object.assign({className:"rPart"},{children:e(Ue,{goods:t,checkCollectionObj:o,setCheckCollectionObj:r})}))]})),e(ts,{goods:t,goodSku:b}),e(cs,{promotionList:l}),e(Ze,{coupon:u}),s(c,Object.assign({className:"goodsDetailTab"},{children:[s(c,Object.assign({className:"tabs"},{children:[s(n,Object.assign({className:"tabsItem "+(1===m?"active":""),onClick:()=>h(1)},{children:["商品详情",e(n,{className:"line"})]})),s(n,Object.assign({className:"tabsItem "+(2===m?"active":""),onClick:()=>h(2)},{children:["评价",e(n,{className:"line"})]}))]})),e(c,Object.assign({className:"group"},{children:1===m?e(es,{tabActive:m,goods:t}):e($e,{evaluateArr:p})}))]})),e(_e,{})]}))},ds=c((({skuCode:s})=>e(os,{children:e(rs,{skuCode:s})})));function gs(e){const s=process.env.REACT_APP_BASE_URL;return RegExp(/https?/).test(e)?e:s+e}const ms=c((({navList:c,activeKey:n,cell:i=4})=>{const{View:t,Text:l,Image:o}=d();return e(a,{children:c.map((a=>e(t,Object.assign({className:["content",n===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(t,Object.assign({className:"classifyFloor"},{children:[s(t,Object.assign({className:"titleWrap"},{children:[e(l,Object.assign({className:"title"},{children:a.goodsClassName})),e(l,{className:"line"})]})),e(t,Object.assign({className:`container container_columns${i}`},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:n,goodsClassName:i})=>s(t,Object.assign({onClick:()=>b(`${T.goodList}?classtreeCode=${a}`),className:"classifyFloorGoodsItem"},{children:[e(o,{src:gs(n),className:"logo"}),e(t,Object.assign({className:"title"},{children:i}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:hs}=m,bs=c((({cell:a,color:c,activeTitle:n,paddingTop:i,paddingBottom:t})=>{const{View:l}=d(),{activeKey:o,setActiveKey:r,navList:g,flag:m}=Q();return s(l,Object.assign({style:{height:m?"100%":"667px",paddingTop:i,paddingBottom:t},className:"goodsClassifyContainer"},{children:[e(l,Object.assign({className:"side"},{children:e(hs,Object.assign({activeKey:o,onChange:r,style:{"--width":"88px"}},{children:g.map((s=>e(hs.Item,{title:s.goodsClassName,className:0===n?"typeBlock":"typeNoBlock",style:{color:s.goodsClassCode===o?c:"#000"}},s.goodsClassCode)))}))})),e(l,Object.assign({className:"main"},{children:e(ms,{navList:g,activeKey:o,cell:a})}))]}))})),ps=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],us=({setParams:a})=>{const{View:c}=d(),[i,t]=n(0),[l,o]=n(ps);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(he,{style:{color:i===d?"#f00":"#444",fontSize:20},value:"desc"===n?"jiangxu":"shengxu"})]}),d)))}))};const Ns=s=>{var{bottomHeight:a,children:c,id:n}=s,i=ge(s,["bottomHeight","children","id"]);const t=Me(n),o=function(e=""){return l((()=>{if(!p())return 0;const s=N(),a=s.getStorageSync("safeArea"),c=s.getStorageSync("tabBarHeight")||0;return a+(s.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?c:0)+(e?+e:0)}),[])}(a),{View:r}=d();return e(r,Object.assign({},i,{style:{height:`calc(100vh - ${t+o}px)`}},{children:c}))},Os=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:i,Loading:t,SmoothView:l,Image:o,ScrollView:r}=d(),[g,m]=n({}),{loading:h,getData:p,list:u}=U(a,c,g);return s(i,Object.assign({className:"goodsList"},{children:[e(i,Object.assign({className:"top-info",id:"searchId"},{children:e(us,{setParams:m})})),e(Ns,Object.assign({className:"listWrap",id:"searchId"},{children:s(r,Object.assign({onScroll:()=>p(g)},{children:[e(i,Object.assign({className:"list"},{children:u.map((a=>s(i,Object.assign({onClick:()=>b(`${T.goodDetail}?skuCode=${a.skuCode}`),className:"listItem"},{children:[e(o,{src:a.dataPic,className:"img"}),e(l,Object.assign({className:"name"},{children:a.goodsName})),e(l,Object.assign({className:"price"},{children:Te(a.pricesetNprice)}))]}),a.skuCode)))})),h?e(t,{}):null]}))}))]}))})),js=p(),fs=c((({placeholder:a,placeholderText:c,history:i,historyText:t,paddingBottom:l,paddingTop:o})=>{const{View:r,Text:g,Input:m}=d(),[h,p]=n((()=>u("history")||[]));console.log(23,u("history"));const j=O((e=>me(void 0,void 0,void 0,(function*(){js&&(p((s=>{if(ne(e.detail.value))return s;const a=s.concat(e.detail.value);return C("history",a),a})),y(e.detail.value))})))),y=O((e=>{b(`${T.goodList}?searchParam=${e}`)}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:o,paddingBottom:l}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Ce,alt:""}),e(m,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:j},a?{placeholder:c}:{})),e(g,Object.assign({className:"btn",onClick:()=>f()},{children:"取消"}))]})),i?s(r,Object.assign({className:"historyWrap"},{children:[s(r,Object.assign({className:"title"},{children:[s(r,Object.assign({className:"label"},{children:[e(r,{className:"icon"}),t]})),e(he,{onClick:()=>me(void 0,void 0,void 0,(function*(){(yield N()).removeStorageSync("history"),p([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(r,Object.assign({className:"content"},{children:h.map(((s,a)=>e(r,Object.assign({onClick:()=>y(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),Cs=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:Ce,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),ys=c((()=>{const{View:s}=d();return e(s,Object.assign({className:"goodsDetail-promotion-wrap"},{children:e(s,{className:"goodsDetail-promotion"})}))})),As=({starColor:a="#FF0934",starSize:c="12px",itemData:n})=>{const{View:i,Text:t,Image:l}=d(),{Rate:o}=m;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)))}))]}))},vs=[{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"}]}],ks=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:vs.map(((s,a)=>e(As,{itemData:s},a)))}))]})})),ws=c((({code:a,borderRadius:c,borderColor:n,color:t,buttonColor:l,buttonBorderRadius:o,paddingTop:g,paddingBottom:h})=>{const{orderInfo:b,changeStar:p,Submit:u,changeContent:N}=q(a),{Button:O}=m,{View:j,Image:f,TextArea:C,Textarea:y}=d(),A=C||y,v=i("宝贝满足你吗?分享一下它吧");return s(j,Object.assign({className:"evaluateDetail",style:{paddingTop:g,paddingBottom:h}},{children:[b.map(((a,n)=>s(r,{children:[s(j,Object.assign({className:"topInfo"},{children:[s(j,Object.assign({className:"lPart"},{children:[e(f,{src:a.dataPic,className:"img",style:{borderRadius:1===c?"20px":"0px"}}),s(j,Object.assign({className:"goodsInfo"},{children:[e(j,Object.assign({className:"goodsName"},{children:a.goodsName})),e(j,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(j,Object.assign({className:"rPart"},{children:s(j,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(j,Object.assign({className:"rate"},{children:[e(j,Object.assign({className:"title"},{children:"商品评价"})),e(Xe,{onChange:p.bind(null,n)})]})),e(j,Object.assign({className:"evaluate"},{children:e(A,{className:"content",placeholder:v.current,rows:5,maxLength:30,onInput:N.bind(null,n)})}))]},n))),e(O,Object.assign({style:{border:`1px solid ${n}`,color:t,backgroundColor:l,borderRadius:1===o?"20px":"0px"},className:"btn",onClick:u},{children:"提交"}))]}))})),xs=({txt:s,onChange:a,checked:c})=>{const{View:n}=d(),{Checkbox:i}=m;return e(n,{children:e(i,Object.assign({onChange:a,checked:c,style:{"--icon-size":"18px","--font-size":"14px","--gap":"6px"}},{children:s}))})},Is=({itemData:a,delAddress:c,setDefault:n,fontSize:i="12px",iconSize:t="12px"})=>{const{View:l,Text:o}=d(),r=p(),g=process.env.TARO_ENV;return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>{Be.label=a.addressId,f(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"===g?e(xs,{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:"删除"}))]}))]}))},Ss=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)))}))}))})})),Bs=c((({refreshNum:a,btnShape:c,btnColor:n,borderColor:i,paddingBottom:t,paddingTop:l,color:o})=>{const{View:r}=d(),{list:g,delAddress:m,setDefault:h,skullShow:p}=K(a);return s(r,Object.assign({className:"addressListWrap"},{children:[p?e(Ss,{}):e(r,Object.assign({className:"addressList",style:{paddingTop:l+"px",paddingBottom:t+"px"}},{children:g.length?g.map(((s,a)=>e(Is,{itemData:s,setDefault:h.bind(null,s,a),delAddress:m.bind(null,s)},null==s?void 0:s.addressId))):e(Je,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noAddress.png",title:"您还没有添加过地址"})})),e(r,Object.assign({className:"addBtnWrap"},{children:e(r,Object.assign({style:{borderRadius:c,borderColor:i,color:o,backgroundColor:n},className:"addBtn",onClick:()=>b(`${T.addressEditor}`)},{children:"+ 新增地址"}))}))]}))})),Ts=[{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"}],Ds=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)))}))}))})}));de.forEach((e=>{const s=re.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),re.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 Vs=oe.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Ls=({form:a,handleArea:c})=>{const{View:i}=d(),{CascadePicker:t}=m,l=a.getFieldValue("area"),[o,r]=n(!1),g=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<Vs.length;c++)if(Vs[c].value===e[0]){s.provinceName=Vs[c].label,a.pIndex=c;break}for(let c=0;c<Vs[a.pIndex].children.length;c++)if(Vs[a.pIndex].children[c].value===e[1]){s.cityName=Vs[a.pIndex].children[c].label,a.cIndex=c;break}for(let c=0;c<Vs[a.pIndex].children[a.cIndex].children.length;c++)if(Vs[a.pIndex].children[a.cIndex].children[c].value===e[2]){s.areaName=Vs[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",g(e))},options:Vs,visible:o,onClose:()=>r(!1)})]})},Ps=({checked:s,onChange:a})=>{const{View:c}=d(),{Switch:n}=m;return e(c,{children:e(n,{checked:s,onChange:a,style:{"--checked-color":"#000000","--height":"36px","--width":"60px"}})})},Rs=p(),zs=c((({addressId:s,btnShape:c,btnColor:n,borderColor:i,color:t,paddingTop:l,paddingBottom:o})=>{const{View:r,Switch:g}=d(),{Form:h,Button:b,Input:p}=m,u=process.env.TARO_ENV,{skullShow:N,form:O,area:j,defaultAddress:f,handleArea:C,handleDefaultAddress:y,handleFinish:A}=Z(s,h,Rs);return e(r,Object.assign({className:"addressDetail",style:{height:Rs?"100%":"667px",paddingBottom:o+"px",paddingTop:l+"px"}},{children:N?e(Ds,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:A,footer:e(b,Object.assign({style:{color:t,backgroundColor:n,borderColor:i},shape:c,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:Ts.map(((s,c)=>e(h.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(p,Object.assign({},s.props)):"switch"===s.type?"h5"===u?e(Ps,{onChange:y.bind(null,"h5"),checked:"1"===f}):e(g,{color:"#000",onChange:y.bind(null,"weapp"),checked:"1"===f}):"cascader"===s.type?e(a,{children:Rs?"h5"===u?e(Ls,{form:O,handleArea:C}):e("picker",Object.assign({mode:"region",onChange:C.bind(null,"weapp"),value:j},{children:e(r,Object.assign({className:"areaWrap"},{children:j.provinceName?`${j.provinceName}—${j.cityName}-${j.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),c)))}))}))})),Ms=({address:s})=>e(a,{children:ne(s)?e(Ws,{}):e(Fs,{address:s})}),Fs=({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"}})]}))},Ws=()=>{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"})]})},Es=({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]}))]}))]}))})},Gs=({goodsList:s})=>{const{View:a}=d();return console.dir(s),e(a,Object.assign({className:"place-order-goods"},{children:s.map(((s,a)=>e(De,Object.assign({},s),a)))}))},Hs=({amount:a,savePayPrice:c,color:n,buttonColor:i,borderColor:t,borderRadius:l})=>{const{View:o,Text:r}=d();return s(o,Object.assign({className:"placeOrderFooter"},{children:[s(r,Object.assign({className:"price"},{children:["合计: ",a]})),e(o,Object.assign({className:"btn",onClick:c,style:{color:`${n}`,border:`1px solid ${t}`,backgroundColor:`${i}`,borderRadius:1===l?"40px":"0px"}},{children:"生成订单"}))]}))},Qs=c((({couponStart:a,pbName:c,discName:n,promotionCode:i,promotionName:t,couponEnd:l,disable:o})=>{const{View:r,Text:g,Radio:m}=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(g,Object.assign({className:"title"},{children:t})),s(g,Object.assign({className:"date"},{children:[le(a).format("YYYY-MM-DD")," - ",le(l).format("YYYY-MM-DD")]}))]})),e(r,o?Object.assign({className:"coupon-pick-default"},{children:"不能用"}):Object.assign({className:"choose"},{children:e(m,{disabled:o,value:i})}))]}))}))})),Us=({coupon:c,confirm:i,amount:t})=>{const{View:r,Text:g,Popup:m,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(g,Object.assign({className:"label"},{children:"优惠券"})),s(r,Object.assign({className:"info"},{children:[e(g,Object.assign({className:"label"},{children:j?`已选择: ${j}`:"请选择优惠券"})),e("img",{src:ye,alt:"",className:"icon"})]}))]})),e(m,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(Qs,Object.assign({disable:t<e.discAmount},e,{key:s}))))}))}))}))}))]})},qs=c((({refreshNum:a,goodsNum:c,skuId:n,shoppingGoodsId:i,shippingMethod:t,color:l,buttonColor:o,borderColor:r,borderRadius:g,paddingTop:m,paddingBottom:h})=>{const{View:p}=d(),{label:u}=Be,{savePayPrice:N,address:O,list:j,payState:f,coupon:C,confirm:y,amount:A}=X({skuId:n,goodsNum:c,shoppingGoodsId:i},a,u);return s(p,Object.assign({style:{height:"100%",paddingTop:m,paddingBottom:h},className:"placeOrder"},{children:[s(p,Object.assign({className:"order-wrap",style:{height:"calc(100% - 54px)"}},{children:[e(p,Object.assign({className:"chooseAddress",onClick:()=>b(T.addressList)},{children:e(Ms,{address:O})})),e(Gs,{goodsList:j.current}),e(p,Object.assign({className:"info blcWrap",style:1===t?{display:"block"}:{display:"none"}},{children:s(p,Object.assign({className:"express blcItem"},{children:[e(p,Object.assign({className:"label"},{children:"配送方式"})),e(p,Object.assign({className:"value"},{children:"快递"}))]}))})),e(Us,{coupon:C,confirm:y,amount:A}),e(Es,{amount:A,savePayPrice:N,payState:f.current})]})),e(Hs,{savePayPrice:N,amount:A,color:l,buttonColor:o,borderColor:r,borderRadius:g})]}))})),{useOrderResult:Ks}=Y,Zs=p(),Xs=c((({code:a,borderRadius:c,leftColor:n,leftButtonColor:i,leftBorderColor:t,leftBorderRadius:o,rightValue:r,rightAddHref:g,rightColor:m,rightButtonColor:h,rightBorderColor:p,rightBorderRadius:N,paddingTop:O,paddingBottom:f})=>{const{View:C,Text:y}=d(),A=l((()=>g.value.split("/")[2]),[g]),{result:v}=Ks(a||(u("contractBillcode")||{}).contractBillcode),{sysRecode:k,dataObj:w}=v;return console.log(15,k,w),e(C,Object.assign({className:"placeOrderResult",style:{height:Zs?"100vh":"667px",paddingTop:O,paddingBottom:f}},{children:s(C,k?Object.assign({className:"placeOrderResultContent",style:{borderRadius:1===c?"20px":"0px"}},{children:[e(y,{className:"icon"}),e(C,Object.assign({className:"tips"},{children:e(y,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(C,Object.assign({className:"placeOrderResultWrap"},{children:[s(C,Object.assign({className:"placeOrderResultItem"},{children:[e(y,Object.assign({className:"label"},{children:"订单号:"})),e(y,Object.assign({className:"value"},{children:w.contractBillcode}))]})),s(C,Object.assign({className:"placeOrderResultItem"},{children:[e(y,Object.assign({className:"label"},{children:"支付方式:"})),e(y,Object.assign({className:"value"},{children:"在线支付"}))]})),s(C,Object.assign({className:"placeOrderResultItem"},{children:[e(y,Object.assign({className:"label"},{children:"支付金额:"})),s(y,Object.assign({className:"value"},{children:["¥ ",w.dataBmoney]}))]}))]})),s(C,Object.assign({className:"btnGroup"},{children:[e(C,Object.assign({className:"btn black",onClick:()=>b(`${T.orderDetail}?contractBillcode=${w.contractBillcode}`),style:{color:n,backgroundColor:i,border:`1px solid ${t}`,borderRadius:1===o?"20px":"0px"}},{children:"查看订单"})),e(C,Object.assign({style:{color:m,backgroundColor:h,border:`1px solid ${p}`,borderRadius:1===N?"20px":"0px"},onClick:()=>j(A),className:"btn white"},{children:r}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(y,{className:"icon"}),s(C,Object.assign({className:"tips"},{children:[e(y,Object.assign({className:"title"},{children:"订单支付失败"})),e(y,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(C,Object.assign({className:"btnGroup"},{children:e(C,Object.assign({onClick:()=>b(`${T.paymentMode}?code=${v.contractBillcode}`),className:"btn white"},{children:"去支付"}))}))]}))}))}));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 Ys=()=>{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"})}))},Js=({list:c,coe:n,config:i,backgroundColor:t,color:l})=>{const{View:o,Text:r}=d();return e(a,{children:c.length?c.map(((c,d)=>e(o,Object.assign({className:`couponListItem\n ${i.current[n.current].styleName}`,style:{backgroundColor:t,color:l}},{children:s(o,Object.assign({className:"coupon-content"},{children:[e(o,Object.assign({className:"price"},{children:e(r,Object.assign({className:"num"},{children:c.pbName}))})),s(o,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"title"},{children:c.discName})),s(r,Object.assign({className:"date"},{children:["有效期至:",`${new Date(c.gmtModified).getFullYear()}-${new Date(c.gmtModified).getMonth()+1}-${new Date(c.gmtModified).getDate()}`]})),e(o,Object.assign({className:"btn"},{children:i.current[n.current].text})),2===n.current?e(a,{children:e(o,Object.assign({className:"round"},{children:"已失效"}))}):null]}))]}))}),d))):e(Ys,{})})},$s=c((({backgroundColor:a,color:c,paddingTop:n,paddingBottom:i,queue:l})=>{const{View:o,Text:r,ScrollView:g}=d(),{coe:m,getList:h,config:b,switchTab:u,list:N=[]}=J();return p(),t((()=>{I().then((e=>{console.log(26,e)}))}),[]),s(o,Object.assign({className:"couponList"},{children:[e(o,Object.assign({className:"couponTab"},{children:b.current.map(((a,c)=>s(o,Object.assign({className:"couponTabItem "+(m.current===c?"active":""),onClick:()=>u(c)},{children:[a.label,e(r,{className:"icon"})]}),a.id)))})),e(Ns,Object.assign({id:"couponTab",bottomHeight:60},{children:e(g,Object.assign({onScroll:h},{children:e(o,Object.assign({className:"couponListContent",style:{paddingTop:n,paddingBottom:i}},{children:e(Js,{backgroundColor:a,color:c,queue:l,list:N,coe:m,config:b})}))}))}))]}))}));function _s({list:a}){const{View:c,Text:n,Image:i,Checkbox:t,NumStep:l,SmoothCheckbox:o,WrapLoading:r}=d(),{loading:g}=$(),{select:m,onChange:h,handleStep:b}=_();return e(r,Object.assign({loading:g},{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:m.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 ea=p(),sa=({refreshNum:c})=>{const{View:i,Text:t,Checkbox:l,SmoothCheckbox:o,ScrollView:r}=d(),[g,m]=n(!0),{cartList:h,initImpl:b,amount:p,selectAll:u,allCart:N,toOrderImpl:O,select:j,deleteCart:f,disMoney:C}=se(c);return e(i,Object.assign({className:"cart",style:{height:ea?"100%":"667px"}},{children:h.length?s(a,{children:[e(i,Object.assign({className:"edit"},{children:e(i,Object.assign({className:"btn",onClick:()=>m(!g)},{children:g?"编辑":"完成"}))})),e(Ns,Object.assign({id:"editId",bottomHeight:"105"},{children:e(r,Object.assign({onScroll:b},{children:e(_s,{list:h})}))})),s(i,Object.assign({className:"dashboard"},{children:[e(i,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:u},{children:e(l,Object.assign({checked:N.current.length===j.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),g?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:["¥ ",C||0]}))]})),s(i,Object.assign({className:"all"},{children:["合计: ",s(t,Object.assign({className:"data"},{children:["¥ ",p.amount.toFixed(2)]}))]}))]})),s(i,Object.assign({onClick:O,className:"btn"},{children:["结算(",p.num,")"]}))]})):e(i,Object.assign({className:"del"},{children:e(i,Object.assign({onClick:f,className:"btn"},{children:"删除"}))}))]}))]}):e(Je,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:T.index})}))},aa=c((({refreshNum:s})=>e(ee,{children:e(sa,{refreshNum:s})}))),ca=()=>{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:()=>b(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)))}))},na=()=>{const{View:a,Text:c,Badge:l,IconMobile:o}=d(),[r,g]=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((()=>{me(void 0,void 0,void 0,(function*(){try{const e=yield S();g(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:()=>b(T.order)},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:m.current.map(((n,i)=>s(a,Object.assign({onClick:()=>b(`${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)))}))]}))},ia=c((({avatarStyle:a,userAvatar:c="",userNickname:n="用户名",banner:i})=>{const{View:t,Text:l,IconMobile:o,Image:r}=d(),g=p(),{servicePopup:m}=Se();return s(t,Object.assign({className:"mine",style:{height:g?"100%":"667px"}},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(o,{value:"shezhi",onClick:()=>b(T.setting)}),e(o,{value:"kehufuwukefu",onClick:m})]})),s(t,Object.assign({className:"userSetting",onClick:()=>b(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(na,{}),e(ca,{})]}))})),ta=c((({avatarStyle:a,userAvatar:c="",userNickname:n="用户名",banner:i})=>{const{View:t,Text:l,IconMobile:o,Image:r}=d(),{servicePopup:g}=Se();return s(t,Object.assign({className:"mineData"},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(o,{value:"shezhi",onClick:()=>b(T.setting)}),e(o,{value:"kehufuwukefu",onClick:g})]})),s(t,Object.assign({className:"userSetting",onClick:()=>b(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"}})]}))]}))})),la=c((()=>{const{View:a,Text:c,Badge:l,IconMobile:o}=d(),[r,g]=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((()=>{me(void 0,void 0,void 0,(function*(){try{const e=yield S();g(e.dataObj)}catch(e){}}))}),[]),s(a,Object.assign({className:"mineOrderEntry"},{children:[s(a,Object.assign({className:"title"},{children:[e(a,Object.assign({className:"name"},{children:"我的订单"})),e(a,Object.assign({className:"more",onClick:()=>b(T.order)},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:m.current.map(((n,i)=>s(a,Object.assign({onClick:()=>b(`${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)))}))]}))})),oa=c((()=>{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:"mineFunction"},{children:t.current.map(((i,t)=>s(a,Object.assign({className:"menuListItem",onClick:()=>b(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)))}))})),ra=p(),da=c((({code:a,btnColor:c,btnShape:n,borderColor:i,paddingTop:t,paddingBottom:l,color:o})=>{const{View:r,Text:g,Radio:m,IconMobile:h,WrapLoading:b,SmoothRadio:p}=d(),{paymentImpl:u,channelList:N,contract:O,handleRadio:j,loading:f}=ae(a);return s(r,Object.assign({className:"paymentModeWrap",style:{height:ra?"inherit":"667px",paddingBottom:l+"px",paddingTop:t+"px"}},{children:[s(r,Object.assign({className:"paymentMode"},{children:[s(r,Object.assign({className:"topInfo"},{children:[s(g,Object.assign({className:"title"},{children:[e(h,{value:"roundcheck"}),"订单提交成功"]})),s(r,Object.assign({className:"info"},{children:["订单号:",O.current.contractBillcode," | 总金额:",O.current.dataBmoney,"元"]}))]})),e(r,Object.assign({className:"paymentGroup"},{children:e(p,Object.assign({onChange:j},{children:N.map((a=>s(r,Object.assign({className:"paymentItem"},{children:[e(h,{value:a.icon}),s(r,{children:[s(r,Object.assign({className:"base"},{children:[e(g,{children:a.fchannelName}),e(m,{value:a.fchannelCode,className:"choose"})]})),"account"===a.value?s(r,Object.assign({className:"info"},{children:[e(r,{children:"账户余额:0元"}),e(r,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(b,Object.assign({loading:f},{children:e(r,Object.assign({className:"btnGroup",onClick:u},{children:e(r,Object.assign({style:{borderRadius:n,backgroundColor:c,color:o,borderColor:i},className:"payment"},{children:"立即支付"}))}))}))]}))}));export{zs as AddressDetail,Bs as AddressList,aa as Cart,Qe as ClassifyNav,$s as CouponList,Ne as Cube,ws as EvaluateDetail,ks as EvaluateList,be as Goods,bs as GoodsClassify,ds as GoodsDetail,ys as GoodsDetailPromotion,Cs as GoodsDetailTopInfo,xe as GoodsGroup,Os as GoodsList,Oe as Line,ia as Mine,ta as MineData,oa as MineFunction,la as MineOrderEntry,pe as Notice,He as OrderDetail,Ge as OrderList,da as PaymentMode,qs as PlaceOrder,Xs as PlaceOrderResult,he as QjMobileIcon,Ae as Search,fs as SearchPage,fe as Service,ke as Slider,ue as Title,je 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}from"@brushes/simulate-component";import{navigatorHandler as b,getEnv as p,getStorage as u,getTaro as N,useImmutableCallback as O,updatePagesRefreshStore as j,navigatorBackImpl as f,setStorage as C}from"@brushes/utils";import{find as y,queryOcsconfigList as k,queryContractPageC as A,checkCollectExit as w,saveCollect as v,deleteCollectByCode as x,queryUsercouponNember as I,getContractNumbers as S}from"qj-b2c-api";import B from"classnames";import{isEqual as D,isEmpty as T,isUndefined as V,get as L,groupBy as P}from"lodash-es";import{useNotice as R,useCube as z,useOrderOperate as M,orderStatusImpl as F,orderStatusList as W,useOrderDetail as G,useAddCoupon as H,goodsDetailStore as E,useAddShopping as Q,useGoodsDetailImpl as U,useGoodsClassify as q,useGoodsList as K,useEvaluateDetail as Z,useExpressInfo as X,useAddressList as Y,useEditAddress as J,usePlaceOrder as $,useOrderResultResult as _,useCouponList as ee,useStore as se,useCartItem as ae,StoreProvider as ce,useCartList as ne,routerMap as ie,useOrderResult as te,useFootprint as le,useCollectionList as oe,useNoticeDetail as re}from"qj-mobile-store";import de from"dayjs";import me from"china-division/dist/provinces.json";import ge from"china-division/dist/cities.json";import he from"china-division/dist/areas.json";function be(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 pe(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 ue=({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:B(a,i?`${a}-${i}`:"",s),style:n})},Ne=c((({defaultValue:a=[],classCode:c="",margin:l,circular:o,cell:r,showSales:m,gap:g=10,goods:h=[],markedPrice:p,paddingTop:u,paddingBottom:N,paddingLeft:O,paddingRight:j})=>{const[f,C]=n(a),k=i(),{View:A,Text:w}=d();return t((()=>{D(k.current,h)||(k.current=h,T(h)?C(a):pe(void 0,void 0,void 0,(function*(){try{const e=yield y({goodsCode:h.toString(),distinctField:"goodsNo"});console.log(63,e),C(e.rows)}catch(e){C(a)}})))}),[h]),e(A,Object.assign({style:{paddingTop:u,paddingBottom:N}},{children:e(A,Object.assign({className:B({[`goods-${c}`]:!0}),style:{display:"grid",gap:g,marginBottom:l,gridTemplateColumns:`repeat(${r}, 1fr)`,paddingLeft:O,paddingRight:j}},{children:f.map(((a,c)=>s(A,Object.assign({style:{overflow:"hidden",borderRadius:2===o?0:"8px"},onClick:()=>b("goodDetail",{skuCode:a.skuCode}),className:"goods"},{children:[e(A,{className:"goods-img",style:{backgroundImage:`url(${a.dataPic})`}}),s(A,Object.assign({className:"space"},{children:[e(A,Object.assign({className:"titleType"},{children:a.goodsName})),e(A,Object.assign({className:"subTitle"},{children:a.brandName})),m&&s(A,Object.assign({className:"sales"},{children:["已售:",a.goodsSalesvolume,"件"]})),s(A,Object.assign({className:"price"},{children:[e(w,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetNprice,1===p&&s(w,Object.assign({className:"markedPrice"},{children:[e(w,Object.assign({className:"subPrice"},{children:"¥"})),a.pricesetMakeprice]}))]})),e(A,Object.assign({className:"anticon"},{children:e(ue,{style:{fontSize:30,color:"#f00"},value:"cart"})}))]}))]}),c)))}))}))})),Oe=({direction:s,speed:a,num:c,color:n})=>{const{content:i,navigator:t}=R(c);return e(m,{navigator:t,color:n,speed:a,direction:s,content:i})},je=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}))}))})),fe=c((({defaultValue:s,type:a,borderRadius:c,paddingTop:n,paddingLeft:i,paddingRight:t,paddingBottom:l,selectImg:o})=>{const{View:r,Image:m}=d(),g=z(s,o);return e(r,Object.assign({style:{paddingTop:n,paddingBottom:l}},{children:e(r,Object.assign({className:`cube-type${a}`,style:{paddingLeft:i,paddingRight:t}},{children:g.map(((s,n)=>e(m,{className:"block",mode:1===a?"widthFix":"scaleToFill",src:s.imgUrl,style:{width:"100%",borderRadius:c+"px"},onClick:()=>{var e;return b(null===(e=s.link)||void 0===e?void 0:e.value)}},n)))}))}))})),Ce=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"}})}))})),ye=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}})}))})),ke=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"})})),Ae="data:image/png;base64,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",we="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABwAAAAGCAYAAADQQP5pAAAAAXNSR0IArs4c6QAAAMhJREFUKFPFUjFqQkEUfLOmeAoWJodI7qE3sFdrS4sPCykexPA/C7baqr030Hskh1ALQbfJTviBSFiszZQz82bgMTCzhxjjq4iMATRJblR1YmYHyWBmrRhjSXJQSwDWqurN7Jx7vfdPJGcA+iRrfaGqU3jv30jWhVcA2JVl2bsRsiQ5zPhVVVWjG94tyW6W+1O4J/mYH6SUXkIIn798URRt59xRRBqZ9yul1AkhnP54n51zH3kmgMO/FN7tpSLyjjuN5iIi83o039P9n5mWDu/PAAAAAElFTkSuQmCC\n",ve=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:()=>b("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:Ae,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:"scaleToFill",src:s.imgUrl,style:{width:"100%",height:"100%"},onClick:b.bind(null,null===(a=s.link)||void 0===a?void 0:a.value)})})),Ie=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=z(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,Be=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=>!V(e))).filter((e=>!Object.values(e).every((e=>V(e)))));let a=s;T(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(Ne,{defaultValue:s.defaultValue,cell:2,goods:s.goodsList,classCode:"two",circular:o})}),a)))}))})),De=p(),Te=()=>{const[e,s]=n([]);t((()=>{pe(void 0,void 0,void 0,(function*(){const e=u("service");if(e)s(a(e));else{const e=yield k();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(!De)return;N().showActionSheet({itemList:e,success:function(e){console.log(e.tapIndex)},fail:function(e){console.log(e.errMsg)}})}}},Ve={label:""},Le=(e=0)=>e?"¥ "+ +e.toFixed(2):"",Pe=({dataPic:a,goodsName:c,goodsCamount:n,pricesetNprice:i,skuName:t})=>{const{View:l,Image:o}=d(),r=Le(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=be(s,["dataState"]);return e(a,{children:["2","-1"].includes(c+"")?null:e(Me,Object.assign({dataState:c},n))})},Me=s=>{var{dataState:a,contractAppraise:c,color:n,borderColor:i,btnColor:t,btnShape:l}=s,o=be(s,["dataState","contractAppraise","color","borderColor","btnColor","btnShape"]);const{View:r}=d();4!==a&&4!==a||1===c?4!==a&&4!==a||1!==c||(a=5):a=4;const{operateArray:m,handlerImpl:g}=M(Object.assign({dataState:a},o));return e(r,Object.assign({className:"btnGroup"},{children:m.map(((s,a)=>e(Re,Object.assign({style:{color:n,borderColor:i,backgroundColor:t},className:B({btn:!0,white:0===a,black:1===a}),onClick:()=>g(s.handler),shape:l},{children:s.name}),a)))}))},{Button:Fe}=g;function We({contractBillcode:a,dataBmoney:c,dataBnum:n,goodsList:i,dataState:t,contractId:l,init:o,contractAppraise:r}){const{View:m}=d(),g=F(t);return s(m,Object.assign({className:"orderListItem"},{children:[s(m,Object.assign({onClick:()=>b("orderDetail",{contractBillcode:a})},{children:[s(m,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"orderNo"},{children:["订单号: ",a,e(Fe,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(Pe,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 Ge(e){const[s,a]=n(0);return t((()=>{if(!p())return;const s=N().createSelectorQuery();setTimeout((()=>{s.select(`#${e}`).boundingClientRect((e=>{if(e){const{top:s}=e;console.log(17,s),a(s)}})).exec()}))})),s}const He=s=>{var{bottomHeight:a,children:c,id:n}=s,i=be(s,["bottomHeight","children","id"]);const t=p(),o=Ge(n),r=function(e=""){return l((()=>{if(!p())return 0;const s=N(),a=s.getStorageSync("safeArea"),c=s.getStorageSync("tabBarHeight")||0;return a+(s.getCurrentPages().at(-1).$taroPath.indexOf("pages/")>=0?c:0)+(e?+e:0)}),[])}(a),m=t?N().getSystemInfoSync().windowHeight:"100vh",{View:g}=d();return e(g,Object.assign({},i,{style:{height:`calc(${m} - ${o+r}px)`}},{children:c}))},Ee=p(),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:l,ScrollView:r,Loading:m}=d(),g=i(!1),[h,b]=n(!1),[p,u]=n([Qe]),N=i(0);Ge("qj-tabs-id"),t((()=>{j()}),[c]);const j=O((()=>{N.current=0,u([]),f()})),f=O(((e={})=>pe(this,void 0,void 0,(function*(){if(g.current)return;b(!0),++N.current;const{code:e}=a;try{const s=yield A({page:N.current,rows:10,isLocalMock:!Ee,childFlag:!0,dataStateStr:e});g.current=T(s.rows)||s.rows.length<10,u((e=>e.concat(s.rows||[]))),b(!1)}catch(e){--N.current,console.log(30,e)}}))));return e(l,Object.assign({className:"orderListItemWrap"},{children:e(He,Object.assign({id:"orderListItemWrap",bottomHeight:50},{children:e(r,Object.assign({onScroll:f},{children:s(l,{children:[p.map(((e,s)=>o(We,Object.assign({init:j},e,{key:s})))),e(l,{children:h?e(m,{}):null})]})}))}))}))})),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:W,render:a=>e(c,Object.assign({className:"orderList"},{children:e(Ue,{item:a,refreshNum:s})}))})}))})),Ke=c((({contractBillcode:a,expressWay:c,backgroundColor:n,color:i,paddingBottom:t,paddingTop:l,borderColor:o,btnColor:r,btnShape:m})=>{const{View:g,Text:h}=d(),{orderDetail:b}=G(a||"");return s(g,Object.assign({className:"orderDetail"},{children:[e(g,Object.assign({style:{backgroundColor:n},className:"orderDetailTopTitle"},{children:s(g,Object.assign({className:"orderDetailTopTitleContent"},{children:[e(h,Object.assign({className:"title"},{children:F(b.dataState)})),e(g,{className:"subTitleWrap"})]}))})),e(g,Object.assign({className:"orderDetailContent",style:{paddingTop:l+"px",paddingBottom:t+"px"}},{children:s(g,Object.assign({style:{position:"relative",top:-26}},{children:[s(g,Object.assign({className:"addressInfo"},{children:[e(g,{className:"lPart"}),s(g,Object.assign({className:"mPart"},{children:[s(g,Object.assign({className:"personInfo"},{children:[e(h,Object.assign({className:"personName"},{children:b.goodsReceiptMem})),e(h,Object.assign({className:"personPhone"},{children:b.goodsReceiptPhone}))]})),e(g,Object.assign({className:"address"},{children:b.goodsReceiptArrdess}))]})),e(g,{className:"rPart"})]})),s(g,Object.assign({className:"orderDetailGoodsWrap"},{children:[b.goodsList.map((s=>e(Pe,Object.assign({},s),s.contractGoodsId))),s(g,Object.assign({className:"priceInfo"},{children:[s(g,Object.assign({className:"priceInfoFloor top"},{children:[s(g,Object.assign({className:"totalNum"},{children:["共",b.goodsNum,"件商品"]})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ",parseFloat((b.dataBmoney-b.refundMoney).toFixed(2))]}))]})),s(g,Object.assign({className:"priceInfoFloor"},{children:[e(g,Object.assign({className:"totalNum"},{children:"商品总额"})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ¥",b.contractInmoney]}))]})),s(g,Object.assign({className:"priceInfoFloor"},{children:[e(g,Object.assign({className:"totalNum"},{children:"优惠"})),s(g,Object.assign({className:"totalPrice"},{children:["合计 ¥",b.goodsPmoney]}))]}))]}))]})),c&&s(g,Object.assign({className:"express"},{children:[e(g,Object.assign({className:"label"},{children:"配送方式"})),e(g,Object.assign({className:"name"},{children:"快递"}))]})),s(g,Object.assign({className:"orderInfo"},{children:[e(g,Object.assign({className:"orderInfoItem"},{children:e(g,Object.assign({className:"label"},{children:"订单信息"}))})),s(g,Object.assign({className:"orderInfoItem"},{children:[e(g,Object.assign({className:"label"},{children:"买家留言"})),e(g,Object.assign({className:"name"},{children:b.packageRemark}))]})),s(g,Object.assign({className:"orderInfoItem"},{children:[e(g,Object.assign({className:"label"},{children:"订单编号"})),e(g,Object.assign({className:"name"},{children:b.contractBillcode}))]})),s(g,Object.assign({className:"orderInfoItem"},{children:[e(g,Object.assign({className:"label"},{children:"下单时间"})),e(g,Object.assign({className:"name"},{children:b.gmtCreate}))]}))]})),e(g,Object.assign({className:"btnGroupFooter"},{children:e(ze,{borderColor:o,btnColor:r,btnShape:m,color:i,contractBillcode:b.contractBillcode,contractId:b.contractId,dataState:b.dataState})}))]}))}))]}))})),Ze=c((({defaultValue:a,borderRadius:c,paddingTop:n,paddingBottom:i,selectClassifyNav:t})=>{const{View:l,Text:o}=d(),r=z(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 b(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=()=>pe(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:L(n,"rsSkuDomainList[0].skuCode","")};try{const s=yield w(e);c(s)}catch(e){console.log(e)}}));return s(l,Object.assign({onClick:()=>{T(a.dataObj)?pe(void 0,void 0,void 0,(function*(){const e={collectType:0,collectOpcode:L(n,"rsSkuDomainList[0].skuCode",""),collectOppic:n.dataPic,collectOpcont:n.goodsName,collectOpnum:n.pricesetNprice,goodsOrigin:0};yield v(e),o()})):pe(void 0,void 0,void 0,(function*(){const e={collectType:0,collectCode:a.dataObj||""};yield x(e),o()}))}},{children:[e("img",{src:Ae,alt:"",className:"icon"}),e(i,Object.assign({className:"txt"},{children:T(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}=H(),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:[de(a).format("YYYY-MM-DD")," - ",de(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}=E,$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:we,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(ue,{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:()=>b(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=E.useDispatchImpl(),{servicePopup:t}=Te();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:()=>b("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:()=>{j({shopping:{num:1}}),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}=Q();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}=Q(),{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||""})),e(g,Object.assign({className:"price"},{children:Le(null==a?void 0:a.pricesetNprice)})),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}=E,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:we,alt:"",className:"icon"})]}))]})),e(ts,{goodSku:n,goods:c})]})},ms=p(),{StoreProvider:gs}=E,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}=U(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(Ie,{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:Le(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})}))),ps=c((({navList:c,activeKey:n,cell:i=4})=>{const{View:t,Text:l,Image:o}=d();return e(a,{children:c.map((a=>e(t,Object.assign({className:["content",n===`${a.goodsClassCode}`?" active":""].join("")},{children:((null==a?void 0:a.childList)||[]).map((a=>s(t,Object.assign({className:"classifyFloor"},{children:[s(t,Object.assign({className:"titleWrap"},{children:[e(l,Object.assign({className:"title"},{children:a.goodsClassName})),e(l,{className:"line"})]})),e(t,Object.assign({className:`container container_columns${i}`},{children:((null==a?void 0:a.childList)||[]).map((({classtreeCode:a,goodsClassCode:c,goodsClassLogo:n,goodsClassName:i})=>s(t,Object.assign({onClick:()=>b("goodList",{classtreeCode:a}),className:"classifyFloorGoodsItem"},{children:[e(o,{src:n,className:"logo"}),e(t,Object.assign({className:"title"},{children:i}))]}),c)))}))]}),a.goodsClassCode)))}),a.goodsClassCode)))})})),{SideBar:us}=g,Ns=c((({cell:a,color:c,activeTitle:n,paddingTop:i,paddingBottom:t})=>{const{View:l}=d(),{activeKey:o,setActiveKey:r,navList:m,flag:g}=q();return s(l,Object.assign({style:{height:g?"100%":"667px",paddingTop:i,paddingBottom:t},className:"goodsClassifyContainer"},{children:[e(l,Object.assign({className:"side"},{children:e(us,Object.assign({activeKey:o,onChange:r,style:{"--width":"88px"}},{children:m.map((s=>e(us.Item,{title:s.goodsClassName,className:0===n?"typeBlock":"typeNoBlock",style:{color:s.goodsClassCode===o?c:"#000"}},s.goodsClassCode)))}))})),e(l,Object.assign({className:"main"},{children:e(ps,{navList:m,activeKey:o,cell:a})}))]}))})),Os=[{name:"默认",sortField:"pricesetNprice"},{name:"新品",sortField:""},{name:"销量",sortField:"goodsSalesvolume",order:"asc"},{name:"价格",sortField:"pricesetNprice",order:"asc"}],js=({setParams:a})=>{const{View:c}=d(),[i,t]=n(0),[l,o]=n(Os);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(ue,{style:{color:i===d?"#f00":"#444",fontSize:20},value:"desc"===n?"jiangxu":"shengxu"})]}),d)))}))},fs=c((({classtreeCode:a="",searchParam:c=""})=>{const{View:i,Loading:t,SmoothView:l,Image:o,ScrollView:r}=d(),[m,g]=n({}),{loading:h,getData:p,list:u}=K(a,c,m);return s(i,Object.assign({className:"goodsList"},{children:[e(i,Object.assign({className:"top-info",id:"searchId"},{children:e(js,{setParams:g})})),e(He,Object.assign({className:"listWrap",id:"searchId"},{children:s(r,Object.assign({onScroll:()=>p(m)},{children:[e(i,Object.assign({className:"list"},{children:u.map((a=>s(i,Object.assign({onClick:()=>b("goodDetail",{skuCode:a.skuCode}),className:"listItem"},{children:[e(o,{src:a.dataPic,className:"img"}),e(l,Object.assign({className:"name"},{children:a.goodsName})),e(l,Object.assign({className:"price"},{children:Le(a.pricesetNprice)}))]}),a.skuCode)))})),h?e(t,{}):null]}))}))]}))})),Cs=p(),ys=c((({placeholder:a,placeholderText:c,history:i,historyText:t,paddingBottom:l,paddingTop:o})=>{const{View:r,Text:m,Input:g}=d(),[h,p]=n((()=>u("history")||[]));console.log(23,u("history"));const j=O((e=>pe(void 0,void 0,void 0,(function*(){Cs&&(p((s=>{if(T(e.detail.value))return s;const a=s.concat(e.detail.value);return C("history",a),a})),y(e.detail.value))})))),y=O((e=>{b("goodList",{searchParam:e})}));return s(r,Object.assign({className:"searchPage",style:{paddingTop:o,paddingBottom:l}},{children:[s(r,Object.assign({className:"search-title"},{children:[e("img",{src:Ae,alt:""}),e(g,Object.assign({"confirm-type":"search",type:"text",className:"content",onConfirm:j},a?{placeholder:c}:{})),e(m,Object.assign({className:"btn",onClick:()=>f()},{children:"取消"}))]})),i?s(r,Object.assign({className:"historyWrap"},{children:[s(r,Object.assign({className:"title"},{children:[s(r,Object.assign({className:"label"},{children:[e(r,{className:"icon"}),t]})),e(ue,{onClick:()=>pe(void 0,void 0,void 0,(function*(){(yield N()).removeStorageSync("history"),p([])})),value:"shanchu",style:{fontSize:18,color:"#222",lineHeight:"61px",cursor:"pointer"}})]})),e(r,Object.assign({className:"content"},{children:h.map(((s,a)=>e(r,Object.assign({onClick:()=>y(s),className:"historyItem"},{children:s}),a)))}))]})):null]}))})),ks=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:Ae,alt:"",className:"icon"}),e(c,Object.assign({className:"txt"},{children:"已收藏"}))]}))]}))}))})),As=c((()=>{const{View:s}=d();return e(s,Object.assign({className:"goodsDetail-promotion-wrap"},{children:e(s,{className:"goodsDetail-promotion"})}))})),ws=({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)))}))]}))},vs=[{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"}]}],xs=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:vs.map(((s,a)=>e(ws,{itemData:s},a)))}))]})})),Is=c((({code:a,borderRadius:c,borderColor:n,color:t,buttonColor:l,buttonBorderRadius:o,paddingTop:m,paddingBottom:h})=>{const{orderInfo:b,changeStar:p,Submit:u,changeContent:N}=Z(a),{Button:O}=g,{View:j,Image:f,TextArea:C,Textarea:y}=d(),k=C||y,A=i("宝贝满足你吗?分享一下它吧");return s(j,Object.assign({className:"evaluateDetail",style:{paddingTop:m,paddingBottom:h}},{children:[b.map(((a,n)=>s(r,{children:[s(j,Object.assign({className:"topInfo"},{children:[s(j,Object.assign({className:"lPart"},{children:[e(f,{src:a.dataPic,className:"img",style:{borderRadius:1===c?"20px":"0px"}}),s(j,Object.assign({className:"goodsInfo"},{children:[e(j,Object.assign({className:"goodsName"},{children:a.goodsName})),e(j,Object.assign({className:"goodsSize"},{children:a.skuName}))]}))]})),e(j,Object.assign({className:"rPart"},{children:s(j,Object.assign({className:"price"},{children:["¥ ",a.pricesetNprice]}))}))]})),s(j,Object.assign({className:"rate"},{children:[e(j,Object.assign({className:"title"},{children:"商品评价"})),e(_e,{onChange:p.bind(null,n)})]})),e(j,Object.assign({className:"evaluate"},{children:e(k,{className:"content",placeholder:A.current,rows:5,maxLength:30,onInput:N.bind(null,n)})}))]},n))),e(O,Object.assign({style:{border:`1px solid ${n}`,color:t,backgroundColor:l,borderRadius:1===o?"20px":"0px"},className:"btn",onClick:u},{children:"提交"}))]}))})),Ss=({code:a,defaultValue:c})=>{const{info:n,detail:i}=X(a),{View:t}=d(),l=L(n,"packageList[0].contractGoodsList[0].dataPic",c.dataPic),o=L(n,"packageList.length",c.count),r=L(n,"packageList[0].expressName",c.expressName),m=L(n,"packageList[0].packageBillno",c.packageBillno),g=L(i,"result",c.result);return s(t,Object.assign({className:"expressInfoTop"},{children:[e(t,Object.assign({className:"goodsImg",style:{backgroundImage:`url(${l})`}},{children:s(t,Object.assign({className:"tip"},{children:["共 ",o," 件商品"]}))})),s(t,Object.assign({className:"list"},{children:[g,s(t,Object.assign({className:"listItem"},{children:["物流状态:",g||"暂时无法获取物流状态"]})),s(t,Object.assign({className:"listItem"},{children:["快递公司:",r]})),s(t,Object.assign({className:"listItem"},{children:["快递单号:",m]}))]}))]}))},Bs=({code:a,defaultValue:c})=>{const{detail:n}=X(a),{View:i}=d(),t=L(n,"message",c.message),l=L(n,"data",c.list);return e(i,Object.assign({className:"expressInfoStep"},{children:"ok"===t?l.map(((a,c)=>s(i,Object.assign({className:"step"},{children:[e(i,Object.assign({className:"time"},{children:a.time})),e(i,{children:a.context})]}),c))):e(i,Object.assign({className:"noInfo"},{children:t}))}))},Ds=c((({code:a,defaultValue:c})=>{const{View:n}=d();return s(n,Object.assign({className:"expressInfo"},{children:[e(Ss,{code:a,defaultValue:c}),e(Bs,{code:a,defaultValue:c})]}))})),Ts=({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}))})},Vs=({itemData:a,delAddress:c,setDefault:n,fontSize:i="12px",iconSize:t="12px"})=>{const{View:l,Text:o}=d(),r=p(),m=process.env.TARO_ENV;return s(l,Object.assign({className:"addressItem"},{children:[s(l,Object.assign({className:"upInfo",onClick:()=>{Ve.label=a.addressId,f(1)}},{children:[s(l,Object.assign({className:"userInfo"},{children:[a.addressMember," ",a.addressPhone]})),e(l,Object.assign({className:"addressInfo"},{children:s(o,Object.assign({className:"address"},{children:[a.provinceName," ",a.areaName," ",a.cityName," ",a.addressDetail]}))}))]})),s(l,Object.assign({className:"downInfo"},{children:[r?e("label",Object.assign({className:"checkboxMini"},{children:"h5"===m?e(Ts,{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:"删除"}))]}))]}))},Ls=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)))}))}))})})),Ps=c((({refreshNum:a,btnShape:c,btnColor:n,borderColor:i,paddingBottom:t,paddingTop:l,color:o})=>{const{View:r}=d(),{list:m,delAddress:g,setDefault:h,skullShow:p}=Y(a);return s(r,Object.assign({className:"addressListWrap"},{children:[p?e(Ls,{}):e(r,Object.assign({className:"addressList",style:{paddingTop:l+"px",paddingBottom:t+"px"}},{children:m.length?m.map(((s,a)=>e(Vs,{itemData:s,setDefault:h.bind(null,s,a),delAddress:g.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(r,Object.assign({className:"addBtnWrap"},{children:e(r,Object.assign({style:{borderRadius:c,borderColor:i,color:o,backgroundColor:n},className:"addBtn",onClick:()=>b("addressEditor")},{children:"+ 新增地址"}))}))]}))})),Rs=[{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"}],zs=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)))}))}))})}));he.forEach((e=>{const s=ge.filter((s=>s.code===e.cityCode))[0];s&&(s.children=s.children||[],s.children.push({label:e.name,value:e.code}))})),ge.forEach((e=>{const s=me.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 Ms=me.map((e=>({label:e.name,value:e.code+"0000",children:e.children}))),Fs=({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<Ms.length;c++)if(Ms[c].value===e[0]){s.provinceName=Ms[c].label,a.pIndex=c;break}for(let c=0;c<Ms[a.pIndex].children.length;c++)if(Ms[a.pIndex].children[c].value===e[1]){s.cityName=Ms[a.pIndex].children[c].label,a.cIndex=c;break}for(let c=0;c<Ms[a.pIndex].children[a.cIndex].children.length;c++)if(Ms[a.pIndex].children[a.cIndex].children[c].value===e[2]){s.areaName=Ms[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:Ms,visible:o,onClose:()=>r(!1)})]})},Ws=({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"}})})},Gs=p(),Hs=c((({addressId:s,btnShape:c,btnColor:n,borderColor:i,color:t,paddingTop:l,paddingBottom:o})=>{const{View:r,Switch:m}=d(),{Form:h,Button:b,Input:p}=g,u=process.env.TARO_ENV,{skullShow:N,form:O,area:j,defaultAddress:f,handleArea:C,handleDefaultAddress:y,handleFinish:k}=J(s,h,Gs);return e(r,Object.assign({className:"addressDetail",style:{height:Gs?"100%":"667px",paddingBottom:o+"px",paddingTop:l+"px"}},{children:N?e(zs,{}):e(h,Object.assign({form:O,layout:"horizontal",mode:"card",onFinish:k,footer:e(b,Object.assign({style:{color:t,backgroundColor:n,borderColor:i},shape:c,block:!0,type:"submit",size:"large"},{children:"提交"}))},{children:Rs.map(((s,c)=>e(h.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(p,Object.assign({},s.props)):"switch"===s.type?"h5"===u?e(Ws,{onChange:y.bind(null,"h5"),checked:"1"===f}):e(m,{color:"#000",onChange:y.bind(null,"weapp"),checked:"1"===f}):"cascader"===s.type?e(a,{children:Gs?"h5"===u?e(Fs,{form:O,handleArea:C}):e("picker",Object.assign({mode:"region",onChange:C.bind(null,"weapp"),value:j},{children:e(r,Object.assign({className:"areaWrap"},{children:j.provinceName?`${j.provinceName}—${j.cityName}-${j.areaName}`:"请选择所在地区"}))})):"请选择所在地区"}):void 0}),c)))}))}))})),Es=({address:s})=>e(a,{children:T(s)?e(Us,{}):e(Qs,{address:s})}),Qs=({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})),t.addressDefault?e(n,Object.assign({className:"left-padding left-title-default"},{children:"默认"})):null]})),e(n,Object.assign({className:"left-detail"},{children:t.address}))]})),e(i,{value:"xiangyou1",style:{color:"#444",lineHeight:3,textAlign:"right"}})]}))},Us=()=>{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"})]})},qs=({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]}))]}))]}))})},Ks=({goodsList:s})=>{const{View:a}=d();return console.dir(s),e(a,Object.assign({className:"place-order-goods"},{children:s.map(((s,a)=>e(Pe,Object.assign({},s),a)))}))},Zs=({amount:a,savePayPrice:c,color:n,buttonColor:i,borderColor:t,borderRadius:l})=>{const{View:o,Text:r}=d();return s(o,Object.assign({className:"placeOrderFooter"},{children:[s(r,Object.assign({className:"price"},{children:["合计: ",a]})),e(o,Object.assign({className:"btn",onClick:c,style:{color:`${n}`,border:`1px solid ${t}`,backgroundColor:`${i}`,borderRadius:1===l?"40px":"0px"}},{children:"生成订单"}))]}))},Xs=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:[de(a).format("YYYY-MM-DD")," - ",de(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})}))]}))}))})),Ys=({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:we,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(Xs,Object.assign({disable:t<e.discAmount},e,{key:s}))))}))}))}))}))]})},Js=c((({refreshNum:a,goodsNum:c,skuId:n,shoppingGoodsId:i,shippingMethod:t,color:l,buttonColor:o,borderColor:r,borderRadius:m,paddingTop:g,paddingBottom:h})=>{const{View:p}=d(),{label:u}=Ve,{savePayPrice:N,address:O,list:j,payState:f,coupon:C,confirm:y,amount:k}=$({skuId:n,goodsNum:c,shoppingGoodsId:i},a,u);return s(p,Object.assign({style:{height:"100%",paddingTop:g,paddingBottom:h},className:"placeOrder"},{children:[s(p,Object.assign({className:"order-wrap",style:{height:"calc(100% - 54px)"}},{children:[e(p,Object.assign({className:"chooseAddress",onClick:()=>b("addressList")},{children:e(Es,{address:O})})),e(Ks,{goodsList:j.current}),e(p,Object.assign({className:"info blcWrap",style:1===t?{display:"block"}:{display:"none"}},{children:s(p,Object.assign({className:"express blcItem"},{children:[e(p,Object.assign({className:"label"},{children:"配送方式"})),e(p,Object.assign({className:"value"},{children:"快递"}))]}))})),e(Ys,{coupon:C,confirm:y,amount:k}),e(qs,{amount:k,savePayPrice:N,payState:f.current})]})),e(Zs,{savePayPrice:N,amount:k,color:l,buttonColor:o,borderColor:r,borderRadius:m})]}))})),{useOrderResult:$s}=_,_s=p(),ea=c((({code:a,borderRadius:c,leftColor:n,leftButtonColor:i,leftBorderColor:t,leftBorderRadius:l,rightValue:o,rightAddHref:r,rightColor:m,rightButtonColor:g,rightBorderColor:h,rightBorderRadius:p,paddingTop:N,paddingBottom:O})=>{const{View:j,Text:f}=d(),{result:C}=$s(a||(u("contractBillcode")||{}).contractBillcode),{sysRecode:y,dataObj:k}=C;return console.log(15,y,k),e(j,Object.assign({className:"placeOrderResult",style:{height:_s?"100vh":"667px",paddingTop:N,paddingBottom:O}},{children:s(j,y?Object.assign({className:"placeOrderResultContent",style:{borderRadius:1===c?"20px":"0px"}},{children:[e(f,{className:"icon"}),e(j,Object.assign({className:"tips"},{children:e(f,Object.assign({className:"title"},{children:"订单支付成功"}))})),s(j,Object.assign({className:"placeOrderResultWrap"},{children:[s(j,Object.assign({className:"placeOrderResultItem"},{children:[e(f,Object.assign({className:"label"},{children:"订单号:"})),e(f,Object.assign({className:"value"},{children:k.contractBillcode}))]})),s(j,Object.assign({className:"placeOrderResultItem"},{children:[e(f,Object.assign({className:"label"},{children:"支付方式:"})),e(f,Object.assign({className:"value"},{children:"在线支付"}))]})),s(j,Object.assign({className:"placeOrderResultItem"},{children:[e(f,Object.assign({className:"label"},{children:"支付金额:"})),s(f,Object.assign({className:"value"},{children:["¥ ",k.dataBmoney]}))]}))]})),s(j,Object.assign({className:"btnGroup"},{children:[e(j,Object.assign({className:"btn black",onClick:()=>b("orderDetail",{contractBillcode:k.contractBillcode}),style:{color:n,backgroundColor:i,border:`1px solid ${t}`,borderRadius:1===l?"20px":"0px"}},{children:"查看订单"})),e(j,Object.assign({style:{color:m,backgroundColor:g,border:`1px solid ${h}`,borderRadius:1===p?"20px":"0px"},onClick:()=>b(r.value),className:"btn white"},{children:o}))]}))]}):Object.assign({className:"placeOrderResultContent"},{children:[e(f,{className:"icon"}),s(j,Object.assign({className:"tips"},{children:[e(f,Object.assign({className:"title"},{children:"订单支付失败"})),e(f,Object.assign({className:"tip"},{children:"您的订单将保留15分钟,可点击下方“去支付”完成订单"}))]})),e(j,Object.assign({className:"btnGroup"},{children:e(j,Object.assign({onClick:()=>b("paymentMode",{code:C.contractBillcode}),className:"btn white"},{children:"去支付"}))}))]}))}))}));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 sa=()=>{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"})}))},aa=({list:c,coe:n,config:i,backgroundColor:t,color:l})=>{const{View:o,Text:r}=d();return e(a,{children:c.length?c.map(((c,d)=>e(o,Object.assign({className:`couponListItem\n ${i.current[n.current].styleName}`,style:{backgroundColor:t,color:l}},{children:s(o,Object.assign({className:"coupon-content"},{children:[e(o,Object.assign({className:"price"},{children:e(r,Object.assign({className:"num"},{children:c.pbName}))})),s(o,Object.assign({className:"info"},{children:[e(r,Object.assign({className:"title"},{children:c.discName})),s(r,Object.assign({className:"date"},{children:["有效期至:",`${new Date(c.gmtModified).getFullYear()}-${new Date(c.gmtModified).getMonth()+1}-${new Date(c.gmtModified).getDate()}`]})),e(o,Object.assign({className:"btn"},{children:i.current[n.current].text})),2===n.current?e(a,{children:e(o,Object.assign({className:"round"},{children:"已失效"}))}):null]}))]}))}),d))):e(sa,{})})},ca=c((({backgroundColor:a,color:c,paddingTop:n,paddingBottom:i,queue:l})=>{const{View:o,Text:r,ScrollView:m}=d(),{coe:g,getList:h,config:b,switchTab:u,list:N=[]}=ee();return p(),t((()=>{I().then((e=>{console.log(26,e)}))}),[]),s(o,Object.assign({className:"couponList"},{children:[e(o,Object.assign({className:"couponTab"},{children:b.current.map(((a,c)=>s(o,Object.assign({className:"couponTabItem "+(g.current===c?"active":""),onClick:()=>u(c)},{children:[a.label,e(r,{className:"icon"})]}),a.id)))})),e(He,Object.assign({id:"couponTab",bottomHeight:60},{children:e(m,Object.assign({onScroll:h},{children:e(o,Object.assign({className:"couponListContent",style:{paddingTop:n,paddingBottom:i}},{children:e(aa,{backgroundColor:a,color:c,queue:l,list:N,coe:g,config:b})}))}))}))]}))}));function na({list:a}){const{View:c,Text:n,Image:i,Checkbox:t,NumStep:l,SmoothCheckbox:o,WrapLoading:r}=d(),{loading:m}=se(),{select:g,onChange:h,handleStep:b}=ae();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 ia=p(),ta=({refreshNum:c})=>{const{View:i,Text:t,Checkbox:l,SmoothCheckbox:o,ScrollView:r}=d(),[m,g]=n(!0),{cartList:h,initImpl:b,amount:p,selectAll:u,allCart:N,toOrderImpl:O,select:j,deleteCart:f,disMoney:C}=ne(c);return e(i,Object.assign({className:"cart",style:{height:ia?"100%":"667px"}},{children:h.length?s(a,{children:[e(i,Object.assign({className:"edit"},{children:e(i,Object.assign({className:"btn",onClick:()=>g(!m)},{children:m?"编辑":"完成"}))})),e(He,Object.assign({id:"editId",bottomHeight:"113"},{children:e(r,{children:e(na,{list:h})})})),s(i,Object.assign({className:"dashboard"},{children:[e(i,Object.assign({className:"choose"},{children:e(o,Object.assign({onChange:u},{children:e(l,Object.assign({checked:N.current.length===j.length,value:"true",style:{"--icon-size":"16px","--font-size":"14px","--gap":"6px"}},{children:"全选"}))}))})),m?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:["¥ ",C||0]}))]})),s(i,Object.assign({className:"all"},{children:["合计: ",s(t,Object.assign({className:"data"},{children:["¥ ",p.amount.toFixed(2)]}))]}))]})),s(i,Object.assign({onClick:O,className:"btn"},{children:["结算(",p.num,")"]}))]})):e(i,Object.assign({className:"del"},{children:e(i,Object.assign({onClick:f,className:"btn"},{children:"删除"}))}))]}))]}):e(ss,{url:"https://brushes.oss-cn-shanghai.aliyuncs.com/static/mini/noCarts.png",title:"购物车竟然是空的",subTitle:"快点挑选点东西犒赏自己吧",link:ie.index})}))},la=c((({refreshNum:s})=>e(ce,{children:e(ta,{refreshNum:s})}))),oa=()=>{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:()=>b(ie[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)))}))},ra=()=>{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((()=>{pe(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:"1231232我的订单"})),e(a,Object.assign({className:"more",onClick:()=>b("orderlist")},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:g.current.map(((n,i)=>s(a,Object.assign({onClick:()=>b("orderlist",{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)))}))]}))},da=c((({avatarStyle:a,userAvatar:c="",userNickname:n="用户名",banner:i})=>{const{View:t,Text:l,IconMobile:o,Image:r}=d(),m=p(),{servicePopup:g}=Te();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:()=>b("mySetting")}),e(o,{value:"kehufuwukefu",onClick:g})]})),s(t,Object.assign({className:"userSetting",onClick:()=>b("mySetting")},{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(ra,{}),e(oa,{})]}))})),ma=c((({avatarStyle:a,userAvatar:c="",userNickname:n="用户名",banner:i})=>{const{View:t,Text:l,IconMobile:o,Image:r}=d(),{servicePopup:m}=Te();return s(t,Object.assign({className:"mineData"},{children:[s(t,Object.assign({className:"topBoard"},{children:[e(o,{value:"shezhi",onClick:()=>b("/account/setting/index")}),e(o,{value:"kehufuwukefu",onClick:m})]})),s(t,Object.assign({className:"userSetting",onClick:()=>b("/account/setting/index")},{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"}})]}))]}))})),ga=c((()=>{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((()=>{pe(void 0,void 0,void 0,(function*(){try{const e=yield S();m(e.dataObj)}catch(e){}}))}),[]),s(a,Object.assign({className:"mineOrderEntry"},{children:[s(a,Object.assign({className:"title"},{children:[e(a,Object.assign({className:"name"},{children:"我的订单"})),e(a,Object.assign({className:"more",onClick:()=>b("orderlist")},{children:"查看全部"}))]})),e(a,Object.assign({className:"content"},{children:g.current.map(((n,i)=>s(a,Object.assign({onClick:()=>b("orderlist",{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)))}))]}))})),ha=c((()=>{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:"/account/myAgreementList/index"},{icon:"shezhi",label:"我的设置",link:"/account/mySetting/index"}]);return e(a,Object.assign({className:"mineFunction"},{children:t.current.map(((i,t)=>s(a,Object.assign({className:"menuListItem",onClick:()=>b(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)))}))})),ba=p(),pa=c((({code:a,btnColor:c,btnShape:n,borderColor:i,paddingTop:t,paddingBottom:l,color:o})=>{const{View:r,Text:m,Radio:g,IconMobile:h,WrapLoading:b,SmoothRadio:p}=d(),{paymentImpl:u,channelList:N,contract:O,handleRadio:j,loading:f}=te(a);return s(r,Object.assign({className:"paymentModeWrap",style:{height:ba?"inherit":"667px",paddingBottom:l+"px",paddingTop:t+"px"}},{children:[s(r,Object.assign({className:"paymentMode"},{children:[s(r,Object.assign({className:"topInfo"},{children:[s(m,Object.assign({className:"title"},{children:[e(h,{value:"roundcheck"}),"订单提交成功"]})),s(r,Object.assign({className:"info"},{children:["订单号:",O.current.contractBillcode," | 总金额:",O.current.dataBmoney,"元"]}))]})),e(r,Object.assign({className:"paymentGroup"},{children:e(p,Object.assign({onChange:j},{children:N.map((a=>s(r,Object.assign({className:"paymentItem"},{children:[e(h,{value:a.icon}),s(r,{children:[s(r,Object.assign({className:"base"},{children:[e(m,{children:a.fchannelName}),e(g,{value:a.fchannelCode,className:"choose"})]})),"account"===a.value?s(r,Object.assign({className:"info"},{children:[e(r,{children:"账户余额:0元"}),e(r,{children:"本单抵扣:5.4元"})]})):null]})]}),a.fchannelCode)))}))}))]})),e(b,Object.assign({loading:f},{children:e(r,Object.assign({className:"btnGroup",onClick:u},{children:e(r,Object.assign({style:{borderRadius:n,backgroundColor:c,color:o,borderColor:i},className:"payment"},{children:"立即支付"}))}))}))]}))})),ua=({item:c,edit:n})=>{const{View:i,Image:t,Checkbox:l}=d();return s(i,Object.assign({className:"footPrint"},{children:[e(a,{children:e(i,Object.assign({className:"title",style:{paddingLeft:"20px",paddingTop:"30px",paddingBottom:"10px"}},{children:c.title}))}),c.option.map(((a,c)=>s(i,Object.assign({className:"footprintItem"},{children:[n?e(i,Object.assign({className:"lPart"},{children:e(l,{value:a.footprintCode})})):null,s(i,Object.assign({className:"rPart",onClick:()=>b("goodDetail",{skuCode:a.footprintOpcode})},{children:[e(t,{src:a.footprintOppic,className:"img"}),s(i,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"title"},{children:a.footprintOpcont})),s(i,Object.assign({className:"price"},{children:[a.footprintOpnum," 元"]}))]}))]}))]}),c)))]}))},Na=({footprintList:s,edit:c})=>{const n=l((()=>{const e=s.map((e=>(e.gmtCreate=`\n ${new Date(+e.gmtCreate).getFullYear()}-\n ${new Date(+e.gmtCreate).getMonth()+1}-\n ${new Date(+e.gmtCreate).getDate()}\n `,e))),a=P(e,"gmtCreate"),c=Object.keys(a).map((e=>({title:e,option:a[e]})));return console.log(8,c),c}),[s]);return e(a,{children:n.map(((s,a)=>e(ua,{item:s,edit:c},a)))})},Oa=c((()=>{const{View:a,ScrollView:c,Checkbox:n,Button:i,Image:t}=d(),{footprintList:l,edit:o,setEdit:r,getSelectItem:m,delItem:g}=le();return e(a,Object.assign({className:"collectList"},{children:0===l.length?e(a,Object.assign({className:"noDate"},{children:e(t,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})})):s(a,Object.assign({className:"hasDate"},{children:[e(a,Object.assign({className:"topBar",id:"topBar1"},{children:e(a,Object.assign({className:"edit",onClick:()=>r(!o)},{children:o?"完成":"编辑"}))})),e(He,Object.assign({id:"topBar1"},{children:e(c,Object.assign({scrollY:!0,scrollWithAnimation:!0},{children:e(n.Group,Object.assign({onChange:m},{children:e(Na,{footprintList:l,edit:o})}))}))})),o?s(a,Object.assign({className:"handleBar"},{children:[e(a,{className:"checkAll"}),e(i,Object.assign({className:"btn",onClick:g},{children:"删除"}))]})):null]}))}))})),ja=({item:a,edit:c,checked:n})=>{const{View:i,Image:t,Checkbox:l}=d();return s(i,Object.assign({className:"collectItem"},{children:[c?e(l,{className:"lPart",value:a.collectCode,checked:n}):null,s(i,Object.assign({className:"rPart",onClick:()=>b("goodDetail",{skuCode:a.collectOpcode})},{children:[e(t,{src:a.collectOppic,className:"img"}),s(i,Object.assign({className:"info"},{children:[e(i,Object.assign({className:"title"},{children:a.collectOpcont})),s(i,Object.assign({className:"price"},{children:[a.collectOpnum," 元"]}))]}))]}))]}))},fa=c((()=>{const{collectionList:a,edit:c,setEdit:n,getData:i,getSelectItem:t,delItem:l,init:o,checked:r,handleSelectAll:m,selectAllChecked:g}=oe(),{View:h,ScrollView:b,SmoothCheckbox:p,Checkbox:u,Button:N,Image:O}=d();return e(h,Object.assign({className:"collectList"},{children:0===a.length?e(h,Object.assign({className:"noDate"},{children:e(O,{className:"img",src:"https://b2cweapp7c0069b43749439d97b7cae6a02bd459.saas.qjclouds.com/paas/shop-master/c-static/images/wxminiImg/noCollection.png"})})):s(h,Object.assign({className:"hasDate"},{children:[e(h,Object.assign({className:"topBar",id:"topBar"},{children:e(h,Object.assign({className:"edit",onClick:()=>n(!c)},{children:c?"完成":"编辑"}))})),e(He,Object.assign({id:"topBar"},{children:e(b,Object.assign({scrollY:!0,scrollWithAnimation:!0,onScrollToLower:i,onScrollToUpper:o},{children:e(p,Object.assign({onChange:t},{children:a.map((s=>e(ja,{item:s,edit:c,checked:r},s.collectId)))}))}))})),c?s(h,Object.assign({className:"handleBar"},{children:[e(h,Object.assign({className:"checkAll"},{children:e(p,Object.assign({onChange:m},{children:e(u,Object.assign({value:"1",checked:g},{children:"全选"}))}))})),e(N,Object.assign({className:"btn",onClick:l},{children:"删除"}))]})):null]}))}))})),Ca=c((({noticeId:a})=>{const{View:c,Image:n}=d(),{info:i}=re(a);return s(c,Object.assign({className:"noticeDetailContainer"},{children:[e(c,Object.assign({className:"title"},{children:i.noticeTitle})),i.noticePicurl?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl}):null,i.noticePicurl1?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl1}):null,i.noticePicurl2?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl2}):null,i.noticePicurl3?e(n,{className:"img",mode:"widthFix",src:i.noticePicurl3}):null,e(c,Object.assign({className:"content"},{children:i.noticeContext}))]}))}));export{Hs as AddressDetail,Ps as AddressList,la as Cart,Ze as ClassifyNav,fa as CollectionList,ca as CouponList,fe as Cube,Is as EvaluateDetail,xs as EvaluateList,Ds as ExpressInfo,Oa as FootPrint,Ne as Goods,Ns as GoodsClassify,bs as GoodsDetail,As as GoodsDetailPromotion,ks as GoodsDetailTopInfo,Be as GoodsGroup,fs as GoodsList,Ce as Line,da as Mine,ma as MineData,ha as MineFunction,ga as MineOrderEntry,Oe as Notice,Ca as NoticeDetail,Ke as OrderDetail,qe as OrderList,pa as PaymentMode,Js as PlaceOrder,ea as PlaceOrderResult,ue as QjMobileIcon,ve as Search,ys as SearchPage,ke as Service,Ie as Slider,je as Title,ye as Video};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function checkImgUrl(str: string): 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.28",
|
|
4
4
|
"description": "'组件库'",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": [
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "ISC",
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@brushes/simulate-component": "^0.1.
|
|
31
|
-
"@brushes/utils": "
|
|
30
|
+
"@brushes/simulate-component": "^0.1.30",
|
|
31
|
+
"@brushes/utils": "latest",
|
|
32
32
|
"@stencil/core": "^3.2.0",
|
|
33
33
|
"china-division": "^2.6.1",
|
|
34
34
|
"classnames": "^2.3.2",
|
|
35
35
|
"dayjs": "^1.11.7",
|
|
36
36
|
"lodash-es": "^4.17.21",
|
|
37
37
|
"qj-b2c-api": "^1.0.32",
|
|
38
|
-
"qj-mobile-store": "^1.0.
|
|
38
|
+
"qj-mobile-store": "^1.0.65",
|
|
39
39
|
"react": "^18.2.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|