@conecli/cone-render 0.8.20-shop.21 → 0.8.20-shop.211

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 (163) 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.module.scss +1 -1
  29. package/dist/components/base/CustomVideo/index.tsx +1 -1
  30. package/dist/components/base/Dialog/index.module.scss +16 -0
  31. package/dist/components/base/Dialog/index.tsx +1 -1
  32. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  33. package/dist/components/base/ExposureSmart/const.ts +1 -0
  34. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  35. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  36. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  37. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  38. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  39. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.tsx +1 -1
  41. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  42. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  43. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  44. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  45. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  46. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  47. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  48. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  49. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  50. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  51. package/dist/components/base/NetworkDataError/const.ts +1 -1
  52. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  53. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  54. package/dist/components/base/Price/Base/index.module.scss +12 -0
  55. package/dist/components/base/Price/Base/index.tsx +1 -1
  56. package/dist/components/base/Price/Double/index.module.scss +32 -0
  57. package/dist/components/base/Price/Double/index.tsx +1 -1
  58. package/dist/components/base/Price/index.tsx +1 -1
  59. package/dist/components/base/Skeleton/index.tsx +1 -1
  60. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  61. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  62. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  63. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  64. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  65. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  66. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  67. package/dist/components/floorItem.jd.tsx +1 -1
  68. package/dist/components/floorItem.tsx +1 -1
  69. package/dist/components/floorItem.weapp.tsx +1 -1
  70. package/dist/components/isv/Floor/index.tsx +1 -1
  71. package/dist/components/remoteFloorItem.tsx +1 -0
  72. package/dist/interface/common.ts +1 -1
  73. package/dist/interface/component.ts +1 -1
  74. package/dist/interface/jumpEventReport.ts +1 -1
  75. package/dist/interface/service.ts +1 -1
  76. package/dist/interface/utils.ts +1 -1
  77. package/dist/jumpEventReport/base.ts +1 -1
  78. package/dist/jumpEventReport/const.ts +1 -1
  79. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  80. package/dist/jumpEventReport/index.h5.ts +1 -1
  81. package/dist/jumpEventReport/index.jd.ts +1 -1
  82. package/dist/jumpEventReport/index.ts +1 -1
  83. package/dist/jumpEventReport/index.weapp.ts +1 -1
  84. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  85. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  86. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  87. package/dist/jumpEventReport/web/report.ts +1 -1
  88. package/dist/jumpEventReport/web.base.ts +1 -1
  89. package/dist/jumpEventReport/web.jd.ts +1 -1
  90. package/dist/jumpEventReport/web.jdb.ts +1 -1
  91. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  92. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  93. package/dist/jumpEventReport/web.pc.ts +1 -0
  94. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  95. package/dist/jumpEventReport/web.tjm.ts +1 -0
  96. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  97. package/dist/language/en_US.json +178 -0
  98. package/dist/language/zh_CN.json +178 -0
  99. package/dist/language/zh_HK.json +178 -0
  100. package/dist/libs/taroAppReport.js +2 -2
  101. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  102. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  103. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  104. package/dist/open/api/device.ts +1 -1
  105. package/dist/open/api/environment.ts +1 -1
  106. package/dist/open/api/index.ts +1 -1
  107. package/dist/open/api/jump/business.ts +1 -0
  108. package/dist/open/api/jump/index.ts +1 -0
  109. package/dist/open/api/jump/minPath.ts +1 -0
  110. package/dist/open/api/jump/side.ts +1 -0
  111. package/dist/open/api/jump/webUrl.ts +1 -0
  112. package/dist/open/api/jump copy.ts +1 -0
  113. package/dist/open/api/request.ts +1 -1
  114. package/dist/open/api/shopMember.ts +1 -1
  115. package/dist/open/api/track.ts +1 -1
  116. package/dist/open/api/util.ts +1 -1
  117. package/dist/open/components/index.ts +1 -1
  118. package/dist/sass/app.h5.scss +289 -212
  119. package/dist/sass/base.scss +195 -137
  120. package/dist/service/bMallConst.ts +1 -1
  121. package/dist/service/fetchGateway.ts +1 -1
  122. package/dist/service/fetchGateway.weapp.ts +1 -0
  123. package/dist/service/http/colorSign.ts +1 -1
  124. package/dist/service/http/const.ts +1 -1
  125. package/dist/service/http/h5Http.ts +1 -0
  126. package/dist/service/http/index.h5.ts +1 -0
  127. package/dist/service/requestServer.h5.ts +1 -0
  128. package/dist/service/requestServer.ts +1 -1
  129. package/dist/service/requestServer.weapp.ts +1 -0
  130. package/dist/utils/connectNativeJsBridge.ts +1 -1
  131. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  132. package/dist/utils/draExceptionAndProfile.ts +1 -1
  133. package/dist/utils/h5Utils.ts +1 -1
  134. package/dist/utils/index.h5.ts +1 -1
  135. package/dist/utils/index.ts +1 -1
  136. package/dist/utils/index.weapp.ts +1 -1
  137. package/dist/utils/intersectionObserver.ts +1 -1
  138. package/dist/utils/jm-common.js +1 -1
  139. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  140. package/dist/utils/jumpExtMapUtil.ts +1 -0
  141. package/dist/utils/sColor.js +1 -0
  142. package/dist/utils/sgmCodeUtils.ts +1 -0
  143. package/dist/utils/taroRenderUtil.ts +1 -0
  144. package/dist/utils/utils.ts +1 -1
  145. package/dist/wxapp/api/helper.js +1 -0
  146. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  147. package/dist/wxapp/common/user_info.js +1 -1
  148. package/dist/wxapp/components/launch-app/index.js +1 -0
  149. package/dist/wxapp/components/launch-app/index.json +5 -0
  150. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  151. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  152. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  153. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  154. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  155. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  156. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  157. package/package.json +148 -115
  158. package/dist/components/base/Skeleton/old.tsx +0 -1
  159. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  160. package/dist/open/api/jump.ts +0 -1
  161. package/dist/utils/memberFormatUtils.js +0 -1
  162. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  163. /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
  isOpenJdAppUrl,
