@conecli/cone-render 0.9.1-shop2.1 → 0.9.1-shop2.11

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 (98) hide show
  1. package/dist/api/index.ts +1 -1
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/environmentType.ts +1 -0
  4. package/dist/common/index.h5.ts +1 -1
  5. package/dist/common/index.jd.ts +1 -1
  6. package/dist/common/index.ts +1 -1
  7. package/dist/common/index.weapp.ts +1 -1
  8. package/dist/common/jssdk.ts +1 -0
  9. package/dist/common/pageType.ts +1 -0
  10. package/dist/common/sgmCustomCode.ts +1 -0
  11. package/dist/common/token/index.h5.ts +1 -1
  12. package/dist/common/token/token.jd.ts +1 -1
  13. package/dist/common/token/token.ts +1 -1
  14. package/dist/common/wxappApi.jd.ts +1 -0
  15. package/dist/components/ErrorBoundary.tsx +1 -1
  16. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  17. package/dist/components/base/CountDown/index.tsx +1 -1
  18. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  19. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  20. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  21. package/dist/components/base/Dialog/index.module.scss +5 -0
  22. package/dist/components/base/Dialog/index.tsx +1 -1
  23. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  24. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  25. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  26. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  27. package/dist/components/base/InViewRender/index.tsx +1 -1
  28. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  29. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  30. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  31. package/dist/components/base/LazyLoadImage/index.h5.module.scss +20 -20
  32. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  33. package/dist/components/base/MobileCommonHeader/index.module.scss +9 -0
  34. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  35. package/dist/components/base/NetworkDataError/const.ts +1 -1
  36. package/dist/components/base/NetworkDataError/index.module.scss +4 -0
  37. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  38. package/dist/components/base/Price/Double/index.tsx +1 -1
  39. package/dist/components/base/Price/index.tsx +1 -1
  40. package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
  41. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  42. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  43. package/dist/components/floorItem.jd.tsx +1 -1
  44. package/dist/components/floorItem.tsx +1 -1
  45. package/dist/components/floorItem.weapp.tsx +1 -1
  46. package/dist/components/isv/Floor/index.tsx +1 -1
  47. package/dist/components/remoteFloorItem.tsx +1 -1
  48. package/dist/interface/common.ts +1 -1
  49. package/dist/interface/component.ts +1 -1
  50. package/dist/interface/jumpEventReport.ts +1 -1
  51. package/dist/interface/service.ts +1 -1
  52. package/dist/interface/utils.ts +1 -1
  53. package/dist/jumpEventReport/base.ts +1 -1
  54. package/dist/jumpEventReport/const.ts +1 -1
  55. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  56. package/dist/jumpEventReport/index.h5.ts +1 -1
  57. package/dist/jumpEventReport/index.jd.ts +1 -1
  58. package/dist/jumpEventReport/index.weapp.ts +1 -1
  59. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  60. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  61. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  62. package/dist/jumpEventReport/web/report.ts +1 -1
  63. package/dist/jumpEventReport/web.base.ts +1 -1
  64. package/dist/jumpEventReport/web.jd.ts +1 -1
  65. package/dist/jumpEventReport/web.jdb.ts +1 -1
  66. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  67. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  68. package/dist/jumpEventReport/web.pc.ts +1 -0
  69. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  70. package/dist/jumpEventReport/web.tjm.ts +1 -0
  71. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  72. package/dist/modules/ContainerFloorList/index.h5.module.scss +17 -1
  73. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  74. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  75. package/dist/open/api/environment.ts +1 -1
  76. package/dist/open/api/index.ts +1 -1
  77. package/dist/open/api/jump copy.ts +1 -1
  78. package/dist/open/api/shopMember.ts +1 -1
  79. package/dist/open/api/track.ts +1 -1
  80. package/dist/open/api/util.ts +1 -1
  81. package/dist/open/components/index.ts +1 -1
  82. package/dist/sass/app.h5.scss +39 -3
  83. package/dist/sass/base.scss +12 -0
  84. package/dist/service/fetchGateway.ts +1 -1
  85. package/dist/service/http/const.ts +1 -1
  86. package/dist/service/requestServer.ts +1 -1
  87. package/dist/utils/connectNativeJsBridge.ts +1 -1
  88. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  89. package/dist/utils/draExceptionAndProfile.ts +1 -1
  90. package/dist/utils/h5Utils.ts +1 -1
  91. package/dist/utils/index.h5.ts +1 -1
  92. package/dist/utils/index.ts +1 -1
  93. package/dist/utils/index.weapp.ts +1 -1
  94. package/dist/utils/jm-common.js +1 -1
  95. package/dist/utils/sgmCodeUtils.ts +1 -0
  96. package/dist/utils/taroRenderUtil.ts +1 -1
  97. package/dist/utils/utils.ts +1 -1
  98. package/package.json +1 -1
