@conecli/cone-render 0.8.20-shop.21 → 0.8.20-shop.211

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 (163) hide show
  1. package/README.md +7 -1
  2. package/dist/api/index.ts +1 -1
  3. package/dist/assets/icon_blue_info.svg +1 -0
  4. package/dist/common/const.ts +1 -1
  5. package/dist/common/environmentType.ts +1 -0
  6. package/dist/common/index.h5.ts +1 -1
  7. package/dist/common/index.jd.ts +1 -1
  8. package/dist/common/index.ts +1 -1
  9. package/dist/common/index.weapp.ts +1 -1
  10. package/dist/common/jdplayerSdk.ts +1 -0
  11. package/dist/common/jssdk.ts +1 -0
  12. package/dist/common/pageType.ts +1 -0
  13. package/dist/common/sgmCustomCode.ts +1 -0
  14. package/dist/common/token/index.h5.ts +1 -1
  15. package/dist/common/token/token.jd.ts +1 -1
  16. package/dist/common/token/token.ts +1 -1
  17. package/dist/common/wxappApi.jd.ts +1 -0
  18. package/dist/common/wxappApi.ts +1 -1
  19. package/dist/components/ErrorBoundary.tsx +1 -1
  20. package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
  21. package/dist/components/base/CommonFloorHead/index.tsx +1 -1
  22. package/dist/components/base/CountDown/index.module.scss +49 -44
  23. package/dist/components/base/CountDown/index.tsx +1 -1
  24. package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
  25. package/dist/components/base/CustomScrollView/index.module.scss +7 -0
  26. package/dist/components/base/CustomScrollView/index.tsx +1 -1
  27. package/dist/components/base/CustomVideo/common.ts +1 -0
  28. package/dist/components/base/CustomVideo/index.module.scss +1 -1
  29. package/dist/components/base/CustomVideo/index.tsx +1 -1
  30. package/dist/components/base/Dialog/index.module.scss +16 -0
  31. package/dist/components/base/Dialog/index.tsx +1 -1
  32. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  33. package/dist/components/base/ExposureSmart/const.ts +1 -0
  34. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  35. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  36. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  37. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  38. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  39. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.tsx +1 -1
  41. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  42. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  43. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  44. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  45. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  46. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  47. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  48. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  49. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  50. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  51. package/dist/components/base/NetworkDataError/const.ts +1 -1
  52. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  53. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  54. package/dist/components/base/Price/Base/index.module.scss +12 -0
  55. package/dist/components/base/Price/Base/index.tsx +1 -1
  56. package/dist/components/base/Price/Double/index.module.scss +32 -0
  57. package/dist/components/base/Price/Double/index.tsx +1 -1
  58. package/dist/components/base/Price/index.tsx +1 -1
  59. package/dist/components/base/Skeleton/index.tsx +1 -1
  60. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  61. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  62. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  63. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  64. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  65. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  66. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  67. package/dist/components/floorItem.jd.tsx +1 -1
  68. package/dist/components/floorItem.tsx +1 -1
  69. package/dist/components/floorItem.weapp.tsx +1 -1
  70. package/dist/components/isv/Floor/index.tsx +1 -1
  71. package/dist/components/remoteFloorItem.tsx +1 -0
  72. package/dist/interface/common.ts +1 -1
  73. package/dist/interface/component.ts +1 -1
  74. package/dist/interface/jumpEventReport.ts +1 -1
  75. package/dist/interface/service.ts +1 -1
  76. package/dist/interface/utils.ts +1 -1
  77. package/dist/jumpEventReport/base.ts +1 -1
  78. package/dist/jumpEventReport/const.ts +1 -1
  79. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  80. package/dist/jumpEventReport/index.h5.ts +1 -1
  81. package/dist/jumpEventReport/index.jd.ts +1 -1
  82. package/dist/jumpEventReport/index.ts +1 -1
  83. package/dist/jumpEventReport/index.weapp.ts +1 -1
  84. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  85. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  86. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  87. package/dist/jumpEventReport/web/report.ts +1 -1
  88. package/dist/jumpEventReport/web.base.ts +1 -1
  89. package/dist/jumpEventReport/web.jd.ts +1 -1
  90. package/dist/jumpEventReport/web.jdb.ts +1 -1
  91. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  92. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  93. package/dist/jumpEventReport/web.pc.ts +1 -0
  94. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  95. package/dist/jumpEventReport/web.tjm.ts +1 -0
  96. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  97. package/dist/language/en_US.json +178 -0
  98. package/dist/language/zh_CN.json +178 -0
  99. package/dist/language/zh_HK.json +178 -0
  100. package/dist/libs/taroAppReport.js +2 -2
  101. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  102. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  103. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  104. package/dist/open/api/device.ts +1 -1
  105. package/dist/open/api/environment.ts +1 -1
  106. package/dist/open/api/index.ts +1 -1
  107. package/dist/open/api/jump/business.ts +1 -0
  108. package/dist/open/api/jump/index.ts +1 -0
  109. package/dist/open/api/jump/minPath.ts +1 -0
  110. package/dist/open/api/jump/side.ts +1 -0
  111. package/dist/open/api/jump/webUrl.ts +1 -0
  112. package/dist/open/api/jump copy.ts +1 -0
  113. package/dist/open/api/request.ts +1 -1
  114. package/dist/open/api/shopMember.ts +1 -1
  115. package/dist/open/api/track.ts +1 -1
  116. package/dist/open/api/util.ts +1 -1
  117. package/dist/open/components/index.ts +1 -1
  118. package/dist/sass/app.h5.scss +289 -212
  119. package/dist/sass/base.scss +195 -137
  120. package/dist/service/bMallConst.ts +1 -1
  121. package/dist/service/fetchGateway.ts +1 -1
  122. package/dist/service/fetchGateway.weapp.ts +1 -0
  123. package/dist/service/http/colorSign.ts +1 -1
  124. package/dist/service/http/const.ts +1 -1
  125. package/dist/service/http/h5Http.ts +1 -0
  126. package/dist/service/http/index.h5.ts +1 -0
  127. package/dist/service/requestServer.h5.ts +1 -0
  128. package/dist/service/requestServer.ts +1 -1
  129. package/dist/service/requestServer.weapp.ts +1 -0
  130. package/dist/utils/connectNativeJsBridge.ts +1 -1
  131. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  132. package/dist/utils/draExceptionAndProfile.ts +1 -1
  133. package/dist/utils/h5Utils.ts +1 -1
  134. package/dist/utils/index.h5.ts +1 -1
  135. package/dist/utils/index.ts +1 -1
  136. package/dist/utils/index.weapp.ts +1 -1
  137. package/dist/utils/intersectionObserver.ts +1 -1
  138. package/dist/utils/jm-common.js +1 -1
  139. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  140. package/dist/utils/jumpExtMapUtil.ts +1 -0
  141. package/dist/utils/sColor.js +1 -0
  142. package/dist/utils/sgmCodeUtils.ts +1 -0
  143. package/dist/utils/taroRenderUtil.ts +1 -0
  144. package/dist/utils/utils.ts +1 -1
  145. package/dist/wxapp/api/helper.js +1 -0
  146. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  147. package/dist/wxapp/common/user_info.js +1 -1
  148. package/dist/wxapp/components/launch-app/index.js +1 -0
  149. package/dist/wxapp/components/launch-app/index.json +5 -0
  150. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  151. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  152. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  153. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  154. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  155. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  156. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  157. package/package.json +148 -115
  158. package/dist/components/base/Skeleton/old.tsx +0 -1
  159. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  160. package/dist/open/api/jump.ts +0 -1
  161. package/dist/utils/memberFormatUtils.js +0 -1
  162. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  163. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -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
