@conecli/cone-render 0.9.1-shop2.7 → 0.9.1-shop2.8

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 (40) hide show
  1. package/dist/common/const.ts +1 -1
  2. package/dist/common/index.h5.ts +1 -1
  3. package/dist/common/index.ts +1 -1
  4. package/dist/common/token/token.ts +1 -1
  5. package/dist/components/base/CountDown/index.tsx +1 -1
  6. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  7. package/dist/components/base/Dialog/index.module.scss +5 -0
  8. package/dist/components/base/Dialog/index.tsx +1 -1
  9. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  12. package/dist/components/remoteFloorItem.tsx +1 -1
  13. package/dist/interface/common.ts +1 -1
  14. package/dist/interface/component.ts +1 -1
  15. package/dist/interface/jumpEventReport.ts +1 -1
  16. package/dist/jumpEventReport/base.ts +1 -1
  17. package/dist/jumpEventReport/const.ts +1 -1
  18. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  19. package/dist/jumpEventReport/index.weapp.ts +1 -1
  20. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  21. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  22. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  23. package/dist/jumpEventReport/web/report.ts +1 -1
  24. package/dist/jumpEventReport/web.base.ts +1 -1
  25. package/dist/jumpEventReport/web.jd.ts +1 -1
  26. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  27. package/dist/open/api/jump copy.ts +1 -1
  28. package/dist/open/api/shopMember.ts +1 -1
  29. package/dist/open/api/track.ts +1 -1
  30. package/dist/open/api/util.ts +1 -1
  31. package/dist/sass/app.h5.scss +39 -3
  32. package/dist/service/requestServer.ts +1 -1
  33. package/dist/utils/connectNativeJsBridge.ts +1 -1
  34. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  35. package/dist/utils/h5Utils.ts +1 -1
  36. package/dist/utils/index.h5.ts +1 -1
  37. package/dist/utils/index.ts +1 -1
  38. package/dist/utils/index.weapp.ts +1 -1
  39. package/dist/utils/utils.ts +1 -1
  40. package/package.json +1 -1
@@ -1 +1 @@
1
- import { isH5,isWxMinAndWxapp } 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
  const getReportEntrance = isJdApp ? global.info?.openAppData?.sourceInfo?.entrance ?? entrance : entrance
4
3
  const getReportModuleId = isJdApp ? global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId : moduleId
5
4
  pageCrowdId: mdExtInfo?.userGroupStr || '',
6
5
  updateRecInfo(floorData, _dataDefines) {
7
6
  const { algoId = '', userGroupStr = '' } = floorData
8
7
  const changeRecInfo =
9
8
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
10
9
  return Object.assign({}, this.recInfo, changeRecInfo, {
11
10
  algoId,
12
11
  moduleCrowdId: userGroupStr
13
12
  })
14
13
  }
15
14
 
16
15
  updateMInfo(mInfo: any = [], floorData) {
17
16
  const { floorExtInfo, moduleId } = floorData
18
17
  const hasFloorInfo = floorExtInfo && moduleId
19
18
  if(Array.isArray(mInfo)){
20
19
  return mInfo.map((item: any) => {
21
20
  if(item?.jumpUrl){
22
21
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl) ? 'openApp' : encodeURIComponent(item.jumpUrl)
23
22
  }
24
23
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
25
24
  return item
26
25
  })
27
26
  }else {
28
27
  if(mInfo?.jumpUrl){
29
28
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl) ? 'openApp' : encodeURIComponent(mInfo.jumpUrl)
30
29
  }
31
30
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
32
31
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
33
32
  return Object.assign({}, this.mInfo, mInfo)
34
33
  }
35
34
  }
36
35
 
37
36
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
38
37
  return {
39
38
  lstms: []
40
39
  }
41
40
  }
42
41
 
43
42
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
44
43
  return {
45
44
  lstm: [],
46
45
  }
47
46
  }
48
47
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
49
48
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
50
49
 
51
50
  getCustomClickEventInfo(mInfo = {},floorData = {}, etModelInfo = {}){
52
51
  return this.getClickEventInfo(floorData,mInfo,etModelInfo,false,false)
53
52
  }
