@conecli/cone-render 0.10.1-beta.4 → 0.10.1-beta.5

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 (50) 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/index.weapp.ts +1 -1
  5. package/dist/common/sgmCustomCode.ts +1 -1
  6. package/dist/components/ErrorBoundary.tsx +1 -1
  7. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  8. package/dist/components/base/CustomVideo/index.tsx +1 -1
  9. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  10. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  11. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  12. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  13. package/dist/components/base/LazyLoadImage/index.h5.module.scss +3 -0
  14. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  15. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  16. package/dist/components/base/NetworkDataError/index.module.scss +3 -0
  17. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  18. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  19. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  20. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  21. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  22. package/dist/components/floorItem.tsx +1 -1
  23. package/dist/components/remoteFloorItem.tsx +1 -1
  24. package/dist/interface/common.ts +1 -1
  25. package/dist/interface/component.ts +1 -1
  26. package/dist/interface/service.ts +1 -1
  27. package/dist/jumpEventReport/base.ts +1 -1
  28. package/dist/jumpEventReport/const.ts +1 -1
  29. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  30. package/dist/jumpEventReport/web.base.ts +1 -1
  31. package/dist/jumpEventReport/web.jd.ts +1 -1
  32. package/dist/modules/ContainerFloorList/index.h5.module.scss +1 -0
  33. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  34. package/dist/open/api/device.ts +1 -1
  35. package/dist/open/api/request.ts +1 -1
  36. package/dist/open/api/shopMember.ts +1 -1
  37. package/dist/open/api/util.ts +1 -1
  38. package/dist/open/components/index.ts +1 -1
  39. package/dist/sass/app.h5.scss +5 -0
  40. package/dist/sass/base.scss +45 -0
  41. package/dist/service/requestServer.ts +1 -1
  42. package/dist/utils/connectNativeJsBridge.ts +1 -1
  43. package/dist/utils/h5Utils.ts +1 -1
  44. package/dist/utils/index.h5.ts +1 -1
  45. package/dist/utils/index.ts +1 -1
  46. package/dist/utils/index.weapp.ts +1 -1
  47. package/dist/utils/sgmCodeUtils.ts +1 -1
  48. package/dist/utils/taroRenderUtil.ts +1 -1
  49. package/dist/utils/utils.ts +1 -1
  50. package/package.json +24 -23
