@conecli/cone-render 0.9.1-isv2.0 → 0.9.1-isv2.1

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 (102) 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/jdplayerSdk.ts +1 -0
  9. package/dist/common/jssdk.ts +1 -0
  10. package/dist/common/pageType.ts +1 -0
  11. package/dist/common/sgmCustomCode.ts +1 -0
  12. package/dist/common/token/index.h5.ts +1 -1
  13. package/dist/common/token/token.jd.ts +1 -1
  14. package/dist/common/token/token.ts +1 -1
  15. package/dist/common/wxappApi.jd.ts +1 -0
  16. package/dist/components/ErrorBoundary.tsx +1 -1
  17. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  18. package/dist/components/base/CountDown/index.tsx +1 -1
  19. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  20. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  21. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  22. package/dist/components/base/CustomVideo/index.tsx +1 -1
  23. package/dist/components/base/Dialog/index.module.scss +5 -0
  24. package/dist/components/base/Dialog/index.tsx +1 -1
  25. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  26. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  27. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  28. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  29. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  30. package/dist/components/base/InViewRender/index.tsx +1 -1
  31. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
  32. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  33. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  34. package/dist/components/base/LazyLoadImage/index.h5.module.scss +20 -20
  35. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  36. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  37. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  38. package/dist/components/base/NetworkDataError/const.ts +1 -1
  39. package/dist/components/base/NetworkDataError/index.module.scss +4 -0
  40. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  41. package/dist/components/base/Price/Double/index.tsx +1 -1
  42. package/dist/components/base/Price/index.tsx +1 -1
  43. package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
  44. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  45. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  46. package/dist/components/floorItem.jd.tsx +1 -1
  47. package/dist/components/floorItem.tsx +1 -1
  48. package/dist/components/floorItem.weapp.tsx +1 -1
  49. package/dist/components/isv/Floor/index.tsx +1 -1
  50. package/dist/components/remoteFloorItem.tsx +1 -1
  51. package/dist/interface/common.ts +1 -1
  52. package/dist/interface/component.ts +1 -1
  53. package/dist/interface/jumpEventReport.ts +1 -1
  54. package/dist/interface/service.ts +1 -1
  55. package/dist/interface/utils.ts +1 -1
  56. package/dist/jumpEventReport/base.ts +1 -1
  57. package/dist/jumpEventReport/const.ts +1 -1
  58. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  59. package/dist/jumpEventReport/index.h5.ts +1 -1
  60. package/dist/jumpEventReport/index.jd.ts +1 -1
  61. package/dist/jumpEventReport/index.weapp.ts +1 -1
  62. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  63. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  64. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  65. package/dist/jumpEventReport/web/report.ts +1 -1
  66. package/dist/jumpEventReport/web.base.ts +1 -1
  67. package/dist/jumpEventReport/web.jd.ts +1 -1
  68. package/dist/jumpEventReport/web.jdb.ts +1 -1
  69. package/dist/jumpEventReport/web.jdjch.ts +1 -1
  70. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  71. package/dist/jumpEventReport/web.pc.ts +1 -0
  72. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  73. package/dist/jumpEventReport/web.tjm.ts +1 -0
  74. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  75. package/dist/modules/ContainerFloorList/index.h5.module.scss +17 -1
  76. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  77. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  78. package/dist/open/api/environment.ts +1 -1
  79. package/dist/open/api/index.ts +1 -1
  80. package/dist/open/api/jump copy.ts +1 -1
  81. package/dist/open/api/request.ts +1 -1
  82. package/dist/open/api/shopMember.ts +1 -1
  83. package/dist/open/api/track.ts +1 -1
  84. package/dist/open/api/util.ts +1 -1
  85. package/dist/open/components/index.ts +1 -1
  86. package/dist/sass/app.h5.scss +44 -3
  87. package/dist/sass/base.scss +12 -0
  88. package/dist/service/fetchGateway.ts +1 -1
  89. package/dist/service/http/const.ts +1 -1
  90. package/dist/service/requestServer.ts +1 -1
  91. package/dist/utils/connectNativeJsBridge.ts +1 -1
  92. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  93. package/dist/utils/draExceptionAndProfile.ts +1 -1
  94. package/dist/utils/h5Utils.ts +1 -1
  95. package/dist/utils/index.h5.ts +1 -1
  96. package/dist/utils/index.ts +1 -1
  97. package/dist/utils/index.weapp.ts +1 -1
  98. package/dist/utils/jm-common.js +1 -1
  99. package/dist/utils/sgmCodeUtils.ts +1 -0
  100. package/dist/utils/utils.ts +1 -1
  101. package/package.json +1 -1
  102. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  floorVideInfo: {},
