@conecli/cone-render 0.8.15-alpha.0 → 0.8.15-alpha.1
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/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.weapp.tsx +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +10 -0
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -0
- package/dist/components/base/ExposureSmart/index.module.scss +11 -0
- package/dist/components/base/ExposureSmart/index.tsx +1 -0
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -0
- package/dist/components/base/InViewRender/const.ts +1 -0
- package/dist/components/base/InViewRender/index.module.scss +17 -0
- package/dist/components/base/InViewRender/index.tsx +1 -0
- package/dist/components/base/InViewRender/index.weapp.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -0
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/system/PictureHotSpot/index.old.tsx +1 -1
- package/dist/config/shop.ts +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/index.ts +1 -0
- package/dist/interface/jumpEventReport.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.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/index.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.wxapp.ts +1 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/DecorateContainerFloorList/index.module.scss +0 -34
- package/dist/open/api/jump.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/open/index.ts +1 -1
- package/dist/sass/decorate.h5.scss +33 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/draExceptionHandle.ts +1 -0
- 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/jm-js-agent.js +1 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +9 -3
- package/dist/assets/addToCart.png +0 -0
- package/dist/assets/app_loading_logo.gif +0 -0
- package/dist/assets/arror-left-back.png +0 -0
- package/dist/assets/arrow-top.png +0 -0
- package/dist/assets/backup/b6h.png +0 -0
- package/dist/assets/backup/b6i.png +0 -0
- package/dist/assets/backup/b6j.png +0 -0
- package/dist/assets/backup/b6k.png +0 -0
- package/dist/assets/backup/b6l.png +0 -0
- package/dist/assets/backup/b6m.png +0 -0
- package/dist/assets/backup/b6n.png +0 -0
- package/dist/assets/backup/b6o.png +0 -0
- package/dist/assets/backup/b6p.png +0 -0
- package/dist/assets/backup/b6q.png +0 -0
- package/dist/assets/backup/b6r.png +0 -0
- package/dist/assets/backup/b6s.png +0 -0
- package/dist/assets/backup/b6t.png +0 -0
- package/dist/assets/backup/b6u.png +0 -0
- package/dist/assets/backup/b6v.png +0 -0
- package/dist/assets/beans@3x.png +0 -0
- package/dist/assets/bg-reason-small.png +0 -0
- package/dist/assets/butn_focus@3x.png +0 -0
- package/dist/assets/buyshow_like_it_icon@3x.png +0 -0
- package/dist/assets/buyshow_like_it_icon_select@3x.png +0 -0
- package/dist/assets/buyshow_sku_icon_arrow@3x.png +0 -0
- package/dist/assets/buyshow_white heart@3x.png +0 -0
- package/dist/assets/buyshow_white heart@3x_active.png +0 -0
- package/dist/assets/closeshop_detail_next@3x.png +0 -0
- package/dist/assets/down_arrow@3x.png +0 -0
- package/dist/assets/dynamic-comment-icon.png +0 -0
- package/dist/assets/find-conment.png +0 -0
- package/dist/assets/find-praise.png +0 -0
- package/dist/assets/find-video.png +0 -0
- package/dist/assets/fliter_arrow_gray_normal@3x.png +0 -0
- package/dist/assets/fliter_arrow_red_normal@3x.png +0 -0
- package/dist/assets/fliter_arrow_white_normal@3x.png +0 -0
- package/dist/assets/fliter_price_white_noarmal@3x.png +0 -0
- package/dist/assets/float-close.png +0 -0
- package/dist/assets/focus_add_new@3x.png +0 -0
- package/dist/assets/focus_gray@3x.png +0 -0
- package/dist/assets/focus_ok_new@3x.png +0 -0
- package/dist/assets/forget_tip_icon.png +0 -0
- package/dist/assets/grid.png +0 -0
- package/dist/assets/icon-licence.png +0 -0
- package/dist/assets/icon-no-googs@3x.png +0 -0
- package/dist/assets/icon-phone.png +0 -0
- package/dist/assets/icon-qr.png +0 -0
- package/dist/assets/icon_arrow_black.png +0 -0
- package/dist/assets/icon_arrow_gray.png +0 -0
- package/dist/assets/icon_arrow_white.png +0 -0
- package/dist/assets/icon_clock.png +0 -0
- package/dist/assets/icon_grid_black.png +0 -0
- package/dist/assets/icon_grid_gray.png +0 -0
- package/dist/assets/icon_grid_white.png +0 -0
- package/dist/assets/icon_hot_word@3x.png +0 -0
- package/dist/assets/icon_joy_querstiong.png +0 -0
- package/dist/assets/icon_list2_black.png +0 -0
- package/dist/assets/icon_list2_gray.png +0 -0
- package/dist/assets/icon_list2_white.png +0 -0
- package/dist/assets/icon_list_black.png +0 -0
- package/dist/assets/icon_list_gray.png +0 -0
- package/dist/assets/icon_list_white.png +0 -0
- package/dist/assets/icon_magic_cub_guid@3x.png +0 -0
- package/dist/assets/icon_new_word@3x.png +0 -0
- package/dist/assets/icon_no_wifi.png +0 -0
- package/dist/assets/icon_noti_info_black.png +0 -0
- package/dist/assets/icon_promotion_word@3x.png +0 -0
- package/dist/assets/icon_search_black.png +0 -0
- package/dist/assets/icon_search_gray.png +0 -0
- package/dist/assets/icon_search_white.png +0 -0
- package/dist/assets/icon_title_newware@3x.png +0 -0
- package/dist/assets/intimate-star.png +0 -0
- package/dist/assets/jd_logo_bg.png +0 -0
- package/dist/assets/jdbeanssignedsuccess_images_joy_error.png +0 -0
- package/dist/assets/jdshop_dynamic_comment_notice_bg@3x.png +0 -0
- package/dist/assets/jsbundles_jdreactddpet_components_main_img_share.png +0 -0
- package/dist/assets/jsbundles_jdreactshopactivitytab_images_plusprice.png +0 -0
- package/dist/assets/jshop_auction_FocusStatus_black@2x.png +0 -0
- package/dist/assets/jshop_auction_FocusStatus_red@2x.png +0 -0
- package/dist/assets/jshop_auction_green@2x.png +0 -0
- package/dist/assets/jshop_auction_red@2x.png +0 -0
- package/dist/assets/jshop_comment_head@3x.png +0 -0
- package/dist/assets/jshop_dynamic_like@3x.png +0 -0
- package/dist/assets/jshop_dynamic_liked@3x.png +0 -0
- package/dist/assets/jshop_dynamic_look_eye@3x.png +0 -0
- package/dist/assets/jshop_exchange_big_right_blue_bg@3x.png +0 -0
- package/dist/assets/jshop_exchange_big_right_grey_bg@3x.png +0 -0
- package/dist/assets/jshop_exchange_big_right_red_bg@3x.png +0 -0
- package/dist/assets/jshop_focus_coupon_blue_normal.png +0 -0
- package/dist/assets/jshop_focus_coupon_grey.png +0 -0
- package/dist/assets/jshop_focus_coupon_grey_mark@3x.png +0 -0
- package/dist/assets/jshop_focus_coupon_sellout_mark@3x.png +0 -0
- package/dist/assets/jshop_focus_coupon_unactive_mark@3x.png +0 -0
- package/dist/assets/jshop_home_dynamic_icon_time@3x.png +0 -0
- package/dist/assets/jshop_lbsLocation_arrow_right@3x.png +0 -0
- package/dist/assets/jshop_member_focus_coupon_more_arrow@3x.png +0 -0
- package/dist/assets/jshop_member_focus_coupon_vip_own@2x.png +0 -0
- package/dist/assets/jshop_more_goods_arrow_normal@3x.png +0 -0
- package/dist/assets/jshop_noti_info_icon@2x.png +0 -0
- package/dist/assets/jshop_price_arrow_down@3x.png +0 -0
- package/dist/assets/jshop_price_arrow_normal@3x.png +0 -0
- package/dist/assets/jshop_price_arrow_up@3x.png +0 -0
- package/dist/assets/jshop_sign_icon_shop.png +0 -0
- package/dist/assets/jshop_sign_navi_prize_active.png +0 -0
- package/dist/assets/jshop_sign_navi_prize_inactive.png +0 -0
- package/dist/assets/jshop_sign_navi_rule_active.png +0 -0
- package/dist/assets/jshop_sign_navi_rule_normal.png +0 -0
- package/dist/assets/jshop_sign_navi_signature_active.png +0 -0
- package/dist/assets/jshop_sign_navi_signature_inactive.png +0 -0
- package/dist/assets/jshop_tab_icon_check@3x.png +0 -0
- package/dist/assets/jshop_tab_icon_check_white@3x.png +0 -0
- package/dist/assets/jshop_tip_icon@3x.png +0 -0
- package/dist/assets/jshop_tip_wihte_icon@3x.png +0 -0
- package/dist/assets/jshop_video_play@3x.png +0 -0
- package/dist/assets/left.svg +0 -20
- package/dist/assets/list.png +0 -0
- package/dist/assets/living_loading_view@3x.png +0 -0
- package/dist/assets/living_muteIcon@3x.png +0 -0
- package/dist/assets/living_recommendIcon@3x.png +0 -0
- package/dist/assets/living_rightArrowIcon@3x.png +0 -0
- package/dist/assets/living_voiceIcon@3x.png +0 -0
- package/dist/assets/living_zoomIcon@3x.png +0 -0
- package/dist/assets/loading-spinner.svg +0 -44
- package/dist/assets/loading_red.png +0 -0
- package/dist/assets/logo_side_arrow@3x.png +0 -0
- package/dist/assets/lowest-price-icon.png +0 -0
- package/dist/assets/magiccube_title@3x.png +0 -0
- package/dist/assets/mark_offshelf.png +0 -0
- package/dist/assets/mark_soldout.png +0 -0
- package/dist/assets/mofang@3x.png +0 -0
- package/dist/assets/nati_icon_dong_normal@3x.png +0 -0
- package/dist/assets/nati_icon_dong_normal@3x_active.png +0 -0
- package/dist/assets/nati_icon_goods_normal@3x.png +0 -0
- package/dist/assets/nati_icon_goods_normal@3x_active.png +0 -0
- package/dist/assets/nati_icon_home_normal@3x.png +0 -0
- package/dist/assets/nati_icon_home_normal@3x_active.png +0 -0
- package/dist/assets/nati_icon_list_normal@3x.png +0 -0
- package/dist/assets/nati_icon_list_normal@3x_active.png +0 -0
- package/dist/assets/nati_icon_location_normal@3x.png +0 -0
- package/dist/assets/nati_icon_location_normal@3x_active.png +0 -0
- package/dist/assets/nati_icon_member_normal@3x.png +0 -0
- package/dist/assets/nati_icon_member_normal@3x_active.png +0 -0
- package/dist/assets/nati_icon_shop_new_find@3x.png +0 -0
- package/dist/assets/nati_icon_shop_new_find_selected@3x.png +0 -0
- package/dist/assets/network-error.png +0 -0
- package/dist/assets/new_living_support_icon@3x.png +0 -0
- package/dist/assets/next_arrow@3x.png +0 -0
- package/dist/assets/next_arrow_red@3x.png +0 -0
- package/dist/assets/pingou-bg.png +0 -0
- package/dist/assets/playbacklivingIcon@3x.png +0 -0
- package/dist/assets/plusExclusiveMark@2x.png +0 -0
- package/dist/assets/recom-icon.png +0 -0
- package/dist/assets/search-input-close-icon.png +0 -0
- package/dist/assets/search_bar_icon_new@3x.png +0 -0
- package/dist/assets/shop-classify-active.png +0 -0
- package/dist/assets/shop-classify.png +0 -0
- package/dist/assets/shop-dongdong.png +0 -0
- package/dist/assets/shop-goods-active.png +0 -0
- package/dist/assets/shop-goods.png +0 -0
- package/dist/assets/shop-home-active.png +0 -0
- package/dist/assets/shop-home.png +0 -0
- package/dist/assets/shop-license.png +0 -0
- package/dist/assets/shop-member.png +0 -0
- package/dist/assets/shop-search-36.png +0 -0
- package/dist/assets/shop-tip-weapp.png +0 -0
- package/dist/assets/shop_play_butn@3x.png +0 -0
- package/dist/assets/stars.png +0 -0
- package/dist/assets/title_name@3x.png +0 -0
- package/dist/assets/video_ing@3x.png +0 -0
- package/dist/assets/video_ing_small@3x.png +0 -0
- package/dist/assets/video_over@3x.png +0 -0
- package/dist/assets/video_promotion@3x.png +0 -0
- package/dist/components/base/LazyLayoutLoad/index.old.tsx +0 -1
- package/dist/utils/jdAppImmersionheader.ts +0 -1
package/dist/api/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { protocol, isBetaServer, isH5 } from '../config/env'
|
|
1
|
+
import { protocol, isBetaServer, isH5 } from '../config/env'
|
package/dist/common/const.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { isPublishToWxapp } from '../config/env'
|
|
1
|
+
import { isPublishToWxapp } from '../config/env'
|
package/dist/common/index.h5.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
package/dist/common/index.jd.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
package/dist/common/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
2
2
|
console.log('=================>', 'updateBusinessDomainAndApi')
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
return (
|
|
1
3
|
<ScrollView
|
|
2
4
|
scrollX
|
|
3
5
|
enhanced
|
|
4
6
|
showScrollbar={false}
|
|
5
7
|
{...otherProps}
|
|
6
8
|
className={classNames(
|
|
7
9
|
className,
|
|
8
10
|
{
|
|
9
11
|
[customScrollViewStyle[
|
|
10
12
|
'd-custom-ios-mini-extend-border-radius'
|
|
11
13
|
]]:
|
|
12
14
|
isIosDevice &&
|
|
13
15
|
isWxMin &&
|
|
14
16
|
scrollX &&
|
|
15
17
|
style['borderRadius'],
|
|
16
18
|
},
|
|
17
19
|
{
|
|
18
20
|
[customScrollViewStyle[
|
|
19
21
|
'd-custom-ios-h5-extend-border-radius'
|
|
20
22
|
]]: isIosDevice,
|
|
21
23
|
},
|
|
22
24
|
{
|
|
23
25
|
[customScrollViewStyle['d-custom-mini-hide-scroll']]:
|
|
24
26
|
isWxMin,
|
|
25
27
|
},
|
|
26
28
|
)}
|
|
27
29
|
style={style}
|
|
28
30
|
>
|
|
29
31
|
{children}
|
|
30
32
|
</ScrollView>
|
|
31
33
|
)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import track from '../../../open/api/track'
|
|
2
|
const {arr : arrTask, startWaitTime} = floorTask
|
|
1
3
|
const isTimeout = startWaitTime != 0 && (Date.now() - startWaitTime >= 1000)
|
|
2
4
|
const isOverMax = arrTask.length >= 10
|
|
3
5
|
const hasData = arrTask.length > 0
|
|
4
6
|
if(hasData && (isTimeout || isOverMax)){
|
|
5
7
|
const reduceData = connactData(arrTask)
|
|
6
8
|
track.reportExposureEventLog(reduceData)
|
|
7
9
|
floorTask.arr = []
|
|
8
10
|
floorTask.startWaitTime = 0
|
|
9
11
|
clearTimeout(floorTask.timer)
|
|
10
12
|
}
|
|
11
13
|
const initData = JSON.parse(JSON.stringify(arr[0]))
|
|
12
14
|
initData.jsonParam.logBaseInfo = []
|
|
13
15
|
initData.jsonParam.etModelInfo.lstms = []
|
|
14
16
|
return arr.reduce((acc, cur) => {
|
|
15
17
|
cur.jsonParam.etModelInfo.lstms[0].la_p = cur.jsonParam.logBaseInfo.mInfo.pos
|
|
16
18
|
acc.jsonParam.logBaseInfo.push(cur.jsonParam.logBaseInfo)
|
|
17
19
|
acc.jsonParam.etModelInfo.lstms.push(cur.jsonParam.etModelInfo.lstms)
|
|
18
20
|
return acc
|
|
19
21
|
}, initData)
|
|
20
22
|
if(!Array.isArray(data)){
|
|
21
23
|
console.log('坑位曝光埋点原始数据参类型错误,期望是数组,实际是:', data)
|
|
22
24
|
return
|
|
23
25
|
}
|
|
24
26
|
const [floorData, mInfo, etModelInfo] = data
|
|
25
27
|
if(floorData && mInfo && etModelInfo){
|
|
26
28
|
const reportJson = track.getIsvExposureInfo(floorData, mInfo, etModelInfo)
|
|
27
29
|
const { floorIdx } = floorData
|
|
28
30
|
if(!task[floorIdx]){
|
|
29
31
|
task[floorIdx] = {
|
|
30
32
|
arr: [],
|
|
31
33
|
startWaitTime: 0,
|
|
32
34
|
timer : 0
|
|
33
35
|
}
|
|
34
36
|
}
|
|
35
37
|
const floorTask = task[floorIdx]
|
|
36
38
|
if(floorTask.arr.length === 0){
|
|
37
39
|
floorTask.startWaitTime = Date.now()
|
|
38
40
|
}
|
|
39
41
|
if(reportJson){
|
|
40
42
|
floorTask.arr.push(reportJson)
|
|
41
43
|
clearTimeout(floorTask.timer)
|
|
42
44
|
floorTask.timer = setTimeout(() => {
|
|
43
45
|
check(floorTask)
|
|
44
46
|
}, 1000)
|
|
45
47
|
check(floorTask)
|
|
46
48
|
}
|
|
47
49
|
}else{
|
|
48
50
|
console.log('坑位曝光埋点原始数据参数缺失,期望是[floorData, mInfo, etModelInfo],实际是:', data)
|
|
49
51
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const LazyType = {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
.d-mobile-floor-lazy-layout-load,
|
|
4
|
+
.d-app-floor-lazy-layout-load {
|
|
5
|
+
position: relative;
|
|
6
|
+
background: #fff
|
|
7
|
+
url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEsAAAAeCAMAAABT0xOcAAAAe1BMVEUAAADx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fHx8fELy0NOAAAAKHRSTlMApwmfFtYm9rWveHDm70yJHYJaD2k8IeIr6pY2X0HHfsGRZDHdu1XNmO+CqgAAAu9JREFUSMfNlNmymzAQRAchkCUhdrMZbLze/v8vjIRMKN8kRR7ykFNeVIPV9Ewj039P1TR8+eILjL7RdLFFJUO8QMS7ZmyDJvZ0nDYGY+aKKDSJpY3OwWX6uFUEY/peCNEbY4Rp6AABixFYkLQRAK3VOmAjUrawMt1GrfWtXD7rlFF3uiA6HV/p0TF1tBECEVskYe+7qqW08mqT1jruneu21/72JfHoSZ7faj2bJu6mOlgEa3qjEXKeL/ACV1s5YSbqYP6stXUeX2FZnV3wuBSZqnVWqDNCIvaFRzZIiGAIw+CS/1brQCslgOQdUBoW10C2EFJei7AkygOlAnmGeMprJq/NjhZpAIrepOpOte2Oq9EXjupIMVoiXduQ9rTo7KsODhxJYaAGuJPjgRvdkRD1KP9CawRwettyF5SbVLZ49ZbuMJxGW93XisXPKA/oXNMDEReJT6N0OfZ2V4RqX4tFQPbOQbntwrl8oXCOQmu2hVosSr6j5QcW+uvukZJP37CWzL7tQs2lH8B53Nd6eq192N/72mdfa52XhdXPx6zcXKYgikLXbaNP66M27edoAO2X+RkQ9tVRhoWC6IZkCZAbHHa1SgDHNdHDsbrLr0ojKTkfDWp6+WPh1APakMAXbVrb6B/Mn+311zlETJZOCJYChttWxedUIyvyi9bLt+J4IPcLvVYypBNaDG5TguCzmct3rUkAPSdHJRLyDEjXQ6Un3GZQBamxaU09gJg+/r+4gqV0uzixXjBfLnDzixrjhDJGNoDXXqvK76OEJaO3L1bx/FQOCSxqcfJVUWiXCydEPowHeIqaZnf3wmvNRsBiC28ttEnS+1oy+lNtOMVAzayZCwsQ5ESNREgvKKuNjjI/ewNHr9Y4N5Is98llx2U8iOQXcKczhDwAM6ObayaanfWDDwhJcMvpU8ucr6+cPji5a8+UEVMCMNo97tLm0MU2uoMmi850yrc8s8Khyzuj7+Q6U7GPMCt8mOtGljP6l/wAUcBZ6lceL/8AAAAASUVORK5CYII=')
|
|
8
|
+
center center no-repeat;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.d-mobile-prestrain-component {
|
|
12
|
+
position: absolute;
|
|
13
|
+
//top: -50vh;
|
|
14
|
+
top: -35vh;
|
|
15
|
+
width: 100%;
|
|
16
|
+
height: 0;
|
|
17
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
2
|
inViewCallback
|
|
1
3
|
if (isH5AndJdShopView) {
|
|
2
4
|
useEffect(() => {
|
|
3
5
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
4
6
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes)
|
|
5
7
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
|
|
6
8
|
!componentShowStateRef.current && dealPageScrollInfo(res)
|
|
7
9
|
})
|
|
8
10
|
}, [])
|
|
9
11
|
useEffect(() => {
|
|
10
12
|
if(componentShowState){
|
|
11
13
|
typeof inViewCallback === 'function' && inViewCallback()
|
|
12
14
|
console.log('InViewRender -- 店铺H5 展示啦!')
|
|
13
15
|
}
|
|
14
16
|
}, [componentShowState])
|
|
15
17
|
|
|
16
18
|
const dealPageScrollInfo = (res) => {
|
|
17
19
|
if (componentLazyRef.current) {
|
|
18
20
|
const eleClientRect =
|
|
19
21
|
componentLazyRef.current.getBoundingClientRect()
|
|
20
22
|
const getContainerHeightOffSetY = res.displayHeight + res.offSetY
|
|
21
23
|
const eleOffsetTop = Math.ceil(eleClientRect.top)
|
|
22
24
|
if (!componentShowStateRef.current) {
|
|
23
25
|
if (getContainerHeightOffSetY > eleOffsetTop) {
|
|
24
26
|
componentShowStateRef.current = true
|
|
25
27
|
setComponentShowState(true)
|
|
26
28
|
Taro.nextTick(() => {
|
|
27
29
|
setComponentRenderShowState(true)
|
|
28
30
|
})
|
|
29
31
|
}
|
|
30
32
|
}
|
|
31
33
|
}
|
|
32
34
|
}
|
|
33
35
|
return (
|
|
34
36
|
<View
|
|
35
37
|
ref={componentLazyRef}
|
|
36
38
|
className={classNames(
|
|
37
39
|
lazyLayoutLoadStyle['d-app-floor-lazy-layout-load'],
|
|
38
40
|
'd-app-floor-lazy-load',
|
|
39
41
|
)}
|
|
40
42
|
style={{
|
|
41
43
|
minHeight: `${
|
|
42
44
|
componentRenderShowState ? 'auto' : height + (typeof height === 'number'? 'px': '')
|
|
43
45
|
}`,
|
|
44
46
|
backgroundColor: componentRenderShowState
|
|
45
47
|
? 'transparent'
|
|
46
48
|
: '#ffffff',
|
|
47
49
|
}}
|
|
48
50
|
>
|
|
49
51
|
{componentShowState ? children : placeholder}
|
|
50
52
|
</View>
|
|
51
53
|
)
|
|
52
54
|
} else {
|
|
53
55
|
const rootDom = document.querySelector('#J_shopHomeRoot')
|
|
54
56
|
const { ref, inView } = useInView({
|
|
55
57
|
threshold: 0,
|
|
56
58
|
triggerOnce: true,
|
|
57
59
|
root: rootDom,
|
|
58
60
|
rootMargin: `0px 0px 0px 0px`,
|
|
59
61
|
})
|
|
60
62
|
useEffect(() => {
|
|
61
63
|
if(inView){
|
|
62
64
|
typeof inViewCallback === 'function' && inViewCallback()
|
|
63
65
|
console.log('InViewRender -- 其它H5 展示啦!')
|
|
64
66
|
}
|
|
65
67
|
}, [inView])
|
|
66
68
|
return (
|
|
67
69
|
<View
|
|
68
70
|
ref={ref}
|
|
69
71
|
style={{
|
|
70
72
|
minHeight: `${inView ? 'auto' : height + 'px'}`,
|
|
71
73
|
backgroundColor: 'transparent',
|
|
72
74
|
}}
|
|
73
75
|
>
|
|
74
76
|
{inView ? children : placeholder}
|
|
75
77
|
</View>
|
|
76
78
|
)
|
|
77
79
|
}
|
|
78
80
|
inViewCallback: null,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro, { useRouter } from '@tarojs/taro'
|
|
2
1
|
floorData = {},
|
|
3
2
|
const rootDom = document.querySelector('#J_shopHomeRoot')
|
|
4
3
|
root: rootDom,
|
|
5
4
|
rootMargin: `0px 0px ${window.innerHeight}px 0px`,
|
|
6
5
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
7
6
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes)
|
|
8
7
|
useEffect(() => {
|
|
9
8
|
if(componentShowState === true){
|
|
10
9
|
console.log('>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!')
|
|
11
10
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
12
11
|
console.log('>>>>>>>>>>>>>>>>>>> 向IOS原生发送通知请求ISV模块依赖JS文件:', bundleUrl)
|
|
13
12
|
nativePageRegisterMessage(
|
|
14
13
|
Message_Type.NATIVE_INJECT_JS_FILE,
|
|
15
14
|
{
|
|
16
15
|
data: {
|
|
17
16
|
"bundleUrl": [bundleUrl]
|
|
18
17
|
},
|
|
19
18
|
},
|
|
20
19
|
)
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
}, [componentShowState])
|
|
24
23
|
ref={ref}
|
|
24
|
+
import Taro, { useRouter } from '@tarojs/taro'
|
|
25
25
|
floorData = {},
|
|
26
26
|
const rootDom = document.querySelector('#J_shopHomeRoot')
|
|
27
27
|
root: rootDom,
|
|
28
28
|
rootMargin: `0px 0px ${window.innerHeight}px 0px`,
|
|
29
29
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
30
30
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes)
|
|
31
31
|
useEffect(() => {
|
|
32
32
|
if(componentShowState === true){
|
|
33
33
|
console.log('>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!')
|
|
34
34
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
35
35
|
nativePageRegisterMessage(
|
|
36
36
|
Message_Type.NATIVE_INJECT_JS_FILE,
|
|
37
37
|
{
|
|
38
38
|
data: {
|
|
39
39
|
"bundleUrl": [bundleUrl]
|
|
40
40
|
},
|
|
41
41
|
},
|
|
42
42
|
)
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
45
|
}, [componentShowState])
|
|
46
46
|
ref={ref}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|
2
1
|
const [componentShowState, setComponentShowState] = useState(false)
|
|
3
2
|
const componentLazyRef = useRef<HTMLElement | null>(null)
|
|
4
3
|
const componentShowStateRef = useRef(false)
|
|
5
4
|
useEffect(() => {
|
|
6
5
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
7
6
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes)
|
|
8
7
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
|
|
9
8
|
!componentShowStateRef.current && dealPageScrollInfo(res)
|
|
10
9
|
})
|
|
11
10
|
|
|
12
11
|
|
|
13
12
|
<View
|
|
14
13
|
ref={componentLazyRef}
|
|
15
14
|
className={classNames(
|
|
16
15
|
imageStyle['d-app-lazy-image'],
|
|
17
16
|
{
|
|
18
17
|
[imageStyle['d-lazy-sku-image']]: isSkuImage,
|
|
19
18
|
},
|
|
20
19
|
{
|
|
21
20
|
[imageStyle['d-hide-image-error']]: imageErrState,
|
|
22
21
|
},
|
|
23
22
|
{
|
|
24
23
|
[imageStyle['d-load-completed']]: loadSuccess,
|
|
25
24
|
},
|
|
26
25
|
{
|
|
27
26
|
'd-imag-rendering-crisp-edges':
|
|
28
27
|
!taroJdBaseInfo.info.pageInfo.isVipShop &&
|
|
29
28
|
imagRenderingSet,
|
|
30
29
|
},
|
|
31
30
|
'J_html5ImageBg',
|
|
32
31
|
className,
|
|
33
32
|
)}
|
|
34
33
|
style={{
|
|
35
34
|
...style,
|
|
36
35
|
...changeStyleIncludeWidthAndHeightAndBgColor(),
|
|
37
36
|
}}
|
|
38
37
|
>
|
|
39
38
|
{componentShowState && <img
|
|
40
39
|
src={getQualityImage(
|
|
41
40
|
imgSrc,
|
|
42
41
|
taroJdBaseInfo.info.pageInfo.isVipShop
|
|
43
42
|
? NetWorkTypeQuality['perfect']
|
|
44
43
|
: NetWorkTypeQuality[getNetWorkType],
|
|
45
44
|
)}
|
|
46
45
|
onLoad={imageLoad.bind(this, imgSrc)}
|
|
47
46
|
onError={imageError}
|
|
48
47
|
/>}
|
|
49
48
|
</View>
|
|
50
49
|
) : (
|
|
51
50
|
<Image
|
|
52
51
|
style={{
|
|
53
52
|
...style,
|
|
54
53
|
...changeStyleIncludeWidthAndHeightAndBgColor(),
|
|
55
54
|
}}
|
|
56
55
|
className={classNames(
|
|
57
56
|
imageStyle['d-lazy-image'],
|
|
58
57
|
{
|
|
59
58
|
[imageStyle['d-lazy-sku-image']]: isSkuImage,
|
|
60
59
|
},
|
|
61
60
|
{
|
|
62
61
|
[imageStyle['d-hide-image-error']]: imageErrState,
|
|
63
62
|
},
|
|
64
63
|
{
|
|
65
64
|
[imageStyle['d-load-completed']]: loadSuccess,
|
|
66
65
|
},
|
|
67
66
|
{
|
|
68
67
|
'd-imag-rendering-crisp-edges': imagRenderingSet,
|
|
69
68
|
},
|
|
70
69
|
className,
|
|
71
70
|
)}
|
|
72
71
|
src={getQualityImage(
|
|
73
72
|
imgSrc,
|
|
74
73
|
NetWorkTypeQuality[getNetWorkType],
|
|
75
74
|
)}
|
|
76
75
|
lazyLoad={lazyLoad}
|
|
77
76
|
onError={imageError}
|
|
78
77
|
onLoad={imageLoad.bind(this, imgSrc)}
|
|
79
78
|
{...otherOption}
|
|
80
79
|
/>
|
|
81
80
|
)
|
|
81
|
+
import React, { useCallback, useEffect, useRef, useState } from 'react'
|
|
82
82
|
const [componentShowState, setComponentShowState] = useState(false)
|
|
83
83
|
const componentLazyRef = useRef<HTMLElement | null>(null)
|
|
84
84
|
const componentShowStateRef = useRef(false)
|
|
85
85
|
useEffect(() => {
|
|
86
86
|
const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
|
|
87
87
|
!componentShowStateRef.current && dealPageScrollInfo(latestRes)
|
|
88
88
|
Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
|
|
89
89
|
!componentShowStateRef.current && dealPageScrollInfo(res)
|
|
90
90
|
})
|
|
91
91
|
|
|
92
92
|
|
|
93
93
|
<View
|
|
94
94
|
ref={componentLazyRef}
|
|
95
95
|
className={classNames(
|
|
96
96
|
imageStyle['d-app-lazy-image'],
|
|
97
97
|
{
|
|
98
98
|
[imageStyle['d-lazy-sku-image']]: isSkuImage,
|
|
99
99
|
},
|
|
100
100
|
{
|
|
101
101
|
[imageStyle['d-hide-image-error']]: imageErrState,
|
|
102
102
|
},
|
|
103
103
|
{
|
|
104
104
|
[imageStyle['d-load-completed']]: loadSuccess,
|
|
105
105
|
},
|
|
106
106
|
{
|
|
107
107
|
'd-imag-rendering-crisp-edges':
|
|
108
108
|
!taroJdBaseInfo.info.pageInfo.isVipShop &&
|
|
109
109
|
imagRenderingSet,
|
|
110
110
|
},
|
|
111
111
|
'J_html5ImageBg',
|
|
112
112
|
className,
|
|
113
113
|
)}
|
|
114
114
|
style={{
|
|
115
115
|
...style,
|
|
116
116
|
...changeStyleIncludeWidthAndHeightAndBgColor(),
|
|
117
117
|
}}
|
|
118
118
|
>
|
|
119
119
|
{(componentShowState || lazyLoad === false) && <img
|
|
120
120
|
src={getQualityImage(
|
|
121
121
|
imgSrc,
|
|
122
122
|
taroJdBaseInfo.info.pageInfo.isVipShop
|
|
123
123
|
? NetWorkTypeQuality['perfect']
|
|
124
124
|
: NetWorkTypeQuality[getNetWorkType],
|
|
125
125
|
)}
|
|
126
126
|
onLoad={imageLoad.bind(this, imgSrc)}
|
|
127
127
|
onError={imageError}
|
|
128
128
|
/>}
|
|
129
129
|
</View>
|
|
130
130
|
) : (
|
|
131
131
|
<Image
|
|
132
132
|
style={{
|
|
133
133
|
...style,
|
|
134
134
|
...changeStyleIncludeWidthAndHeightAndBgColor(),
|
|
135
135
|
}}
|
|
136
136
|
className={classNames(
|
|
137
137
|
imageStyle['d-lazy-image'],
|
|
138
138
|
{
|
|
139
139
|
[imageStyle['d-lazy-sku-image']]: isSkuImage,
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
142
|
[imageStyle['d-hide-image-error']]: imageErrState,
|
|
143
143
|
},
|
|
144
144
|
{
|
|
145
145
|
[imageStyle['d-load-completed']]: loadSuccess,
|
|
146
146
|
},
|
|
147
147
|
{
|
|
148
148
|
'd-imag-rendering-crisp-edges': imagRenderingSet,
|
|
149
149
|
},
|
|
150
150
|
className,
|
|
151
151
|
)}
|
|
152
152
|
src={getQualityImage(
|
|
153
153
|
imgSrc,
|
|
154
154
|
NetWorkTypeQuality[getNetWorkType],
|
|
155
155
|
)}
|
|
156
156
|
lazyLoad={lazyLoad}
|
|
157
157
|
onError={imageError}
|
|
158
158
|
onLoad={imageLoad.bind(this, imgSrc)}
|
|
159
159
|
{...otherOption}
|
|
160
160
|
/>
|
|
161
161
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { Suspense, lazy } from 'react'
|
|
1
|
+
import React, { Suspense, lazy } from 'react'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { useCallback } from 'react'
|
|
1
|
+
import React, { useCallback } from 'react'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
package/dist/config/shop.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { isProd, isPublishToWxapp } from '../config/env'
|
|
1
|
+
import { isProd, isPublishToWxapp } from '../config/env'
|
package/dist/interface/common.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
1
|
+
import React from 'react'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { CommonInterFace } from './common'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare namespace JumpEventReportInterFace {
|
|
1
|
+
export declare namespace JumpEventReportInterFace {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { isH5 } from '../utils'
|
|
1
|
+
import { isH5 } from '../utils'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import global from '../common'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { JumpMiniBasePath, JumpWebBaseUrl } from './base'
|
|
1
|
+
import { JumpMiniBasePath, JumpWebBaseUrl } from './base'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum LogPnameInfo {
|
|
1
|
+
export enum LogPnameInfo {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const pageName = window.location.origin + window.location.pathname
|
|
1
|
+
const pageName = window.location.origin + window.location.pathname
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import global from '../common'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { JdJumpJdApp } from './jdJumpJdApp'
|
|
1
|
+
import { JdJumpJdApp } from './jdJumpJdApp'
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import global from '../common'
|
|
@@ -1,39 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
:global {
|
|
5
|
-
html,
|
|
6
|
-
body {
|
|
7
|
-
overflow: hidden;
|
|
8
|
-
::-webkit-scrollbar {
|
|
9
|
-
display: none;
|
|
10
|
-
width: 0;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
.taro_router,
|
|
14
|
-
.taro_page {
|
|
15
|
-
height: auto !important;
|
|
16
|
-
max-height: inherit !important;
|
|
17
|
-
overflow: auto !important;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.taro_router {
|
|
21
|
-
min-height: 800PX;
|
|
22
|
-
// TODO: 这里的全局样式,用于本地开发工具装修端。但经打包后会影响浏览端样式,使得多出一段间距。暂时屏蔽处理
|
|
23
|
-
// padding-bottom: 50PX;
|
|
24
|
-
.taro_page {
|
|
25
|
-
position: static!important;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
page {
|
|
31
|
-
background: #f2f2f2;
|
|
32
|
-
}
|
|
33
|
-
body {
|
|
34
|
-
background-size: 100% auto;
|
|
35
|
-
background-repeat: repeat-y;
|
|
36
|
-
}
|
|
37
3
|
.d-shop-home {
|
|
38
4
|
.d-decorate-floor {
|
|
39
5
|
position: relative;
|
package/dist/open/api/jump.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
|
1
|
+
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
package/dist/open/api/track.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
|
1
|
+
import { JumpEventReport, JumpEventReportPromise } from '../../jumpEventReport'
|
|
2
2
|
initReportBaseData: ReportContainerData.initReportBaseData.bind(ReportContainerData),
|
|
3
3
|
updateSectionTabDataInfo: ReportContainerData.updateSectionTabDataInfo.bind(ReportContainerData),
|