@@ -0,0 +1 @@
1
+ import * as WXAPP_LOGIN from '../wxapp/common/login/login.js'
@@ -1 +1 @@
1
- import * as WXAPP_LOGIN from '../wxapp/common/login/login.js'
1
+ import * as WXAPP_LOGIN from '../wxapp/common/login/login.js';
2
2
  WXAPP_LOGIN,
3
3
  WXAPP_BIZ,
4
4
  WXAPP_USER_INFO,
5
5
  WXAPP_NAVIGATOR,
6
6
  WXAPP_REPORT_GDT,
7
7
  WXAPP_PARAMS_SIGN,
8
8
  WXAPP_FINGER_REPORT,
9
9
  WXAPP_REPORT_MANAGE,
10
10
  WXAPP_SUBS_GUIDER,
11
11
  WXAPP_ADDRESS_V2_API,
@@ -1 +1 @@
1
- import React from 'react'
2
1
  if(this.props.customErrorIsvFloorModule){
3
2
  return this.props.customErrorIsvFloorModule
4
3
  }
4
+ import React from 'react'
5
5
  getBundleUrl,
6
6
  formatPackResult,
7
7
  getTaroVersion
8
8
  const floorLoadWay = floorData?.floorExtInfo?.floorLoadWay
9
9
  const floorKind = floorData?.floorExtInfo?.floorKind
