@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 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
  this.config = {}
17
16
 
18
17
  doLoginForJdPin(options = {}) {
19
18
  return this.doLogin(options)
20
19
  }
21
20
 
22
21
  getLoginCookie(updateKey = 'wxapp') {
23
22
  return new Promise((resolve) => {
24
23
  console.log("开始获取更新wxapp中的cookie信息", updateKey)
25
24
  if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
26
25
  console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
27
26
  resolve({
28
27
  wqCookie: this.config.wqCookie,
29
28
  wqCookieStr: this.config.wqCookieStr,
30
29
  })
31
30
  }else {
32
31
  if (isPublishToWxapp) {
33
32
  const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
34
33
  if (getWxappCookieObj) {
35
34
  const getCookieObj = getWxappCookieObj['_data']
36
35
  const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
37
36
  const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
38
37
  this.info.loginState = true
39
38
  this.info.userInfo.wqCookie = wqCookieStr
40
39
  this.info.userInfo.wqVisitkey = visitkey
41
40
  console.log('获取用户完整cookie信息', getCookieObj)
42
41
  const getUserAddress = this.wxAppUserInfoInstance.getAddress()
43
42
  console.log('获取微信用户地址信息', getUserAddress)
44
43
  if (getUserAddress) {
45
44
  this.info.pageInfo.address = getUserAddress?.areaId
46
45
  this.info.pageInfo.addressCommaStr = this.info.pageInfo
47
46
  .address
48
47
  ? this.info.pageInfo.address.replace(/_/g, ',')
49
48
  : ''
50
49
  this.info.pageInfo.un_area = this.info.pageInfo.address
51
50
  Taro.eventCenter.trigger(
52
51
  TaroEventType.USER_AREA_UPDATE,
53
52
  this.info.pageInfo.address,
54
53
  )
55
54
  }
56
55
  if(this.miniAppLogInstance){
57
56
  this.miniAppLogInstance.set({
58
57
  account: pin,
59
58
  unionid: wq_unionid,
60
59
  openid: wxapp_openid,
61
60
  })
62
61
  }
63
62
  this.config.wqCookie = wqCookie
64
63
  this.config.wqCookieStr = wqCookieStr
65
64
  this.config.getWqCookieKey = updateKey
66
65
  console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
67
66
  resolve({
68
67
  wqCookie,
69
68
  wqCookieStr,
70
69
  })
71
70
  }else {
72
71
  console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
73
72
  resolve({
74
73
  wqCookie: false,
75
74
  wqCookieStr: false,
76
75
  })
77
76
  }
78
77
  }else {
79
78
  resolve({
80
79
  wqCookie: false,
81
80
  wqCookieStr: false,
82
81
  })
83
82
  }
84
83
  }
85
84
  })
86
85
  }
87
86
  return this.getLoginCookie()
88
87
 
89
88
  getAddressCachePromise = () => {
90
89
  return Promise.reject("该方法只在APP内适用")
91
90
  }
91
+ import Taro from '@tarojs/taro'
92
92
  floorVideInfo: {},
93
93
  productVideInfo: {},
94
94
  isVipShop: false,
95
95
  isJdShowNativeImmersivePlayer: false,
96
96
  pageIdxHeightInfo: {
97
97
  list: []
98
98
  },
99
99
  jdBottomBarHeight: 0,
100
100
  jdNativeHeaderHeight: 0,
101
101
  openAppData: {}
102
102
  public config: {
103
103
  [key: string]: any
104
104
  }
105
105
  public lazyContainer: CommonInterFace.lazyContainer
106
106
  public renderedIsvComponents: CommonInterFace.renderedIsvComponents
107
107
  this.config = {}
108
108
  this.renderedIsvComponents = {}
109
109
  removeJdAndroidRquestEventForTouchStart(){}
110
110
 
111
111
  doLoginForJdPin(options = {}) {
112
112
  return this.doLogin(options)
113
113
  }
114
114
 
