@conecli/cone-render 0.8.28 → 0.8.30

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.
Files changed (48) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/token/index.h5.ts +1 -1
  5. package/dist/common/token/token.ts +1 -1
  6. package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
  7. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  8. package/dist/components/base/CustomVideo/index.module.scss +3 -2
  9. package/dist/components/base/CustomVideo/index.tsx +1 -1
  10. package/dist/components/base/Dialog/index.module.scss +6 -2
  11. package/dist/components/base/Dialog/index.tsx +1 -1
  12. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  13. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  14. package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
  15. package/dist/components/base/Price/Base/index.module.scss +136 -0
  16. package/dist/components/base/Price/Base/index.tsx +1 -0
  17. package/dist/components/base/Price/Double/index.module.scss +158 -0
  18. package/dist/components/base/Price/Double/index.tsx +1 -0
  19. package/dist/components/base/Price/index.tsx +1 -1
  20. package/dist/components/floorItem.weapp.tsx +1 -1
  21. package/dist/interface/component.ts +1 -1
  22. package/dist/interface/jumpEventReport.ts +1 -1
  23. package/dist/interface/service.ts +1 -1
  24. package/dist/jumpEventReport/base.ts +1 -1
  25. package/dist/jumpEventReport/const.ts +1 -1
  26. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  27. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  28. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  29. package/dist/jumpEventReport/web/report.ts +1 -1
  30. package/dist/jumpEventReport/web.base.ts +1 -1
  31. package/dist/open/api/shopMember.ts +1 -1
  32. package/dist/service/bMallConst.ts +1 -1
  33. package/dist/service/bMallConst.wxapp.ts +1 -0
  34. package/dist/service/http/colorSign.ts +1 -1
  35. package/dist/service/http/colorSign.wxapp.ts +1 -0
  36. package/dist/service/http/const.ts +1 -1
  37. package/dist/service/requestServer.ts +1 -1
  38. package/dist/utils/connectNativeJsBridge.ts +1 -1
  39. package/dist/utils/h5Utils.ts +1 -1
  40. package/dist/utils/index.h5.ts +1 -1
  41. package/dist/utils/index.ts +1 -1
  42. package/dist/utils/index.weapp.ts +1 -1
  43. package/dist/utils/jm-common.js +1 -1
  44. package/dist/utils/memberFormatUtils.js +1 -0
  45. package/dist/utils/priceUtils.js +1 -0
  46. package/dist/utils/utils.ts +1 -1
  47. package/package.json +3 -3
  48. package/dist/components/base/Price/index.module.scss +0 -136
@@ -0,0 +1 @@
1
+ const reg = /([\d|\.]+)/;
2
  const newPrice = (price + '').match(reg);
1
3
  if (Array.isArray(newPrice) && newPrice.length > 0) {
2
4
  return newPrice[0];
3
5
  }
4
6
  return '0';
5
7
  const tmpPrice = parseFloat(price);
6
8
  return tmpPrice.toFixed(2);
7
9
  const tmpPrice = formatPrice(price);
8
10
  const priceArray = tmpPrice.split('.');
9
11
  let decPart;
10
12
  if (tmpPrice.length > 1) {
11
13
  decPart = priceArray[1];
12
14
  } else {
13
15
  decPart = '00';
14
16
  }
15
17
  return {
16
18
  intPart: priceArray[0],
17
19
  decPart
18
20
  }
@@ -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
  if(!imgUrl.includes('360buyimg.com')){
52
52
  imgUrl = '//m.360buyimg.com/cms/' + imgUrl
53
53
  }
54
54
  pin?: string
55
55
  visitkey?: string
56
56
  [key: string]: any
57
57
  }
58
58
  jdpin,
59
59
  pinStatus,
60
60
  visitkey,
61
61
  unionid,
62
62
  skey,
63
63
  __jda,
64
64
  __jdv,
65
65
  __wga,
66
66
  wxapp_type
67
67
  } = cookie
68
68
  const getUserCookieObj = {}
69
69
  jdpin,
70
70
  pinStatus,
71
71
  visitkey,
72
72
  unionid,
73
73
  skey,
74
74
  __jda,
75
75
  __jdv,
76
76
  __wga,
77
77
  wid,
78
78
  wq_skey,
79
79
  wq_uin,
80
80
  wq_auth_token,
81
81
  wxapp_scene,
82
82
  wq_unionid,
83
83
  wxapp_openid,
84
84
  wxapp_version,
85
85
  wxapp_type
86
86
  name = name === 'jdpin' ? 'pin' : name;
87
87
  name === 'pin' && (ret.push(`pt_pin=${encodeURIComponent(value)}`))
88
88
  ret.push(`${name}=${encodeURIComponent(value)}`)
89
89
  getUserCookieObj[name] = value
90
90
  }
91
91
  wqCookie: getUserCookieObj
92
92
  exceptionReportFn
93
93
  exceptionReportFn(
94
94
  `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
95
95
  )
96
96
  const isIsvContainer = (containerId, floorListData, containerListData) => {
97
97
  const objContainer = containerListData.find(item => item.containerId === containerId)
98
98
  (itemUid) => {
99
99
  const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
100
100
  return RemoteLoadFloorList.includes(objectFloor?.floorExtInfo?.moduleFlag)
101
101
  }
102
102
  )?? false
103
103
  isMemberPage,
104
104
  sgmCustomReport
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.28",
3
+ "version": "0.8.30",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"
@@ -78,7 +78,7 @@
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": "^9.1.0",
81
+ "react-intersection-observer": "8.33.1",
82
82
  "react-refresh": "^0.14.0",
83
83
  "sha256": "^0.2.0"
84
84
  },
@@ -86,7 +86,7 @@
86
86
  "@babel/core": "^7.8.0",
87
87
  "@babel/runtime": "^7.17.9",
88
88
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
89
- "@swc/core": "^1.2.242",
89
+ "@swc/core": "1.2.242",
90
90
  "@swc/register": "^0.1.10",
91
91
  "@types/react": "^18.0.17",
92
92
  "@types/webpack-env": "^1.13.6",
@@ -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
- }