10
10
  const isRemoteLoadFloor = floorLoadWay === 2
11
11
  const modularPackResult = floorData?.floorExtInfo?.modularPackResult
12
12
  const modularPackResultObj = formatPackResult(modularPackResult)
13
13
  const bundleUrl = getBundleUrl(modularPackResultObj)
14
14
  const taroVersion = getTaroVersion(modularPackResultObj)
15
15
  msg: `店铺h5楼层隐藏不显示。原因:模块js执行异常,楼层过滤。`,
16
16
  floorIdx: floorData?.floorIdx,
17
17
  moduleDesignerType: floorData?.floorExtInfo?.moduleDesignerType,
18
18
  floorLoadWay,
19
19
  floorKind,
20
20
  modularPackResult: {
21
21
  bundleUrl,
22
22
  taroVersion
23
23
  },
24
24
  }
25
25
  const sgmCode = isRemoteLoadFloor ? (floorKind === FLOOR_KIND.PDC_SYSTEM_MODULE ? SgmCustomCode.SYSTEMPDCMODULE_JS : SgmCustomCode.REMOTEMODULE_JS) : SgmCustomCode.SYSTEMMODULE_JS
26
26
  code: getSgmCustomCode(handleSgmCodeTaroVersion(sgmCode)),
27
27
  msg: opt,
28
28
  })
29
29
  if(this.props.customErrorIsvFloorModule){
30
30
  return this.props.customErrorIsvFloorModule
31
31
  }
@@ -1,148 +1,163 @@
1
1
  .d-root {
2
- position: relative;
3
- width: 100%;
4
- margin-bottom: -24px;
5
- background-color: #ffffff;
2
+ position: relative;
3
+ width: 100%;
4
+ margin-bottom: -24px;
5
+ background-color: #ffffff;
6
6
  }
7
7
 