115
115
  getLoginCookie(updateKey = 'wxapp') {
116
116
  return new Promise((resolve) => {
117
117
  console.log("开始获取更新wxapp中的cookie信息", updateKey)
118
118
  if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
119
119
  console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
120
120
  resolve({
121
121
  wqCookie: this.config.wqCookie,
122
122
  wqCookieStr: this.config.wqCookieStr,
123
123
  })
124
124
  }else {
125
125
  if (isPublishToWxapp) {
126
126
  const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
127
127
  if (getWxappCookieObj) {
128
128
  const getCookieObj = getWxappCookieObj['_data']
129
129
  const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
130
130
  const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
131
131
  this.info.loginState = true
132
132
  this.info.userInfo.wqCookie = wqCookieStr
133
133
  this.info.userInfo.wqVisitkey = visitkey
134
134
  console.log('获取用户完整cookie信息', getCookieObj)
135
135
  const getUserAddress = this.wxAppUserInfoInstance.getAddress()
136
136
  console.log('获取微信用户地址信息', getUserAddress)
137
137
  if (getUserAddress) {
138
138
  this.info.pageInfo.address = getUserAddress?.areaId
139
139
  this.info.pageInfo.addressCommaStr = this.info.pageInfo
140
140
  .address
141
141
  ? this.info.pageInfo.address.replace(/_/g, ',')
142
142
  : ''
143
143
  this.info.pageInfo.un_area = this.info.pageInfo.address
144
144
  Taro.eventCenter.trigger(
145
145
  TaroEventType.USER_AREA_UPDATE,
146
146
  this.info.pageInfo.address,
147
147
  )
148
148
  }
149
149
  if(this.miniAppLogInstance){
150
150
  this.miniAppLogInstance.set({
151
151
  account: pin,
152
152
  unionid: wq_unionid,
153
153
  openid: wxapp_openid,
154
154
  })
155
155
  }
156
156
  this.config.wqCookie = wqCookie
157
157
  this.config.wqCookieStr = wqCookieStr
158
158
  this.config.getWqCookieKey = updateKey
159
159
  console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
160
160
  resolve({
161
161
  wqCookie,
162
162
  wqCookieStr,
163
163
  })
164
164
  }else {
165
165
  console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
166
166
  resolve({
167
167
  wqCookie: false,
168
168
  wqCookieStr: false,
169
169
  })
170
170
  }
171
171
  }else {
172
172
  resolve({
173
173
  wqCookie: false,
174
174
  wqCookieStr: false,
175
175
  })
176
176
  }
177
177
  }
178
178
  })
179
179
  }
180
180
  return this.getLoginCookie()
181
181
 
182
182
  getAddressCachePromise = () => {
183
183
  return Promise.reject("该方法只在APP内适用")
184
184
  }
@@ -1 +1 @@
1
- import global from '../../common'
2
1
  return window?.page_data?.pageChannel || ''
3
2
  return new Promise((resolve) => {
4
3
  const channel = getPageChannel()
5
4
  if (
6
5
  channel === PageChannel.TYPE_ISVDEV ||
7
6
  channel === PageChannel.TYPE_ISV_PACK_SAMPLE
8
7
  ) {
9
8
  getIsvToken().then((token) => {
10
9
  console.log('isLogin token:' + token)
11
10
  if (token) {
12
11
  resolve(true)
13
12
  } else {
14
13
  resolve(false)
15
14
  }
16
15
  })
17
16
  } else {
18
17
  global.checkLoginStatus().then(res => {
19
18
  resolve(res)
20
19
  }).catch(() => {
21
20
  resolve(false)
22
21
  })
23
22
  }
24
23
  })
25
24
  let token = ''
26
25
  const result: any = await getIsvTokenInner()
27
26
  if (!result.success) {
28
27
  const channel = getPageChannel()
29
28
  if (channel === PageChannel.TYPE_ISV_PACK_SAMPLE) {
30
29
  console.log('getIsvToken打包校验中获取token失败')
31
30
  if (window['isvTokenFailCallback']) {
32
31
  window['isvTokenFailCallback'](result.error)
33
32
  console.log('浏览器中调用isvTokenFailCallback结束')
34
33
  }
35
34
  }
36
35
  } else {
37
36
  token = result.data
38
37
  }
39
38
  return token