63
63
  jdOpenAppParams,
64
64
  createJdOpenAppUrl,
65
65
  isEmpty,
66
66
  getJdAppReportPageSource,
67
67
  isAppClassifyPage,
68
68
  isPc,
69
69
  ipLoc_djd,
70
70
  dealJdOpenAppData,
71
71
  jdAppVersionCompare,
72
72
  dealNativePixelToCssPixel,
73
73
  isAppStowShop,
74
74
  isImageOptimizeEnable,
75
75
  isIpadDevice,
76
76
  getBorderStyle,
77
77
  isLanguageForEn,
78
78
  sColor,
79
79
  draInterfaceDSMCustomReport,
80
80
  isTabletDevice,
81
81
  isLanguageForHk,
82
82
  languageNowType,
83
83
  console.warn('暂未实现', code);
84
84
  console.warn('暂未实现', code);
85
85
  console.warn('暂未实现');
86
86
  console.warn('🚗 ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!');
87
87
  return false;
88
88
  isJdApp,
89
89
  isWxApp,
90
90
  isIosDevice,
91
91
  isAndroidDevice,
92
92
  isHarmonyDevice,
93
93
  isJdAndIosDevice,
94
94
  isJdAndAndroidDevice,
95
95
  isJdAndHarmonyDevice,
96
96
  isJdAndroidX5Core,
97
97
  isWxMin,
98
98
  isMin,
99
99
  isJdMinAndHarmony,
100
100
  isWxMinAndWxapp,
101
101
  isJdMin,
102
102
  isH5,
103
103
  isH5AndJdShopView,
104
104
  isChartH5,
105
105
  isH5AndJdShopViewNativeScroll,
106
106
  isH5AndJdShopViewH5Scroll,
107
107
  isH5AndJdShopH5CustomScrollView,
108
108
  isH5AndJingGouMini,
109
109
  isWxMiniH5View,
110
110
  urlCookie,
111
111
  sliceArrToChunkList,
112
112
  dealAddress,
113
113
  objectToUrlEncode,
114
114
  parseQueryUrlString,
115
115
  setLowSmallPicUrl,
116
116
  countStringify,
117
117
  setTaroStorage,
118
118
  getTaroStorageKeyValue,
119
119
  removeTaroStorageKey,
120
120
  clearTaroStorageKey,
121
121
  getQualityImage,
122
122
  getSystemInfos,
123
123
  getWxAppCookieStr,