8
8
  .d-content-wrap {
9
- position: absolute;
10
- // display: flex;
11
- // align-items: center;
12
- top: 0;
13
- left: 0;
14
- width: 100%;
15
- height: 96px;
16
- // height: 100%;
17
-
18
- &.d-has-title-bg {
19
- background-size: cover;
20
-
21
- .d-text {
22
- // margin-top: -14px;
23
- color: #ffffff;
24
- }
25
-
26
- .d-sub-text {
27
- // margin-top: -8px;
28
- color: #ffffff;
29
- }
30
-
31
- .d-content {
32
- bottom: 40px;
33
- }
34
- }
35
-
36
- &.d-type-is-img {
37
- .d-content {
38
- bottom: 44%; // 当图片标题类型渲染时,兼容新老数据,下发的图片高度会有几个尺寸,所以这里改成百分比
39
- }
40
- }
41
-
42
- .d-text {
43
- // margin-top: 16px;
44
- margin-left: 20px;
45
- font-family: 'PingFang SC';
46
- font-size: 32px;
47
- // line-height: 32px;
48
- font-weight: bold;
49
- color: #1a1a1a;
50
-
51
- // hack修复在使用overflowhidden(为了实现过长自动出现省略号)前提下,某些字体,例如PingFang SC,默认行高时,基线和底线部分的字体内容(例如:jpqy)有可能显示不完整的问题
52
- position: relative;
53
- top: 2px;
54
- padding-bottom: 2px;
9
+ position: absolute;
10
+ // display: flex;
11
+ // align-items: center;
12
+ top: 0;
13
+ left: 0;
14
+ width: 100%;
15
+ height: 96px;
16
+ // height: 100%;
17
+
18
+ &.d-has-title-bg {
19
+ background-size: cover;
20
+
21
+ .d-text {
22
+ // margin-top: -14px;
23
+ color: #ffffff;
24
+ }
25
+
26
+ .d-sub-text {
27
+ // margin-top: -8px;
28
+ color: #ffffff;
29
+ }
30
+
31
+ .d-content {
32
+ bottom: 40px;
33
+ }
34
+ }
35
+
36
+ &.d-type-is-img {
37
+ .d-content {
38
+ bottom: 44%; // 当图片标题类型渲染时,兼容新老数据,下发的图片高度会有几个尺寸,所以这里改成百分比
39
+ }
40
+ }
41
+
42
+ .d-text {
43
+ // margin-top: 16px;
44
+ margin-left: 20px;
45
+ font-family: 'PingFang SC';
46
+ font-size: 32px;
47
+ // line-height: 32px;
48
+ font-weight: bold;
49
+ color: #1a1a1a;
50
+
51
+ // hack修复在使用overflowhidden(为了实现过长自动出现省略号)前提下,某些字体,例如PingFang SC,默认行高时,基线和底线部分的字体内容(例如:jpqy)有可能显示不完整的问题
52
+ position: relative;
53
+ top: 2px;
54
+ padding-bottom: 2px;
55
55
  // 文字titile行高不够被遮盖问题 比如“g”字母
56
56
  line-height: 1.3;
57
- }
58
-
59
- .d-vertical-line {
60
- position: relative;
61
- top: -4px;
62
- width: 1px;
63
- height: 24px;
64
- margin-left: 12px;
65
- opacity: 0.3;
66
- background: #ffffff;
67
- }
68
-
69
- .d-sub-text {
70
- position: relative;
71
- top: -2px;
72
- margin-left: 12px;
73
- font-family: 'PingFang SC';
74
- font-size: 24px;
75
- color: #808080;
76
- }
57
+ }
58
+
59
+ .d-vertical-line {
60
+ position: relative;
61
+ top: -4px;
62
+ width: 1px;
63
+ height: 24px;
64
+ margin-left: 12px;
65
+ opacity: 0.3;
66
+ background: #ffffff;
67
+ }
68
+
69
+ .d-sub-text {
70
+ position: relative;
71
+ top: -2px;
72
+ margin-left: 12px;
73
+ font-family: 'PingFang SC';
74
+ font-size: 24px;
75
+ color: #808080;
76
+ }
77
77
  }
78
78
 
79
79
  .d-content-wrap-relative {
80
- position: relative;
80
+ position: relative;
81
81
  }
82
82
 
83
83
  .d-content {
84
- position: absolute;
85
- bottom: 22px;
86
- width: 100%;
87
- display: flex;
88
- justify-content: space-between;
89
- align-items: flex-end;
84
+ position: absolute;
85
+ bottom: 22px;
86
+ width: 100%;
87
+ display: flex;
88
+ justify-content: space-between;
89
+ align-items: flex-end;
90
90
  }
91
91
 
92
92
  .d-content-left {
93
- flex: 1;
94
- display: flex;
95
- justify-content: flex-start;
96
- align-items: flex-end;
97
- max-width: calc(100% - 108px);
93
+ flex: 1;
94
+ display: flex;
95
+ justify-content: flex-start;
96
+ align-items: flex-end;
97
+ max-width: calc(100% - 108px);
98
98
  }
