@conecli/cone-render 0.8.20-beta.0 → 0.8.20-beta.2

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 (160) hide show
  1. package/README.md +7 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/assets/icon_blue_info.svg +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/environmentType.ts +1 -0
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.ts +1 -0
  11. package/dist/common/jssdk.ts +1 -0
  12. package/dist/common/pageType.ts +1 -0
  13. package/dist/common/sgmCustomCode.ts +1 -0
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/token/token.ts +1 -1
  17. package/dist/common/wxappApi.jd.ts +1 -0
  18. package/dist/common/wxappApi.ts +1 -1
  19. package/dist/components/ErrorBoundary.tsx +1 -1
  20. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  21. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  22. package/dist/components/base/CountDown/index.module.scss +49 -44
  23. package/dist/components/base/CountDown/index.tsx +1 -1
  24. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  25. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  26. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  27. package/dist/components/base/CustomVideo/common.ts +1 -0
  28. package/dist/components/base/CustomVideo/index.tsx +1 -1
  29. package/dist/components/base/Dialog/index.module.scss +16 -0
  30. package/dist/components/base/Dialog/index.tsx +1 -1
  31. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  32. package/dist/components/base/ExposureSmart/const.ts +1 -0
  33. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  34. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  35. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  36. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  37. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  38. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  39. package/dist/components/base/InViewRender/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  41. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  42. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  43. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  44. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  45. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  46. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  47. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  48. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  49. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  50. package/dist/components/base/NetworkDataError/const.ts +1 -1
  51. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  52. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  53. package/dist/components/base/Price/Base/index.module.scss +12 -0
  54. package/dist/components/base/Price/Base/index.tsx +1 -1
  55. package/dist/components/base/Price/Double/index.module.scss +32 -0
  56. package/dist/components/base/Price/Double/index.tsx +1 -1
  57. package/dist/components/base/Price/index.tsx +1 -1
  58. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  59. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  60. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  61. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  62. package/dist/components/base/Skeleton/index.tsx +1 -1
  63. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  64. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  65. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  66. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  67. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  68. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  69. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  70. package/dist/components/floorItem.jd.tsx +1 -1
  71. package/dist/components/floorItem.tsx +1 -1
  72. package/dist/components/floorItem.weapp.tsx +1 -1
  73. package/dist/components/isv/Floor/index.tsx +1 -1
  74. package/dist/components/remoteFloorItem.tsx +1 -0
  75. package/dist/interface/common.ts +1 -1
  76. package/dist/interface/component.ts +1 -1
  77. package/dist/interface/jumpEventReport.ts +1 -1
  78. package/dist/interface/service.ts +1 -1
  79. package/dist/interface/utils.ts +1 -1
  80. package/dist/jumpEventReport/base.ts +1 -1
  81. package/dist/jumpEventReport/const.ts +1 -1
  82. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  83. package/dist/jumpEventReport/index.h5.ts +1 -1
  84. package/dist/jumpEventReport/index.jd.ts +1 -1
  85. package/dist/jumpEventReport/index.ts +1 -1
  86. package/dist/jumpEventReport/index.weapp.ts +1 -1
  87. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  88. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  89. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  90. package/dist/jumpEventReport/web/report.ts +1 -1
  91. package/dist/jumpEventReport/web.base.ts +1 -1
  92. package/dist/jumpEventReport/web.jd.ts +1 -1
  93. package/dist/jumpEventReport/web.jdb.ts +1 -1
  94. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  95. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  96. package/dist/jumpEventReport/web.pc.ts +1 -0
  97. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  98. package/dist/jumpEventReport/web.tjm.ts +1 -0
  99. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  100. package/dist/language/en_US.json +231 -0
  101. package/dist/language/zh_CN.json +231 -0
  102. package/dist/language/zh_HK.json +231 -0
  103. package/dist/libs/taroAppReport.js +2 -2
  104. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  105. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  106. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  107. package/dist/open/api/device.ts +1 -1
  108. package/dist/open/api/environment.ts +1 -1
  109. package/dist/open/api/index.ts +1 -1
  110. package/dist/open/api/jump copy.ts +1 -1
  111. package/dist/open/api/request.ts +1 -1
  112. package/dist/open/api/shopMember.ts +1 -1
  113. package/dist/open/api/track.ts +1 -1
  114. package/dist/open/api/util.ts +1 -1
  115. package/dist/open/components/index.ts +1 -1
  116. package/dist/sass/app.h5.scss +294 -212
  117. package/dist/sass/base.scss +195 -137
  118. package/dist/service/bMallConst.ts +1 -1
  119. package/dist/service/fetchGateway.ts +1 -1
  120. package/dist/service/fetchGateway.weapp.ts +1 -0
  121. package/dist/service/http/colorSign.ts +1 -1
  122. package/dist/service/http/const.ts +1 -1
  123. package/dist/service/http/h5Http.ts +1 -0
  124. package/dist/service/http/index.h5.ts +1 -0
  125. package/dist/service/requestServer.h5.ts +1 -0
  126. package/dist/service/requestServer.ts +1 -1
  127. package/dist/service/requestServer.weapp.ts +1 -0
  128. package/dist/utils/connectNativeJsBridge.ts +1 -1
  129. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  130. package/dist/utils/draExceptionAndProfile.ts +1 -1
  131. package/dist/utils/h5Utils.ts +1 -1
  132. package/dist/utils/index.h5.ts +1 -1
  133. package/dist/utils/index.ts +1 -1
  134. package/dist/utils/index.weapp.ts +1 -1
  135. package/dist/utils/intersectionObserver.ts +1 -1
  136. package/dist/utils/jm-common.js +1 -1
  137. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  138. package/dist/utils/jumpExtMapUtil.ts +1 -0
  139. package/dist/utils/sColor.js +1 -0
  140. package/dist/utils/sgmCodeUtils.ts +1 -0
  141. package/dist/utils/taroRenderUtil.ts +1 -0
  142. package/dist/utils/utils.ts +1 -1
  143. package/dist/wxapp/api/helper.js +1 -0
  144. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  145. package/dist/wxapp/common/user_info.js +1 -1
  146. package/dist/wxapp/components/launch-app/index.js +1 -0
  147. package/dist/wxapp/components/launch-app/index.json +5 -0
  148. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  149. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  150. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  151. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  152. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  153. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  154. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  155. package/package.json +145 -115
  156. package/dist/components/base/Skeleton/old.tsx +0 -1
  157. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  158. package/dist/utils/memberFormatUtils.js +0 -1
  159. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  160. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -1 +1 @@