124
124
  pxTransformFromData,
125
125
  dealShopContentData,
126
126
  dateFormat,
127
127
  throttle,
128
128
  lodashThrottle,
129
129
  debounce,
130
130
  addHttps,
131
131
  showSuccessToast,
132
132
  showFailToast,
133
133
  showNormalToast,
134
134
  showShopLoading,
135
135
  hideShopLoading,
136
136
  stopNativeScrollEvent,
137
137
  getAppChannelType,
138
138
  formatTabActiveMenuType,
139
139
  getAvifSupport,
140
140
  getWebpSupport,
141
141
  filterUrlQueryData,
142
142
  isMemberPage,
143
143
  getFloorDataToDataDefines,
144
144
  sgmCustomReport,
145
145
  draCustomReport,
146
146
  remoteCustomReport,
147
147
  draInterfaceCustomReport,
148
148
  draBusinessCustomReport,
149
149
  isOpenJdAppUrl,
150
150
  jdOpenAppParams,
151
151
  createJdOpenAppUrl,
152
152
  isEmpty,
153
153
  isAppClassifyPage,
154
154
  isAppHomeForMarketPage,
155
155
  getJdAppReportPageSource,
156
156
  isImageOptimizeEnable,
157
157
  isPc,
158
158
  ipLoc_djd,
159
159
  isTjM,
160
160
  isTjJxM,
161
161
  isTjScence,
162
162
  isH5AdnJxMini,
163
163
  isTJApp,
164
164
  isH5AdnHaoWuJie,
165
165
  tjChannel,
166
166
  dealJdOpenAppData,
167
167
  jdAppVersionCompare,
168
168
  dealNativePixelToCssPixel,
169
169
  isAppStowShop,
170
170
  getSgmCustomCode,
171
171
  handleSgmCodeTaroVersion,
172
172
  isInGrayscale,
173
173
  isIpadDevice,
174
174
  getBorderStyle,
175
175
  isLanguageForEn,
176
176
  sColor,
177
177
  draInterfaceDSMCustomReport,
178
178
  isTabletDevice,
179
179
  updateContainerWidth,
180
180
  isInJdShopView,
181
181
  isDongWebView,
182
182
  isLanguageForHk,
183
183
  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
  isOpenJdAppUrl,
59
59
  jdOpenAppParams,
60
60
  createJdOpenAppUrl,
61
61
  isEmpty,
62
62
  getJdAppReportPageSource,
63
63
  isMemberPage,
64
64
  isAppClassifyPage,
65
65
  dealJdOpenAppData,
66
66
  jdAppVersionCompare,
67
67
  dealNativePixelToCssPixel,
68
68
  isImageOptimizeEnable,
69
69
  isIpadDevice,
70
70
  getBorderStyle,
71
71
  isLanguageForEn,
72
72
  sColor,
73
73
  draInterfaceDSMCustomReport,
74
74
  isTabletDevice,
75
75
  isLanguageForHk,
76
76
  languageNowType,
77
77
  console.warn('暂未实现', code);
78
78
  console.warn('暂未实现', code);
79
79
  console.warn('🚗 ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!');
80
80
  return false;
81
81
  console.warn('暂未实现');
82
82
  isJdApp,
83
83
  isWxApp,
84
84
  isIosDevice,
85
85
  isAndroidDevice,
86
86
  isHarmonyDevice,
87
87
  isJdAndIosDevice,
88
88
  isJdAndAndroidDevice,
89
89
  isJdAndHarmonyDevice,
90
90
  isJdAndroidX5Core,
91
91
  isWxMin,
92
92
  isWxMinAndWxapp,
93
93
  isJdMin,
94
94
  isMin,
95
95
  isJdMinAndHarmony,
96
96
  isH5,
97
97
  isH5AndJdShopView,
98
98
  isChartH5,
99
99
  isH5AndJdShopViewNativeScroll,
100
100
  isH5AndJdShopViewH5Scroll,
101
101
  isH5AndJdShopH5CustomScrollView,
102
102
  isH5AndJingGouMini,
103
103
  isWxMiniH5View,
104
104
  urlCookie,
105
105
  sliceArrToChunkList,
106
106
  dealAddress,
107
107
  objectToUrlEncode,
108
108
  parseQueryUrlString,