@@ -1 +1 @@
1
- import { isH5 } from '../utils'
2
1
  ? 'Terminator_New_Mobile_Shop'
3
2
  : 'W_jdgwxcx_shop'
4
3
  CONFIG_TYPE_NO_LINK = 0,
5
4
  CONFIG_TYPE_SKU_LIST = 1,
6
5
  CONFIG_TYPE_COUPON_LIST = 2,
7
6
  CONFIG_TYPE_CATEGORY = 3,
8
7
  CONFIG_TYPE_JSHOP_MOBILE = 4,
9
8
  CONFIG_TYPE_JSHOP_PC = 5,
10
9
  CONFIG_TYPE_JSHOP_DETAIL = 6,
11
10
  CONFIG_TYPE_CUSTOM_LINK = 7,
12
11
  CONFIG_TYPE_MEMBER = 9,
13
12
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
14
13
  CONFIG_TYPE_SHOP_HOME = 12,
15
14
  CONFIG_TYPE_ANCHOR_POINT = 13,
16
15
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
17
16
  CONFIG_TYPE_MINI_PROGRAM = 18,
18
17
  CONFIG_TYPE_FINANCE_COUPON = 22,
19
18
  CONFIG_TYPE_CATEGORY_PAGE = 25,
19
+ import { isH5, isWxMinAndWxapp } from '../utils'
20
20
  ? 'Terminator_New_Mobile_Shop'
21
21
  : 'W_jdgwxcx_shop'
22
22
  CONFIG_TYPE_NO_LINK = 0,
23
23
  CONFIG_TYPE_SKU_LIST = 1,
24
24
  CONFIG_TYPE_COUPON_LIST = 2,
25
25
  CONFIG_TYPE_CATEGORY = 3,
26
26
  CONFIG_TYPE_JSHOP_MOBILE = 4,
27
27
  CONFIG_TYPE_JSHOP_PC = 5,
28
28
  CONFIG_TYPE_JSHOP_DETAIL = 6,
29
29
  CONFIG_TYPE_CUSTOM_LINK = 7,
30
30
  CONFIG_TYPE_MEMBER = 9,
31
31
  CONFIG_TYPE_SHOP_ACTIVITY = 10,
32
32
  CONFIG_TYPE_SHOP_HOME = 12,
33
33
  CONFIG_TYPE_ANCHOR_POINT = 13,
34
34
  CONFIG_TYPE_SHOPPING_GUIDE = 17,
35
35
  CONFIG_TYPE_MINI_PROGRAM = 18,
36
36
  CONFIG_TYPE_FINANCE_COUPON = 22,
37
37
  CONFIG_TYPE_CATEGORY_PAGE = 25,
@@ -1 +1 @@
1
- import global from '../common'
2
1
  mdExtInfo = {}
3
2
  pageCrowdId: mdExtInfo?.userGroupStr || '',
4
3
  updateRecInfo(floorData, _dataDefines) {
5
4
  const { algoId = '', userGroupStr = '' } = floorData
6
5
  const changeRecInfo =
7
6
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
8
7
  return Object.assign({}, this.recInfo, changeRecInfo, {
9
8
  algoId,
10
9
  moduleCrowdId: userGroupStr
11
10
  })
12
11
  }
13
12
 
