@conecli/cone-render 0.10.1-shop3.107 → 0.10.1-shop3.108

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.
@@ -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_BRAND_HOT_SALE = 'Shop_BrandHotSale',
12
11
  APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
13
12
  APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
14
13
  APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
15
14
  APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
16
15
  APP_SHOP_CARD = 'Shop_ShopCard',
17
16
  APP_SHOP_MEMBER = 'Shop_ShopMember',
18
17
  APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
19
18
  APP_SHOP_CATEGORY = 'Shop_Category',
20
19
  APP_SHOP_SCENE = 'Shop_Scene',
21
20
  SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
22
21
  SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
23
22
  SHOP_MEMBER_SCORES = 'MShop_ShopMemberIntegral',
24
23
  SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
25
24
  SHOP_MEMBER_PRODUCT = 'MShop_ShopMemberProduct',
26
25
  SHOP_MEMBER_INFO = 'Shop_ShopMember_Infomation',
27
26
  APP_SAGE = 'Shop_Person',
28
27
  APP_SAGE_POP = 'Shop_PersionPop',
29
28
  APP_SHOP_APP_SECKILL = 'Shop_SeckillTab',
30
29
  APP_SHOP_RANK = 'Shop_RankingList',
31
30
  APP_SHOP_ACTIVITY = 'Shop_ActivityTab',
32
31
  APP_SHOP_SERVICE = 'Shop_Service',
33
32
  APP_SHOP_CLOSED_SHOP_GUIDE = 'Shop_ClosedShopGuide',
34
33
  APP_USER_SHOP_SALE_POP = 'Shop_SystemUserShopSalePop',
35
34
  SHOP_MEMBER_COUPON = 'Shop_BrandSubCoupon',
36
35
  APP_SHOP_CUSTOM = 'Shop_CustomPage',
37
36
  APP_SHOP_SCENE_SHOPPING = 'Shop_Scene_Shopping',
38
37
  APP_SHOP_SCENE_FEEDS = 'Shop_Scene_Feeds',
39
38
  APP_SHOP_SCENE_PRODUCTS = 'Shop_Scene_Products',
40
39
  SHOP_MULTI_MEMBER_CARD = 'Shop_MultiMemberCard',
41
40
  APP_SHOP_LIGHT_DETAILS = 'Shop_LightDetails',
42
41
  SHOP_DIALOG_SUPER_STAR = 'Shop_DialogSuperStar',
43
42
  APP_SHOP_SEARCHMAIN = 'Shop_SearchMain',
44
43
  APP_SHOP_SEARCHLIST = 'Shop_SearchList',
45
44
  APP_SHOP_PRODUCTTAB = 'Shop_NavigationProductsList',
46
45
  SHOP_MEMBER_PAID_CENTER = 'Shop_ShopMemberPaidCenter',
47
46
  SHOP_MEMBER_PAID_CARD = 'Shop_ShopMemberPaidCard',
48
47
  SHOP_MEMBER_PAID_BIND = 'Shop_ShopMemberPaidBind',
49
48
  SHOP_STAFF_SALE = 'Shop_StaffSale',
50
49
  SHOP_RESERVE_DETAIL = 'Shop_ReserveDetail',
51
50
  MOBILE = 'Shop_ShopMain',
52
51
  APP = 'TerminatorNew_All',
53
52
  APP_SAGE = 'Shop_Person',
54
53
  APP_SAGE_POP = 'Shop_PersionPop',
55
54
  WX_JDGW_SHOP = 'W_jdgwxcx_shop',
56
55
  APP_SHOP_DETAIL = 'Shop_ShopDetail',
57
56
  MOBILE_SEARCH = 'MShop_SearchResult',
58
57
  STOW_SHOP_VIEW = 'Shop_FollowShopMain',
59
58
  APP_BRAND_HOT_SALE = 'Shop_BrandHotSale',
60
59
  APP_SHOP_CARD = 'Shop_ShopCard',
61
60
  APP_SHOP_MEMBER = 'Shop_ShopMember',
62
61
  APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
63
62
  APP_SHOP_CATEGORY = 'Shop_Category',
64
63
  APP_SHOP_SCENE = 'Shop_ShopSceneBuy',
65
64
  SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
66
65
  SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
67
66
  APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
68
67
  APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
69
68
  APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
70
69
  APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
71
70
  SALE_VIEW = 'Shop_NewActivity',
72
71
  SHOP_MEMBER_SCORES = 'MShop_ShopMemberIntegral',
73
72
  SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
74
73
  SHOP_MEMBER_PRODUCT = 'MShop_ShopMemberProduct',
75
74
  SHOP_MEMBER_INFO = 'Shop_ShopMember_Infomation',
76
75
  APP_SHOP_APP_SECKILL = 'Shop_SeckillTab',
77
76
  APP_SHOP_RANK = 'Shop_RankingList',
78
77
  APP_SHOP_ACTIVITY = 'Shop_ActivityTab',
79
78
  APP_SHOP_SERVICE = 'Shop_Service',
80
79
  APP_SHOP_CLOSED_SHOP_GUIDE = 'Shop_ClosedShopGuide',
81
80
  APP_USER_SHOP_SALE_POP = 'Shop_SystemUserShopSalePop',
82
81
  SHOP_MEMBER_COUPON = 'Shop_BrandSubCoupon',
83
82
  APP_SHOP_CUSTOM = 'Shop_CustomPage',
84
83
  APP_SHOP_SCENE_SHOPPING = 'Shop_Scene_Shopping',
85
84
  APP_SHOP_SCENE_FEEDS = 'Shop_Scene_Feeds',
86
85
  APP_SHOP_SCENE_PRODUCTS = 'Shop_Scene_Products',
87
86
  SHOP_MULTI_MEMBER_CARD = 'Shop_MultiMemberCard',
88
87
  APP_SHOP_LIGHT_DETAILS = 'Shop_LightDetails',
89
88
  SHOP_DIALOG_SUPER_STAR = 'Shop_DialogSuperStar',
90
89
  APP_SHOP_SEARCHMAIN = 'Shop_SearchMain',
91
90
  APP_SHOP_SEARCHLIST = 'Shop_SearchList',
92
91
  APP_SHOP_PRODUCTTAB = 'Shop_NavigationProductsList',
93
92
  PC_SHOP_CLASSIFY = 'PC_Shop_Classify',
94
93
  SHOP_MEMBER_PAID_CENTER = 'Shop_ShopMemberPaidCenter',
95
94
  SHOP_MEMBER_PAID_CARD = 'Shop_ShopMemberPaidCard',
96
95
  SHOP_MEMBER_PAID_BIND = 'Shop_ShopMemberPaidBind',
97
96
  SHOP_STAFF_SALE = 'Shop_StaffSale',
98
97
  SHOP_MAIN_TUOGUAN = 'Shop_ShopMain_Tuoguan',
99
98
  SHOP_RESERVE_DETAIL = 'Shop_ReserveDetail',
100
99
  ACTIVITY_INIT: 'activityInit',
101
100
  SHOP_HEADER: 'shopHeader',
102
101
  SHOP_FOOTER: 'shopFooter',
103
102
  SHOP_HOME: 'jshopMain',
104
103
  SHOP_FOLLOW_BTN: 'shopFollowBtn',
105
104
  SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
106
105
  NETWORK_ERR: 'networkerr',
107
106
  RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
108
107
  RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
109
108
  RANK_LIST: 'Jx_Terminator_ShopRankList',
110
109
  EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