99
99
 
100
100
  .d-content-right {
101
- display: flex;
102
- align-items: flex-end;
103
- flex-shrink: 0;
101
+ display: flex;
102
+ align-items: flex-end;
103
+ flex-shrink: 0;
104
104
  }
105
105
 
106
106
  .d-title-more {
107
- position: relative;
108
- top: 16px;
109
- display: flex;
110
- align-items: flex-end;
111
- height: 56px;
112
- padding-bottom: 20px;
113
- padding-left: 20px;
114
- padding-right: 20px;
107
+ position: relative;
108
+ top: 16px;
109
+ display: flex;
110
+ align-items: flex-end;
111
+ height: 56px;
112
+ padding-bottom: 20px;
113
+ padding-left: 20px;
114
+ padding-right: 20px;
115
115
  }
116
116
 
117
117
  .d-title-more-text {
118
- font-family: 'PingFang SC';
119
- font-size: 24px;
120
- color: #808080;
121
- display: flex;
122
- align-items: center;
123
- font-weight: normal;
118
+ font-family: 'PingFang SC';
119
+ font-size: 24px;
120
+ color: #808080;
121
+ display: flex;
122
+ align-items: center;
123
+ font-weight: normal;
124
124
  }
125
125
 
126
126
  .d-title-more-text-white {
127
- color: #ffffff;
127
+ color: #ffffff;
128
128
  }
129
129
 
130
130
  .d-title-more-arrow {
131
- position: relative;
132
- top: -4px;
133
- width: 12px;
134
- height: 20px;
135
- margin-left: 10px;
131
+ position: relative;
132
+ top: -4px;
133
+ width: 12px;
134
+ height: 20px;
135
+ margin-left: 10px;
136
136
  }
137
137
 
138
138
  .d-img {
139
- width: 100%;
140
- display: block;
141
- // height: auto;
142
- height: 96px;
143
- background: no-repeat top/100% auto;
139
+ width: 100%;
140
+ display: block;
141
+ // height: auto;
142
+ height: 96px;
143
+ background: no-repeat top/100% auto;
144
144
  }
145
145
 
146
146
  .d-place-holder {
147
- height: 24px;
147
+ height: 24px;
148
+ }
149
+
150
+ :global {
151
+ .d-shop-pad {
152
+ :local {
153
+ .d-root {
154
+ .d-content-wrap-for-img {
155
+ height: 164px;
156
+ }
157
+ .d-img-bg {
158
+ height: 164px;
159
+ }
160
+ }
161
+ }
162
+ }
148
163
  }
@@ -1 +1 @@
1
- import React, { useMemo } from 'react'
1
+ import React, { useMemo } from 'react';
2
2
  'https://m.360buyimg.com/imagetools/jfs/t1/170321/15/27425/230/61c1839aE0514462b/0b4d278fe18d91bb.png';
3
3
  'https://m.360buyimg.com/imagetools/jfs/t1/94671/2/26921/257/623d630aE681512e3/ded2e640c4a0a7ea.png';
4
4
  const getLogInfo = ReportContainerData.getReportClickFloorInfo(
5
5
  floorData,
6
6
  dataDefines,
7
7
  {
8
8
  clickArea: `title`,
9
9
  skuid: ``,
10
10
  tagList: [],
11
11
  labelList: [],
12
12
  pos: ``,
13
13
  },
14
14
  {
15
15
  la_p: ``,
16
16
  },
17
17
  );
18
18
  if (config) {
19
19
  JumpEventReport.jdJumpConfigUrl(config, {
20
20
  eventId: `TerminatorNew_${floorData.floorExtInfo?.moduleFlag}_Click`,
21
21
  jsonParam: getLogInfo,
22
22
  });
23
23
  }
24
24
  dataDefines,
25
25
  floorData,
26
26
  oldModuleFloorTitle,
27
27
  titleText,
28
28
  titleMoreClick,
29
29
  additionalRenderContent,
30
30
  customClassName,
31
31
  const floorTitleDataDefine = dataDefines
