@conecli/cone-render 0.8.20 → 0.8.21-shop-beta.3
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/api/index.ts +1 -1
- 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/common/isvStorage/index.h5.ts +1 -0
- package/dist/common/isvStorage/index.ts +1 -0
- package/dist/common/token/const.ts +1 -0
- package/dist/common/token/index.h5.ts +1 -0
- package/dist/common/token/index.ts +1 -0
- package/dist/common/token/token.jd.ts +1 -0
- package/dist/common/token/token.ts +1 -0
- package/dist/common/token/token.wxapp.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/const.ts +1 -0
- package/dist/components/base/CustomVideo/index.module.scss +40 -64
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +6 -2
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/const.ts +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +18 -4
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.module.scss +20 -9
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +7 -1
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
- package/dist/components/base/Price/Base/index.module.scss +136 -0
- package/dist/components/base/Price/Base/index.tsx +1 -0
- package/dist/components/base/Price/Double/index.module.scss +158 -0
- package/dist/components/base/Price/Double/index.tsx +1 -0
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -0
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -0
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.jdb.ts +1 -0
- package/dist/jumpEventReport/web.jdjch.ts +1 -0
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +10 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/index.ts +1 -1
- package/dist/open/api/jump/business.ts +1 -0
- package/dist/open/api/jump/index.ts +1 -0
- package/dist/open/api/jump/minPath.ts +1 -0
- package/dist/open/api/jump/side.ts +1 -0
- package/dist/open/api/jump/webUrl.ts +1 -0
- package/dist/open/api/jump copy.ts +1 -0
- package/dist/open/api/moduleUtil.ts +1 -1
- package/dist/open/api/request.ts +1 -0
- package/dist/open/api/shopMember.ts +1 -0
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/userToken.ts +1 -0
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/service/bMallConst.ts +1 -0
- package/dist/service/bMallConst.weapp.ts +1 -0
- package/dist/service/fetchGateway.ts +1 -0
- package/dist/service/fetchJsonp.ts +1 -0
- package/dist/service/http/colorSign.ts +1 -0
- package/dist/service/http/colorSign.weapp.ts +1 -0
- package/dist/service/http/const.ts +1 -0
- package/dist/service/http/http.ts +1 -0
- package/dist/service/http/httpInterceptors.jd.ts +1 -0
- package/dist/service/http/httpInterceptors.ts +1 -0
- package/dist/service/http/index.ts +1 -0
- package/dist/service/requestServer.ts +1 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/intersectionObserver.ts +1 -1
- package/dist/utils/jm-common.js +1 -1
- package/dist/utils/memberFormatUtils.js +1 -0
- package/dist/utils/priceUtils.js +1 -0
- package/dist/utils/ready.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +9 -5
- package/dist/components/base/Price/index.module.scss +0 -136
- package/dist/open/api/jump.ts +0 -1
package/dist/utils/utils.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
pin?: string
|
|
3
2
|
visitkey?: string
|
|
4
3
|
[key: string]: any
|
|
5
4
|
}
|
|
6
5
|
jdpin,
|
|
7
6
|
pinStatus,
|
|
8
7
|
visitkey,
|
|
9
8
|
unionid,
|
|
10
9
|
skey,
|
|
11
10
|
__jda,
|
|
12
11
|
__jdv,
|
|
13
12
|
__wga,
|
|
14
13
|
wxapp_type
|
|
15
14
|
} = cookie
|
|
16
15
|
const getUserCookieObj = {}
|
|
17
16
|
jdpin,
|
|
18
17
|
pinStatus,
|
|
19
18
|
visitkey,
|
|
20
19
|
unionid,
|
|
21
20
|
skey,
|
|
22
21
|
__jda,
|
|
23
22
|
__jdv,
|
|
24
23
|
__wga,
|
|
25
24
|
wid,
|
|
26
25
|
wq_skey,
|
|
27
26
|
wq_uin,
|
|
28
27
|
wq_auth_token,
|
|
29
28
|
wxapp_scene,
|
|
30
29
|
wq_unionid,
|
|
31
30
|
wxapp_openid,
|
|
32
31
|
wxapp_version,
|
|
33
32
|
wxapp_type
|
|
34
33
|
name = name === 'jdpin' ? 'pin' : name;
|
|
35
34
|
name === 'pin' && (ret.push(`pt_pin=${encodeURIComponent(value)}`))
|
|
36
35
|
ret.push(`${name}=${encodeURIComponent(value)}`)
|
|
37
36
|
getUserCookieObj[name] = value
|
|
38
37
|
}
|
|
39
38
|
wqCookie: getUserCookieObj
|
|
40
39
|
exceptionReportFn
|
|
41
40
|
exceptionReportFn(
|
|
42
41
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
43
42
|
)
|
|
44
43
|
const isIsvContainer = (containerId, floorListData, containerListData) => {
|
|
45
44
|
const objContainer = containerListData.find(item => item.containerId === containerId)
|
|
46
45
|
(itemUid) => {
|
|
47
46
|
const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
|
|
48
47
|
return RemoteLoadFloorList.includes(objectFloor?.floorExtInfo?.moduleFlag)
|
|
49
48
|
}
|
|
50
49
|
)?? false
|
|
50
|
+
import Taro from '@tarojs/taro'
|
|
51
51
|
const getValue = `${obj[key]}`.replace(/undefined/,'').replace(/null/,'')
|
|
52
52
|
paramStr += `${index === 0 ? '' : '&'}${key}=${encodeURIComponent(getValue)}`
|
|
53
53
|
if(!imgUrl.includes('360buyimg.com')){
|
|
54
54
|
imgUrl = '//m.360buyimg.com/cms/' + imgUrl
|
|
55
55
|
}
|
|
56
56
|
if(quality != 100) imgUrl += /\.png/.test(imgUrl) ? '.dpg' : `!q${quality}`
|
|
57
57
|
pin?: string
|
|
58
58
|
visitkey?: string
|
|
59
59
|
[key: string]: any
|
|
60
60
|
}
|
|
61
61
|
jdpin,
|
|
62
62
|
pinStatus,
|
|
63
63
|
visitkey,
|
|
64
64
|
unionid,
|
|
65
65
|
skey,
|
|
66
66
|
__jda,
|
|
67
67
|
__jdv,
|
|
68
68
|
__wga,
|
|
69
69
|
wxapp_type,
|
|
70
70
|
appType
|
|
71
71
|
} = cookie
|
|
72
72
|
const getUserCookieObj = {}
|
|
73
73
|
jdpin,
|
|
74
74
|
pinStatus,
|
|
75
75
|
visitkey,
|
|
76
76
|
unionid,
|
|
77
77
|
skey,
|
|
78
78
|
__jda,
|
|
79
79
|
__jdv,
|
|
80
80
|
__wga,
|
|
81
81
|
wid,
|
|
82
82
|
wq_skey,
|
|
83
83
|
wq_uin,
|
|
84
84
|
wq_auth_token,
|
|
85
85
|
wxapp_scene,
|
|
86
86
|
wq_unionid,
|
|
87
87
|
wxapp_openid,
|
|
88
88
|
wxapp_version,
|
|
89
89
|
wxapp_type,
|
|
90
90
|
appType
|
|
91
91
|
name = name === 'jdpin' ? 'pin' : name;
|
|
92
92
|
name === 'pin' && (ret.push(`pt_pin=${encodeURIComponent(value)}`))
|
|
93
93
|
ret.push(`${name}=${encodeURIComponent(value)}`)
|
|
94
94
|
getUserCookieObj[name] = value
|
|
95
95
|
}
|
|
96
96
|
wqCookie: getUserCookieObj
|
|
97
97
|
exceptionReportFn
|
|
98
98
|
const isIsvContainer = (containerId, floorListData, containerListData) => {
|
|
99
99
|
const objContainer = containerListData.find(item => item.containerId === containerId)
|
|
100
100
|
(itemUid) => {
|
|
101
101
|
const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
|
|
102
102
|
return RemoteLoadFloorList.includes(objectFloor?.floorExtInfo?.moduleFlag)
|
|
103
103
|
}
|
|
104
104
|
)?? false
|
|
105
105
|
isChartH5,
|
|
106
106
|
isH5AndJdShopViewH5Scroll,
|
|
107
107
|
isMemberPage,
|
|
108
108
|
sgmCustomReport
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@conecli/cone-render",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.21-shop-beta.3",
|
|
4
4
|
"private": false,
|
|
5
5
|
"files": [
|
|
6
6
|
"dist/"
|
|
@@ -78,14 +78,15 @@
|
|
|
78
78
|
"react": "^18.2.0",
|
|
79
79
|
"react-content-loader": "^6.2.0",
|
|
80
80
|
"react-dom": "^18.2.0",
|
|
81
|
-
"react-intersection-observer": "
|
|
82
|
-
"react-refresh": "^0.14.0"
|
|
81
|
+
"react-intersection-observer": "8.33.1",
|
|
82
|
+
"react-refresh": "^0.14.0",
|
|
83
|
+
"sha256": "^0.2.0"
|
|
83
84
|
},
|
|
84
85
|
"devDependencies": {
|
|
85
86
|
"@babel/core": "^7.8.0",
|
|
86
|
-
"@babel/runtime": "
|
|
87
|
+
"@babel/runtime": "7.23.7",
|
|
87
88
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
|
|
88
|
-
"@swc/core": "
|
|
89
|
+
"@swc/core": "1.2.242",
|
|
89
90
|
"@swc/register": "^0.1.10",
|
|
90
91
|
"@types/react": "^18.0.17",
|
|
91
92
|
"@types/webpack-env": "^1.13.6",
|
|
@@ -112,5 +113,8 @@
|
|
|
112
113
|
"terser-webpack-plugin": "^5.3.6",
|
|
113
114
|
"typescript": "^4.1.0",
|
|
114
115
|
"webpack": "5.69.0"
|
|
116
|
+
},
|
|
117
|
+
"resolutions": {
|
|
118
|
+
"@babel/runtime": "7.23.7"
|
|
115
119
|
}
|
|
116
120
|
}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
:global {
|
|
3
|
-
.d-mini-price {
|
|
4
|
-
position: relative;
|
|
5
|
-
color: #f23030;
|
|
6
|
-
display: inline-block;
|
|
7
|
-
font-family: 'JDZhengHT-Regular';
|
|
8
|
-
|
|
9
|
-
&-sym {
|
|
10
|
-
font-size: 22px;
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.int-txt {
|
|
14
|
-
font-size: 36px;
|
|
15
|
-
}
|
|
16
|
-
.off-shelf {
|
|
17
|
-
color: rgb(162, 164, 172);
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.dec-txt {
|
|
21
|
-
font-size: 22px;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.sym-sup {
|
|
25
|
-
vertical-align: top;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.dec-sup {
|
|
29
|
-
vertical-align: top;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
&.del {
|
|
33
|
-
.sym-sub,
|
|
34
|
-
.int-txt,
|
|
35
|
-
.dec-txt {
|
|
36
|
-
font-size: 22px;
|
|
37
|
-
color: #2e2e2e;
|
|
38
|
-
text-decoration: line-through;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
&.d-plus-price,
|
|
42
|
-
&.d-sams-price,
|
|
43
|
-
&.d-sfp-price,
|
|
44
|
-
&.d-member-price {
|
|
45
|
-
&:after {
|
|
46
|
-
content: '';
|
|
47
|
-
display: inline-block;
|
|
48
|
-
margin-left: 5px;
|
|
49
|
-
width: 58px;
|
|
50
|
-
height: 20px;
|
|
51
|
-
background-repeat: no-repeat;
|
|
52
|
-
background-size: contain;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
&.d-price-label{
|
|
56
|
-
&:after{
|
|
57
|
-
// 价格后面追加显示文案例如“到手价”的默认样式
|
|
58
|
-
content: attr(data-after);
|
|
59
|
-
font-size: 20px;
|
|
60
|
-
color: #FFFFFF;
|
|
61
|
-
margin-left: 8px;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
&.d-plus-price {
|
|
65
|
-
.int-txt,
|
|
66
|
-
.sym-sub,
|
|
67
|
-
.dec-txt {
|
|
68
|
-
font-size: 24px;
|
|
69
|
-
color: #232326;
|
|
70
|
-
}
|
|
71
|
-
&:after {
|
|
72
|
-
background-image: url('../../../assets/plus-icon.png');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
&.d-sams-price {
|
|
76
|
-
.int-txt,
|
|
77
|
-
.sym-sub,
|
|
78
|
-
.dec-txt {
|
|
79
|
-
font-size: 24px;
|
|
80
|
-
color: #1a68bc;
|
|
81
|
-
}
|
|
82
|
-
&:after {
|
|
83
|
-
background-image: url('../../../assets/jsbundles_jdreactshopactivitytab_images_samprice.png');
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
&.d-sfp-price {
|
|
87
|
-
.int-txt,
|
|
88
|
-
.sym-sub,
|
|
89
|
-
.dec-txt {
|
|
90
|
-
font-size: 24px;
|
|
91
|
-
color: #714aff;
|
|
92
|
-
}
|
|
93
|
-
&:after {
|
|
94
|
-
background-image: url('../../../assets/fans_price@2x.png');
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
&.d-member-price {
|
|
98
|
-
.int-txt,
|
|
99
|
-
.sym-sub,
|
|
100
|
-
.dec-txt {
|
|
101
|
-
font-size: 24px;
|
|
102
|
-
color: #f3c416;
|
|
103
|
-
}
|
|
104
|
-
// 默认v1会员
|
|
105
|
-
&:after {
|
|
106
|
-
background-image: url('https://m.360buyimg.com/cc/jfs/t1/132940/18/11320/4920/5f770610E07069747/92f14ae503ca8b7b.png');
|
|
107
|
-
}
|
|
108
|
-
// v1 会员
|
|
109
|
-
&.d-member-price-tab_214 {
|
|
110
|
-
&:after {
|
|
111
|
-
background-image: url('https://m.360buyimg.com/cc/jfs/t1/132940/18/11320/4920/5f770610E07069747/92f14ae503ca8b7b.png');
|
|
112
|
-
}
|
|
113
|
-
}
|
|
114
|
-
&.d-member-price-tab_215 {
|
|
115
|
-
&:after {
|
|
116
|
-
background-image: url('https://m.360buyimg.com/cc/jfs/t1/135428/5/11263/5100/5f770623E87b73485/a3624a844f220489.png');
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
&.d-member-price-tab_216 {
|
|
120
|
-
&:after {
|
|
121
|
-
background-image: url('https://m.360buyimg.com/cc/jfs/t1/142590/8/9888/5220/5f770639E992a10a9/1decbf1689dd500c.png');
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
&.d-member-price-tab_217 {
|
|
125
|
-
&:after {
|
|
126
|
-
background-image: url('https://m.360buyimg.com/cc/jfs/t1/128048/23/13979/5063/5f77064aE56b826d7/5e07702ee673629d.png');
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
&.d-member-price-tab_218 {
|
|
130
|
-
&:after {
|
|
131
|
-
background-image: url('https://m.360buyimg.com/cc/jfs/t1/117816/19/19334/5167/5f77065eEbd592fb5/75091c85ca7d0895.png');
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
package/dist/open/api/jump.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|