111
110
  [LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
112
111
  [LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
113
112
  [LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
114
113
  [LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
115
114
  [LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
116
115
  [LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
117
116
  [LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
118
117
  [LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
119
118
  [LogPageIdInfo.MOBILE]: 'b002165',
120
119
  [LogPageIdInfo.APP]: 'b002165',
121
120
  [LogPageIdInfo.APP_SHOP_CATEGORY]: 'b002489',
122
121
  [LogPageIdInfo.APP_SHOP_MEMBER]: 'b002732',
123
122
  [LogPageIdInfo.APP_SHOP_CARD]: 'b003582',
124
123
  [LogPageIdInfo.SALE_VIEW]: 'b002503',
125
124
  [LogPageIdInfo.APP_SHOP_DETAIL]: 'b002275',
126
125
  [LogPageIdInfo.MOBILE_SEARCH]: 'b002510',
127
126
  [LogPageIdInfo.APP_SHOP_SCENE_SHOPPING]: 'b003162',
128
127
  [LogPageIdInfo.APP_SHOP_SCENE_FEEDS]: 'b003193',
129
128
  [LogPageIdInfo.APP_SHOP_SCENE_PRODUCTS]: 'b003196',
130
129
  [LogPageIdInfo.SHOP_MULTI_MEMBER_CARD]: 'b003201',
131
130
  [LogPageIdInfo.APP_SHOP_LIGHT_DETAILS]: 'b003366',
132
131
  [LogPageIdInfo.SHOP_DIALOG_SUPER_STAR]: 'b002165',
133
132
  [LogPageIdInfo.APP_SHOP_RANK]: 'b002730',
134
133
  [LogPageIdInfo.APP_SHOP_SCENE]: 'b002728',
135
134
  [LogPageIdInfo.APP_SHOP_APP_SECKILL]: 'b002727',
136
135
  [LogPageIdInfo.APP_SHOP_ACTIVITY]: 'b002726',
137
136
  [LogPageIdInfo.SHOP_MEMBER_INFO]: 'b003414',
138
137
  [LogPageIdInfo.APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS]: 'b003413',
139
138
  [LogPageIdInfo.SHOP_MEMBER_PRODUCT]: 'b003412',
140
139
  [LogPageIdInfo.SHOP_MEMBER_SCORES]: 'b003411',
141
140
  [LogPageIdInfo.SHOP_MEMBER_EXCHANGE_NEW]: 'b003408',
142
141
  [LogPageIdInfo.SHOP_MEMBER_RECEIVED]: 'b003406',
143
142
  [LogPageIdInfo.APP_SHOP_NEW_PRODUCT]: 'b003405',
144
143
  [LogPageIdInfo.APP_SHOP_SEARCHMAIN]: 'b002274',
145
144
  [LogPageIdInfo.APP_SHOP_SEARCHLIST]: 'b002272',
146
145
  [LogPageIdInfo.APP_SHOP_PRODUCTTAB]: 'b002488',
147
146
  [LogPageIdInfo.SHOP_MEMBER_PAID_CENTER]: 'b003877',
148
147
  [LogPageIdInfo.SHOP_MEMBER_PAID_CARD]: 'b003878',
149
148
  [LogPageIdInfo.SHOP_MEMBER_PAID_BIND]: 'b003879',
150
149
  [LogPageIdInfo.SHOP_STAFF_SALE]: 'b004144',
151
150
  [LogPageIdInfo.SHOP_RESERVE_DETAIL]: 'b005214',
152
151
  [LogPageIdInfo.PC_SHOP_CLASSIFY]: 'b003329',
153
152
  TerminatorNew_mPreSell_Expo: 'c00003931.Ter_mPreSell',
154
153
  TerminatorNew_mPreSell_Click: 'c00003931.Ter_mPreSell',
155
154
  TerminatorNew_mDynamicImage_Expo: 'c00003054.Ter_mDynamicImage',
156
155
  TerminatorNew_mDynamicImage_Click: 'c00003054.Ter_mDynamicImage',
157
156
  TerminatorNew_mPromotion_Expo: 'c00003051.Ter_mPromotion',
158
157
  TerminatorNew_mPromotion_Click: 'c00003051.Ter_mPromotion',
159
158
  TerminatorNew_TabSeriousWare_Tab_Expo: 'c00003049.Ter_mCollectionTab',
160
159
  TerminatorNew_TabSeriousWare_Tab_Click: 'c00003049.Ter_mCollectionTab',
161
160
  TerminatorNew_TabSeriousWare_Sku_Expo: 'c00003049.Ter_mCollectionSku',
162
161
  TerminatorNew_TabSeriousWare_Sku_Click: 'c00003049.Ter_mCollectionSku',
163
162
  TerminatorNew_TabSeriousWare_Pic_Expo: 'c00003049.Ter_CollectionImgs',
164
163
  TerminatorNew_TabSeriousWare_Pic_Click: 'c00003049.Ter_CollectionImgs',
165
164
  TerminatorNew_SgCoupon_Expo: 'c00003048.Ter_mSgCoupon',
166
165
  TerminatorNew_SgCoupon_Click: 'c00003048.Ter_mSgCoupon',
167
166
  TerminatorNew_smartNewProduct_Expo: 'c00003047.Ter_smartNewProduct',
168
167
  TerminatorNew_smartNewProduct_Click: 'c00003047.Ter_smartNewProduct',
169
168
  TerminatorNew_mMainPushNewProducts_Expo: 'c00003047.Ter_mFeaturedPickSku',
170
169
  TerminatorNew_mMainPushNewProducts_Click: 'c00003047.Ter_mFeaturedPickSku',
171
170
  TerminatorNew_smartPromoSku_Expo: 'c00003046.Ter_smartPromoSku',
172
171
  TerminatorNew_smartPromoSku_Click: 'c00003046.Ter_smartPromoSku',
173
172
  TerminatorNew_smartCoupon_Expo: 'c00003016.Ter_smartCoupon',
174
173
  TerminatorNew_smartCoupon_Click: 'c00003016.Ter_smartCoupon',
175
174
  TerminatorNew_smartNav_Expo: 'c00003013.Ter_smartNav',
176
175
  TerminatorNew_smartNav_Click: 'c00003013.Ter_smartNav',
177
176
  TerminatorNew_IsvModule_Expo: 'c00002955.Ter_IsvModule',
178
177
  TerminatorNew_IsvModule_Click: 'c00002955.Ter_IsvModule',
179
178
  TerminatorNew_mBanner_Expo: 'c00002954.Ter_mBanner',
180
179
  TerminatorNew_mBanner_Click: 'c00002954.Ter_mBanner',
181
180
  TerminatorNew_shopRankList_Expo: 'c00002953.Ter_shopRankList',
182
181
  TerminatorNew_shopRankList_Click: 'c00002953.Ter_shopRankList',
183
182
  TerminatorNew_mVideo_Expo: 'c00002952.Ter_mVideo',
184
183
  TerminatorNew_mVideo_Click: 'c00002952.Ter_mVideo',
185
184
  TerminatorNew_mCoupon_Expo: 'c00002951.Ter_mCoupon',
186
185
  TerminatorNew_mCoupon_Click: 'c00002951.Ter_mCoupon',
187
186
  TerminatorNew_mPictureHotspot_Expo: 'c00002950.Ter_mPictureHotspot',
188
187
  TerminatorNew_mPictureHotspot_Click: 'c00002950.Ter_mPictureHotspot',
189
188
  TerminatorNew_smartUnionProduct_Expo: 'c00002949.Ter_smartProduct',
190
189
  TerminatorNew_smartUnionProduct_Click: 'c00002949.Ter_smartProduct',
191
190
  TerminatorNew_mICommonGood_Expo: 'c00002949.Ter_mICommonGood',
192
191
  TerminatorNew_mICommonGood_Click: 'c00002949.Ter_mICommonGood',
193
192
  TerminatorNew_smartHotSaleProduct_Expo: 'c00002948.Ter_mHotSaleProduct',
194
193
  TerminatorNew_smartHotSaleProduct_Click: 'c00002948.Ter_mHotSaleProduct',
195
194
  TerminatorNew_smartSecondCate_Expo: 'c00002947.Ter_smartSecondCate',
196
195
  TerminatorNew_smartSecondCate_Click: 'c00002947.Ter_smartSecondCate',
197
196
  TerminatorNew_recfeedsku_Expo: 'c00002946.Ter_RecfeedSku',
198
197
  TerminatorNew_recfeedsku_Click: 'c00002946.Ter_RecfeedSku',
199
198
  TerminatorNew_recfeedskuAddCart_Click: 'c00002946.Ter_RecfeedAddCart',
200
199
  TerminatorNew_mMemberSprint_Expo: 'c00003930.Ter_mMemberSprint',
201
200
  TerminatorNew_mMemberSprint_Click: 'c00003930.Ter_mMemberSprint',
202
201
  TerminatorNew_mShopMembers_Expo: 'c00003929.Ter_mShopMembers',
203
202
  TerminatorNew_mShopMembers_Click: 'c00003929.Ter_mShopMembers',
204
203
  ShopDetail_Follow: 'c00004094.ShopDetail_Follow',
205
204
  ShopDetail_Share: 'c00004094.ShopDetail_Share',
206
205
  ShopDetail_QRcode: 'c00004095.ShopDetail_QRcode',
207
206
  ShopDetail_Licence: 'c00004095.ShopDetail_Licence',
208
207
  ShopDetail_AllProducts: 'c00004096.ShopDetail_AllSku',
209
208
  Shop_Category_skuexpo: 'c00004041.Shop_Category_sku',
210
209
  Shop_Category_sku: 'c00004041.Shop_Category_sku',
211
210
  Shop_Category_sortbtn: 'c00004041.Shop_Category_sort',
212
211
  Shop_Category_skuaddcart: 'c00004041.Shop_Category_addcar',
213
212
  Shop_Category_LV1: 'c00004041.Shop_Category_LV1',
214
213
  Shop_Category_LV2: 'c00004041.Shop_Category_LV2',
215
214
  Terminator_New_Mobile_Shop_listCategorySku_Click: 'c00004041.Ter_listCategorySku',
216
215
  Terminator_New_Mobile_Shop_listCategoryShowAllSku_Click: 'c00004041.Ter_listCateAllSku',
217
216
  Terminator_New_Mobile_Shop_listCategoryLV1_Click: 'c00004041.Ter_listCategoryLV1',
218
217
  Terminator_New_Mobile_Shop_navCategoryLV2_Click: 'c00004041.Ter_navCategoryLV2',
219
218
  Terminator_New_Mobile_Shop_navCategoryLV1_Click: 'c00004041.Ter_navCategoryLV1',
220
219
  MShop_ResultProduct: 'c00004120.MShop_ResultProduct',
220
+ export enum LogPnameInfo {
221
221
  HOME = 'home',
222
222
  MEMBER = 'member',
223
223
  CLASSIFY = 'classify',
224
224
  PROMOTION = 'promotion',
225
225
  WX_SHOP_HOME = 'wx_shop_home',
226
226
  APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
227
227
  MOBILE_SEARCH = 'MShop_SearchResult',
228
228
  SALE_VIEW = 'Shop_NewActivity',
229
229
  STOW_SHOP_VIEW = 'Shop_FollowShopMain',
230
230
  APP_BRAND_HOT_SALE = 'Shop_BrandHotSale',
231
231
  APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
232
232
  APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
233
233
  APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
234
234
  APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
235
235
  APP_SHOP_CARD = 'Shop_ShopCard',
236
236
  APP_SHOP_MEMBER = 'Shop_ShopMember',
237
237
  APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
238
238
  APP_SHOP_CATEGORY = 'Shop_Category',
239
239
  APP_SHOP_SCENE = 'Shop_Scene',
240
240
  SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
241
241
  SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
242
242
  SHOP_MEMBER_SCORES = 'MShop_ShopMemberIntegral',
243
243
  SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
244
244
  SHOP_MEMBER_PRODUCT = 'MShop_ShopMemberProduct',
245
245
  SHOP_MEMBER_INFO = 'Shop_ShopMember_Infomation',
246
246
  APP_SAGE = 'Shop_Person',
247
247
  APP_SAGE_POP = 'Shop_PersionPop',
248
248
  APP_SHOP_APP_SECKILL = 'Shop_SeckillTab',
249
249
  APP_SHOP_RANK = 'Shop_RankingList',
250
250
  APP_SHOP_ACTIVITY = 'Shop_ActivityTab',
251
251
  APP_SHOP_SERVICE = 'Shop_Service',
252
252
  APP_SHOP_CLOSED_SHOP_GUIDE = 'Shop_ClosedShopGuide',
253
253
  APP_USER_SHOP_SALE_POP = 'Shop_SystemUserShopSalePop',
254
254
  SHOP_MEMBER_COUPON = 'Shop_BrandSubCoupon',
255
255
  APP_SHOP_CUSTOM = 'Shop_CustomPage',
256
256
  APP_SHOP_SCENE_SHOPPING = 'Shop_Scene_Shopping',
257
257
  APP_SHOP_SCENE_FEEDS = 'Shop_Scene_Feeds',
258
258
  APP_SHOP_SCENE_PRODUCTS = 'Shop_Scene_Products',
259
259
  SHOP_MULTI_MEMBER_CARD = 'Shop_MultiMemberCard',
260
260
  APP_SHOP_LIGHT_DETAILS = 'Shop_LightDetails',
261
261
  SHOP_DIALOG_SUPER_STAR = 'Shop_DialogSuperStar',
262
262
  APP_SHOP_SEARCHMAIN = 'Shop_SearchMain',
263
263
  APP_SHOP_SEARCHLIST = 'Shop_SearchList',
264
264
  APP_SHOP_PRODUCTTAB = 'Shop_NavigationProductsList',
265
265
  SHOP_MEMBER_PAID_CENTER = 'Shop_ShopMemberPaidCenter',
266
266
  SHOP_MEMBER_PAID_CARD = 'Shop_ShopMemberPaidCard',
267
267
  SHOP_MEMBER_PAID_BIND = 'Shop_ShopMemberPaidBind',
268
268
  SHOP_STAFF_SALE = 'Shop_StaffSale',
269
269
  SHOP_RESERVE_DETAIL = 'Shop_ReserveDetail',
270
270
  PC_SHOP = 'PC_Shop',
271
271
  PC_SHOP_CLASSIFY = 'PC_Shop_Classify',
272
272
  MOBILE = 'Shop_ShopMain',
273
273
  APP = 'TerminatorNew_All',
274
274
  APP_SAGE = 'Shop_Person',
275
275
  APP_SAGE_POP = 'Shop_PersionPop',
276
276
  WX_JDGW_SHOP = 'W_jdgwxcx_shop',
277
277
  APP_SHOP_DETAIL = 'Shop_ShopDetail',
278
278
  MOBILE_SEARCH = 'MShop_SearchResult',
279
279
  STOW_SHOP_VIEW = 'Shop_FollowShopMain',
280
280
  APP_BRAND_HOT_SALE = 'Shop_BrandHotSale',
281
281
  APP_SHOP_CARD = 'Shop_ShopCard',
282
282
  APP_SHOP_MEMBER = 'Shop_ShopMember',
283
283
  APP_SHOP_PAY_MEMBER = 'Shop_PayShopMember',
284
284
  APP_SHOP_CATEGORY = 'Shop_Category',
285
285
  APP_SHOP_SCENE = 'Shop_ShopSceneBuy',
286
286
  SHOP_MEMBER_EXCHANGE_NEW = 'Shop_ShopMemberExchangedNew',
287
287
  SHOP_MEMBER_RECEIVED = 'Shop_ShopMemberReceived',
288
288
  APP_SHOP_NEW_PRODUCT = 'Shop_ProductNew',
289
289
  APP_SHOP_NEW_PRODUCT_VIDEO = 'Shop_ProductNewVideo',
290
290
  APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS = 'shop_preferredGoods',
291
291
  APP_SHOP_BUYER_SHOW = 'Shop_ShopBuyerShow',
292
292
  SALE_VIEW = 'Shop_NewActivity',
293
293
  SHOP_MEMBER_SCORES = 'MShop_ShopMemberIntegral',
294
294
  SHOP_MEMBER_SCORE_RULE = 'Shop_ShopMemberScoreRule',
295
295
  SHOP_MEMBER_PRODUCT = 'MShop_ShopMemberProduct',
296
296
  SHOP_MEMBER_INFO = 'Shop_ShopMember_Infomation',
297
297
  APP_SHOP_APP_SECKILL = 'Shop_SeckillTab',
298
298
  APP_SHOP_RANK = 'Shop_RankingList',
299
299
  APP_SHOP_ACTIVITY = 'Shop_ActivityTab',
300
300
  APP_SHOP_SERVICE = 'Shop_Service',
301
301
  APP_SHOP_CLOSED_SHOP_GUIDE = 'Shop_ClosedShopGuide',
302
302
  APP_USER_SHOP_SALE_POP = 'Shop_SystemUserShopSalePop',
303
303
  SHOP_MEMBER_COUPON = 'Shop_BrandSubCoupon',
304
304
  APP_SHOP_CUSTOM = 'Shop_CustomPage',
305
305
  APP_SHOP_SCENE_SHOPPING = 'Shop_Scene_Shopping',
306
306
  APP_SHOP_SCENE_FEEDS = 'Shop_Scene_Feeds',
307
307
  APP_SHOP_SCENE_PRODUCTS = 'Shop_Scene_Products',
308
308
  SHOP_MULTI_MEMBER_CARD = 'Shop_MultiMemberCard',
309
309
  APP_SHOP_LIGHT_DETAILS = 'Shop_LightDetails',
310
310
  SHOP_DIALOG_SUPER_STAR = 'Shop_DialogSuperStar',
311
311
  APP_SHOP_SEARCHMAIN = 'Shop_SearchMain',
312
312
  APP_SHOP_SEARCHLIST = 'Shop_SearchList',
313
313
  APP_SHOP_PRODUCTTAB = 'Shop_NavigationProductsList',
314
314
  SHOP_MEMBER_PAID_CENTER = 'Shop_ShopMemberPaidCenter',
315
315
  SHOP_MEMBER_PAID_CARD = 'Shop_ShopMemberPaidCard',
316
316
  SHOP_MEMBER_PAID_BIND = 'Shop_ShopMemberPaidBind',
317
317
  SHOP_STAFF_SALE = 'Shop_StaffSale',
318
318
  SHOP_MAIN_TUOGUAN = 'Shop_ShopMain_Tuoguan',
319
319
  SHOP_RESERVE_DETAIL = 'Shop_ReserveDetail',
320
320
  PC_SHOP = 'PC_Shop',
321
321
  PC_SHOP_CLASSIFY = 'PC_Shop_Classify',
322
322
  ACTIVITY_INIT: 'activityInit',
323
323
  SHOP_HEADER: 'shopHeader',
324
324
  SHOP_FOOTER: 'shopFooter',
325
325
  SHOP_HOME: 'jshopMain',
326
326
  SHOP_FOLLOW_BTN: 'shopFollowBtn',
327
327
  SHOP_UNFOLLOW_BTN: 'shopUnFollowBtn',
328
328
  NETWORK_ERR: 'networkerr',
329
329
  RANK_LIST_MORE: 'Jx_Terminator_ShopRankListMore',
330
330
  RANK_LIST_TAG: 'Jx_Terminator_ShopRankListTag',
331
331
  RANK_LIST: 'Jx_Terminator_ShopRankList',
332
332
  EXPO_RANK_LIST: 'Jx_Terminator_Expo_shopRankList',
333
333
  [LogEventIds.SHOP_HOME]: 'Jx_Terminator_1620613767283|1',
334
334
  [LogEventIds.SHOP_FOLLOW_BTN]: 'Jx_Terminator_1620613767283|2',
335
335
  [LogEventIds.SHOP_UNFOLLOW_BTN]: 'Jx_Terminator_1620613767283|3',
336
336
  [LogEventIds.NETWORK_ERR]: 'Jx_Terminator_1620613767283|4',
337
337
  [LogEventIds.RANK_LIST_MORE]: 'Jx_Terminator_ShopRankListMore',
338
338
  [LogEventIds.RANK_LIST_TAG]: 'Jx_Terminator_ShopRankListTag',
339
339
  [LogEventIds.RANK_LIST]: 'Jx_Terminator_ShopRankList',
340
340
  [LogEventIds.EXPO_RANK_LIST]: 'Jx_Terminator_Expo_shopRankList',
341
341
  [LogPageIdInfo.MOBILE]: 'b002165',
342
342
  [LogPageIdInfo.APP]: 'b002165',
343
343
  [LogPageIdInfo.APP_SHOP_CATEGORY]: 'b002489',
344
344
  [LogPageIdInfo.APP_SHOP_MEMBER]: 'b002732',
345
345
  [LogPageIdInfo.APP_SHOP_CARD]: 'b003582',
346
346
  [LogPageIdInfo.SALE_VIEW]: 'b002503',
347
347
  [LogPageIdInfo.APP_SHOP_DETAIL]: 'b002275',
348
348
  [LogPageIdInfo.MOBILE_SEARCH]: 'b002510',
349
349
  [LogPageIdInfo.APP_SHOP_SCENE_SHOPPING]: 'b003162',
350
350
  [LogPageIdInfo.APP_SHOP_SCENE_FEEDS]: 'b003193',
351
351
  [LogPageIdInfo.APP_SHOP_SCENE_PRODUCTS]: 'b003196',
352
352
  [LogPageIdInfo.SHOP_MULTI_MEMBER_CARD]: 'b003201',
353
353
  [LogPageIdInfo.APP_SHOP_LIGHT_DETAILS]: 'b003366',
354
354
  [LogPageIdInfo.SHOP_DIALOG_SUPER_STAR]: 'b002165',
355
355
  [LogPageIdInfo.APP_SHOP_RANK]: 'b002730',
356
356
  [LogPageIdInfo.APP_SHOP_SCENE]: 'b002728',
357
357
  [LogPageIdInfo.APP_SHOP_APP_SECKILL]: 'b002727',
358
358
  [LogPageIdInfo.APP_SHOP_ACTIVITY]: 'b002726',
359
359
  [LogPageIdInfo.SHOP_MEMBER_INFO]: 'b003414',
360
360
  [LogPageIdInfo.APP_SHOP_NEW_PRODUCT_PREFERRED_GOODS]: 'b003413',
361
361
  [LogPageIdInfo.SHOP_MEMBER_PRODUCT]: 'b003412',
362
362
  [LogPageIdInfo.SHOP_MEMBER_SCORES]: 'b003411',
363
363
  [LogPageIdInfo.SHOP_MEMBER_EXCHANGE_NEW]: 'b003408',
364
364
  [LogPageIdInfo.SHOP_MEMBER_RECEIVED]: 'b003406',
365
365
  [LogPageIdInfo.APP_SHOP_NEW_PRODUCT]: 'b003405',
366
366
  [LogPageIdInfo.APP_SHOP_SEARCHMAIN]: 'b002274',
367
367
  [LogPageIdInfo.APP_SHOP_SEARCHLIST]: 'b002272',
368
368
  [LogPageIdInfo.APP_SHOP_PRODUCTTAB]: 'b002488',
369
369
  [LogPageIdInfo.SHOP_MEMBER_PAID_CENTER]: 'b003877',
370
370
  [LogPageIdInfo.SHOP_MEMBER_PAID_CARD]: 'b003878',
371
371
  [LogPageIdInfo.SHOP_MEMBER_PAID_BIND]: 'b003879',
372
372
  [LogPageIdInfo.SHOP_STAFF_SALE]: 'b004144',
373
373
  [LogPageIdInfo.SHOP_RESERVE_DETAIL]: 'b005214',
374
374
  [LogPageIdInfo.PC_SHOP]: 'b006372',
375
375
  [LogPageIdInfo.PC_SHOP_CLASSIFY]: 'b003329',
376
376
  TerminatorNew_mPreSell_Expo: 'c00003931.Ter_mPreSell',
377
377
  TerminatorNew_mPreSell_Click: 'c00003931.Ter_mPreSell',
378
378
  TerminatorNew_mDynamicImage_Expo: 'c00003054.Ter_mDynamicImage',
379
379
  TerminatorNew_mDynamicImage_Click: 'c00003054.Ter_mDynamicImage',
380
380
  TerminatorNew_mPromotion_Expo: 'c00003051.Ter_mPromotion',
381
381
  TerminatorNew_mPromotion_Click: 'c00003051.Ter_mPromotion',
382
382
  TerminatorNew_TabSeriousWare_Tab_Expo: 'c00003049.Ter_mCollectionTab',
383
383
  TerminatorNew_TabSeriousWare_Tab_Click: 'c00003049.Ter_mCollectionTab',
384
384
  TerminatorNew_TabSeriousWare_Sku_Expo: 'c00003049.Ter_mCollectionSku',
385
385
  TerminatorNew_TabSeriousWare_Sku_Click: 'c00003049.Ter_mCollectionSku',
386
386
  TerminatorNew_TabSeriousWare_Pic_Expo: 'c00003049.Ter_CollectionImgs',
387
387
  TerminatorNew_TabSeriousWare_Pic_Click: 'c00003049.Ter_CollectionImgs',
388
388
  TerminatorNew_SgCoupon_Expo: 'c00003048.Ter_mSgCoupon',
389
389
  TerminatorNew_SgCoupon_Click: 'c00003048.Ter_mSgCoupon',
390
390
  TerminatorNew_smartNewProduct_Expo: 'c00003047.Ter_smartNewProduct',
391
391
  TerminatorNew_smartNewProduct_Click: 'c00003047.Ter_smartNewProduct',
392
392
  TerminatorNew_mMainPushNewProducts_Expo: 'c00003047.Ter_mFeaturedPickSku',
393
393
  TerminatorNew_mMainPushNewProducts_Click: 'c00003047.Ter_mFeaturedPickSku',
394
394
  TerminatorNew_smartPromoSku_Expo: 'c00003046.Ter_smartPromoSku',
395
395
  TerminatorNew_smartPromoSku_Click: 'c00003046.Ter_smartPromoSku',
396
396
  TerminatorNew_smartCoupon_Expo: 'c00003016.Ter_smartCoupon',
397
397
  TerminatorNew_smartCoupon_Click: 'c00003016.Ter_smartCoupon',
398
398
  TerminatorNew_smartNav_Expo: 'c00003013.Ter_smartNav',
399
399
  TerminatorNew_smartNav_Click: 'c00003013.Ter_smartNav',
400
400
  TerminatorNew_IsvModule_Expo: 'c00002955.Ter_IsvModule',
401
401
  TerminatorNew_IsvModule_Click: 'c00002955.Ter_IsvModule',
402
402
  TerminatorNew_mBanner_Expo: 'c00002954.Ter_mBanner',
403
403
  TerminatorNew_mBanner_Click: 'c00002954.Ter_mBanner',
404
404
  TerminatorNew_shopRankList_Expo: 'c00002953.Ter_shopRankList',
405
405
  TerminatorNew_shopRankList_Click: 'c00002953.Ter_shopRankList',
406
406
  TerminatorNew_mVideo_Expo: 'c00002952.Ter_mVideo',
407
407
  TerminatorNew_mVideo_Click: 'c00002952.Ter_mVideo',
408
408
  TerminatorNew_mCoupon_Expo: 'c00002951.Ter_mCoupon',
409
409
  TerminatorNew_mCoupon_Click: 'c00002951.Ter_mCoupon',
410
410
  TerminatorNew_mPictureHotspot_Expo: 'c00002950.Ter_mPictureHotspot',
411
411
  TerminatorNew_mPictureHotspot_Click: 'c00002950.Ter_mPictureHotspot',
412
412
  TerminatorNew_smartUnionProduct_Expo: 'c00002949.Ter_smartProduct',
413
413
  TerminatorNew_smartUnionProduct_Click: 'c00002949.Ter_smartProduct',
414
414
  TerminatorNew_mICommonGood_Expo: 'c00002949.Ter_mICommonGood',
415
415
  TerminatorNew_mICommonGood_Click: 'c00002949.Ter_mICommonGood',
416
416
  TerminatorNew_smartHotSaleProduct_Expo: 'c00002948.Ter_mHotSaleProduct',
417
417
  TerminatorNew_smartHotSaleProduct_Click: 'c00002948.Ter_mHotSaleProduct',
418
418
  TerminatorNew_smartSecondCate_Expo: 'c00002947.Ter_smartSecondCate',
419
419
  TerminatorNew_smartSecondCate_Click: 'c00002947.Ter_smartSecondCate',
420
420
  TerminatorNew_recfeedsku_Expo: 'c00002946.Ter_RecfeedSku',
421
421
  TerminatorNew_recfeedsku_Click: 'c00002946.Ter_RecfeedSku',
422
422
  TerminatorNew_recfeedskuAddCart_Click: 'c00002946.Ter_RecfeedAddCart',
423
423
  TerminatorNew_mMemberSprint_Expo: 'c00003930.Ter_mMemberSprint',
424
424
  TerminatorNew_mMemberSprint_Click: 'c00003930.Ter_mMemberSprint',
425
425
  TerminatorNew_mShopMembers_Expo: 'c00003929.Ter_mShopMembers',
426
426
  TerminatorNew_mShopMembers_Click: 'c00003929.Ter_mShopMembers',
427
427
  ShopDetail_Follow: 'c00004094.ShopDetail_Follow',
428
428
  ShopDetail_Share: 'c00004094.ShopDetail_Share',
429
429
  ShopDetail_QRcode: 'c00004095.ShopDetail_QRcode',
430
430
  ShopDetail_Licence: 'c00004095.ShopDetail_Licence',
431
431
  ShopDetail_AllProducts: 'c00004096.ShopDetail_AllSku',
432
432
  Shop_Category_skuexpo: 'c00004041.Shop_Category_sku',
433
433
  Shop_Category_sku: 'c00004041.Shop_Category_sku',
434
434
  Shop_Category_sortbtn: 'c00004041.Shop_Category_sort',
435
435
  Shop_Category_skuaddcart: 'c00004041.Shop_Category_addcar',
436
436
  Shop_Category_LV1: 'c00004041.Shop_Category_LV1',
437
437
  Shop_Category_LV2: 'c00004041.Shop_Category_LV2',
438
438
  Terminator_New_Mobile_Shop_listCategorySku_Click: 'c00004041.Ter_listCategorySku',
439
439
  Terminator_New_Mobile_Shop_listCategoryShowAllSku_Click: 'c00004041.Ter_listCateAllSku',
440
440
  Terminator_New_Mobile_Shop_listCategoryLV1_Click: 'c00004041.Ter_listCategoryLV1',
441
441
  Terminator_New_Mobile_Shop_navCategoryLV2_Click: 'c00004041.Ter_navCategoryLV2',
442
442
  Terminator_New_Mobile_Shop_navCategoryLV1_Click: 'c00004041.Ter_navCategoryLV1',
443
443
  MShop_ResultProduct: 'c00004120.MShop_ResultProduct',
@@ -1 +1 @@
1
- import global from '../common';
2
1
  BUSINESS_TYPE,
3
2
  SHOP_MENU_ID_TYPE,
4
3
  SHOP_MENU_ID_NAME,
5
4
  SECTION_HOME_TAB_TYPE,
6
5
  SECTION_HOME_TAB_NAME_TYPE,
7
6
  LogPageIdInfo,
8
7
  LogPnameInfo,
9
8
  PcShopSpmA,
10
9
  PcShopSpmBforMap,
11
10
  routerInfo: {
12
11
  params: {},
13
12
  },
14
13
  nativeEvent: null,
15
14
  jumpConfig: {
16
15
  venderId: null,
17
16
  shopId: null,
18
17
  sourceValue: '',
19
18
  sourceType: 'M-H5',
20
19
  activityType: 'shopx',
21
20
  moduleId: 'none',
22
21
  entrance: 'none',
23
22
  },
24
23
  logPageParamStr: '',
25
24
  new Promise((resolve, reject) => {
26
25
  if (window.spmPV) {
27
26
  resolve(true);
28
27
  } else {
29
28
  if (isReportReadyError) {
30
29
  reject(false);
31
30
  } else {
32
31
  ready('spmPV', 3000)
33
32
  .then(() => {
34
33
  isReportReadyError = false;
35
34
  resolve(true);
36
35
  })
37
36
  .catch(() => {
38
37
  isReportReadyError = true;
39
38
  reject(false);
40
39
  });
41
40
  }
42
41
  }
43
42
  });
44
43
  public logPageId: string;
45
44
  public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig;
46
45
  getConfig(opt) {
47
46
  return Object.assign(this, {}, defaultConfig, opt);
48
47
  }
49
48
  updateInfo(routerInfo, logPname = LogPnameInfo.HOME, pageId = LogPageIdInfo.APP) {
50
49
  this.routerInfo = routerInfo;
51
50
  this.logPname = logPname;
52
51
  this.jumpConfig = Object.assign(
53
52
  {},
54
53
  this.jumpConfig,
55
54
  filterUrlQueryData(routerInfo?.params || {}),
56
55
  );
57
56
  this.logPageId = pageId;
58
57
  }
59
58
 
60
59
  jdNavigateToNative(
61
60
  url: string,
62
61
  params: {
63
62
  logEventInfo?: object;
64
63
  } = {},
65
64
  successBack?: Function | undefined,
66
65
  failBack?: Function | undefined,
67
66
  ) {
68
67
  const { logEventInfo } = params;
69
68
  const getEparam = logEventInfo || params;
70
69
  console.log(`url:::::::${url}`);
71
70
  global.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE &&
72
71
  this.clickEventLog(getEparam)
73
72
  .then(() => {
74
73
  typeof successBack === 'function' ? successBack(url) : window.open(url, '_blank');
75
74
  })
76
75
  .catch(() => {
77
76
  typeof failBack === 'function' && failBack(url);
78
77
  });
79
78
  }
80
79
 
81
80
  reportInfoPv(
82
81
  pageId = LogPageIdInfo.APP,
83
82
  opt: {
84
83
  pageParam?: any;
85
84
  } = {},
86
85
  ): Promise<any> {
87
86
  console.log('web.pc.ts - reportInfoPv', pageId, opt);
88
87
  return new Promise((resolve, reject) => {
89
88
  const { pageParam } = opt;
90
89
  const pageParamStr = typeof pageParam === 'object' ? JSON.stringify(pageParam) : pageParam;
91
90
  getReportObjReadyPromise()
92
91
  .then(() => {
93
92
  window.spmPV({
94
93
  spm: `${PcShopSpmA}.${PcShopSpmBforMap[pageId]}`,
95
94
  page_id: pageId,
96
95
  page_param: pageParamStr,
97
96
  });
98
97
  resolve(true);
99
98
  })
100
99
  .catch((e) => {
101
100
  reject(e);
102
101
  });
103
102
  }).catch((err) => {
104
103
  console.log('pc sgm 浏览pv埋点上报异常', err);
105
104
  });
106
105
  }
107
106
 
108
107
  clickEventLog(opts): Promise<any> {
109
108
  console.log('web.pc.ts - clickEventLog opts: ', opts);
110
109
  return new Promise((resolve, reject) => {
111
110
  const { spmAll, spmCd, pageId, pageParam, ...otherParam } = opts;
112
111
  const pageParamStr = typeof pageParam === 'object' ? JSON.stringify(pageParam) : pageParam;
113
112
  getReportObjReadyPromise()
114
113
  .then(() => {
115
114
  window.spmLog({
116
115
  spm: spmAll ? spmAll : `${PcShopSpmA}.${PcShopSpmBforMap[pageId]}.${spmCd}`,
117
116
  biz_type: '',
118
117
  page_id: pageId,
119
118
  event_param: '',
120
119
  json_param: pageParamStr,
121
120
  t1: '',
122
121
  t2: '',
123
122
  p0: '',
124
123
  ...otherParam,
125
124
  });
126
125
  resolve(true);
127
126
  })
128
127
  .catch((e) => {
129
128
  reject(e);
130
129
  });
131
130
  }).catch((err) => {
132
131
  console.log('pc sgm 点击埋点上报异常', err);
133
132
  });
134
133
  }
135
134
 
136
135
  exposureEventLog(opts): Promise<any> {
137
136
  console.log('web.pc.ts - exposureEventLog opts: ', opts);
138
137
  return new Promise((resolve, reject) => {
139
138
  const { spmAll, spmCd, pageId, pageParam, ...otherParam } = opts;
140
139
  const pageParamStr = typeof pageParam === 'object' ? JSON.stringify(pageParam) : pageParam;
141
140
  getReportObjReadyPromise()
142
141
  .then(() => {
143
142
  window.spmExposure({
144
143
  spm: spmAll ? spmAll : `${PcShopSpmA}.${PcShopSpmBforMap[pageId]}.${spmCd}`,
145
144
  biz_type: '',
146
145
  page_id: pageId,
147
146
  event_param: '',
148
147
  json_param: pageParamStr,
149
148
  t1: '',
150
149
  t2: '',
151
150
  p0: '',
152
151
  ...otherParam,
153
152
  });
154
153
  resolve(true);
155
154
  })
156
155
  .catch((e) => {
157
156
  reject(e);
158
157
  });
159
158
  }).catch((err) => {
160
159
  console.log('pc sgm 曝光埋点上报异常', err);
161
160
  });
162
161
  }
163
162
 
164
163
  jdJumpToProduct(skuIds, logEventInfo) {
165
164
  skuIds = skuIds.toString().trim();
166
165
  const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds;
167
166
  let url = `${this.jumpWebUrl.pcDetail}${getSkuId}.html`;
168
167
  this.jdNavigateToNative(url, logEventInfo);
169
168
  }
170
169
 
171
170
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
172
171
  const getSkuId = skuInfo?.skuId;
173
172
  this.jdJumpToProduct(getSkuId, logEventInfo);
174
173
  }
175
174
 
176
175
  jdJumpToShopHome(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
177
176
  const currentShopInfo = {
178
177
  shopId: global.info.queryInfo.shopId,
179
178
  venderId: global.info.queryInfo.venderId,
180
179
  };
181
180
  const restParams =
182
181
  (shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
183
182
  (shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
184
183
  ? {}
185
184
  : currentShopInfo;
186
185
  const getInfo = Object.assign({}, restParams, shopInfo);
187
186
  let url = `${this.jumpWebUrl.pages}/index-${getInfo.shopId}.html`;
188
187
  this.jdNavigateToNative(url, {
189
188
  ...getInfo,
190
189
  });
191
190
  }
192
191
 
193
192
  getPcSearchUrl = (searchInfo: { categoryId: string; keyWord: string }) => {
194
193
  const { categoryId, keyWord } = searchInfo;
195
194
  const flag = document.querySelector('#JSHOP_CHANNEL_FLAG')?.value;
196
195
  const appId =
197
196
  document.querySelector('#J_AppId')?.value ||
198
197
  document.querySelector('#pageInstance_appId')?.value;
199
198
  const searchUrl = categoryId
200
199
  ? this.jumpWebUrl.pages + '/view_search-' + appId + '-' + categoryId + '-99-1-20-1.html'
201
200
  : `${this.jumpWebUrl.pages}/view_search-${appId}.html?keyword=${keyWord}`;
202
201
  return flag === 'yao'
203
202
  ? this.jumpWebUrl.pages + '/view_shop_search-' + appId + '.html'
204
203
  : searchUrl;
205
204
  };
206
205
 
207
206
  jdJumpToShopSearch(shopInfo) {
208
207
  const getInfo = Object.assign(
209
208
  {},
210
209
  {
211
210
  shopId: global.info.queryInfo.shopId,
212
211
  venderId: global.info.queryInfo.venderId,
213
212
  },
214
213
  shopInfo,
215
214
  );
216
215
  const { categoryId = '', keyWord = '' } = getInfo;
217
216
  const url = `${this.getPcSearchUrl({ categoryId, keyWord })}`;
218
217
  this.jdJumpToWeb(url, getInfo);
219
218
  }
220
219
 
221
220
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
222
221
  console.log('web.base.ts - jdJumpToTabAllProduct');
223
222
  if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
224
223
  if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
225
224
  const url = `${this.jumpWebUrl.pages}/index-${shopId}.html`;
226
225
  this.jdJumpToWeb(url, logEventInfo);
227
226
  }
228
227
 
229
228
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
230
229
  const url = `${this.jumpWebUrl.couponSearch}?couponbatch=${couponId}&sceneval=2`;
231
230
  this.jdJumpToWeb(url, logEventInfo);
232
231
  }
232
+ import global from '../common';
233
233
  BUSINESS_TYPE,
234
234
  LogPageIdInfo,
235
235
  LogPnameInfo,
236
236
  PcShopSpmA,
237
237
  PcShopSpmBforMap,
238
238
  shopSpmCDforCode,
239
239
  routerInfo: {
240
240
  params: {},
241
241
  },
242
242
  nativeEvent: null,
243
243
  jumpConfig: {
244
244
  venderId: null,
245
245
  shopId: null,
246
246
  sourceValue: '',
247
247
  sourceType: 'M-H5',
248
248
  activityType: 'shopx',
249
249
  moduleId: 'none',
250
250
  entrance: 'none',
251
251
  },
252
252
  logPageParamStr: '',
253
253
  new Promise((resolve, reject) => {
254
254
  if (window.spmPV) {
255
255
  resolve(true);
256
256
  } else {
257
257
  if (isReportReadyError) {
258
258
  reject(false);
259
259
  } else {
260
260
  ready('spmPV', 3000)
261
261
  .then(() => {
262
262
  isReportReadyError = false;
263
263
  resolve(true);
264
264
  })
265
265
  .catch(() => {
266
266
  isReportReadyError = true;
267
267
  reject(false);
268
268
  });
269
269
  }
270
270
  }
271
271
  });
272
272
  public logPageId: string;
273
273
  public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig;
274
274
  getConfig(opt) {
275
275
  return Object.assign(this, {}, defaultConfig, opt);
276
276
  }
277
277
  updateInfo(routerInfo, logPname = LogPnameInfo.HOME, pageId = LogPageIdInfo.APP) {
278
278
  this.routerInfo = routerInfo;
279
279
  this.logPname = logPname;
280
280
  this.jumpConfig = Object.assign(
281
281
  {},
282
282
  this.jumpConfig,
283
283
  filterUrlQueryData(routerInfo?.params || {}),
284
284
  );
285
285
  this.logPageId = pageId;
286
286
  }
287
287
 
288
288
  jdNavigateToNative(
289
289
  url: string,
290
290
  params: {
291
291
  logEventInfo?: object;
292
292
  } = {},
293
293
  successBack?: Function | undefined,
294
294
  failBack?: Function | undefined,
295
295
  ) {
296
296
  const { logEventInfo } = params;
297
297
  const getEparam = logEventInfo || params;
298
298
  console.log(`url:::::::${url}`);
299
299
  global.info.pageInfo.dataType === BUSINESS_TYPE.ONLINE &&
300
300
  this.clickEventLog(getEparam)
301
301
  .then(() => {
302
302
  typeof successBack === 'function' ? successBack(url) : window.open(url, '_blank');
303
303
  })
304
304
  .catch(() => {
305
305
  typeof failBack === 'function' && failBack(url);
306
306
  });
307
307
  }
308
308
 
309
309
  reportInfoPv(
310
310
  pageId = LogPageIdInfo.APP,
311
311
  opt: {
312
312
  pageParam?: any;
313
313
  } = {},
314
314
  ): Promise<any> {
315
315
  console.log('web.pc.ts - reportInfoPv', pageId, opt);
316
316
  return new Promise((resolve, reject) => {
317
317
  const { pageParam } = opt;
318
318
  const pageParamStr = typeof pageParam === 'object' ? JSON.stringify(pageParam) : pageParam;
319
319
  getReportObjReadyPromise()
320
320
  .then(() => {
321
321
  window.spmPV({
322
322
  spm: `${PcShopSpmA}.${PcShopSpmBforMap[pageId]}`,
323
323
  page_id: pageId,
324
324
  page_param: pageParamStr,
325
325
  });
326
326
  this.logPageId = pageId;
327
327
  this.logPageParamStr = pageParamStr;
328
328
  resolve(true);
329
329
  })
330
330
  .catch((e) => {
331
331
  reject(e);
332
332
  });
333
333
  }).catch((err) => {
334
334
  console.log('pc sgm 浏览pv埋点上报异常', err);
335
335
  });
336
336
  }
337
337
 
338
338
  reportClick(opts,reportKey = 'click'){
339
339
  console.log(`web.pc.ts - ${reportKey}EventLog opts: `, opts);
340
340
  return new Promise((resolve, reject) => {
341
341
  const { spmAll, spmAllCode, spmCodeForCD, spmCd, pageId, pageParam, jsonParam = {}, eventId, target, ...otherParam } = opts;
342
342
  const getSpmAllCode = spmAll || spmAllCode;
343
343
  const getSpmCodeForCD = spmCd || spmCodeForCD;
344
344
  const getPageId = pageId || this.logPageId;
345
345
  const pageParamStr = typeof pageParam === 'object' ? JSON.stringify(pageParam) : pageParam || this.logPageParamStr;
346
346
  const { etModelInfo, logBaseInfo } = jsonParam;
347
347
  let getJsonParam = {};
348
348
  if (etModelInfo && logBaseInfo) {
349
349
  getJsonParam = logBaseInfo;
350
350
  } else {
351
351
  if (Array.isArray(jsonParam)) {
352
352
  getJsonParam = jsonParam;
353
353
  } else {
354
354
  getJsonParam = Object.assign(
355
355
  {},
356
356
  {
357
357
  shopid: global?.info?.queryInfo?.shopId,
358
358
  },
359
359
  jsonParam,
360
360
  );
361
361
  }
362
362
  }
363
363
  if (
364
364
  reportKey === 'exposure' &&
365
365
  /^TerminatorNew/.test(eventId) &&
366
366
  !Array.isArray(getJsonParam)
367
367
  ) {
368
368
  getJsonParam = [getJsonParam];
369
369
  }
370
370
  getReportObjReadyPromise()
371
371
  .then(() => {
372
372
  const getSpmParams = {
373
373
  spm: getSpmAllCode ? getSpmAllCode : `${PcShopSpmA}.${PcShopSpmBforMap[getPageId]}.${getSpmCodeForCD || shopSpmCDforCode[eventId]}`,
374
374
  biz_type: '',
375
375
  page_id: getPageId,
376
376
  page_param: pageParamStr,
377
377
  event_id: eventId,
378
378
  event_param: '',
379
379
  json_param: JSON.stringify(getJsonParam),
380
380
  t1: '',
381
381
  t2: '',
382
382
  p0: '',
383
383
  ...otherParam,
384
384
  }
385
385
  console.log(`pc sgm ${reportKey}埋点最终参数`, getSpmParams);
386
386
  reportKey === 'exposure' ? window.spmExposure(getSpmParams) : window.spmLog(getSpmParams);
387
387
  resolve(true);
388
388
  })
389
389
  .catch((e) => {
390
390
  reject(e);
391
391
  });
392
392
  }).catch((err) => {
393
393
  console.log(`pc sgm ${reportKey === 'exposure' ? '曝光' : '点击'}埋点上报异常`, err);
394
394
  });
395
395
  }
396
396
 
397
397
  clickEventLog(opts): Promise<any> {
398
398
  console.log('web.pc.ts - clickEventLog opts: ', opts);
399
399
  return this.reportClick(opts,"click");
400
400
  }
401
401
 
402
402
  exposureEventLog(opts): Promise<any> {
403
403
  return this.reportClick(opts,"exposure");
404
404
  }
405
405
 
406
406
  jdJumpToProduct(skuIds, logEventInfo) {
407
407
  skuIds = skuIds.toString().trim();
408
408
  const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds;
409
409
  let url = `${this.jumpWebUrl.pcDetail}${getSkuId}.html`;
410
410
  this.jdNavigateToNative(url, logEventInfo);
411
411
  }
412
412
 
413
413
  jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
414
414
  const getSkuId = skuInfo?.skuId;
415
415
  this.jdJumpToProduct(getSkuId, logEventInfo);
416
416
  }
417
417
 
418
418
  jdJumpToShopHome(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
419
419
  const currentShopInfo = {
420
420
  shopId: global.info.queryInfo.shopId,
421
421
  venderId: global.info.queryInfo.venderId,
422
422
  };
423
423
  const restParams =
424
424
  (shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
425
425
  (shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
426
426
  ? {}
427
427
  : currentShopInfo;
428
428
  const getInfo = Object.assign({}, restParams, shopInfo);
429
429
  let url = `${this.jumpWebUrl.pages}/index-${getInfo.shopId}.html`;
430
430
  this.jdNavigateToNative(url, {
431
431
  ...getInfo,
432
432
  });
433
433
  }
434
434
 
435
435
  getPcSearchUrl = (searchInfo: { categoryId: string; keyWord: string }) => {
436
436
  const { categoryId, keyWord } = searchInfo;
437
437
  const flag = document.querySelector('#JSHOP_CHANNEL_FLAG')?.value;
438
438
  const appId =
439
439
  document.querySelector('#J_AppId')?.value ||
440
440
  document.querySelector('#pageInstance_appId')?.value;
441
441
  const keywordStr = keyWord && keyWord !== "" ? `?keyword=${keyWord}` : ''
442
442
  const searchUrl = categoryId
443
443
  ? this.jumpWebUrl.pages + '/view_search-' + appId + '-' + categoryId + '-99-1-20-1.html'
444
444
  : `${this.jumpWebUrl.pages}/view_search-${appId}.html${keywordStr}`;
445
445
  return flag === 'yao'
446
446
  ? this.jumpWebUrl.pages + '/view_shop_search-' + appId + '.html'
447
447
  : searchUrl;
448
448
  };
449
449
 
450
450
  jdJumpToShopSearch(shopInfo) {
451
451
  const getInfo = Object.assign(
452
452
  {},
453
453
  {
454
454
  shopId: global.info.queryInfo.shopId,
455
455
  venderId: global.info.queryInfo.venderId,
456
456
  },
457
457
  shopInfo,
458
458
  );
459
459
  const { categoryId = '', keyWord = '' } = getInfo;
460
460
  const url = `${this.getPcSearchUrl({ categoryId, keyWord })}`;
461
461
  this.jdJumpToWeb(url, getInfo);
462
462
  }
463
463
 
464
464
  jdJumpToShopCategory(shopInfo) {
465
465
  this.jdJumpToShopSearch(shopInfo)
466
466
  }
467
467
 
468
468
  jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
469
469
  console.log('web.base.ts - jdJumpToTabAllProduct');
470
470
  if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
471
471
  if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
472
472
  const url = `${this.jumpWebUrl.pages}/index-${shopId}.html`;
473
473
  this.jdJumpToWeb(url, logEventInfo);
474
474
  }
475
475
 
476
476
  jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
477
477
  const url = `${this.jumpWebUrl.couponSearch}?couponbatch=${couponId}&sceneval=2`;
478
478
  this.jdJumpToWeb(url, logEventInfo);
479
479
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@conecli/cone-render",
3
- "version": "0.10.1-shop3.107",
3
+ "version": "0.10.1-shop3.108",
4
4
  "private": false,
5
5
  "files": [
6
6
  "dist/"
@@ -87,7 +87,6 @@
87
87
  ],
88
88
  "author": "conecli",
89
89
  "dependencies": {
90
- "@babel/runtime": "7.24.4",
91
90
  "@tarojs/components": "4.1.2",
92
91
  "@tarojs/helper": "4.1.2",
93
92
  "@tarojs/plugin-framework-react": "4.1.2",
@@ -119,6 +118,7 @@
119
118
  "@babel/plugin-proposal-class-properties": "7.14.5",
120
119
  "@babel/plugin-transform-strict-mode": "^7.16.7",
121
120
  "@babel/preset-react": "^7.24.1",
121
+ "@babel/runtime": "7.24.4",
122
122
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.7",
123
123
  "@tarojs/cli": "4.1.2",
124
124
  "@tarojs/taro-loader": "4.1.2",
@@ -158,6 +158,7 @@
158
158
  },
159
159
  "resolutions": {
160
160
  "@babel/runtime": "7.24.4",
161
+ "@babel/core": "7.24.4",
161
162
  "@tarojs/cli": "4.1.2",
162
163
  "@tarojs/helper": "4.1.2",
163
164
  "minimatch": "9.0.5",