@conecli/cone-render 0.8.28 → 0.8.29

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 (48) 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/token/index.h5.ts +1 -1
  5. package/dist/common/token/token.ts +1 -1
  6. package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
  7. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  8. package/dist/components/base/CustomVideo/index.module.scss +3 -2
  9. package/dist/components/base/CustomVideo/index.tsx +1 -1
  10. package/dist/components/base/Dialog/index.module.scss +6 -2
  11. package/dist/components/base/Dialog/index.tsx +1 -1
  12. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  13. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  14. package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
  15. package/dist/components/base/Price/Base/index.module.scss +136 -0
  16. package/dist/components/base/Price/Base/index.tsx +1 -0
  17. package/dist/components/base/Price/Double/index.module.scss +158 -0
  18. package/dist/components/base/Price/Double/index.tsx +1 -0
  19. package/dist/components/base/Price/index.tsx +1 -1
  20. package/dist/components/floorItem.weapp.tsx +1 -1
  21. package/dist/interface/component.ts +1 -1
  22. package/dist/interface/jumpEventReport.ts +1 -1
  23. package/dist/interface/service.ts +1 -1
  24. package/dist/jumpEventReport/base.ts +1 -1
  25. package/dist/jumpEventReport/const.ts +1 -1
  26. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  27. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  28. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  29. package/dist/jumpEventReport/web/report.ts +1 -1
  30. package/dist/jumpEventReport/web.base.ts +1 -1
  31. package/dist/open/api/shopMember.ts +1 -1
  32. package/dist/service/bMallConst.ts +1 -1
  33. package/dist/service/bMallConst.wxapp.ts +1 -0
  34. package/dist/service/http/colorSign.ts +1 -1
  35. package/dist/service/http/colorSign.wxapp.ts +1 -0
  36. package/dist/service/http/const.ts +1 -1
  37. package/dist/service/requestServer.ts +1 -1
  38. package/dist/utils/connectNativeJsBridge.ts +1 -1
  39. package/dist/utils/h5Utils.ts +1 -1
  40. package/dist/utils/index.h5.ts +1 -1
  41. package/dist/utils/index.ts +1 -1
  42. package/dist/utils/index.weapp.ts +1 -1
  43. package/dist/utils/jm-common.js +1 -1
  44. package/dist/utils/memberFormatUtils.js +1 -0
  45. package/dist/utils/priceUtils.js +1 -0
  46. package/dist/utils/utils.ts +1 -1
  47. package/package.json +3 -3
  48. package/dist/components/base/Price/index.module.scss +0 -136
@@ -1 +1 @@
1
- import { isApp } from '../../utils/jm-common'
2
1
  return new Promise((resolve, reject) => {
3
2
  let platform: string = getPlatform()
4
3
  if (platform === TokenPlatform.TYPE_JDAPP) {
5
4
  ready('jmfe', 3000)
6
5
  .then(() => {
7
6
  console.log('window.jmfe已经存在:', jmfe)
8
7
  import('./token.jd')
9
8
  .then((data) => {
10
9
  console.log('data:', data)
11
10
  resolve(data)
12
11
  })
13
12
  .catch((err) => {
14
13
  reject(err)
15
14
  })
16
15
  })
17
16
  .catch((e) => {
18
17
  console.log('window.jmfe不存在')
19
18
  reject(e)
20
19
  })
21
20
  }
22
21
  else if (platform === TokenPlatform.TYPE_WQ) {
23
22
  import('./token.wxapp')
24
23
  .then((data) => {
25
24
  console.log('data:', data)
26
25
  resolve(data)
27
26
  })
28
27
  .catch((err) => {
29
28
  reject(err)
30
29
  })
31
30
  } else {
32
31
  import('./token')
33
32
  .then((data) => {
34
33
  console.log('data:', data)
35
34
  resolve(data)
36
35
  })
37
36
  .catch((err) => {
38
37
  reject(err)
39
38
  })
40
39
  }
41
40
  })