@@ -1 +1 @@
1
- import {
2
1
  isJdApp,
3
2
  isWxApp,
4
3
  isIosDevice,
5
4
  isAndroidDevice,
6
5
  isJdAndIosDevice,
7
6
  isJdAndAndroidDevice,
8
7
  isWxMin,
9
8
  isMin,
10
9
  isJdMinAndHarmony,
11
10
  isWxMinAndWxapp,
12
11
  isJdMin,
13
12
  isH5,
14
13
  isH5AndJdShopView,
15
14
  isChartH5,
16
15
  isH5AndJdShopViewNativeScroll,
17
16
  isH5AndJdShopViewH5Scroll,
18
17
  isH5AndJdShopH5CustomScrollView,
19
18
  isWxMiniH5View,
20
19
  sliceArrToChunkList,
21
20
  dealAddress,
22
21
  objectToUrlEncode,
23
22
  setLowSmallPicUrl,
24
23
  parseQueryUrlString,
25
24
  countStringify,
26
25
  setTaroStorage,
27
26
  getTaroStorageKeyValue,
28
27
  removeTaroStorageKey,
29
28
  clearTaroStorageKey,
30
29
  getQualityImage,
31
30
  getSystemInfos,
32
31
  getWxAppCookieStr,
33
32
  pxTransformFromData,
34
33
  dealShopContentData,
35
34
  dateFormat,
36
35
  throttle,
37
36
  lodashThrottle,
38
37
  debounce,
39
38
  addHttps,
40
39
  showSuccessToast,
41
40
  showFailToast,
42
41
  showNormalToast,
43
42
  showShopLoading,
44
43
  hideShopLoading,
45
44
  getAppChannelType,
46
45
  formatTabActiveMenuType,
47
46
  getAvifSupport,
48
47
  getWebpSupport,
49
48
  filterUrlQueryData,
50
49
  isMemberPage,
51
50
  sgmCustomReport,
52
51
  isOpenJdAppUrl,
53
52
  jdOpenAppParams,
54
53
  createJdOpenAppUrl,
55
54
  isEmpty,
56
55
  getJdAppReportPageSource,
57
56
  isAppClassifyPage,
58
57
  isPc,
59
58
  ipLoc_djd,
60
59
  dealJdOpenAppData,
61
60
  jdAppVersionCompare,
62
61
  dealNativePixelToCssPixel,
63
62
  isAppStowShop,
64
63
  isImageOptimizeEnable,
65
64
  isJdApp,
66
65
  isWxApp,
67
66
  isIosDevice,
68
67
  isAndroidDevice,
69
68
  isJdAndIosDevice,
70
69
  isJdAndAndroidDevice,
71
70
  isJdAndHarmonyDevice,
72
71
  isJdAndroidX5Core,
73
72
  isWxMin,
74
73
  isMin,
75
74
  isJdMinAndHarmony,
76
75
  isWxMinAndWxapp,
77
76
  isJdMin,
78
77
  isH5,
79
78
  isH5AndJdShopView,
80
79
  isChartH5,
81
80
  isH5AndJdShopViewNativeScroll,
82
81
  isH5AndJdShopViewH5Scroll,
83
82
  isH5AndJdShopH5CustomScrollView,
84
83
  isH5AndJingGouMini,
85
84
  isWxMiniH5View,
86
85
  urlCookie,
87
86
  sliceArrToChunkList,
88
87
  dealAddress,
89
88
  objectToUrlEncode,
90
89
  parseQueryUrlString,
91
90
  setLowSmallPicUrl,
92
91
  countStringify,
93
92
  setTaroStorage,
94
93
  getTaroStorageKeyValue,
95
94
  removeTaroStorageKey,
96
95
  clearTaroStorageKey,
97
96
  getQualityImage,
98
97
  getSystemInfos,
99
98
  getWxAppCookieStr,
100
99
  pxTransformFromData,
101
100
  dealShopContentData,
102
101
  dateFormat,
103
102
  throttle,
104
103
  lodashThrottle,
105
104
  debounce,
106
105
  addHttps,
107
106
  showSuccessToast,
108
107
  showFailToast,
109
108
  showNormalToast,
110
109
  showShopLoading,
111
110
  hideShopLoading,
112
111
  getAppChannelType,
113
112
  formatTabActiveMenuType,
114
113
  getAvifSupport,
115
114
  getWebpSupport,
116
115
  filterUrlQueryData,
117
116
  isMemberPage,
118
117
  getFloorDataToDataDefines,
119
118
  sgmCustomReport,
120
119
  isOpenJdAppUrl,
121
120
  jdOpenAppParams,
122
121
  createJdOpenAppUrl,
123
122
  isEmpty,
124
123
  isAppClassifyPage,
125
124
  getJdAppReportPageSource,
126
125
  isImageOptimizeEnable,
127
126
  isPc,
128
127
  ipLoc_djd,
129
128
  isTjM,
130
129
  isTjJxM,
131
130
  isTjScence,
132
131
  isH5AdnJxMini,
133
132
  isTJApp,
134
133
  isH5AdnHaoWuJie,
135
134
  tjChannel,
136
135
  dealJdOpenAppData,
137
136
  jdAppVersionCompare,
138
137
  dealNativePixelToCssPixel,
139
138
  isAppStowShop,
140
139
  getSgmCustomCode,
140
+ import {
141
141
  isJdApp,
142
142
  isWxApp,
143
143
  isIosDevice,
144
144
  isAndroidDevice,
145
145
  isJdAndIosDevice,
146
146
  isJdAndAndroidDevice,
147
147
  isWxMin,
148
148
  isMin,
149
149
  isJdMinAndHarmony,
150
150
  isWxMinAndWxapp,
151
151
  isJdMin,
152
152
  isH5,
153
153
  isH5AndJdShopView,
154
154
  isChartH5,
155
155
  isH5AndJdShopViewNativeScroll,
156
156
  isH5AndJdShopViewH5Scroll,
157
157
  isH5AndJdShopH5CustomScrollView,
158
158
  isWxMiniH5View,
159
159
  sliceArrToChunkList,
160
160
  dealAddress,
161
161
  objectToUrlEncode,
162
162
  setLowSmallPicUrl,
163
163
  parseQueryUrlString,
164
164
  countStringify,
165
165
  setTaroStorage,
166
166
  getTaroStorageKeyValue,
167
167
  removeTaroStorageKey,
168
168
  clearTaroStorageKey,
169
169
  getQualityImage,
170
170
  getSystemInfos,
171
171
  getWxAppCookieStr,
172
172
  pxTransformFromData,
173
173
  dealShopContentData,
174
174
  dateFormat,
175
175
  throttle,
176
176
  lodashThrottle,
177
177
  debounce,
178
178
  addHttps,
179
179
  showSuccessToast,
180
180
  showFailToast,
181
181
  showNormalToast,
182
182
  showShopLoading,
183
183
  hideShopLoading,
184
184
  getAppChannelType,
185
185
  formatTabActiveMenuType,
186
186
  getAvifSupport,
187
187
  getWebpSupport,
188
188
  filterUrlQueryData,
189
189
  isMemberPage,
190
190
  sgmCustomReport,
191
191
  isOpenJdAppUrl,
192
192
  jdOpenAppParams,
193
193
  createJdOpenAppUrl,
194
194
  isEmpty,
195
195
  getJdAppReportPageSource,
196
196
  isAppClassifyPage,
197
197
  isPc,
198
198
  ipLoc_djd,
199
199
  dealJdOpenAppData,
200
200
  jdAppVersionCompare,
201
201
  dealNativePixelToCssPixel,
202
202
  isAppStowShop,
203
203
  isImageOptimizeEnable,
204
204
  console.warn(
205
205
  "� ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!"
206
206
  );
207
207
  return false;
208
208
  isJdApp,
209
209
  isWxApp,
210
210
  isIosDevice,
211
211
  isAndroidDevice,
212
212
  isJdAndIosDevice,
213
213
  isJdAndAndroidDevice,
214
214
  isJdAndHarmonyDevice,
215
215
  isJdAndroidX5Core,
216
216
  isWxMin,
217
217
  isMin,
218
218
  isJdMinAndHarmony,
219
219
  isWxMinAndWxapp,
220
220
  isJdMin,
221
221
  isH5,
222
222
  isH5AndJdShopView,
223
223
  isChartH5,
224
224
  isH5AndJdShopViewNativeScroll,
225
225
  isH5AndJdShopViewH5Scroll,
226
226
  isH5AndJdShopH5CustomScrollView,
227
227
  isH5AndJingGouMini,
228
228
  isWxMiniH5View,
229
229
  urlCookie,
230
230
  sliceArrToChunkList,
231
231
  dealAddress,
232
232
  objectToUrlEncode,
233
233
  parseQueryUrlString,
234
234
  setLowSmallPicUrl,
235
235
  countStringify,
236
236
  setTaroStorage,
237
237
  getTaroStorageKeyValue,
238
238
  removeTaroStorageKey,
239
239
  clearTaroStorageKey,
240
240
  getQualityImage,
241
241
  getSystemInfos,
242
242
  getWxAppCookieStr,
243
243
  pxTransformFromData,
244
244
  dealShopContentData,
245
245
  dateFormat,
246
246
  throttle,
247
247
  lodashThrottle,
248
248
  debounce,
249
249
  addHttps,
250
250
  showSuccessToast,
251
251
  showFailToast,
252
252
  showNormalToast,
253
253
  showShopLoading,
254
254
  hideShopLoading,
255
255
  stopNativeScrollEvent,
256
256
  getAppChannelType,
257
257
  formatTabActiveMenuType,
258
258
  getAvifSupport,
259
259
  getWebpSupport,
260
260
  filterUrlQueryData,
261
261
  isMemberPage,
262
262
  getFloorDataToDataDefines,
263
263
  sgmCustomReport,
264
264
  isOpenJdAppUrl,
265
265
  jdOpenAppParams,
266
266
  createJdOpenAppUrl,
267
267
  isEmpty,
268
268
  isAppClassifyPage,
269
269
  isAppHomeForMarketPage,
270
270
  getJdAppReportPageSource,
271
271
  isImageOptimizeEnable,
272
272
  isPc,
273
273
  ipLoc_djd,
274
274
  isTjM,
275
275
  isTjJxM,
276
276
  isTjScence,
277
277
  isH5AdnJxMini,
278
278
  isTJApp,
279
279
  isH5AdnHaoWuJie,
280
280
  tjChannel,
281
281
  dealJdOpenAppData,
282
282
  jdAppVersionCompare,
283
283
  dealNativePixelToCssPixel,
284
284
  isAppStowShop,
285
285
  getSgmCustomCode,
286
286
  handleSgmCodeTaroVersion,
287
287
  isInGrayscale,
@@ -1 +1 @@
1
- import {
2
1
  isJdApp,
3
2
  isWxApp,
4
3
  isIosDevice,
5
4
  isAndroidDevice,
6
5
  isJdAndIosDevice,
7
6
  isJdAndAndroidDevice,
8
7
  isWxMin,
9
8
  isWxMinAndWxapp,
10
9
  isJdMin,
11
10
  isJdMinAndHarmony,
12
11
  isH5,
13
12
  isH5AndJdShopView,
14
13
  isChartH5,
15
14
  isH5AndJdShopViewNativeScroll,
16
15
  isH5AndJdShopViewH5Scroll,
17
16
  isH5AndJdShopH5CustomScrollView,
18
17
  isWxMiniH5View,
19
18
  sliceArrToChunkList,
20
19
  dealAddress,
21
20
  objectToUrlEncode,
22
21
  parseQueryUrlString,
23
22
  setLowSmallPicUrl,
24
23
  setTaroStorage,
25
24
  getTaroStorageKeyValue,
26
25
  removeTaroStorageKey,
27
26
  clearTaroStorageKey,
28
27
  getQualityImage,
29
28
  countStringify,
30
29
  getSystemInfos,
31
30
  getWxAppCookieStr,
32
31
  pxTransformFromData,
33
32
  dealShopContentData,
34
33
  dateFormat,
35
34
  throttle,
36
35
  lodashThrottle,
37
36
  debounce,
38
37
  addHttps,
39
38
  showSuccessToast,
40
39
  showFailToast,
41
40
  showNormalToast,
42
41
  showShopLoading,
43
42
  hideShopLoading,
44
43
  getAppChannelType,
45
44
  formatTabActiveMenuType,
46
45
  getAvifSupport,
47
46
  getWebpSupport,
48
47
  filterUrlQueryData,
49
48
  sgmCustomReport,
50
49
  isOpenJdAppUrl,
51
50
  jdOpenAppParams,
52
51
  createJdOpenAppUrl,
53
52
  isEmpty,
54
53
  getJdAppReportPageSource,
55
54
  isMemberPage,
56
55
  isAppClassifyPage,
57
56
  dealJdOpenAppData,
58
57
  jdAppVersionCompare,
59
58
  dealNativePixelToCssPixel,
60
59
  isImageOptimizeEnable,
61
60
  isJdApp,
62
61
  isWxApp,
63
62
  isIosDevice,
64
63
  isAndroidDevice,
65
64
  isJdAndIosDevice,
66
65
  isJdAndAndroidDevice,
67
66
  isJdAndHarmonyDevice,
68
67
  isJdAndroidX5Core,
69
68
  isWxMin,
70
69
  isWxMinAndWxapp,
71
70
  isJdMin,
72
71
  isMin,
73
72
  isJdMinAndHarmony,
74
73
  isH5,
75
74
  isH5AndJdShopView,
76
75
  isChartH5,
77
76
  isH5AndJdShopViewNativeScroll,
78
77
  isH5AndJdShopViewH5Scroll,
79
78
  isH5AndJdShopH5CustomScrollView,
80
79
  isH5AndJingGouMini,
81
80
  isWxMiniH5View,
82
81
  urlCookie,
83
82
  sliceArrToChunkList,
84
83
  dealAddress,
85
84
  objectToUrlEncode,
86
85
  parseQueryUrlString,
87
86
  setLowSmallPicUrl,
88
87
  setTaroStorage,
89
88
  getTaroStorageKeyValue,
90
89
  removeTaroStorageKey,
91
90
  clearTaroStorageKey,
92
91
  getQualityImage,
93
92
  countStringify,
94
93
  getSystemInfos,
95
94
  getWxAppCookieStr,
96
95
  pxTransformFromData,
97
96
  dealShopContentData,
98
97
  dateFormat,
99
98
  throttle,
100
99
  lodashThrottle,
101
100
  debounce,
102
101
  addHttps,
103
102
  showSuccessToast,
104
103
  showFailToast,
105
104
  showNormalToast,
106
105
  showShopLoading,
107
106
  hideShopLoading,
108
107
  getAppChannelType,
109
108
  formatTabActiveMenuType,
110
109
  getAvifSupport,
111
110
  getWebpSupport,
112
111
  filterUrlQueryData,
113
112
  getFloorDataToDataDefines,
114
113
  sgmCustomReport,
115
114
  isOpenJdAppUrl,
116
115
  jdOpenAppParams,
117
116
  createJdOpenAppUrl,
118
117
  isEmpty,
119
118
  getJdAppReportPageSource,
120
119
  isMemberPage,
121
120
  isAppClassifyPage,
122
121
  isImageOptimizeEnable,
123
122
  isPc,
124
123
  isTjM,
125
124
  isTjJxM,
126
125
  isTjScence,
127
126
  isH5AdnJxMini,
128
127
  isTJApp,
129
128
  isH5AdnHaoWuJie,
130
129
  tjChannel,
131
130
  dealJdOpenAppData,
132
131
  jdAppVersionCompare,
133
132
  dealNativePixelToCssPixel,
134
133
  getSgmCustomCode,
134
+ import {
135
135
  isJdApp,
136
136
  isWxApp,
137
137
  isIosDevice,
138
138
  isAndroidDevice,
139
139
  isJdAndIosDevice,
140
140
  isJdAndAndroidDevice,
141
141
  isWxMin,
142
142
  isWxMinAndWxapp,
143
143
  isJdMin,
144
144
  isJdMinAndHarmony,
145
145
  isH5,
146
146
  isH5AndJdShopView,
147
147
  isChartH5,
148
148
  isH5AndJdShopViewNativeScroll,
149
149
  isH5AndJdShopViewH5Scroll,
150
150
  isH5AndJdShopH5CustomScrollView,
151
151
  isWxMiniH5View,
152
152
  sliceArrToChunkList,
153
153
  dealAddress,
154
154
  objectToUrlEncode,
155
155
  parseQueryUrlString,
156
156
  setLowSmallPicUrl,
157
157
  setTaroStorage,
158
158
  getTaroStorageKeyValue,
159
159
  removeTaroStorageKey,
160
160
  clearTaroStorageKey,
161
161
  getQualityImage,
162
162
  countStringify,
163
163
  getSystemInfos,
164
164
  getWxAppCookieStr,
165
165
  pxTransformFromData,
166
166
  dealShopContentData,
167
167
  dateFormat,
168
168
  throttle,
169
169
  lodashThrottle,
170
170
  debounce,
171
171
  addHttps,
172
172
  showSuccessToast,
173
173
  showFailToast,
174
174
  showNormalToast,
175
175
  showShopLoading,
176
176
  hideShopLoading,
177
177
  getAppChannelType,
178
178
  formatTabActiveMenuType,
179
179
  getAvifSupport,
180
180
  getWebpSupport,
181
181
  filterUrlQueryData,
182
182
  sgmCustomReport,
183
183
  isOpenJdAppUrl,
184
184
  jdOpenAppParams,
185
185
  createJdOpenAppUrl,
186
186
  isEmpty,
187
187
  getJdAppReportPageSource,
188
188
  isMemberPage,
189
189
  isAppClassifyPage,
190
190
  dealJdOpenAppData,
191
191
  jdAppVersionCompare,
192
192
  dealNativePixelToCssPixel,
193
193
  isImageOptimizeEnable,
194
194
  console.warn(
195
195
  "� ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!"
196
196
  );
197
197
  return false;
198
198
  isJdApp,
199
199
  isWxApp,
200
200
  isIosDevice,
201
201
  isAndroidDevice,
202
202
  isJdAndIosDevice,
203
203
  isJdAndAndroidDevice,
204
204
  isJdAndHarmonyDevice,
205
205
  isJdAndroidX5Core,
206
206
  isWxMin,
207
207
  isWxMinAndWxapp,
208
208
  isJdMin,
209
209
  isMin,
210
210
  isJdMinAndHarmony,
211
211
  isH5,
212
212
  isH5AndJdShopView,
213
213
  isChartH5,
214
214
  isH5AndJdShopViewNativeScroll,
215
215
  isH5AndJdShopViewH5Scroll,
216
216
  isH5AndJdShopH5CustomScrollView,
217
217
  isH5AndJingGouMini,
218
218
  isWxMiniH5View,
219
219
  urlCookie,
220
220
  sliceArrToChunkList,
221
221
  dealAddress,
222
222
  objectToUrlEncode,
223
223
  parseQueryUrlString,
224
224
  setLowSmallPicUrl,
225
225
  setTaroStorage,
226
226
  getTaroStorageKeyValue,
227
227
  removeTaroStorageKey,
228
228
  clearTaroStorageKey,
229
229
  getQualityImage,
230
230
  countStringify,
231
231
  getSystemInfos,
232
232
  getWxAppCookieStr,
233
233
  pxTransformFromData,
234
234
  dealShopContentData,
235
235
  dateFormat,
236
236
  throttle,
237
237
  lodashThrottle,
238
238
  debounce,
239
239
  addHttps,
240
240
  showSuccessToast,
241
241
  showFailToast,
242
242
  showNormalToast,
243
243
  showShopLoading,
244
244
  hideShopLoading,
245
245
  stopNativeScrollEvent,
246
246
  getAppChannelType,
247
247
  formatTabActiveMenuType,
248
248
  getAvifSupport,
249
249
  getWebpSupport,
250
250
  filterUrlQueryData,
251
251
  getFloorDataToDataDefines,
252
252
  sgmCustomReport,
253
253
  isOpenJdAppUrl,
254
254
  jdOpenAppParams,
255
255
  createJdOpenAppUrl,
256
256
  isEmpty,
257
257
  getJdAppReportPageSource,
258
258
  isMemberPage,
259
259
  isAppClassifyPage,
260
260
  isAppHomeForMarketPage,
261
261
  isImageOptimizeEnable,
262
262
  isPc,
263
263
  isTjM,
264
264
  isTjJxM,
265
265
  isTjScence,
266
266
  isH5AdnJxMini,
267
267
  isTJApp,
268
268
  isH5AdnHaoWuJie,
269
269
  tjChannel,
270
270
  dealJdOpenAppData,
271
271
  jdAppVersionCompare,
272
272
  dealNativePixelToCssPixel,
273
273
  getSgmCustomCode,
274
274
  handleSgmCodeTaroVersion,
275
275
  isInGrayscale,
@@ -1 +1 @@
1
- import { getPageType } from "../common/pageType"
2
1
  return str.replace(/-([a-z])/g, (match) => {
3
2
  return match[1].toUpperCase();
4
3
  });
5
4
  let finalSgmCustomCode = sgmCustomCode
6
5
  const pageType = getPageType()
7
6
  if (pageType !== '') {
8
7
  const sgmPageType = underlineToCamelCase(pageType)
9
8
  finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
10
9
  }
11
10
  const environmentType = getEnvironmentType()
12
11
  finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
13
12
  console.log('sgm上报自定义编码', finalSgmCustomCode)
14
13
  return finalSgmCustomCode
14
+ import { getPageType } from "../common/pageType"
15
15
  return str.replace(/-([a-z])/g, (match) => {
16
16
  return match[1].toUpperCase();
17
17
  });
18
18
  const taroVersion =
19
19
  window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW ? 'newTaro' : 'oldTaro'
20
20
  console.log('handleSgmCodeTaroVersion', handleSgmCodeTaroVersion)
21
21
  return `${taroVersion}_${sgmCustomCode}`
22
22
  let finalSgmCustomCode = sgmCustomCode
23
23
  const pageType = getPageType()
24
24
  if (pageType !== '') {
25
25
  const sgmPageType = underlineToCamelCase(pageType)
26
26
  finalSgmCustomCode = `${sgmPageType}_${finalSgmCustomCode}`
27
27
  }
28
28
  const environmentType = getEnvironmentType()
29
29
  finalSgmCustomCode = `${environmentType}_${finalSgmCustomCode}`
30
30
  console.log('sgm上报自定义编码', finalSgmCustomCode)
31
31
  return finalSgmCustomCode
@@ -1 +1 @@
1
- export enum TaroRenderVersion {
2
1
  VERSION_OLD = 0,
3
2
  VERSION_NEW = 1,
4
3
  let result = modularPackResult?.bundleUrl || ''
5
4
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
6
5
  result = modularPackResult?.bundleUrlV2 || ''
7
6
  }
8
7
  console.log(
9
8
  'getBundleUrl taroRenderVersion:' +
10
9
  window?.taroRenderVersion +
11
10
  ',bundleUrl:' +
12
11
  result,
13
12
  )
14
13
  return result
15
14
  let result = modularPackResult?.bundleFileName || ''
16
15
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
17
16
  result = modularPackResult?.bundleFileNameV2 || ''
18
17
  }
19
18
  console.log(
20
19
  'getBundleUrl taroRenderVersion:' +
21
20
  window?.taroRenderVersion +
22
21
  ',bundleFileName:' +
23
22
  result,
24
23
  )
25
24
  return result
26
25
  if (typeof modularPackResult === 'string') {
27
26
  try {
28
27
  return JSON.parse(modularPackResult)
29
28
  } catch (e) {
30
29
  console.error('JSON解析失败', e)
31
30
  return {}
32
31
  }
33
32
  }
34
33
  return modularPackResult || {}
34
+ export enum TaroRenderVersion {
35
35
  VERSION_OLD = 0,
36
36
  VERSION_NEW = 1,
37
37
  let result = modularPackResult?.bundleUrl || ''
38
38
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
39
39
  result = modularPackResult?.bundleUrlV2 || ''
40
40
  }
41
41
  return result
42
42
  let result = modularPackResult?.bundleFileName || ''
43
43
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
44
44
  result = modularPackResult?.bundleFileNameV2 || ''
45
45
  }
46
46
  return result
47
47
  let result = modularPackResult?.taroVersion || ''
48
48
  if (window?.taroRenderVersion === TaroRenderVersion.VERSION_NEW) {
49
49
  result = modularPackResult?.taroVersionV2 || ''
50
50
  }
51
51
  console.log(
52
52
  'getTaroVersion taroRenderVersion:' +
53
53
  window?.taroRenderVersion +
54
54
  ',taroVersion:' +
55
55
  result,
56
56
  )
57
57
  return result
58
58
  if (typeof modularPackResult === 'string') {
59
59
  try {
60
60
  return JSON.parse(modularPackResult)
61
61
  } catch (e) {
62
62
  console.error('JSON解析失败', e)
63
63
  return {}
64
64
  }
65
65
  }
66
66
  return modularPackResult || {}