@conecli/cone-render 0.10.1-beta.3 → 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 (56) 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/ExposureSmart/index.tsx +1 -1
  10. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  11. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  12. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  13. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  14. package/dist/components/base/LazyLoadImage/index.h5.module.scss +3 -0
  15. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  16. package/dist/components/base/MobileCommonHeader/index.module.scss +8 -0
  17. package/dist/components/base/MobileCommonHeader/index.tsx +1 -1
  18. package/dist/components/base/NetworkDataError/index.module.scss +3 -0
  19. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  20. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  21. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  22. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  23. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  24. package/dist/components/floorItem.tsx +1 -1
  25. package/dist/components/remoteFloorItem.tsx +1 -1
  26. package/dist/interface/common.ts +1 -1
  27. package/dist/interface/component.ts +1 -1
  28. package/dist/interface/jumpEventReport.ts +1 -1
  29. package/dist/interface/service.ts +1 -1
  30. package/dist/jumpEventReport/base.ts +1 -1
  31. package/dist/jumpEventReport/const.ts +1 -1
  32. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  33. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  34. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  35. package/dist/jumpEventReport/web.base.ts +1 -1
  36. package/dist/jumpEventReport/web.jd.ts +1 -1
  37. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  38. package/dist/modules/ContainerFloorList/index.h5.module.scss +1 -0
  39. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  40. package/dist/open/api/device.ts +1 -1
  41. package/dist/open/api/request.ts +1 -1
  42. package/dist/open/api/shopMember.ts +1 -1
  43. package/dist/open/api/util.ts +1 -1
  44. package/dist/open/components/index.ts +1 -1
  45. package/dist/sass/app.h5.scss +5 -0
  46. package/dist/sass/base.scss +45 -0
  47. package/dist/service/requestServer.ts +1 -1
  48. package/dist/utils/connectNativeJsBridge.ts +1 -1
  49. package/dist/utils/h5Utils.ts +1 -1
  50. package/dist/utils/index.h5.ts +1 -1
  51. package/dist/utils/index.ts +1 -1
  52. package/dist/utils/index.weapp.ts +1 -1
  53. package/dist/utils/sgmCodeUtils.ts +1 -1
  54. package/dist/utils/taroRenderUtil.ts +1 -1
  55. package/dist/utils/utils.ts +1 -1
  56. package/package.json +24 -23
