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

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 (160) 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.tsx +1 -1
  29. package/dist/components/base/Dialog/index.module.scss +16 -0
  30. package/dist/components/base/Dialog/index.tsx +1 -1
  31. package/dist/components/base/Exposure/index.h5.tsx +1 -1
  32. package/dist/components/base/ExposureSmart/const.ts +1 -0
  33. package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
  34. package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
  35. package/dist/components/base/ExposureSmart/index.module.scss +20 -9
  36. package/dist/components/base/ExposureSmart/index.tsx +1 -1
  37. package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
  38. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  39. package/dist/components/base/InViewRender/index.tsx +1 -1
  40. package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
  41. package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
  42. package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
  43. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  44. package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
  45. package/dist/components/base/LazyLoadImage/const.ts +1 -1
  46. package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
  47. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  48. package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
  49. package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
  50. package/dist/components/base/NetworkDataError/const.ts +1 -1
  51. package/dist/components/base/NetworkDataError/index.module.scss +125 -69
  52. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  53. package/dist/components/base/Price/Base/index.module.scss +12 -0
  54. package/dist/components/base/Price/Base/index.tsx +1 -1
  55. package/dist/components/base/Price/Double/index.module.scss +32 -0
  56. package/dist/components/base/Price/Double/index.tsx +1 -1
  57. package/dist/components/base/Price/index.tsx +1 -1
  58. package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
  59. package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
  60. package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
  61. package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
  62. package/dist/components/base/Skeleton/index.tsx +1 -1
  63. package/dist/components/debug/DebugLayout/index.module.scss +67 -0
  64. package/dist/components/debug/DebugLayout/index.tsx +1 -0
  65. package/dist/components/debug/DebugLayout/utils.ts +1 -0
  66. package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
  67. package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
  68. package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
  69. package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
  70. package/dist/components/floorItem.jd.tsx +1 -1
  71. package/dist/components/floorItem.tsx +1 -1
  72. package/dist/components/floorItem.weapp.tsx +1 -1
  73. package/dist/components/isv/Floor/index.tsx +1 -1
  74. package/dist/components/remoteFloorItem.tsx +1 -0
  75. package/dist/interface/common.ts +1 -1
  76. package/dist/interface/component.ts +1 -1
  77. package/dist/interface/jumpEventReport.ts +1 -1
  78. package/dist/interface/service.ts +1 -1
  79. package/dist/interface/utils.ts +1 -1
  80. package/dist/jumpEventReport/base.ts +1 -1
  81. package/dist/jumpEventReport/const.ts +1 -1
  82. package/dist/jumpEventReport/createReportFloorData.ts +1 -1
  83. package/dist/jumpEventReport/index.h5.ts +1 -1
  84. package/dist/jumpEventReport/index.jd.ts +1 -1
  85. package/dist/jumpEventReport/index.ts +1 -1
  86. package/dist/jumpEventReport/index.weapp.ts +1 -1
  87. package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
  88. package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
  89. package/dist/jumpEventReport/logEventConfig.ts +1 -1
  90. package/dist/jumpEventReport/web/report.ts +1 -1
  91. package/dist/jumpEventReport/web.base.ts +1 -1
  92. package/dist/jumpEventReport/web.jd.ts +1 -1
  93. package/dist/jumpEventReport/web.jdb.ts +1 -1
  94. package/dist/jumpEventReport/web.jdjch.ts +1 -0
  95. package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
  96. package/dist/jumpEventReport/web.pc.ts +1 -0
  97. package/dist/jumpEventReport/web.tjapp.ts +1 -0
  98. package/dist/jumpEventReport/web.tjm.ts +1 -0
  99. package/dist/jumpEventReport/web.wxapp.ts +1 -1
  100. package/dist/language/en_US.json +231 -0
  101. package/dist/language/zh_CN.json +231 -0
  102. package/dist/language/zh_HK.json +231 -0
  103. package/dist/libs/taroAppReport.js +2 -2
  104. package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
  105. package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
  106. package/dist/modules/ContainerFloorList/index.tsx +1 -1
  107. package/dist/open/api/device.ts +1 -1
  108. package/dist/open/api/environment.ts +1 -1
  109. package/dist/open/api/index.ts +1 -1
  110. package/dist/open/api/jump copy.ts +1 -1
  111. package/dist/open/api/request.ts +1 -1
  112. package/dist/open/api/shopMember.ts +1 -1
  113. package/dist/open/api/track.ts +1 -1
  114. package/dist/open/api/util.ts +1 -1
  115. package/dist/open/components/index.ts +1 -1
  116. package/dist/sass/app.h5.scss +294 -212
  117. package/dist/sass/base.scss +195 -137
  118. package/dist/service/bMallConst.ts +1 -1
  119. package/dist/service/fetchGateway.ts +1 -1
  120. package/dist/service/fetchGateway.weapp.ts +1 -0
  121. package/dist/service/http/colorSign.ts +1 -1
  122. package/dist/service/http/const.ts +1 -1
  123. package/dist/service/http/h5Http.ts +1 -0
  124. package/dist/service/http/index.h5.ts +1 -0
  125. package/dist/service/requestServer.h5.ts +1 -0
  126. package/dist/service/requestServer.ts +1 -1
  127. package/dist/service/requestServer.weapp.ts +1 -0
  128. package/dist/utils/connectNativeJsBridge.ts +1 -1
  129. package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
  130. package/dist/utils/draExceptionAndProfile.ts +1 -1
  131. package/dist/utils/h5Utils.ts +1 -1
  132. package/dist/utils/index.h5.ts +1 -1
  133. package/dist/utils/index.ts +1 -1
  134. package/dist/utils/index.weapp.ts +1 -1
  135. package/dist/utils/intersectionObserver.ts +1 -1
  136. package/dist/utils/jm-common.js +1 -1
  137. package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
  138. package/dist/utils/jumpExtMapUtil.ts +1 -0
  139. package/dist/utils/sColor.js +1 -0
  140. package/dist/utils/sgmCodeUtils.ts +1 -0
  141. package/dist/utils/taroRenderUtil.ts +1 -0
  142. package/dist/utils/utils.ts +1 -1
  143. package/dist/wxapp/api/helper.js +1 -0
  144. package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
  145. package/dist/wxapp/common/user_info.js +1 -1
  146. package/dist/wxapp/components/launch-app/index.js +1 -0
  147. package/dist/wxapp/components/launch-app/index.json +5 -0
  148. package/dist/wxapp/components/launch-app/index.wxml +0 -0
  149. package/dist/wxapp/components/launch-app/index.wxss +0 -0
  150. package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
  151. package/dist/wxapp/components/subscribe-guider/index.js +1 -0
  152. package/dist/wxapp/components/subscribe-guider/index.json +5 -0
  153. package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
  154. package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
  155. package/package.json +145 -115
  156. package/dist/components/base/Skeleton/old.tsx +0 -1
  157. package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
  158. package/dist/utils/memberFormatUtils.js +0 -1
  159. /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
  160. /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  className={classNames(
3
2
  id={`J_floor_${floorItem?.uid}`}
4
3
  key={floorItem.uid}
5
4
  data-floor-uid={floorItem?.uid}
6
5
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
7
6
  floorIndex={floorIndex}
8
7
  floorData={floorItem}
9
8
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
10
9
  containerBorderRadius={item?.borderRadius || 0}
11
10
  updateShopFloorDataFn={updateShopFloorDataFn}
12
11
  loadingEndComponentFn={loadingEndComponentFn}
13
12
  key={floorItem.uid}
14
13
  changeScrollTopFn={changeContainerFloorListScrollTop}
15
14
  builtInComponents={builtInComponents}
16
15
  className={
17
16
  style={{
18
17
  netWorkShowType={NetWorkShowType.PART}
19
18
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
20
19
  refreshCallBackFn={updateShopFloorDataFn}
20
+ import Taro from '@tarojs/taro';
21
21
  NETWORK_DATA_TYPE,
22
22
  TaroEventType,
23
23
  MINI_APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
24
24
  SHOP_TAB_CONTENT_BOTTOM,
25
25
  let thisListData: ComponentInterFace.ContainerItemData[] | [] = listData.slice(0);
26
26
  const thisListDataLen = thisListData.length;
27
27
  const res: any[] = [];
28
28
  if (thisListDataLen) {
29
29
  if (thisListDataLen < num) {
30
30
  res.push(thisListData);
31
31
  } else {
32
32
  while (thisListData.length) {
33
33
  if (thisListData.length >= num) {
34
34
  res.push(thisListData.splice(0, num));
35
35
  } else {
36
36
  res.push(thisListData);
37
37
  thisListData = [];
38
38
  }
39
39
  }
40
40
  }
41
41
  }
42
42
  return res;
43
43
  containerFloorListData: ComponentInterFace.ContainerItemData[];
44
44
  className?: string;
45
45
  sectionType?: string;
46
46
  style?: object;
47
47
  hasGoodsFeeds?: boolean;
48
48
  miniScrollSelf?: boolean;
49
49
  tabContentShowState?: boolean;
50
50
  loadingEndComponentFn?: functionType;
51
51
  updateShopFloorDataFn?: functionType;
52
52
  builtInComponents?: object;
53
53
  changeScrollToLowerStateFn: functionType | null;
54
54
  changeLayoutScrollToTopFn?: functionType;
55
55
  triggerMiniLoadProductWithFilterFn?: functionType;
56
56
  switchConfig?: {
57
57
  [key: string]: any;
58
58
  };
59
59
  const { windowHeight, actualNavBarHeight } = taroJdBaseInfo.info.sysInfo;
60
60
  const {
61
61
  className,
62
62
  style,
63
63
  loadingEndComponentFn,
64
64
  hasGoodsFeeds,
65
65
  sectionType,
66
66
  tabContentShowState,
67
67
  containerFloorListData,
68
68
  updateShopFloorDataFn,
69
69
  changeScrollToLowerStateFn,
70
70
  changeLayoutScrollToTopFn,
71
71
  triggerMiniLoadProductWithFilterFn,
72
72
  builtInComponents,
73
73
  miniScrollSelf = false,
74
74
  switchConfig,
75
75
  } = props;
76
76
  const emptyFloorListHidden = switchConfig?.emptyFloorListHidden || false;
77
77
  const [containerFloorListScrollTop, setContainerFloorListScrollTop] = useState(0);
78
78
  const loadMoreContainerFloorListDataRef = useRef({
79
79
  needFirstLoadState: true,
80
80
  loadingState: false,
81
81
  });
82
82
  const isFuncForChangeScrollToLowerStateFn = typeof changeScrollToLowerStateFn === 'function';
83
83
  const loadSectionTypeContainerFloorListRef = useRef<{
84
84
  [key: string]: ComponentInterFace.MiniLoadFloorListRef;
85
85
  }>({
86
86
  [`${sectionType}`]: {
87
87
  index: 1,
88
88
  itemNum: 0,
89
89
  list: [],
90
90
  loadList: [],
91
91
  max: 1,
92
92
  },
93
93
  });
94
94
  const [containerFloorList, setContainerFloorList] = useState<
95
95
  ComponentInterFace.ContainerItemData[]
96
96
  >(() => {
97
97
 
98
98
  const getLoadDataArr = containerFloorListDataSpliceToPromise(containerFloorListData);
99
99
  const getThisSectionTypeListData =
100
100
  loadSectionTypeContainerFloorListRef.current[`${sectionType}`];
101
101
  getThisSectionTypeListData.list = getLoadDataArr;
102
102
  getThisSectionTypeListData.itemNum = containerFloorListData.length;
103
103
  getThisSectionTypeListData.max = getLoadDataArr.length;
104
104
  console.log('获取加载数据总数据----' + sectionType, getLoadDataArr);
105
105
  const getThisLoadList = getLoadDataArr.shift();
106
106
  if (getThisLoadList) {
107
107
  getThisSectionTypeListData.loadList = getThisLoadList;
108
108
  return getThisLoadList;
109
109
  } else {
110
110
  return [];
111
111
  }
112
112
  });
113
113
  useEffect(() => {
114
114
  if (containerFloorList.length > 0) {
115
115
  Taro.nextTick(() => {
116
116
  const getThisSectionTypeListData =
117
117
  loadSectionTypeContainerFloorListRef.current[`${sectionType}`];
118
118
  console.log(
119
119
  `加载${sectionType}中第${getThisSectionTypeListData.index}批次${LOAD_FLOOR_BATCH_NUM}个模块完毕,共计${getThisSectionTypeListData.max}轮,楼层总计${getThisSectionTypeListData.itemNum}`,
120
120
  );
121
121
  loadMoreContainerFloorListDataRef.current.needFirstLoadState &&
122
122
  checkLoadFloorListLoadState().then((needLoadState) => {
123
123
  console.log('检查是否需要继续加载状态', needLoadState);
124
124
  if (needLoadState) {
125
125
  const getThisLoadList = getThisSectionTypeListData.list.shift();
126
126
  if (getThisLoadList) {
127
127
  getThisSectionTypeListData.index++;
128
128
  const changeContainerList: ComponentInterFace.ContainerItemData[] = [
129
129
  ...getThisSectionTypeListData.loadList,
130
130
  ...getThisLoadList,
131
131
  ];
132
132
  getThisSectionTypeListData.loadList = changeContainerList;
133
133
  setContainerFloorList(changeContainerList);
134
134
  } else {
135
135
  Taro.hideLoading();
136
136
  loadMoreContainerFloorListDataRef.current.needFirstLoadState = false;
137
137
  }
138
138
  } else {
139
139
  Taro.hideLoading();
140
140
  loadMoreContainerFloorListDataRef.current.needFirstLoadState = false;
141
141
  }
142
142
  });
143
143
  });
144
144
  }
145
145
  }, [containerFloorList]);
146
146
 
147
147
  const checkLoadFloorListLoadState = () => {
148
148
  return new Promise((resolve) => {
149
149
  Taro.createSelectorQuery()
150
150
  .select('#J_shopContainerFloorList')
151
151
  .boundingClientRect(function (rect) {
152
152
  if (rect) {
153
153
  if (rect.height && rect.height < windowHeight + 100) {
154
154
  resolve(true);
155
155
  } else {
156
156
  resolve(false);
157
157
  }
158
158
  } else {
159
159
  resolve(true);
160
160
  }
161
161
  })
162
162
  .exec();
163
163
  });
164
164
  };
165
165
 
166
166
  const loadMoreContainerFloorList = (evt: any = false) => {
167
167
  const getThisSectionTypeListData =
168
168
  loadSectionTypeContainerFloorListRef.current[`${sectionType}`];
169
169
  if (
170
170
  !loadMoreContainerFloorListDataRef.current.loadingState &&
171
171
  getThisSectionTypeListData.list.length > 0
172
172
  ) {
173
173
  loadMoreContainerFloorListDataRef.current.loadingState = true;
174
174
  getThisSectionTypeListData.index++;
175
175
  console.log(`当前即将加载${sectionType}中第${getThisSectionTypeListData.index}轮`);
176
176
  const getThisLoadList = getThisSectionTypeListData.list.shift();
177
177
  if (getThisLoadList) {
178
178
  const changeFloorList = [...getThisSectionTypeListData.loadList, ...getThisLoadList];
179
179
  getThisSectionTypeListData.loadList = changeFloorList;
180
180
  loadMoreContainerFloorListDataRef.current.loadingState = false;
181
181
  isFuncForChangeScrollToLowerStateFn && changeScrollToLowerStateFn(false);
182
182
  setContainerFloorList(changeFloorList);
183
183
  Taro.nextTick(() => {
184
184
  if (getThisSectionTypeListData.list.length == 0) {
185
185
  typeof triggerMiniLoadProductWithFilterFn === 'function' &&
186
186
  triggerMiniLoadProductWithFilterFn();
187
187
  }
188
188
  });
189
189
  } else {
190
190
  isFuncForChangeScrollToLowerStateFn && changeScrollToLowerStateFn(false);
191
191
  }
192
192
  }
193
193
  if (
194
194
  miniScrollSelf &&
195
195
  evt &&
196
196
  !loadMoreContainerFloorListDataRef.current.loadingState &&
197
197
  getThisSectionTypeListData.index >= getThisSectionTypeListData.max
198
198
  ) {
199
199
  pageScrollToLower(evt);
200
200
  }
201
201
  };
202
202
  useEffect(() => {
203
203
  if (!miniScrollSelf) {
204
204
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL_END, (tabActiveType) => {
205
205
  if (tabActiveType == sectionType && tabContentShowState) {
206
206
  loadMoreContainerFloorList();
207
207
  }
208
208
  });
209
209
  }
210
210
  }, []);
211
211
  const pageScrollToLower = useCallback((evt) => {
212
212
  console.log('触发滚动底部位置', evt.detail);
213
213
  Taro.eventCenter.trigger(TaroEventType.PAGE_SCROLL_END);
214
214
  }, []);
215
215
 
216
216
  const onScrollRecord = (event) => {
217
217
  const { detail } = event;
218
218
  if (detail) {
219
219
  taroJdBaseInfo.info.pageInfo.miniScrollInfo = detail;
220
220
  }
221
221
  };
222
222
  const renderFloorItem = useCallback(
223
223
  (item, floorItem, floorIndex, containerLayoutLeftRightMargin, borderStyle) => {
224
224
  return (
225
225
  <View
226
226
  className={classNames(shopContainerListStyle['d-floor-item'])}
227
227
  id={`J_floor_${floorItem?.uid}`}
228
228
  key={floorItem.uid}
229
229
  data-floor-uid={floorItem?.uid}
230
230
  data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
231
231
  style={borderStyle}
232
232
  >
233
233
  <FloorListItem
234
234
  floorIndex={floorIndex}
235
235
  floorData={floorItem}
236
236
  layoutLeftRightMargin={containerLayoutLeftRightMargin}
237
237
  containerBorderRadius={borderStyle}
238
238
  updateShopFloorDataFn={updateShopFloorDataFn}
239
239
  loadingEndComponentFn={loadingEndComponentFn}
240
240
  changeScrollToLowerStateFn={changeScrollToLowerStateFn}
241
241
  key={floorItem.uid}
242
242
  changeScrollTopFn={changeContainerFloorListScrollTop}
243
243
  builtInComponents={builtInComponents}
244
244
  />
245
245
  </View>
246
246
  );
247
247
  },
248
248
  [],
249
249
  );
250
250
  const changeContainerFloorListScrollTop = (top) => {
251
251
  if (miniScrollSelf) {
252
252
  setContainerFloorListScrollTop(top);
253
253
  } else {
254
254
  typeof changeLayoutScrollToTopFn === 'function' && changeLayoutScrollToTopFn(top);
255
255
  }
256
256
  };
257
257
  const renderContainerList = () => {
258
258
  const listNum = containerFloorList.length || 0;
259
259
  const getThisSectionTypeListData =
260
260
  loadSectionTypeContainerFloorListRef.current[`${sectionType}`];
261
261
  return (
262
262
  <View id="J_shopContainerFloorList">
263
263
  {containerFloorListData && containerFloorListData.length > 0 ? (
264
264
  listNum > 0 && (
265
265
  <>
266
266
  {containerFloorList.map((item, index) => {
267
267
  const containerLayoutLeftRightMargin =
268
268
  (item.marginLeft || 0) + (item.marginRight || 0);
269
269
  const getContainerId = `J_container_${item.containerId}`;
270
270
  const borderStyle = getBorderStyle(item, index, containerFloorList, listNum);
271
271
  if (index === listNum - 1) item.marginBottom = 8;
272
272
  return (
273
273
  <View
274
274
  className={shopContainerListStyle['d-container-item']}
275
275
  id={getContainerId}
276
276
  key={item.containerId + item.key}
277
277
  style={{
278
278
  marginBottom: item.marginBottom ? `${item.marginBottom}px` : 0,
279
279
  marginTop: item.marginTop ? `${item.marginTop}px` : 0,
280
280
  marginLeft: item.marginLeft ? `${item.marginLeft}px` : 0,
281
281
  marginRight: item.marginRight ? `${item.marginRight}px` : 0,
282
282
  borderTopLeftRadius: borderStyle?.borderTopLeftRadius || `0px`,
283
283
  borderTopRightRadius: borderStyle?.borderTopRightRadiu || `0px`,
284
284
  borderBottomLeftRadius: borderStyle?.borderBottomLeftRadius || `0px`,
285
285
  borderBottomRightRadius: borderStyle?.borderBottomRightRadius || `0px`,
286
286
  }}
287
287
  >
288
288
  {item.floors.length > 0 && (
289
289
  <>
290
290
  {item.floors?.map((floorItem, floorIndex) => {
291
291
  return renderFloorItem(
292
292
  item,
293
293
  floorItem,
294
294
  floorIndex,
295
295
  containerLayoutLeftRightMargin,
296
296
  borderStyle,
297
297
  );
298
298
  })}
299
299
  </>
300
300
  )}
301
301
  </View>
302
302
  );
303
303
  })}
304
304
  {getThisSectionTypeListData.index < getThisSectionTypeListData.max && (
305
305
  <JdLoading localState={true} text="加载中..." />
306
306
  )}
307
307
  {!hasGoodsFeeds &&
308
308
  getThisSectionTypeListData.index >= getThisSectionTypeListData.max &&
309
309
  loadingEndComponentFn &&
310
310
  loadingEndComponentFn()}
311
311
  </>
312
312
  )
313
313
  ) : !emptyFloorListHidden ? (
314
314
  <View
315
315
  className={shopContainerListStyle['d-container-list-no-data']}
316
316
  style={{
317
317
  height: `${
318
318
  windowHeight -
319
319
  actualNavBarHeight -
320
320
  MINI_APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT +
321
321
  SHOP_TAB_CONTENT_BOTTOM
322
322
  }px`,
323
323
  }}
324
324
  >
325
325
  <NetworkDataError
326
326
  netWorkShowType={NetWorkShowType.PART}
327
327
  netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
328
328
  refreshCallBackFn={updateShopFloorDataFn}
329
329
  />
330
330
  </View>
331
331
  ) : null}
332
332
  </View>
333
333
  );
334
334
  };
335
335
  return miniScrollSelf ? (
336
336
  <ScrollView
337
337
  scrollY
338
338
  scrollTop={containerFloorListScrollTop}
339
339
  className={classNames(className, shopContainerListStyle['d-shop-container-list'])}
340
340
  onScroll={onScrollRecord}
341
341
  lowerThreshold={windowHeight / 2}
342
342
  onScrollToLower={loadMoreContainerFloorList}
343
343
  style={style}
344
344
  >
345
345
  {tabContentShowState && renderContainerList()}
346
346
  </ScrollView>
347
347
  ) : (
348
348
  <View
349
349
  className={classNames(className, shopContainerListStyle['d-shop-container-list'])}
350
350
  style={style}
351
351
  >
352
352
  {tabContentShowState && renderContainerList()}
353
353
  </View>
354
354
  );
@@ -1 +1 @@
1
- import taroJdBaseInfo from '../../common'
1
+ import global from '../../common'
2
2
  return global.info.sysInfo.screenWidth
3
3
  return global.info.sysInfo.screenHeight
4
4
  return global.info.sysInfo.headerHeight
5
5
  return global.info.sysInfo.tabBarHeight
6
6
  return global.info.sysInfo.safeContentHeight
7
7
  const result =
8
8
  global.info.sysInfo.screenHeight - global.info.sysInfo.jdBottomBarHeight + 8
9
9
  return result
10
10
  getScreenWidth,
11
11
  getScreenHeight,
12
12
  getHeaderHeight,
13
13
  getFooterHeight,
14
14
  getSafeContentHeight,
15
15
  getFullscreenCropHeight,
16
16
  TaroEventType,
17
17
  SHOP_NAV_BAR_HEIGHT,
@@ -1 +1 @@
1
- import taroJdBaseInfo from '../../common'
1
+ import taroJdBaseInfo from '../../common'
2
2
  isIosDevice,
3
3
  isAndroidDevice,
4
4
  isHarmonyDevice,
5
5
  isH5,
6
6
  isJdApp,
7
7
  isJdMin,
8
8
  isWxApp,
9
9
  isWxMin,
10
10
  isMin,
11
11
  isWxMinAndWxapp,
12
12
  getNetworkType,
13
13
  isIos: isIosDevice,
14
14
  isAndroid: isAndroidDevice,
15
15
  isHarmony: isHarmonyDevice,
16
16
  isH5,
17
17
  isJdApp,
18
18
  isJdMin,
19
19
  isWxApp,
20
20
  isWxMin,
21
21
  isMin,
22
22
  isWxJgMin: isWxMinAndWxapp,
23
23
 
24
24
  pageType: pageType,
25
25
  return sysInfo.netWorkType
@@ -1 +1 @@
1
- import * as device from './device'
2
1
  device,
3
2
  environment,
4
3
  jump,
5
4
  storage,
6
5
  util,
7
6
  moduleUtil,
8
7
  track,
9
8
  trackPromise,
10
9
  global,
11
10
  http,
12
11
  shopMember,
13
12
  userToken,
14
13
  TokenPlatform,
15
14
  requestServer,
16
15
  isvStorage,
16
+ import * as device from './device'
17
17
  device,
18
18
  environment,
19
19
  jump,
20
20
  storage,
21
21
  util,
22
22
  moduleUtil,
23
23
  track,
24
24
  trackPromise,
25
25
  global,
26
26
  http,
27
27
  fetchGateway,
28
28
  fetchJsonp,
29
29
  shopMember,
30
30
  userToken,
31
31
  TokenPlatform,
32
32
  requestServer,
33
33
  isvStorage,
@@ -1 +1 @@
1
- import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
2
1
  jdJumpToShopHome: (info: object) => void
3
2
  jdJumpToProduct: (skuId: string | null, logEventInfo: object) => void
4
3
  jdJumpConfigUrl: (detail: object, logEventInfo: object) => void
5
4
  jdJumpToShopMemberInfo: (logEventInfo: object) => void
6
5
  jdJumpToShopMemberPointDetail: (logEventInfo: object) => void
7
6
  jdJumpToShopMemberBenefit: (logEventInfo: object) => void
8
7
  jdJumpToShopMemberRule: (logEventInfo: object) => void
9
8
  jdJumpToShopMemberCloseAccount: (
10
9
  venderType: number,
11
10
  logEventInfo: object,
12
11
  ) => void
13
12
  jdJumpToShopMemberPointExchange: (
14
13
  venderType: number,
15
14
  channel: number,
16
15
  levelZeroMenuUrl: string,
17
16
  logEventInfo: object,
18
17
  ) => void
19
18
  jdJumpToShopMemberBonusPurchase: (
20
19
  customerLevel: number,
21
20
  logEventInfo: object,
22
21
  ) => void
23
22
  jdJumpToShopMemberGood: (customerLevel: number, logEventInfo: object) => void
24
23
  jdJumpToBeanDetail: (logEventInfo: object) => void
25
24
  jdJumpToMyRedEnvelope: (logEventInfo: object) => void
26
25
  jdJumpToMyCoupon: (logEventInfo: object) => void
27
26
  jdJumpToTabAllProduct: (
28
27
  shopId: string | number,
29
28
  venderId: string | number,
30
29
  logEventInfo: object,
31
30
  ) => void
32
31
  jdJumpToTabAllProductInner: (
33
32
  shopId: string | number,
34
33
  venderId: string | number,
35
34
  logEventInfo: object,
36
35
  ) => void
37
36
  jdJumpToShopHome: () => {},
38
37
  jdJumpToProduct: () => {},
39
38
  jdJumpConfigUrl: () => {},
40
39
  jdJumpToShopMemberInfo: () => {},
41
40
  jdJumpToShopMemberPointDetail: () => {},
42
41
  jdJumpToShopMemberBenefit: () => {},
43
42
  jdJumpToShopMemberRule: () => {},
44
43
  jdJumpToShopMemberCloseAccount: () => {},
45
44
  jdJumpToShopMemberPointExchange: () => {},
46
45
  jdJumpToShopMemberBonusPurchase: () => {},
47
46
  jdJumpToShopMemberGood: () => {},
48
47
  jdJumpToBeanDetail: () => {},
49
48
  jdJumpToMyRedEnvelope: () => {},
50
49
  jdJumpToMyCoupon: () => {},
51
50
  jdJumpToTabAllProduct: () => {},
52
51
  jdJumpToTabAllProductInner: () => {},
53
52
  jdJumpToWeb: (url: string, logEventInfo: object) => void
54
53
  jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
55
54
  jdJumpToShopLight: (detail: object) => void
56
55
  jdJumpToAppMiniProgram: () => {},
57
56
  jdJumpToShopLight: () => {},
58
57
  jdJumpToWeb: () => {},
59
58
  [key: string]: any
60
59
  [key: string]: any
61
60
  const {
62
61
  jdJumpToShopHome,
63
62
  jdJumpToProduct,
64
63
  jdJumpConfigUrl,
65
64
  jdJumpToShopMemberInfo,
66
65
  jdJumpToShopMemberPointDetail,
67
66
  jdJumpToShopMemberBenefit,
68
67
  jdJumpToShopMemberRule,
69
68
  jdJumpToShopMemberCloseAccount,
70
69
  jdJumpToShopMemberPointExchange,
71
70
  jdJumpToShopMemberBonusPurchase,
72
71
  jdJumpToShopMemberGood,
73
72
  jdJumpToBeanDetail,
74
73
  jdJumpToMyRedEnvelope,
75
74
  jdJumpToMyCoupon,
76
75
  jdJumpToTabAllProduct,
77
76
  jdJumpToTabAllProductInner,
78
77
  } = JumpEventReport
79
78
  const {
80
79
  jdJumpToAppMiniProgram,
81
80
  jdJumpToShopLight,
82
81
  jdJumpToWeb,
83
82
  jumpWebUrl,
84
83
  jumpMiniPath,
85
84
  } = JumpEventReport
86
85
  Object.assign(business, {
87
86
  jdJumpToShopHome: jdJumpToShopHome.bind(JumpEventReport),
88
87
  jdJumpToProduct: jdJumpToProduct.bind(JumpEventReport),
89
88
  jdJumpConfigUrl: jdJumpConfigUrl.bind(JumpEventReport),
90
89
  jdJumpToShopMemberInfo: jdJumpToShopMemberInfo.bind(JumpEventReport),
91
90
  jdJumpToShopMemberPointDetail:
92
91
  jdJumpToShopMemberPointDetail.bind(JumpEventReport),
93
92
  jdJumpToShopMemberBenefit: jdJumpToShopMemberBenefit.bind(JumpEventReport),
94
93
  jdJumpToShopMemberRule: jdJumpToShopMemberRule.bind(JumpEventReport),
95
94
  jdJumpToShopMemberCloseAccount:
96
95
  jdJumpToShopMemberCloseAccount.bind(JumpEventReport),
97
96
  jdJumpToShopMemberPointExchange:
98
97
  jdJumpToShopMemberPointExchange.bind(JumpEventReport),
99
98
  jdJumpToShopMemberBonusPurchase:
100
99
  jdJumpToShopMemberBonusPurchase.bind(JumpEventReport),
101
100
  jdJumpToShopMemberGood: jdJumpToShopMemberGood.bind(JumpEventReport),
102
101
  jdJumpToBeanDetail: jdJumpToBeanDetail.bind(JumpEventReport),
103
102
  jdJumpToMyRedEnvelope: jdJumpToMyRedEnvelope.bind(JumpEventReport),
104
103
  jdJumpToMyCoupon: jdJumpToMyCoupon.bind(JumpEventReport),
105
104
  jdJumpToTabAllProduct: jdJumpToTabAllProduct.bind(JumpEventReport),
106
105
  jdJumpToTabAllProductInner:
107
106
  jdJumpToTabAllProductInner.bind(JumpEventReport),
108
107
  })
109
108
  Object.assign(side, {
110
109
  jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
111
110
  jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
112
111
  jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
113
112
  jumpWebUrl,
114
113
  jumpMiniPath,
115
114
  })
116
115
  Object.assign(webUrl, jumpWebUrl)
117
116
  Object.assign(minPath, jumpMiniPath)
117
+ import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
118
118
  jdJumpToShopHome: (info: object) => void
119
119
  jdJumpToProduct: (skuId: string | null, logEventInfo: object) => void
120
120
  jdJumpToCouponSearchProductList: (souponId: string | null, logEventInfo: object) => void
121
121
  jdJumpConfigUrl: (detail: object, logEventInfo: object) => void
122
122
  jdJumpToShopMemberInfo: (logEventInfo: object) => void
123
123
  jdJumpToShopMemberPointDetail: (logEventInfo: object) => void
124
124
  jdJumpToShopMemberBenefit: (logEventInfo: object) => void
125
125
  jdJumpToShopMemberRule: (logEventInfo: object) => void
126
126
  jdJumpToShopMemberCloseAccount: (
127
127
  venderType: number,
128
128
  logEventInfo: object,
129
129
  ) => void
130
130
  jdJumpToShopMemberPointExchange: (
131
131
  venderType: number,
132
132
  channel: number,
133
133
  levelZeroMenuUrl: string,
134
134
  logEventInfo: object,
135
135
  ) => void
136
136
  jdJumpToShopMemberBonusPurchase: (
137
137
  customerLevel: number,
138
138
  logEventInfo: object,
139
139
  ) => void
140
140
  jdJumpToShopMemberGood: (customerLevel: number, logEventInfo: object) => void
141
141
  jdJumpToBeanDetail: (logEventInfo: object) => void
142
142
  jdJumpToMyRedEnvelope: (logEventInfo: object) => void
143
143
  jdJumpToMyCoupon: (logEventInfo: object) => void
144
144
  jdJumpToTabAllProduct: (
145
145
  shopId: string | number,
146
146
  venderId: string | number,
147
147
  logEventInfo: object,
148
148
  ) => void
149
149
  jdJumpToTabAllProductInner: (
150
150
  shopId: string | number,
151
151
  venderId: string | number,
152
152
  logEventInfo: object,
153
153
  ) => void
154
154
  jdJumpToShopHome: () => {},
155
155
  jdJumpToProduct: () => {},
156
156
  jdJumpToCouponSearchProductList: () => {},
157
157
  jdJumpConfigUrl: () => {},
158
158
  jdJumpToShopMemberInfo: () => {},
159
159
  jdJumpToShopMemberPointDetail: () => {},
160
160
  jdJumpToShopMemberBenefit: () => {},
161
161
  jdJumpToShopMemberRule: () => {},
162
162
  jdJumpToShopMemberCloseAccount: () => {},
163
163
  jdJumpToShopMemberPointExchange: () => {},
164
164
  jdJumpToShopMemberBonusPurchase: () => {},
165
165
  jdJumpToShopMemberGood: () => {},
166
166
  jdJumpToBeanDetail: () => {},
167
167
  jdJumpToMyRedEnvelope: () => {},
168
168
  jdJumpToMyCoupon: () => {},
169
169
  jdJumpToTabAllProduct: () => {},
170
170
  jdJumpToTabAllProductInner: () => {},
171
171
  jdJumpToWeb: (url: string, logEventInfo: object) => void
172
172
  jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
173
173
  jdJumpToShopLight: (detail: object) => void
174
174
  jdJumpToAppMiniProgram: () => {},
175
175
  jdJumpToShopLight: () => {},
176
176
  jdJumpToWeb: () => {},
177
177
  [key: string]: any
178
178
  [key: string]: any
179
179
  const {
180
180
  jdJumpToShopHome,
181
181
  jdJumpToProduct,
182
182
  jdJumpToCouponSearchProductList,
183
183
  jdJumpConfigUrl,
184
184
  jdJumpToShopMemberInfo,
185
185
  jdJumpToShopMemberPointDetail,
186
186
  jdJumpToShopMemberBenefit,
187
187
  jdJumpToShopMemberRule,
188
188
  jdJumpToShopMemberCloseAccount,
189
189
  jdJumpToShopMemberPointExchange,
190
190
  jdJumpToShopMemberBonusPurchase,
191
191
  jdJumpToShopMemberGood,
192
192
  jdJumpToBeanDetail,
193
193
  jdJumpToMyRedEnvelope,
194
194
  jdJumpToMyCoupon,
195
195
  jdJumpToTabAllProduct,
196
196
  jdJumpToTabAllProductInner,
197
197
  } = JumpEventReport
198
198
  const {
199
199
  jdJumpToAppMiniProgram,
200
200
  jdJumpToShopLight,
201
201
  jdJumpToWeb,
202
202
  jumpWebUrl,
203
203
  jumpMiniPath,
204
204
  } = JumpEventReport
205
205
  Object.assign(business, {
206
206
  jdJumpToShopHome: jdJumpToShopHome.bind(JumpEventReport),
207
207
  jdJumpToProduct: jdJumpToProduct.bind(JumpEventReport),
208
208
  jdJumpToCouponSearchProductList: jdJumpToCouponSearchProductList.bind(JumpEventReport),
209
209
  jdJumpConfigUrl: jdJumpConfigUrl.bind(JumpEventReport),
210
210
  jdJumpToShopMemberInfo: jdJumpToShopMemberInfo.bind(JumpEventReport),
211
211
  jdJumpToShopMemberPointDetail:
212
212
  jdJumpToShopMemberPointDetail.bind(JumpEventReport),
213
213
  jdJumpToShopMemberBenefit: jdJumpToShopMemberBenefit.bind(JumpEventReport),
214
214
  jdJumpToShopMemberRule: jdJumpToShopMemberRule.bind(JumpEventReport),
215
215
  jdJumpToShopMemberCloseAccount:
216
216
  jdJumpToShopMemberCloseAccount.bind(JumpEventReport),
217
217
  jdJumpToShopMemberPointExchange:
218
218
  jdJumpToShopMemberPointExchange.bind(JumpEventReport),
219
219
  jdJumpToShopMemberBonusPurchase:
220
220
  jdJumpToShopMemberBonusPurchase.bind(JumpEventReport),
221
221
  jdJumpToShopMemberGood: jdJumpToShopMemberGood.bind(JumpEventReport),
222
222
  jdJumpToBeanDetail: jdJumpToBeanDetail.bind(JumpEventReport),
223
223
  jdJumpToMyRedEnvelope: jdJumpToMyRedEnvelope.bind(JumpEventReport),
224
224
  jdJumpToMyCoupon: jdJumpToMyCoupon.bind(JumpEventReport),
225
225
  jdJumpToTabAllProduct: jdJumpToTabAllProduct.bind(JumpEventReport),
226
226
  jdJumpToTabAllProductInner:
227
227
  jdJumpToTabAllProductInner.bind(JumpEventReport),
228
228
  })
229
229
  Object.assign(side, {
230
230
  jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
231
231
  jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
232
232
  jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
233
233
  jumpWebUrl,
234
234
  jumpMiniPath,
235
235
  })
236
236
  Object.assign(webUrl, jumpWebUrl)
237
237
  Object.assign(minPath, jumpMiniPath)