1
- import {
2
1
  isMemberPage,
3
2
  sgmCustomReport
4
3
  isH5AndJingGouMini,
5
4
  urlCookie,
6
5
  isMemberPage,
7
6
  sgmCustomReport
7
+ import {
8
8
  isJdApp,
9
9
  isWxApp,
10
10
  isIosDevice,
11
11
  isAndroidDevice,
12
12
  isJdAndIosDevice,
13
13
  isJdAndAndroidDevice,
14
14
  isWxMin,
15
15
  isMin,
16
16
  isJdMinAndHarmony,
17
17
  isWxMinAndWxapp,
18
18
  isJdMin,
19
19
  isH5,
20
20
  isH5AndJdShopView,
21
21
  isChartH5,
22
22
  isH5AndJdShopViewNativeScroll,
23
23
  isH5AndJdShopViewH5Scroll,
24
24
  isH5AndJdShopH5CustomScrollView,
25
25
  isWxMiniH5View,
26
26
  sliceArrToChunkList,
27
27
  dealAddress,
28
28
  objectToUrlEncode,
29
29
  setLowSmallPicUrl,
30
30
  parseQueryUrlString,
31
31
  countStringify,
32
32
  setTaroStorage,
33
33
  getTaroStorageKeyValue,
34
34
  removeTaroStorageKey,
35
35
  clearTaroStorageKey,
36
36
  getQualityImage,
37
37
  getSystemInfos,
38
38
  getWxAppCookieStr,
39
39
  pxTransformFromData,
40
40
  dealShopContentData,
41
41
  dateFormat,
42
42
  throttle,
43
43
  lodashThrottle,
44
44
  debounce,
45
45
  addHttps,
46
46
  showSuccessToast,
47
47
  showFailToast,
48
48
  showNormalToast,
49
49
  showShopLoading,
50
50
  hideShopLoading,
51
51
  getAppChannelType,
52
52
  formatTabActiveMenuType,
53
53
  getAvifSupport,
54
54
  getWebpSupport,
55
55
  filterUrlQueryData,
56
56
  isMemberPage,
57
57
  sgmCustomReport,
58
58
  draCustomReport,
59
59
  remoteCustomReport,
60
60
  draInterfaceCustomReport,
61
61
  draBusinessCustomReport,
62
62
  draBusinessCustomLogReport,
63
63
  isOpenJdAppUrl,
64
64
  jdOpenAppParams,
65
65
  createJdOpenAppUrl,
66
66
  isEmpty,
67
67
  getJdAppReportPageSource,
68
68
  isAppClassifyPage,
69
69
  isPc,
70
70
  ipLoc_djd,
71
71
  dealJdOpenAppData,
72
72
  jdAppVersionCompare,
73
73
  dealNativePixelToCssPixel,
74
74
  isAppStowShop,
75
75
  isImageOptimizeEnable,
76
76
  isIpadDevice,
77
77
  getBorderStyle,
78
78
  isLanguageForEn,
79
79
  sColor,
80
80
  draInterfaceDSMCustomReport,
81
81
  isTabletDevice,
82
82
  isLanguageForHk,
83
83
  languageNowType,
84
84
  console.warn('暂未实现', code);
85
85
  console.warn('暂未实现', code);
86
86
  console.warn('暂未实现');
87
87
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
88
88
  return false;
89
89
  isJdApp,
90
90
  isWxApp,
91
91
  isIosDevice,
92
92
  isAndroidDevice,
93
93
  isHarmonyDevice,
94
94
  isJdAndIosDevice,
95
95
  isJdAndAndroidDevice,
96
96
  isJdAndHarmonyDevice,
97
97
  isJdAndroidX5Core,
98
98
  isWxMin,
99
99
  isMin,
100
100
  isJdMinAndHarmony,
101
101
  isWxMinAndWxapp,
102
102
  isJdMin,
103
103
  isH5,
104
104
  isH5AndJdShopView,
105
105
  isChartH5,
106
106
  isH5AndJdShopViewNativeScroll,
107
107
  isH5AndJdShopViewH5Scroll,
108
108
  isH5AndJdShopH5CustomScrollView,
109
109
  isH5AndJingGouMini,
110
110
  isWxMiniH5View,
111
111
  urlCookie,
112
112
  sliceArrToChunkList,
113
113
  dealAddress,
114
114
  objectToUrlEncode,
115
115
  parseQueryUrlString,
116
116
  setLowSmallPicUrl,
117
117
  countStringify,
118
118
  setTaroStorage,
119
119
  getTaroStorageKeyValue,
120
120
  removeTaroStorageKey,
121
121
  clearTaroStorageKey,
122
122
  getQualityImage,
123
123
  getSystemInfos,
124
124
  getWxAppCookieStr,
125
125
  pxTransformFromData,
126
126
  dealShopContentData,
127
127
  dateFormat,
128
128
  throttle,
129
129
  lodashThrottle,
130
130
  debounce,
131
131
  addHttps,
132
132
  showSuccessToast,
133
133
  showFailToast,
134
134
  showNormalToast,
135
135
  showShopLoading,
136
136
  hideShopLoading,
137
137
  stopNativeScrollEvent,
138
138
  getAppChannelType,
139
139
  formatTabActiveMenuType,
140
140
  getAvifSupport,
141
141
  getWebpSupport,
142
142
  filterUrlQueryData,
143
143
  isMemberPage,
144
144
  getFloorDataToDataDefines,
145
145
  sgmCustomReport,
146
146
  draCustomReport,
147
147
  remoteCustomReport,
148
148
  draInterfaceCustomReport,
149
149
  draBusinessCustomReport,
150
150
  draBusinessCustomLogReport,
151
151
  isOpenJdAppUrl,
152
152
  jdOpenAppParams,
153
153
  createJdOpenAppUrl,
154
154
  isEmpty,
155
155
  isAppClassifyPage,
156
156
  isAppHomeForMarketPage,
157
157
  getJdAppReportPageSource,
158
158
  isImageOptimizeEnable,
159
159
  isPc,
160
160
  ipLoc_djd,
161
161
  isTjM,
162
162
  isTjJxM,
163
163
  isTjScence,
164
164
  isH5AdnJxMini,
165
165
  isTJApp,
166
166
  isH5AdnHaoWuJie,
167
167
  tjChannel,
168
168
  dealJdOpenAppData,
169
169
  jdAppVersionCompare,
170
170
  dealNativePixelToCssPixel,
171
171
  isAppStowShop,
172
172
  getSgmCustomCode,
173
173
  handleSgmCodeTaroVersion,
174
174
  isInGrayscale,
175
175
  isIpadDevice,
176
176
  getBorderStyle,
177
177
  isLanguageForEn,
178
178
  sColor,
179
179
  draInterfaceDSMCustomReport,
180
180
  isTabletDevice,
181
181
  updateContainerWidth,
182
182
  isInJdShopView,
183
183
  isDongWebView,
184
184
  isLanguageForHk,
185
185
  languageNowType,
@@ -1 +1 @@
1
- import {
2
1
  sgmCustomReport
3
2
  isH5AndJingGouMini,
4
3
  urlCookie,
5
4
  sgmCustomReport
5
+ import {
6
6
  isJdApp,
7
7
  isWxApp,
8
8
  isIosDevice,
9
9
  isAndroidDevice,
10
10
  isJdAndIosDevice,
11
11
  isJdAndAndroidDevice,
12
12
  isWxMin,
13
13
  isWxMinAndWxapp,
14
14
  isJdMin,
15
15
  isJdMinAndHarmony,
16
16
  isH5,
17
17
  isH5AndJdShopView,
18
18
  isChartH5,
19
19
  isH5AndJdShopViewNativeScroll,
20
20
  isH5AndJdShopViewH5Scroll,
21
21
  isH5AndJdShopH5CustomScrollView,
22
22
  isWxMiniH5View,
23
23
  sliceArrToChunkList,
24
24
  dealAddress,
25
25
  objectToUrlEncode,
26
26
  parseQueryUrlString,
27
27
  setLowSmallPicUrl,
28
28
  setTaroStorage,
29
29
  getTaroStorageKeyValue,
30
30
  removeTaroStorageKey,
31
31
  clearTaroStorageKey,
32
32
  getQualityImage,
33
33
  countStringify,
34
34
  getSystemInfos,
35
35
  getWxAppCookieStr,
36
36
  pxTransformFromData,
37
37
  dealShopContentData,
38
38
  dateFormat,
39
39
  throttle,
40
40
  lodashThrottle,
41
41
  debounce,
42
42
  addHttps,
43
43
  showSuccessToast,
44
44
  showFailToast,
45
45
  showNormalToast,
46
46
  showShopLoading,
47
47
  hideShopLoading,
48
48
  getAppChannelType,
49
49
  formatTabActiveMenuType,
50
50
  getAvifSupport,
51
51
  getWebpSupport,
52
52
  filterUrlQueryData,
53
53
  sgmCustomReport,
54
54
  draCustomReport,
55
55
  remoteCustomReport,
56
56
  draInterfaceCustomReport,
57
57
  draBusinessCustomReport,
58
58
  draBusinessCustomLogReport,
59
59
  isOpenJdAppUrl,
60
60
  jdOpenAppParams,
61
61
  createJdOpenAppUrl,
62
62
  isEmpty,
63
63
  getJdAppReportPageSource,
64
64
  isMemberPage,
65
65
  isAppClassifyPage,
66
66
  dealJdOpenAppData,
67
67
  jdAppVersionCompare,
68
68
  dealNativePixelToCssPixel,
69
69
  isImageOptimizeEnable,
70
70
  isIpadDevice,
71
71
  getBorderStyle,
72
72
  isLanguageForEn,
73
73
  sColor,
74
74
  draInterfaceDSMCustomReport,
75
75
  isTabletDevice,
76
76
  isLanguageForHk,
77
77
  languageNowType,
78
78
  console.warn('暂未实现', code);
79
79
  console.warn('暂未实现', code);
80
80
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
81
81
  return false;
82
82
  console.warn('暂未实现');
83
83
  isJdApp,
84
84
  isWxApp,
85
85
  isIosDevice,
86
86
  isAndroidDevice,
87
87
  isHarmonyDevice,
88
88
  isJdAndIosDevice,
89
89
  isJdAndAndroidDevice,
90
90
  isJdAndHarmonyDevice,
91
91
  isJdAndroidX5Core,
92
92
  isWxMin,
93
93
  isWxMinAndWxapp,
94
94
  isJdMin,
95
95
  isMin,
96
96
  isJdMinAndHarmony,
97
97
  isH5,
98
98
  isH5AndJdShopView,
99
99
  isChartH5,
100
100
  isH5AndJdShopViewNativeScroll,
101
101
  isH5AndJdShopViewH5Scroll,
102
102
  isH5AndJdShopH5CustomScrollView,
103
103
  isH5AndJingGouMini,
104
104
  isWxMiniH5View,
105
105
  urlCookie,
106
106
  sliceArrToChunkList,
107
107
  dealAddress,
108
108
  objectToUrlEncode,
109
109
  parseQueryUrlString,
110
110
  setLowSmallPicUrl,
111
111
  setTaroStorage,
112
112
  getTaroStorageKeyValue,
113
113
  removeTaroStorageKey,
114
114
  clearTaroStorageKey,
115
115
  getQualityImage,
116
116
  countStringify,
117
117
  getSystemInfos,
118
118
  getWxAppCookieStr,
119
119
  pxTransformFromData,
120
120
  dealShopContentData,
121
121
  dateFormat,
122
122
  throttle,
123
123
  lodashThrottle,
124
124
  debounce,
125
125
  addHttps,
126
126
  showSuccessToast,
127
127
  showFailToast,
128
128
  showNormalToast,
129
129
  showShopLoading,
130
130
  hideShopLoading,
131
131
  stopNativeScrollEvent,
132
132
  getAppChannelType,
133
133
  formatTabActiveMenuType,
134
134
  getAvifSupport,
135
135
  getWebpSupport,
136
136
  filterUrlQueryData,
137
137
  getFloorDataToDataDefines,
138
138
  sgmCustomReport,
139
139
  draCustomReport,
140
140
  remoteCustomReport,
141
141
  draInterfaceCustomReport,
142
142
  draBusinessCustomReport,
143
143
  draBusinessCustomLogReport,
144
144
  isOpenJdAppUrl,
145
145
  jdOpenAppParams,
146
146
  createJdOpenAppUrl,
147
147
  isEmpty,
148
148
  getJdAppReportPageSource,
149
149
  isMemberPage,
150
150
  isAppClassifyPage,
151
151
  isAppHomeForMarketPage,
152
152
  isImageOptimizeEnable,
153
153
  isPc,
154
154
  ipLoc_djd,
155
155
  isTjM,
156
156
  isTjJxM,
157
157
  isTjScence,
158
158
  isH5AdnJxMini,
159
159
  isTJApp,
160
160
  isH5AdnHaoWuJie,
161
161
  tjChannel,
162
162
  dealJdOpenAppData,
163
163
  jdAppVersionCompare,
164
164
  dealNativePixelToCssPixel,
165
165
  getSgmCustomCode,
166
166
  handleSgmCodeTaroVersion,
167
167
  isInGrayscale,
168
168
  isIpadDevice,
169
169
  getBorderStyle,
170
170
  isLanguageForEn,
171
171
  sColor,
172
172
  draInterfaceDSMCustomReport,
173
173
  isTabletDevice,
174
174
  updateContainerWidth,
175
175
  isInJdShopView,
176
176
  isDongWebView,
177
177
  isLanguageForHk,
178
178
  languageNowType,
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
@@ -1 +1 @@
1
- var splitOnFirst = function splitOnFirst(string, separator) {
2
1
  return Object.prototype.toString.call(obj);
3
2
  return typeof obj === 'function';
4
3
  return '[object Object]' === getType(obj);
5
4
  return '[object Array]' == getType(obj);
6
5
  return '[object Undefined]' === getType(obj);
7
6
  return '[object Null]' == getType(obj);
8
7
  return typeof obj === 'string';
9
8
  return typeof obj === 'boolean';
10
9
  return '[object Number]' === getType(num);
11
10
  ua = ua || navigator.userAgent;
12
11
  if (name === 'wx') return (/micromessenger/i.test(ua)
13
12
  );
14
13
  if (name === 'qq') return (/qq\//i.test(ua)
15
14
  );
16
15
  if (name === 'weibo') return (/weibo/i.test(ua)
17
16
  );
18
17
  if (name === 'jd') return (/^jdapp/i.test(ua)
19
18
  );
20
19
  if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
21
20
  );
22
21
  if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
23
22
  if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
24
23
  return false;
25
24
  ua = ua || navigator.userAgent;
26
25
  return (/android/i.test(ua) && !isIOS()
27
26
  );
28
27
  ua = ua || navigator.userAgent;
29
28
  return (/ip(hone|od)|ipad/i.test(ua)
30
29
  );
31
30
  ua = ua || navigator.userAgent;
32
31
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
33
32
  );
34
33
  ua = ua || navigator.userAgent;
35
34
  return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
36
35
  ua = ua || navigator.userAgent;
37
36
  return !!ua.match(/iphone/i);
38
37
  ua = ua || navigator.userAgent;
39
38
  return !!ua.match(/ipad/i);
40
39
  ua = ua || navigator.userAgent;
41
40
  if (name === 'xview') return typeof window.XView !== 'undefined';
42
41
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
43
42
  return false;
44
43
  ua = ua || navigator.userAgent;
45
44
  var re = /nettype\/([\S]*)/i;
46
45
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
47
46
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
48
47
  ua = ua || navigator.userAgent;
49
48
  if (!isApp('jd', ua)) return null;
50
49
  return ua.split(';')[4];
51
50
  ua = ua || navigator.userAgent;
52
51
  if (appName === 'jd') return ua.split(';')[2] || null;
53
52
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
54
53
  );
55
54
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
56
55
  );
57
56
  return null;
58
57
  ua = ua || navigator.userAgent;
59
58
  var match = ua.match(/android\s([0-9\.]*)/i);
60
59
  return match ? match[1] : 'unknown';
61
60
  ua = ua || navigator.userAgent;
62
61
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
63
62
  return match ? match[1].replace(/_/g, '.') : 'unknown';
63
+ var splitOnFirst = function splitOnFirst(string, separator) {
64
64
  return Object.prototype.toString.call(obj);
65
65
  return typeof obj === 'function';
66
66
  return '[object Object]' === getType(obj);
67
67
  return '[object Array]' == getType(obj);
68
68
  return '[object Undefined]' === getType(obj);
69
69
  return '[object Null]' == getType(obj);
70
70
  return typeof obj === 'string';
71
71
  return typeof obj === 'boolean';
72
72
  return '[object Number]' === getType(num);
73
73
  ua = ua || navigator.userAgent;
74
74
  if (name === 'wx') return (/micromessenger/i.test(ua)
75
75
  );
76
76
  if (name === 'qq') return (/qq\//i.test(ua)
77
77
  );
78
78
  if (name === 'weibo') return (/weibo/i.test(ua)
79
79
  );
80
80
  if (name === 'jd') return (/^jdapp/i.test(ua)
81
81
  );
82
82
  if (name === 'jdharmony') return (/^jdapp;harmony/i.test(ua)
83
83
  );
84
84
  if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
85
85
  );
86
86
  if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
87
87
  if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
88
88
  if(name === 'jdjch') return (/jdjchshopapp/i.test(ua) || (/shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href)) && window.location.href.includes('channel')) ;