42
41
  return new Promise((resolve) => {
43
42
  loadTokenPromise
44
43
  .then((proxy: any) => {
45
44
  if (proxy?.isLogin) {
46
45
  proxy?.isLogin().then((data: boolean) => {
47
46
  resolve(data)
48
47
  })
49
48
  } else {
50
49
  resolve(false)
51
50
  }
52
51
  })
53
52
  .catch((err) => {
54
53
  resolve(false)
55
54
  })
56
55
  })
57
56
  return new Promise((resolve) => {
58
57
  loadTokenPromise
59
58
  .then((proxy: any) => {
60
59
  if (proxy?.getIsvToken) {
61
60
  proxy?.getIsvToken().then((data: string) => {
62
61
  resolve(data)
63
62
  })
64
63
  } else {
65
64
  resolve('')
66
65
  }
67
66
  })
68
67
  .catch((err) => {
69
68
  resolve('')
70
69
  })
71
70
  })
72
71
  return new Promise((resolve) => {
73
72
  loadTokenPromise
74
73
  .then((proxy: any) => {
75
74
  if (proxy?.toLogin) {
76
75
  proxy?.toLogin(options)
77
76
  resolve(true)
78
77
  } else {
79
78
  resolve(false)
80
79
  }
81
80
  })
82
81
  .catch((err) => {
83
82
  resolve(false)
84
83
  })
85
84
  })
86
85
  let platform = TokenPlatform.TYPE_M
87
86
  if (isApp('jd')) {
88
87
  platform = TokenPlatform.TYPE_JDAPP
89
88
  }
90
89
  else if (isApp('wx') && isApp('mp')) {
91
90
  platform = TokenPlatform.TYPE_WQ
92
91
  }
93
92
  return platform
94
93
  let platform = getPlatform()
95
94
  let source = platform
96
95
  if (platform === TokenPlatform.TYPE_M || platform === TokenPlatform.TYPE_WQ) {
97
96
  source = TokenPlatform.TYPE_JDAPP
98
97
  }
99
98
  return source
100
99
  return window?.page_data?.pageChannel || ''
100
+ import { isApp } from '../../utils/jm-common'
101
101
  return new Promise((resolve, reject) => {
102
102
  let platform: string = getPlatform()
103
103
  if (platform === TokenPlatform.TYPE_JDAPP) {
104
104
  ready('jmfe', 3000)
105
105
  .then(() => {
106
106
  console.log('window.jmfe已经存在:', jmfe)
107
107
  import('./token.jd')
108
108
  .then((data) => {
109
109
  console.log('data:', data)
110
110
  resolve(data)
111
111
  })
112
112
  .catch((err) => {
113
113
  reject(err)
114
114
  })
115
115
  })
116
116
  .catch((e) => {
117
117
  console.log('window.jmfe不存在')
118
118
  reject(e)
119
119
  })
120
120
  }
121
121
  else if (platform === TokenPlatform.TYPE_WQ) {
122
122
  import('./token.wxapp')
123
123
  .then((data) => {
124
124
  console.log('data:', data)
125
125
  resolve(data)
126
126
  })
127
127
  .catch((err) => {
128
128
  reject(err)
129
129
  })
130
130
  } else {
131
131
  import('./token')
132
132
  .then((data) => {
133
133
  console.log('data:', data)
134
134
  resolve(data)
135
135
  })
136
136
  .catch((err) => {
137
137
  reject(err)
138
138
  })
139
139
  }
140
140
  })
141
141
  console.log(e);
142
142
  return {}
143
143
  return new Promise((resolve) => {
144
144
  loadTokenPromise
145
145
  .then((proxy: any) => {
146
146
  if (proxy?.isLogin) {
147
147
  proxy?.isLogin().then((data: boolean) => {
148
148
  resolve(data)
149
149
  })
150
150
  } else {
151
151
  resolve(false)
152
152
  }
153
153
  })
154
154
  .catch((err) => {
155
155
  resolve(false)
156
156
  })
157
157
  })
158
158
  return new Promise((resolve) => {
159
159
  loadTokenPromise
160
160
  .then((proxy: any) => {
161
161
  if (proxy?.getIsvToken) {
162
162
  proxy?.getIsvToken().then((data: string) => {
163
163
  resolve(data)
164
164
  })
165
165
  } else {
166
166
  resolve('')
167
167
  }
168
168
  })
169
169
  .catch((err) => {
170
170
  resolve('')
171
171
  })
172
172
  })