32
32
  ? dataDefines.filter((item) => {
33
33
  return item.type === 'floorTitle';
34
34
  })
35
35
  : [];
36
36
  const floorTitle = oldModuleFloorTitle
37
37
  ? oldModuleFloorTitle
38
38
  : (floorTitleDataDefine[0]?.nodeText?.data ?? {});
39
39
  const { detail, imageUrl, text, textBackground, type: floorTitleType = 1, subText } = floorTitle;
40
40
  if (floorTitleType === 1) {
41
41
  return null;
42
42
  }
43
43
  const bgMap = {
44
44
  '1': null,
45
45
  '2': textBackground || '',
46
46
  '3': imageUrl || '',
47
47
  };
48
48
  const useFloorTitleBgImg = bgMap[floorTitleType];
49
49
  return (
50
50
  <View
51
51
  className={classNames(styles['d-root'], customClassName)}
52
52
  onClick={floorTitleType === 3 ? gotoMPage.bind(this, dataDefines, floorData, detail) : {}}
53
53
  >
54
54
  <View
55
55
  className={classNames(styles['d-img'], {
56
56
  [styles['d-img-bg']]: useFloorTitleBgImg,
57
57
  })}
58
58
  style={useFloorTitleBgImg ? { backgroundImage: `url(${useFloorTitleBgImg})` } : {}}
59
59
  />
60
60
  <View
61
61
  className={classNames(
62
62
  styles['d-content-wrap'],
63
63
  floorTitleType === 2 && textBackground ? styles['d-has-title-bg'] : null,
64
64
  floorTitleType === 3 ? styles['d-type-is-img'] : null,
65
65
  useFloorTitleBgImg ? styles['d-content-wrap-for-img'] : null,
66
66
  )}
67
67
  >
68
68
  <View className={classNames(styles['d-content'], 'd-content')}>
69
69
  <View className={styles['d-content-left']}>
70
70
  {floorTitleType === 2 && text ? (
71
71
  <Text className={classNames(styles['d-text'], 'text-ellipsis', 'd-text')}>
72
72
  {titleText ? titleText : text}
73
73
  </Text>
74
74
  ) : null}
75
75
  {floorTitleType === 2 && subText
76
76
  ? [
77
77
  textBackground ? <View key={1} className={styles['d-vertical-line']} /> : null,
78
78
  <Text key={2} className={styles['d-sub-text']}>
79
79
  {subText}
80
80
  </Text>,
81
81
  ]
82
82
  : null}
83
83
  {additionalRenderContent ? additionalRenderContent(textBackground) : null}
84
84
  </View>
85
85
  <View className={styles['d-content-right']}>
86
86
  {titleMoreClick ? (
87
87
  <View
88
88
  className={classNames(styles['d-title-more'], 'd-title-more')}
89
89
  onClick={(e) => {
90
90
  typeof titleMoreClick === 'function' && titleMoreClick(e);
91
91
  e.stopPropagation();
92
92
  }}
93
93
  >
94
94
  <Text
95
95
  className={classNames(
96
96
  styles['d-title-more-text'],
97
97
  textBackground || floorTitleType === 3
98
98
  ? styles['d-title-more-text-white']
99
99
  : null,
100
100
  )}
101
101
  >
102
102
  更多
103
103
  </Text>
104
104
  <Image
105
105
  className={styles['d-title-more-arrow']}
106
106
  src={textBackground || floorTitleType === 3 ? ICON_ARROW_WHITE : ICON_ARROW_GRAY}
107
107
  mode="widthFix"
108
108
  />
109
109
  </View>
110
110
  ) : null}
111
111
  </View>
112
112
  </View>
113
113
  </View>
114
114
  </View>
115
115
  );
116
116
  return useMemo(() => {
117
117
  return <CommonFloorHeader {...props} />;
118
118
  }, [props.key]);
119
119
  titleText: null,
120
120
  titleMoreClick: null,
121
121
  additionalRenderContent: null,
122
122
  customClassName: null,
123
123
  key: 1,