@conecli/cone-render 0.8.20-beta.0 → 0.8.20-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/token/token.ts +1 -1
- 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/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +16 -0
- 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 +125 -69
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Base/index.module.scss +12 -0
- package/dist/components/base/Price/Base/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.module.scss +32 -0
- package/dist/components/base/Price/Double/index.tsx +1 -1
- 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 -1
- 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 -1
- 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 copy.ts +1 -1
- package/dist/open/api/request.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- 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 -1
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -0
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -0
- package/dist/service/http/index.h5.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -0
- package/dist/service/requestServer.ts +1 -1
- 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/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 -115
- package/dist/components/base/Skeleton/old.tsx +0 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
- package/dist/utils/memberFormatUtils.js +0 -1
- /package/dist/service/{bMallConst.wxapp.ts → bMallConst.weapp.ts} +0 -0
- /package/dist/service/http/{colorSign.wxapp.ts → colorSign.weapp.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
import { domain } from '../../api'
|
|
2
1
|
shop: '/pages/shop/index/index',
|
|
3
2
|
detail: '/pages/gold/item/pages/detail/index',
|
|
4
3
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
5
4
|
h5: '/pages/h5/index',
|
|
6
5
|
jingGouHome: '/pages/index/index',
|
|
7
6
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
8
7
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
9
8
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
10
9
|
shopx: '/pages/shopx/pages/index/index',
|
|
11
10
|
mshop: domain.mshop,
|
|
12
11
|
pages: domain.pages,
|
|
13
12
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
14
13
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
15
14
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
16
15
|
detail: `${domain.mobileDetail}/product/`,
|
|
17
16
|
mobileHome: `${domain.mobileHome}`,
|
|
18
17
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
19
18
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
20
19
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
21
20
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
22
21
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
23
22
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
24
23
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
25
24
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
26
25
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
27
26
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
28
27
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
29
28
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
30
29
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
31
30
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
32
31
|
mLive: `${domain.lives}/#`,
|
|
33
32
|
shopHome: `${domain.pages}/shop/home`,
|
|
34
33
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
35
34
|
shopSearch: `${domain.pages}/shop/search`,
|
|
36
35
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
37
36
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
38
37
|
shopWares: `${domain.pages}/shop/wares`,
|
|
39
38
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
40
39
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
41
40
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
42
41
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
43
42
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
44
43
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
45
44
|
samCard: `${domain.pages}/shop/samCard`,
|
|
46
45
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
47
46
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
47
|
+
import { domain } from '../../api';
|
|
48
48
|
shop: '/pages/shop/index/index',
|
|
49
49
|
detail: '/pages/gold/item/pages/detail/index',
|
|
50
50
|
jxDetail: '/pages/item/detail/detail',
|
|
51
51
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
52
52
|
h5: '/pages/h5/index',
|
|
53
53
|
jingGouHome: '/pages/index/index',
|
|
54
54
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
55
55
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
56
56
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
57
57
|
jxCouponSearch: '/pages/search_copr/index',
|
|
58
58
|
shopx: '/pages/shopx/pages/index/index',
|
|
59
59
|
shopSearch: '/pages/shopx/pages/searchPanel/index',
|
|
60
60
|
jdLive: '/pages/jd_live/pages/liveRoom/index',
|
|
61
61
|
mshop: domain.mshop,
|
|
62
62
|
pages: domain.pages,
|
|
63
63
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
64
64
|
jxCouponSearch: `${domain.jxDomain}/search/coupon.shtml`,
|
|
65
65
|
pcCouponSearch: `${domain.pcSo}/Search`,
|
|
66
66
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
67
67
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
68
68
|
detail: `${domain.mobileDetail}/product/`,
|
|
69
69
|
jxDetail: `${domain.wqs}/item/view.html`,
|
|
70
70
|
tjDetail: `${domain.kpl}/product`,
|
|
71
71
|
pcDetail: `https://item.jd.com/`,
|
|
72
72
|
pcCoupon: `${domain.pcCoupon}/ilink/couponActiveFront/linkKey/front_index.action`,
|
|
73
73
|
mobileHome: `${domain.mobileHome}`,
|
|
74
74
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
75
75
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
76
76
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
77
77
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
78
78
|
myCouponList: `${domain.wqs}/my/coupon/index.shtml`,
|
|
79
79
|
myRedPacketList: `${domain.wqs}/my/redpacket.shtml`,
|
|
80
80
|
memberHome: `${domain.pages}/member/home`,
|
|
81
81
|
memberCard: `${domain.pages}/member/card`,
|
|
82
82
|
memberPoints: `${domain.pages}/member/points`,
|
|
83
83
|
memberBenefit: `${domain.pages}/member/benefit`,
|
|
84
84
|
memberScores: `${domain.pages}/member/scores`,
|
|
85
85
|
memberScoreRule: `${domain.pages}/member/scoreRule`,
|
|
86
86
|
memberProduct: `${domain.pages}/member/product`,
|
|
87
87
|
memberCoupon: `${domain.pages}/member/coupon`,
|
|
88
88
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
89
89
|
shopMemberCardAgreement: `${domain.shopMember}/member/cardAgreement`,
|
|
90
90
|
shopMemberCardInstruction: `${domain.shopMember}/member/cardInstruction`,
|
|
91
91
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
92
92
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
93
93
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
94
94
|
shopSuperMemberRule: `${domain.shopMember}/member/memberWelfareRule`,
|
|
95
95
|
shopMemberEquityRule: `${domain.shopMember}/member/memberEquityRule`,
|
|
96
96
|
shopMemberWelfare: `${domain.shopMember}/member/memberWelfare`,
|
|
97
97
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
98
98
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
99
99
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
100
100
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
101
101
|
shopMemberCouponList: `${domain.shopMember}/couponList/index.html`,
|
|
102
102
|
shopMemberOpenCard: `${domain.shopMember}/openCard/index.html`,
|
|
103
103
|
shopMemberPayDescription: `${domain.shopMember}/brandSubscribeExplain/index.html`,
|
|
104
104
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
105
105
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
106
106
|
mLive: `${domain.lives}/#`,
|
|
107
107
|
shopHome: `${domain.pages}/shop/home`,
|
|
108
108
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
109
109
|
shopSearch: `${domain.pages}/shop/search`,
|
|
110
110
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
111
111
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
112
112
|
shopWares: `${domain.pages}/shop/wares`,
|
|
113
113
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
114
114
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
115
115
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
116
116
|
shopMoreGoods: `${domain.pages}/shop/moreGoods`,
|
|
117
117
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
118
118
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
119
119
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
120
120
|
samCard: `${domain.pages}/shop/samCard`,
|
|
121
121
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
122
122
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
123
123
|
sageAuthorHome: `${domain.ecoDomain}/content/dr_home/index.html`,
|
|
124
124
|
sageShopInteract: `${domain.pages}/app/interact`,
|
|
125
125
|
shopCouponPop: `${domain.pages}/app/couponPop`,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum LogPnameInfo {
|
|
2
1
|
HOME = 'home',
|
|
3
2
|
MEMBER = 'member',
|
|
4
3
|
CLASSIFY = 'classify',
|
|
5
4
|
PROMOTION = 'promotion',
|
|
6
5
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
7
6
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
8
7
|
APP_SHOP_MEMBER = 'Shop_ShopCard',
|
|
9
8
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
10
9
|
APP_SHOP_MEMBER = 'Shop_ShopCard'
|
|
10
|
+
export enum LogPnameInfo {
|
|
11
11
|
HOME = 'home',
|
|
12
12
|
MEMBER = 'member',
|
|
13
13
|
CLASSIFY = 'classify',
|
|
14
14
|
PROMOTION = 'promotion',
|
|
15
15
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
16
16
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
17
17
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
18
18
|
SALE_VIEW = 'Shop_NewActivity',
|
|
19
19
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
20
20
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
21
21
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
22
22
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
23
23
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
24
24
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
25
25
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
26
26
|
APP_SHOP_CATEGORY = 'Shop_Category',
|
|
27
27
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
28
28
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
29
29
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
30
30
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
31
31
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct',
|
|
32
32
|
APP_SAGE = 'Shop_Person',
|
|
33
33
|
APP_SAGE_POP = 'Shop_PersionPop',
|
|
34
34
|
APP_SHOP_CUSTOM = 'Shop_CustomPage',
|
|
35
35
|
MOBILE = 'Shop_ShopMain',
|
|
36
36
|
APP = 'TerminatorNew_All',
|
|
37
37
|
APP_SAGE = 'Shop_Person',
|
|
38
38
|
APP_SAGE_POP = 'Shop_PersionPop',
|
|
39
39
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
40
40
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
41
41
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
42
42
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
43
43
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
44
44
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
45
45
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
46
46
|
APP_SHOP_CATEGORY = 'Shop_Category',
|
|
47
47
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
48
48
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
49
49
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
50
50
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
51
51
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
52
52
|
SALE_VIEW = 'Shop_NewActivity',
|
|
53
53
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
54
54
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
55
55
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct',
|
|
56
56
|
APP_SHOP_CUSTOM = 'Shop_CustomPage',
|
|
57
57
|
ACTIVITY_INIT: 'activityInit',
|
|
58
58
|
SHOP_HEADER: 'shopHeader',
|
|
59
59
|
SHOP_FOOTER: 'shopFooter',
|
|
60
60
|
SHOP_HOME: 'jshopMain',
|
|
61
61
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
62
62
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
63
63
|
NETWORK_ERR: 'networkerr',
|
|
64
64
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
65
65
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
66
66
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
67
67
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
68
68
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
69
69
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
70
70
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
71
71
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
72
72
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
73
73
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
74
74
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
75
75
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|
|
76
76
|
[LogPageIdInfo.MOBILE]: 'b002165',
|
|
77
77
|
[LogPageIdInfo.APP]: 'b002165',
|
|
78
78
|
[LogPageIdInfo.APP_SHOP_CATEGORY]: 'b002489',
|
|
79
79
|
[LogPageIdInfo.APP_SHOP_MEMBER]: 'b002504',
|
|
80
80
|
[LogPageIdInfo.SALE_VIEW]: 'b002503',
|
|
81
81
|
[LogPageIdInfo.APP_SHOP_DETAIL]: 'b002275',
|
|
82
82
|
[LogPageIdInfo.MOBILE_SEARCH]: 'b002510',
|
|
83
83
|
TerminatorNew_mPreSell_Expo: 'c00003931.Ter_mPreSell',
|
|
84
84
|
TerminatorNew_mPreSell_Click: 'c00003931.Ter_mPreSell',
|
|
85
85
|
TerminatorNew_mDynamicImage_Expo: 'c00003054.Ter_mDynamicImage',
|
|
86
86
|
TerminatorNew_mDynamicImage_Click: 'c00003054.Ter_mDynamicImage',
|
|
87
87
|
TerminatorNew_mPromotion_Expo: 'c00003051.Ter_mPromotion',
|
|
88
88
|
TerminatorNew_mPromotion_Click: 'c00003051.Ter_mPromotion',
|
|
89
89
|
TerminatorNew_TabSeriousWare_Tab_Expo: 'c00003049.Ter_mCollectionTab',
|
|
90
90
|
TerminatorNew_TabSeriousWare_Tab_Click: 'c00003049.Ter_mCollectionTab',
|
|
91
91
|
TerminatorNew_TabSeriousWare_Sku_Expo: 'c00003049.Ter_mCollectionSku',
|
|
92
92
|
TerminatorNew_TabSeriousWare_Sku_Click: 'c00003049.Ter_mCollectionSku',
|
|
93
93
|
TerminatorNew_TabSeriousWare_Pic_Expo: 'c00003049.Ter_CollectionImgs',
|
|
94
94
|
TerminatorNew_TabSeriousWare_Pic_Click: 'c00003049.Ter_CollectionImgs',
|
|
95
95
|
TerminatorNew_SgCoupon_Expo: 'c00003048.Ter_mSgCoupon',
|
|
96
96
|
TerminatorNew_SgCoupon_Click: 'c00003048.Ter_mSgCoupon',
|
|
97
97
|
TerminatorNew_smartNewProduct_Expo: 'c00003047.Ter_smartNewProduct',
|
|
98
98
|
TerminatorNew_smartNewProduct_Click: 'c00003047.Ter_smartNewProduct',
|
|
99
99
|
TerminatorNew_mMainPushNewProducts_Expo: 'c00003047.Ter_mFeaturedPickSku',
|
|
100
100
|
TerminatorNew_mMainPushNewProducts_Click: 'c00003047.Ter_mFeaturedPickSku',
|
|
101
101
|
TerminatorNew_smartPromoSku_Expo: 'c00003046.Ter_smartPromoSku',
|
|
102
102
|
TerminatorNew_smartPromoSku_Click: 'c00003046.Ter_smartPromoSku',
|
|
103
103
|
TerminatorNew_smartCoupon_Expo: 'c00003016.Ter_smartCoupon',
|
|
104
104
|
TerminatorNew_smartCoupon_Click: 'c00003016.Ter_smartCoupon',
|
|
105
105
|
TerminatorNew_smartNav_Expo: 'c00003013.Ter_smartNav',
|
|
106
106
|
TerminatorNew_smartNav_Click: 'c00003013.Ter_smartNav',
|
|
107
107
|
TerminatorNew_IsvModule_Expo: 'c00002955.Ter_IsvModule',
|
|
108
108
|
TerminatorNew_IsvModule_Click: 'c00002955.Ter_IsvModule',
|
|
109
109
|
TerminatorNew_mBanner_Expo: 'c00002954.Ter_mBanner',
|
|
110
110
|
TerminatorNew_mBanner_Click: 'c00002954.Ter_mBanner',
|
|
111
111
|
TerminatorNew_shopRankList_Expo: 'c00002953.Ter_shopRankList',
|
|
112
112
|
TerminatorNew_shopRankList_Click: 'c00002953.Ter_shopRankList',
|
|
113
113
|
TerminatorNew_mVideo_Expo: 'c00002952.Ter_mVideo',
|
|
114
114
|
TerminatorNew_mVideo_Click: 'c00002952.Ter_mVideo',
|
|
115
115
|
TerminatorNew_mCoupon_Expo: 'c00002951.Ter_mCoupon',
|
|
116
116
|
TerminatorNew_mCoupon_Click: 'c00002951.Ter_mCoupon',
|
|
117
117
|
TerminatorNew_mPictureHotspot_Expo: 'c00002950.Ter_mPictureHotspot',
|
|
118
118
|
TerminatorNew_mPictureHotspot_Click: 'c00002950.Ter_mPictureHotspot',
|
|
119
119
|
TerminatorNew_smartUnionProduct_Expo: 'c00002949.Ter_smartProduct',
|
|
120
120
|
TerminatorNew_smartUnionProduct_Click: 'c00002949.Ter_smartProduct',
|
|
121
121
|
TerminatorNew_mICommonGood_Expo: 'c00002949.Ter_mICommonGood',
|
|
122
122
|
TerminatorNew_mICommonGood_Click: 'c00002949.Ter_mICommonGood',
|
|
123
123
|
TerminatorNew_smartHotSaleProduct_Expo: 'c00002948.Ter_mHotSaleProduct',
|
|
124
124
|
TerminatorNew_smartHotSaleProduct_Click: 'c00002948.Ter_mHotSaleProduct',
|
|
125
125
|
TerminatorNew_smartSecondCate_Expo: 'c00002947.Ter_smartSecondCate',
|
|
126
126
|
TerminatorNew_smartSecondCate_Click: 'c00002947.Ter_smartSecondCate',
|
|
127
127
|
TerminatorNew_recfeedsku_Expo: 'c00002946.Ter_RecfeedSku',
|
|
128
128
|
TerminatorNew_recfeedsku_Click: 'c00002946.Ter_RecfeedSku',
|
|
129
129
|
TerminatorNew_recfeedskuAddCart_Click: 'c00002946.Ter_RecfeedAddCart',
|
|
130
130
|
TerminatorNew_mMemberSprint_Expo: 'c00003930.Ter_mMemberSprint',
|
|
131
131
|
TerminatorNew_mMemberSprint_Click: 'c00003930.Ter_mMemberSprint',
|
|
132
132
|
TerminatorNew_mShopMembers_Expo: 'c00003929.Ter_mShopMembers',
|
|
133
133
|
TerminatorNew_mShopMembers_Click: 'c00003929.Ter_mShopMembers',
|
|
134
134
|
ShopDetail_Follow: 'c00004094.ShopDetail_Follow',
|
|
135
135
|
ShopDetail_Share: 'c00004094.ShopDetail_Share',
|
|
136
136
|
ShopDetail_QRcode: 'c00004095.ShopDetail_QRcode',
|
|
137
137
|
ShopDetail_Licence: 'c00004095.ShopDetail_Licence',
|
|
138
138
|
ShopDetail_AllProducts: 'c00004096.ShopDetail_AllSku',
|
|
139
139
|
Shop_Category_skuexpo: 'c00004041.Shop_Category_sku',
|
|
140
140
|
Shop_Category_sku: 'c00004041.Shop_Category_sku',
|
|
141
141
|
Shop_Category_sortbtn: 'c00004041.Shop_Category_sort',
|
|
142
142
|
Shop_Category_skuaddcart: 'c00004041.Shop_Category_addcar',
|
|
143
143
|
Shop_Category_LV1: 'c00004041.Shop_Category_LV1',
|
|
144
144
|
Shop_Category_LV2: 'c00004041.Shop_Category_LV2',
|
|
145
145
|
Terminator_New_Mobile_Shop_listCategorySku_Click: 'c00004041.Ter_listCategorySku',
|
|
146
146
|
Terminator_New_Mobile_Shop_listCategoryShowAllSku_Click: 'c00004041.Ter_listCateAllSku',
|
|
147
147
|
Terminator_New_Mobile_Shop_listCategoryLV1_Click: 'c00004041.Ter_listCategoryLV1',
|
|
148
148
|
Terminator_New_Mobile_Shop_navCategoryLV2_Click: 'c00004041.Ter_navCategoryLV2',
|
|
149
149
|
Terminator_New_Mobile_Shop_navCategoryLV1_Click: 'c00004041.Ter_navCategoryLV1',
|
|
150
150
|
MShop_ResultProduct: 'c00004120.MShop_ResultProduct',
|
|
151
151
|
Terminator_New_Mobile_Shop_tab_Click: 'c00004040.Ter_Shoptab',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import { sgmCustomReport } from '../../utils'
|
|
2
1
|
if (window.MPing) {
|
|
3
2
|
resolve(true)
|
|
4
3
|
} else {
|
|
5
4
|
if (isReportReadyError) {
|
|
6
5
|
reject(false)
|
|
7
6
|
} else {
|
|
8
7
|
ready('MPing', 3000).then(() => {
|
|
9
8
|
isReportReadyError = false
|
|
10
9
|
resolve(true)
|
|
11
10
|
}).catch(() => {
|
|
12
11
|
isReportReadyError = true
|
|
13
12
|
reject(false)
|
|
14
13
|
})
|
|
15
14
|
}
|
|
16
15
|
}
|
|
17
16
|
return new Promise((resolve, reject) => {
|
|
18
17
|
const { pageId, pageParam, pTag, ...otherParam } = opts
|
|
19
18
|
getReportObjReadyPromise().then(() => {
|
|
20
19
|
const pv = new MPing.inputs.PV({
|
|
21
20
|
page_id: pageId,
|
|
22
21
|
})
|
|
23
22
|
pv.page_param = pageParam
|
|
24
23
|
otherParam &&
|
|
25
24
|
Object.keys(otherParam).forEach((key) => {
|
|
26
25
|
pv[key] = otherParam[key]
|
|
27
26
|
})
|
|
28
27
|
if (window.wqlog && pTag) {
|
|
29
28
|
wqlog('wqmodule.send', 'pv', {
|
|
30
29
|
ptag: pTag,
|
|
31
30
|
})
|
|
32
31
|
console.log('wqmodule.send-pv pTag 上报完毕', pTag)
|
|
33
32
|
}
|
|
34
33
|
const mping = new MPing()
|
|
35
34
|
mping.send(pv)
|
|
36
35
|
setTimeout(() => resolve(true), 200)
|
|
37
36
|
}).catch(e => {
|
|
38
37
|
reject(e)
|
|
39
38
|
})
|
|
40
39
|
}).catch(err => {
|
|
41
40
|
console.log("上报异常", err)
|
|
42
41
|
sgmCustomReport({
|
|
43
42
|
code: 'reportErr',
|
|
44
43
|
msg: '埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' + JSON.stringify(opts),
|
|
45
44
|
})
|
|
46
45
|
})
|
|
47
46
|
return new Promise((resolve, reject) => {
|
|
48
47
|
const {
|
|
49
48
|
eid,
|
|
50
49
|
eparam,
|
|
51
50
|
jsonParam,
|
|
52
51
|
pageParam,
|
|
53
52
|
pTag,
|
|
54
53
|
etModel,
|
|
55
54
|
exposureState,
|
|
56
55
|
elevel,
|
|
57
56
|
pageId = 'TerminatorNew_All',
|
|
58
57
|
} = opts
|
|
59
58
|
getReportObjReadyPromise().then(() => {
|
|
60
59
|
const click = new MPing.inputs.Click(eid)
|
|
61
60
|
click.json_param = jsonParam
|
|
62
61
|
if(eparam) {
|
|
63
62
|
click.event_param = jsonParam
|
|
64
63
|
}
|
|
65
64
|
click.et_model = etModel
|
|
66
65
|
click.page_id = pageId
|
|
67
66
|
click.page_name = pageName
|
|
68
67
|
pageParam && (click.page_param = pageParam)
|
|
69
68
|
if (window.wqlog && pTag) {
|
|
70
69
|
const sendTypeKey = exposureState
|
|
71
70
|
? 'wg_wx.000003'
|
|
72
71
|
: 'wg_wx.000001'
|
|
73
72
|
wqlog('wqmodule.send', sendTypeKey, {
|
|
74
73
|
ptag: pTag,
|
|
75
74
|
})
|
|
76
75
|
console.log(
|
|
77
76
|
`wqmodule.send-exposureState ${exposureState} pTag 上报完毕01是点击03是曝光`,
|
|
78
77
|
pTag,
|
|
79
78
|
sendTypeKey,
|
|
80
79
|
)
|
|
81
80
|
}
|
|
82
81
|
elevel && (click.event_level = elevel)
|
|
83
82
|
click.updateEventSeries()
|
|
84
83
|
new MPing().send(click)
|
|
85
84
|
setTimeout(() => resolve(true), 200)
|
|
86
85
|
}).catch(e => {
|
|
87
86
|
reject(e)
|
|
88
87
|
})
|
|
89
88
|
}).catch(err => {
|
|
90
89
|
console.log("上报异常", err)
|
|
91
90
|
sgmCustomReport({
|
|
92
91
|
code: 'reportErr',
|
|
93
92
|
msg: '埋点js加载异常,导致MPing不存在,click具体上报参数如下==>' + JSON.stringify(opts),
|
|
94
93
|
})
|
|
95
94
|
})
|
|
96
95
|
return new Promise((resolve, reject) => {
|
|
97
96
|
const {
|
|
98
97
|
eid,
|
|
99
98
|
eparam,
|
|
100
99
|
jsonParam,
|
|
101
100
|
pageParam,
|
|
102
101
|
skuId,
|
|
103
102
|
pageId = 'TerminatorNew_All',
|
|
104
103
|
} = opts
|
|
105
104
|
getReportObjReadyPromise().then(() => {
|
|
106
105
|
const cart = new MPing.inputs.AddCart(eid, skuId)
|
|
107
106
|
cart.event_param = eparam
|
|
108
107
|
cart.json_param = jsonParam
|
|
109
108
|
cart.page_id = pageId
|
|
110
109
|
cart.page_name = pageName
|
|
111
110
|
pageParam && (cart.page_param = pageParam)
|
|
112
111
|
const mping = new MPing()
|
|
113
112
|
mping.send(cart)
|
|
114
113
|
setTimeout(() => resolve(true), 200)
|
|
115
114
|
}).catch(e => {
|
|
116
115
|
reject(e)
|
|
117
116
|
})
|
|
118
117
|
}).catch(err => {
|
|
119
118
|
console.log("上报异常", err)
|
|
120
119
|
sgmCustomReport({
|
|
121
120
|
code: 'reportErr',
|
|
122
121
|
msg: '埋点js加载异常,导致MPing不存在,toCart具体上报参数如下==>' + JSON.stringify(opts),
|
|
123
122
|
})
|
|
124
123
|
})
|
|
124
|
+
import { sgmCustomReport } from '../../utils';
|
|
125
125
|
new Promise((resolve, reject) => {
|
|
126
126
|
if (window.MPing) {
|
|
127
127
|
resolve(true);
|
|
128
128
|
} else {
|
|
129
129
|
if (isReportReadyError) {
|
|
130
130
|
reject(false);
|
|
131
131
|
} else {
|
|
132
132
|
ready('MPing', 3000)
|
|
133
133
|
.then(() => {
|
|
134
134
|
isReportReadyError = false;
|
|
135
135
|
resolve(true);
|
|
136
136
|
})
|
|
137
137
|
.catch(() => {
|
|
138
138
|
isReportReadyError = true;
|
|
139
139
|
reject(false);
|
|
140
140
|
});
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
return new Promise((resolve, reject) => {
|
|
145
145
|
const { pageId, pageParam, pTag, isSend = true, spmAllCode, spmCodeForB, ...otherParam } = opts;
|
|
146
146
|
getReportObjReadyPromise()
|
|
147
147
|
.then(() => {
|
|
148
148
|
let pvObj: any = null;
|
|
149
149
|
if (spmAllCode || shopSpmBforMap[pageId] || spmCodeForB) {
|
|
150
150
|
pvObj = new MPing.inputs.SpmPV({
|
|
151
151
|
spm: spmAllCode || `${shopSpmA}.${shopSpmBforMap[pageId] || spmCodeForB}`,
|
|
152
152
|
page_id: pageId,
|
|
153
153
|
page_param: pageParam,
|
|
154
154
|
...otherParam,
|
|
155
155
|
});
|
|
156
156
|
} else {
|
|
157
157
|
pvObj = new MPing.inputs.PV({
|
|
158
158
|
page_id: pageId,
|
|
159
159
|
});
|
|
160
160
|
pvObj.page_param = pageParam;
|
|
161
161
|
otherParam &&
|
|
162
162
|
Object.keys(otherParam).forEach((key) => {
|
|
163
163
|
pvObj[key] = otherParam[key];
|
|
164
164
|
});
|
|
165
165
|
}
|
|
166
166
|
if (isSend) {
|
|
167
167
|
const mping = new MPing();
|
|
168
168
|
mping.send(pvObj);
|
|
169
169
|
setTimeout(() => resolve(true), 200);
|
|
170
170
|
}
|
|
171
171
|
})
|
|
172
172
|
.catch((e) => {
|
|
173
173
|
reject(e);
|
|
174
174
|
});
|
|
175
175
|
}).catch((err) => {
|
|
176
176
|
console.log('上报异常', err);
|
|
177
177
|
sgmCustomReport({
|
|
178
178
|
code: 'reportErr',
|
|
179
179
|
msg:
|
|
180
180
|
'埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' +
|
|
181
181
|
JSON.stringify(opts) +
|
|
182
182
|
'==异常参数说明==>' +
|
|
183
183
|
err,
|
|
184
184
|
});
|
|
185
185
|
});
|
|
186
186
|
return new Promise((resolve, reject) => {
|
|
187
187
|
const {
|
|
188
188
|
eid,
|
|
189
189
|
eparam,
|
|
190
190
|
jsonParam,
|
|
191
191
|
pageParam,
|
|
192
192
|
flowMapParam = {},
|
|
193
193
|
elevel,
|
|
194
194
|
isExpo = false,
|
|
195
195
|
target = null,
|
|
196
196
|
pageId = 'TerminatorNew_All',
|
|
197
197
|
spmAllCode,
|
|
198
198
|
spmCodeForCD,
|
|
199
199
|
} = opts;
|
|
200
200
|
getReportObjReadyPromise()
|
|
201
201
|
.then(() => {
|
|
202
202
|
let clickObj: any = null;
|
|
203
203
|
if (spmAllCode || (shopSpmBforMap[pageId] && (shopSpmCDforCode[eid] || spmCodeForCD))) {
|
|
204
204
|
const getSpmParams = {
|
|
205
205
|
target,
|
|
206
206
|
spm:
|
|
207
207
|
spmAllCode ||
|
|
208
208
|
`${shopSpmA}.${shopSpmBforMap[pageId]}.${shopSpmCDforCode[eid] || spmCodeForCD}`,
|
|
209
209
|
event_id: eid,
|
|
210
210
|
page_id: pageId,
|
|
211
211
|
page_name: pageName,
|
|
212
212
|
json_param: jsonParam,
|
|
213
213
|
...flowMapParam,
|
|
214
214
|
};
|
|
215
215
|
eparam && (getSpmParams['event_param'] = jsonParam);
|
|
216
216
|
pageParam && (getSpmParams['page_param'] = pageParam);
|
|
217
217
|
isExpo && (getSpmParams['ma_switch_type'] = '1');
|
|
218
218
|
clickObj = isExpo
|
|
219
219
|
? new MPing.inputs.SpmExposure(getSpmParams)
|
|
220
220
|
: new MPing.inputs.SpmClick(getSpmParams);
|
|
221
221
|
} else {
|
|
222
222
|
clickObj = new MPing.inputs.Click(eid, {
|
|
223
223
|
isExpo,
|
|
224
224
|
target,
|
|
225
225
|
...flowMapParam,
|
|
226
226
|
});
|
|
227
227
|
clickObj.json_param = jsonParam;
|
|
228
228
|
if (eparam) {
|
|
229
229
|
clickObj.event_param = jsonParam;
|
|
230
230
|
}
|
|
231
231
|
clickObj.page_id = pageId;
|
|
232
232
|
clickObj.page_name = pageName;
|
|
233
233
|
pageParam && (clickObj.page_param = pageParam);
|
|
234
234
|
elevel && (clickObj.event_level = elevel);
|
|
235
235
|
clickObj.updateEventSeries();
|
|
236
236
|
}
|
|
237
237
|
clickObj && new MPing().send(clickObj);
|
|
238
238
|
setTimeout(() => resolve(true), 200);
|
|
239
239
|
})
|
|
240
240
|
.catch((e) => {
|
|
241
241
|
reject(e);
|
|
242
242
|
});
|
|
243
243
|
}).catch((err) => {
|
|
244
244
|
console.log('上报异常', err);
|
|
245
245
|
sgmCustomReport({
|
|
246
246
|
code: 'reportErr',
|
|
247
247
|
msg:
|
|
248
248
|
'埋点js加载异常,导致MPing不存在,点击或者曝光具体上报参数如下==>' +
|
|
249
249
|
JSON.stringify(opts) +
|
|
250
250
|
'==异常参数说明==>' +
|
|
251
251
|
err,
|
|
252
252
|
});
|
|
253
253
|
});
|
|
254
254
|
const { jsonParam } = webLogParams;
|
|
255
255
|
const { skuId } = opts;
|
|
256
256
|
if (jsonParam && skuId) {
|
|
257
257
|
try {
|
|
258
258
|
let jsonObj = JSON.parse(jsonParam);
|
|
259
259
|
jsonObj['skuid'] = skuId + '';
|
|
260
260
|
webLogParams.jsonParam = JSON.stringify(jsonObj);
|
|
261
261
|
} catch (e) {
|
|
262
262
|
console.log(e);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
return reportClick(webLogParams);
|