14
13
  updateMInfo(mInfo: any = [], floorData) {
15
14
  const { floorExtInfo, moduleId } = floorData
16
15
  const hasFloorInfo = floorExtInfo && moduleId
17
16
  if(Array.isArray(mInfo)){
18
17
  return mInfo.map((item: any) => {
19
18
  item?.jumpUrl && (item.jumpUrl = encodeURIComponent(item.jumpUrl))
20
19
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
21
20
  return item
22
21
  })
23
22
  }else {
24
23
  mInfo?.jumpUrl && (mInfo.jumpUrl = encodeURIComponent(mInfo.jumpUrl))
25
24
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
26
25
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
27
26
  return Object.assign({}, this.mInfo, mInfo)
28
27
  }
29
28
  }
30
29
 
31
30
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
32
31
  return {
33
32
  lstms: []
34
33
  }
35
34
  }
36
35
 
37
36
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
38
37
  return {
39
38
  lstm: [],
40
39
  }
41
40
  }
42
41
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
43
42
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
44
43
 
45
44
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
46
45
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
47
46
  }
47
+ import global from '../common'
48
48
  mdExtInfo = {}
49
49
  const getReportEntrance = isJdApp ? global.info?.openAppData?.sourceInfo?.entrance ?? entrance : entrance
50
50
  const getReportModuleId = isJdApp ? global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId : moduleId
51
51
  pageCrowdId: mdExtInfo?.userGroupStr || '',
52
52
  updateRecInfo(floorData, _dataDefines) {
53
53
  const { algoId = '', userGroupStr = '' } = floorData
54
54
  const changeRecInfo =
55
55
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
56
56
  return Object.assign({}, this.recInfo, changeRecInfo, {
57
57
  algoId,
58
58
  moduleCrowdId: userGroupStr
59
59
  })
60
60
  }
61
61
 
62
62
  updateMInfo(mInfo: any = [], floorData) {
63
63
  const { floorExtInfo, moduleId } = floorData
64
64
  const hasFloorInfo = floorExtInfo && moduleId
65
65
  if(Array.isArray(mInfo)){
66
66
  return mInfo.map((item: any) => {
67
67
  if(item?.jumpUrl){
68
68
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl) ? 'openApp' : encodeURIComponent(item.jumpUrl)
69
69
  }
70
70
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
71
71
  return item
72
72
  })
73
73
  }else {
74
74
  if(mInfo?.jumpUrl){
75
75
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl) ? 'openApp' : encodeURIComponent(mInfo.jumpUrl)
76
76
  }
77
77
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
78
78
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
79
79
  return Object.assign({}, this.mInfo, mInfo)
80
80
  }
81
81
  }
82
82
 
83
83
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
84
84
  return {
85
85
  lstms: []
86
86
  }
87
87
  }
88
88
 
89
89
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
90
90
  return {
91
91
  lstm: [],
92
92
  }
93
93
  }
94
94
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
95
95
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
96
96
 
97
97
  getCustomClickEventInfo(mInfo = {},floorData = {}, etModelInfo = {}){
98
98
  return this.getClickEventInfo(floorData,mInfo,etModelInfo,false,false)
99
99
  }
100
100
 
101
101
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}){
102
102
  return this.getExposureInfo(floorData,mInfo,etModelInfo,false,false)
103
103
  }
104
104
 
105
105
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
106
106
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
107
107
  }
@@ -1 +1 @@
1
- import { isApp, getUrlQuery } from '../utils/jm-common'
2
1
  import('./web.jdjch')
3
2
  .then(({ JdbJumpWebToJdbApp }) => {
4
3
  if (JdbJumpWebToJdbApp) {
5
4
  JumpEventReport = new JdbJumpWebToJdbApp({})
6
5
  resolve(JumpEventReport)
7
6
  }
8
7
  })
9
8
  .catch((err) => {
10
9
  reject(err)
11
10
  })
