@conecli/cone-render 0.9.1-shop2.15 → 0.9.1-shop2.18

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/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/components/base/LazyLoadImage/index.h5.module.scss +3 -0
  9. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  10. package/dist/components/decorate/DecorateFloorModule/index.module.scss +11 -0
  11. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  12. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  13. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  14. package/dist/components/floorItem.tsx +1 -1
  15. package/dist/interface/common.ts +1 -1
  16. package/dist/interface/component.ts +1 -1
  17. package/dist/interface/jumpEventReport.ts +1 -1
  18. package/dist/interface/service.ts +1 -1
  19. package/dist/jumpEventReport/base.ts +1 -1
  20. package/dist/jumpEventReport/const.ts +1 -1
  21. package/dist/jumpEventReport/index.jd.ts +1 -1
  22. package/dist/jumpEventReport/index.weapp.ts +1 -1
  23. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  24. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  25. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  26. package/dist/jumpEventReport/web.base.ts +1 -1
  27. package/dist/jumpEventReport/web.jd.ts +1 -1
  28. package/dist/jumpEventReport/web.tjm.ts +1 -1
  29. package/dist/modules/ContainerFloorList/index.h5.module.scss +1 -1
  30. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  31. package/dist/open/api/device.ts +1 -1
  32. package/dist/sass/base.scss +45 -0
  33. package/dist/service/requestServer.ts +1 -1
  34. package/dist/utils/connectNativeJsBridge.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 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
  floorVideInfo: {},
116
116
  productVideInfo: {},
117
117
  isVipShop: false,
118
118
  isJdShowNativeImmersivePlayer: false,
119
119
  pageIdxHeightInfo: {
120
120
  list: []
121
121
  },
122
122
  jdBottomBarHeight: 0,
123
123
  jdNativeHeaderHeight: 0,
124
124
  openAppData: {}
125
125
  public config: {
126
126
  [key: string]: any
127
127
  }
128
128
  public lazyContainer: CommonInterFace.lazyContainer
129
129
  public renderedIsvComponents: CommonInterFace.renderedIsvComponents
130
130
  public loadJsSdkList: Array<any>
131
131
  this.config = {}
132
132
  this.loadJsSdkList = []
133
133
  this.renderedIsvComponents = {}
134
134
 
135
135
  taskTimeoutPromise(callBack, timeout = 2000){
136
136
  return new Promise((resolve) => {
137
137
  setTimeout(() => {
138
138
  const getCallBackRes = typeof callBack === 'function' && callBack()
139
139
  return resolve(getCallBackRes || false)
140
140
  }, timeout)
141
141
  })
142
142
  }
143
143
  removeJdAndroidRquestEventForTouchStart(){}
144
144
  this.info.sysInfo['wifiVideoAutoPlay'] = false
145
145
  checkStatusAndLogin(options = {}) {
146
146
 
147
147
  checkJdStatusAndLogin(options){
148
148
  return this.checkStatusAndLogin(options)
149
149
  }
150
150
 
151
151
  doLoginForJdPin(options = {}) {
152
152
  return this.doLogin(options)
153
153
  }
154
154
 
155
155
  getLoginCookie(updateKey = 'wxapp') {
156
156
  return new Promise((resolve) => {
157
157
  console.log("开始获取更新wxapp中的cookie信息", updateKey)
158
158
  if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
159
159
  console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
160
160
  resolve({
161
161
  wqCookie: this.config.wqCookie,
162
162
  wqCookieStr: this.config.wqCookieStr,
163
163
  })
164
164
  }else {
165
165
  if (isPublishToWxapp) {
166
166
  const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
167
167
  if (getWxappCookieObj) {
168
168
  const getCookieObj = getWxappCookieObj['_data']
169
169
  const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
170
170
  const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
171
171
  this.info.loginState = true
172
172
  this.info.userInfo.wqCookie = wqCookieStr
173
173
  this.info.userInfo.wqVisitkey = visitkey
174
174
  console.log('获取用户完整cookie信息', getCookieObj)
175
175
  const getUserAddress = this.wxAppUserInfoInstance.getAddress()
176
176
  console.log('获取微信用户地址信息', getUserAddress)
177
177
  if (getUserAddress) {
178
178
  this.info.pageInfo.address = getUserAddress?.areaId
179
179
  this.info.pageInfo.addressCommaStr = this.info.pageInfo
180
180
  .address
181
181
  ? this.info.pageInfo.address.replace(/_/g, ',')
182
182
  : ''
183
183
  this.info.pageInfo.un_area = this.info.pageInfo.address
184
184
  Taro.eventCenter.trigger(
185
185
  TaroEventType.USER_AREA_UPDATE,
186
186
  this.info.pageInfo.address,
187
187
  )
188
188
  }
189
189
  if(this.miniAppLogInstance){
190
190
  this.miniAppLogInstance.set({
191
191
  account: pin,
192
192
  unionid: wq_unionid,
193
193
  openid: wxapp_openid,
194
194
  })
195
195
  }
196
196
  this.config.wqCookie = wqCookie
197
197
  this.config.wqCookieStr = wqCookieStr
198
198
  this.config.getWqCookieKey = updateKey
199
199
  console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
200
200
  resolve({
201
201
  wqCookie,
202
202
  wqCookieStr,
203
203
  })
204
204
  }else {
205
205
  console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
206
206
  resolve({
207
207
  wqCookie: false,
208
208
  wqCookieStr: false,
209
209
  })
210
210
  }
211
211
  }else {
212
212
  resolve({
213
213
  wqCookie: false,
214
214
  wqCookieStr: false,
215
215
  })
216
216
  }
217
217
  }
218
218
  })
219
219
  }
220
220
  return this.getLoginCookie()
221
221
 
222
222
  getAddressCachePromise = () => {
223
223
  return Promise.reject("该方法只在APP内适用")
224
224
  }
225
225
 
226
226
  getDynamicConfig(key: string){
227
227
  console.warn('调用默认的 getDynamicConfig(),注意,此方法还未实现!')
228
228
  return null
229
229
  }
230
230
  renderNextTickLoadSdk(){
231
231
  console.warn("暂未实现 index.ts")
232
232
  }
233
233
  loadOtherSdk(){
234
234
  console.warn("暂未实现 index.ts")
235
235
  }
236
236
  loadItemSdkPromise() {
237
237
  console.warn('暂未实现 index.ts')
238
238
  }