@conecli/cone-render 0.10.1-shop-beta.4 → 0.10.1-shop-beta.6

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