12
11
  } else {
12
+ import { isApp, getUrlQuery } from '../utils/jm-common'
13
13
  console.log('h5', isReflexToH5, getUrlQuery(window.location.href, 'reflex'))
14
14
  return new Promise((resolve, reject) => {
15
15
  if (isReflexToH5) {
16
16
  import('./web.base')
17
17
  .then(({ JumpEventWebReport }) => {
18
18
  if (JumpEventWebReport) {
19
19
  console.log('加载普通浏览器h5相关跳转事件js')
20
20
  JumpEventReport = new JumpEventWebReport({})
21
21
  resolve(JumpEventReport)
22
22
  }
23
23
  })
24
24
  .catch((err) => {
25
25
  reject(err)
26
26
  })
27
27
  } else {
28
28
  if (isApp('wx') && isApp('mp') && isH5AdnJxMini) {
29
29
  import('./web.jxwxapp')
30
30
  .then(({ JdJumpWebToJxWxapp }) => {
31
31
  if (JdJumpWebToJxWxapp) {
32
32
  JumpEventReport = new JdJumpWebToJxWxapp({})
33
33
  resolve(JumpEventReport)
34
34
  }
35
35
  })
36
36
  .catch((err) => {
37
37
  reject(err)
38
38
  })
39
39
  } else if (isApp('wx') && isApp('mp')) {
40
40
  import('./web.wxapp')
41
41
  .then(({ JdJumpWebToWxapp }) => {
42
42
  if (JdJumpWebToWxapp) {
43
43
  JumpEventReport = new JdJumpWebToWxapp({})
44
44
  resolve(JumpEventReport)
45
45
  }
46
46
  })
47
47
  .catch((err) => {
48
48
  reject(err)
49
49
  })
50
50
  } else if (isApp('jd') && !isApp('jdharmony')) {
51
51
  import('./web.jd')
52
52
  .then(({ JdJumpWebToJdApp }) => {
53
53
  if (JdJumpWebToJdApp) {
54
54
  JumpEventReport = new JdJumpWebToJdApp({})
55
55
  resolve(JumpEventReport)
56
56
  }
57
57
  })
58
58
  .catch((err) => {
59
59
  reject(err)
60
60
  })
61
61
  } else if (isApp('jdb')) {
62
62
  import('./web.jdb')
63
63
  .then(({ JdbJumpWebToJdbApp }) => {
64
64
  if (JdbJumpWebToJdbApp) {
65
65
  JumpEventReport = new JdbJumpWebToJdbApp({})
66
66
  resolve(JumpEventReport)
67
67
  }
68
68
  })
69
69
  .catch((err) => {
70
70
  reject(err)
71
71
  })
72
72
  } else if (isApp('jdjch')) {
73
73
  import('./web.jdjch')
74
74
  .then(({ JdbJumpWebToJdbApp }) => {
75
75
  if (JdbJumpWebToJdbApp) {
76
76
  JumpEventReport = new JdbJumpWebToJdbApp({})
77
77
  resolve(JumpEventReport)
78
78
  }
79
79
  })
80
80
  .catch((err) => {
81
81
  reject(err)
82
82
  })
83
83
  } else if (isApp('tjapp')) {
84
84
  import('./web.tjapp')
85
85
  .then(({ tjJumpWebTotjApp }) => {
86
86
  if (tjJumpWebTotjApp) {
87
87
  console.log('加载特价app内h5相关跳转事件js')
88
88
  JumpEventReport = new tjJumpWebTotjApp({})
89
89
  resolve(JumpEventReport)
90
90
  }
91
91
  })
92
92
  .catch((err) => {
93
93
  reject(err)
94
94
  })
95
95
  } else if (isPc) {
96
96
  import('./web.pc')
97
97
  .then(({ JumpEventWebReport }) => {
98
98
  if (JumpEventWebReport) {
99
99
  JumpEventReport = new JumpEventWebReport({})
100
100
  resolve(JumpEventReport)
101
101
  }
102
102
  })
103
103
  .catch((err) => {
104
104
  reject(err)
105
105
  })
106
106
  } else if (isTjJxM || isTjM) {
107
107
  import('./web.tjm')
108
108
  .then(({ JumpEventTJWebReport }) => {
109
109
  if (JumpEventTJWebReport) {
110
110
  JumpEventReport = new JumpEventTJWebReport({})
111
111
  resolve(JumpEventReport)
112
112
  }
113
113
  })
114
114
  .catch((err) => {
115
115
  reject(err)
116
116
  })
117
117
  } else {
118
118
  import('./web.base')
119
119
  .then(({ JumpEventWebReport }) => {
120
120
  if (JumpEventWebReport) {
121
121
  JumpEventReport = new JumpEventWebReport({})
122
122
  resolve(JumpEventReport)
123
123
  }
124
124
  })
125
125
  .catch((err) => {
126
126
  reject(err)
127
127
  })
128
128
  }
129
129
  }
130
130
  })