40
39
  return new Promise((resolve) => {
41
40
  fetchGateway(
42
41
  'isvObfuscator',
43
42
  {
44
43
  url: window.location.href,
45
44
  id: 'shopisv',
46
45
  },
47
46
  {},
48
47
  )
49
48
  .then((data: any) => {
50
49
  console.log('fetchGateway isvObfuscator data:' + JSON.stringify(data))
51
50
  if (
52
51
  data?.statusCode == 200 &&
53
52
  data?.data?.errcode === 0 &&
54
53
  data?.data?.token
55
54
  ) {
56
55
  resolve({
57
56
  success: true,
58
57
  data: data?.data?.token,
59
58
  })
60
59
  } else {
61
60
  resolve({
62
61
  success: false,
63
62
  error: data,
64
63
  })
65
64
  }
66
65
  })
67
66
  .catch((error: { message: any }) => {
68
67
  console.log('fetchGateway isvObfuscator error:' + error.message)
69
68
  resolve({
70
69
  success: false,
71
70
  error,
72
71
  })
73
72
  })
74
73
  })
75
74
  const defaultParams = {
76
75
  appid: '100',
77
76
  returnurl: window.location.href,
78
77
  }
79
78
  const params = Object.assign({}, defaultParams, options)
80
79
  params.returnurl = encodeURIComponent(params.returnurl)
81
80
  const loginUrl = `${domain.mobileLogin}/user/login.action?${serialize(
82
81
  params,
83
82
  )}`
84
83
  console.log('loginUrl:', loginUrl)
85
84
  window.location.href = loginUrl
85
+ import global from '../../common'
86
86
  return window?.page_data?.pageChannel || ''
87
87
  return new Promise((resolve) => {
88
88
  const channel = getPageChannel()
89
89
  if (
90
90
  channel === PageChannel.TYPE_ISVDEV ||
91
91
  channel === PageChannel.TYPE_ISV_PACK_SAMPLE
92
92
  ) {
93
93
  getIsvToken().then((token) => {
94
94
  console.log('isLogin token:' + token)
95
95
  if (token) {
96
96
  resolve(true)
97
97
  } else {
98
98
  resolve(false)
99
99
  }
100
100
  })
101
101
  } else {
102
102
  global.checkLoginStatus().then(res => {
103
103
  resolve(res)
104
104
  }).catch(() => {
105
105
  resolve(false)
106
106
  })
107
107
  }
108
108
  })
109
109
  let token = ''
110
110
  const result: any = await getIsvTokenInner()
111
111
  if (!result.success) {
112
112
  const channel = getPageChannel()
113
113
  if (channel === PageChannel.TYPE_ISV_PACK_SAMPLE) {
114
114
  console.log('getIsvToken打包校验中获取token失败')
115
115
  if (window['isvTokenFailCallback']) {
116
116
  window['isvTokenFailCallback'](result.error)
117
117
  console.log('浏览器中调用isvTokenFailCallback结束')
118
118
  }
119
119
  }
120
120
  } else {
121
121
  token = result.data
122
122
  }
123
123
  return token
124
124
  return new Promise((resolve) => {
125
125
  fetchGateway(
126
126
  'isvObfuscator',
127
127
  {
128
128
  url: window.location.href,
129
129
  id: 'shopisv',
130
130
  },
131
131
  {},
132
132
  )
133
133
  .then((data: any) => {
134
134
  console.log('fetchGateway isvObfuscator data:' + JSON.stringify(data))
135
135
  if (
136
136
  data?.statusCode == 200 &&
137
137
  data?.data?.errcode === 0 &&
138
138
  data?.data?.token
139
139
  ) {
140
140
  resolve({
141
141
  success: true,
142
142
  data: data?.data?.token,
143
143
  })
144
144
  } else {
145
145
  resolve({
146
146
  success: false,
147
147
  error: data,
148
148
  })
149
149
  }
150
150
  })
151
151
  .catch((error: { message: any }) => {
152
152
  console.log('fetchGateway isvObfuscator error:' + error.message)
153
153
  resolve({
154
154
  success: false,
155
155
  error,
156
156
  })
157
157
  })
158
158
  })
159
159
  const defaultParams = {
160
160
  appid: '100',
161
161
  returnurl: window.location.href,
162
162
  }
163
163
  const params = Object.assign({}, defaultParams, options)
164
164
  params.returnurl = encodeURIComponent(params.returnurl)
165
165
  const loginUrl = `${domain.mobileLogin}/user/login.action?${serialize(
166
166
  params,
167
167
  )}`
168
168
  console.log('loginUrl:', loginUrl)
169
169
  window.location.href = loginUrl
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
2
2
  showDayToSecondState,