54
53
 
55
54
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}){
56
55
  return this.getExposureInfo(floorData,mInfo,etModelInfo,false,false)
57
56
  }
58
57
 
59
58
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
60
59
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
61
60
  }
61
+ import global from '../common'
62
62
  mdExtInfo = {}
63
63
  const getReportEntrance = isJdApp ? global.info?.openAppData?.sourceInfo?.entrance ?? entrance : entrance
64
64
  const getReportModuleId = isJdApp ? global.info?.openAppData?.sourceInfo?.moduleId ?? moduleId : moduleId
65
65
  pageCrowdId: mdExtInfo?.userGroupStr || '',
66
66
  updateRecInfo(floorData, _dataDefines) {
67
67
  const { algoId = '', userGroupStr = '' } = floorData
68
68
  const changeRecInfo =
69
69
  this.sectionTabData[this.sectionTabType]?.recInfo || {}
70
70
  return Object.assign({}, this.recInfo, changeRecInfo, {
71
71
  algoId,
72
72
  moduleCrowdId: userGroupStr
73
73
  })
74
74
  }
75
75
 
76
76
  updateMInfo(mInfo: any = [], floorData) {
77
77
  const { floorExtInfo, moduleId } = floorData
78
78
  const hasFloorInfo = floorExtInfo && moduleId
79
79
  if(Array.isArray(mInfo)){
80
80
  return mInfo.map((item: any) => {
81
81
  if(item?.jumpUrl){
82
82
  item.jumpUrl = /openApp\.jdMobile/i.test(item.jumpUrl) ? 'openApp' : encodeURIComponent(item.jumpUrl)
83
83
  }
84
84
  hasFloorInfo && (item.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
85
85
  return item
86
86
  })
87
87
  }else {
88
88
  if(mInfo?.jumpUrl){
89
89
  mInfo.jumpUrl = /openApp\.jdMobile/i.test(mInfo.jumpUrl) ? 'openApp' : encodeURIComponent(mInfo.jumpUrl)
90
90
  }
91
91
  hasFloorInfo && (mInfo.busid = `${floorExtInfo?.moduleFlag}@${moduleId}`)
92
92
  !mInfo.hasOwnProperty('pos') && (mInfo.pos = 0)
93
93
  return Object.assign({}, this.mInfo, mInfo)
94
94
  }
95
95
  }
96
96
 
97
97
  updateEtModelExposureInfo(floorData,_dataDefines,etModleArr,mInfoArr) {
98
98
  return {
99
99
  lstms: []
100
100
  }
101
101
  }
102
102
 
103
103
  updateEtModelClickInfo(floorData, _dataDefines, etModleInfo = {}, mInfo) {
104
104
  return {
105
105
  lstm: [],
106
106
  }
107
107
  }
108
108
  return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
109
109
  return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
110
110
 
111
111
  getCustomClickEventInfo(mInfo = {},floorData = {}, etModelInfo = {}){
112
112
  return this.getClickEventInfo(floorData,mInfo,etModelInfo,false,false)
113
113
  }
114
114
 
115
115
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}){
116
116
  return this.getExposureInfo(floorData,mInfo,etModelInfo,false,false)
117
117
  }
118
118
 
119
119
  getCustomClickEventInfo(mInfo = {},floorData = {}, etModelInfo = {}){
120
120
  return this.getClickEventInfo(floorData,mInfo,etModelInfo,false,false)
121
121
  }
122
122
 
123
123
  getCustomExposureInfo(mInfo = {}, floorData = {}, etModelInfo = {}){
124
124
  return this.getExposureInfo(floorData,mInfo,etModelInfo,false,false)
125
125
  }
126
126
 
127
127
  getFloorPointIndexClassName(floorData, index = 0, otherTip = '') {
128
128
  return isChartH5 ? (floorData && floorData?.uid ? `J_chart_floor_${floorData.uid}_point_${otherTip ? otherTip + '_' : ''}${index}` : '') : ''
129
129
  }