@conecli/cone-render 0.10.1-shop3.46 → 0.10.1-shop3.48
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/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.weapp.tsx +1 -0
- package/dist/common/jssdk.weapp.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
- package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
- package/dist/interface/component.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/language/en_US.json +136 -83
- package/dist/language/zh_CN.json +135 -82
- package/dist/language/zh_HK.json +135 -82
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
- package/dist/open/api/shopMember.weapp.ts +1 -0
- package/dist/open/index.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -1
- package/dist/service/fetchJsonp.weapp.ts +1 -0
- package/dist/service/http/httpInterceptors.weapp.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/service/requestServer.weapp.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/harmonyCallRouter.h5.ts +1 -0
- package/dist/utils/harmonyCallRouter.ts +0 -0
- package/dist/utils/sColor.weapp.ts +1 -0
- package/package.json +3 -2
- package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
- package/dist/utils/priceUtils.js +0 -1
- /package/dist/utils/{sColor.js → sColor.ts} +0 -0
package/dist/language/zh_HK.json
CHANGED
|
@@ -1,178 +1,231 @@
|
|
|
1
1
|
{
|
|
2
|
+
"cancelChanges": "取消修改",
|
|
2
3
|
"memberUniqueCoupon": "會員專屬券",
|
|
3
|
-
"failFollow": "關注失敗,請稍後重試",
|
|
4
4
|
"memberInstructionDetail": "規則說明",
|
|
5
|
+
"timeToEnd": "距結束",
|
|
5
6
|
"joinMemberFail": "加入品牌會員失敗",
|
|
6
7
|
"failBusy": "活動火爆,請稍後再試",
|
|
7
|
-
"
|
|
8
|
-
"discount": "折",
|
|
9
|
-
"cancelMemberCard": "註銷會員卡",
|
|
10
|
-
"joinGifts": "入會禮包",
|
|
8
|
+
"inviteToMember": "邀您加入品牌會員",
|
|
11
9
|
"paidMemberCoupon": "品牌訂閱尊享券",
|
|
12
|
-
"allLoaded": "已經瀏覽完了,去看看別的",
|
|
13
|
-
"openCardSuccessAndReturn": "加入品牌會員成功,將爲您自動返回",
|
|
14
10
|
"lv0Star": "LV0 會員",
|
|
15
|
-
"shopDetail": "店鋪詳情",
|
|
16
11
|
"viewAllProducts": "查看全部商品",
|
|
17
|
-
"joinMemberSuccess2": "加入品牌會員成功",
|
|
18
12
|
"cancelBtnMsg": "取消",
|
|
19
|
-
"failLoad": "加載出錯,點擊重試",
|
|
20
|
-
"collapsePrivilege": "收起特權",
|
|
21
13
|
"failCode": "驗證碼發送失敗,請稍後重試",
|
|
22
|
-
"cancelMemberConfirmText": "註銷會員",
|
|
23
|
-
"memberFranchise": "特權",
|
|
24
|
-
"memberAddMemberInfo": "入會規則權益",
|
|
25
14
|
"memberSprintNoStandardTip": "您的實際訂單金額未達到挑戰消費門檻",
|
|
26
15
|
"authorize": "授權解鎖",
|
|
27
16
|
"noProductNew": "該店鋪暫未上架發佈商品",
|
|
28
17
|
"goToShop": "進店",
|
|
29
|
-
"
|
|
30
|
-
"
|
|
31
|
-
"allPrivilege": "全部特權",
|
|
32
|
-
"successAddShopList": "加入購物清單成功",
|
|
18
|
+
"bookingNextPart": "預約下期",
|
|
19
|
+
"queryFailedTryAgain": "查詢失敗,請稍後重試",
|
|
33
20
|
"edit": "修改",
|
|
34
21
|
"fansChat": "粉絲羣聊",
|
|
35
|
-
"verifyCodeError": "未填寫正確的驗證碼",
|
|
36
22
|
"belowProductAvailable": "以下商品可用",
|
|
37
|
-
"reachTo": "滿",
|
|
38
|
-
"myPoints": "我的積分",
|
|
39
|
-
"loading": "加載中",
|
|
40
23
|
"failNetwork": "網絡異常,請稍後重試",
|
|
41
|
-
"
|
|
42
|
-
"newReleaseSeason": "當季新品",
|
|
24
|
+
"limitedInStoreAvailable": "限店內部分商品",
|
|
43
25
|
"newRelease": "上新",
|
|
44
26
|
"cancelMemberlFailMsg": "解綁會員失敗,請稍後再試",
|
|
45
|
-
"
|
|
46
|
-
"5Star": "五星會員",
|
|
27
|
+
"reserved": "已預約",
|
|
47
28
|
"memberCardAgreement": "會員授權協議",
|
|
48
29
|
"timeUnitSecond": "秒",
|
|
49
30
|
"pointsExchangeTask": "積分兌換任務",
|
|
50
31
|
"memberGiftReceiveTip": "禮包已發放至賬戶,可在已領權益中查看",
|
|
51
32
|
"memberCoupon": "會員專享券",
|
|
52
|
-
"sendCodeFail": "發送失敗, 請稍後再試",
|
|
53
33
|
"successMsg": "成功",
|
|
54
|
-
"noProduct": "哎呀,店鋪內沒有商品呢~",
|
|
55
|
-
"shopYearDescText": "獲得年度五星榮譽, 評級超過99%的店鋪",
|
|
56
34
|
"newWareCalendar": "上新日曆",
|
|
57
|
-
"
|
|
35
|
+
"insufficientPoints": "積分不足",
|
|
58
36
|
"recommendOrder": "推薦排序",
|
|
37
|
+
"memberOnlyExclusiveCoupon": "會員限量專屬神券",
|
|
59
38
|
"checkNetwork": "請檢查您的網絡設置",
|
|
60
|
-
"rightsDesc": "權益說明",
|
|
61
39
|
"memberBalance": "膨脹金",
|
|
62
|
-
"memberSprintConfirmTip": "確認收貨,纔可領獎哦",
|
|
63
40
|
"cancelMemberCardContent": "注意: 註銷會員卡後包括但不限於以下權益無法繼續享用會員專屬券、會員積分權益、會員專享價",
|
|
64
|
-
"sorryNoProduct": "抱歉,沒有找到商品額~",
|
|
65
|
-
"2Star": "二星會員",
|
|
66
|
-
"joinReceive": "入會領取",
|
|
67
|
-
"filterCriteriaMsg": "篩選條件",
|
|
68
|
-
"memberSearchShop": "查看本店",
|
|
69
|
-
"improveMemberInfo": "授權手機號 完善會員信息",
|
|
70
41
|
"pointsExchange": "積分兌換",
|
|
71
|
-
"memberPointsFranchise": "會員積分權益",
|
|
72
|
-
"loseNetwork": "網絡連接已斷開",
|
|
73
42
|
"memberGiftCongrats": "恭喜獲得入會禮包",
|
|
74
|
-
"simplifiedMode": "已切換爲簡潔模式",
|
|
75
43
|
"ReceiveNow": "立即領取",
|
|
76
44
|
"pleaseInput": "請輸入",
|
|
77
|
-
"resetBtnMsg": "重置",
|
|
78
45
|
"sendSuccess": "發送成功",
|
|
79
46
|
"failReceive": "領取失敗",
|
|
80
47
|
"unFollowMsg": "已取消關注",
|
|
81
48
|
"welcomeToSageShop": "歡迎來到我的店鋪~",
|
|
82
49
|
"highTraffic": "活動太火爆,訪問人數較多",
|
|
83
|
-
"cancelMemberCloseText": "我再想想",
|
|
84
50
|
"newlyFirst": "新品優先",
|
|
85
51
|
"pleaseInputCode": "請輸入驗證碼",
|
|
86
52
|
"verifyCode": "驗證碼",
|
|
87
|
-
"more": "更多",
|
|
88
53
|
"searchBtn": "搜索",
|
|
89
|
-
"deleteAll": "全部刪除",
|
|
90
54
|
"payPrivilege": "尊享特權",
|
|
91
55
|
"birthdayGift": "會員生日禮",
|
|
92
56
|
"starMember": "星會員",
|
|
93
57
|
"hotSearch": "熱搜",
|
|
58
|
+
"tapAndReceive": "一鍵領取",
|
|
94
59
|
"joinGiftsDesc": "新會員專享,禮品有限,以實際使用爲準",
|
|
95
|
-
"chat": "私聊",
|
|
96
|
-
"ReceiveCouponNow": "立即領券",
|
|
97
60
|
"searchHistory": "搜索歷史",
|
|
98
61
|
"validity": "有效期",
|
|
99
|
-
"
|
|
62
|
+
"moreRights": "更多權益",
|
|
100
63
|
"upgradeSubMember": "升級成爲品牌訂閱會員",
|
|
101
|
-
"
|
|
102
|
-
"timeUnitHour": "時",
|
|
64
|
+
"relatedMemberInfo": "關聯會員信息",
|
|
103
65
|
"newReleaseToday": "今日上新",
|
|
104
66
|
"allProductUseable": "全部商品可用",
|
|
105
|
-
"unlimitedAmount": "不限額度",
|
|
106
67
|
"available": "可用",
|
|
107
68
|
"memberCardInstruction": "開卡須知",
|
|
108
|
-
"
|
|
69
|
+
"rules": "規則",
|
|
109
70
|
"fansBenefits": "寵粉福利",
|
|
110
71
|
"timeUnitMinute": "分",
|
|
111
72
|
"memberFilter": "條件",
|
|
112
|
-
"openCardDelayTip": "系統出現延遲,請點擊左上角按鈕返回繼續領取樣品",
|
|
113
73
|
"isCancelMemberContent": "你將錯過超值會員專屬福利",
|
|
114
|
-
"failAddShopList": "加入購物清單失敗,請稍後重試",
|
|
115
74
|
"ensureBtnMsg": "確定",
|
|
116
75
|
"viewReplay": "查看回放",
|
|
117
|
-
"
|
|
118
|
-
"failReceiveGift": "禮包領取失敗",
|
|
119
|
-
"noPriceTip": "暫無報價",
|
|
120
|
-
"officialReduction": "官方立減",
|
|
76
|
+
"receiveAndViewMoreRights": "領取並查看更多權益",
|
|
121
77
|
"successAddCart": "加入購物車成功",
|
|
122
|
-
"updateCardMemberAndEnjoy": "升級開卡會員領好禮",
|
|
123
|
-
"4Star": "四星會員",
|
|
124
78
|
"failSubscribe": "訂閱失敗,請稍後重試",
|
|
125
|
-
"
|
|
79
|
+
"noticeMsg": "請關注消息提醒",
|
|
126
80
|
"pageLoadFailed": "排隊進場中,請稍後再試",
|
|
127
|
-
"
|
|
128
|
-
"successFollow": "關注成功",
|
|
129
|
-
"followers": "粉絲",
|
|
81
|
+
"viewAvailableProducts": "查看可用商品",
|
|
130
82
|
"noShopTip": "暫無店鋪",
|
|
83
|
+
"openCardNow": "立即開卡",
|
|
131
84
|
"failCancel": "取消失敗,請稍後重試",
|
|
132
|
-
"memberRules": "會員規則",
|
|
133
85
|
"joinMemberDesc": "0元入會,享專屬會員權益",
|
|
134
86
|
"successSubscribe": "訂閱成功",
|
|
135
87
|
"memberRule": "會員規則",
|
|
136
88
|
"failMsg": "請稍後再試",
|
|
137
89
|
"pleaseInputMobileNumber": "請輸入手機號",
|
|
138
|
-
"
|
|
139
|
-
"ensureMemberAuthorize": "確認授權",
|
|
90
|
+
"confirmExchangeTextYes": "確定兌換",
|
|
140
91
|
"joinIn": "入會參與",
|
|
141
92
|
"cancelMsg": "取消訂閱成功",
|
|
142
93
|
"reveivedRights": "已領權益",
|
|
143
94
|
"buyers": "人已跟買",
|
|
144
|
-
"
|
|
145
|
-
"payPrivilegeDesc": "品牌付費訂閱說明",
|
|
146
|
-
"globalShopDetail": "店鋪詳情",
|
|
95
|
+
"joinMemberNow": "立即加入會員",
|
|
147
96
|
"successCode": "發送驗證碼成功",
|
|
148
|
-
"reload": "重新加載",
|
|
149
|
-
"3Star": "三星會員",
|
|
150
97
|
"globalShare": "分享",
|
|
151
|
-
"memberUniquePrice": "會員專享價",
|
|
152
98
|
"someProductUseable": "部分商品可用",
|
|
153
99
|
"hasSent": "已發送",
|
|
154
|
-
"joinEnjoyGifts": "入會享好禮",
|
|
155
100
|
"memberAnd": "以及",
|
|
156
101
|
"failAddCart": "加入購物車失敗,請稍後重試",
|
|
157
|
-
"retryLater": "後重試",
|
|
158
102
|
"successJoinIn": "參與成功",
|
|
159
|
-
"
|
|
103
|
+
"goForOtherShopProducts": "去看看其他店鋪商品",
|
|
160
104
|
"globalMessage": "消息",
|
|
161
|
-
"
|
|
105
|
+
"bookingReminder": "預約提醒",
|
|
162
106
|
"emailError": "請輸入正確的郵箱",
|
|
163
107
|
"mobileNumberError": "未填寫正確的手機號",
|
|
164
108
|
"isCancelMemberTitle": "真的要註銷會員嗎?",
|
|
165
|
-
"globalHome": "首頁",
|
|
166
109
|
"brandActivity": "品牌活動",
|
|
110
|
+
"shopPopularity": "店鋪人氣",
|
|
111
|
+
"joinMemberSuccess": "入會成功",
|
|
112
|
+
"immediatelyExchange": "立即兌換",
|
|
113
|
+
"drawNow": "立即抽獎",
|
|
114
|
+
"pleaseSelect": "請選擇",
|
|
115
|
+
"1Star": "一星會員",
|
|
116
|
+
"hasUsed": "已使用",
|
|
117
|
+
"hasExchanged": "已兌換",
|
|
118
|
+
"fansMember": "店鋪會員",
|
|
119
|
+
"confirmExchangeTextNo": "暫不兌換",
|
|
120
|
+
"failFollow": "關注失敗,請稍後重試",
|
|
121
|
+
"mobileNumber": "手機號",
|
|
122
|
+
"discount": "折",
|
|
123
|
+
"cancelMemberCard": "註銷會員卡",
|
|
124
|
+
"joinGifts": "入會禮包",
|
|
125
|
+
"noGiftTryAgain": "暫未查詢到禮包,請稍後再試",
|
|
126
|
+
"allLoaded": "已經瀏覽完了,去看看別的",
|
|
127
|
+
"openCardSuccessAndReturn": "加入品牌會員成功,將爲您自動返回",
|
|
128
|
+
"shopDetail": "店鋪詳情",
|
|
129
|
+
"joinMemberSuccess2": "加入品牌會員成功",
|
|
130
|
+
"failLoad": "加載出錯,點擊重試",
|
|
131
|
+
"collapsePrivilege": "收起特權",
|
|
132
|
+
"cancelMemberConfirmText": "註銷會員",
|
|
133
|
+
"memberFranchise": "特權",
|
|
134
|
+
"memberAddMemberInfo": "入會規則權益",
|
|
135
|
+
"levelGifts": "等級禮包",
|
|
136
|
+
"contentUnavailable": "你訪問的內容飛到太空了",
|
|
137
|
+
"successReceive": "領取成功",
|
|
138
|
+
"allPrivilege": "全部特權",
|
|
139
|
+
"successAddShopList": "加入購物清單成功",
|
|
140
|
+
"verifyCodeError": "未填寫正確的驗證碼",
|
|
141
|
+
"reachTo": "滿",
|
|
142
|
+
"myPoints": "我的積分",
|
|
143
|
+
"loading": "加載中",
|
|
144
|
+
"soldOut": "已搶光",
|
|
145
|
+
"sgBonus": "首購禮金",
|
|
146
|
+
"newReleaseSeason": "當季新品",
|
|
147
|
+
"confirmExchange": "確認要兌換嗎?",
|
|
148
|
+
"openCardNowAndReceive": "立即開卡並領取",
|
|
149
|
+
"timeUnitDay": "天",
|
|
150
|
+
"5Star": "五星會員",
|
|
151
|
+
"greatRedPacket": "超值紅包",
|
|
152
|
+
"sendCodeFail": "發送失敗, 請稍後再試",
|
|
153
|
+
"noProduct": "哎呀,店鋪內沒有商品呢~",
|
|
154
|
+
"shopYearDescText": "獲得年度五星榮譽, 評級超過99%的店鋪",
|
|
155
|
+
"joinYouToMember": "授權加入店鋪會員",
|
|
156
|
+
"activateNow": "立即開通",
|
|
157
|
+
"goForMemberPriced": "去看看會員價商品",
|
|
158
|
+
"rightsDesc": "權益說明",
|
|
159
|
+
"memberSprintConfirmTip": "確認收貨,纔可領獎哦",
|
|
160
|
+
"sorryNoProduct": "抱歉,沒有找到商品額~",
|
|
161
|
+
"2Star": "二星會員",
|
|
162
|
+
"joinReceive": "入會領取",
|
|
163
|
+
"filterCriteriaMsg": "篩選條件",
|
|
164
|
+
"memberSearchShop": "查看本店",
|
|
165
|
+
"improveMemberInfo": "授權手機號 完善會員信息",
|
|
166
|
+
"memberPointsFranchise": "會員積分權益",
|
|
167
|
+
"loseNetwork": "網絡連接已斷開",
|
|
168
|
+
"simplifiedMode": "已切換爲簡潔模式",
|
|
169
|
+
"resetBtnMsg": "重置",
|
|
170
|
+
"cancelMemberCloseText": "我再想想",
|
|
171
|
+
"coupon": "優惠券",
|
|
172
|
+
"more": "更多",
|
|
173
|
+
"memberPrizeLimit": "限量福利 先到先得 以實際領取爲準",
|
|
174
|
+
"deleteAll": "全部刪除",
|
|
175
|
+
"followShop": "關注店鋪",
|
|
176
|
+
"timeToStart": "距開始",
|
|
177
|
+
"congratulationsOnLevelGifts": "恭喜獲得專屬等級禮包",
|
|
178
|
+
"chat": "私聊",
|
|
179
|
+
"notYetAndDisappearThreeSeconds": "沒抽中呢~活動將在3秒後消失~",
|
|
180
|
+
"ReceiveCouponNow": "立即領券",
|
|
181
|
+
"complete": "完成",
|
|
182
|
+
"fullMode": "已切換爲完整模式",
|
|
183
|
+
"exchangeSuccess": "兌換成功",
|
|
184
|
+
"timeUnitHour": "時",
|
|
185
|
+
"effectiveTime": "有效時間",
|
|
186
|
+
"getQualification": "領取資格",
|
|
187
|
+
"unlimitedAmount": "不限額度",
|
|
188
|
+
"mobileNumberErrorInput": "請輸入正確的手機號",
|
|
189
|
+
"points": "積分",
|
|
190
|
+
"openCardDelayTip": "系統出現延遲,請點擊左上角按鈕返回繼續領取樣品",
|
|
191
|
+
"failAddShopList": "加入購物清單失敗,請稍後重試",
|
|
192
|
+
"reserveNow": "立即預約",
|
|
193
|
+
"failReceiveGift": "禮包領取失敗",
|
|
194
|
+
"noPriceTip": "暫無報價",
|
|
195
|
+
"officialReduction": "官方立減",
|
|
196
|
+
"updateCardMemberAndEnjoy": "升級開卡會員領好禮",
|
|
197
|
+
"4Star": "四星會員",
|
|
198
|
+
"allStoreAvailable": "全店通用",
|
|
199
|
+
"manyPeoleFollow": "人關注",
|
|
200
|
+
"viewAll": "查看全部",
|
|
201
|
+
"successFollow": "關注成功",
|
|
202
|
+
"expand": "展開",
|
|
203
|
+
"followers": "粉絲",
|
|
204
|
+
"memberRules": "會員規則",
|
|
205
|
+
"loadDataFailed": "數據加載失敗",
|
|
206
|
+
"ensureMemberAuthorize": "確認授權",
|
|
207
|
+
"sendCode": "獲取驗證碼",
|
|
208
|
+
"payPrivilegeDesc": "品牌付費訂閱說明",
|
|
209
|
+
"globalShopDetail": "店鋪詳情",
|
|
210
|
+
"reload": "重新加載",
|
|
211
|
+
"3Star": "三星會員",
|
|
212
|
+
"memberUniquePrice": "會員專享價",
|
|
213
|
+
"joinEnjoyGifts": "入會享好禮",
|
|
214
|
+
"retryLater": "後重試",
|
|
215
|
+
"joinMember": "確認授權並加入店鋪會員",
|
|
216
|
+
"lookForwardTo": "敬請期待",
|
|
217
|
+
"useNow": "立即使用",
|
|
218
|
+
"globalHome": "首頁",
|
|
167
219
|
"joinMemberRightNow": "立即加入品牌會員",
|
|
168
220
|
"follow": "關注",
|
|
169
221
|
"followed": "已關注",
|
|
170
|
-
"shopPopularity": "店鋪人氣",
|
|
171
|
-
"joinMemberSuccess": "入會成功",
|
|
172
222
|
"mobileNumberErrorFill": "未填寫正確的手機號",
|
|
223
|
+
"freeMemberRights": "免費會員可享權益",
|
|
173
224
|
"joinNow": "入會立享",
|
|
225
|
+
"exchangeFailedAndTryLater": "兌換失敗,請稍後重試",
|
|
174
226
|
"watchNow": "立即觀看",
|
|
175
|
-
"
|
|
176
|
-
"
|
|
227
|
+
"superMemberDay": "超級會員日",
|
|
228
|
+
"nextEpisodePreview": "下期預告",
|
|
229
|
+
"collapse": "收起",
|
|
177
230
|
"pleaseTryAgainLater": "請稍後重試"
|
|
178
231
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 2025-
|
|
2
|
-
var Taro=require("@tarojs/taro");!function(c){var l={};"weapp"===process.env.TARO_ENV&&(l={1266:["direct","t_1000578832_xcx_1266_tpcabprk","xcx","-"],1265:["direct","t_1000578832_xcx_1265_tpxqy","xcx","-"],1287:["direct","t_1000072663_xcx_1287_djtp","xcx","-"],1309:["direct","t_1000072663_xcx_1309_wzxyxcps","xcx","-"],1306:["direct","t_1000072663_xcx_1306_djguxj","xcx","-"],1305:["direct","t_1000072663_xcx_1305_bojsy","xcx","-"],1281:["direct","t_1000578826_xcx_1281_xlwd","xcx","-"],1280:["direct","t_1000578826_xcx_1280_xlwd","xcx","-"],1301:["direct","t_1000578826_xcx_1301_fxrk","xcx","-"],1300:["direct","t_1000578826_xcx_1300_fxrk","xcx","-"],1298:["direct","t_1000578826_xcx_1298_xlwd","xcx","-"],1299:["direct","t_1000578826_xcx_1299_xlwd","xcx","-"],1304:["direct","t_1000578828_xcx_1304_sjfyp","xcx","-"],1286:["direct","t_1000578828_xcx_1286_mwscheme","xcx","-"],1256:["direct","t_1000578828_xcx_1256_pcmb","xcx","-"],1308:["direct","t_1000578828_xcx_1308_pcmb","xcx","-"],1302:["direct","t_1000578828_xcx_1302_pcmb","xcx","-"],1257:["direct","t_1000578828_xcx_1257_pcmb","xcx","-"],1223:["direct","t_1000578828_xcx_1223_azwidget","xcx","-"],1003:["direct","t_1000578828_xcx_1003_xblb","xcx","-"],1e5:["direct","t_1000072676_xcx_100000_sq","xcx","-"],100001:["direct","t_1000072676_xcx_100001_sq","xcx","-"],100003:["direct","t_1000072676_xcx_100003_sq","xcx","-"],100002:["direct","t_1000072676_xcx_100002_sq","xcx","-"],1123:["direct","t_1000578832_xcx_1123_qwqt","xcx","-"],1207:["direct","t_1000578832_xcx_1207_qwwzl","xcx","-"],1202:["direct","t_1000578832_xcx_1202_qwhh","xcx","-"],1296:["direct","t_1000578829_xcx_1296_ffdjqp","xcx","-"],1158:["direct","t_1000578832_xcx_1158_qgjdkxcx","xcx","-"],1157:["direct","t_1000578832_xcx_1157_fqhhhk","xcx","-"],1152:["direct","t_1000072663_xcx_1152_dyhspdkxcx","xcx","-"],1121:["direct","t_1000578832_xcx_1121_qywxltjhk","xcx","-"],1120:["direct","t_1000578828_xcx_1120_qywxgrzl","xcx","-"],1119:["direct","t_1000578828_xcx_1119_qywxgzt","xcx","-"],1100:["direct","t_1000578828_xcx_1100_hbfmxqy","xcx","-"],1168:["direct","t_1000578828_xcx_1168_qqllq","xcx","-"],1155:["direct","t_1000578832_xcx_1155_pyqdytz","xcx","-"],1154:["direct","t_1000578832_xcx_1154_pyqdy","xcx","-"],1135:["direct","t_1000578829_xcx_1135_zcxtz","xcx","-"],1129:["direct","t_1000578829_xcx_1129_pc","xcx","-"],1253:["direct","t_1000578833_xcx_1253_swjgy","xcx","-"],1124:["direct","t_1000578833_xcx_1124_smywym","xcx","-"],1124:["direct","t_1000578833_xcx_1124_smywym","xcx","-"],1167:["direct","t_1000578828_xcx_1167_bqtz","xcx","-"],1121:["direct","t_1000072660_xcx_1121_fxrk","xcx","-"],1133:["direct","t_1000578828_xcx_1133_yjsb","xcx","-"],1133:["direct","t_1000578828_xcx_1133_yjsb","xcx","-"],1114:["direct","t_1000578828_xcx_1114_azcbl","xcx","-"],1113:["direct","t_1000578828_xcx_1113_azfyp","xcx","-"],1107:["direct","t_1000578828_xcx_1107_dyxx","xcx","-"],1106:["direct","t_1000578828_xcx_1106_xlss","xcx","-"],1088:["direct","t_1000578828_xcx_1088_hhxx","xcx","-"],1010:["direct","t_1000578828_xcx_1010_scj","xcx","-"],1104:["direct","t_1000578829_xcx_1104_xlwd","xcx","-"],1103:["direct","t_1000578829_xcx_1103_fxwd","xcx","-"],1099:["direct","t_1000578829_xcx_1099_cj","xcx","-"],1102:["direct","t_1000072663_xcx_1102_fwyl","xcx","-"],1069:["direct","t_1000578829_xcx_1069_ydyy","xcx","-"],1077:["direct","t_1000578829_xcx_1077_yzb","xcx","-"],1079:["direct","t_1000578829_xcx_1079_yxzx","xcx","-"],1081:["direct","t_1000578829_xcx_1081_kfwzl","xcx","-"],1082:["direct","t_1000072663_xcx_1082_hhwzl","xcx","-"],1091:["direct","t_1000072663_xcx_1091_wzspkp","xcx","-"],1096:["direct","t_1000578828_xcx_1096_ltjl","xcx","-"],1097:["direct","t_1000578829_xcx_1097_zfqy","xcx","-"],1e3:["direct","t_1000578828_xcx_1000_wxtd","xcx","-"],1055:["direct","t_1000578829_xcx_1055_h5hq","xcx","-"],1092:["direct","t_1000578829_xcx_1092_csfwrk","xcx","-"],1090:["direct","t_1000578828_xcx_1090_xcxcd","xcx","-"],1089:["direct","t_1000578828_xcx_1089_ltkxl","xcx","-"],1078:["direct","t_1000578829_xcx_1078_wifilj","xcx","-"],1074:["direct","t_1000072663_xcx_1074_gzhxx","xcx","-"],1073:["direct","t_1000578829_xcx_1073_kfxx","xcx","-"],1072:["direct","t_1000578833_xcx_1072_ewmsk","xcx","-"],1071:["direct","t_1000578830_xcx_1071_yxklby","xcx","-"],1064:["direct","t_1000578829_xcx_1064_wifilj","xcx","-"],1059:["direct","t_1000578829_xcx_1059_yqy","xcx","-"],1058:["direct","t_1000072663_xcx_1058_gzhwz","xcx","-"],1057:["direct","t_1000578830_xcx_1057_yxkxqy","xcx","-"],1056:["direct","t_1000578829_xcx_1056_ylbf","xcx","-"],1054:["direct","t_1000578828_xcx_1054_dbss","xcx","-"],1053:["direct","t_1000578826_xcx_1053_sys","xcx","-"],1052:["direct","t_1000578836_xcx_1052_kqmdlb","xcx","-"],1049:["direct","t_1000578833_xcx_1049_xcsm","xcx","-"],1048:["direct","t_1000578833_xcx_1048_tpsm","xcx","-"],1047:["direct","t_1000578833_xcx_1047_smxcxm","xcx","-"],1044:["direct","t_1000578832_xcx_1044_fxxxkp","xcx","-"],1043:["direct","t_1000072662_xcx_1043_gzhxx","xcx","-"],1042:["direct","t_1000578826_xcx_1042_tjss","xcx","-"],1039:["direct","t_1000578829_xcx_1039_yds","xcx","-"],1038:["direct","t_1000578834_xcx_1038_xcxtz","xcx","-"],1037:["direct","t_1000578834_xcx_1037_xcxtz","xcx","-"],1036:["direct","t_335139774_xcx_1036_appfxxx","xcx","-"],1035:["direct","t_1000072662_xcx_1035_cdl","xcx","-"],1034:["direct","t_1000578827_xcx_1034_zfwcxx","xcx","-"],1032:["direct","t_1000578833_xcx_1032_xcsm","xcx","-"],1031:["direct","t_1000578833_xcx_1031_tpsm","xcx","-"],1030:["direct","t_1000578829_xcx_1030_zdhcs","xcx","-"],1029:["direct","t_1000578836_xcx_1029_kqxq","xcx","-"],1028:["direct","t_1000578836_xcx_1028_kqkb","xcx","-"],1027:["direct","t_1000578826_xcx_1027_dbss","xcx","-"],1026:["direct","t_1000578829_xcx_1026_fjxcx","xcx","-"],1025:["direct","t_1000578833_xcx_1025_smywm","xcx","-"],1024:["direct","t_1000578828_xcx_1024_xcxjs","xcx","-"],1023:["direct","t_1000578828_xcx_1023_zmtb","xcx","-"],1022:["direct","t_1000578828_xcx_1022_zdrk","xcx","-"],1020:["direct","t_1000072662_xcx_1020_gzhjs","xcx","-"],1019:["direct","t_1000578830_xcx_1019_qb","xcx","-"],1017:["direct","t_1000578829_xcx_1017_tyb","xcx","-"],1014:["direct","t_1000578827_xcx_1014_xcxmbxx","xcx","-"],1013:["direct","t_1000578833_xcx_1013_xcsm","xcx","-"],1012:["direct","t_1000578833_xcx_1012_tpsm","xcx","-"],1011:["direct","t_1000578833_xcx_1011_smewm","xcx","-"],1008:["direct","t_1000578832_xcx_1008_qlxxkp","xcx","-"],1007:["direct","t_1000578832_xcx_1007_drxxkp","xcx","-"],1006:["direct","t_1000578826_xcx_1006_fxss","xcx","-"],1005:["direct","t_1000578826_xcx_1005_fxss","xcx","-"],1307:["direct","t_1000578828_xcx_1307_fxrk","xcx","-"],1303:["direct","t_1000578828_xcx_1303_fxrk","xcx","-"],1285:["direct","t_1000578828_xcx_1285_fxrk","xcx","-"],1282:["direct","t_1000578828_xcx_1282_fxrk","xcx","-"],1279:["direct","t_1000578828_xcx_1279_fxrk","xcx","-"],1278:["direct","t_1000578828_xcx_1278_fxrk","xcx","-"],1273:["direct","t_1000578828_xcx_1273_fxrk","xcx","-"],1245:["direct","t_1000578828_xcx_1245_fxrk","xcx","-"],1242:["direct","t_1000578828_xcx_1242_fxrk","xcx","-"],1001:["direct","t_1000578828_xcx_1001_fxrk","xcx","-"]});var N=function(t){var e="";try{e=c.getStorageSync(t)}catch(t){}return e},B=function(t,e){try{c.setStorageSync(t,e)}catch(t){}},x=c.request,t=c.getSystemInfo,e=c.getDeviceInfo,n=c.onAppHide,r=c.getNetworkType,i="";"weapp"===process.env.TARO_ENV?i="wx-app":"swan"===process.env.TARO_ENV?i="baidu-app":"tt"===process.env.TARO_ENV?i="toutiao-app":"alipay"===process.env.TARO_ENV?i="alipay-app":"rn"===process.env.TARO_ENV?i="rn-app":"h5"===process.env.TARO_ENV&&(i="h5-app");var V={jsVer:"TR2.1.6",jdaKey:"__jda",jddKey:"__jdd",jdvKey:"__jdv",jdvSceneKey:"__scene_jdv",rdJdvKey:"cookies",debugKey:"__debugId__",sysExtKey:"__sysExtKey__",customerInfoKey:"union_customerinfo",jdvTimeMS:864e5,customerInfoTime:86400,sessionTime:1800,referKey:"__refer",md5Salt:"5YT%aC89$22OI@pQ",batchKey:"zwx-stream-storage",reportStrategy:"zwx-report-strategy",sendByBatch:!1,own:{__jda:1,__jdd:1,__jdv:1,__refer:1,appid:1,jdwcx:1,jdzdm:1,union_customerinfo:1},addr:function(t){var e="https://neptune.jd.com/log/m";try{var c=getApp({allowDefault:!0});c&&c.globalRequestUrl&&(e=c.globalRequestUrl.replace(/\/*$/,"/neptune/log/m"))}catch(t){}return t?"https://luna.jd.com/debuglog/xapp":e}},_=0;function W(t){t=t||"tr-"+_++,this.name=t,this.logCache=[],this.env=[],this.ext={},this.isReady=W.isWxDataReady,W.loggerList&&W.loggerList instanceof Array&&W.loggerList.push(this),W.isInitJda||(W.initJda(),W.isInitJda=!0)}W.loggerList=[],W.dependList={sysinfo:0,netType:0},W.isWxDataReady=!1,W.instance=!1,W.getInstance=function(){return W.instance||(W.instance=new W)},W.getMulInstance=function(t){return new W(t)},W.dataReady=function(t){if(!W.isWxDataReady){for(var e in W.dependList[t]=1,W.dependList)if(!W.dependList[e])return;W.isWxDataReady=!0;e=0;for(var c=W.loggerList.length;e<c;e++)W.loggerList[e].ready();delete W.loggerList}},(W.pr=W.prototype).ready=function(){this.isReady=!0;for(var t=this.logCache.length,e=0;e<t;e++)this.sendData.apply(this,this.logCache[e])},W.pr.sendData=function(t,e,c){var r;(r="pv"==e?this.initPvData(c,e):"cl"==e?this.initClickData(c,e):"cd"==e?this.initShoppingData(c):"od"==e?this.initOrderData(c):"sr"==e?this.initPageUnloadData(c):"ep"==e?this.initExposureData(c):c).tpc=t,r.report_ts=H()/1e3,r.token=W.md5(r.report_ts+V.md5Salt),r.data[0].typ=e,r.data[0].debugId=this.env[gt]||"",this.logByPost(r,r.data[0])},W.pr.send=function(t,e,c){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},W.pr.request=function(t,e){var c=!!this.env[gt],r="https://neptune.jd.com/log/m/v3?std="+t.std;x({url:e?r:V.addr(c)+"?std="+t.std,data:t,method:"POST",header:{"content-type":"application/json"},success:function(t){}})},W.pr.exports=function(){var n=this;return{set:function(t){n.setData(t)},setCommon:function(t){n.setData(t,!0)},pv:function(t){n.lastPvTime&&H()-n.lastPvTime<100||(n.lastPvTime=H(),n.setData(t),n.setupPageview(!0),n.send("wx_app.000000","pv",t))},click:function(t){n.send("wx_app.000001","cl",t)},exposure:function(t){n.send("wx_app.000005","ep",t)},autoClick:function(t){var e,c=t.target.dataset,r=t.currentTarget.dataset;if(c&&c.eid?e=c:r&&r.eid&&(e=r),e){var x={eid:e.eid,elevel:e.elevel,eparam:e.eparam,pname:e.pname,pparam:e.pparam,target:e.target,event:t};n.send("wx_app.000001","cl",x)}},addToCart:function(t){n.send("wx_app.000002","cd",t)},order:function(t){n.send("wx_app.000003","od",t)},pageUnload:function(t){n.send("wx_app.000004","sr",t)},getSeries:function(){return n.env[b]||(n.setupPageview(),n.env[b]=!0),JSON.stringify(n.getSeriesData())},urlAddSeries:function(t){var e=(t||"").indexOf("#"),c="wxappSeries="+encodeURIComponent(this.getSeries());return-1<e?e===t.length-1?t+c:t+"&"+c:t+"#"+c},setMParam:function(t){return n.setMParam(t)},getJda:function(){return N(V.jdaKey)},getJdv:function(){return N(V.jdvKey)},getStorage:function(t){return N(t)},setStorage:function(t,e){return B(t,e)},setJdv:function(t){return t&&5===t.split("|").length&&B(V.jdvKey,t+"|"+H())}}};var a=2e3,s=1e3,d=1e3,o=100,p=10,u=null,h={num:"numberOut",time:"timeOut",pageHide:"pageHide"};function v(t){t&&$(t)&&(V.sendByBatch=t.h5_size&&1!=t.h5_size||t.h5_time&&1!=t.h5_time,p=t.h5_size?+t.h5_size:p,d=t.h5_time?1e3*t.h5_time:d)}function f(t,e){var c;for(c in t)Object.prototype.hasOwnProperty.call(t,c)&&e(t[c],c)}function m(t,c){f(t,function(t,e){c[e]=t})}function g(c){var r,t,x,e={};for(m(c[0],e),r=0;r<c.length;++r)for(x=[],f(e,function(t,e){t!==c[r][e]&&x.push(e)}),t=0;t<x.length;++t)delete e[x[t]];return f(e,function(t,e){for(r=0;r<c.length;++r)delete c[r][e]}),e.data=c,e}function y(){var t=N(V.batchKey);if(t){var e,c=t.data;for(delete t.data,e=0;e<c.length;++e)m(t,c[e]);return c}return[]}W.pr.batchSend=function(t,e){try{if(t.length){B(V.batchKey,null);var c=g(t);c.batch_report_type=e,c.report_ts=H()/1e3,c.token=W.md5(c.report_ts+V.md5Salt),this.request(c,!0)}}catch(t){}},W.pr.logByPost=function(t,e){var c=this;if(!!!this.env[gt]&&V.sendByBatch)try{if(!u){!function t(e,c){var r=a+(s*Math.random()<<0),x=d+(o*Math.random()<<0);u=setTimeout(function(){try{c.batchSend(y(),h.time),t(!1,c)}catch(t){}},e?r:x)}(!0,c),n(function(){!function(t){try{clearTimeout(u),u=null,c.batchSend(y(),t)}catch(t){}}(h.pageHide)})}var r={};delete t.report_ts,delete t.token,delete t.data,m(t,r),m(e,r);var x=y().concat(r);x.length>=p?this.batchSend(x,h.num):B(V.batchKey,g(x))}catch(t){}else this.request(t)},function(t){var n=0;function e(t){return r(c(x(t)))}function c(t){return _(a(i(t),8*t.length))}function r(t){for(var e,c=n?"0123456789ABCDEF":"0123456789abcdef",r="",x=0;x<t.length;x++)e=t.charCodeAt(x),r+=c.charAt(e>>>4&15)+c.charAt(15&e);return r}function x(t){for(var e,c,r="",x=-1;++x<t.length;)e=t.charCodeAt(x),c=x+1<t.length?t.charCodeAt(x+1):0,55296<=e&&e<=56319&&56320<=c&&c<=57343&&(e=65536+((1023&e)<<10)+(1023&c),x++),e<=127?r+=String.fromCharCode(e):e<=2047?r+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?r+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(r+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return r}function i(t){var e,c=Array(t.length>>2);for(e=0;e<c.length;e++)c[e]=0;for(e=0;e<8*t.length;e+=8)c[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return c}function _(t){for(var e="",c=0;c<32*t.length;c+=8)e+=String.fromCharCode(t[c>>5]>>>c%32&255);return e}function a(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var c=1732584193,r=-271733879,x=-1732584194,n=271733878,i=0;i<t.length;i+=16){var _=c,a=r,s=x,d=n;r=h(r=h(r=h(r=h(r=u(r=u(r=u(r=u(r=p(r=p(r=p(r=p(r=o(r=o(r=o(r=o(r,x=o(x,n=o(n,c=o(c,r,x,n,t[i+0],7,-680876936),r,x,t[i+1],12,-389564586),c,r,t[i+2],17,606105819),n,c,t[i+3],22,-1044525330),x=o(x,n=o(n,c=o(c,r,x,n,t[i+4],7,-176418897),r,x,t[i+5],12,1200080426),c,r,t[i+6],17,-1473231341),n,c,t[i+7],22,-45705983),x=o(x,n=o(n,c=o(c,r,x,n,t[i+8],7,1770035416),r,x,t[i+9],12,-1958414417),c,r,t[i+10],17,-42063),n,c,t[i+11],22,-1990404162),x=o(x,n=o(n,c=o(c,r,x,n,t[i+12],7,1804603682),r,x,t[i+13],12,-40341101),c,r,t[i+14],17,-1502002290),n,c,t[i+15],22,1236535329),x=p(x,n=p(n,c=p(c,r,x,n,t[i+1],5,-165796510),r,x,t[i+6],9,-1069501632),c,r,t[i+11],14,643717713),n,c,t[i+0],20,-373897302),x=p(x,n=p(n,c=p(c,r,x,n,t[i+5],5,-701558691),r,x,t[i+10],9,38016083),c,r,t[i+15],14,-660478335),n,c,t[i+4],20,-405537848),x=p(x,n=p(n,c=p(c,r,x,n,t[i+9],5,568446438),r,x,t[i+14],9,-1019803690),c,r,t[i+3],14,-187363961),n,c,t[i+8],20,1163531501),x=p(x,n=p(n,c=p(c,r,x,n,t[i+13],5,-1444681467),r,x,t[i+2],9,-51403784),c,r,t[i+7],14,1735328473),n,c,t[i+12],20,-1926607734),x=u(x,n=u(n,c=u(c,r,x,n,t[i+5],4,-378558),r,x,t[i+8],11,-2022574463),c,r,t[i+11],16,1839030562),n,c,t[i+14],23,-35309556),x=u(x,n=u(n,c=u(c,r,x,n,t[i+1],4,-1530992060),r,x,t[i+4],11,1272893353),c,r,t[i+7],16,-155497632),n,c,t[i+10],23,-1094730640),x=u(x,n=u(n,c=u(c,r,x,n,t[i+13],4,681279174),r,x,t[i+0],11,-358537222),c,r,t[i+3],16,-722521979),n,c,t[i+6],23,76029189),x=u(x,n=u(n,c=u(c,r,x,n,t[i+9],4,-640364487),r,x,t[i+12],11,-421815835),c,r,t[i+15],16,530742520),n,c,t[i+2],23,-995338651),x=h(x,n=h(n,c=h(c,r,x,n,t[i+0],6,-198630844),r,x,t[i+7],10,1126891415),c,r,t[i+14],15,-1416354905),n,c,t[i+5],21,-57434055),x=h(x,n=h(n,c=h(c,r,x,n,t[i+12],6,1700485571),r,x,t[i+3],10,-1894986606),c,r,t[i+10],15,-1051523),n,c,t[i+1],21,-2054922799),x=h(x,n=h(n,c=h(c,r,x,n,t[i+8],6,1873313359),r,x,t[i+15],10,-30611744),c,r,t[i+6],15,-1560198380),n,c,t[i+13],21,1309151649),x=h(x,n=h(n,c=h(c,r,x,n,t[i+4],6,-145523070),r,x,t[i+11],10,-1120210379),c,r,t[i+2],15,718787259),n,c,t[i+9],21,-343485551),c=l(c,_),r=l(r,a),x=l(x,s),n=l(n,d)}return Array(c,r,x,n)}function s(t,e,c,r,x,n){return l((i=l(l(e,t),l(r,n)))<<(_=x)|i>>>32-_,c);var i,_}function o(t,e,c,r,x,n,i){return s(e&c|~e&r,t,e,x,n,i)}function p(t,e,c,r,x,n,i){return s(e&r|c&~r,t,e,x,n,i)}function u(t,e,c,r,x,n,i){return s(e^c^r,t,e,x,n,i)}function h(t,e,c,r,x,n,i){return s(c^(e|~r),t,e,x,n,i)}function l(t,e){var c=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(c>>16)<<16|65535&c}W.md5=e}();var H=function(){return(new Date).getTime()},X=function(){return H()+""+parseInt(2147483647*Math.random())},$=function(t){return"[object Object]"=={}.toString.call(t)},w=function(t,e){if($(t)&&$(e))for(var c in e)t[c]=e[c]},F=function(t){var e=[];if($(t))for(var c in t)"m_param"!==c&&e.push(c+"="+t[c]);return e.join("&")},Y=function(t){if($(t))for(var e in t)return!1;return!0},j=0,k=j++,G=j++,Q=j++,Z=j++,tt=j++,et=j++,ct=j++,rt=j++,xt=j++,nt=j++,b=j++,it=j++,D=j++,S=j++,P=j++,_t=j++,at=j++,st=j++,dt=j++,q=j++,K=j++,C=j++,ot=j++,pt=j++,ut=j++,I=j++,z=j++,R=j++,ht=j++,lt=j++,vt=j++,T=j++,A=j++,E=j++,ft=j++,mt=j++,gt=j++,O=j++,U=j++,J=j++,L=j++;W.pr.getData=function(t){for(var e={},c=0,r=t.length;c<r;c++){var x=t[c];e[x[0]]=this.env[x[1]]||""}return e};var M,yt,wt=null,jt=function(t,e,c,r){var x=(t||"").split("|"),n="",i="",_="",a="",s=!0;6<=x.length&&e-x[5]<=V.jdvTimeMS&&(n=x[1],i=x[2],_=x[3],a=x[4],s=!1);var d=Y(c[_t])?c[dt]:c[_t],o=[];if(r&&wt&&l[wt]){var p=l[wt];o[0]=p[0],o[1]=encodeURIComponent(p[1]),o[2]=encodeURIComponent(p[2])||"none",o[3]=encodeURIComponent(p[3])||"-",wt=null}d&&d.utm_source&&(o[0]=encodeURIComponent(d.utm_source),o[1]=encodeURIComponent(d.utm_campaign||"")||i,o[2]=encodeURIComponent(d.utm_medium||"")||_,o[3]=encodeURIComponent(d.utm_term||"")||a,a=o[3],s=!0);var u=r;r||(0<o.length&&"direct"!=o[0]?u=(o[0]!==n||o[1]!==i||o[2]!==_)&&"referral"!==o[2]:0<o.length&&"direct"==o[0]&&("direct"===n||!n)&&(u=o[1]!==i||o[2]!==_||o[3]!==a));var h="";return u&&(n=o[0]||n,i=o[1]||i,_=o[2]||_,a=o[3]||a),(s||u)&&(h=[1,n||"direct",i||"-",_||"none",a||"-",e].join("|")),r||(c[nt]=c[nt]||u),h};W.pr.getPname=function(t){return(t=t||{}).pname||this.env[K]||this.env[S]||this.env[at]||""},W.pr.getPparam=function(t){return(t=t||{}).pparam||this.env[C]||this.env[P]||this.env[st]||""},W.pr.getUrl=function(){return this.env[S]||this.env[at]||""},W.pr.getUrlParam=function(){return this.env[P]||this.env[st]||""},W.pr.setupPageview=function(t){var e,c,r,x=this.env,n=H(),i=parseInt(n/1e3),_=N(V.jdaKey),a=N(V.jddKey),s=N(V.jdvKey),d=N(V.jdvSceneKey),o=N(V.debugKey);x[it]=!0;try{var p=(A=getCurrentPages())[A.length-1];x[at]=p.route||p.__route__||"";var u=$(p.options)?p.options:{};x[st]=F(u)||"",x[dt]=u,this.setMParam((this.env[_t]||{}).m_param||u.m_param)}catch(t){}x[nt]=!1,e=i,c=x,1<(r=(a||"").split(".")).length?c[nt]=c[nt]||1*r[1]+V.sessionTime<e:c[nt]=!0;var h,l,v,f,m,g,y,w,j,k,b,D,S,P,q=jt(s,n,x),K=jt(d,n,x,!0),C=(k=i,b=x,D=t,S=(a||"").split("."),(P=1)<S.length?(b[nt]=b[nt]||1*S[1]+V.sessionTime<k,P=(b[nt]?1:D?1*S[0]+1:1*S[0])||1):b[nt]=!0,(b[et]=P)+"."+k),I=(h=i,l=x,y=(_||"").split("."),j=w=1,5<y.length?(w=y[0]||w,v=y[1]||X(),f=y[2]||h,l[nt]?(m=y[4]||h,g=h,j=1*y[5]+1||1):(m=y[3]||h,g=y[4]||h,j=1*y[5]||1)):(v=X(),f=m=g=h,j=1),[l[ft]=w,l[G]=v,l[Q]=f,l[Z]=m,l[tt]=g,l[ct]=j].join("."));B(V.jddKey,C),B(V.jdaKey,I),q&&B(V.jdvKey,q),K&&B(V.jdvSceneKey,K),x[rt]=q||s,x[xt]=K||d,W.setAppData(),function(t){if(t[mt]&&t[mt].pv_sid&&t[mt].pv_seq){var e=1*t[mt].pv_sid,c=1*t[mt].pv_seq;99999999<e||(e>t[ct]||e==t[ct]&&c>=t[et])&&(t[ct]=e,t[et]=c+1)}}(x);var z,R,T=function(t,e,c){var r=Y(c[_t])?c[dt]:c[_t],x="",n="";if(r&&r.customerinfo)x=r.customerinfo,n=e;else{var i=t instanceof Array?t:[];2==i.length&&e-i[1]<V.customerInfoTime&&(x=i[0],n=i[1])}return(c[vt]=x)?[x,n]:[]}(N(V.customerInfoKey),i,x);B(V.customerInfoKey,T),z=this.env,(R=N("jdwcx")||N("jdzdm"))&&(R.unionid&&(z[ht]=R.unionid),R.wxversion&&(z[lt]=R.wxversion));try{p=(A=getCurrentPages())[A.length-1];var A,E=$(p.options)?p.options:{},O=decodeURIComponent(E.scene),U=new RegExp("(^|&)"+V.debugKey+"=([^&]*)(&|$)"),J=O.match(U),L=E[V.debugKey];null!=J&&(L=J[2]),L?(B(V.debugKey,L),o=L):x[nt]&&(B(V.debugKey,""),o=""),x[gt]=o}catch(t){}if(x[nt])x[ot]="",x[pt]="",x[ut]="";else{var M=N(V.referKey);x[ot]=M[0],x[pt]=M[1],x[ut]=M[2]}B(V.referKey,[this.getUrl(),this.getUrlParam(),""])},W.pr.initMulcommonData=function(){var t=W.instance&&W.instance.env||[],e={account:I,siteId:k,appid:z,openid:R,unionid:ht};for(var c in e)this.env[e[c]]=this.env[e[c]]||t[e[c]]},W.pr.initPvData=function(t,e){this.pageLoadTime=H(),this.maxClickDeep=0,t=t||{};var c=this.baseEnv(e),r=c.data[0];return this.env[L]=r.ma_log_id,r.page_id=this.env[q]||"",r.pname=this.getPname(t),r.pparam=this.getPparam(t),r.sku=this.env[T]||"",r.shp=this.env[A]||"",r.tit=this.env[D]||"",r.ldt=this.env[E]||"",r.ma_et_refer=this.env[ut]||"",w(r.ext,t.ext),c},W.pr.initClickData=function(t,e){var c,r=this.baseEnv(),x=r.data[0];if(x.eid=t.eid||"",x.eparam=t.eparam||"",x.elevel=t.elevel||"",x.page_id=t.pageId||this.env[q]||"",x.pname=this.getPname(t),x.pparam=this.getPparam(t),x.tar=t.target||"",x.x=0,x.y=0,c=t.event,$(c)&&c.type&&c.target){var n=t.event,i=n.touches;if((!i||i.length<1)&&(i=n.changedTouches),i&&0<i.length){x.x=parseInt(i[0].pageX);var _=parseInt(i[0].pageY);(x.y=_)>this.maxClickDeep&&(this.maxClickDeep=_)}}if(w(x.ext,t.ext),"cl"===e){var a=N(V.referKey)||[];B(V.referKey,[a[0],a[1],x.eid])}return r},W.pr.initExposureData=W.pr.initClickData,W.pr.initShoppingData=function(t){var e=this.baseEnv(),c=e.data[0];return c.eid=t.eid||"",c.eparam=t.eparam||"",c.elevel=t.elevel||"",c.page_id=t.pageId||this.env[q]||"",c.pname=this.getPname(t),c.pparam=this.getPparam(t),c.sku_list=t.shoppingList?JSON.stringify(t.shoppingList):"",w(c.ext,t.ext),e},W.pr.initOrderData=function(t){var e=this.baseEnv(),c=e.data[0];return c.eid=t.eid||"",c.eparam=t.eparam||"",c.elevel=t.elevel||"",c.page_id=t.pageId||this.env[q]||"",c.pname=this.getPname(t),c.pparam=this.getPparam(t),c.sku_list=t.orderList?JSON.stringify(t.orderList):"",c.order_total_fee=t.total||0,c.sale_ord_id=t.orderid||"",w(c.ext,t.ext),e},W.pr.initPageUnloadData=function(t){var e=((H()-this.pageLoadTime)/1e3).toFixed(3),c=this.baseEnv(),r=c.data[0];return t=t||{},r.page_id=t.pageId||this.env[q]||"",r.pname=this.getPname(t),r.pparam=this.getPparam(t),r.alive_seconds=e,r.click_deep=this.maxClickDeep,w(r.ext,t.ext),c},W.pr.initStrategy=function(t){var e=N(V.reportStrategy);x({url:"https://policy.jd.com/m/log/v2?key=x&item="+t+"&v="+(e&&e.v),method:"GET",header:{"content-type":"application/json"},success:function(t){t&&t.data&&("1"===t.data.code&&v(e),"0"===t.data.code&&(B(V.reportStrategy,t.data),v(t.data)))}})},M=W.wxDat={},(yt=e&&e())&&yt.system&&(M.system=yt.system),t({success:function(t){t&&(M.dvc=t.model,M.pixelRatio=(t.pixelRatio||"")+"",M.scr=parseInt(t.windowWidth)+"x"+parseInt(t.windowHeight),M.lang=t.language,M.wxver=t.version,M.sdkver=t.SDKVersion||"")},complete:function(){W.dataReady("sysinfo")}}),r({success:function(t){t&&(M.net=t.networkType)},complete:function(){W.dataReady("netType")}}),W.pr.setData=function(t,e){t=$(t)?t:{};var c=$(t.urlParam)?t.urlParam:{},r={skuid:[T],shopid:[A],title:[D],loadtime:[E],url:[S],urlParam:[P,F],pname:[K],pparam:[C],pageId:[q],pvLogId:[L]},x={account:[I],siteId:[k],appid:[z],openid:[R],unionid:[ht],sendByBatch:[O],latitude:[U],longitude:[J]};for(var n in x){var i=x[n];this.env[i[0]]=t[n]?i[1]?i[1](t[n]):t[n]:this.env[i[0]]||"",delete t[n]}if(!e){for(var n in this.ext={},this.env[_t]=c,this.setMParam(c.m_param),r){i=r[n];this.env[i[0]]=t[n]?i[1]?i[1](t[n]):t[n]:"",delete t[n]}for(var n in t)"ext"!==n&&(this.ext[n]=t[n]);this.env[z]||(this.env[z]=N("appid")),this.env[O]&&this.env[k]&&!W.isStrategyReady&&(W.isStrategyReady=!0,this.initStrategy(this.env[k]))}},W.appDat={},W.setAppData=function(t){try{var e={},c=N(V.sysExtKey);for(var r in w(e,c),w(e,t),e)W.appDat[r]=e[r],"wxapp_scene"===r&&t&&t[r]&&(wt=t[r]);B(V.sysExtKey,e)}catch(t){}},W.clearAppData=function(){W.appDat={},function(t){try{c.removeStorageSync(t)}catch(t){}}(V.sysExtKey)},W.scene=null,W.setScene=function(t){W.scene=t},W.pr.setMParam=function(t){try{var e=JSON.parse(t);this.env[mt]=$(e)?e:{}}catch(t){this.env[mt]={}}},W.pr.baseEnv=function(t){this===W.instance?this.env[it]||this.setupPageview():this.initCommon||(this.initMulcommonData(),this.initCommon=!0);var e=this.env,c=W.wxDat,r={cli:i,std:e[k]||"WXAPP-JA2016-1",uuid:e[G]||"",scr:c.scr||"",dvc:c.dvc||"",lang:c.lang||"",appkey:e[lt]||"",appid:e[z]||"",openid:e[R]||"",unionid:e[ht]||"",gender:c.gender||"",city:c.city||"",province:c.province||"",country:c.country||"",wxver:c.wxver||"",data:[]};c.system&&(r.osp=c.system.split(" ")[0],r.osv=c.system.split(" ")[1]);var x=[["realUrl",at],["realParam",st],["ref",ot],["rpr",pt],["seq",et],["vts",ct],["pin",I],["fst",Q],["pst",Z],["vct",tt],["lat",U],["lon",J]],n=this.getData(x);return n.ma_log_id=e[G]+"-"+(new Date).getTime()+"-"+Math.floor(2147483647*Math.random()),"pv"!==t&&(n.ma_pv_log_id=e[L]),n.jsver=V.jsVer,n.net=c.net||"",n.speed=c.speed||"",n.accuracy=c.accuracy||"",n.pixelRatio=c.pixelRatio||"",n.jdv=e[rt]||"",n.customerInfo=e[vt]||"",n.ctp=this.getUrl(),n.par=this.getUrlParam(),n.unpl=N("unpl")||"",n.scene=W.scene||"",n.sdkver=c.sdkver||"","JA2019_5112348"===e[k]&&(n.rdJdv=function(){var t="",e=N(V.rdJdvKey);if(e&&e._expire>Date.now()){var c=e._data&&e._data[V.jdvKey];c&&new Date(c.expires)>new Date&&(t=c?c.value:"")}return t}()),n.ext={sceneJdv:e[xt]||""},n.std_param=W.appDat,w(n.ext,this.ext),w(n.ext,W.appDat),r.data.push(n),r},W.pr.getSeriesData=function(){var t=this.env,e={uuid:t[G]||"",std:t[k]||"WXAPP-JA2016-1",seq:t[et],vts:t[ct]};return t[lt]&&(e.appkey=t[lt]),t[z]&&(e.appid=t[z]),t[gt]&&(e.debugId=t[gt]),e},W.initJda=function(){var t=N(V.jdaKey);if(!t){var e=H();t=[1,X(),e,e,e,0].join("."),B(V.jdaKey,t)}return t},module.exports={init:function(t){return W.getInstance().exports()},instance:function(t){return W.getMulInstance(t).exports()},usePlugin:function(t){if(t)try{pluginObj=requirePlugin(t)}catch(t){}},setAppData:function(t){W.setAppData(t)},clearAppData:function(){W.clearAppData()},setScene:function(t){W.setScene(t)}}}(Taro);
|
|
1
|
+
/* 2025-05-13 18:39:33 @issue to huangzhihua@jd.com Thanks */
|
|
2
|
+
var Taro=require("@tarojs/taro");!function(n){var h={};if("weapp"===process.env.TARO_ENV)h=["t_1000578828_xcx_1000_wxtd","t_1000578828_xcx_1001_fxrk","t_1000578828_xcx_1003_xblb","t_1000578826_xcx_1005_fxss","t_1000578826_xcx_1006_fxss","t_1000578832_xcx_1007_drxxkp","t_1000578832_xcx_1008_qlxxkp","t_1000578828_xcx_1010_scj","t_1000578833_xcx_1011_smewm","t_1000578833_xcx_1012_tpsm","t_1000578833_xcx_1013_xcsm","t_1000578827_xcx_1014_xcxmbxx","t_1000578829_xcx_1017_tyb","t_1000578830_xcx_1019_qb","t_1000072662_xcx_1020_gzhjs","t_1000578828_xcx_1022_zdrk","t_1000578828_xcx_1023_zmtb","t_1000578828_xcx_1024_xcxjs","t_1000578833_xcx_1025_smywm","t_1000578829_xcx_1026_fjxcx","t_1000578826_xcx_1027_dbss","t_1000578836_xcx_1028_kqkb","t_1000578836_xcx_1029_kqxq","t_1000578829_xcx_1030_zdhcs","t_1000578833_xcx_1031_tpsm","t_1000578833_xcx_1032_xcsm","t_1000578827_xcx_1034_zfwcxx","t_1000072662_xcx_1035_cdl","t_335139774_xcx_1036_appfxxx","t_1000578834_xcx_1037_xcxtz","t_1000578834_xcx_1038_xcxtz","t_1000578829_xcx_1039_yds","t_1000578826_xcx_1042_tjss","t_1000072662_xcx_1043_gzhxx","t_1000578832_xcx_1044_fxxxkp","t_1000578833_xcx_1047_smxcxm","t_1000578833_xcx_1048_tpsm","t_1000578833_xcx_1049_xcsm","t_1000578836_xcx_1052_kqmdlb","t_1000578826_xcx_1053_sys","t_1000578828_xcx_1054_dbss","t_1000578829_xcx_1055_h5hq","t_1000578829_xcx_1056_ylbf","t_1000578830_xcx_1057_yxkxqy","t_1000072663_xcx_1058_gzhwz","t_1000578829_xcx_1059_yqy","t_1000578829_xcx_1064_wifilj","t_1000578829_xcx_1069_ydyy","t_1000578830_xcx_1071_yxklby","t_1000578833_xcx_1072_ewmsk","t_1000578829_xcx_1073_kfxx","t_1000072663_xcx_1074_gzhxx","t_1000578829_xcx_1077_yzb","t_1000578829_xcx_1078_wifilj","t_1000578829_xcx_1079_yxzx","t_1000578829_xcx_1081_kfwzl","t_1000072663_xcx_1082_hhwzl","t_1000578828_xcx_1088_hhxx","t_1000578828_xcx_1089_ltkxl","t_1000578828_xcx_1090_xcxcd","t_1000072663_xcx_1091_wzspkp","t_1000578829_xcx_1092_csfwrk","t_1000578828_xcx_1096_ltjl","t_1000578829_xcx_1097_zfqy","t_1000578829_xcx_1099_cj","t_1000578828_xcx_1100_hbfmxqy","t_1000072663_xcx_1102_fwyl","t_1000578829_xcx_1103_fxwd","t_1000578829_xcx_1104_xlwd","t_1000578828_xcx_1106_xlss","t_1000578828_xcx_1107_dyxx","t_1000578828_xcx_1113_azfyp","t_1000578828_xcx_1114_azcbl","t_1000578828_xcx_1119_qywxgzt","t_1000578828_xcx_1120_qywxgrzl","t_1000072660_xcx_1121_fxrk","t_1000578832_xcx_1123_qwqt","t_1000578833_xcx_1124_smywym","t_1000578829_xcx_1129_pc","t_1000578828_xcx_1133_yjsb","t_1000578829_xcx_1135_zcxtz","t_1000072663_xcx_1152_dyhspdkxcx","t_1000578832_xcx_1154_pyqdy","t_1000578832_xcx_1155_pyqdytz","t_1000578832_xcx_1157_fqhhhk","t_1000578832_xcx_1158_qgjdkxcx","t_1000578828_xcx_1167_bqtz","t_1000578828_xcx_1168_qqllq","t_1000578832_xcx_1202_qwhh","t_1000578832_xcx_1207_qwwzl","t_1000578828_xcx_1223_azwidget","t_1000578828_xcx_1242_fxrk","t_1000578828_xcx_1245_fxrk","t_1000578833_xcx_1253_swjgy","t_1000578828_xcx_1256_pcmb","t_1000578828_xcx_1257_pcmb","t_1000578832_xcx_1265_tpxqy","t_1000578832_xcx_1266_tpcabprk","t_1000578828_xcx_1273_fxrk","t_1000578828_xcx_1278_fxrk","t_1000578828_xcx_1279_fxrk","t_1000578826_xcx_1280_xlwd","t_1000578826_xcx_1281_xlwd","t_1000578828_xcx_1282_fxrk","t_1000578828_xcx_1285_fxrk","t_1000578828_xcx_1286_mwscheme","t_1000072663_xcx_1287_djtp","t_1000578829_xcx_1296_ffdjqp","t_1000578826_xcx_1298_xlwd","t_1000578826_xcx_1299_xlwd","t_1000578826_xcx_1300_fxrk","t_1000578826_xcx_1301_fxrk","t_1000578828_xcx_1302_pcmb","t_1000578828_xcx_1303_fxrk","t_1000578828_xcx_1304_sjfyp","t_1000072663_xcx_1305_bojsy","t_1000072663_xcx_1306_djguxj","t_1000578828_xcx_1307_fxrk","t_1000578828_xcx_1308_pcmb","t_1000072663_xcx_1309_wzxyxcps","t_1000072676_xcx_100000_sq","t_1000072676_xcx_100001_sq","t_1000072676_xcx_100002_sq","t_1000072676_xcx_100003_sq"].reduce(function(t,e){return t[e.split("_")[3]]=["direct",e,"xcx","-"],t},{});var N=function(t){var e="";try{e=n.getStorageSync(t)}catch(t){}return e},B=function(t,e){try{n.setStorageSync(t,e)}catch(t){}},r=n.request,t=n.getSystemInfo,e=n.getDeviceInfo,_=n.onAppHide,a=n.getNetworkType,i="";"weapp"===process.env.TARO_ENV?i="wx-app":"swan"===process.env.TARO_ENV?i="baidu-app":"tt"===process.env.TARO_ENV?i="toutiao-app":"alipay"===process.env.TARO_ENV?i="alipay-app":"rn"===process.env.TARO_ENV?i="rn-app":"h5"===process.env.TARO_ENV&&(i="h5-app");var V={jsVer:"TR2.1.6",jdaKey:"__jda",jddKey:"__jdd",jdvKey:"__jdv",jdvSceneKey:"__scene_jdv",rdJdvKey:"cookies",debugKey:"__debugId__",sysExtKey:"__sysExtKey__",customerInfoKey:"union_customerinfo",jdvTimeMS:864e5,customerInfoTime:86400,sessionTime:1800,referKey:"__refer",md5Salt:"5YT%aC89$22OI@pQ",batchKey:"zwx-stream-storage",reportStrategy:"zwx-report-strategy",sendByBatch:!1,own:{__jda:1,__jdd:1,__jdv:1,__refer:1,appid:1,jdwcx:1,jdzdm:1,union_customerinfo:1},addr:function(t){var e="https://neptune.jd.com/log/m";try{var n=getApp({allowDefault:!0});n&&n.globalRequestUrl&&(e=n.globalRequestUrl.replace(/\/*$/,"/neptune/log/m"))}catch(t){}return t?"https://luna.jd.com/debuglog/xapp":e}},s=0;function W(t){t=t||"tr-"+s++,this.name=t,this.logCache=[],this.env=[],this.ext={},this.isReady=W.isWxDataReady,W.loggerList&&W.loggerList instanceof Array&&W.loggerList.push(this),W.isInitJda||(W.initJda(),W.isInitJda=!0)}W.loggerList=[],W.dependList={sysinfo:0,netType:0},W.isWxDataReady=!1,W.instance=!1,W.getInstance=function(){return W.instance||(W.instance=new W)},W.getMulInstance=function(t){return new W(t)},W.dataReady=function(t){if(!W.isWxDataReady){for(var e in W.dependList[t]=1,W.dependList)if(!W.dependList[e])return;W.isWxDataReady=!0;e=0;for(var n=W.loggerList.length;e<n;e++)W.loggerList[e].ready();delete W.loggerList}},(W.pr=W.prototype).ready=function(){this.isReady=!0;for(var t=this.logCache.length,e=0;e<t;e++)this.sendData.apply(this,this.logCache[e])},W.pr.sendData=function(t,e,n){var a;(a="pv"==e?this.initPvData(n,e):"cl"==e?this.initClickData(n,e):"cd"==e?this.initShoppingData(n):"od"==e?this.initOrderData(n):"sr"==e?this.initPageUnloadData(n):"ep"==e?this.initExposureData(n):n).tpc=t,a.report_ts=H()/1e3,a.token=W.md5(a.report_ts+V.md5Salt),a.data[0].typ=e,a.data[0].debugId=this.env[gt]||"",this.logByPost(a,a.data[0])},W.pr.send=function(t,e,n){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},W.pr.request=function(t,e){var n=!!this.env[gt],a="https://neptune.jd.com/log/m/v3?std="+t.std;r({url:e?a:V.addr(n)+"?std="+t.std,data:t,method:"POST",header:{"content-type":"application/json"},success:function(t){}})},W.pr.exports=function(){var _=this;return{set:function(t){_.setData(t)},setCommon:function(t){_.setData(t,!0)},pv:function(t){_.lastPvTime&&H()-_.lastPvTime<100||(_.lastPvTime=H(),_.setData(t),_.setupPageview(!0),_.send("wx_app.000000","pv",t))},click:function(t){_.send("wx_app.000001","cl",t)},exposure:function(t){_.send("wx_app.000005","ep",t)},spmPV:function(t){if(_.validateSpm("pv",t)){var e=_.formatSpmParams("pv",t);this.pv(e)}},spmClick:function(t){if(_.validateSpm("cl",t)){var e=_.formatSpmParams("cl",t);this.click(e)}},spmExposure:function(t){if(_.validateSpm("expo",t)){var e=_.formatSpmParams("expo",t);this.exposure(e)}},autoClick:function(t){var e,n=t.target.dataset,a=t.currentTarget.dataset;if(n&&n.eid?e=n:a&&a.eid&&(e=a),e){var r={eid:e.eid,elevel:e.elevel,eparam:e.eparam,pname:e.pname,pparam:e.pparam,target:e.target,event:t};_.send("wx_app.000001","cl",r)}},addToCart:function(t){_.send("wx_app.000002","cd",t)},order:function(t){_.send("wx_app.000003","od",t)},pageUnload:function(t){_.send("wx_app.000004","sr",t)},getSeries:function(){return _.env[k]||(_.setupPageview(),_.env[k]=!0),JSON.stringify(_.getSeriesData())},urlAddSeries:function(t){var e=(t||"").indexOf("#"),n="wxappSeries="+encodeURIComponent(this.getSeries());return-1<e?e===t.length-1?t+n:t+"&"+n:t+"#"+n},setMParam:function(t){return _.setMParam(t)},getJda:function(){return N(V.jdaKey)},getJdv:function(){return N(V.jdvKey)},getStorage:function(t){return N(t)},setStorage:function(t,e){return B(t,e)},setJdv:function(t){return t&&5===t.split("|").length&&B(V.jdvKey,t+"|"+H())}}};var c=2e3,o=1e3,x=1e3,p=100,d=10,u=null,l={num:"numberOut",time:"timeOut",pageHide:"pageHide"};function f(t){t&&$(t)&&(V.sendByBatch=t.h5_size&&1!=t.h5_size||t.h5_time&&1!=t.h5_time,d=t.h5_size?+t.h5_size:d,x=t.h5_time?1e3*t.h5_time:x)}function v(t,e){var n;for(n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(t[n],n)}function m(t,n){v(t,function(t,e){n[e]=t})}function g(n){var a,t,r,e={};for(m(n[0],e),a=0;a<n.length;++a)for(r=[],v(e,function(t,e){t!==n[a][e]&&r.push(e)}),t=0;t<r.length;++t)delete e[r[t]];return v(e,function(t,e){for(a=0;a<n.length;++a)delete n[a][e]}),e.data=n,e}function y(){var t=N(V.batchKey);if(t){var e,n=t.data;for(delete t.data,e=0;e<n.length;++e)m(t,n[e]);return n}return[]}W.pr.batchSend=function(t,e){try{if(t.length){B(V.batchKey,null);var n=g(t);n.batch_report_type=e,n.report_ts=H()/1e3,n.token=W.md5(n.report_ts+V.md5Salt),this.request(n,!0)}}catch(t){}},W.pr.logByPost=function(t,e){var n=this;if(!!!this.env[gt]&&V.sendByBatch)try{if(!u){!function t(e,n){var a=c+(o*Math.random()<<0),r=x+(p*Math.random()<<0);u=setTimeout(function(){try{n.batchSend(y(),l.time),t(!1,n)}catch(t){}},e?a:r)}(!0,n),_(function(){!function(t){try{clearTimeout(u),u=null,n.batchSend(y(),t)}catch(t){}}(l.pageHide)})}var a={};delete t.report_ts,delete t.token,delete t.data,m(t,a),m(e,a);var r=y().concat(a);r.length>=d?this.batchSend(r,l.num):B(V.batchKey,g(r))}catch(t){}else this.request(t)},function(t){var _=0;function e(t){return a(n(r(t)))}function n(t){return s(c(i(t),8*t.length))}function a(t){for(var e,n=_?"0123456789ABCDEF":"0123456789abcdef",a="",r=0;r<t.length;r++)e=t.charCodeAt(r),a+=n.charAt(e>>>4&15)+n.charAt(15&e);return a}function r(t){for(var e,n,a="",r=-1;++r<t.length;)e=t.charCodeAt(r),n=r+1<t.length?t.charCodeAt(r+1):0,55296<=e&&e<=56319&&56320<=n&&n<=57343&&(e=65536+((1023&e)<<10)+(1023&n),r++),e<=127?a+=String.fromCharCode(e):e<=2047?a+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?a+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(a+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return a}function i(t){var e,n=Array(t.length>>2);for(e=0;e<n.length;e++)n[e]=0;for(e=0;e<8*t.length;e+=8)n[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return n}function s(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e}function c(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,a=-271733879,r=-1732584194,_=271733878,i=0;i<t.length;i+=16){var s=n,c=a,o=r,x=_;a=l(a=l(a=l(a=l(a=u(a=u(a=u(a=u(a=d(a=d(a=d(a=d(a=p(a=p(a=p(a=p(a,r=p(r,_=p(_,n=p(n,a,r,_,t[i+0],7,-680876936),a,r,t[i+1],12,-389564586),n,a,t[i+2],17,606105819),_,n,t[i+3],22,-1044525330),r=p(r,_=p(_,n=p(n,a,r,_,t[i+4],7,-176418897),a,r,t[i+5],12,1200080426),n,a,t[i+6],17,-1473231341),_,n,t[i+7],22,-45705983),r=p(r,_=p(_,n=p(n,a,r,_,t[i+8],7,1770035416),a,r,t[i+9],12,-1958414417),n,a,t[i+10],17,-42063),_,n,t[i+11],22,-1990404162),r=p(r,_=p(_,n=p(n,a,r,_,t[i+12],7,1804603682),a,r,t[i+13],12,-40341101),n,a,t[i+14],17,-1502002290),_,n,t[i+15],22,1236535329),r=d(r,_=d(_,n=d(n,a,r,_,t[i+1],5,-165796510),a,r,t[i+6],9,-1069501632),n,a,t[i+11],14,643717713),_,n,t[i+0],20,-373897302),r=d(r,_=d(_,n=d(n,a,r,_,t[i+5],5,-701558691),a,r,t[i+10],9,38016083),n,a,t[i+15],14,-660478335),_,n,t[i+4],20,-405537848),r=d(r,_=d(_,n=d(n,a,r,_,t[i+9],5,568446438),a,r,t[i+14],9,-1019803690),n,a,t[i+3],14,-187363961),_,n,t[i+8],20,1163531501),r=d(r,_=d(_,n=d(n,a,r,_,t[i+13],5,-1444681467),a,r,t[i+2],9,-51403784),n,a,t[i+7],14,1735328473),_,n,t[i+12],20,-1926607734),r=u(r,_=u(_,n=u(n,a,r,_,t[i+5],4,-378558),a,r,t[i+8],11,-2022574463),n,a,t[i+11],16,1839030562),_,n,t[i+14],23,-35309556),r=u(r,_=u(_,n=u(n,a,r,_,t[i+1],4,-1530992060),a,r,t[i+4],11,1272893353),n,a,t[i+7],16,-155497632),_,n,t[i+10],23,-1094730640),r=u(r,_=u(_,n=u(n,a,r,_,t[i+13],4,681279174),a,r,t[i+0],11,-358537222),n,a,t[i+3],16,-722521979),_,n,t[i+6],23,76029189),r=u(r,_=u(_,n=u(n,a,r,_,t[i+9],4,-640364487),a,r,t[i+12],11,-421815835),n,a,t[i+15],16,530742520),_,n,t[i+2],23,-995338651),r=l(r,_=l(_,n=l(n,a,r,_,t[i+0],6,-198630844),a,r,t[i+7],10,1126891415),n,a,t[i+14],15,-1416354905),_,n,t[i+5],21,-57434055),r=l(r,_=l(_,n=l(n,a,r,_,t[i+12],6,1700485571),a,r,t[i+3],10,-1894986606),n,a,t[i+10],15,-1051523),_,n,t[i+1],21,-2054922799),r=l(r,_=l(_,n=l(n,a,r,_,t[i+8],6,1873313359),a,r,t[i+15],10,-30611744),n,a,t[i+6],15,-1560198380),_,n,t[i+13],21,1309151649),r=l(r,_=l(_,n=l(n,a,r,_,t[i+4],6,-145523070),a,r,t[i+11],10,-1120210379),n,a,t[i+2],15,718787259),_,n,t[i+9],21,-343485551),n=h(n,s),a=h(a,c),r=h(r,o),_=h(_,x)}return Array(n,a,r,_)}function o(t,e,n,a,r,_){return h((i=h(h(e,t),h(a,_)))<<(s=r)|i>>>32-s,n);var i,s}function p(t,e,n,a,r,_,i){return o(e&n|~e&a,t,e,r,_,i)}function d(t,e,n,a,r,_,i){return o(e&a|n&~a,t,e,r,_,i)}function u(t,e,n,a,r,_,i){return o(e^n^a,t,e,r,_,i)}function l(t,e,n,a,r,_,i){return o(n^(e|~a),t,e,r,_,i)}function h(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}W.md5=e}();var H=function(){return(new Date).getTime()},X=function(){return H()+""+parseInt(2147483647*Math.random())},$=function(t){return"[object Object]"=={}.toString.call(t)},w=function(t,e){if($(t)&&$(e))for(var n in e)t[n]=e[n]},F=function(t){var e=[];if($(t))for(var n in t)"m_param"!==n&&e.push(n+"="+t[n]);return e.join("&")},Y=function(t){if($(t))for(var e in t)return!1;return!0},j=0,b=j++,G=j++,Q=j++,Z=j++,tt=j++,et=j++,nt=j++,at=j++,rt=j++,_t=j++,k=j++,it=j++,S=j++,D=j++,P=j++,st=j++,ct=j++,ot=j++,xt=j++,C=j++,K=j++,q=j++,pt=j++,dt=j++,ut=j++,I=j++,z=j++,R=j++,lt=j++,ht=j++,ft=j++,T=j++,A=j++,E=j++,vt=j++,mt=j++,gt=j++,O=j++,U=j++,J=j++,L=j++;W.pr.getData=function(t){for(var e={},n=0,a=t.length;n<a;n++){var r=t[n];e[r[0]]=this.env[r[1]]||""}return e};var M,yt,wt=null,jt=function(t,e,n,a){var r=(t||"").split("|"),_="",i="",s="",c="",o=!0;6<=r.length&&e-r[5]<=V.jdvTimeMS&&(_=r[1],i=r[2],s=r[3],c=r[4],o=!1);var x=Y(n[st])?n[xt]:n[st],p=[];if(a&&wt&&h[wt]){var d=h[wt];p[0]=d[0],p[1]=encodeURIComponent(d[1]),p[2]=encodeURIComponent(d[2])||"none",p[3]=encodeURIComponent(d[3])||"-",wt=null}x&&x.utm_source&&(p[0]=encodeURIComponent(x.utm_source),p[1]=encodeURIComponent(x.utm_campaign||"")||i,p[2]=encodeURIComponent(x.utm_medium||"")||s,p[3]=encodeURIComponent(x.utm_term||"")||c,c=p[3],o=!0);var u=a;a||(0<p.length&&"direct"!=p[0]?u=(p[0]!==_||p[1]!==i||p[2]!==s)&&"referral"!==p[2]:0<p.length&&"direct"==p[0]&&("direct"===_||!_)&&(u=p[1]!==i||p[2]!==s||p[3]!==c));var l="";return u&&(_=p[0]||_,i=p[1]||i,s=p[2]||s,c=p[3]||c),(o||u)&&(l=[1,_||"direct",i||"-",s||"none",c||"-",e].join("|")),a||(n[_t]=n[_t]||u),l};W.pr.getPname=function(t){return(t=t||{}).pname||this.env[K]||this.env[D]||this.env[ct]||""},W.pr.getPparam=function(t){return(t=t||{}).pparam||this.env[q]||this.env[P]||this.env[ot]||""},W.pr.getUrl=function(){return this.env[D]||this.env[ct]||""},W.pr.getUrlParam=function(){return this.env[P]||this.env[ot]||""},W.pr.validateSpm=function(t,e){if(!e||!e.spm||"[object String]"!==Object.prototype.toString.call(e.spm))return console.error("spm 是埋点必填字段"),!1;var n=e.spm.split(".");if("pv"===t){if(2!==n.length)return console.error("spm 格式不对"),!1}else if(n.length<3||4<n.length)return console.error("spm 格式不对"),!1;return!0},W.pr.formatSpmParams=function(t,e){var n=e.spm.split("."),a=n[0],r=n[1],_=n[2],i=e.page_id||r,s=e.biz_type,c=e.event_id,o=c||[[a,r,_].join("."),s||"null",t].join("_"),x={};return w(x,e),w(x,{pageId:i,eid:o}),x},W.pr.setupPageview=function(t){var e,n,a,r=this.env,_=H(),i=parseInt(_/1e3),s=N(V.jdaKey),c=N(V.jddKey),o=N(V.jdvKey),x=N(V.jdvSceneKey),p=N(V.debugKey);r[it]=!0;try{var d=(A=getCurrentPages())[A.length-1];r[ct]=d.route||d.__route__||"";var u=$(d.options)?d.options:{};r[ot]=F(u)||"",r[xt]=u,this.setMParam((this.env[st]||{}).m_param||u.m_param)}catch(t){}r[_t]=!1,e=i,n=r,1<(a=(c||"").split(".")).length?n[_t]=n[_t]||1*a[1]+V.sessionTime<e:n[_t]=!0;var l,h,f,v,m,g,y,w,j,b,k,S,D,P,C=jt(o,_,r),K=jt(x,_,r,!0),q=(b=i,k=r,S=t,D=(c||"").split("."),(P=1)<D.length?(k[_t]=k[_t]||1*D[1]+V.sessionTime<b,P=(k[_t]?1:S?1*D[0]+1:1*D[0])||1):k[_t]=!0,(k[et]=P)+"."+b),I=(l=i,h=r,y=(s||"").split("."),j=w=1,5<y.length?(w=y[0]||w,f=y[1]||X(),v=y[2]||l,h[_t]?(m=y[4]||l,g=l,j=1*y[5]+1||1):(m=y[3]||l,g=y[4]||l,j=1*y[5]||1)):(f=X(),v=m=g=l,j=1),[h[vt]=w,h[G]=f,h[Q]=v,h[Z]=m,h[tt]=g,h[nt]=j].join("."));B(V.jddKey,q),B(V.jdaKey,I),C&&B(V.jdvKey,C),K&&B(V.jdvSceneKey,K),r[at]=C||o,r[rt]=K||x,W.setAppData(),function(t){if(t[mt]&&t[mt].pv_sid&&t[mt].pv_seq){var e=1*t[mt].pv_sid,n=1*t[mt].pv_seq;99999999<e||(e>t[nt]||e==t[nt]&&n>=t[et])&&(t[nt]=e,t[et]=n+1)}}(r);var z,R,T=function(t,e,n){var a=Y(n[st])?n[xt]:n[st],r="",_="";if(a&&a.customerinfo)r=a.customerinfo,_=e;else{var i=t instanceof Array?t:[];2==i.length&&e-i[1]<V.customerInfoTime&&(r=i[0],_=i[1])}return(n[ft]=r)?[r,_]:[]}(N(V.customerInfoKey),i,r);B(V.customerInfoKey,T),z=this.env,(R=N("jdwcx")||N("jdzdm"))&&(R.unionid&&(z[lt]=R.unionid),R.wxversion&&(z[ht]=R.wxversion));try{d=(A=getCurrentPages())[A.length-1];var A,E=$(d.options)?d.options:{},O=decodeURIComponent(E.scene),U=new RegExp("(^|&)"+V.debugKey+"=([^&]*)(&|$)"),J=O.match(U),L=E[V.debugKey];null!=J&&(L=J[2]),L?(B(V.debugKey,L),p=L):r[_t]&&(B(V.debugKey,""),p=""),r[gt]=p}catch(t){}if(r[_t])r[pt]="",r[dt]="",r[ut]="";else{var M=N(V.referKey);r[pt]=M[0],r[dt]=M[1],r[ut]=M[2]}B(V.referKey,[this.getUrl(),this.getUrlParam(),""])},W.pr.initMulcommonData=function(){var t=W.instance&&W.instance.env||[],e={account:I,siteId:b,appid:z,openid:R,unionid:lt};for(var n in e)this.env[e[n]]=this.env[e[n]]||t[e[n]]},W.pr.initPvData=function(t,e){this.pageLoadTime=H(),this.maxClickDeep=0,t=t||{};var n=this.baseEnv(e),a=n.data[0];return this.env[L]=a.ma_log_id,a.page_id=this.env[C]||"",a.pname=this.getPname(t),a.pparam=this.getPparam(t),a.sku=this.env[T]||"",a.shp=this.env[A]||"",a.tit=this.env[S]||"",a.ldt=this.env[E]||"",a.ma_et_refer=this.env[ut]||"",t.spm&&(a.spm=t.spm),w(a.ext,t.ext),n},W.pr.initClickData=function(t,e){var n,a=this.baseEnv(),r=a.data[0];if(r.eid=t.eid||"",r.eparam=t.eparam||"",r.elevel=t.elevel||"",r.page_id=t.pageId||this.env[C]||"",r.pname=this.getPname(t),r.pparam=this.getPparam(t),r.tar=t.target||"",r.x=0,r.y=0,t.spm&&(r.spm=t.spm,r.biz_type=t.biz_type,r.material_name=t.material_name),n=t.event,$(n)&&n.type&&n.target){var _=t.event,i=_.touches;if((!i||i.length<1)&&(i=_.changedTouches),i&&0<i.length){r.x=parseInt(i[0].pageX);var s=parseInt(i[0].pageY);(r.y=s)>this.maxClickDeep&&(this.maxClickDeep=s)}}if(w(r.ext,t.ext),"cl"===e){var c=N(V.referKey)||[];B(V.referKey,[c[0],c[1],r.eid])}return a},W.pr.initExposureData=W.pr.initClickData,W.pr.initShoppingData=function(t){var e=this.baseEnv(),n=e.data[0];return n.eid=t.eid||"",n.eparam=t.eparam||"",n.elevel=t.elevel||"",n.page_id=t.pageId||this.env[C]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.sku_list=t.shoppingList?JSON.stringify(t.shoppingList):"",w(n.ext,t.ext),e},W.pr.initOrderData=function(t){var e=this.baseEnv(),n=e.data[0];return n.eid=t.eid||"",n.eparam=t.eparam||"",n.elevel=t.elevel||"",n.page_id=t.pageId||this.env[C]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.sku_list=t.orderList?JSON.stringify(t.orderList):"",n.order_total_fee=t.total||0,n.sale_ord_id=t.orderid||"",w(n.ext,t.ext),e},W.pr.initPageUnloadData=function(t){var e=((H()-this.pageLoadTime)/1e3).toFixed(3),n=this.baseEnv(),a=n.data[0];return t=t||{},a.page_id=t.pageId||this.env[C]||"",a.pname=this.getPname(t),a.pparam=this.getPparam(t),a.alive_seconds=e,a.click_deep=this.maxClickDeep,w(a.ext,t.ext),n},W.pr.initStrategy=function(t){var e=N(V.reportStrategy);r({url:"https://policy.jd.com/m/log/v2?key=x&item="+t+"&v="+(e&&e.v),method:"GET",header:{"content-type":"application/json"},success:function(t){t&&t.data&&("1"===t.data.code&&f(e),"0"===t.data.code&&(B(V.reportStrategy,t.data),f(t.data)))}})},M=W.wxDat={},(yt=e&&e())&&yt.system&&(M.system=yt.system),t({success:function(t){t&&(M.dvc=t.model,M.pixelRatio=(t.pixelRatio||"")+"",M.scr=parseInt(t.windowWidth)+"x"+parseInt(t.windowHeight),M.lang=t.language,M.wxver=t.version,M.sdkver=t.SDKVersion||"")},complete:function(){W.dataReady("sysinfo")}}),a({success:function(t){t&&(M.net=t.networkType)},complete:function(){W.dataReady("netType")}}),W.pr.setData=function(t,e){t=$(t)?t:{};var n=$(t.urlParam)?t.urlParam:{},a={skuid:[T],shopid:[A],title:[S],loadtime:[E],url:[D],urlParam:[P,F],pname:[K],pparam:[q],pageId:[C],pvLogId:[L]},r={account:[I],siteId:[b],appid:[z],openid:[R],unionid:[lt],sendByBatch:[O],latitude:[U],longitude:[J]};for(var _ in r){var i=r[_];this.env[i[0]]=t[_]?i[1]?i[1](t[_]):t[_]:this.env[i[0]]||"",delete t[_]}if(!e){for(var _ in this.ext={},this.env[st]=n,this.setMParam(n.m_param),a){i=a[_];this.env[i[0]]=t[_]?i[1]?i[1](t[_]):t[_]:"",delete t[_]}for(var _ in t)"ext"!==_&&(this.ext[_]=t[_]);this.env[z]||(this.env[z]=N("appid")),this.env[O]&&this.env[b]&&!W.isStrategyReady&&(W.isStrategyReady=!0,this.initStrategy(this.env[b]))}},W.appDat={},W.setAppData=function(t){try{var e={},n=N(V.sysExtKey);for(var a in w(e,n),w(e,t),e)W.appDat[a]=e[a],"wxapp_scene"===a&&t&&t[a]&&(wt=t[a]);B(V.sysExtKey,e)}catch(t){}},W.clearAppData=function(){W.appDat={},function(t){try{n.removeStorageSync(t)}catch(t){}}(V.sysExtKey)},W.scene=null,W.setScene=function(t){W.scene=t},W.pr.setMParam=function(t){try{var e=JSON.parse(t);this.env[mt]=$(e)?e:{}}catch(t){this.env[mt]={}}},W.pr.baseEnv=function(t){this===W.instance?this.env[it]||this.setupPageview():this.initCommon||(this.initMulcommonData(),this.initCommon=!0);var e=this.env,n=W.wxDat,a={cli:i,std:e[b]||"WXAPP-JA2016-1",uuid:e[G]||"",scr:n.scr||"",dvc:n.dvc||"",lang:n.lang||"",appkey:e[ht]||"",appid:e[z]||"",openid:e[R]||"",unionid:e[lt]||"",gender:n.gender||"",city:n.city||"",province:n.province||"",country:n.country||"",wxver:n.wxver||"",data:[]};n.system&&(a.osp=n.system.split(" ")[0],a.osv=n.system.split(" ")[1]);var r=[["realUrl",ct],["realParam",ot],["ref",pt],["rpr",dt],["seq",et],["vts",nt],["pin",I],["fst",Q],["pst",Z],["vct",tt],["lat",U],["lon",J]],_=this.getData(r);return _.ma_log_id=e[G]+"-"+(new Date).getTime()+"-"+Math.floor(2147483647*Math.random()),"pv"!==t&&(_.ma_pv_log_id=e[L]),_.jsver=V.jsVer,_.net=n.net||"",_.speed=n.speed||"",_.accuracy=n.accuracy||"",_.pixelRatio=n.pixelRatio||"",_.jdv=e[at]||"",_.customerInfo=e[ft]||"",_.ctp=this.getUrl(),_.par=this.getUrlParam(),_.unpl=N("unpl")||"",_.scene=W.scene||"",_.sdkver=n.sdkver||"","JA2019_5112348"===e[b]&&(_.rdJdv=function(){var t="",e=N(V.rdJdvKey);if(e&&e._expire>Date.now()){var n=e._data&&e._data[V.jdvKey];n&&new Date(n.expires)>new Date&&(t=n?n.value:"")}return t}()),_.ext={sceneJdv:e[rt]||""},_.std_param=W.appDat,w(_.ext,this.ext),w(_.ext,W.appDat),a.data.push(_),a},W.pr.getSeriesData=function(){var t=this.env,e={uuid:t[G]||"",std:t[b]||"WXAPP-JA2016-1",seq:t[et],vts:t[nt]};return t[ht]&&(e.appkey=t[ht]),t[z]&&(e.appid=t[z]),t[gt]&&(e.debugId=t[gt]),e},W.initJda=function(){var t=N(V.jdaKey);if(!t){var e=H();t=[1,X(),e,e,e,0].join("."),B(V.jdaKey,t)}return t},module.exports={init:function(t){return W.getInstance().exports()},instance:function(t){return W.getMulInstance(t).exports()},usePlugin:function(t){if(t)try{pluginObj=requirePlugin(t)}catch(t){}},setAppData:function(t){W.setAppData(t)},clearAppData:function(){W.clearAppData()},setScene:function(t){W.setScene(t)}}}(Taro);
|
package/dist/open/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import taroJdBaseInfo from '../common'
|
|
2
1
|
const result = document.domain.match(/jd\.\w+$/)
|
|
3
2
|
if(result){
|
|
4
3
|
document.domain = result[0]
|
|
5
4
|
}
|
|
5
|
+
import taroJdBaseInfo from '../common'
|
|
6
6
|
const result = document.domain.match(/jd\.\w+$/)
|
|
7
7
|
if(result){
|
|
8
8
|
document.domain = result[0]
|
|
9
9
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro';
|
|
2
1
|
clientVersion: '11.0.0',
|
|
3
2
|
client: 'wh5',
|
|
4
3
|
screen: `${Math.ceil(getSystemInfo?.screenWidth * devicePixelRatio)}*${Math.ceil(
|
|
5
4
|
getSystemInfo?.screenHeight * devicePixelRatio,
|
|
6
5
|
)}`,
|
|
7
6
|
area: '1_72_2799_0',
|
|
8
7
|
uuid: UUID,
|
|
9
8
|
const { area, realTimeArea } = areaInfo || {};
|
|
10
9
|
area && area !== '' && (clientParams.area = area);
|
|
11
10
|
realTimeArea && realTimeArea !== '' && (clientParams['realTimeArea'] = realTimeArea);
|
|
12
11
|
console.warn(
|
|
13
12
|
'cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息',
|
|
14
13
|
areaInfo,
|
|
15
14
|
'更新后的接口底层信息',
|
|
16
15
|
clientParams,
|
|
17
16
|
);
|
|
18
17
|
functionId: string,
|
|
19
18
|
body = {},
|
|
20
19
|
options = {},
|
|
21
20
|
requestOptions = {},
|
|
22
21
|
const params = Object.assign(
|
|
23
22
|
{},
|
|
24
23
|
{
|
|
25
24
|
t: Date.now(),
|
|
26
25
|
functionId,
|
|
27
26
|
appid: 'shop_m_jd_com',
|
|
28
27
|
body: JSON.stringify(body),
|
|
29
28
|
},
|
|
30
29
|
clientParams,
|
|
31
30
|
options,
|
|
32
31
|
{
|
|
33
32
|
area: clientParams.area,
|
|
34
33
|
client: options?.client || clientParams.client,
|
|
35
34
|
clientVersion: options?.clientVersion || clientParams.clientVersion,
|
|
36
35
|
},
|
|
37
36
|
);
|
|
38
37
|
console.warn(
|
|
39
38
|
'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
|
|
40
39
|
'底层默认的clientParams',
|
|
41
40
|
clientParams,
|
|
42
41
|
'下发的options',
|
|
43
42
|
options,
|
|
44
43
|
'最后params',
|
|
45
44
|
params,
|
|
46
45
|
);
|
|
47
46
|
return http.post(api.apiFunc, params, requestOptions);
|
|
47
|
+
import Taro from '@tarojs/taro';
|
|
48
48
|
appid: 'wx_mini_app',
|
|
49
49
|
clientVersion: '11.0.0',
|
|
50
50
|
client: 'wh5',
|
|
51
51
|
area: '1_72_2799_0',
|
|
52
52
|
screen: `${Math.ceil(getSystemInfo?.screenWidth * devicePixelRatio)}*${Math.ceil(
|
|
53
53
|
getSystemInfo?.screenHeight * devicePixelRatio,
|
|
54
54
|
)}`,
|
|
55
55
|
uuid: '-1',
|
|
56
56
|
loginType: '11',
|
|
57
57
|
const { area, realTimeArea } = areaInfo || {};
|
|
58
58
|
area && area !== '' && (clientParams.area = area);
|
|
59
59
|
realTimeArea && realTimeArea !== '' && (clientParams['realTimeArea'] = realTimeArea);
|
|
60
60
|
console.warn(
|
|
61
61
|
'cone-render中对外暴露fetchGateway收到原生端获取传来的四级地址信息',
|
|
62
62
|
areaInfo,
|
|
63
63
|
'更新后的接口底层信息',
|
|
64
64
|
clientParams,
|
|
65
65
|
);
|
|
66
66
|
functionId: string,
|
|
67
67
|
body = {},
|
|
68
68
|
options = {},
|
|
69
69
|
requestOptions = {},
|
|
70
70
|
const params = Object.assign(
|
|
71
71
|
{},
|
|
72
72
|
{
|
|
73
73
|
t: Date.now(),
|
|
74
74
|
functionId,
|
|
75
75
|
appid: 'shop_m_jd_com',
|
|
76
76
|
body: JSON.stringify(body),
|
|
77
77
|
},
|
|
78
78
|
clientParams,
|
|
79
79
|
options,
|
|
80
80
|
{
|
|
81
81
|
area: clientParams.area,
|
|
82
82
|
client: options?.client || clientParams.client,
|
|
83
83
|
clientVersion: options?.clientVersion || clientParams.clientVersion,
|
|
84
84
|
},
|
|
85
85
|
);
|
|
86
86
|
console.warn(
|
|
87
87
|
'fetchGateway url:' + api.apiFunc + ',functionId:' + params.functionId,
|
|
88
88
|
'底层默认的clientParams',
|
|
89
89
|
clientParams,
|
|
90
90
|
'下发的options',
|
|
91
91
|
options,
|
|
92
92
|
'最后params',
|
|
93
93
|
params,
|
|
94
94
|
);
|
|
95
95
|
return http.post(api.apiFunc, params, requestOptions);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import Taro from '@tarojs/taro'
|
|
2
|
const requestParams = chain.requestParams
|
|
1
3
|
const { header, data } = requestParams
|
|
2
4
|
const { wqCookie, wqVisitkey = '-1' } = global?.info?.userInfo
|
|
3
5
|
header['wqreferer'] = `https://wq.jd.com/wxapp/pages/shopx/pages/index/index`
|
|
4
6
|
header['Cookie'] = wqCookie
|
|
5
7
|
if (data && data['functionId'] && data['uuid'] && wqVisitkey !== '-1') {
|
|
6
8
|
data['uuid'] = wqVisitkey
|
|
7
9
|
}
|
|
8
10
|
return chain.proceed(requestParams).then((res) => {
|
|
9
11
|
if (res.statusCode === HttpStatus.SUCCESS) {
|
|
10
12
|
return res
|
|
11
13
|
} else {
|
|
12
14
|
return {
|
|
13
15
|
statusCode: res.statusCode,
|
|
14
16
|
msg: httpStatusMsg[res.statusCode] || defaultHttpStatusMsg,
|
|
15
17
|
}
|
|
16
18
|
}
|
|
17
19
|
})
|