@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 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,
@@ -0,0 +1 @@
1
+ import { JumpEventReport } from '../../../jumpEventReport'
@@ -0,0 +1 @@
1
+ import { business } from './business'
@@ -0,0 +1 @@
1
+ import {
2
  JumpEventReport,
1
3
  JumpEventReportPromise,
2
4
  const { jumpMiniPath } = JumpEventReport
3
5
  Object.assign(minPath, jumpMiniPath)
@@ -0,0 +1 @@
1
+ import {
2
  JumpEventReport,
1
3
  JumpEventReportPromise,
2
4
  jdJumpToWeb: (url: string, logEventInfo: object) => void
3
5
  jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
4
6
  jdJumpToShopLight: (detail: object) => void
5
7
  jdJumpToAppMiniProgram: () => {},
6
8
  jdJumpToShopLight: () => {},
7
9
  jdJumpToWeb: () => {},
8
10
  const {
9
11
  jdJumpToAppMiniProgram,
10
12
  jdJumpToShopLight,
11
13
  jdJumpToWeb,
12
14
  jumpWebUrl,
13
15
  jumpMiniPath,
14
16
  } = JumpEventReport
15
17
  Object.assign(side, {
16
18
  jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
17
19
  jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
18
20
  jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
19
21
  jumpWebUrl,
20
22
  jumpMiniPath,
21
23
  })
@@ -0,0 +1 @@
1
+ import {
2
  JumpEventReport,
1
3
  JumpEventReportPromise,
2
4
  const { jumpWebUrl } = JumpEventReport
3
5
  Object.assign(webUrl, jumpWebUrl)
@@ -0,0 +1 @@
1
+ import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
2
  jdJumpToShopHome: (info: object) => void
1
3
  jdJumpToProduct: (skuId: string | null, logEventInfo: object) => void
2
4
  jdJumpToCouponSearchProductList: (souponId: string | null, logEventInfo: object) => void
3
5
  jdJumpConfigUrl: (detail: object, logEventInfo: object) => void
4
6
  jdJumpToShopMemberInfo: (logEventInfo: object) => void
5
7
  jdJumpToShopMemberPointDetail: (logEventInfo: object) => void
6
8
  jdJumpToShopMemberBenefit: (logEventInfo: object) => void
7
9
  jdJumpToShopMemberRule: (logEventInfo: object) => void
8
10
  jdJumpToShopMemberCloseAccount: (
9
11
  venderType: number,
10
12
  logEventInfo: object,
11
13
  ) => void
12
14
  jdJumpToShopMemberPointExchange: (
13
15
  venderType: number,
14
16
  channel: number,
15
17
  levelZeroMenuUrl: string,
16
18
  logEventInfo: object,
17
19
  ) => void
18
20
  jdJumpToShopMemberBonusPurchase: (
19
21
  customerLevel: number,
20
22
  logEventInfo: object,
21
23
  ) => void
22
24
  jdJumpToShopMemberGood: (customerLevel: number, logEventInfo: object) => void
23
25
  jdJumpToBeanDetail: (logEventInfo: object) => void
24
26
  jdJumpToMyRedEnvelope: (logEventInfo: object) => void
25
27
  jdJumpToMyCoupon: (logEventInfo: object) => void
26
28
  jdJumpToTabAllProduct: (
27
29
  shopId: string | number,
28
30
  venderId: string | number,
29
31
  logEventInfo: object,
30
32
  ) => void
31
33
  jdJumpToTabAllProductInner: (
32
34
  shopId: string | number,
33
35
  venderId: string | number,
34
36
  logEventInfo: object,
35
37
  ) => void
36
38
  jdJumpToShopHome: () => {},
37
39
  jdJumpToProduct: () => {},
38
40
  jdJumpToCouponSearchProductList: () => {},
39
41
  jdJumpConfigUrl: () => {},
40
42
  jdJumpToShopMemberInfo: () => {},
41
43
  jdJumpToShopMemberPointDetail: () => {},
42
44
  jdJumpToShopMemberBenefit: () => {},
43
45
  jdJumpToShopMemberRule: () => {},
44
46
  jdJumpToShopMemberCloseAccount: () => {},
45
47
  jdJumpToShopMemberPointExchange: () => {},
46
48
  jdJumpToShopMemberBonusPurchase: () => {},
47
49
  jdJumpToShopMemberGood: () => {},
48
50
  jdJumpToBeanDetail: () => {},
49
51
  jdJumpToMyRedEnvelope: () => {},
50
52
  jdJumpToMyCoupon: () => {},
51
53
  jdJumpToTabAllProduct: () => {},
52
54
  jdJumpToTabAllProductInner: () => {},
53
55
  jdJumpToWeb: (url: string, logEventInfo: object) => void
54
56
  jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
55
57
  jdJumpToShopLight: (detail: object) => void
56
58
  jdJumpToAppMiniProgram: () => {},
57
59
  jdJumpToShopLight: () => {},
58
60
  jdJumpToWeb: () => {},
59
61
  [key: string]: any
60
62
  [key: string]: any
61
63
  const {
62
64
  jdJumpToShopHome,
63
65
  jdJumpToProduct,
64
66
  jdJumpToCouponSearchProductList,
65
67
  jdJumpConfigUrl,
66
68
  jdJumpToShopMemberInfo,
67
69
  jdJumpToShopMemberPointDetail,
68
70
  jdJumpToShopMemberBenefit,
69
71
  jdJumpToShopMemberRule,
70
72
  jdJumpToShopMemberCloseAccount,
71
73
  jdJumpToShopMemberPointExchange,
72
74
  jdJumpToShopMemberBonusPurchase,
73
75
  jdJumpToShopMemberGood,
74
76
  jdJumpToBeanDetail,
75
77
  jdJumpToMyRedEnvelope,
76
78
  jdJumpToMyCoupon,
77
79
  jdJumpToTabAllProduct,
78
80
  jdJumpToTabAllProductInner,
79
81
  } = JumpEventReport
80
82
  const {
81
83
  jdJumpToAppMiniProgram,
82
84
  jdJumpToShopLight,
83
85
  jdJumpToWeb,
84
86
  jumpWebUrl,
85
87
  jumpMiniPath,
86
88
  } = JumpEventReport
87
89
  Object.assign(business, {
88
90
  jdJumpToShopHome: jdJumpToShopHome.bind(JumpEventReport),
89
91
  jdJumpToProduct: jdJumpToProduct.bind(JumpEventReport),
90
92
  jdJumpToCouponSearchProductList: jdJumpToCouponSearchProductList.bind(JumpEventReport),
91
93
  jdJumpConfigUrl: jdJumpConfigUrl.bind(JumpEventReport),
92
94
  jdJumpToShopMemberInfo: jdJumpToShopMemberInfo.bind(JumpEventReport),
93
95
  jdJumpToShopMemberPointDetail:
94
96
  jdJumpToShopMemberPointDetail.bind(JumpEventReport),
95
97
  jdJumpToShopMemberBenefit: jdJumpToShopMemberBenefit.bind(JumpEventReport),
96
98
  jdJumpToShopMemberRule: jdJumpToShopMemberRule.bind(JumpEventReport),
97
99
  jdJumpToShopMemberCloseAccount:
98
100
  jdJumpToShopMemberCloseAccount.bind(JumpEventReport),
99
101
  jdJumpToShopMemberPointExchange:
100
102
  jdJumpToShopMemberPointExchange.bind(JumpEventReport),
101
103
  jdJumpToShopMemberBonusPurchase:
102
104
  jdJumpToShopMemberBonusPurchase.bind(JumpEventReport),
103
105
  jdJumpToShopMemberGood: jdJumpToShopMemberGood.bind(JumpEventReport),
104
106
  jdJumpToBeanDetail: jdJumpToBeanDetail.bind(JumpEventReport),
105
107
  jdJumpToMyRedEnvelope: jdJumpToMyRedEnvelope.bind(JumpEventReport),
106
108
  jdJumpToMyCoupon: jdJumpToMyCoupon.bind(JumpEventReport),
107
109
  jdJumpToTabAllProduct: jdJumpToTabAllProduct.bind(JumpEventReport),
108
110
  jdJumpToTabAllProductInner:
109
111
  jdJumpToTabAllProductInner.bind(JumpEventReport),
110
112
  })
111
113
  Object.assign(side, {
112
114
  jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
113
115
  jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
114
116
  jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
115
117
  jumpWebUrl,
116
118
  jumpMiniPath,
117
119
  })
118
120
  Object.assign(webUrl, jumpWebUrl)
119
121
  Object.assign(minPath, jumpMiniPath)
@@ -1 +1 @@
1
- import requestServer from '../../service/requestServer'
2
1
  return requestServer.receiveCoupon(param, clientParams)
3
2
  return requestServer.bMallGetUserInfo()
4
3
  return requestServer.bMallGetSkuNumApi(needRequest, bMallTag)
5
4
  return requestServer.bMallCartHandle(goodItem, num)
6
5
  receiveCoupon,
7
6
  bMallGetUserInfo,
8
7
  bMallGetSkuNumApi,
9
8
  bMallCartHandle
9
+ import requestServer from '../../service/requestServer'
10
10
  return requestServer.receiveCoupon(param, clientParams)
11
11
  return requestServer.batchAddCart(skuIdList, num, showToast)
12
12
  return requestServer.bMallGetUserInfo()
13
13
  return requestServer.bMallGetSkuNumApi(needRequest, bMallTag)
14
14
  return requestServer.bMallCartHandle(goodItem, num)
15
15
  receiveCoupon,
16
16
  bMallGetUserInfo,
17
17
  bMallGetSkuNumApi,
18
18
  bMallCartHandle,
19
19
  batchAddCart