173
173
  return new Promise((resolve) => {
174
174
  loadTokenPromise
175
175
  .then((proxy: any) => {
176
176
  if (proxy?.toLogin) {
177
177
  proxy?.toLogin(options)
178
178
  resolve(true)
179
179
  } else {
180
180
  resolve(false)
181
181
  }
182
182
  })
183
183
  .catch((err) => {
184
184
  resolve(false)
185
185
  })
186
186
  })
187
187
  let platform = TokenPlatform.TYPE_M
188
188
  if (isApp('jd')) {
189
189
  platform = TokenPlatform.TYPE_JDAPP
190
190
  }
191
191
  else if (isApp('wx') && isApp('mp')) {
192
192
  platform = TokenPlatform.TYPE_WQ
193
193
  }
194
194
  return platform
195
195
  let platform = getPlatform()
196
196
  let source = platform
197
197
  if (platform === TokenPlatform.TYPE_M || platform === TokenPlatform.TYPE_WQ) {
198
198
  source = TokenPlatform.TYPE_JDAPP
199
199
  }
200
200
  return source
201
201
  return window?.page_data?.pageChannel || ''
@@ -1 +1 @@
1
- import { domain } from '../../api'
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
  const isLogin: string = `${domain.mobileLogin}/cgi-bin/ml/islogin`
19
18
  fetchJsonp(isLogin)
20
19
  .then((response: any) => {
21
20
  return response.json()
22
21
  })
23
22
  .then((data) => {
24
23
  console.log('data:', data)
25
24
  if (data?.islogin === '1') {
26
25
  resolve(true)
27
26
  } else {
28
27
  resolve(false)
29
28
  }
30
29
  })
31
30
  .catch((e) => {
32
31
  console.log('fetchJsonp cgi-bin/ml/islogin error:', e.message)
33
32
  resolve(false)
34
33
  })
35
34
  }
36
35
  })
37
36
  let token = ''
38
37
  const result: any = await getIsvTokenInner()
39
38
  if (!result.success) {
40
39
  const channel = getPageChannel()
41
40
  if (channel === PageChannel.TYPE_ISV_PACK_SAMPLE) {
42
41
  console.log('getIsvToken打包校验中获取token失败')
43
42
  if (window['isvTokenFailCallback']) {
44
43
  window['isvTokenFailCallback'](result.error)
45
44
  console.log('浏览器中调用isvTokenFailCallback结束')
46
45
  }
47
46
  }
48
47
  } else {
49
48
  token = result.data
50
49
  }
51
50
  return token
52
51
  return new Promise((resolve) => {
53
52
  fetchGateway(
54
53
  'isvObfuscator',
55
54
  {
56
55
  url: window.location.href,
57
56
  id: 'shopisv',
58
57
  },
59
58
  {},
60
59
  )
61
60
  .then((data: any) => {
62
61
  console.log('fetchGateway isvObfuscator data:' + JSON.stringify(data))
63
62
  if (
64
63
  data?.statusCode == 200 &&
65
64
  data?.data?.errcode === 0 &&
66
65
  data?.data?.token
67
66
  ) {
68
67
  resolve({
69
68
  success: true,
70
69
  data: data?.data?.token,
71
70
  })
72
71
  } else {
73
72
  resolve({
74
73
  success: false,
75
74
  error: data,
76
75
  })
77
76
  }
78
77
  })
79
78
  .catch((error: { message: any }) => {
80
79
  console.log('fetchGateway isvObfuscator error:' + error.message)
81
80
  resolve({
82
81
  success: false,
83
82
  error,
84
83
  })
85
84
  })
86
85
  })
87
86
  const defaultParams = {
88
87
  appid: '100',
89
88
  returnurl: window.location.href,
90
89
  }
91
90
  const params = Object.assign({}, defaultParams, options)
92
91
  params.returnurl = encodeURIComponent(params.returnurl)
93
92
  const loginUrl = `${domain.mobileLogin}/user/login.action?${serialize(
94
93
  params,
95
94
  )}`
