@conecli/cone-render 0.8.20 → 0.8.21-shop-beta.3
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.
- package/dist/api/index.ts +1 -1
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/common/isvStorage/index.h5.ts +1 -0
- package/dist/common/isvStorage/index.ts +1 -0
- package/dist/common/token/const.ts +1 -0
- package/dist/common/token/index.h5.ts +1 -0
- package/dist/common/token/index.ts +1 -0
- package/dist/common/token/token.jd.ts +1 -0
- package/dist/common/token/token.ts +1 -0
- package/dist/common/token/token.wxapp.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +1 -1
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/const.ts +1 -0
- package/dist/components/base/CustomVideo/index.module.scss +40 -64
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +6 -2
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/const.ts +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +18 -4
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.module.scss +20 -9
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/InViewRender/index.weapp.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.module.scss +8 -0
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +7 -1
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/{const.ts → Base/const.ts} +0 -0
- package/dist/components/base/Price/Base/index.module.scss +136 -0
- package/dist/components/base/Price/Base/index.tsx +1 -0
- package/dist/components/base/Price/Double/index.module.scss +158 -0
- package/dist/components/base/Price/Double/index.tsx +1 -0
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -0
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -0
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.jdb.ts +1 -0
- package/dist/jumpEventReport/web.jdjch.ts +1 -0
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +10 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/index.ts +1 -1
- package/dist/open/api/jump/business.ts +1 -0
- package/dist/open/api/jump/index.ts +1 -0
- package/dist/open/api/jump/minPath.ts +1 -0
- package/dist/open/api/jump/side.ts +1 -0
- package/dist/open/api/jump/webUrl.ts +1 -0
- package/dist/open/api/jump copy.ts +1 -0
- package/dist/open/api/moduleUtil.ts +1 -1
- package/dist/open/api/request.ts +1 -0
- package/dist/open/api/shopMember.ts +1 -0
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/userToken.ts +1 -0
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/service/bMallConst.ts +1 -0
- package/dist/service/bMallConst.weapp.ts +1 -0
- package/dist/service/fetchGateway.ts +1 -0
- package/dist/service/fetchJsonp.ts +1 -0
- package/dist/service/http/colorSign.ts +1 -0
- package/dist/service/http/colorSign.weapp.ts +1 -0
- package/dist/service/http/const.ts +1 -0
- package/dist/service/http/http.ts +1 -0
- package/dist/service/http/httpInterceptors.jd.ts +1 -0
- package/dist/service/http/httpInterceptors.ts +1 -0
- package/dist/service/http/index.ts +1 -0
- package/dist/service/requestServer.ts +1 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/intersectionObserver.ts +1 -1
- package/dist/utils/jm-common.js +1 -1
- package/dist/utils/memberFormatUtils.js +1 -0
- package/dist/utils/priceUtils.js +1 -0
- package/dist/utils/ready.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +9 -5
- package/dist/components/base/Price/index.module.scss +0 -136
- package/dist/open/api/jump.ts +0 -1
|
@@ -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}
|
|
19
|
+
import Taro from '@tarojs/taro'
|
|
20
20
|
NETWORK_DATA_TYPE,
|
|
21
21
|
TaroEventType,
|
|
22
22
|
MINI_APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT,
|
|
23
23
|
SHOP_TAB_CONTENT_BOTTOM,
|
|
24
24
|
listData,
|
|
25
25
|
num = LOAD_FLOOR_BATCH_NUM,
|
|
26
26
|
let thisListData: ComponentInterFace.ContainerItemData[] | [] =
|
|
27
27
|
listData.slice(0)
|
|
28
28
|
const thisListDataLen = thisListData.length
|
|
29
29
|
const res: any[] = []
|
|
30
30
|
if (thisListDataLen) {
|
|
31
31
|
if (thisListDataLen < num) {
|
|
32
32
|
res.push(thisListData)
|
|
33
33
|
} else {
|
|
34
34
|
while (thisListData.length) {
|
|
35
35
|
if (thisListData.length >= num) {
|
|
36
36
|
res.push(thisListData.splice(0, num))
|
|
37
37
|
} else {
|
|
38
38
|
res.push(thisListData)
|
|
39
39
|
thisListData = []
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
return res
|
|
45
45
|
containerFloorListData: ComponentInterFace.ContainerItemData[]
|
|
46
46
|
className?: string
|
|
47
47
|
sectionType?: string
|
|
48
48
|
style?: object
|
|
49
49
|
hasGoodsFeeds?: boolean
|
|
50
50
|
miniScrollSelf?: boolean
|
|
51
51
|
tabContentShowState?: boolean
|
|
52
52
|
loadingEndComponentFn?: Function
|
|
53
53
|
updateShopFloorDataFn?: Function
|
|
54
54
|
builtInComponents?: Object
|
|
55
55
|
changeScrollToLowerStateFn: Function | null
|
|
56
56
|
changeLayoutScrollToTopFn?: Function
|
|
57
57
|
triggerMiniLoadProductWithFilterFn?: Function
|
|
58
58
|
const {
|
|
59
59
|
className,
|
|
60
60
|
style,
|
|
61
61
|
loadingEndComponentFn,
|
|
62
62
|
hasGoodsFeeds,
|
|
63
63
|
sectionType,
|
|
64
64
|
tabContentShowState,
|
|
65
65
|
containerFloorListData,
|
|
66
66
|
updateShopFloorDataFn,
|
|
67
67
|
changeScrollToLowerStateFn,
|
|
68
68
|
changeLayoutScrollToTopFn,
|
|
69
69
|
triggerMiniLoadProductWithFilterFn,
|
|
70
70
|
builtInComponents,
|
|
71
71
|
miniScrollSelf = false,
|
|
72
72
|
} = props
|
|
73
73
|
const [containerFloorListScrollTop, setContainerFloorListScrollTop] =
|
|
74
74
|
useState(0)
|
|
75
75
|
const loadMoreContainerFloorListDataRef = useRef({
|
|
76
76
|
needFirstLoadState: true,
|
|
77
77
|
loadingState: false,
|
|
78
78
|
})
|
|
79
79
|
const isFuncForChangeScrollToLowerStateFn =
|
|
80
80
|
typeof changeScrollToLowerStateFn == 'function'
|
|
81
81
|
const loadSectionTypeContainerFloorListRef = useRef<{
|
|
82
82
|
[key: string]: ComponentInterFace.MiniLoadFloorListRef
|
|
83
83
|
}>({
|
|
84
84
|
[`${sectionType}`]: {
|
|
85
85
|
index: 1,
|
|
86
86
|
itemNum: 0,
|
|
87
87
|
list: [],
|
|
88
88
|
loadList: [],
|
|
89
89
|
max: 1,
|
|
90
90
|
},
|
|
91
91
|
})
|
|
92
92
|
const [containerFloorList, setContainerFloorList] = useState<
|
|
93
93
|
ComponentInterFace.ContainerItemData[]
|
|
94
94
|
>(() => {
|
|
95
95
|
|
|
96
96
|
const getLoadDataArr = containerFloorListDataSpliceToPromise(
|
|
97
97
|
containerFloorListData,
|
|
98
98
|
)
|
|
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, ...getThisLoadList]
|
|
130
130
|
getThisSectionTypeListData.loadList = changeContainerList
|
|
131
131
|
setContainerFloorList(changeContainerList)
|
|
132
132
|
} else {
|
|
133
133
|
Taro.hideLoading()
|
|
134
134
|
loadMoreContainerFloorListDataRef.current.needFirstLoadState =
|
|
135
135
|
false
|
|
136
136
|
}
|
|
137
137
|
} else {
|
|
138
138
|
Taro.hideLoading()
|
|
139
139
|
loadMoreContainerFloorListDataRef.current.needFirstLoadState =
|
|
140
140
|
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(
|
|
176
176
|
`当前即将加载${sectionType}中第${getThisSectionTypeListData.index}轮`,
|
|
177
177
|
)
|
|
178
178
|
const getThisLoadList = getThisSectionTypeListData.list.shift()
|
|
179
179
|
if (getThisLoadList) {
|
|
180
180
|
const changeFloorList = [
|
|
181
181
|
...getThisSectionTypeListData.loadList,
|
|
182
182
|
...getThisLoadList,
|
|
183
183
|
]
|
|
184
184
|
getThisSectionTypeListData.loadList = changeFloorList
|
|
185
185
|
loadMoreContainerFloorListDataRef.current.loadingState = false
|
|
186
186
|
isFuncForChangeScrollToLowerStateFn && changeScrollToLowerStateFn(false)
|
|
187
187
|
setContainerFloorList(changeFloorList)
|
|
188
188
|
Taro.nextTick(() => {
|
|
189
189
|
if (getThisSectionTypeListData.list.length == 0) {
|
|
190
190
|
typeof triggerMiniLoadProductWithFilterFn == 'function' &&
|
|
191
191
|
triggerMiniLoadProductWithFilterFn()
|
|
192
192
|
}
|
|
193
193
|
})
|
|
194
194
|
} else {
|
|
195
195
|
isFuncForChangeScrollToLowerStateFn && changeScrollToLowerStateFn(false)
|
|
196
196
|
}
|
|
197
197
|
}
|
|
198
198
|
if (
|
|
199
199
|
miniScrollSelf &&
|
|
200
200
|
evt &&
|
|
201
201
|
!loadMoreContainerFloorListDataRef.current.loadingState &&
|
|
202
202
|
getThisSectionTypeListData.index >= getThisSectionTypeListData.max
|
|
203
203
|
) {
|
|
204
204
|
pageScrollToLower(evt)
|
|
205
205
|
}
|
|
206
206
|
}
|
|
207
207
|
useEffect(() => {
|
|
208
208
|
if (!miniScrollSelf) {
|
|
209
209
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL_END, (tabActiveType) => {
|
|
210
210
|
if (tabActiveType == sectionType && tabContentShowState) {
|
|
211
211
|
loadMoreContainerFloorList()
|
|
212
212
|
}
|
|
213
213
|
})
|
|
214
214
|
}
|
|
215
215
|
}, [])
|
|
216
216
|
const pageScrollToLower = useCallback((evt) => {
|
|
217
217
|
console.log('触发滚动底部位置', evt.detail)
|
|
218
218
|
Taro.eventCenter.trigger(TaroEventType.PAGE_SCROLL_END)
|
|
219
219
|
}, [])
|
|
220
220
|
|
|
221
221
|
const onScrollRecord = (event) => {
|
|
222
222
|
const { detail } = event
|
|
223
223
|
if (detail) {
|
|
224
224
|
taroJdBaseInfo.info.pageInfo.miniScrollInfo = detail
|
|
225
225
|
}
|
|
226
226
|
}
|
|
227
227
|
const renderFloorItem = useCallback(
|
|
228
228
|
(item, floorItem, floorIndex, containerLayoutLeftRightMargin) => {
|
|
229
229
|
return (
|
|
230
230
|
<View
|
|
231
231
|
className={classNames(shopContainerListStyle['d-floor-item'])}
|
|
232
232
|
id={`J_floor_${floorItem?.uid}`}
|
|
233
233
|
key={floorItem.uid}
|
|
234
234
|
data-floor-uid={floorItem?.uid}
|
|
235
235
|
data-floor-type={floorItem?.floorExtInfo?.moduleFlag || ''}
|
|
236
236
|
>
|
|
237
237
|
<FloorListItem
|
|
238
238
|
floorIndex={floorIndex}
|
|
239
239
|
floorData={floorItem}
|
|
240
240
|
layoutLeftRightMargin={containerLayoutLeftRightMargin}
|
|
241
241
|
containerBorderRadius={item?.borderRadius || 0}
|
|
242
242
|
updateShopFloorDataFn={updateShopFloorDataFn}
|
|
243
243
|
loadingEndComponentFn={loadingEndComponentFn}
|
|
244
244
|
changeScrollToLowerStateFn={changeScrollToLowerStateFn}
|
|
245
245
|
key={floorItem.uid}
|
|
246
246
|
changeScrollTopFn={changeContainerFloorListScrollTop}
|
|
247
247
|
builtInComponents={builtInComponents}
|
|
248
248
|
/>
|
|
249
249
|
</View>
|
|
250
250
|
)
|
|
251
251
|
},
|
|
252
252
|
[],
|
|
253
253
|
)
|
|
254
254
|
const changeContainerFloorListScrollTop = (top) => {
|
|
255
255
|
if (miniScrollSelf) {
|
|
256
256
|
setContainerFloorListScrollTop(top)
|
|
257
257
|
} else {
|
|
258
258
|
typeof changeLayoutScrollToTopFn == 'function' &&
|
|
259
259
|
changeLayoutScrollToTopFn(top)
|
|
260
260
|
}
|
|
261
261
|
}
|
|
262
262
|
const renderContainerList = () => {
|
|
263
263
|
const listNum = containerFloorList.length || 0
|
|
264
264
|
const getThisSectionTypeListData =
|
|
265
265
|
loadSectionTypeContainerFloorListRef.current[`${sectionType}`]
|
|
266
266
|
return (
|
|
267
267
|
<View id="J_shopContainerFloorList">
|
|
268
268
|
{containerFloorListData && containerFloorListData.length > 0 ? (
|
|
269
269
|
listNum > 0 && (
|
|
270
270
|
<>
|
|
271
271
|
{containerFloorList.map((item) => {
|
|
272
272
|
const containerLayoutLeftRightMargin =
|
|
273
273
|
(item.marginLeft || 0) + (item.marginRight || 0)
|
|
274
274
|
const getContainerId = `J_container_${item.containerId}`
|
|
275
275
|
const getContainerStyle = {
|
|
276
276
|
marginBottom: item.marginBottom
|
|
277
277
|
? `${item.marginBottom}px`
|
|
278
278
|
: 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
|
borderRadius: item.borderRadius
|
|
283
283
|
? `${item.borderRadius}px`
|
|
284
284
|
: 0,
|
|
285
285
|
}
|
|
286
286
|
item.borderTopLeftRadius &&
|
|
287
287
|
(getContainerStyle['borderTopLeftRadius'] =
|
|
288
288
|
`${item.borderTopLeftRadius}px`)
|
|
289
289
|
item.borderTopRightRadius &&
|
|
290
290
|
(getContainerStyle['borderTopRightRadius'] =
|
|
291
291
|
`${item.borderTopRightRadius}px`)
|
|
292
292
|
item.borderBottomLeftRadius &&
|
|
293
293
|
(getContainerStyle['borderBottomLeftRadius'] =
|
|
294
294
|
`${item.borderBottomLeftRadius}px`)
|
|
295
295
|
item.borderBottomRightRadius &&
|
|
296
296
|
(getContainerStyle['borderBottomRightRadius'] =
|
|
297
297
|
`${item.borderBottomRightRadius}px`)
|
|
298
298
|
return (
|
|
299
299
|
<View
|
|
300
300
|
className={shopContainerListStyle['d-container-item']}
|
|
301
301
|
id={getContainerId}
|
|
302
302
|
key={item.containerId + item.key}
|
|
303
303
|
style={getContainerStyle}
|
|
304
304
|
>
|
|
305
305
|
{item.floors.length > 0 && (
|
|
306
306
|
<>
|
|
307
307
|
{item.floors?.map((floorItem, floorIndex) => {
|
|
308
308
|
return renderFloorItem(
|
|
309
309
|
item,
|
|
310
310
|
floorItem,
|
|
311
311
|
floorIndex,
|
|
312
312
|
containerLayoutLeftRightMargin,
|
|
313
313
|
)
|
|
314
314
|
})}
|
|
315
315
|
</>
|
|
316
316
|
)}
|
|
317
317
|
</View>
|
|
318
318
|
)
|
|
319
319
|
})}
|
|
320
320
|
{getThisSectionTypeListData.index <
|
|
321
321
|
getThisSectionTypeListData.max && (
|
|
322
322
|
<JdLoading localState={true} text="加载中..." />
|
|
323
323
|
)}
|
|
324
324
|
{!hasGoodsFeeds &&
|
|
325
325
|
getThisSectionTypeListData.index >=
|
|
326
326
|
getThisSectionTypeListData.max &&
|
|
327
327
|
loadingEndComponentFn &&
|
|
328
328
|
loadingEndComponentFn()}
|
|
329
329
|
</>
|
|
330
330
|
)
|
|
331
331
|
) : (
|
|
332
332
|
<View
|
|
333
333
|
className={shopContainerListStyle['d-container-list-no-data']}
|
|
334
334
|
style={{
|
|
335
335
|
height: `${
|
|
336
336
|
windowHeight -
|
|
337
337
|
actualNavBarHeight -
|
|
338
338
|
MINI_APP_SHOP_HEADER_NAV_BAR_BOTTOM_MENU_HEIGHT +
|
|
339
339
|
SHOP_TAB_CONTENT_BOTTOM
|
|
340
340
|
}px`,
|
|
341
341
|
}}
|
|
342
342
|
>
|
|
343
343
|
<NetworkDataError
|
|
344
344
|
netWorkShowType={NetWorkShowType.PART}
|
|
345
345
|
netWorkDataType={NETWORK_DATA_TYPE.DATA_ERROR}
|
|
346
346
|
refreshCallBackFn={updateShopFloorDataFn}
|
|
347
347
|
/>
|
|
348
348
|
</View>
|
|
349
349
|
)}
|
|
350
350
|
</View>
|
|
351
351
|
)
|
|
352
352
|
}
|
|
353
353
|
return miniScrollSelf ? (
|
|
354
354
|
<ScrollView
|
|
355
355
|
scrollY
|
|
356
356
|
scrollTop={containerFloorListScrollTop}
|
|
357
357
|
className={classNames(
|
|
358
358
|
className,
|
|
359
359
|
shopContainerListStyle['d-shop-container-list'],
|
|
360
360
|
)}
|
|
361
361
|
onScroll={onScrollRecord}
|
|
362
362
|
lowerThreshold={windowHeight / 2}
|
|
363
363
|
onScrollToLower={loadMoreContainerFloorList}
|
|
364
364
|
style={style}
|
|
365
365
|
>
|
|
366
366
|
{tabContentShowState && renderContainerList()}
|
|
367
367
|
</ScrollView>
|
|
368
368
|
) : (
|
|
369
369
|
<View
|
|
370
370
|
className={classNames(
|
|
371
371
|
className,
|
|
372
372
|
shopContainerListStyle['d-shop-container-list'],
|
|
373
373
|
)}
|
|
374
374
|
style={style}
|
|
375
375
|
>
|
|
376
376
|
{tabContentShowState && renderContainerList()}
|
|
377
377
|
</View>
|
|
378
378
|
)
|
package/dist/open/api/device.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import taroJdBaseInfo from '../../common'
|
|
1
|
+
import taroJdBaseInfo from '../../common'
|
package/dist/open/api/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import * as device from './device'
|
|
1
|
+
import * as device from './device'
|
|
2
2
|
device,
|
|
3
3
|
environment,
|
|
4
4
|
jump,
|
|
5
5
|
storage,
|
|
6
6
|
util,
|
|
7
7
|
moduleUtil,
|
|
8
8
|
track,
|
|
9
9
|
trackPromise,
|
|
10
10
|
global,
|
|
11
11
|
http,
|
|
12
12
|
shopMember,
|
|
13
13
|
userToken,
|
|
14
14
|
TokenPlatform,
|
|
15
15
|
requestServer,
|
|
16
16
|
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
|
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 { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
|
2
|
jdJumpToShopHome: (info: object) => void
|
|
1
3
|
jdJumpToProduct: (skuId: string | null, logEventInfo: object) => void
|
|
2
4
|
jdJumpConfigUrl: (detail: object, logEventInfo: object) => void
|
|
3
5
|
jdJumpToShopMemberInfo: (logEventInfo: object) => void
|
|
4
6
|
jdJumpToShopMemberPointDetail: (logEventInfo: object) => void
|
|
5
7
|
jdJumpToShopMemberBenefit: (logEventInfo: object) => void
|
|
6
8
|
jdJumpToShopMemberRule: (logEventInfo: object) => void
|
|
7
9
|
jdJumpToShopMemberCloseAccount: (
|
|
8
10
|
venderType: number,
|
|
9
11
|
logEventInfo: object,
|
|
10
12
|
) => void
|
|
11
13
|
jdJumpToShopMemberPointExchange: (
|
|
12
14
|
venderType: number,
|
|
13
15
|
channel: number,
|
|
14
16
|
levelZeroMenuUrl: string,
|
|
15
17
|
logEventInfo: object,
|
|
16
18
|
) => void
|
|
17
19
|
jdJumpToShopMemberBonusPurchase: (
|
|
18
20
|
customerLevel: number,
|
|
19
21
|
logEventInfo: object,
|
|
20
22
|
) => void
|
|
21
23
|
jdJumpToShopMemberGood: (customerLevel: number, logEventInfo: object) => void
|
|
22
24
|
jdJumpToBeanDetail: (logEventInfo: object) => void
|
|
23
25
|
jdJumpToMyRedEnvelope: (logEventInfo: object) => void
|
|
24
26
|
jdJumpToMyCoupon: (logEventInfo: object) => void
|
|
25
27
|
jdJumpToTabAllProduct: (
|
|
26
28
|
shopId: string | number,
|
|
27
29
|
venderId: string | number,
|
|
28
30
|
logEventInfo: object,
|
|
29
31
|
) => void
|
|
30
32
|
jdJumpToTabAllProductInner: (
|
|
31
33
|
shopId: string | number,
|
|
32
34
|
venderId: string | number,
|
|
33
35
|
logEventInfo: object,
|
|
34
36
|
) => void
|
|
35
37
|
jdJumpToShopHome: () => {},
|
|
36
38
|
jdJumpToProduct: () => {},
|
|
37
39
|
jdJumpConfigUrl: () => {},
|
|
38
40
|
jdJumpToShopMemberInfo: () => {},
|
|
39
41
|
jdJumpToShopMemberPointDetail: () => {},
|
|
40
42
|
jdJumpToShopMemberBenefit: () => {},
|
|
41
43
|
jdJumpToShopMemberRule: () => {},
|
|
42
44
|
jdJumpToShopMemberCloseAccount: () => {},
|
|
43
45
|
jdJumpToShopMemberPointExchange: () => {},
|
|
44
46
|
jdJumpToShopMemberBonusPurchase: () => {},
|
|
45
47
|
jdJumpToShopMemberGood: () => {},
|
|
46
48
|
jdJumpToBeanDetail: () => {},
|
|
47
49
|
jdJumpToMyRedEnvelope: () => {},
|
|
48
50
|
jdJumpToMyCoupon: () => {},
|
|
49
51
|
jdJumpToTabAllProduct: () => {},
|
|
50
52
|
jdJumpToTabAllProductInner: () => {},
|
|
51
53
|
jdJumpToWeb: (url: string, logEventInfo: object) => void
|
|
52
54
|
jdJumpToAppMiniProgram: (path: string, logEventInfo: object) => void
|
|
53
55
|
jdJumpToShopLight: (detail: object) => void
|
|
54
56
|
jdJumpToAppMiniProgram: () => {},
|
|
55
57
|
jdJumpToShopLight: () => {},
|
|
56
58
|
jdJumpToWeb: () => {},
|
|
57
59
|
[key: string]: any
|
|
58
60
|
[key: string]: any
|
|
59
61
|
const {
|
|
60
62
|
jdJumpToShopHome,
|
|
61
63
|
jdJumpToProduct,
|
|
62
64
|
jdJumpConfigUrl,
|
|
63
65
|
jdJumpToShopMemberInfo,
|
|
64
66
|
jdJumpToShopMemberPointDetail,
|
|
65
67
|
jdJumpToShopMemberBenefit,
|
|
66
68
|
jdJumpToShopMemberRule,
|
|
67
69
|
jdJumpToShopMemberCloseAccount,
|
|
68
70
|
jdJumpToShopMemberPointExchange,
|
|
69
71
|
jdJumpToShopMemberBonusPurchase,
|
|
70
72
|
jdJumpToShopMemberGood,
|
|
71
73
|
jdJumpToBeanDetail,
|
|
72
74
|
jdJumpToMyRedEnvelope,
|
|
73
75
|
jdJumpToMyCoupon,
|
|
74
76
|
jdJumpToTabAllProduct,
|
|
75
77
|
jdJumpToTabAllProductInner,
|
|
76
78
|
} = JumpEventReport
|
|
77
79
|
const {
|
|
78
80
|
jdJumpToAppMiniProgram,
|
|
79
81
|
jdJumpToShopLight,
|
|
80
82
|
jdJumpToWeb,
|
|
81
83
|
jumpWebUrl,
|
|
82
84
|
jumpMiniPath,
|
|
83
85
|
} = JumpEventReport
|
|
84
86
|
Object.assign(business, {
|
|
85
87
|
jdJumpToShopHome: jdJumpToShopHome.bind(JumpEventReport),
|
|
86
88
|
jdJumpToProduct: jdJumpToProduct.bind(JumpEventReport),
|
|
87
89
|
jdJumpConfigUrl: jdJumpConfigUrl.bind(JumpEventReport),
|
|
88
90
|
jdJumpToShopMemberInfo: jdJumpToShopMemberInfo.bind(JumpEventReport),
|
|
89
91
|
jdJumpToShopMemberPointDetail:
|
|
90
92
|
jdJumpToShopMemberPointDetail.bind(JumpEventReport),
|
|
91
93
|
jdJumpToShopMemberBenefit: jdJumpToShopMemberBenefit.bind(JumpEventReport),
|
|
92
94
|
jdJumpToShopMemberRule: jdJumpToShopMemberRule.bind(JumpEventReport),
|
|
93
95
|
jdJumpToShopMemberCloseAccount:
|
|
94
96
|
jdJumpToShopMemberCloseAccount.bind(JumpEventReport),
|
|
95
97
|
jdJumpToShopMemberPointExchange:
|
|
96
98
|
jdJumpToShopMemberPointExchange.bind(JumpEventReport),
|
|
97
99
|
jdJumpToShopMemberBonusPurchase:
|
|
98
100
|
jdJumpToShopMemberBonusPurchase.bind(JumpEventReport),
|
|
99
101
|
jdJumpToShopMemberGood: jdJumpToShopMemberGood.bind(JumpEventReport),
|
|
100
102
|
jdJumpToBeanDetail: jdJumpToBeanDetail.bind(JumpEventReport),
|
|
101
103
|
jdJumpToMyRedEnvelope: jdJumpToMyRedEnvelope.bind(JumpEventReport),
|
|
102
104
|
jdJumpToMyCoupon: jdJumpToMyCoupon.bind(JumpEventReport),
|
|
103
105
|
jdJumpToTabAllProduct: jdJumpToTabAllProduct.bind(JumpEventReport),
|
|
104
106
|
jdJumpToTabAllProductInner:
|
|
105
107
|
jdJumpToTabAllProductInner.bind(JumpEventReport),
|
|
106
108
|
})
|
|
107
109
|
Object.assign(side, {
|
|
108
110
|
jdJumpToAppMiniProgram: jdJumpToAppMiniProgram.bind(JumpEventReport),
|
|
109
111
|
jdJumpToShopLight: jdJumpToShopLight.bind(JumpEventReport),
|
|
110
112
|
jdJumpToWeb: jdJumpToWeb.bind(JumpEventReport),
|
|
111
113
|
jumpWebUrl,
|
|
112
114
|
jumpMiniPath,
|
|
113
115
|
})
|
|
114
116
|
Object.assign(webUrl, jumpWebUrl)
|
|
115
117
|
Object.assign(minPath, jumpMiniPath)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export const getDataDefine = (floorData, name = "") => {
|
|
2
1
|
if (floorData) {
|
|
3
2
|
if (name) {
|
|
4
3
|
return floorData?.dsConfig?.editProperty?.dataDefines?.find(item => item.name === name)?.nodeText ?? {}
|
|
5
4
|
}
|
|
6
5
|
else {
|
|
7
6
|
return floorData?.dsConfig?.editProperty?.dataDefines ?? []
|
|
8
7
|
}
|
|
9
8
|
}
|
|
10
9
|
return {}
|
|
10
|
+
export const getDataDefine = (floorData, name = '') => {
|
|
11
11
|
if (floorData) {
|
|
12
12
|
const dataDefines = floorData?.dsConfig?.editProperty?.dataDefines ?? []
|
|
13
13
|
if (name) {
|
|
14
14
|
return dataDefines.find((item) => item.name === name)?.nodeText ?? {}
|
|
15
15
|
} else {
|
|
16
16
|
return dataDefines
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
return {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import requestServer from '../../service/requestServer'
|
|
2
|
return requestServer.receiveCoupon(param, clientParams)
|
|
1
3
|
return requestServer.bMallGetUserInfo()
|
|
2
4
|
return requestServer.bMallGetSkuNumApi(needRequest, bMallTag)
|
|
3
5
|
return requestServer.bMallCartHandle(goodItem, num)
|
|
4
6
|
receiveCoupon,
|
|
5
7
|
bMallGetUserInfo,
|
|
6
8
|
bMallGetSkuNumApi,
|
|
7
9
|
bMallCartHandle
|