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