@conecli/cone-render 0.8.19 → 0.8.20-beta.0

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 (91) 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/isvStorage/index.h5.ts +1 -0
  6. package/dist/common/isvStorage/index.ts +1 -0
  7. package/dist/common/token/const.ts +1 -0
  8. package/dist/common/token/index.h5.ts +1 -0
  9. package/dist/common/token/index.ts +1 -0
  10. package/dist/common/token/token.jd.ts +1 -0
  11. package/dist/common/token/token.ts +1 -0
  12. package/dist/common/token/token.wxapp.ts +1 -0
  13. package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
  14. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  15. package/dist/components/base/CustomVideo/const.ts +1 -0
  16. package/dist/components/base/CustomVideo/index.module.scss +40 -64
  17. package/dist/components/base/CustomVideo/index.tsx +1 -1
  18. package/dist/components/base/Dialog/index.module.scss +6 -2
  19. package/dist/components/base/Dialog/index.tsx +1 -1
  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/InOrOutViewObserver/index.tsx +1 -1
  23. package/dist/components/base/NetworkDataError/const.ts +1 -1
  24. package/dist/components/base/NetworkDataError/index.module.scss +3 -0
  25. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  26. package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
  27. package/dist/components/base/Price/Base/index.module.scss +136 -0
  28. package/dist/components/base/Price/Base/index.tsx +1 -0
  29. package/dist/components/base/Price/Double/index.module.scss +158 -0
  30. package/dist/components/base/Price/Double/index.tsx +1 -0
  31. package/dist/components/base/Price/index.tsx +1 -1
  32. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  33. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  34. package/dist/components/floorItem.jd.tsx +1 -0
  35. package/dist/components/floorItem.tsx +1 -1
  36. package/dist/components/isv/Floor/index.tsx +1 -1
  37. package/dist/interface/component.ts +1 -1
  38. package/dist/interface/jumpEventReport.ts +1 -1
  39. package/dist/interface/service.ts +1 -1
  40. package/dist/jumpEventReport/base.ts +1 -1
  41. package/dist/jumpEventReport/const.ts +1 -1
  42. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  43. package/dist/jumpEventReport/index.h5.ts +1 -1
  44. package/dist/jumpEventReport/index.weapp.ts +1 -1
  45. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  46. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  47. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  48. package/dist/jumpEventReport/web/report.ts +1 -1
  49. package/dist/jumpEventReport/web.base.ts +1 -1
  50. package/dist/jumpEventReport/web.jd.ts +1 -1
  51. package/dist/jumpEventReport/web.jdb.ts +1 -0
  52. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  53. package/dist/libs/taroAppReport.js +2 -2
  54. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  55. package/dist/open/api/index.ts +1 -1
  56. package/dist/open/api/jump/business.ts +1 -0
  57. package/dist/open/api/jump/index.ts +1 -0
  58. package/dist/open/api/jump/minPath.ts +1 -0
  59. package/dist/open/api/jump/side.ts +1 -0
  60. package/dist/open/api/jump/webUrl.ts +1 -0
  61. package/dist/open/api/jump copy.ts +1 -0
  62. package/dist/open/api/moduleUtil.ts +1 -1
  63. package/dist/open/api/request.ts +1 -0
  64. package/dist/open/api/shopMember.ts +1 -0
  65. package/dist/open/api/userToken.ts +1 -0
  66. package/dist/service/bMallConst.ts +1 -0
  67. package/dist/service/bMallConst.wxapp.ts +1 -0
  68. package/dist/service/fetchGateway.ts +1 -0
  69. package/dist/service/fetchJsonp.ts +1 -0
  70. package/dist/service/http/colorSign.ts +1 -0
  71. package/dist/service/http/colorSign.wxapp.ts +1 -0
  72. package/dist/service/http/const.ts +1 -0
  73. package/dist/service/http/http.ts +1 -0
  74. package/dist/service/http/httpInterceptors.jd.ts +1 -0
  75. package/dist/service/http/httpInterceptors.ts +1 -0
  76. package/dist/service/http/index.ts +1 -0
  77. package/dist/service/requestServer.ts +1 -0
  78. package/dist/utils/connectNativeJsBridge.ts +1 -1
  79. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  80. package/dist/utils/h5Utils.ts +1 -1
  81. package/dist/utils/index.h5.ts +1 -1
  82. package/dist/utils/index.ts +1 -1
  83. package/dist/utils/index.weapp.ts +1 -1
  84. package/dist/utils/jm-common.js +1 -1
  85. package/dist/utils/memberFormatUtils.js +1 -0
  86. package/dist/utils/priceUtils.js +1 -0
  87. package/dist/utils/ready.ts +1 -0
  88. package/dist/utils/utils.ts +1 -1
  89. package/package.json +5 -4
  90. package/dist/components/base/Price/index.module.scss +0 -136
  91. package/dist/open/api/jump.ts +0 -1