96
95
  console.log('loginUrl:', loginUrl)
97
96
  window.location.href = loginUrl
97
+ import global from '../../common'
98
98
  return window?.page_data?.pageChannel || ''
99
99
  return new Promise((resolve) => {
100
100
  const channel = getPageChannel()
101
101
  if (
102
102
  channel === PageChannel.TYPE_ISVDEV ||
103
103
  channel === PageChannel.TYPE_ISV_PACK_SAMPLE
104
104
  ) {
105
105
  getIsvToken().then((token) => {
106
106
  console.log('isLogin token:' + token)
107
107
  if (token) {
108
108
  resolve(true)
109
109
  } else {
110
110
  resolve(false)
111
111
  }
112
112
  })
113
113
  } else {
114
114
  global.checkLoginStatus().then(res => {
115
115
  resolve(res)
116
116
  }).catch(() => {
117
117
  resolve(false)
118
118
  })
119
119
  }
120
120
  })
121
121
  let token = ''
122
122
  const result: any = await getIsvTokenInner()
123
123
  if (!result.success) {
124
124
  const channel = getPageChannel()
125
125
  if (channel === PageChannel.TYPE_ISV_PACK_SAMPLE) {
126
126
  console.log('getIsvToken打包校验中获取token失败')
127
127
  if (window['isvTokenFailCallback']) {
128
128
  window['isvTokenFailCallback'](result.error)
129
129
  console.log('浏览器中调用isvTokenFailCallback结束')
130
130
  }
131
131
  }
132
132
  } else {
133
133
  token = result.data
134
134
  }
135
135
  return token
136
136
  return new Promise((resolve) => {
137
137
  fetchGateway(
138
138
  'isvObfuscator',
139
139
  {
140
140
  url: window.location.href,
141
141
  id: 'shopisv',
142
142
  },
143
143
  {},
144
144
  )
145
145
  .then((data: any) => {
146
146
  console.log('fetchGateway isvObfuscator data:' + JSON.stringify(data))
147
147
  if (
148
148
  data?.statusCode == 200 &&
149
149
  data?.data?.errcode === 0 &&
150
150
  data?.data?.token
151
151
  ) {
152
152
  resolve({
153
153
  success: true,
154
154
  data: data?.data?.token,
155
155
  })
156
156
  } else {
157
157
  resolve({
158
158
  success: false,
159
159
  error: data,
160
160
  })
161
161
  }
162
162
  })
163
163
  .catch((error: { message: any }) => {
164
164
  console.log('fetchGateway isvObfuscator error:' + error.message)
165
165
  resolve({
166
166
  success: false,
167
167
  error,
168
168
  })
169
169
  })
170
170
  })
171
171
  const defaultParams = {
172
172
  appid: '100',
173
173
  returnurl: window.location.href,
174
174
  }
175
175
  const params = Object.assign({}, defaultParams, options)
176
176
  params.returnurl = encodeURIComponent(params.returnurl)
177
177
  const loginUrl = `${domain.mobileLogin}/user/login.action?${serialize(
178
178
  params,
179
179
  )}`
180
180
  console.log('loginUrl:', loginUrl)
181
181
  window.location.href = loginUrl
@@ -105,7 +105,7 @@
105
105
 
106
106
  .d-title-more {
107
107
  position: relative;
108
- top: 18px;
108
+ top: 16px;
109
109
  display: flex;
110
110
  align-items: flex-end;
111
111
  height: 56px;
@@ -1 +1 @@
1
- import React, { useMemo } from 'react'
1
+ import React, { useMemo } from 'react'
@@ -1,6 +1,6 @@
1
1
  .d-video-wrap {
2
+ // 便于静音按钮 相对视频 定位
2
3
  position: relative;
3
- overflow: hidden;
4
4
  }
5
5
 
6
6
  .d-video-play {
@@ -19,7 +19,8 @@
19
19
  background-repeat: no-repeat;
20
20
  background-position: center center;
21
21
  background-size: 100%;
22
- z-index: 20;
22
+ // z-index: 20;
23
+ transform: translateZ(20px);
23
24
  width: 24px;
24
25
  height: 24px;
25
26
  }