3
2
  public config: {
4
3
  [key: string]: any
5
4
  }
6
5
  public lazyContainer: CommonInterFace.lazyContainer
7
6
  this.config = {}
8
7
 
9
8
  getLoginCookie(updateKey = 'wxapp') {
10
9
  return new Promise((resolve) => {
11
10
  console.log("开始获取更新wxapp中的cookie信息", updateKey)
12
11
  if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
13
12
  console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
14
13
  resolve({
15
14
  wqCookie: this.config.wqCookie,
16
15
  wqCookieStr: this.config.wqCookieStr,
17
16
  })
18
17
  }else {
19
18
  if (isPublishToWxapp) {
20
19
  const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
21
20
  if (getWxappCookieObj) {
22
21
  const getCookieObj = getWxappCookieObj['_data']
23
22
  const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
24
23
  const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
25
24
  this.info.loginState = true
26
25
  this.info.userInfo.wqCookie = wqCookieStr
27
26
  this.info.userInfo.wqVisitkey = visitkey
28
27
  console.log('获取用户完整cookie信息', getCookieObj)
29
28
  const getUserAddress = this.wxAppUserInfoInstance.getAddress()
30
29
  console.log('获取微信用户地址信息', getUserAddress)
31
30
  if (getUserAddress) {
32
31
  this.info.pageInfo.address = getUserAddress?.areaId
33
32
  this.info.pageInfo.addressCommaStr = this.info.pageInfo
34
33
  .address
35
34
  ? this.info.pageInfo.address.replace(/_/g, ',')
36
35
  : ''
37
36
  this.info.pageInfo.un_area = this.info.pageInfo.address
38
37
  Taro.eventCenter.trigger(
39
38
  TaroEventType.USER_AREA_UPDATE,
40
39
  this.info.pageInfo.address,
41
40
  )
42
41
  }
43
42
  if(this.miniAppLogInstance){
44
43
  this.miniAppLogInstance.set({
45
44
  account: pin,
46
45
  unionid: wq_unionid,
47
46
  openid: wxapp_openid,
48
47
  })
49
48
  }
50
49
  this.config.wqCookie = wqCookie
51
50
  this.config.wqCookieStr = wqCookieStr
52
51
  this.config.getWqCookieKey = updateKey
53
52
  console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
54
53
  resolve({
55
54
  wqCookie,
56
55
  wqCookieStr,
57
56
  })
58
57
  }else {
59
58
  console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
60
59
  resolve({
61
60
  wqCookie: false,
62
61
  wqCookieStr: false,
63
62
  })
64
63
  }
65
64
  }else {
66
65
  resolve({
67
66
  wqCookie: false,
68
67
  wqCookieStr: false,
69
68
  })
70
69
  }
71
70
  }
72
71
  })
73
72
  }
74
73
  return this.getLoginCookie()
74
+ import Taro from '@tarojs/taro'
75
75
  floorVideInfo: {},
76
76
  productVideInfo: {},
77
77
  isVipShop: false,
78
78
  isJdShowNativeImmersivePlayer: false,
79
79
  pageIdxHeightInfo: {
80
80
  list: []
81
81
  },
82
82
  jdBottomBarHeight: 0,
83
83
  jdNativeHeaderHeight: 0,
84
84
  openAppData: {}
85
85
  public config: {
86
86
  [key: string]: any
87
87
  }
