@conecli/cone-render 0.10.1-shop3.114 → 0.10.1-shop3.115
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/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.h5.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro';
|
|
2
1
|
getNativePageScrollRes,
|
|
3
2
|
latestFromNativeMsgStorage,
|
|
4
3
|
const { children, placeholder, height, className, inViewCallback } = props;
|
|
5
4
|
const [componentShowState, setComponentShowState] = useState(false);
|
|
6
5
|
const [componentRenderShowState, setComponentRenderShowState] = useState(false);
|
|
7
6
|
const componentLazyRef = useRef<HTMLElement | null>(null);
|
|
8
7
|
const componentShowStateRef = useRef(false);
|
|
9
8
|
const needShowHighVersion =
|
|
10
9
|
isH5AndJdShopViewH5Scroll &&
|
|
11
10
|
!(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === 'true');
|
|
12
11
|
const rootDom =
|
|
13
12
|
isH5AndJdShopView && needShowHighVersion ? null : document.querySelector('#J_shopHomeRoot');
|
|
14
13
|
if (isH5AndJdShopView && !needShowHighVersion && !isAppStowShop) {
|
|
15
14
|
useEffect(() => {
|
|
16
15
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
|
|
17
16
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes);
|
|
18
17
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
|
|
19
18
|
!componentShowStateRef.current && dealPageScrollInfo(res);
|
|
20
19
|
});
|
|
21
20
|
}, []);
|
|
22
21
|
useEffect(() => {
|
|
23
22
|
if (componentShowState) {
|
|
24
23
|
typeof inViewCallback === 'function' && inViewCallback();
|
|
25
24
|
}
|
|
26
25
|
}, [componentShowState]);
|
|
27
26
|
|
|
28
27
|
const dealPageScrollInfo = (res) => {
|
|
29
28
|
const { displayHeight, offSetY } = getNativePageScrollRes(res) || {};
|
|
30
29
|
if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined') return;
|
|
31
30
|
if (componentLazyRef.current) {
|
|
32
31
|
const eleClientRect = componentLazyRef.current.getBoundingClientRect();
|
|
33
32
|
const getContainerHeightOffSetY = displayHeight + offSetY;
|
|
34
33
|
const eleOffsetTop = Math.ceil(eleClientRect.top);
|
|
35
34
|
if (!componentShowStateRef.current) {
|
|
36
35
|
if (getContainerHeightOffSetY > eleOffsetTop) {
|
|
37
36
|
componentShowStateRef.current = true;
|
|
38
37
|
setComponentShowState(true);
|
|
39
38
|
Taro.nextTick(() => {
|
|
40
39
|
setComponentRenderShowState(true);
|
|
41
40
|
});
|
|
42
41
|
}
|
|
43
42
|
}
|
|
44
43
|
}
|
|
45
44
|
};
|
|
46
45
|
return (
|
|
47
46
|
<View
|
|
48
47
|
ref={componentLazyRef}
|
|
49
48
|
className={classNames(
|
|
50
49
|
lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
|
|
51
50
|
'd-app-floor-lazy-load',
|
|
52
51
|
className,
|
|
53
52
|
)}
|
|
54
53
|
style={{
|
|
55
54
|
minHeight: `${
|
|
56
55
|
componentRenderShowState ? 'auto' : height + (typeof height === 'number' ? 'px' : '')
|
|
57
56
|
}`,
|
|
58
57
|
backgroundColor: componentRenderShowState ? 'transparent' : '#ffffff',
|
|
59
58
|
}}
|
|
60
59
|
>
|
|
61
60
|
{componentShowState ? children : placeholder}
|
|
62
61
|
</View>
|
|
63
62
|
);
|
|
64
63
|
} else {
|
|
65
64
|
const { ref, inView } = useInView({
|
|
66
65
|
threshold: 0.5,
|
|
67
66
|
triggerOnce: true,
|
|
68
67
|
root: rootDom || null,
|
|
69
68
|
rootMargin: `0px 0px 0px 0px`,
|
|
70
69
|
delay: 300,
|
|
71
70
|
});
|
|
72
71
|
useEffect(() => {
|
|
73
72
|
if (inView) {
|
|
74
73
|
typeof inViewCallback === 'function' && inViewCallback();
|
|
75
74
|
}
|
|
76
75
|
}, [inView]);
|
|
77
76
|
return (
|
|
78
77
|
<div
|
|
79
78
|
className={className}
|
|
80
79
|
ref={ref}
|
|
81
80
|
style={{
|
|
82
81
|
minHeight: inView ? 'auto' : typeof height === 'number' ? `${height}px` : height,
|
|
83
82
|
backgroundColor: 'transparent',
|
|
84
83
|
}}
|
|
85
84
|
>
|
|
86
85
|
{inView ? children : placeholder}
|
|
87
86
|
</div>
|
|
88
87
|
);
|
|
89
88
|
}
|
|
90
89
|
children: null,
|
|
91
90
|
placeholder: null,
|
|
92
91
|
height: 1,
|
|
93
92
|
className: '',
|
|
94
93
|
lazyNodeClassName: '',
|
|
95
94
|
inViewCallback: null,
|
|
95
|
+
import Taro from '@tarojs/taro';
|
|
96
96
|
isH5AndJdShopView,
|
|
97
97
|
isH5AndJdShopViewH5Scroll,
|
|
98
98
|
isAppStowShop,
|
|
99
99
|
isAppClassifyPage,
|
|
100
100
|
getNativePageScrollRes,
|
|
101
101
|
latestFromNativeMsgStorage,
|
|
102
102
|
const { children, placeholder, height, className, inViewCallback } = props;
|
|
103
103
|
const [componentShowState, setComponentShowState] = useState(false);
|
|
104
104
|
const [componentRenderShowState, setComponentRenderShowState] = useState(false);
|
|
105
105
|
const componentLazyRef = useRef<HTMLElement | null>(null);
|
|
106
106
|
const componentShowStateRef = useRef(false);
|
|
107
107
|
const needShowHighVersion =
|
|
108
108
|
isH5AndJdShopViewH5Scroll &&
|
|
109
109
|
!(global.info.queryInfo?.downgraded && global.info.queryInfo.downgraded === 'true');
|
|
110
110
|
const rootDom =
|
|
111
111
|
isH5AndJdShopView && needShowHighVersion ? null : document.querySelector('#J_shopHomeRoot');
|
|
112
112
|
if (isH5AndJdShopView && !isAppClassifyPage && !needShowHighVersion && !isAppStowShop) {
|
|
113
113
|
useEffect(() => {
|
|
114
114
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {};
|
|
115
115
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes);
|
|
116
116
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
|
|
117
117
|
!componentShowStateRef.current && dealPageScrollInfo(res);
|
|
118
118
|
});
|
|
119
119
|
}, []);
|
|
120
120
|
useEffect(() => {
|
|
121
121
|
if (componentShowState) {
|
|
122
122
|
typeof inViewCallback === 'function' && inViewCallback();
|
|
123
123
|
}
|
|
124
124
|
}, [componentShowState]);
|
|
125
125
|
|
|
126
126
|
const dealPageScrollInfo = (res) => {
|
|
127
127
|
const { displayHeight, offSetY } = getNativePageScrollRes(res) || {};
|
|
128
128
|
if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined') return;
|
|
129
129
|
if (componentLazyRef.current) {
|
|
130
130
|
const eleClientRect = componentLazyRef.current.getBoundingClientRect();
|
|
131
131
|
const getContainerHeightOffSetY = displayHeight + offSetY;
|
|
132
132
|
const eleOffsetTop = Math.ceil(eleClientRect.top);
|
|
133
133
|
if (!componentShowStateRef.current) {
|
|
134
134
|
if (getContainerHeightOffSetY > eleOffsetTop) {
|
|
135
135
|
componentShowStateRef.current = true;
|
|
136
136
|
setComponentShowState(true);
|
|
137
137
|
Taro.nextTick(() => {
|
|
138
138
|
setComponentRenderShowState(true);
|
|
139
139
|
});
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
};
|
|
144
144
|
return (
|
|
145
145
|
<View
|
|
146
146
|
ref={componentLazyRef}
|
|
147
147
|
className={classNames(
|
|
148
148
|
lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
|
|
149
149
|
'd-app-floor-lazy-load',
|
|
150
150
|
className,
|
|
151
151
|
)}
|
|
152
152
|
style={{
|
|
153
153
|
minHeight: `${
|
|
154
154
|
componentRenderShowState ? 'auto' : height + (typeof height === 'number' ? 'px' : '')
|
|
155
155
|
}`,
|
|
156
156
|
backgroundColor: componentRenderShowState ? 'transparent' : '#ffffff',
|
|
157
157
|
}}
|
|
158
158
|
>
|
|
159
159
|
{componentShowState ? children : placeholder}
|
|
160
160
|
</View>
|
|
161
161
|
);
|
|
162
162
|
} else {
|
|
163
163
|
const { ref, inView } = useInView({
|
|
164
164
|
threshold: 0.5,
|
|
165
165
|
triggerOnce: true,
|
|
166
166
|
root: rootDom || null,
|
|
167
167
|
rootMargin: `0px 0px 0px 0px`,
|
|
168
168
|
delay: 300,
|
|
169
169
|
});
|
|
170
170
|
useEffect(() => {
|
|
171
171
|
if (inView) {
|
|
172
172
|
typeof inViewCallback === 'function' && inViewCallback();
|
|
173
173
|
}
|
|
174
174
|
}, [inView]);
|
|
175
175
|
return (
|
|
176
176
|
<div
|
|
177
177
|
className={className}
|
|
178
178
|
ref={ref}
|
|
179
179
|
style={{
|
|
180
180
|
minHeight: inView ? 'auto' : typeof height === 'number' ? `${height}px` : height,
|
|
181
181
|
backgroundColor: 'transparent',
|
|
182
182
|
}}
|
|
183
183
|
>
|
|
184
184
|
{inView ? children : placeholder}
|
|
185
185
|
</div>
|
|
186
186
|
);
|
|
187
187
|
}
|
|
188
188
|
children: null,
|
|
189
189
|
placeholder: null,
|
|
190
190
|
height: 1,
|
|
191
191
|
className: '',
|
|
192
192
|
lazyNodeClassName: '',
|
|
193
193
|
inViewCallback: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { useRef, useEffect } from 'react';
|
|
2
1
|
const {
|
|
3
2
|
className,
|
|
4
3
|
pointClassName,
|
|
5
4
|
children,
|
|
6
5
|
reportData,
|
|
7
6
|
customReportDataKey,
|
|
8
7
|
customReportDataFn,
|
|
9
8
|
trackCallback,
|
|
10
9
|
...otherProps
|
|
11
10
|
} = props;
|
|
12
11
|
const itemViewExposureRef = useRef(null);
|
|
13
12
|
const isCustomReport = customReportDataKey && customReportDataFn;
|
|
14
13
|
const checkReportData = Array.isArray(reportData);
|
|
15
14
|
const [floorData, mInfo] = checkReportData ? reportData : [];
|
|
16
15
|
const checkReportDataState = isCustomReport ? true : floorData && mInfo;
|
|
17
16
|
|
|
18
17
|
floorData && mInfo && !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0);
|
|
19
18
|
return (
|
|
20
19
|
<View
|
|
21
20
|
ref={itemViewExposureRef}
|
|
22
21
|
className={classNames(itemViewExposureSmartStyle['d-item-point-layout'], className)}
|
|
23
22
|
{...otherProps}
|
|
24
23
|
>
|
|
25
24
|
{children ? children : null}
|
|
26
25
|
{checkReportDataState && (
|
|
27
26
|
<ExposureSmart
|
|
28
27
|
className={classNames(pointClassName, {
|
|
29
28
|
[itemViewExposureSmartStyle['d-item-chart-point']]: isChartH5,
|
|
30
29
|
})}
|
|
31
30
|
innerRef={itemViewExposureRef}
|
|
32
31
|
reportData={reportData}
|
|
33
32
|
trackCallback={trackCallback}
|
|
34
33
|
customReportDataFn={customReportDataFn}
|
|
35
34
|
customReportDataKey={customReportDataKey}
|
|
36
35
|
markPoint
|
|
37
36
|
/>
|
|
38
37
|
)}
|
|
39
38
|
</View>
|
|
40
39
|
);
|
|
41
40
|
reportData: [],
|
|
42
41
|
customReportDataKey: null,
|
|
43
42
|
customReportDataFn: null,
|
|
44
43
|
customReportDataForMapFn: null,
|
|
44
|
+
import React, { useRef } from 'react';
|
|
45
45
|
const {
|
|
46
46
|
className,
|
|
47
47
|
pointClassName,
|
|
48
48
|
children,
|
|
49
49
|
reportData,
|
|
50
50
|
customReportDataKey,
|
|
51
51
|
customReportDataFn,
|
|
52
52
|
trackCallback,
|
|
53
53
|
...otherProps
|
|
54
54
|
} = props;
|
|
55
55
|
const itemViewExposureRef = useRef(null);
|
|
56
56
|
const isCustomReport = customReportDataKey && customReportDataFn;
|
|
57
57
|
const checkReportData = Array.isArray(reportData);
|
|
58
58
|
const [floorData, mInfo] = checkReportData ? reportData : [];
|
|
59
59
|
const checkReportDataState = isCustomReport ? true : floorData && mInfo;
|
|
60
60
|
|
|
61
61
|
floorData && mInfo && !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0);
|
|
62
62
|
return (
|
|
63
63
|
<View
|
|
64
64
|
ref={itemViewExposureRef}
|
|
65
65
|
className={classNames(itemViewExposureSmartStyle['d-item-point-layout'], className)}
|
|
66
66
|
{...otherProps}
|
|
67
67
|
>
|
|
68
68
|
{children ? children : null}
|
|
69
69
|
{checkReportDataState && (
|
|
70
70
|
<ExposureSmart
|
|
71
71
|
className={classNames(pointClassName, {
|
|
72
72
|
[itemViewExposureSmartStyle['d-item-chart-point']]: isChartH5,
|
|
73
73
|
})}
|
|
74
74
|
innerRef={itemViewExposureRef}
|
|
75
75
|
reportData={reportData}
|
|
76
76
|
trackCallback={trackCallback}
|
|
77
77
|
customReportDataFn={customReportDataFn}
|
|
78
78
|
customReportDataKey={customReportDataKey}
|
|
79
79
|
markPoint
|
|
80
80
|
/>
|
|
81
81
|
)}
|
|
82
82
|
</View>
|
|
83
83
|
);
|
|
84
84
|
reportData: [],
|
|
85
85
|
customReportDataKey: null,
|
|
86
86
|
customReportDataFn: null,
|
|
87
87
|
customReportDataForMapFn: null,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { isH5, isWxMinAndWxapp } from '../utils'
|
|
2
1
|
? 'Terminator_New_Mobile_Shop'
|
|
3
2
|
: 'W_jdgwxcx_shop'
|
|
4
3
|
CONFIG_TYPE_NO_LINK = 0,
|
|
5
4
|
CONFIG_TYPE_SKU_LIST = 1,
|
|
6
5
|
CONFIG_TYPE_COUPON_LIST = 2,
|
|
7
6
|
CONFIG_TYPE_CATEGORY = 3,
|
|
8
7
|
CONFIG_TYPE_JSHOP_MOBILE = 4,
|
|
9
8
|
CONFIG_TYPE_JSHOP_PC = 5,
|
|
10
9
|
CONFIG_TYPE_JSHOP_DETAIL = 6,
|
|
11
10
|
CONFIG_TYPE_CUSTOM_LINK = 7,
|
|
12
11
|
CONFIG_TYPE_MEMBER = 9,
|
|
13
12
|
CONFIG_TYPE_SHOP_ACTIVITY = 10,
|
|
14
13
|
CONFIG_TYPE_SHOP_HOME = 12,
|
|
15
14
|
CONFIG_TYPE_ANCHOR_POINT = 13,
|
|
16
15
|
CONFIG_TYPE_SHOPPING_GUIDE = 17,
|
|
17
16
|
CONFIG_TYPE_MINI_PROGRAM = 18,
|
|
18
17
|
CONFIG_TYPE_FINANCE_COUPON = 22,
|
|
19
18
|
CONFIG_TYPE_CATEGORY_PAGE = 25,
|
|
20
19
|
CONFIG_TYPE_SHOP_SEARCH = 31,
|
|
20
|
+
import { isH5, isWxMinAndWxapp } from '../utils'
|
|
21
21
|
? 'Terminator_New_Mobile_Shop'
|
|
22
22
|
: 'W_jdgwxcx_shop'
|
|
23
23
|
CONFIG_TYPE_NO_LINK = 0,
|
|
24
24
|
CONFIG_TYPE_SKU_LIST = 1,
|
|
25
25
|
CONFIG_TYPE_COUPON_LIST = 2,
|
|
26
26
|
CONFIG_TYPE_CATEGORY = 3,
|
|
27
27
|
CONFIG_TYPE_JSHOP_MOBILE = 4,
|
|
28
28
|
CONFIG_TYPE_JSHOP_PC = 5,
|
|
29
29
|
CONFIG_TYPE_JSHOP_DETAIL = 6,
|
|
30
30
|
CONFIG_TYPE_CUSTOM_LINK = 7,
|
|
31
31
|
CONFIG_TYPE_MEMBER = 9,
|
|
32
32
|
CONFIG_TYPE_SHOP_ACTIVITY = 10,
|
|
33
33
|
CONFIG_TYPE_SHOP_HOME = 12,
|
|
34
34
|
CONFIG_TYPE_ANCHOR_POINT = 13,
|
|
35
35
|
CONFIG_TYPE_SHOPPING_GUIDE = 17,
|
|
36
36
|
CONFIG_TYPE_MINI_PROGRAM = 18,
|
|
37
37
|
CONFIG_TYPE_FINANCE_COUPON = 22,
|
|
38
38
|
CONFIG_TYPE_CATEGORY_PAGE = 25,
|
|
39
39
|
CONFIG_TYPE_SHOP_SEARCH = 31,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { domain } from '../../api';
|
|
2
1
|
shop: '/pages/shop/index/index',
|
|
3
2
|
detail: '/pages/gold/item/pages/detail/index',
|
|
4
3
|
jxDetail: '/pages/item/detail/detail',
|
|
5
4
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
6
5
|
h5: '/pages/h5/index',
|
|
7
6
|
jingGouHome: '/pages/index/index',
|
|
8
7
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
9
8
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
10
9
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
11
10
|
jxCouponSearch: '/pages/search_copr/index',
|
|
12
11
|
shopx: '/pages/shopx/pages/index/index',
|
|
13
12
|
shopSearch: '/pages/shopx/pages/searchPanel/index',
|
|
14
13
|
jdLive: '/pages/jd_live/pages/liveRoom/index',
|
|
15
14
|
orderList: '/pages/order/list/index',
|
|
16
15
|
mshop: domain.mshop,
|
|
17
16
|
pages: domain.pages,
|
|
18
17
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
19
18
|
jxCouponSearch: `${domain.jxDomain}/search/coupon.shtml`,
|
|
20
19
|
pcCouponSearch: `${domain.pcSo}/Search`,
|
|
21
20
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
22
21
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
23
22
|
detail: `${domain.mobileDetail}/product/`,
|
|
24
23
|
jxDetail: `${domain.wqs}/item/view.html`,
|
|
25
24
|
tjDetail: `${domain.kpl}/product`,
|
|
26
25
|
pcDetail: `https://item.jd.com/`,
|
|
27
26
|
pcCoupon: `${domain.pcCoupon}/ilink/couponActiveFront/linkKey/front_index.action`,
|
|
28
27
|
mobileHome: `${domain.mobileHome}`,
|
|
29
28
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
30
29
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
31
30
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
32
31
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
33
32
|
myCouponList: `${domain.wqs}/my/coupon/index.shtml`,
|
|
34
33
|
myRedPacketList: `${domain.wqs}/my/redpacket.shtml`,
|
|
35
34
|
memberHome: `${domain.pages}/member/home`,
|
|
36
35
|
memberCard: `${domain.pages}/member/card`,
|
|
37
36
|
memberPoints: `${domain.pages}/member/points`,
|
|
38
37
|
memberBenefit: `${domain.pages}/member/benefit`,
|
|
39
38
|
memberScores: `${domain.pages}/member/scores`,
|
|
40
39
|
memberScoreRule: `${domain.pages}/member/scoreRule`,
|
|
41
40
|
memberProduct: `${domain.pages}/member/product`,
|
|
42
41
|
memberCoupon: `${domain.pages}/member/coupon`,
|
|
43
42
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
44
43
|
shopMemberCardAgreement: `${domain.shopMember}/member/cardAgreement`,
|
|
45
44
|
shopMemberCardInstruction: `${domain.shopMember}/member/cardInstruction`,
|
|
46
45
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
47
46
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
48
47
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
49
48
|
shopSuperMemberRule: `${domain.shopMember}/member/memberWelfareRule`,
|
|
50
49
|
shopMemberEquityRule: `${domain.shopMember}/member/memberEquityRule`,
|
|
51
50
|
shopMemberWelfare: `${domain.shopMember}/member/memberWelfare`,
|
|
52
51
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
53
52
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
54
53
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
55
54
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
56
55
|
shopMemberCouponList: `${domain.shopMember}/couponList/index.html`,
|
|
57
56
|
shopMemberOpenCard: `${domain.shopMember}/openCard/index.html`,
|
|
58
57
|
shopMemberPayDescription: `${domain.shopMember}/brandSubscribeExplain/index.html`,
|
|
59
58
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
60
59
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
61
60
|
mLive: `${domain.lives}/#`,
|
|
62
61
|
shopHome: `${domain.pages}/shop/home`,
|
|
63
62
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
64
63
|
shopSearch: `${domain.pages}/shop/search`,
|
|
65
64
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
66
65
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
67
66
|
shopWares: `${domain.pages}/shop/wares`,
|
|
68
67
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
69
68
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
70
69
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
71
70
|
shopMoreGoods: `${domain.pages}/shop/moreGoods`,
|
|
72
71
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
73
72
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
74
73
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
75
74
|
samCard: `${domain.pages}/shop/samCard`,
|
|
76
75
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
77
76
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
78
77
|
sageAuthorHome: `${domain.ecoDomain}/content/dr_home/index.html`,
|
|
79
78
|
sageShopInteract: `${domain.pages}/app/interact`,
|
|
80
79
|
shopMemberInfoEdit: `${domain.pages}/app/memberInfoEdit`,
|
|
81
80
|
shopCouponPop: `${domain.pages}/app/couponPop`,
|
|
82
81
|
sceneShopping: `${domain.pages}/app/sceneShopping`,
|
|
83
82
|
sceneFeeds: `${domain.pages}/app/sceneFeeds`,
|
|
84
83
|
sceneProducts: `${domain.pages}/app/sceneProducts`,
|
|
85
84
|
cart: `${domain.p}/cart/cart.action`,
|
|
86
85
|
memberPaidCenter: `${domain.pages}/member/paidCenter`,
|
|
87
86
|
memberPaidCard: `${domain.pages}/member/paidCard`,
|
|
88
87
|
memberPaidBind: `${domain.pages}/member/paidBind`,
|
|
89
88
|
orderList: `${domain.trade}/order/orderlist_jdm.shtml`,
|
|
90
89
|
memberSprintList: `${domain.pages}/member/sprintList`,
|
|
90
|
+
import { domain } from '../../api';
|
|
91
91
|
shop: '/pages/shop/index/index',
|
|
92
92
|
detail: '/pages/gold/item/pages/detail/index',
|
|
93
93
|
jxDetail: '/pages/item/detail/detail',
|
|
94
94
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
95
95
|
h5: '/pages/h5/index',
|
|
96
96
|
jingGouHome: '/pages/index/index',
|
|
97
97
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
98
98
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
99
99
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
100
100
|
jxCouponSearch: '/pages/search_copr/index',
|
|
101
101
|
shopx: '/pages/shopx/pages/index/index',
|
|
102
102
|
shopSearch: '/pages/shopx/pages/searchPanel/index',
|
|
103
103
|
jdLive: '/pages/jd_live/pages/liveRoom/index',
|
|
104
104
|
orderList: '/pages/order/list/index',
|
|
105
105
|
mshop: domain.mshop,
|
|
106
106
|
pages: domain.pages,
|
|
107
107
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
108
108
|
jxCouponSearch: `${domain.jxDomain}/search/coupon.shtml`,
|
|
109
109
|
pcCouponSearch: `${domain.pcSo}/Search`,
|
|
110
110
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
111
111
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
112
112
|
detail: `${domain.mobileDetail}/product/`,
|
|
113
113
|
jxDetail: `${domain.wqs}/item/view.html`,
|
|
114
114
|
tjDetail: `${domain.kpl}/product`,
|
|
115
115
|
pcDetail: `https://item.jd.com/`,
|
|
116
116
|
pcCoupon: `${domain.pcCoupon}/ilink/couponActiveFront/linkKey/front_index.action`,
|
|
117
117
|
mobileHome: `${domain.mobileHome}`,
|
|
118
118
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
119
119
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
120
120
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
121
121
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
122
122
|
myCouponList: `${domain.wqs}/my/coupon/index.shtml`,
|
|
123
123
|
myRedPacketList: `${domain.wqs}/my/redpacket.shtml`,
|
|
124
124
|
memberHome: `${domain.pages}/member/home`,
|
|
125
125
|
memberCard: `${domain.pages}/member/card`,
|
|
126
126
|
memberPoints: `${domain.pages}/member/points`,
|
|
127
127
|
memberBenefit: `${domain.pages}/member/benefit`,
|
|
128
128
|
memberScores: `${domain.pages}/member/scores`,
|
|
129
129
|
memberScoreRule: `${domain.pages}/member/scoreRule`,
|
|
130
130
|
memberProduct: `${domain.pages}/member/product`,
|
|
131
131
|
memberCoupon: `${domain.pages}/member/coupon`,
|
|
132
132
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
133
133
|
shopMemberCardAgreement: `${domain.shopMember}/member/cardAgreement`,
|
|
134
134
|
shopMemberCardInstruction: `${domain.shopMember}/member/cardInstruction`,
|
|
135
135
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
136
136
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
137
137
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
138
138
|
shopSuperMemberRule: `${domain.shopMember}/member/memberWelfareRule`,
|
|
139
139
|
shopMemberEquityRule: `${domain.shopMember}/member/memberEquityRule`,
|
|
140
140
|
shopMemberWelfare: `${domain.shopMember}/member/memberWelfare`,
|
|
141
141
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
142
142
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
143
143
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
144
144
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
145
145
|
shopMemberCouponList: `${domain.shopMember}/couponList/index.html`,
|
|
146
146
|
shopMemberOpenCard: `${domain.shopMember}/openCard/index.html`,
|
|
147
147
|
shopMemberPayDescription: `${domain.shopMember}/brandSubscribeExplain/index.html`,
|
|
148
148
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
149
149
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
150
150
|
mLive: `${domain.lives}/#`,
|
|
151
151
|
shopHome: `${domain.pages}/shop/home`,
|
|
152
152
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
153
153
|
shopSearch: `${domain.pages}/shop/search`,
|
|
154
154
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
155
155
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
156
156
|
shopWares: `${domain.pages}/shop/wares`,
|
|
157
157
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
158
158
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
159
159
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
160
160
|
shopMoreGoods: `${domain.pages}/shop/moreGoods`,
|
|
161
161
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
162
162
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
163
163
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
164
164
|
samCard: `${domain.pages}/shop/samCard`,
|
|
165
165
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
166
166
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
167
167
|
sageAuthorHome: `${domain.ecoDomain}/content/dr_home/index.html`,
|
|
168
168
|
sageShopInteract: `${domain.pages}/app/interact`,
|
|
169
169
|
shopMemberInfoEdit: `${domain.pages}/app/memberInfoEdit`,
|
|
170
170
|
shopCouponPop: `${domain.pages}/app/couponPop`,
|
|
171
171
|
sceneShopping: `${domain.pages}/app/sceneShopping`,
|
|
172
172
|
sceneFeeds: `${domain.pages}/app/sceneFeeds`,
|
|
173
173
|
sceneProducts: `${domain.pages}/app/sceneProducts`,
|
|
174
174
|
cart: `${domain.p}/cart/cart.action`,
|
|
175
175
|
memberPaidCenter: `${domain.pages}/member/paidCenter`,
|
|
176
176
|
memberPaidCard: `${domain.pages}/member/paidCard`,
|
|
177
177
|
memberPaidBind: `${domain.pages}/member/paidBind`,
|
|
178
178
|
orderList: `${domain.trade}/order/orderlist_jdm.shtml`,
|
|
179
179
|
memberSprintList: `${domain.pages}/member/sprintList`,
|
|
180
180
|
saleProduct: `${domain.pages}/sale/product`,
|