89
89
  if(name == 'tjapp') return /jdltapp;/.test(ua);
90
90
  return false;
91
91
  ua = ua || navigator.userAgent;
92
92
  return (/android/i.test(ua) && !isIOS()
93
93
  );
94
94
  ua = ua || navigator.userAgent;
95
95
  return (/ip(hone|od)|ipad/i.test(ua)
96
96
  );
97
97
  ua = ua || navigator.userAgent;
98
98
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
99
99
  );
100
100
  ua = ua || navigator.userAgent;
101
101
  return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
102
102
  ua = ua || navigator.userAgent;
103
103
  return !!ua.match(/iphone/i);
104
104
  ua = ua || navigator.userAgent;
105
105
  return !!ua.match(/ipad/i);
106
106
  ua = ua || navigator.userAgent;
107
107
  if (name === 'xview') return typeof window.XView !== 'undefined';
108
108
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
109
109
  return false;
110
110
  ua = ua || navigator.userAgent;
111
111
  var re = /nettype\/([\S]*)/i;
112
112
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
113
113
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
114
114
  ua = ua || navigator.userAgent;
115
115
  if (!isApp('jd', ua)) return null;
116
116
  return ua.split(';')[4];
117
117
  ua = ua || navigator.userAgent;
118
118
  if (appName === 'jd') return ua.split(';')[2] || null;