@@ -1 +1 @@
1
- import {
2
1
  isMin,
3
2
  isJdMinAndHarmony,
4
3
  isChartH5,
5
4
  isH5AndJdShopViewNativeScroll,
6
5
  isH5AndJdShopViewH5Scroll,
7
6
  isH5AndJdShopH5CustomScrollView,
8
7
  isWxMiniH5View,
9
8
  sliceArrToChunkList,
10
9
  dealAddress,
11
10
  objectToUrlEncode,
12
11
  setLowSmallPicUrl,
13
12
  parseQueryUrlString,
14
13
  countStringify,
15
14
  setTaroStorage,
16
15
  getTaroStorageKeyValue,
17
16
  removeTaroStorageKey,
18
17
  clearTaroStorageKey,
19
18
  getQualityImage,
20
19
  getSystemInfos,
21
20
  getWxAppCookieStr,
22
21
  pxTransformFromData,
23
22
  dealShopContentData,
24
23
  dateFormat,
25
24
  throttle,
26
25
  lodashThrottle,
27
26
  debounce,
28
27
  addHttps,
29
28
  showSuccessToast,
30
29
  showFailToast,
31
30
  showNormalToast,
32
31
  showShopLoading,
33
32
  hideShopLoading,
34
33
  getAppChannelType,
35
34
  formatTabActiveMenuType,
36
35
  filterUrlQueryData,
37
36
  isMemberPage,
38
37
  sgmCustomReport,
39
38
  isOpenJdAppUrl,
40
39
  jdOpenAppParams,
41
40
  createJdOpenAppUrl,
42
41
  isEmpty,
43
42
  getJdAppReportPageSource,
44
43
  isPc,
45
44
  ipLoc_djd,
46
45
  dealJdOpenAppData,
47
46
  jdAppVersionCompare,
48
47
  dealNativePixelToCssPixel,
49
48
  isAppStowShop,
50
49
  return false
51
50
  isJdAndHarmonyDevice,
52
51
  isJdAndroidX5Core,
53
52
  isMin,
54
53
  isJdMinAndHarmony,
55
54
  isChartH5,
56
55
  isH5AndJdShopViewH5Scroll,
57
56
  isH5AndJdShopH5CustomScrollView,
58
57
  isH5AndJingGouMini,
59
58
  urlCookie,
60
59
  isMemberPage,
61
60
  sgmCustomReport,
62
61
  isOpenJdAppUrl,
63
62
  jdOpenAppParams,
64
63
  createJdOpenAppUrl,
65
64
  isEmpty,
66
65
  isImageOptimizeEnable,
67
66
  isPc,
68
67
  ipLoc_djd,
69
68
  isTjM,
70
69
  isTjJxM,
71
70
  isTjScence,
72
71
  isH5AdnJxMini,
73
72
  isTJApp,
74
73
  isH5AdnHaoWuJie,
75
74
  tjChannel,
76
75
  dealJdOpenAppData,
77
76
  jdAppVersionCompare,
78
77
  dealNativePixelToCssPixel,
79
78
  isAppStowShop,
80
79
  getSgmCustomCode
80
+ import {
81
81
  isJdApp,
82
82
  isWxApp,
83
83
  isIosDevice,
84
84
  isAndroidDevice,
85
85
  isJdAndIosDevice,
86
86
  isJdAndAndroidDevice,
87
87
  isWxMin,
88
88
  isMin,
89
89
  isJdMinAndHarmony,
90
90
  isWxMinAndWxapp,
91
91
  isJdMin,
92
92
  isH5,
93
93
  isH5AndJdShopView,
94
94
  isChartH5,
95
95
  isH5AndJdShopViewNativeScroll,
96
96
  isH5AndJdShopViewH5Scroll,
97
97
  isH5AndJdShopH5CustomScrollView,
98
98
  isWxMiniH5View,
99
99
  sliceArrToChunkList,
100
100
  dealAddress,
101
101
  objectToUrlEncode,
102
102
  setLowSmallPicUrl,
103
103
  parseQueryUrlString,
104
104
  countStringify,
105
105
  setTaroStorage,
106
106
  getTaroStorageKeyValue,
107
107
  removeTaroStorageKey,
108
108
  clearTaroStorageKey,
109
109
  getQualityImage,
110
110
  getSystemInfos,
111
111
  getWxAppCookieStr,
112
112
  pxTransformFromData,
113
113
  dealShopContentData,
114
114
  dateFormat,
115
115
  throttle,
116
116
  lodashThrottle,
117
117
  debounce,
118
118
  addHttps,
119
119
  showSuccessToast,
120
120
  showFailToast,
121
121
  showNormalToast,
122
122
  showShopLoading,
123
123
  hideShopLoading,
124
124
  getAppChannelType,
125
125
  formatTabActiveMenuType,
126
126
  getAvifSupport,
127
127
  getWebpSupport,
128
128
  filterUrlQueryData,
129
129
  isMemberPage,
130
130
  sgmCustomReport,
131
131
  isOpenJdAppUrl,
132
132
  jdOpenAppParams,
133
133
  createJdOpenAppUrl,
134
134
  isEmpty,
135
135
  getJdAppReportPageSource,
136
136
  isAppClassifyPage,
137
137
  isPc,
138
138
  ipLoc_djd,
139
139
  dealJdOpenAppData,
140
140
  jdAppVersionCompare,
141
141
  dealNativePixelToCssPixel,
142
142
  isAppStowShop,
143
143
  isImageOptimizeEnable,
144
144
  console.warn(
145
145
  "� ~~ file: index.ts:93 ~~ 通用的isInGrayscale还没有实现,不应该被调用!"
146
146
  );
147
147
  return false;
148
148
  isJdApp,
149
149
  isWxApp,
150
150
  isIosDevice,
151
151
  isAndroidDevice,
152
152
  isJdAndIosDevice,
153
153
  isJdAndAndroidDevice,
154
154
  isJdAndHarmonyDevice,
155
155
  isJdAndroidX5Core,
156
156
  isWxMin,
157
157
  isMin,
158
158
  isJdMinAndHarmony,
159
159
  isWxMinAndWxapp,
160
160
  isJdMin,
161
161
  isH5,
162
162
  isH5AndJdShopView,
163
163
  isChartH5,
164
164
  isH5AndJdShopViewNativeScroll,
165
165
  isH5AndJdShopViewH5Scroll,
166
166
  isH5AndJdShopH5CustomScrollView,
167
167
  isH5AndJingGouMini,
168
168
  isWxMiniH5View,
169
169
  urlCookie,
170
170
  sliceArrToChunkList,
171
171
  dealAddress,
172
172
  objectToUrlEncode,
173
173
  parseQueryUrlString,
174
174
  setLowSmallPicUrl,
175
175
  countStringify,
176
176
  setTaroStorage,
177
177
  getTaroStorageKeyValue,
178
178
  removeTaroStorageKey,
179
179
  clearTaroStorageKey,
180
180
  getQualityImage,
181
181
  getSystemInfos,
182
182
  getWxAppCookieStr,
183
183
  pxTransformFromData,
184
184
  dealShopContentData,
185
185
  dateFormat,
186
186
  throttle,
187
187
  lodashThrottle,
188
188
  debounce,
189
189
  addHttps,
190
190
  showSuccessToast,
191
191
  showFailToast,
192
192
  showNormalToast,
193
193
  showShopLoading,
194
194
  hideShopLoading,
195
195
  stopNativeScrollEvent,
196
196
  getAppChannelType,
197
197
  formatTabActiveMenuType,
198
198
  getAvifSupport,
199
199
  getWebpSupport,
200
200
  filterUrlQueryData,
201
201
  isMemberPage,
202
202
  getFloorDataToDataDefines,
203
203
  sgmCustomReport,
204
204
  isOpenJdAppUrl,
205
205
  jdOpenAppParams,
206
206
  createJdOpenAppUrl,
207
207
  isEmpty,
208
208
  isAppClassifyPage,
209
209
  isAppHomeForMarketPage,
210
210
  getJdAppReportPageSource,
211
211
  isImageOptimizeEnable,
212
212
  isPc,
213
213
  ipLoc_djd,
214
214
  isTjM,
215
215
  isTjJxM,
216
216
  isTjScence,
217
217
  isH5AdnJxMini,
218
218
  isTJApp,
219
219
  isH5AdnHaoWuJie,
220
220
  tjChannel,
221
221
  dealJdOpenAppData,
222
222
  jdAppVersionCompare,
223
223
  dealNativePixelToCssPixel,
224
224
  isAppStowShop,
225
225
  getSgmCustomCode,
226
226
  handleSgmCodeTaroVersion,
227
227
  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
  isH5,
12
11
  isH5AndJdShopView,
13
12
  isChartH5,
14
13
  isH5AndJdShopViewNativeScroll,
15
14
  isH5AndJdShopViewH5Scroll,
16
15
  isH5AndJdShopH5CustomScrollView,
17
16
  isWxMiniH5View,
18
17
  sliceArrToChunkList,
19
18
  dealAddress,
20
19
  objectToUrlEncode,
21
20
  parseQueryUrlString,
22
21
  setLowSmallPicUrl,
23
22
  setTaroStorage,
24
23
  getTaroStorageKeyValue,
25
24
  removeTaroStorageKey,
26
25
  clearTaroStorageKey,
27
26
  getQualityImage,
28
27
  countStringify,
29
28
  getSystemInfos,
30
29
  getWxAppCookieStr,
31
30
  pxTransformFromData,
32
31
  dealShopContentData,
33
32
  dateFormat,
34
33
  throttle,
35
34
  lodashThrottle,
36
35
  debounce,
37
36
  addHttps,
38
37
  showSuccessToast,
39
38
  showFailToast,
40
39
  showNormalToast,
41
40
  showShopLoading,
42
41
  hideShopLoading,
43
42
  getAppChannelType,
44
43
  formatTabActiveMenuType,
45
44
  filterUrlQueryData,
46
45
  sgmCustomReport,
47
46
  isOpenJdAppUrl,
48
47
  jdOpenAppParams,
49
48
  createJdOpenAppUrl,
50
49
  isEmpty,
51
50
  getJdAppReportPageSource,
52
51
  isMemberPage,
53
52
  isAppClassifyPage,
54
53
  dealJdOpenAppData,
55
54
  jdAppVersionCompare,
56
55
  dealNativePixelToCssPixel
57
56
  isJdAndHarmonyDevice,
58
57
  isJdAndroidX5Core,
59
58
  isH5AndJdShopViewH5Scroll,
60
59
  isH5AndJdShopH5CustomScrollView,
61
60
  isH5AndJingGouMini,
62
61
  urlCookie,
63
62
  sgmCustomReport,
64
63
  isOpenJdAppUrl,
65
64
  jdOpenAppParams,
66
65
  createJdOpenAppUrl,
67
66
  isEmpty,
68
67
  getJdAppReportPageSource,
69
68
  isMemberPage,
70
69
  isAppClassifyPage,
71
70
  isH5AdnJxMini,
72
71
  isPc,
73
72
  dealJdOpenAppData,
74
73
  jdAppVersionCompare,
75
74
  dealNativePixelToCssPixel,
76
75
  getSgmCustomCode
76
+ import {
77
77
  isJdApp,
78
78
  isWxApp,
79
79
  isIosDevice,
80
80
  isAndroidDevice,
81
81
  isJdAndIosDevice,
82
82
  isJdAndAndroidDevice,
83
83
  isWxMin,
84
84
  isWxMinAndWxapp,
85
85
  isJdMin,
86
86
  isJdMinAndHarmony,
87
87
  isH5,
88
88
  isH5AndJdShopView,
89
89
  isChartH5,
90
90
  isH5AndJdShopViewNativeScroll,
91
91
  isH5AndJdShopViewH5Scroll,
92
92
  isH5AndJdShopH5CustomScrollView,
93
93
  isWxMiniH5View,
94
94
  sliceArrToChunkList,
95
95
  dealAddress,
96
96
  objectToUrlEncode,
97
97
  parseQueryUrlString,
98
98
  setLowSmallPicUrl,
99
99
  setTaroStorage,
100
100
  getTaroStorageKeyValue,
101
101
  removeTaroStorageKey,
102
102
  clearTaroStorageKey,
103
103
  getQualityImage,
104
104
  countStringify,
105
105
  getSystemInfos,
106
106
  getWxAppCookieStr,
107
107
  pxTransformFromData,
108
108
  dealShopContentData,
109
109
  dateFormat,
110
110
  throttle,
111
111
  lodashThrottle,
112
112
  debounce,
113
113
  addHttps,
114
114
  showSuccessToast,
115
115
  showFailToast,
116
116
  showNormalToast,
117
117
  showShopLoading,
118
118
  hideShopLoading,
119
119
  getAppChannelType,
120
120
  formatTabActiveMenuType,
121
121
  getAvifSupport,
122
122
  getWebpSupport,
123
123
  filterUrlQueryData,
124
124
  sgmCustomReport,
125
125
  isOpenJdAppUrl,
126
126
  jdOpenAppParams,
127
127
  createJdOpenAppUrl,
128
128
  isEmpty,
129
129
  getJdAppReportPageSource,
130
130
  isMemberPage,
131
131
  isAppClassifyPage,
132
132
  dealJdOpenAppData,
133
133
  jdAppVersionCompare,
134
134
  dealNativePixelToCssPixel,
135
135
  isImageOptimizeEnable,
136
136
  console.warn(
137
137
  "� ~~ file: index.ts:93 ~~ wxapp的isInGrayscale还没有实现,不应该被调用!"
138
138
  );
139
139
  return false;
140
140
  isJdApp,
141
141
  isWxApp,
142
142
  isIosDevice,
143
143
  isAndroidDevice,
144
144
  isJdAndIosDevice,
145
145
  isJdAndAndroidDevice,
146
146
  isJdAndHarmonyDevice,
147
147
  isJdAndroidX5Core,
148
148
  isWxMin,
149
149
  isWxMinAndWxapp,
150
150
  isJdMin,
151
151
  isMin,
152
152
  isJdMinAndHarmony,
153
153
  isH5,
154
154
  isH5AndJdShopView,
155
155
  isChartH5,
156
156
  isH5AndJdShopViewNativeScroll,
157
157
  isH5AndJdShopViewH5Scroll,
158
158
  isH5AndJdShopH5CustomScrollView,
159
159
  isH5AndJingGouMini,
160
160
  isWxMiniH5View,
161
161
  urlCookie,
162
162
  sliceArrToChunkList,
163
163
  dealAddress,
164
164
  objectToUrlEncode,
165
165
  parseQueryUrlString,
166
166
  setLowSmallPicUrl,
167
167
  setTaroStorage,
168
168
  getTaroStorageKeyValue,
169
169
  removeTaroStorageKey,
170
170
  clearTaroStorageKey,
171
171
  getQualityImage,
172
172
  countStringify,
173
173
  getSystemInfos,
174
174
  getWxAppCookieStr,
175
175
  pxTransformFromData,
176
176
  dealShopContentData,
177
177
  dateFormat,
178
178
  throttle,
179
179
  lodashThrottle,
180
180
  debounce,
181
181
  addHttps,
182
182
  showSuccessToast,
183
183
  showFailToast,
184
184
  showNormalToast,
185
185
  showShopLoading,
186
186
  hideShopLoading,
187
187
  stopNativeScrollEvent,
188
188
  getAppChannelType,
189
189
  formatTabActiveMenuType,
190
190
  getAvifSupport,
191
191
  getWebpSupport,
192
192
  filterUrlQueryData,
193
193
  getFloorDataToDataDefines,
194
194
  sgmCustomReport,
195
195
  isOpenJdAppUrl,
196
196
  jdOpenAppParams,
197
197
  createJdOpenAppUrl,
198
198
  isEmpty,
199
199
  getJdAppReportPageSource,
200
200
  isMemberPage,
201
201
  isAppClassifyPage,
202
202
  isAppHomeForMarketPage,
203
203
  isImageOptimizeEnable,
204
204
  isPc,
205
205
  isTjM,
206
206
  isTjJxM,
207
207
  isTjScence,
208
208
  isH5AdnJxMini,
209
209
  isTJApp,
210
210
  isH5AdnHaoWuJie,
211
211
  tjChannel,
212
212
  dealJdOpenAppData,
213
213
  jdAppVersionCompare,
214
214
  dealNativePixelToCssPixel,
215
215
  getSgmCustomCode,
216
216
  handleSgmCodeTaroVersion,
217
217
  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 || {}