@conecli/cone-render 0.10.1-shop3.3 → 0.10.1-shop3.5
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/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.module.scss +12 -2
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.module.scss +2 -2
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/interface/service.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/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/modules/ContainerFloorList/index.h5.module.scss +3 -0
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/connectNativeJsBridge.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/sColor.js +1 -0
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -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
|
jxDetail: '/pages/item/detail/detail',
|
|
5
4
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
6
5
|
h5: '/pages/h5/index',
|
|
7
6
|
jingGouHome: '/pages/index/index',
|
|
8
7
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
9
8
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
10
9
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
11
10
|
jxCouponSearch:'/pages/search_copr/index',
|
|
12
11
|
shopx: '/pages/shopx/pages/index/index',
|
|
13
12
|
shopSearch: '/pages/shopx/pages/searchPanel/index',
|
|
14
13
|
mshop: domain.mshop,
|
|
15
14
|
pages: domain.pages,
|
|
16
15
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
17
16
|
jxCouponSearch:`${domain.jxDomain}/search/coupon.shtml`,
|
|
18
17
|
pcCouponSearch:`${domain.pcSo}/Search`,
|
|
19
18
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
20
19
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
21
20
|
detail: `${domain.mobileDetail}/product/`,
|
|
22
21
|
jxDetail: `${domain.wqs}/item/view.html`,
|
|
23
22
|
tjDetail: `${domain.kpl}/product`,
|
|
24
23
|
pcDetail: `https://item.jd.com/`,
|
|
25
24
|
pcCoupon: `${domain.pcCoupon}/ilink/couponActiveFront/linkKey/front_index.action`,
|
|
26
25
|
mobileHome: `${domain.mobileHome}`,
|
|
27
26
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
28
27
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
29
28
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
30
29
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
31
30
|
myCouponList: `${domain.wqs}/my/coupon/index.shtml`,
|
|
32
31
|
myRedPacketList: `${domain.wqs}/my/redpacket.shtml`,
|
|
33
32
|
memberHome: `${domain.pages}/member/home`,
|
|
34
33
|
memberCard: `${domain.pages}/member/card`,
|
|
35
34
|
memberPoints: `${domain.pages}/member/points`,
|
|
36
35
|
memberBenefit: `${domain.pages}/member/benefit`,
|
|
37
36
|
memberScores: `${domain.pages}/member/scores`,
|
|
38
37
|
memberScoreRule: `${domain.pages}/member/scoreRule`,
|
|
39
38
|
memberProduct: `${domain.pages}/member/product`,
|
|
40
39
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
41
40
|
shopMemberCardAgreement: `${domain.shopMember}/member/cardAgreement`,
|
|
42
41
|
shopMemberCardInstruction: `${domain.shopMember}/member/cardInstruction`,
|
|
43
42
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
44
43
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
45
44
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
46
45
|
shopSuperMemberRule: `${domain.shopMember}/member/memberWelfareRule`,
|
|
47
46
|
shopMemberEquityRule: `${domain.shopMember}/member/memberEquityRule`,
|
|
48
47
|
shopMemberWelfare: `${domain.shopMember}/member/memberWelfare`,
|
|
49
48
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
50
49
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
51
50
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
52
51
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
53
52
|
shopMemberCouponList: `${domain.shopMember}/couponList/index.html`,
|
|
54
53
|
shopMemberOpenCard: `${domain.shopMember}/openCard/index.html`,
|
|
55
54
|
shopMemberPayDescription: `${domain.shopMember}/brandSubscribeExplain/index.html`,
|
|
56
55
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
57
56
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
58
57
|
mLive: `${domain.lives}/#`,
|
|
59
58
|
shopHome: `${domain.pages}/shop/home`,
|
|
60
59
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
61
60
|
shopSearch: `${domain.pages}/shop/search`,
|
|
62
61
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
63
62
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
64
63
|
shopWares: `${domain.pages}/shop/wares`,
|
|
65
64
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
66
65
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
67
66
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
68
67
|
shopMoreGoods: `${domain.pages}/shop/moreGoods`,
|
|
69
68
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
70
69
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
71
70
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
72
71
|
samCard: `${domain.pages}/shop/samCard`,
|
|
73
72
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
74
73
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
74
|
+
import { domain } from '../../api';
|
|
75
75
|
shop: '/pages/shop/index/index',
|
|
76
76
|
detail: '/pages/gold/item/pages/detail/index',
|
|
77
77
|
jxDetail: '/pages/item/detail/detail',
|
|
78
78
|
searchCoupon: '/pages/search/subPackages/coupon/coupon',
|
|
79
79
|
h5: '/pages/h5/index',
|
|
80
80
|
jingGouHome: '/pages/index/index',
|
|
81
81
|
shopFans: '/pages/shopfans/pages/index/index',
|
|
82
82
|
shopLight: '/pages/shoplight/pages/index/index',
|
|
83
83
|
couponSearch: '/pages/search/subPackages/coupon/coupon',
|
|
84
84
|
jxCouponSearch: '/pages/search_copr/index',
|
|
85
85
|
shopx: '/pages/shopx/pages/index/index',
|
|
86
86
|
shopSearch: '/pages/shopx/pages/searchPanel/index',
|
|
87
87
|
mshop: domain.mshop,
|
|
88
88
|
pages: domain.pages,
|
|
89
89
|
couponSearch: `${domain.mobileSo}/list/couponSearch.action`,
|
|
90
90
|
jxCouponSearch: `${domain.jxDomain}/search/coupon.shtml`,
|
|
91
91
|
pcCouponSearch: `${domain.pcSo}/Search`,
|
|
92
92
|
shopSecondActivity: `${domain.sale}/m/h5/`,
|
|
93
93
|
shopLight: `${domain.sale}/liteshop/index.html`,
|
|
94
94
|
detail: `${domain.mobileDetail}/product/`,
|
|
95
95
|
jxDetail: `${domain.wqs}/item/view.html`,
|
|
96
96
|
tjDetail: `${domain.kpl}/product`,
|
|
97
97
|
pcDetail: `https://item.jd.com/`,
|
|
98
98
|
pcCoupon: `${domain.pcCoupon}/ilink/couponActiveFront/linkKey/front_index.action`,
|
|
99
99
|
mobileHome: `${domain.mobileHome}`,
|
|
100
100
|
rank: `${domain.ranking}/comLandingPage/comLandingPage`,
|
|
101
101
|
wqShopMember: `${domain.wqshop}/mshop/QueryShopMemberInfo`,
|
|
102
102
|
wqShopDetail: `${domain.wqshop}/mshop/GetShopIntroduce`,
|
|
103
103
|
wqShopSearch: `${domain.wqshop}/mshop/SearchList`,
|
|
104
104
|
myCouponList: `${domain.wqs}/my/coupon/index.shtml`,
|
|
105
105
|
myRedPacketList: `${domain.wqs}/my/redpacket.shtml`,
|
|
106
106
|
memberHome: `${domain.pages}/member/home`,
|
|
107
107
|
memberCard: `${domain.pages}/member/card`,
|
|
108
108
|
memberPoints: `${domain.pages}/member/points`,
|
|
109
109
|
memberBenefit: `${domain.pages}/member/benefit`,
|
|
110
110
|
memberScores: `${domain.pages}/member/scores`,
|
|
111
111
|
memberScoreRule: `${domain.pages}/member/scoreRule`,
|
|
112
112
|
memberProduct: `${domain.pages}/member/product`,
|
|
113
113
|
shopMember: `${domain.shopMember}/shopcard`,
|
|
114
114
|
shopMemberCardAgreement: `${domain.shopMember}/member/cardAgreement`,
|
|
115
115
|
shopMemberCardInstruction: `${domain.shopMember}/member/cardInstruction`,
|
|
116
116
|
shopMemberPointDetail: `${domain.shopMember}/member/membersPoint`,
|
|
117
117
|
shopMemberBenefit: `${domain.shopMember}/shopbenefit`,
|
|
118
118
|
shopMemberRule: `${domain.shopMember}/member/membersRule`,
|
|
119
119
|
shopSuperMemberRule: `${domain.shopMember}/member/memberWelfareRule`,
|
|
120
120
|
shopMemberEquityRule: `${domain.shopMember}/member/memberEquityRule`,
|
|
121
121
|
shopMemberWelfare: `${domain.shopMember}/member/memberWelfare`,
|
|
122
122
|
shopMemberCloseAccount: `${domain.shopMember}/member/memberCloseAccount`,
|
|
123
123
|
shopMemberPointExchange: `${domain.shopMember}/memberpoint`,
|
|
124
124
|
shopMemberBonusPurchase: `${domain.shopMember}/bonuspurchase`,
|
|
125
125
|
shopMemberGood: `${domain.shopMember}/member/membersGood`,
|
|
126
126
|
shopMemberCouponList: `${domain.shopMember}/couponList/index.html`,
|
|
127
127
|
shopMemberOpenCard: `${domain.shopMember}/openCard/index.html`,
|
|
128
128
|
shopMemberPayDescription: `${domain.shopMember}/brandSubscribeExplain/index.html`,
|
|
129
129
|
beanDetail: `${domain.bean}/beanDetail/index.action`,
|
|
130
130
|
totalPromotion: `${domain.mobileSo}/list/itemSearch.action`,
|
|
131
131
|
mLive: `${domain.lives}/#`,
|
|
132
132
|
shopHome: `${domain.pages}/shop/home`,
|
|
133
133
|
shopIntroduce: `${domain.pages}/shop/introduce`,
|
|
134
134
|
shopSearch: `${domain.pages}/shop/search`,
|
|
135
135
|
shopLottery: `${domain.pages}/shop/lottery`,
|
|
136
136
|
shopCoupon: `${domain.pages}/shop/coupon`,
|
|
137
137
|
shopWares: `${domain.pages}/shop/wares`,
|
|
138
138
|
shopFastShopping: `${domain.pages}/shop/fastShopping`,
|
|
139
139
|
shopSpeciSeckill: `${domain.pages}/shop/specialSeckill`,
|
|
140
140
|
shopVideos: `${domain.pages}/shop/videos`,
|
|
141
141
|
shopMoreGoods: `${domain.pages}/shop/moreGoods`,
|
|
142
142
|
shopUseShareOrderUgcContent: `${domain.capturehomeshare}/aha/ugcShare.html`,
|
|
143
143
|
dongDongChat: `${domain.jdcs}/chat/index.action`,
|
|
144
144
|
samCenter: `${domain.pages}/shop/samCenter`,
|
|
145
145
|
samCard: `${domain.pages}/shop/samCard`,
|
|
146
146
|
shopH5MemberCardAPP: `${domain.pages}/member/shopcard`,
|
|
147
147
|
shopH5MemberCardM: `${domain.pages}/member/m/shopcard`,
|
|
148
148
|
sageAuthorHome: `${domain.ecoDomain}/content/dr_home/index.html`,
|
|
149
149
|
sageShopInteract: `${domain.pages}/app/interact`,
|
|
@@ -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
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
9
8
|
SALE_VIEW = 'Shop_NewActivity',
|
|
10
9
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
11
10
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
12
11
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
13
12
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
14
13
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
15
14
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
16
15
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
17
16
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
18
17
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
19
18
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
20
19
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
21
20
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
22
21
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct'
|
|
23
22
|
MOBILE = 'Shop_ShopMain',
|
|
24
23
|
APP = 'TerminatorNew_All',
|
|
25
24
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
26
25
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
27
26
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
28
27
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
29
28
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
30
29
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
31
30
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
32
31
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
33
32
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
34
33
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
35
34
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
36
35
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
37
36
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
38
37
|
SALE_VIEW = 'Shop_NewActivity',
|
|
39
38
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
40
39
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
41
40
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct'
|
|
42
41
|
ACTIVITY_INIT: 'activityInit',
|
|
43
42
|
SHOP_HEADER: 'shopHeader',
|
|
44
43
|
SHOP_FOOTER: 'shopFooter',
|
|
45
44
|
SHOP_HOME: 'jshopMain',
|
|
46
45
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
47
46
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
48
47
|
NETWORK_ERR: 'networkerr',
|
|
49
48
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
50
49
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
51
50
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
52
51
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
53
52
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
54
53
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
55
54
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
56
55
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
57
56
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
58
57
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
59
58
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
60
59
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|
|
60
|
+
export enum LogPnameInfo {
|
|
61
61
|
HOME = 'home',
|
|
62
62
|
MEMBER = 'member',
|
|
63
63
|
CLASSIFY = 'classify',
|
|
64
64
|
PROMOTION = 'promotion',
|
|
65
65
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
66
66
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
67
67
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
68
68
|
SALE_VIEW = 'Shop_NewActivity',
|
|
69
69
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
70
70
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
71
71
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
72
72
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
73
73
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
74
74
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
75
75
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
76
76
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
77
77
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
78
78
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
79
79
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
80
80
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
81
81
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct',
|
|
82
82
|
APP_SAGE = 'Shop_Person',
|
|
83
83
|
APP_SAGE_POP = 'Shop_PersionPop',
|
|
84
84
|
MOBILE = 'Shop_ShopMain',
|
|
85
85
|
APP = 'TerminatorNew_All',
|
|
86
86
|
APP_SAGE = 'Shop_Person',
|
|
87
87
|
APP_SAGE_POP = 'Shop_PersionPop',
|
|
88
88
|
WX_JDGW_SHOP = 'W_jdgwxcx_shop',
|
|
89
89
|
APP_SHOP_DETAIL = 'Shop_ShopDetail',
|
|
90
90
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
91
91
|
STOW_SHOP_VIEW = 'Shop_FollowShopMain',
|
|
92
92
|
APP_SHOP_CARD = 'Shop_ShopCard',
|
|
93
93
|
APP_SHOP_MEMBER = 'Shop_ShopMember',
|
|
94
94
|
APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
|
|
95
95
|
SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
|
|
96
96
|
SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
|
|
97
97
|
APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
|
|
98
98
|
APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
|
|
99
99
|
APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
|
|
100
100
|
APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
|
|
101
101
|
SALE_VIEW = 'Shop_NewActivity',
|
|
102
102
|
SHOP_MEMBER_SCORES = 'Shop_ShopMemberScores',
|
|
103
103
|
SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
|
|
104
104
|
SHOP_MEMBER_PRODUCT = 'Shop_ShopMemberProduct',
|
|
105
105
|
ACTIVITY_INIT: 'activityInit',
|
|
106
106
|
SHOP_HEADER: 'shopHeader',
|
|
107
107
|
SHOP_FOOTER: 'shopFooter',
|
|
108
108
|
SHOP_HOME: 'jshopMain',
|
|
109
109
|
SHOP_FOLLOW_BTN: 'shopFollowBtn',
|
|
110
110
|
SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
|
|
111
111
|
NETWORK_ERR: 'networkerr',
|
|
112
112
|
RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
|
|
113
113
|
RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
|
|
114
114
|
RANK_LIST: 'Jx_Terminator_ShopRankList',
|
|
115
115
|
EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
|
|
116
116
|
[LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
|
|
117
117
|
[LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
|
|
118
118
|
[LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
|
|
119
119
|
[LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
|
|
120
120
|
[LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
|
|
121
121
|
[LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
|
|
122
122
|
[LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
|
|
123
123
|
[LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
|
|
@@ -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
|
const mping = new MPing()
|
|
29
28
|
mping.send(pv)
|
|
30
29
|
setTimeout(() => resolve(true), 200)
|
|
31
30
|
}).catch(e => {
|
|
32
31
|
reject(e)
|
|
33
32
|
})
|
|
34
33
|
}).catch(err => {
|
|
35
34
|
console.log("上报异常", err)
|
|
36
35
|
sgmCustomReport({
|
|
37
36
|
code: 'reportErr',
|
|
38
37
|
msg: '埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' + JSON.stringify(opts) + "==异常参数说明==>" + err,
|
|
39
38
|
})
|
|
40
39
|
})
|
|
41
40
|
return new Promise((resolve, reject) => {
|
|
42
41
|
const {
|
|
43
42
|
eid,
|
|
44
43
|
eparam,
|
|
45
44
|
jsonParam,
|
|
46
45
|
pageParam,
|
|
47
46
|
elevel,
|
|
48
47
|
pageId = 'TerminatorNew_All',
|
|
49
48
|
} = opts
|
|
50
49
|
getReportObjReadyPromise().then(() => {
|
|
51
50
|
const click = new MPing.inputs.Click(eid)
|
|
52
51
|
click.json_param = jsonParam
|
|
53
52
|
if(eparam) {
|
|
54
53
|
click.event_param = jsonParam
|
|
55
54
|
}
|
|
56
55
|
click.page_id = pageId
|
|
57
56
|
click.page_name = pageName
|
|
58
57
|
pageParam && (click.page_param = pageParam)
|
|
59
58
|
elevel && (click.event_level = elevel)
|
|
60
59
|
click.updateEventSeries()
|
|
61
60
|
new MPing().send(click)
|
|
62
61
|
setTimeout(() => resolve(true), 200)
|
|
63
62
|
}).catch(e => {
|
|
64
63
|
reject(e)
|
|
65
64
|
})
|
|
66
65
|
}).catch(err => {
|
|
67
66
|
console.log("上报异常", err)
|
|
68
67
|
sgmCustomReport({
|
|
69
68
|
code: 'reportErr',
|
|
70
69
|
msg: '埋点js加载异常,导致MPing不存在,点击或者曝光具体上报参数如下==>' + JSON.stringify(opts) + "==异常参数说明==>" + err,
|
|
71
70
|
})
|
|
72
71
|
})
|
|
73
72
|
const { jsonParam } = webLogParams
|
|
74
73
|
const { skuId } = opts
|
|
75
74
|
if(jsonParam && skuId) {
|
|
76
75
|
try {
|
|
77
76
|
let jsonObj = JSON.parse(jsonParam)
|
|
78
77
|
jsonObj['skuid'] = skuId + ''
|
|
79
78
|
webLogParams.jsonParam = JSON.stringify(jsonObj)
|
|
80
79
|
}catch (e) {
|
|
81
80
|
console.log(e)
|
|
82
81
|
}
|
|
83
82
|
}
|
|
84
83
|
return reportClick(webLogParams)
|
|
84
|
+
import { sgmCustomReport } from '../../utils';
|
|
85
85
|
new Promise((resolve, reject) => {
|
|
86
86
|
if (window.MPing) {
|
|
87
87
|
resolve(true);
|
|
88
88
|
} else {
|
|
89
89
|
if (isReportReadyError) {
|
|
90
90
|
reject(false);
|
|
91
91
|
} else {
|
|
92
92
|
ready('MPing', 3000)
|
|
93
93
|
.then(() => {
|
|
94
94
|
isReportReadyError = false;
|
|
95
95
|
resolve(true);
|
|
96
96
|
})
|
|
97
97
|
.catch(() => {
|
|
98
98
|
isReportReadyError = true;
|
|
99
99
|
reject(false);
|
|
100
100
|
});
|
|
101
101
|
}
|
|
102
102
|
}
|
|
103
103
|
});
|
|
104
104
|
return new Promise((resolve, reject) => {
|
|
105
105
|
const { pageId, pageParam, pTag, isSend = true, ...otherParam } = opts;
|
|
106
106
|
getReportObjReadyPromise()
|
|
107
107
|
.then(() => {
|
|
108
108
|
const pv = new MPing.inputs.PV({
|
|
109
109
|
page_id: pageId,
|
|
110
110
|
});
|
|
111
111
|
pv.page_param = pageParam;
|
|
112
112
|
otherParam &&
|
|
113
113
|
Object.keys(otherParam).forEach((key) => {
|
|
114
114
|
pv[key] = otherParam[key];
|
|
115
115
|
});
|
|
116
116
|
if (isSend) {
|
|
117
117
|
const mping = new MPing();
|
|
118
118
|
mping.send(pv);
|
|
119
119
|
setTimeout(() => resolve(true), 200);
|
|
120
120
|
}
|
|
121
121
|
})
|
|
122
122
|
.catch((e) => {
|
|
123
123
|
reject(e);
|
|
124
124
|
});
|
|
125
125
|
}).catch((err) => {
|
|
126
126
|
console.log('上报异常', err);
|
|
127
127
|
sgmCustomReport({
|
|
128
128
|
code: 'reportErr',
|
|
129
129
|
msg:
|
|
130
130
|
'埋点js加载异常,导致MPing不存在,pv具体上报参数如下==>' +
|
|
131
131
|
JSON.stringify(opts) +
|
|
132
132
|
'==异常参数说明==>' +
|
|
133
133
|
err,
|
|
134
134
|
});
|
|
135
135
|
});
|
|
136
136
|
return new Promise((resolve, reject) => {
|
|
137
137
|
const {
|
|
138
138
|
eid,
|
|
139
139
|
eparam,
|
|
140
140
|
jsonParam,
|
|
141
141
|
pageParam,
|
|
142
142
|
flowMapParam = {},
|
|
143
143
|
elevel,
|
|
144
144
|
isExpo = false,
|
|
145
145
|
target = null,
|
|
146
146
|
pageId = 'TerminatorNew_All',
|
|
147
147
|
} = opts;
|
|
148
148
|
getReportObjReadyPromise()
|
|
149
149
|
.then(() => {
|
|
150
150
|
const click = new MPing.inputs.Click(eid, {
|
|
151
151
|
isExpo,
|
|
152
152
|
target,
|
|
153
153
|
...flowMapParam,
|
|
154
154
|
});
|
|
155
155
|
click.json_param = jsonParam;
|
|
156
156
|
if (eparam) {
|
|
157
157
|
click.event_param = jsonParam;
|
|
158
158
|
}
|
|
159
159
|
click.page_id = pageId;
|
|
160
160
|
click.page_name = pageName;
|
|
161
161
|
pageParam && (click.page_param = pageParam);
|
|
162
162
|
elevel && (click.event_level = elevel);
|
|
163
163
|
click.updateEventSeries();
|
|
164
164
|
new MPing().send(click);
|
|
165
165
|
setTimeout(() => resolve(true), 200);
|
|
166
166
|
})
|
|
167
167
|
.catch((e) => {
|
|
168
168
|
reject(e);
|
|
169
169
|
});
|
|
170
170
|
}).catch((err) => {
|
|
171
171
|
console.log('上报异常', err);
|
|
172
172
|
sgmCustomReport({
|
|
173
173
|
code: 'reportErr',
|
|
174
174
|
msg:
|
|
175
175
|
'埋点js加载异常,导致MPing不存在,点击或者曝光具体上报参数如下==>' +
|
|
176
176
|
JSON.stringify(opts) +
|
|
177
177
|
'==异常参数说明==>' +
|
|
178
178
|
err,
|
|
179
179
|
});
|
|
180
180
|
});
|
|
181
181
|
const { jsonParam } = webLogParams;
|
|
182
182
|
const { skuId } = opts;
|
|
183
183
|
if (jsonParam && skuId) {
|
|
184
184
|
try {
|
|
185
185
|
let jsonObj = JSON.parse(jsonParam);
|
|
186
186
|
jsonObj['skuid'] = skuId + '';
|
|
187
187
|
webLogParams.jsonParam = JSON.stringify(jsonObj);
|
|
188
188
|
} catch (e) {
|
|
189
189
|
console.log(e);
|
|
190
190
|
}
|
|
191
191
|
}
|
|
192
192
|
return reportClick(webLogParams);
|