119
119
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
120
120
  );
121
121
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
122
122
  );
123
123
  return null;
124
124
  ua = ua || navigator.userAgent;
125
125
  var match = ua.match(/android\s([0-9\.]*)/i);
126
126
  return match ? match[1] : 'unknown';
127
127
  ua = ua || navigator.userAgent;
128
128
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
129
129
  return match ? match[1].replace(/_/g, '.') : 'unknown';
@@ -0,0 +1 @@
1
+ import { isH5, isJdAndIosDevice, isJdAndAndroidDevice } from './index';
2
  'The current environment does not support the getEnterShopJumpExtMap method call!';
1
3
  const routerURL = 'router://JDShopModule/getHomeEntranceObj';
2
4
  const callBackName = `nativeGetHomeEntranceObj${Date.now()}`;
3
5
  const params = {
4
6
  routerURL,
5
7
  routerParam: null,
6
8
  callBackName,
7
9
  };
8
10
  return new Promise((resolve) => {
9
11
  window[callBackName] = (res) => {
10
12
  const data = typeof res === 'string' ? JSON.parse(res) : res;
11
13
  const tempVal = data?.data?.jumpExtMap ?? {};
12
14
  const entranceObj = typeof tempVal === 'string' ? JSON.parse(tempVal) : tempVal;
13
15
  resolve(entranceObj);
14
16
  };
15
17
  if (isH5 && isJdAndAndroidDevice) {
16
18
  callRouterAndroid(params);
17
19
  } else if (isH5 && isJdAndIosDevice) {
18
20
  callRouterIOS(params);
19
21
  } else {
20
22
  console.warn(errorTip);
21
23
  resolve({});
22
24
  }
23
25
  });