88
88
  public lazyContainer: CommonInterFace.lazyContainer
89
89
  public renderedIsvComponents: CommonInterFace.renderedIsvComponents
90
90
  this.config = {}
91
91
  this.renderedIsvComponents = {}
92
92
 
93
93
  taskTimeoutPromise(callBack, timeout = 2000){
94
94
  return new Promise((resolve) => {
95
95
  setTimeout(() => {
96
96
  const getCallBackRes = typeof callBack === 'function' && callBack()
97
97
  return resolve(getCallBackRes || false)
98
98
  }, timeout)
99
99
  })
100
100
  }
101
101
  removeJdAndroidRquestEventForTouchStart(){}
102
102
  this.info.sysInfo['wifiVideoAutoPlay'] = false
103
103
  checkStatusAndLogin(options = {}) {
104
104
 
105
105
  checkJdStatusAndLogin(options){
106
106
  return this.checkStatusAndLogin(options)
107
107
  }
108
108
 
109
109
  doLoginForJdPin(options = {}) {
110
110
  return this.doLogin(options)
111
111
  }
112
112
 
113
113
  getLoginCookie(updateKey = 'wxapp') {
114
114
  return new Promise((resolve) => {
115
115
  console.log("开始获取更新wxapp中的cookie信息", updateKey)
116
116
  if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
117
117
  console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
118
118
  resolve({
119
119
  wqCookie: this.config.wqCookie,
120
120
  wqCookieStr: this.config.wqCookieStr,
121
121
  })
122
122
  }else {
123
123
  if (isPublishToWxapp) {
124
124
  const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
125
125
  if (getWxappCookieObj) {
126
126
  const getCookieObj = getWxappCookieObj['_data']
127
127
  const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
128
128
  const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
129
129
  this.info.loginState = true
130
130
  this.info.userInfo.wqCookie = wqCookieStr
131
131
  this.info.userInfo.wqVisitkey = visitkey
132
132
  console.log('获取用户完整cookie信息', getCookieObj)
133
133
  const getUserAddress = this.wxAppUserInfoInstance.getAddress()
134
134
  console.log('获取微信用户地址信息', getUserAddress)
135
135
  if (getUserAddress) {
136
136
  this.info.pageInfo.address = getUserAddress?.areaId
137
137
  this.info.pageInfo.addressCommaStr = this.info.pageInfo
138
138
  .address
139
139
  ? this.info.pageInfo.address.replace(/_/g, ',')
140
140
  : ''
141
141
  this.info.pageInfo.un_area = this.info.pageInfo.address
142
142
  Taro.eventCenter.trigger(
143
143
  TaroEventType.USER_AREA_UPDATE,
144
144
  this.info.pageInfo.address,
145
145
  )
146
146
  }
147
147
  if(this.miniAppLogInstance){
148
148
  this.miniAppLogInstance.set({
149
149
  account: pin,
150
150
  unionid: wq_unionid,
151
151
  openid: wxapp_openid,
152
152
  })
153
153
  }
154
154
  this.config.wqCookie = wqCookie
155
155
  this.config.wqCookieStr = wqCookieStr
156
156
  this.config.getWqCookieKey = updateKey
157
157
  console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
158
158
  resolve({
159
159
  wqCookie,
160
160
  wqCookieStr,
161
161
  })
162
162
  }else {
163
163
  console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
164
164
  resolve({
165
165
  wqCookie: false,
166
166
  wqCookieStr: false,
167
167
  })
168
168
  }
169
169
  }else {
170
170
  resolve({
171
171
  wqCookie: false,
172
172
  wqCookieStr: false,
173
173
  })
174
174
  }
175
175
  }
176
176
  })
177
177
  }
178
178
  return this.getLoginCookie()
179
179
 
180
180
  getAddressCachePromise = () => {
181
181
  return Promise.reject("该方法只在APP内适用")
182
182
  }
183
183
 
184
184
  getDynamicConfig(key: string){
185
185
  console.warn('调用默认的 getDynamicConfig(),注意,此方法还未实现!')
186
186
  return null
187
187
  }