109
109
  setLowSmallPicUrl,
110
110
  setTaroStorage,
111
111
  getTaroStorageKeyValue,
112
112
  removeTaroStorageKey,
113
113
  clearTaroStorageKey,
114
114
  getQualityImage,
115
115
  countStringify,
116
116
  getSystemInfos,
117
117
  getWxAppCookieStr,
118
118
  pxTransformFromData,
119
119
  dealShopContentData,
120
120
  dateFormat,
121
121
  throttle,
122
122
  lodashThrottle,
123
123
  debounce,
124
124
  addHttps,
125
125
  showSuccessToast,
126
126
  showFailToast,
127
127
  showNormalToast,
128
128
  showShopLoading,
129
129
  hideShopLoading,
130
130
  stopNativeScrollEvent,
131
131
  getAppChannelType,
132
132
  formatTabActiveMenuType,
133
133
  getAvifSupport,
134
134
  getWebpSupport,
135
135
  filterUrlQueryData,
136
136
  getFloorDataToDataDefines,
137
137
  sgmCustomReport,
138
138
  draCustomReport,
139
139
  remoteCustomReport,
140
140
  draInterfaceCustomReport,
141
141
  draBusinessCustomReport,
142
142
  isOpenJdAppUrl,
143
143
  jdOpenAppParams,
144
144
  createJdOpenAppUrl,
145
145
  isEmpty,
146
146
  getJdAppReportPageSource,
147
147
  isMemberPage,
148
148
  isAppClassifyPage,
149
149
  isAppHomeForMarketPage,
150
150
  isImageOptimizeEnable,
151
151
  isPc,
152
152
  ipLoc_djd,
153
153
  isTjM,
154
154
  isTjJxM,
155
155
  isTjScence,
156
156
  isH5AdnJxMini,
157
157
  isTJApp,
158
158
  isH5AdnHaoWuJie,
159
159
  tjChannel,
160
160
  dealJdOpenAppData,
161
161
  jdAppVersionCompare,
162
162
  dealNativePixelToCssPixel,
163
163
  getSgmCustomCode,
164
164
  handleSgmCodeTaroVersion,
165
165
  isInGrayscale,
166
166
  isIpadDevice,
167
167
  getBorderStyle,
168
168
  isLanguageForEn,
169
169
  sColor,
170
170
  draInterfaceDSMCustomReport,
171
171
  isTabletDevice,
172
172
  updateContainerWidth,
173
173
  isInJdShopView,
174
174
  isDongWebView,
175
175
  isLanguageForHk,
176
176
  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) && window.location.href.includes('shop.m.conecli.com/shop/bhome'));
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
@@ -0,0 +1 @@
1
+ export enum TaroRenderVersion {
2
  VERSION_OLD = 0,
1
3
  VERSION_NEW = 1,
2
4
  let result = modularPackResult?.bundleUrl || ''
3
5
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
4
6
  result = modularPackResult?.bundleUrlV2 || ''
5
7
  }
6
8
  console.log(
7
9
  'getBundleUrl taroRenderVersion:' +
8
10
  window?.taroRenderVersion +
9
11
  ',bundleUrl:' +
10
12
  result,
11
13
  )
12
14
  return result
13
15
  let result = modularPackResult?.bundleFileName || ''
14
16
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
15
17
  result = modularPackResult?.bundleFileNameV2 || ''
16
18
  }
17
19
  console.log(
18
20
  'getBundleUrl taroRenderVersion:' +
19
21
  window?.taroRenderVersion +
20
22
  ',bundleFileName:' +
21
23
  result,
22
24
  )
23
25
  return result
24
26
  let result = modularPackResult?.taroVersion || ''
25
27
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
26
28
  result = modularPackResult?.taroVersionV2 || ''
27
29
  }
28
30
  console.log(
29
31
  'getTaroVersion taroRenderVersion:' +
30
32
  window?.taroRenderVersion +
31
33
  ',taroVersion:' +
32
34
  result,
33
35
  )
34
36
  return result
35
37
  if (typeof modularPackResult === 'string') {
36
38
  try {
37
39
  return JSON.parse(modularPackResult)
38
40
  } catch (e) {
39
41
  console.error('JSON解析失败', e)
40
42
  return {}
41
43
  }
42
44
  }
43
45
  return modularPackResult || {}