24
26
  getEnterShopJumpExtMap()
25
27
  .then((data) => {
26
28
  hasResult = true;
27
29
  entranceObj = data;
28
30
  })
29
31
  .catch((e) => {
30
32
  console.error('requestServer.getEnterShopJumpExtMap() ~~ error:', e);
31
33
  });
32
34
  hasResult = true;
33
35
  console.warn(errorTip);
34
36
  return entranceObj;
35
37
  const { smartCouponInfo = [] } = entranceObj;
36
38
  const info = smartCouponInfo.find((item) => item.skuId === skuId + '');
37
39
  return info ? info.adInfos : null;
38
40
  return new Promise((resolve) => {
39
41
  if (hasResult) {
40
42
  resolve(entranceObj.smartCouponInfo);
41
43
  } else {
42
44
  setTimeout(() => {
43
45
  resolve(entranceObj.smartCouponInfo || null);
44
46
  }, 16);
45
47
  }
46
48
  });
@@ -0,0 +1 @@
1
+ function getEnterShopExtInfo() {
2
  console.warn("~~ getEnterShopExtInfo() ~~ 暂不支持")
1
3
  return {};
2
4
  console.warn("~~ getAdInfoBySkuId() ~~ 暂不支持")
3
5
  return null;
4
6
  console.warn("~~ getSmartCouponInfo() ~~ 暂不支持")
5
7
  return new Promise((resolve) => {
6
8
  resolve(null);
7
9
  });
@@ -0,0 +1 @@
1
+ const colorDSM = 'https://api.m.jd.com/client.action?functionId=';
2
  [
1
3
  colorDSM + 'op_getGoodListByCatesIds',
2
4
  ['dsm.jshop.operations.api.inner.service.ProductJsfService.getGoodListByCatesIds', true],
3
5
  ,
4
6
  ],
5
7
  console.log('getSColorPara ~ url is:', url);
6
8
  url = colorDSM + url;
7
9
  if (isDowngradeSDM(url)) {
8
10
  return {};
9
11
  }
10
12
  return getDSMValue(url)
11
13
  ? {
12
14
  url: '/api?v=1.0&appId=IEAFE4HKEFPYCKVAUVBR&api=' + getDSMValue(url)[0],
13
15
  }
14
16
  : {};
15
17
  url = colorDSM + url;
16
18
  try {
17
19
  if (isDowngradeSDM(url)) {
18
20
  return false;
19
21
  }
20
22
  console.log('is DSM', !!getDSMValue(url));
21
23
  return !!getDSMValue(url);
22
24
  } catch (error) {
23
25
  console.log('🚀 ~ checkIsDSM ~ error:', error);
24
26
  return false;
25
27
  }
26
28
  url = colorDSM + url;
27
29
  if (isDowngradeSDM(url)) {
28
30
  return false;
29
31
  }
30
32
  console.log('is need deconstruction', getDSMValue(url) ? getDSMValue(url)[1] : false);
31
33
  return getDSMValue(url) ? getDSMValue(url)[1] : false;
32
34
  for (let [key, value] of DSM) {
33
35
  if (url.startsWith(key) && url.includes('?')) {
34
36
  return value;
35
37
  }
36
38
  if (key === url) {
37
39
  return value;
38
40
  }
39
41
  }
40
42
  return '';
41
43
  try {
42
44
  const { nodePageData } = window;
43
45
  const { DSMDowngradeList = null, routeBlackList = null } = nodePageData;
44
46
  if (
45
47
  nodePageData &&
46
48
  routeBlackList &&
47
49
  Array.isArray(routeBlackList) &&
48
50
  ((routeBlackList.length > 0 &&
49
51
  routeBlackList.some((prefix) => url.startsWith(prefix)) &&
50
52
  url.includes('?')) ||
51
53
  routeBlackList.includes(url))
52
54
  ) {
53
55
  return true;
54
56
  }
55
57
  if (DSMDowngradeList === null) return true;
56
58
  if (
57
59
  !Array.isArray(DSMDowngradeList) ||
58
60
  (DSMDowngradeList.length > 0 &&
59
61
  DSMDowngradeList.some((prefix) => url.startsWith(prefix)) &&
60
62
  url.includes('?')) ||
61
63
  DSMDowngradeList.includes(url)
62
64
  ) {
63
65
  return true;
64
66
  }
65
67
  return false;
66
68
  } catch (error) {
67
69
  console.log('🚀 ~ isDowngradeSDM ~ error:', error)
68
70
  return false;
69
71
  }
70
72
  getSColorPara: (url) => getSColorPara(url),
71
73
  checkIsNeedDeconstruction: (url) => checkIsNeedDeconstruction(url),
72
74
  checkIsDSM: (url) => checkIsDSM(url),
@@ -0,0 +1 @@
1
+ import { getPageType } from "../common/pageType"
2
  return str.replace(/-([a-z])/g, (match) => {
1
3
  return match[1].toUpperCase();
2
4
  });
3
5
  const taroVersion =
4
6
  window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW ? 'newTaro' : 'oldTaro'
5
7
  console.log('handleSgmCodeTaroVersion', handleSgmCodeTaroVersion)
6
8
  return `${taroVersion}_${sgmCustomCode}`
7
9
  let finalSgmCustomCode = sgmCustomCode
8
10
  const pageType = getPageType()
9
11
  if (pageType !== '') {
10
12
  const sgmPageType = underlineToCamelCase(pageType)
11
13
  finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
12
14
  }
13
15
  const environmentType = getEnvironmentType()
14
16
  finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
15
17
  console.log('sgm上报自定义编码', finalSgmCustomCode)
16
18
  return finalSgmCustomCode