@@ -1 +1 @@
1
- import {
2
1
  isH5AndJingGouMini,
3
2
  urlCookie,
3
+ import {
4
4
  isMemberPage,
5
5
  sgmCustomReport
6
6
  isH5AndJingGouMini,
7
7
  urlCookie,
8
8
  isMemberPage,
9
9
  sgmCustomReport
@@ -1 +1 @@
1
- import {
2
1
  isH5AndJingGouMini,
3
2
  urlCookie,
3
+ import {
4
4
  sgmCustomReport
5
5
  isH5AndJingGouMini,
6
6
  urlCookie,
7
7
  sgmCustomReport
@@ -1 +1 @@
1
- var splitOnFirst = function splitOnFirst(string, separator) {
2
1
  return Object.prototype.toString.call(obj);
3
2
  return typeof obj === 'function';
4
3
  return '[object Object]' === getType(obj);
5
4
  return '[object Array]' == getType(obj);
6
5
  return '[object Undefined]' === getType(obj);
7
6
  return '[object Null]' == getType(obj);
8
7
  return typeof obj === 'string';
9
8
  return typeof obj === 'boolean';
10
9
  return '[object Number]' === getType(num);
11
10
  ua = ua || navigator.userAgent;
12
11
  if (name === 'wx') return (/micromessenger/i.test(ua)
13
12
  );
14
13
  if (name === 'qq') return (/qq\//i.test(ua)
15
14
  );
16
15
  if (name === 'weibo') return (/weibo/i.test(ua)
17
16
  );
18
17
  if (name === 'jd') return (/^jdapp/i.test(ua)
19
18
  );
20
19
  if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
21
20
  );
22
21
  if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
23
22
  return false;
24
23
  ua = ua || navigator.userAgent;
25
24
  return (/android/i.test(ua) && !isIOS()
26
25
  );
27
26
  ua = ua || navigator.userAgent;
28
27
  return (/ip(hone|od)|ipad/i.test(ua)
29
28
  );
30
29
  ua = ua || navigator.userAgent;
31
30
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
32
31
  );
33
32
  ua = ua || navigator.userAgent;
34
33
  return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
35
34
  ua = ua || navigator.userAgent;
36
35
  return !!ua.match(/iphone/i);
37
36
  ua = ua || navigator.userAgent;
38
37
  return !!ua.match(/ipad/i);
39
38
  ua = ua || navigator.userAgent;
40
39
  if (name === 'xview') return typeof window.XView !== 'undefined';
41
40
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
42
41
  return false;
43
42
  ua = ua || navigator.userAgent;
44
43
  var re = /nettype\/([\S]*)/i;
45
44
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
46
45
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
47
46
  ua = ua || navigator.userAgent;
48
47
  if (!isApp('jd', ua)) return null;
49
48
  return ua.split(';')[4];
50
49
  ua = ua || navigator.userAgent;
51
50
  if (appName === 'jd') return ua.split(';')[2] || null;
52
51
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
53
52
  );
54
53
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
55
54
  );
56
55
  return null;
57
56
  ua = ua || navigator.userAgent;
58
57
  var match = ua.match(/android\s([0-9\.]*)/i);
59
58
  return match ? match[1] : 'unknown';
60
59
  ua = ua || navigator.userAgent;
61
60
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
62
61
  return match ? match[1].replace(/_/g, '.') : 'unknown';
62
+ var splitOnFirst = function splitOnFirst(string, separator) {
63
63
  return Object.prototype.toString.call(obj);
64
64
  return typeof obj === 'function';
65
65
  return '[object Object]' === getType(obj);
66
66
  return '[object Array]' == getType(obj);
67
67
  return '[object Undefined]' === getType(obj);
68
68
  return '[object Null]' == getType(obj);
69
69
  return typeof obj === 'string';
70
70
  return typeof obj === 'boolean';
71
71
  return '[object Number]' === getType(num);
72
72
  ua = ua || navigator.userAgent;
73
73
  if (name === 'wx') return (/micromessenger/i.test(ua)
74
74
  );
75
75
  if (name === 'qq') return (/qq\//i.test(ua)
76
76
  );
77
77
  if (name === 'weibo') return (/weibo/i.test(ua)
78
78
  );
79
79
  if (name === 'jd') return (/^jdapp/i.test(ua)
80
80
  );
81
81
  if (name === 'jdlittle') return (/^jdltapp/i.test(ua)
82
82
  );
83
83
  if (name === 'mp') return navigator.userAgent.match(/micromessenger/i) && navigator.userAgent.match(/miniprogram/i) || window.__wxjs_environment === 'miniprogram';
84
84
  if (name === 'jdb') return (/JDBmall/i.test(ua) && /shop\.m\.jd\.com\/shop\/bhome/i.test(window.location.href));
85
85
  return false;
86
86
  ua = ua || navigator.userAgent;
87
87
  return (/android/i.test(ua) && !isIOS()
88
88
  );
89
89
  ua = ua || navigator.userAgent;
90
90
  return (/ip(hone|od)|ipad/i.test(ua)
91
91
  );
92
92
  ua = ua || navigator.userAgent;
93
93
  return (/ipad/i.test(ua) || /android/i.test(ua) && !/mobi|mini|fennec/i.test(ua)
94
94
  );
95
95
  ua = ua || navigator.userAgent;
96
96
  return !!ua.match(/ip(hone|od)|android.+mobile|windows (ce|phone)|blackberry|bb10|symbian|webos|firefox.+fennec|opera m(ob|in)i|polaris|iemobile|lgtelecom|nokia|sonyericsson|dolfin|uzard|natebrowser|ktf;|skt;/i);
97
97
  ua = ua || navigator.userAgent;
98
98
  return !!ua.match(/iphone/i);
99
99
  ua = ua || navigator.userAgent;
100
100
  return !!ua.match(/ipad/i);
101
101
  ua = ua || navigator.userAgent;
102
102
  if (name === 'xview') return typeof window.XView !== 'undefined';
103
103
  if (name === 'wk') return !!ua.match(/supportjdshwk/i) || window._is_jdsh_wkwebview == 1;
104
104
  return false;
105
105
  ua = ua || navigator.userAgent;
106
106
  var re = /nettype\/([\S]*)/i;
107
107
  if (isApp('jd', ua)) re = /network\/([^;]*)/i;
108
108
  return re.test(ua) ? RegExp.$1.toLowerCase() : 'unknown';
109
109
  ua = ua || navigator.userAgent;
110
110
  if (!isApp('jd', ua)) return null;
111
111
  return ua.split(';')[4];
112
112
  ua = ua || navigator.userAgent;
113
113
  if (appName === 'jd') return ua.split(';')[2] || null;
114
114
  if (appName === 'wx') return (/micromessenger\/([\S]*)/i.test(ua) ? RegExp.$1 : null
115
115
  );
116
116
  if (appName === 'qq') return (/qq\/([\S]*)/i.test(ua) ? RegExp.$1 : null
117
117
  );
118
118
  return null;
119
119
  ua = ua || navigator.userAgent;
120
120
  var match = ua.match(/android\s([0-9\.]*)/i);
121
121
  return match ? match[1] : 'unknown';
122
122
  ua = ua || navigator.userAgent;
123
123
  var match = ua.match(/OS ((\d+_?){2,3})\s/i);
124
124
  return match ? match[1].replace(/_/g, '.') : 'unknown';
@@ -0,0 +1 @@
1
+ const PHONE_DECODE_ENCODE_KEY = 'myd#AlO%$*&^1dwTRwallet'
2
  if (typeof date === 'number') {
1
3
  date = new Date(date)
2
4
  }
3
5
  var o = {
4
6
  'M+': date.getMonth() + 1,
5
7
  'd+': date.getDate(),
6
8
  'h+': date.getHours(),
7
9
  'm+': date.getMinutes(),
8
10
  's+': date.getSeconds(),
9
11
  'q+': Math.floor((date.getMonth() + 3) / 3),
10
12
  S: date.getMilliseconds(),
11
13
  }
12
14
  if (/(y+)/.test(format)) {
13
15
  format = format.replace(
14
16
  RegExp.$1,
15
17
  (date.getFullYear() + '').substr(4 - RegExp.$1.length),
16
18
  )
17
19
  }
18
20
  for (var k in o) {
19
21
  if (new RegExp('(' + k + ')').test(format)) {
20
22
  format = format.replace(
21
23
  RegExp.$1,
22
24
  RegExp.$1.length === 1
23
25
  ? o[k]
24
26
  : ('00' + o[k]).substr(('' + o[k]).length),
25
27
  )
26
28
  }
27
29
  }
28
30
  return format
29
31
  if (isEmpty(timestamp)) {
30
32
  return
31
33
  }
32
34
  return formatData(timestamp, 'yyyy-MM-dd hh:mm:ss')
33
35
  if (isEmpty(value)) {
34
36
  return
35
37
  }
36
38
  value = value.toString()
37
39
  value = value.replace(/\s/g, '')
38
40
  return value && value.length === 11 && /^1\d{10}$/g.test(value)
39
41
  if (isEmpty(value)) {
40
42
  return false
41
43
  }
42
44
  const pattern = /^([A-Za-z0-9_\-\.])+\@([A-Za-z0-9_\-\.])+\.([A-Za-z]{2,4})$/
43
45
  value = value.toString()
44
46
  value = value.replace(/\s/g, '')
45
47
  return value && pattern.test(value)
46
48
  return value.toString().replace(/\s/g, '')
47
49
  var reg = /^\d$/
48
50
  return value && reg.test(value)
49
51
  var reg = /^\d{6}$/
50
52
  return value && reg.test(value)
51
53
  var result = []
52
54
  for (var i = 0; i < arr.length; i++) {
53
55
  if (result.indexOf(arr[i]) == -1) {
54
56
  result.push(arr[i])
55
57
  }
56
58
  }
57
59
  return result
58
60
  var arr = result
59
61
  for (var i = 0; i < arr.length; i++) {
60
62
  for (var j = i + 1; j < arr.length; j++) {
61
63
  if (arr[i] < arr[j]) {
62
64
  var tmp = arr[i]
63
65
  arr[i] = arr[j]
64
66
  arr[j] = tmp
65
67
  }
66
68
  }
67
69
  }
68
70
  return arr
69
71
  if (isEmpty(number)) {
70
72
  return number
71
73
  }
72
74
  number = number.toString()
73
75
  number = number.replace(/\s/g, '')
74
76
  number = number.replace(' ', '').replace('-', '').replace('—', '')
75
77
  if (number.indexOf('+86') == 0) {
76
78
  number = number.substring(3)
77
79
  }
78
80
  if (number.length > 11) {
79
81
  return number.substring(number.length - 11, number.length)
80
82
  }
81
83
  return number
82
84
  if (val === null || val === '' || typeof val === 'undefined') {
83
85
  return true
84
86
  }
85
87
  return false
86
88
  if (isEmpty(number)) {
87
89
  return
88
90
  }
89
91
  number = number.toString()
90
92
  if (!isPhone(number)) {
91
93
  return
92
94
  }
93
95
  return number.substring(0, 3) + '****' + number.substring(7, 11)
94
96
  if (isEmpty(value)) {
95
97
  return
96
98
  }
97
99
  value = value.toString()
98
100
  if (!isPhone(value)) {
99
101
  return
100
102
  }
101
103
  return (
102
104
  value.substring(0, 3) +
103
105
  ' ' +
104
106
  value.substring(3, 7) +
105
107
  ' ' +
106
108
  value.substring(7, 11)
107
109
  )
108
110
  if (isEmpty(value)) {
109
111
  return ''
110
112
  }
111
113
  value = value.toString()
112
114
  var tempValue = ''
113
115
  for (var i = 0; i < value.length; i = i + 3) {
114
116
  tempValue += value.substr(i, 3) + ' '
115
117
  }
116
118
  return tempValue
117
119
  var chnNumChar = ['零', '一', '二', '三', '四', '五', '六', '七', '八', '九']
118
120
  var chnUnitSection = ['', '万', '亿', '万亿', '亿亿']
119
121
  var chnUnitChar = ['', '十', '百', '千']
120
122
  var strIns = '',
121
123
  chnStr = ''
122
124
  var unitPos = 0
123
125
  var zero = true
124
126
  while (section > 0) {
125
127
  var v = section % 10
126
128
  if (v === 0) {
127
129
  if (!zero) {
128
130
  zero = true
129
131
  chnStr = chnNumChar[v] + chnStr
130
132
  }
131
133
  } else {
132
134
  zero = false
133
135
  strIns = chnNumChar[v]
134
136
  strIns += chnUnitChar[unitPos]
135
137
  chnStr = strIns + chnStr
136
138
  }
137
139
  unitPos++
138
140
  section = Math.floor(section / 10)
139
141
  }
140
142
  return chnStr
141
143
  const uri = src.replace(/^(https?:)?\/\//, 'https:');
142
144
  return { uri }
143
145
  if (!url) {
144
146
  return url
145
147
  }
146
148
  if (url.indexOf('jfs') == 0) {
147
149
  url = `https://${DOMAIN}/zx/${url}`
148
150
  } else {
149
151
  url = url.replace(/^(https?:)?\/\//, 'https:')
150
152
  }
151
153
  if (!width || !height) {
152
154
  return url
153
155
  }
154
156
  const jsfImageDomainRegexp =
155
157
  /(m|img10|img11|img12|img13|img14|img20|img30)\.360buyimg\.com/
156
158
  if (!jsfImageDomainRegexp.test(url)) {
157
159
  return url
158
160
  }
159
161
  try {
160
162
  const widthPx = PixelRatio.getPixelSizeForLayoutSize(width)
161
163
  const heightPx = PixelRatio.getPixelSizeForLayoutSize(height)
162
164
  const reg = /\/s\d{1,}x\d{1,}_/
163
165
  if (reg.test(url)) {
164
166
  return url.replace(reg, `/s${widthPx}x${heightPx}_`)
165
167
  }
166
168
  let arr = url.split('.')
167
169
  let businessPath = arr[2].split('/')
168
170
  let businessName = businessPath[2]
169
171
  businessPath[2] = ['s', widthPx, 'x', heightPx, '_' + businessName].join('')
170
172
  arr[2] = businessPath.join('/')
171
173
  return arr.join('.')
172
174
  } catch (e) {
173
175
  return url
174
176
  }
175
177
  let getParams = false
176
178
  if (isOpenJdAppUrl(openAppUrl)) {
177
179
  try {
178
180
  getParams = openAppUrl.replace(
179
181
  /openApp\.jdMobile:\/\/virtual\?params=/i,
180
182
  '',
181
183
  )
182
184
  getParams = JSON.parse(String(getParams))
183
185
  } catch (e) {
184
186
  console.log(e)
185
187
  }
186
188
  }
187
189
  return getParams
188
190
  return /openApp\.jdMobile:\/\/virtual\?params=/i.test(openAppUrl)
189
191
  formatData,
190
192
  formatDateToSec,
191
193
  formatPhoneNumber,
192
194
  isEmpty,
193
195
  isPhone,
194
196
  isEmail,
195
197
  unique,
196
198
  isNumeric,
197
199
  isMsgCode,
198
200
  formatPhone,
199
201
  formatCardNumber,
200
202
  sort,
201
203
  delSpace,
202
204
  enCodeMobile,
203
205
  PHONE_DECODE_ENCODE_KEY,
204
206
  SectionToChinese,
205
207
  formatToImageSource,
206
208
  formatImageUrl,
207
209
  jdOpenAppParams,
@@ -0,0 +1 @@
1
+ const reg = /([\d|\.]+)/;
2
  const newPrice = (price + '').match(reg);
1
3
  if (Array.isArray(newPrice) && newPrice.length > 0) {
2
4
  return newPrice[0];
3
5
  }
4
6
  return '0';
5
7
  const tmpPrice = parseFloat(price);
6
8
  return tmpPrice.toFixed(2);
7
9
  const tmpPrice = formatPrice(price);
8
10
  const priceArray = tmpPrice.split('.');
9
11
  let decPart;
10
12
  if (tmpPrice.length > 1) {
11
13
  decPart = priceArray[1];
12
14
  } else {
13
15
  decPart = '00';
14
16
  }
15
17
  return {
16
18
  intPart: priceArray[0],
17
19
  decPart
18
20
  }
@@ -0,0 +1 @@
1
+ function checkExpression(expression: any, context: any = window) {
2
  let isExist = false
1
3
  const isFunction = typeof expression === 'function'
2
4
  if (isFunction) {
3
5
  if (expression()) {
4
6
  isExist = true
5
7
  }
6
8
  } else {
7
9
  if (context[expression] !== undefined) {
8
10
  isExist = true
9
11
  }
10
12
  }
11
13
  return isExist
12
14
  expression: any,
13
15
  timeout: number = 1000,
14
16
  context: any = window,
15
17
  return new Promise((resolve, reject) => {
16
18
  const interval = 16 * 5
17
19
  const endTime = Date.now() + timeout
18
20
  function checkReady() {
19
21
  if (checkExpression(expression, context)) {
20
22
  resolve()
21
23
  } else if (Date.now() < endTime) {
22
24
  setTimeout(checkReady, interval)
23
25
  } else {
24
26
  reject('ready check timeout')
25
27
  }
26
28
  }
27
29
  checkReady()
28
30
  })
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  pin?: string
3
2
  visitkey?: string
4
3
  [key: string]: any
5
4
  }
6
5
  jdpin,
7
6
  pinStatus,
8
7
  visitkey,
9
8
  unionid,
10
9
  skey,
11
10
  __jda,
12
11
  __jdv,
13
12
  __wga,
14
13
  wxapp_type
15
14
  } = cookie
16
15
  const getUserCookieObj = {}
17
16
  jdpin,
18
17
  pinStatus,
19
18
  visitkey,
20
19
  unionid,
21
20
  skey,
22
21
  __jda,
23
22
  __jdv,
24
23
  __wga,
25
24
  wid,
26
25
  wq_skey,
27
26
  wq_uin,
28
27
  wq_auth_token,
29
28
  wxapp_scene,
30
29
  wq_unionid,
31
30
  wxapp_openid,
32
31
  wxapp_version,
33
32
  wxapp_type
34
33
  name = name === 'jdpin' ? 'pin' : name;
35
34
  name === 'pin' && (ret.push(`pt_pin=${encodeURIComponent(value)}`))
36
35
  ret.push(`${name}=${encodeURIComponent(value)}`)
37
36
  getUserCookieObj[name] = value
38
37
  }
39
38
  wqCookie: getUserCookieObj
40
39
  exceptionReportFn
41
40
  exceptionReportFn(
42
41
  `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
43
42
  )
44
43
  const isIsvContainer = (containerId, floorListData, containerListData) => {
45
44
  const objContainer = containerListData.find(item => item.containerId === containerId)
46
45
  (itemUid) => {
47
46
  const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
48
47
  return RemoteLoadFloorList.includes(objectFloor?.floorExtInfo?.moduleFlag)
49
48
  }
50
49
  )?? false
50
+ import Taro from '@tarojs/taro'
51
51
  if(!imgUrl.includes('360buyimg.com')){
52
52
  imgUrl = '//m.360buyimg.com/cms/' + imgUrl
53
53
  }
54
54
  pin?: string
55
55
  visitkey?: string
56
56
  [key: string]: any
57
57
  }
58
58
  jdpin,
59
59
  pinStatus,
60
60
  visitkey,
61
61
  unionid,
62
62
  skey,
63
63
  __jda,
64
64
  __jdv,
65
65
  __wga,
66
66
  wxapp_type
67
67
  } = cookie
68
68
  const getUserCookieObj = {}
69
69
  jdpin,
70
70
  pinStatus,
71
71
  visitkey,
72
72
  unionid,
73
73
  skey,
74
74
  __jda,
75
75
  __jdv,
76
76
  __wga,
77
77
  wid,
78
78
  wq_skey,
79
79
  wq_uin,
80
80
  wq_auth_token,
81
81
  wxapp_scene,
82
82
  wq_unionid,
83
83
  wxapp_openid,
84
84
  wxapp_version,
85
85
  wxapp_type
86
86
  name = name === 'jdpin' ? 'pin' : name;
87
87
  name === 'pin' && (ret.push(`pt_pin=${encodeURIComponent(value)}`))
88
88
  ret.push(`${name}=${encodeURIComponent(value)}`)
89
89
  getUserCookieObj[name] = value
90
90
  }
91
91
  wqCookie: getUserCookieObj
92
92
  exceptionReportFn
93
93
  exceptionReportFn(
94
94
  `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
95
95
  )
96
96
  const isIsvContainer = (containerId, floorListData, containerListData) => {
97
97
  const objContainer = containerListData.find(item => item.containerId === containerId)
98
98
  (itemUid) => {
99
99
  const objectFloor = floorListData.find(floorItem => itemUid === floorItem.uid)
100
100
  return RemoteLoadFloorList.includes(objectFloor?.floorExtInfo?.moduleFlag)
101
101
  }
102
102
  )?? false
103
103
  isMemberPage,
104
104
  sgmCustomReport
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.8.19",
3
+ "version": "0.8.20-beta.0",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"
@@ -78,14 +78,15 @@
78
78
  "react": "^18.2.0",
79
79
  "react-content-loader": "^6.2.0",
80
80
  "react-dom": "^18.2.0",
81
- "react-intersection-observer": "^9.1.0",
82
- "react-refresh": "^0.14.0"
81
+ "react-intersection-observer": "8.33.1",
82
+ "react-refresh": "^0.14.0",
83
+ "sha256": "^0.2.0"
83
84
  },
84
85
  "devDependencies": {
85
86
  "@babel/core": "^7.8.0",
86
87
  "@babel/runtime": "^7.17.9",
87
88
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
88
- "@swc/core": "^1.2.242",
89
+ "@swc/core": "1.2.242",
89
90
  "@swc/register": "^0.1.10",
90
91
  "@types/react": "^18.0.17",
91
92
  "@types/webpack-env": "^1.13.6",
@@ -1,136 +0,0 @@
1
-
2
- :global {
3
- .d-mini-price {
4
- position: relative;
5
- color: #f23030;
6
- display: inline-block;
7
- font-family: 'JDZhengHT-Regular';
8
-
9
- &-sym {
10
- font-size: 22px;
11
- }
12
-
13
- .int-txt {
14
- font-size: 36px;
15
- }
16
- .off-shelf {
17
- color: rgb(162, 164, 172);
18
- }
19
-
20
- .dec-txt {
21
- font-size: 22px;
22
- }
23
-
24
- .sym-sup {
25
- vertical-align: top;
26
- }
27
-
28
- .dec-sup {
29
- vertical-align: top;
30
- }
31
-
32
- &.del {
33
- .sym-sub,
34
- .int-txt,
35
- .dec-txt {
36
- font-size: 22px;
37
- color: #2e2e2e;
38
- text-decoration: line-through;
39
- }
40
- }
41
- &.d-plus-price,
42
- &.d-sams-price,
43
- &.d-sfp-price,
44
- &.d-member-price {
45
- &:after {
46
- content: '';
47
- display: inline-block;
48
- margin-left: 5px;
49
- width: 58px;
50
- height: 20px;
51
- background-repeat: no-repeat;
52
- background-size: contain;
53
- }
54
- }
55
- &.d-price-label{
56
- &:after{
57
- // 价格后面追加显示文案例如“到手价”的默认样式
58
- content: attr(data-after);
59
- font-size: 20px;
60
- color: #FFFFFF;
61
- margin-left: 8px;
62
- }
63
- }
64
- &.d-plus-price {
65
- .int-txt,
66
- .sym-sub,
67
- .dec-txt {
68
- font-size: 24px;
69
- color: #232326;
70
- }
71
- &:after {
72
- background-image: url('../../../assets/plus-icon.png');
73
- }
74
- }
75
- &.d-sams-price {
76
- .int-txt,
77
- .sym-sub,
78
- .dec-txt {
79
- font-size: 24px;
80
- color: #1a68bc;
81
- }
82
- &:after {
83
- background-image: url('../../../assets/jsbundles_jdreactshopactivitytab_images_samprice.png');
84
- }
85
- }
86
- &.d-sfp-price {
87
- .int-txt,
88
- .sym-sub,
89
- .dec-txt {
90
- font-size: 24px;
91
- color: #714aff;
92
- }
93
- &:after {
94
- background-image: url('../../../assets/fans_price@2x.png');
95
- }
96
- }
97
- &.d-member-price {
98
- .int-txt,
99
- .sym-sub,
100
- .dec-txt {
101
- font-size: 24px;
102
- color: #f3c416;
103
- }
104
- // 默认v1会员
105
- &:after {
106
- background-image: url('https://m.360buyimg.com/cc/jfs/t1/132940/18/11320/4920/5f770610E07069747/92f14ae503ca8b7b.png');
107
- }
108
- // v1 会员
109
- &.d-member-price-tab_214 {
110
- &:after {
111
- background-image: url('https://m.360buyimg.com/cc/jfs/t1/132940/18/11320/4920/5f770610E07069747/92f14ae503ca8b7b.png');
112
- }
113
- }
114
- &.d-member-price-tab_215 {
115
- &:after {
116
- background-image: url('https://m.360buyimg.com/cc/jfs/t1/135428/5/11263/5100/5f770623E87b73485/a3624a844f220489.png');
117
- }
118
- }
119
- &.d-member-price-tab_216 {
120
- &:after {
121
- background-image: url('https://m.360buyimg.com/cc/jfs/t1/142590/8/9888/5220/5f770639E992a10a9/1decbf1689dd500c.png');
122
- }
123
- }
124
- &.d-member-price-tab_217 {
125
- &:after {
126
- background-image: url('https://m.360buyimg.com/cc/jfs/t1/128048/23/13979/5063/5f77064aE56b826d7/5e07702ee673629d.png');
127
- }
128
- }
129
- &.d-member-price-tab_218 {
130
- &:after {
131
- background-image: url('https://m.360buyimg.com/cc/jfs/t1/117816/19/19334/5167/5f77065eEbd592fb5/75091c85ca7d0895.png');
132
- }
133
- }
134
- }
135
- }
136
- }
@@ -1 +0,0 @@
1
- import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'