@conecli/cone-render 0.8.19 → 0.8.20-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -1
- package/dist/api/index.ts +1 -1
- package/dist/assets/icon_blue_info.svg +1 -0
- package/dist/common/const.ts +1 -1
- package/dist/common/environmentType.ts +1 -0
- 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/jdplayerSdk.ts +1 -0
- package/dist/common/jssdk.ts +1 -0
- package/dist/common/pageType.ts +1 -0
- package/dist/common/sgmCustomCode.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/common/wxappApi.jd.ts +1 -0
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.module.scss +49 -44
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.module.scss +7 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/common.ts +1 -0
- 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 +22 -2
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/Exposure/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/const.ts +1 -0
- package/dist/components/base/ExposureSmart/index.h5.module.scss +30 -6
- 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/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +24 -20
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +128 -69
- 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 +148 -0
- package/dist/components/base/Price/Base/index.tsx +1 -0
- package/dist/components/base/Price/Double/index.module.scss +190 -0
- package/dist/components/base/Price/Double/index.tsx +1 -0
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/base/ShopLeGaoTag/index.h5.module.scss +35 -0
- package/dist/components/base/ShopLeGaoTag/index.h5.tsx +1 -0
- package/dist/components/base/ShopLeGaoTag/index.module.scss +33 -0
- package/dist/components/base/ShopLeGaoTag/index.tsx +1 -0
- package/dist/components/base/Skeleton/index.tsx +1 -1
- package/dist/components/debug/DebugLayout/index.module.scss +67 -0
- package/dist/components/debug/DebugLayout/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/utils.ts +1 -0
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
- 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/floorItem.weapp.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/interface/utils.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.jd.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.jxwxapp.ts +1 -0
- package/dist/jumpEventReport/web.pc.ts +1 -0
- package/dist/jumpEventReport/web.tjapp.ts +1 -0
- package/dist/jumpEventReport/web.tjm.ts +1 -0
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/language/en_US.json +231 -0
- package/dist/language/zh_CN.json +231 -0
- package/dist/language/zh_HK.json +231 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -27
- 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/environment.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/sass/app.h5.scss +294 -212
- package/dist/sass/base.scss +195 -137
- 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/fetchGateway.weapp.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/h5Http.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.h5.ts +1 -0
- package/dist/service/http/index.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -0
- package/dist/service/requestServer.ts +1 -0
- package/dist/service/requestServer.weapp.ts +1 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/draExceptionAndProfile.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/jumpExtMapUtil.h5.ts +1 -0
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/priceUtils.js +1 -0
- package/dist/utils/ready.ts +1 -0
- package/dist/utils/sColor.js +1 -0
- package/dist/utils/sgmCodeUtils.ts +1 -0
- package/dist/utils/taroRenderUtil.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/api/helper.js +1 -0
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/dist/wxapp/components/launch-app/index.js +1 -0
- package/dist/wxapp/components/launch-app/index.json +5 -0
- package/dist/wxapp/components/launch-app/index.wxml +0 -0
- package/dist/wxapp/components/launch-app/index.wxss +0 -0
- package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
- package/dist/wxapp/components/subscribe-guider/index.js +1 -0
- package/dist/wxapp/components/subscribe-guider/index.json +5 -0
- package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
- package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
- package/package.json +145 -114
- package/dist/components/base/Price/index.module.scss +0 -136
- package/dist/components/base/Skeleton/old.tsx +0 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
- package/dist/open/api/jump.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import { domain } from '../../api'
|
|
1
|
+
import { domain } from '../../api';
|
|
2
2
|
shop: '/pages/shop/index/index',
|
|
3
3
|
detail: '/pages/gold/item/pages/detail/index',
|
|
4
4
|
jxDetail: '/pages/item/detail/detail',
|
|
5
5
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
6
6
|
h5: '/pages/h5/index',
|
|
7
7
|
jingGouHome: '/pages/index/index',
|
|
8
8
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
9
9
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
10
10
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
11
11
|
jxCouponSearch: '/pages/search_copr/index',
|
|
12
12
|
shopx: '/pages/shopx/pages/index/index',
|
|
13
13
|
shopSearch: '/pages/shopx/pages/searchPanel/index',
|
|
14
14
|
jdLive: '/pages/jd_live/pages/liveRoom/index',
|
|
15
15
|
mshop: domain.mshop,
|
|
16
16
|
pages: domain.pages,
|
|
17
17
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
18
18
|
jxCouponSearch: `${domain.jxDomain}/search/coupon.shtml`,
|
|
19
19
|
pcCouponSearch: `${domain.pcSo}/Search`,
|
|
20
20
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
21
21
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
22
22
|
detail: `${domain.mobileDetail}/product/`,
|
|
23
23
|
jxDetail: `${domain.wqs}/item/view.html`,
|
|
24
24
|
tjDetail: `${domain.kpl}/product`,
|
|
25
25
|
pcDetail: `https://item.jd.com/`,
|
|
26
26
|
pcCoupon: `${domain.pcCoupon}/ilink/couponActiveFront/linkKey/front_index.action`,
|
|
27
27
|
mobileHome: `${domain.mobileHome}`,
|
|
28
28
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
29
29
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
30
30
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
31
31
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
32
32
|
myCouponList: `${domain.wqs}/my/coupon/index.shtml`,
|
|
33
33
|
myRedPacketList: `${domain.wqs}/my/redpacket.shtml`,
|
|
34
34
|
memberHome: `${domain.pages}/member/home`,
|
|
35
35
|
memberCard: `${domain.pages}/member/card`,
|
|
36
36
|
memberPoints: `${domain.pages}/member/points`,
|
|
37
37
|
memberBenefit: `${domain.pages}/member/benefit`,
|
|
38
38
|
memberScores: `${domain.pages}/member/scores`,
|
|
39
39
|
memberScoreRule: `${domain.pages}/member/scoreRule`,
|
|
40
40
|
memberProduct: `${domain.pages}/member/product`,
|
|
41
41
|
memberCoupon: `${domain.pages}/member/coupon`,
|
|
42
42
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
43
43
|
shopMemberCardAgreement: `${domain.shopMember}/member/cardAgreement`,
|
|
44
44
|
shopMemberCardInstruction: `${domain.shopMember}/member/cardInstruction`,
|
|
45
45
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
46
46
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
47
47
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
48
48
|
shopSuperMemberRule: `${domain.shopMember}/member/memberWelfareRule`,
|
|
49
49
|
shopMemberEquityRule: `${domain.shopMember}/member/memberEquityRule`,
|
|
50
50
|
shopMemberWelfare: `${domain.shopMember}/member/memberWelfare`,
|
|
51
51
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
52
52
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
53
53
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
54
54
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
55
55
|
shopMemberCouponList: `${domain.shopMember}/couponList/index.html`,
|
|
56
56
|
shopMemberOpenCard: `${domain.shopMember}/openCard/index.html`,
|
|
57
57
|
shopMemberPayDescription: `${domain.shopMember}/brandSubscribeExplain/index.html`,
|
|
58
58
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
59
59
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
60
60
|
mLive: `${domain.lives}/#`,
|
|
61
61
|
shopHome: `${domain.pages}/shop/home`,
|
|
62
62
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
63
63
|
shopSearch: `${domain.pages}/shop/search`,
|
|
64
64
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
65
65
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
66
66
|
shopWares: `${domain.pages}/shop/wares`,
|
|
67
67
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
68
68
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
69
69
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
70
70
|
shopMoreGoods: `${domain.pages}/shop/moreGoods`,
|
|
71
71
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
72
72
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
73
73
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
74
74
|
samCard: `${domain.pages}/shop/samCard`,
|
|
75
75
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
76
76
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
77
77
|
sageAuthorHome: `${domain.ecoDomain}/content/dr_home/index.html`,
|
|
78
78
|
sageShopInteract: `${domain.pages}/app/interact`,
|
|
79
79
|
shopCouponPop: `${domain.pages}/app/couponPop`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum LogPnameInfo {
|
|
1
|
+
export enum LogPnameInfo {
|
|
2
2
|
HOME = 'home',
|
|
3
3
|
MEMBER = 'member',
|
|
4
4
|
CLASSIFY = 'classify',
|
|
5
5
|
PROMOTION = 'promotion',
|
|
6
6
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
7
7
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
8
8
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
9
9
|
SALE_VIEW = 'Shop_NewActivity',
|
|
10
10
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
11
11
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
12
12
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
13
13
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
14
14
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
15
15
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
16
16
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
17
17
|
APP_SHOP_CATEGORY = 'Shop_Category',
|
|
18
18
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
19
19
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
20
20
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
21
21
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
22
22
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct',
|
|
23
23
|
APP_SAGE = 'Shop_Person',
|
|
24
24
|
APP_SAGE_POP = 'Shop_PersionPop',
|
|
25
25
|
APP_SHOP_CUSTOM = 'Shop_CustomPage',
|
|
26
26
|
MOBILE = 'Shop_ShopMain',
|
|
27
27
|
APP = 'TerminatorNew_All',
|
|
28
28
|
APP_SAGE = 'Shop_Person',
|
|
29
29
|
APP_SAGE_POP = 'Shop_PersionPop',
|
|
30
30
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
31
31
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
32
32
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
33
33
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
34
34
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
35
35
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
36
36
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
37
37
|
APP_SHOP_CATEGORY = 'Shop_Category',
|
|
38
38
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
39
39
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
40
40
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
41
41
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
42
42
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
43
43
|
SALE_VIEW = 'Shop_NewActivity',
|
|
44
44
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
45
45
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
46
46
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct',
|
|
47
47
|
APP_SHOP_CUSTOM = 'Shop_CustomPage',
|
|
48
48
|
ACTIVITY_INIT: 'activityInit',
|
|
49
49
|
SHOP_HEADER: 'shopHeader',
|
|
50
50
|
SHOP_FOOTER: 'shopFooter',
|
|
51
51
|
SHOP_HOME: 'jshopMain',
|
|
52
52
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
53
53
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
54
54
|
NETWORK_ERR: 'networkerr',
|
|
55
55
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
56
56
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
57
57
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
58
58
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
59
59
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
60
60
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
61
61
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
62
62
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
63
63
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
64
64
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
65
65
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
66
66
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|
|
67
67
|
[LogPageIdInfo.MOBILE]: 'b002165',
|
|
68
68
|
[LogPageIdInfo.APP]: 'b002165',
|
|
69
69
|
[LogPageIdInfo.APP_SHOP_CATEGORY]: 'b002489',
|
|
70
70
|
[LogPageIdInfo.APP_SHOP_MEMBER]: 'b002504',
|
|
71
71
|
[LogPageIdInfo.SALE_VIEW]: 'b002503',
|
|
72
72
|
[LogPageIdInfo.APP_SHOP_DETAIL]: 'b002275',
|
|
73
73
|
[LogPageIdInfo.MOBILE_SEARCH]: 'b002510',
|
|
74
74
|
TerminatorNew_mPreSell_Expo: 'c00003931.Ter_mPreSell',
|
|
75
75
|
TerminatorNew_mPreSell_Click: 'c00003931.Ter_mPreSell',
|
|
76
76
|
TerminatorNew_mDynamicImage_Expo: 'c00003054.Ter_mDynamicImage',
|
|
77
77
|
TerminatorNew_mDynamicImage_Click: 'c00003054.Ter_mDynamicImage',
|
|
78
78
|
TerminatorNew_mPromotion_Expo: 'c00003051.Ter_mPromotion',
|
|
79
79
|
TerminatorNew_mPromotion_Click: 'c00003051.Ter_mPromotion',
|
|
80
80
|
TerminatorNew_TabSeriousWare_Tab_Expo: 'c00003049.Ter_mCollectionTab',
|
|
81
81
|
TerminatorNew_TabSeriousWare_Tab_Click: 'c00003049.Ter_mCollectionTab',
|
|
82
82
|
TerminatorNew_TabSeriousWare_Sku_Expo: 'c00003049.Ter_mCollectionSku',
|
|
83
83
|
TerminatorNew_TabSeriousWare_Sku_Click: 'c00003049.Ter_mCollectionSku',
|
|
84
84
|
TerminatorNew_TabSeriousWare_Pic_Expo: 'c00003049.Ter_CollectionImgs',
|
|
85
85
|
TerminatorNew_TabSeriousWare_Pic_Click: 'c00003049.Ter_CollectionImgs',
|
|
86
86
|
TerminatorNew_SgCoupon_Expo: 'c00003048.Ter_mSgCoupon',
|
|
87
87
|
TerminatorNew_SgCoupon_Click: 'c00003048.Ter_mSgCoupon',
|
|
88
88
|
TerminatorNew_smartNewProduct_Expo: 'c00003047.Ter_smartNewProduct',
|
|
89
89
|
TerminatorNew_smartNewProduct_Click: 'c00003047.Ter_smartNewProduct',
|
|
90
90
|
TerminatorNew_mMainPushNewProducts_Expo: 'c00003047.Ter_mFeaturedPickSku',
|
|
91
91
|
TerminatorNew_mMainPushNewProducts_Click: 'c00003047.Ter_mFeaturedPickSku',
|
|
92
92
|
TerminatorNew_smartPromoSku_Expo: 'c00003046.Ter_smartPromoSku',
|
|
93
93
|
TerminatorNew_smartPromoSku_Click: 'c00003046.Ter_smartPromoSku',
|
|
94
94
|
TerminatorNew_smartCoupon_Expo: 'c00003016.Ter_smartCoupon',
|
|
95
95
|
TerminatorNew_smartCoupon_Click: 'c00003016.Ter_smartCoupon',
|
|
96
96
|
TerminatorNew_smartNav_Expo: 'c00003013.Ter_smartNav',
|
|
97
97
|
TerminatorNew_smartNav_Click: 'c00003013.Ter_smartNav',
|
|
98
98
|
TerminatorNew_IsvModule_Expo: 'c00002955.Ter_IsvModule',
|
|
99
99
|
TerminatorNew_IsvModule_Click: 'c00002955.Ter_IsvModule',
|
|
100
100
|
TerminatorNew_mBanner_Expo: 'c00002954.Ter_mBanner',
|
|
101
101
|
TerminatorNew_mBanner_Click: 'c00002954.Ter_mBanner',
|
|
102
102
|
TerminatorNew_shopRankList_Expo: 'c00002953.Ter_shopRankList',
|
|
103
103
|
TerminatorNew_shopRankList_Click: 'c00002953.Ter_shopRankList',
|
|
104
104
|
TerminatorNew_mVideo_Expo: 'c00002952.Ter_mVideo',
|
|
105
105
|
TerminatorNew_mVideo_Click: 'c00002952.Ter_mVideo',
|
|
106
106
|
TerminatorNew_mCoupon_Expo: 'c00002951.Ter_mCoupon',
|
|
107
107
|
TerminatorNew_mCoupon_Click: 'c00002951.Ter_mCoupon',
|
|
108
108
|
TerminatorNew_mPictureHotspot_Expo: 'c00002950.Ter_mPictureHotspot',
|
|
109
109
|
TerminatorNew_mPictureHotspot_Click: 'c00002950.Ter_mPictureHotspot',
|
|
110
110
|
TerminatorNew_smartUnionProduct_Expo: 'c00002949.Ter_smartProduct',
|
|
111
111
|
TerminatorNew_smartUnionProduct_Click: 'c00002949.Ter_smartProduct',
|
|
112
112
|
TerminatorNew_mICommonGood_Expo: 'c00002949.Ter_mICommonGood',
|
|
113
113
|
TerminatorNew_mICommonGood_Click: 'c00002949.Ter_mICommonGood',
|
|
114
114
|
TerminatorNew_smartHotSaleProduct_Expo: 'c00002948.Ter_mHotSaleProduct',
|
|
115
115
|
TerminatorNew_smartHotSaleProduct_Click: 'c00002948.Ter_mHotSaleProduct',
|
|
116
116
|
TerminatorNew_smartSecondCate_Expo: 'c00002947.Ter_smartSecondCate',
|
|
117
117
|
TerminatorNew_smartSecondCate_Click: 'c00002947.Ter_smartSecondCate',
|
|
118
118
|
TerminatorNew_recfeedsku_Expo: 'c00002946.Ter_RecfeedSku',
|
|
119
119
|
TerminatorNew_recfeedsku_Click: 'c00002946.Ter_RecfeedSku',
|
|
120
120
|
TerminatorNew_recfeedskuAddCart_Click: 'c00002946.Ter_RecfeedAddCart',
|
|
121
121
|
TerminatorNew_mMemberSprint_Expo: 'c00003930.Ter_mMemberSprint',
|
|
122
122
|
TerminatorNew_mMemberSprint_Click: 'c00003930.Ter_mMemberSprint',
|
|
123
123
|
TerminatorNew_mShopMembers_Expo: 'c00003929.Ter_mShopMembers',
|
|
124
124
|
TerminatorNew_mShopMembers_Click: 'c00003929.Ter_mShopMembers',
|
|
125
125
|
ShopDetail_Follow: 'c00004094.ShopDetail_Follow',
|
|
126
126
|
ShopDetail_Share: 'c00004094.ShopDetail_Share',
|
|
127
127
|
ShopDetail_QRcode: 'c00004095.ShopDetail_QRcode',
|
|
128
128
|
ShopDetail_Licence: 'c00004095.ShopDetail_Licence',
|
|
129
129
|
ShopDetail_AllProducts: 'c00004096.ShopDetail_AllSku',
|
|
130
130
|
Shop_Category_skuexpo: 'c00004041.Shop_Category_sku',
|
|
131
131
|
Shop_Category_sku: 'c00004041.Shop_Category_sku',
|
|
132
132
|
Shop_Category_sortbtn: 'c00004041.Shop_Category_sort',
|
|
133
133
|
Shop_Category_skuaddcart: 'c00004041.Shop_Category_addcar',
|
|
134
134
|
Shop_Category_LV1: 'c00004041.Shop_Category_LV1',
|
|
135
135
|
Shop_Category_LV2: 'c00004041.Shop_Category_LV2',
|
|
136
136
|
Terminator_New_Mobile_Shop_listCategorySku_Click: 'c00004041.Ter_listCategorySku',
|
|
137
137
|
Terminator_New_Mobile_Shop_listCategoryShowAllSku_Click: 'c00004041.Ter_listCateAllSku',
|
|
138
138
|
Terminator_New_Mobile_Shop_listCategoryLV1_Click: 'c00004041.Ter_listCategoryLV1',
|
|
139
139
|
Terminator_New_Mobile_Shop_navCategoryLV2_Click: 'c00004041.Ter_navCategoryLV2',
|
|
140
140
|
Terminator_New_Mobile_Shop_navCategoryLV1_Click: 'c00004041.Ter_navCategoryLV1',
|
|
141
141
|
MShop_ResultProduct: 'c00004120.MShop_ResultProduct',
|
|
142
142
|
Terminator_New_Mobile_Shop_tab_Click: 'c00004040.Ter_Shoptab',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
import { sgmCustomReport } from '../../utils';
|
|
2
2
|
new Promise((resolve, reject) => {
|
|
3
3
|
if (window.MPing) {
|
|
4
4
|
resolve(true);
|
|
5
5
|
} else {
|
|
6
6
|
if (isReportReadyError) {
|
|
7
7
|
reject(false);
|
|
8
8
|
} else {
|
|
9
9
|
ready('MPing', 3000)
|
|
10
10
|
.then(() => {
|
|
11
11
|
isReportReadyError = false;
|
|
12
12
|
resolve(true);
|
|
13
13
|
})
|
|
14
14
|
.catch(() => {
|
|
15
15
|
isReportReadyError = true;
|
|
16
16
|
reject(false);
|
|
17
17
|
});
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
});
|
|
21
21
|
return new Promise((resolve, reject) => {
|
|
22
22
|
const { pageId, pageParam, pTag, isSend = true, spmAllCode, spmCodeForB, ...otherParam } = opts;
|
|
23
23
|
getReportObjReadyPromise()
|
|
24
24
|
.then(() => {
|
|
25
25
|
let pvObj: any = null;
|
|
26
26
|
if (spmAllCode || shopSpmBforMap[pageId] || spmCodeForB) {
|
|
27
27
|
pvObj = new MPing.inputs.SpmPV({
|
|
28
28
|
spm: spmAllCode || `${shopSpmA}.${shopSpmBforMap[pageId] || spmCodeForB}`,
|
|
29
29
|
page_id: pageId,
|
|
30
30
|
page_param: pageParam,
|
|
31
31
|
...otherParam,
|
|
32
32
|
});
|
|
33
33
|
} else {
|
|
34
34
|
pvObj = new MPing.inputs.PV({
|
|
35
35
|
page_id: pageId,
|
|
36
36
|
});
|
|
37
37
|
pvObj.page_param = pageParam;
|
|
38
38
|
otherParam &&
|
|
39
39
|
Object.keys(otherParam).forEach((key) => {
|
|
40
40
|
pvObj[key] = otherParam[key];
|
|
41
41
|
});
|
|
42
42
|
}
|
|
43
43
|
if (isSend) {
|
|
44
44
|
const mping = new MPing();
|
|
45
45
|
mping.send(pvObj);
|
|
46
46
|
setTimeout(() => resolve(true), 200);
|
|
47
47
|
}
|
|
48
48
|
})
|
|
49
49
|
.catch((e) => {
|
|
50
50
|
reject(e);
|
|
51
51
|
});
|
|
52
52
|
}).catch((err) => {
|
|
53
53
|
console.log('上报异常', err);
|
|
54
54
|
sgmCustomReport({
|
|
55
55
|
code: 'reportErr',
|
|
56
56
|
msg:
|
|
57
57
|
'埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' +
|
|
58
58
|
JSON.stringify(opts) +
|
|
59
59
|
'==异常参数说明==>' +
|
|
60
60
|
err,
|
|
61
61
|
});
|
|
62
62
|
});
|
|
63
63
|
return new Promise((resolve, reject) => {
|
|
64
64
|
const {
|
|
65
65
|
eid,
|
|
66
66
|
eparam,
|
|
67
67
|
jsonParam,
|
|
68
68
|
pageParam,
|
|
69
69
|
flowMapParam = {},
|
|
70
70
|
elevel,
|
|
71
71
|
isExpo = false,
|
|
72
72
|
target = null,
|
|
73
73
|
pageId = 'TerminatorNew_All',
|
|
74
74
|
spmAllCode,
|
|
75
75
|
spmCodeForCD,
|
|
76
76
|
} = opts;
|
|
77
77
|
getReportObjReadyPromise()
|
|
78
78
|
.then(() => {
|
|
79
79
|
let clickObj: any = null;
|
|
80
80
|
if (spmAllCode || (shopSpmBforMap[pageId] && (shopSpmCDforCode[eid] || spmCodeForCD))) {
|
|
81
81
|
const getSpmParams = {
|
|
82
82
|
target,
|
|
83
83
|
spm:
|
|
84
84
|
spmAllCode ||
|
|
85
85
|
`${shopSpmA}.${shopSpmBforMap[pageId]}.${shopSpmCDforCode[eid] || spmCodeForCD}`,
|
|
86
86
|
event_id: eid,
|
|
87
87
|
page_id: pageId,
|
|
88
88
|
page_name: pageName,
|
|
89
89
|
json_param: jsonParam,
|
|
90
90
|
...flowMapParam,
|
|
91
91
|
};
|
|
92
92
|
eparam && (getSpmParams['event_param'] = jsonParam);
|
|
93
93
|
pageParam && (getSpmParams['page_param'] = pageParam);
|
|
94
94
|
isExpo && (getSpmParams['ma_switch_type'] = '1');
|
|
95
95
|
clickObj = isExpo
|
|
96
96
|
? new MPing.inputs.SpmExposure(getSpmParams)
|
|
97
97
|
: new MPing.inputs.SpmClick(getSpmParams);
|
|
98
98
|
} else {
|
|
99
99
|
clickObj = new MPing.inputs.Click(eid, {
|
|
100
100
|
isExpo,
|
|
101
101
|
target,
|
|
102
102
|
...flowMapParam,
|
|
103
103
|
});
|
|
104
104
|
clickObj.json_param = jsonParam;
|
|
105
105
|
if (eparam) {
|
|
106
106
|
clickObj.event_param = jsonParam;
|
|
107
107
|
}
|
|
108
108
|
clickObj.page_id = pageId;
|
|
109
109
|
clickObj.page_name = pageName;
|
|
110
110
|
pageParam && (clickObj.page_param = pageParam);
|
|
111
111
|
elevel && (clickObj.event_level = elevel);
|
|
112
112
|
clickObj.updateEventSeries();
|
|
113
113
|
}
|
|
114
114
|
clickObj && new MPing().send(clickObj);
|
|
115
115
|
setTimeout(() => resolve(true), 200);
|
|
116
116
|
})
|
|
117
117
|
.catch((e) => {
|
|
118
118
|
reject(e);
|
|
119
119
|
});
|
|
120
120
|
}).catch((err) => {
|
|
121
121
|
console.log('上报异常', err);
|
|
122
122
|
sgmCustomReport({
|
|
123
123
|
code: 'reportErr',
|
|
124
124
|
msg:
|
|
125
125
|
'埋点js加载异常,导致MPing不存在,点击或者曝光具体上报参数如下==>' +
|
|
126
126
|
JSON.stringify(opts) +
|
|
127
127
|
'==异常参数说明==>' +
|
|
128
128
|
err,
|
|
129
129
|
});
|
|
130
130
|
});
|
|
131
131
|
const { jsonParam } = webLogParams;
|
|
132
132
|
const { skuId } = opts;
|
|
133
133
|
if (jsonParam && skuId) {
|
|
134
134
|
try {
|
|
135
135
|
let jsonObj = JSON.parse(jsonParam);
|
|
136
136
|
jsonObj['skuid'] = skuId + '';
|
|
137
137
|
webLogParams.jsonParam = JSON.stringify(jsonObj);
|
|
138
138
|
} catch (e) {
|
|
139
139
|
console.log(e);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
return reportClick(webLogParams);
|