@conecli/cone-render 0.8.33 → 0.8.34
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/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/remoteFloorItem.tsx +1 -0
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
1
|
if(this.props.customErrorIsvFloorModule){
|
|
3
2
|
return this.props.customErrorIsvFloorModule
|
|
4
3
|
}
|
|
4
|
+
import React from 'react'
|
|
5
5
|
code: 'isvModuleError',
|
|
6
6
|
msg: opt,
|
|
7
7
|
})
|
|
8
8
|
if(this.props.customErrorIsvFloorModule){
|
|
9
9
|
return this.props.customErrorIsvFloorModule
|
|
10
10
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import React, { Suspense, lazy } from 'react'
|
|
2
1
|
BUSINESS_TYPE,
|
|
3
2
|
RemoteLoadFloorList,
|
|
4
3
|
JD_PLACEHOLDER_IMG,
|
|
5
4
|
DraJSAgentReportException,
|
|
6
5
|
DraJSAgentReport,
|
|
7
6
|
const {
|
|
8
7
|
floorData,
|
|
9
8
|
renderSourceType,
|
|
10
9
|
builtInComponents = {},
|
|
11
10
|
updateContainerFloorListDataFn,
|
|
12
11
|
} = props
|
|
13
12
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
14
13
|
const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
|
|
15
14
|
const FloorContentItem =
|
|
16
15
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
17
16
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
18
17
|
|
|
19
18
|
const renderDecorateDefaultModule = () => {
|
|
20
19
|
return (
|
|
21
20
|
<View
|
|
22
21
|
style={{
|
|
23
22
|
lineHeight: '120px',
|
|
24
23
|
textAlign: 'center',
|
|
25
24
|
}}
|
|
26
25
|
>
|
|
27
26
|
当前模块是{floorData.moduleName}
|
|
28
27
|
</View>
|
|
29
28
|
)
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
const getFloorSetHeight = (item) => {
|
|
33
32
|
const getHeight = item?.floorExtInfo?.floorHeight
|
|
34
33
|
? Number(item?.floorExtInfo?.floorHeight)
|
|
35
34
|
: 200
|
|
36
35
|
return getHeight > 0 ? getHeight : 200
|
|
37
36
|
}
|
|
38
37
|
if (floorModuleType && RemoteLoadFloorList.includes(floorModuleType)) {
|
|
39
38
|
console.log(
|
|
40
39
|
'>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
|
|
41
40
|
)
|
|
42
41
|
const renderResult = (() => {
|
|
43
42
|
try {
|
|
44
43
|
console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
|
|
45
44
|
console.log(
|
|
46
45
|
'==========当前业务类型renderSourceType、楼层floorId: ',
|
|
47
46
|
renderSourceType,
|
|
48
47
|
floorData.uid,
|
|
49
48
|
)
|
|
50
49
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
51
50
|
const modularPackResultObj =
|
|
52
51
|
typeof modularPackResult === 'string'
|
|
53
52
|
? JSON.parse(modularPackResult)
|
|
54
53
|
: modularPackResult
|
|
55
54
|
if (modularPackResultObj) {
|
|
56
55
|
const { bundleUrl, bundleFileName } = modularPackResultObj
|
|
57
56
|
if (bundleUrl && bundleFileName) {
|
|
58
57
|
let ISVModule =
|
|
59
58
|
taroJdBaseInfo?.renderedIsvComponents[
|
|
60
59
|
`${floorData.uid}_${bundleFileName}`
|
|
61
60
|
] || null
|
|
62
61
|
if (!ISVModule) {
|
|
63
62
|
ISVModule = lazy(
|
|
64
63
|
() => import(bundleFileName + '@@@@@@' + bundleUrl),
|
|
65
64
|
)
|
|
66
65
|
console.log(
|
|
67
66
|
'1|加载isv模块==========走lazy import生成新的isv模块react组件',
|
|
68
67
|
bundleFileName,
|
|
69
68
|
)
|
|
70
69
|
taroJdBaseInfo.renderedIsvComponents[
|
|
71
70
|
`${floorData.uid}_${bundleFileName}`
|
|
72
71
|
] = ISVModule
|
|
73
72
|
console.log(
|
|
74
73
|
'2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
|
|
75
74
|
bundleFileName,
|
|
76
75
|
window['taroJshopH5WebpackJsonp'].find(
|
|
77
76
|
(item) => item[0][0] == bundleFileName,
|
|
78
77
|
),
|
|
79
78
|
)
|
|
80
79
|
} else {
|
|
81
80
|
console.log(
|
|
82
81
|
'1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
|
|
83
82
|
taroJdBaseInfo,
|
|
84
83
|
)
|
|
85
84
|
console.log(
|
|
86
85
|
'2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
|
|
87
86
|
taroJdBaseInfo.renderedIsvComponents[
|
|
88
87
|
`${floorData.uid}_${bundleFileName}`
|
|
89
88
|
],
|
|
90
89
|
)
|
|
91
90
|
}
|
|
92
91
|
const _floorHeight = getFloorSetHeight(floorData)
|
|
93
92
|
return (
|
|
94
93
|
<ErrorBoundary {...props}>
|
|
95
94
|
<Suspense
|
|
96
95
|
fallback={
|
|
97
96
|
<View
|
|
98
97
|
style={{
|
|
99
98
|
position: 'relative',
|
|
100
99
|
background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
|
|
101
100
|
height: `${_floorHeight}px`,
|
|
102
101
|
}}
|
|
103
102
|
></View>
|
|
104
103
|
}
|
|
105
104
|
>
|
|
106
105
|
<ISVFloor {...props} dataDefines={dataDefines}>
|
|
107
106
|
<ISVModule {...props} dataDefines={dataDefines}></ISVModule>
|
|
108
107
|
</ISVFloor>
|
|
109
108
|
</Suspense>
|
|
110
109
|
</ErrorBoundary>
|
|
111
110
|
)
|
|
112
111
|
} else {
|
|
113
112
|
console.log(
|
|
114
113
|
'3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
|
|
115
114
|
modularPackResultObj,
|
|
116
115
|
)
|
|
117
116
|
DraJSAgentReport(
|
|
118
117
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
119
118
|
{
|
|
120
119
|
buildType,
|
|
121
120
|
uid: floorData?.uid,
|
|
122
121
|
floorIdx: floorData?.floorIdx,
|
|
123
122
|
shopId: floorData?.floorExtInfo?.shopId,
|
|
124
123
|
moduleId: floorData?.moduleId,
|
|
125
124
|
moduleName: floorData?.moduleName,
|
|
126
125
|
middleTemplateId: floorData?.middleTemplateId,
|
|
127
126
|
modularPackResult: modularPackResult,
|
|
128
127
|
},
|
|
129
128
|
)
|
|
130
129
|
return null
|
|
131
130
|
}
|
|
132
131
|
} else {
|
|
133
132
|
console.log(
|
|
134
133
|
'3|isv模块渲染异常,缺少modularPackResult==========modularPackResult: ',
|
|
135
134
|
modularPackResultObj,
|
|
136
135
|
)
|
|
137
136
|
DraJSAgentReport(
|
|
138
137
|
`店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
139
138
|
{
|
|
140
139
|
buildType,
|
|
141
140
|
uid: floorData?.uid,
|
|
142
141
|
floorIdx: floorData?.floorIdx,
|
|
143
142
|
shopId: floorData?.floorExtInfo?.shopId,
|
|
144
143
|
moduleId: floorData?.moduleId,
|
|
145
144
|
moduleName: floorData?.moduleName,
|
|
146
145
|
middleTemplateId: floorData?.middleTemplateId,
|
|
147
146
|
modularPackResult: modularPackResult,
|
|
148
147
|
},
|
|
149
148
|
)
|
|
150
149
|
return null
|
|
151
150
|
}
|
|
152
151
|
} catch (err) {
|
|
153
152
|
console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
|
|
154
153
|
DraJSAgentReportException(err)
|
|
155
154
|
return null
|
|
156
155
|
}
|
|
157
156
|
})()
|
|
158
157
|
if (renderResult === null) {
|
|
159
158
|
updateContainerFloorListDataFn &&
|
|
160
159
|
updateContainerFloorListDataFn({
|
|
161
160
|
type: 'filter',
|
|
162
161
|
containerId: floorData?.uid,
|
|
163
162
|
})
|
|
164
163
|
console.log('renderResult === null: 命中了!')
|
|
165
164
|
taroEventSendPageScrollInfo()
|
|
166
165
|
} else {
|
|
167
166
|
console.log('renderResult !== null: 没命中', renderResult)
|
|
168
167
|
}
|
|
169
168
|
return renderResult
|
|
170
169
|
} else {
|
|
171
170
|
return FloorContentItem ? (
|
|
172
171
|
<ErrorBoundary {...props}>
|
|
173
172
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
174
173
|
</ErrorBoundary>
|
|
175
174
|
) : isDevMode ? (
|
|
176
175
|
renderDecorateDefaultModule()
|
|
177
176
|
) : null
|
|
178
177
|
}
|
|
179
178
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
180
179
|
switch (moduleId) {
|
|
181
180
|
case 83158:
|
|
182
181
|
return 'freeLayout'
|
|
183
182
|
case 99654:
|
|
184
183
|
return 'activeText'
|
|
185
184
|
case 100382:
|
|
186
185
|
return 'superGoods'
|
|
187
186
|
}
|
|
188
187
|
floorList.map((item) => {
|
|
189
188
|
if (!item.floorExtInfo) {
|
|
190
189
|
return null
|
|
191
190
|
}
|
|
192
191
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
193
192
|
if (!moduleFlag) {
|
|
194
193
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
195
194
|
if (newModuleFlag) {
|
|
196
195
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
197
196
|
}
|
|
198
197
|
}
|
|
199
198
|
})
|
|
199
|
+
import React from 'react'
|
|
200
200
|
const { floorData, renderSourceType, builtInComponents = {} } = props
|
|
201
201
|
const isDevMode = renderSourceType === BUSINESS_TYPE.DECORATE
|
|
202
202
|
const floorModuleType: any = floorData?.floorExtInfo?.moduleFlag
|
|
203
203
|
const FloorContentItem =
|
|
204
204
|
(floorModuleType && builtInComponents[floorModuleType]) || null
|
|
205
205
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
206
206
|
|
|
207
207
|
const renderDecorateDefaultModule = () => {
|
|
208
208
|
return (
|
|
209
209
|
<View
|
|
210
210
|
style={{
|
|
211
211
|
lineHeight: '120px',
|
|
212
212
|
textAlign: 'center',
|
|
213
213
|
}}
|
|
214
214
|
>
|
|
215
215
|
当前模块是{floorData.moduleName}
|
|
216
216
|
</View>
|
|
217
217
|
)
|
|
218
218
|
}
|
|
219
219
|
if (floorModuleType && RemoteLoadFloorList.includes(floorModuleType)) {
|
|
220
220
|
return (
|
|
221
221
|
<RemoteFloorItem {...props} dataDefines={dataDefines}></RemoteFloorItem>
|
|
222
222
|
)
|
|
223
223
|
} else {
|
|
224
224
|
return FloorContentItem ? (
|
|
225
225
|
<ErrorBoundary {...props}>
|
|
226
226
|
<FloorContentItem {...props} dataDefines={dataDefines} />
|
|
227
227
|
</ErrorBoundary>
|
|
228
228
|
) : isDevMode ? (
|
|
229
229
|
renderDecorateDefaultModule()
|
|
230
230
|
) : null
|
|
231
231
|
}
|
|
232
232
|
renderSourceType: BUSINESS_TYPE.ONLINE,
|
|
233
233
|
switch (moduleId) {
|
|
234
234
|
case 83158:
|
|
235
235
|
return 'freeLayout'
|
|
236
236
|
case 99654:
|
|
237
237
|
return 'activeText'
|
|
238
238
|
case 100382:
|
|
239
239
|
return 'superGoods'
|
|
240
240
|
}
|
|
241
241
|
floorList.map((item) => {
|
|
242
242
|
if (!item.floorExtInfo) {
|
|
243
243
|
return null
|
|
244
244
|
}
|
|
245
245
|
const moduleFlag = item.floorExtInfo.moduleFlag
|
|
246
246
|
if (!moduleFlag) {
|
|
247
247
|
const newModuleFlag = moduleId2ModuleFlag(item.moduleId)
|
|
248
248
|
if (newModuleFlag) {
|
|
249
249
|
item.floorExtInfo.moduleFlag = newModuleFlag
|
|
250
250
|
}
|
|
251
251
|
}
|
|
252
252
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import React, { Suspense, lazy } from 'react'
|
|
2
|
const { floorData, renderSourceType, updateContainerFloorListDataFn } = props
|
|
1
3
|
const dataDefines = getFloorDataToDataDefines(floorData)
|
|
2
4
|
|
|
3
5
|
const getFloorSetHeight = (item) => {
|
|
4
6
|
const getHeight = item?.floorExtInfo?.floorHeight
|
|
5
7
|
? Number(item?.floorExtInfo?.floorHeight)
|
|
6
8
|
: 200
|
|
7
9
|
return getHeight > 0 ? getHeight : 200
|
|
8
10
|
}
|
|
9
11
|
console.log(
|
|
10
12
|
'>>>>>>>>>> floorModuleType === FloorModuleType.ISVDESIGNERH5MODULE >>>>>>>>>>',
|
|
11
13
|
)
|
|
12
14
|
const renderResult = (() => {
|
|
13
15
|
try {
|
|
14
16
|
console.log('>>>>>>>>>> 开始渲染1个isv模块 >>>>>>>>>>')
|
|
15
17
|
console.log(
|
|
16
18
|
'==========当前业务类型renderSourceType、楼层floorId: ',
|
|
17
19
|
renderSourceType,
|
|
18
20
|
floorData.uid,
|
|
19
21
|
)
|
|
20
22
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
21
23
|
const modularPackResultObj =
|
|
22
24
|
typeof modularPackResult === 'string'
|
|
23
25
|
? JSON.parse(modularPackResult)
|
|
24
26
|
: modularPackResult
|
|
25
27
|
const opt = {
|
|
26
28
|
msg: `店铺首页isv h5楼层隐藏不显示。原因:modularPackResult数据不完备。页面类型-buildType: ${buildType}。楼层顺序-floorIdx: ${floorData?.floorIdx}`,
|
|
27
29
|
buildType,
|
|
28
30
|
uid: floorData?.uid,
|
|
29
31
|
floorIdx: floorData?.floorIdx,
|
|
30
32
|
shopId: floorData?.floorExtInfo?.shopId,
|
|
31
33
|
moduleId: floorData?.moduleId,
|
|
32
34
|
moduleName: floorData?.moduleName,
|
|
33
35
|
middleTemplateId: floorData?.middleTemplateId,
|
|
34
36
|
modularPackResult: modularPackResult,
|
|
35
37
|
}
|
|
36
38
|
if (modularPackResultObj) {
|
|
37
39
|
const { bundleUrl, bundleFileName } = modularPackResultObj
|
|
38
40
|
if (bundleUrl && bundleFileName) {
|
|
39
41
|
let ISVModule =
|
|
40
42
|
taroJdBaseInfo?.renderedIsvComponents[
|
|
41
43
|
`${floorData.uid}_${bundleFileName}`
|
|
42
44
|
] || null
|
|
43
45
|
if (!ISVModule) {
|
|
44
46
|
ISVModule = lazy(
|
|
45
47
|
() => import(bundleFileName + '@@@@@@' + bundleUrl),
|
|
46
48
|
)
|
|
47
49
|
console.log(
|
|
48
50
|
'1|加载isv模块==========走lazy import生成新的isv模块react组件',
|
|
49
51
|
bundleFileName,
|
|
50
52
|
)
|
|
51
53
|
taroJdBaseInfo.renderedIsvComponents[
|
|
52
54
|
`${floorData.uid}_${bundleFileName}`
|
|
53
55
|
] = ISVModule
|
|
54
56
|
console.log(
|
|
55
57
|
'2|渲染isv模块的react组件==========,window.taroJshopH5WebpackJsonp上的组件是否已就绪: ',
|
|
56
58
|
bundleFileName,
|
|
57
59
|
window['taroJshopH5WebpackJsonp'].find(
|
|
58
60
|
(item) => item[0][0] == bundleFileName,
|
|
59
61
|
),
|
|
60
62
|
)
|
|
61
63
|
} else {
|
|
62
64
|
console.log(
|
|
63
65
|
'1|加载isv模块==========不走lazy import生成新的isv模块react组件,从已加载中获取,taroJdBaseInfo: ',
|
|
64
66
|
taroJdBaseInfo,
|
|
65
67
|
)
|
|
66
68
|
console.log(
|
|
67
69
|
'2|渲染isv模块的react组件==========,taroJdBaseInfo.renderedIsvComponents上的组件是否已就绪: ',
|
|
68
70
|
taroJdBaseInfo.renderedIsvComponents[
|
|
69
71
|
`${floorData.uid}_${bundleFileName}`
|
|
70
72
|
],
|
|
71
73
|
)
|
|
72
74
|
}
|
|
73
75
|
const _floorHeight = getFloorSetHeight(floorData)
|
|
74
76
|
return (
|
|
75
77
|
<ErrorBoundary {...props}>
|
|
76
78
|
<Suspense
|
|
77
79
|
fallback={
|
|
78
80
|
<View
|
|
79
81
|
style={{
|
|
80
82
|
position: 'relative',
|
|
81
83
|
background: `#ffffff url('${JD_PLACEHOLDER_IMG}') center center no-repeat`,
|
|
82
84
|
height: `${_floorHeight}px`,
|
|
83
85
|
}}
|
|
84
86
|
></View>
|
|
85
87
|
}
|
|
86
88
|
>
|
|
87
89
|
<ISVFloor {...props} dataDefines={dataDefines}>
|
|
88
90
|
<ISVModule {...props} dataDefines={dataDefines}></ISVModule>
|
|
89
91
|
</ISVFloor>
|
|
90
92
|
</Suspense>
|
|
91
93
|
</ErrorBoundary>
|
|
92
94
|
)
|
|
93
95
|
} else {
|
|
94
96
|
console.log(
|
|
95
97
|
'3|isv模块渲染异常,modularPackResult中缺少bundleUrl或bundleFileName==========modularPackResult: ',
|
|
96
98
|
modularPackResultObj,
|
|
97
99
|
)
|
|
98
100
|
sgmCustomReport({
|
|
99
101
|
code: 'isvModuleError',
|
|
100
102
|
msg: opt,
|
|
101
103
|
})
|
|
102
104
|
return null
|
|
103
105
|
}
|
|
104
106
|
} else {
|
|
105
107
|
console.log(
|
|
106
108
|
'3|isv模块渲染异常,缺少modularPackResult==========modularPackResult: ',
|
|
107
109
|
modularPackResultObj,
|
|
108
110
|
)
|
|
109
111
|
sgmCustomReport({
|
|
110
112
|
code: 'isvModuleError',
|
|
111
113
|
msg: opt,
|
|
112
114
|
})
|
|
113
115
|
return null
|
|
114
116
|
}
|
|
115
117
|
} catch (err) {
|
|
116
118
|
console.log('3|isv模块渲染异常,floorItem逻辑错误==========err: ', err)
|
|
117
119
|
sgmCustomReport({
|
|
118
120
|
code: 'isvModuleError',
|
|
119
121
|
msg: {
|
|
120
122
|
msg: 'remoteFloorItem try catch 异常',
|
|
121
123
|
err
|
|
122
124
|
},
|
|
123
125
|
})
|
|
124
126
|
return null
|
|
125
127
|
}
|
|
126
128
|
})()
|
|
127
129
|
if (renderResult === null) {
|
|
128
130
|
updateContainerFloorListDataFn &&
|
|
129
131
|
updateContainerFloorListDataFn({
|
|
130
132
|
type: 'filter',
|
|
131
133
|
containerId: floorData?.uid,
|
|
132
134
|
})
|
|
133
135
|
console.log('renderResult === null: 命中了!')
|
|
134
136
|
taroEventSendPageScrollInfo()
|
|
135
137
|
} else {
|
|
136
138
|
console.log('renderResult !== null: 没命中', renderResult)
|
|
137
139
|
}
|
|
138
140
|
return renderResult
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import global from '../common'
|
|
2
1
|
if(mInfo == 'custom') return etModelInfo
|
|
3
2
|
if(mInfo == 'custom') return etModelInfo
|
|
3
|
+
import global from '../common'
|
|
4
4
|
return mInfo === 'custom' ? etModelInfo : this.getClickEventInfo(floorData,mInfo,etModelInfo,true,true)
|
|
5
5
|
return mInfo === 'custom' ? etModelInfo : this.getExposureInfo(floorData,mInfo,etModelInfo,true,true)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export enum LogPnameInfo {
|
|
2
1
|
HOME = 'home',
|
|
3
2
|
MEMBER = 'member',
|
|
4
3
|
CLASSIFY = 'classify',
|
|
5
4
|
PROMOTION = 'promotion',
|
|
6
5
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
7
6
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
8
7
|
APP_SHOP_MEMBER = 'Shop_ShopCard',
|
|
9
8
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
10
9
|
APP_SHOP_MEMBER = 'Shop_ShopCard'
|
|
10
|
+
export enum LogPnameInfo {
|
|
11
11
|
HOME = 'home',
|
|
12
12
|
MEMBER = 'member',
|
|
13
13
|
CLASSIFY = 'classify',
|
|
14
14
|
PROMOTION = 'promotion',
|
|
15
15
|
WX_SHOP_HOME = 'wx_shop_home',
|
|
16
16
|
APP_SHOP_DETAIL = 'app_Shop_ShopDetail',
|
|
17
17
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
18
18
|
APP_SHOP_MEMBER = 'Shop_ShopCard',
|
|
19
19
|
MOBILE_SEARCH = 'MShop_SearchResult',
|
|
20
20
|
APP_SHOP_MEMBER = 'Shop_ShopCard'
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
/* 2023-
|
|
2
|
-
var Taro=require("@tarojs/taro");!function(t){var e={};"weapp"===process.env.TARO_ENV&&(e={1e3:["direct","t_1000578828_xcx_1000_wxtd","xcx",""],1001:["direct","t_1000578828_xcx_1001_fxrk","xcx",""],1005:["weixin","t_1000578826_xcx_1005_fxss","xcx",""],1006:["weixin","t_1000578826_xcx_1006_fxss","xcx",""],1007:["weixin","t_1000578832_xcx_1007_drxxkp","xcx",""],1008:["weixin","t_1000578832_xcx_1008_qlxxkp","xcx",""],1010:["direct","t_1000578828_xcx_1010_scj","xcx",""],1011:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1012:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1013:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1014:["weixin","t_1000578827_xcx_1014_xcxmbxx","xcx",""],1017:["weixin","t_1000578829_xcx_1017_tyb","xcx",""],1019:["direct","t_1000578830_xcx_1019_qb","xcx",""],1020:["weixin","t_1000072662_xcx_1020_gzhjs","xcx",""],1022:["direct","t_1000578828_xcx_1022_zdrk","xcx",""],1023:["direct","t_1000578828_xcx_1023_zmtb","xcx",""],1024:["direct","t_1000578828_xcx_1024_xcxjs","xcx",""],1025:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1026:["weixin","t_1000578829_xcx_1026_fjxcx","xcx",""],1027:["weixin","t_1000578826_xcx_1027_dbss","xcx",""],1028:["direct","t_1000578836_xcx_1028_kqkb","xcx",""],1029:["direct","t_1000578836_xcx_1029_kqxq","xcx",""],1030:["weixin","t_1000578829_xcx_1030_zdhcs","xcx",""],1031:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1032:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1034:["weixin","t_1000578827_xcx_1034_zfwcxx","xcx",""],1035:["weixin","t_1000072662_xcx_1035_cdl","xcx",""],1036:["weixin","t_335139774_xcx_1036_appfxxx","xcx",""],1037:["weixin","t_1000578834_xcx_1037_xcxtz","xcx",""],1038:["weixin","t_1000578834_xcx_1038_xcxtz","xcx",""],1039:["weixin","t_1000578829_xcx_1039_yds","xcx",""],1042:["weixin","t_1000578826_xcx_1042_tjss","xcx",""],1043:["weixin","t_1000072662_xcx_1043_gzhxx","xcx",""],1044:["weixin","t_1000578832_xcx_1044_fxxxkp","xcx",""],1045:["weixin","t_1000578835_xcx_1045_pyq","xcx",""],1046:["weixin","t_1000578835_xcx_1046_xqy","xcx",""],1047:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1048:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1049:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1052:["direct","t_1000578836_xcx_1052_kqmdlb","xcx",""],1053:["weixin","t_1000578826_xcx_1053_sys","xcx",""],1054:["direct","t_1000578828_xcx_1054_dbss","xcx",""],1055:["weixin","t_1000578829_xcx_1055_h5hq","xcx",""],1056:["weixin","t_1000578829_xcx_1056_ylbf","xcx",""],1057:["direct","t_1000578830_xcx_1057_yxkxqy","xcx",""],1058:["weixin","t_1000072663_xcx_1058_gzhwz","xcx",""],1059:["weixin","t_1000578829_xcx_1059_yqy","xcx",""],1064:["weixin","t_1000578829_xcx_1064_wifilj","xcx",""],1067:["weixin","t_1000578835_xcx_1067_gzh","xcx",""],1068:["weixin","t_1000578835_xcx_1068_fjxcx","xcx",""],1069:["weixin","t_1000578829_xcx_1069_ydyy","xcx",""],1071:["direct","t_1000578830_xcx_1071_yxklby","xcx",""],1072:["weixin","t_1000578833_xcx_1072_ewmsk","xcx",""],1073:["weixin","t_1000578829_xcx_1073_kfxx","xcx",""],1074:["weixin","t_1000072663_xcx_1074_gzhxx","xcx",""],1077:["weixin","t_1000578829_xcx_1077_yzb","xcx",""],1078:["weixin","t_1000578829_xcx_1078_wifilj","xcx",""],1079:["weixin","t_1000578829_xcx_1079_yxzx","xcx",""],1081:["weixin","t_1000578829_xcx_1081_kfwzl","xcx",""],1082:["weixin","t_1000072663_xcx_1082_hhwzl","xcx",""],1084:["weixin","t_1000578835_xcx_1084_ysy","xcx",""],1088:["direct","t_1000578828_xcx_1088_hhxx","xcx",""],1089:["direct","t_1000578828_xcx_1089_ltkxl","xcx",""],1090:["direct","t_1000578828_xcx_1090_xcxcd","xcx",""],1091:["weixin","t_1000072663_xcx_1091_wzspkp","xcx",""],1092:["direct","t_1000578829_xcx_1092_csfwrk","xcx",""],1095:["weixin","t_1000578835_xcx_1095_xcxzj","xcx",""],1096:["direct","t_1000578828_xcx_1096_ltjl","xcx",""],1097:["weixin","t_1000578829_xcx_1097_zfqy","xcx",""],1099:["direct","t_1000578829_xcx_1099_cj","xcx",""],1100:["direct","t_1000578828_xcx_1100_hbfmxqy","xcx",""],1102:["weixin","t_1000072663_xcx_1102_fwyl","xcx",""],1103:["direct","t_1000578829_xcx_1103_fxwd","xcx",""],1104:["direct","t_1000578829_xcx_1104_xlwd","xcx",""],1106:["direct","t_1000578828_xcx_1106_xlss","xcx",""],1107:["direct","t_1000578828_xcx_1107_dyxx","xcx",""],1112:["direct","t_1000072660_17008_79","xcx",""],1113:["direct","t_1000578828_xcx_1113_azfyp","xcx",""],1114:["direct","t_1000578828_xcx_1114_azcbl","xcx",""],1119:["direct","t_1000578828_xcx_1119_qywxgzt","xcx",""],1120:["direct","t_1000578828_xcx_1120_qywxgrzl","xcx",""],1121:["weixin","t_1000578832_xcx_1121_qywxltjhk","xcx",""],1124:["weixin","t_1000578833_xcx_1124_smywym","xcx",""],1125:["weixin","t_1000578833_xcx_1124_smywym","xcx",""],1126:["weixin","t_1000578833_xcx_1124_smywym","xcx",""],1129:["weixin","t_1000578829_xcx_1129_pc","xcx",""],1131:["direct","t_1000578828_xcx_1131_fcdk","xcx",""],1133:["direct","t_1000578828_xcx_1133_yjsb","xcx",""],1135:["weixin","t_1000578829_xcx_1135_zcxtz","xcx",""],1150:["weixin","t_1000578833_xcx_1150_sspm","xcx",""],1152:["weixin","t_1000072663_xcx_1152_dyhspdkxcx","xcx",""],1153:["weixin","t_1000578833_xcx_1253_swjgy","xcx",""],1154:["weixin","t_1000578832_xcx_1154_pyqdy","xcx",""],1155:["weixin","t_1000578832_xcx_1155_pyqdytz","xcx",""],1157:["weixin","t_1000578832_xcx_1157_fqhhhk","xcx",""],1158:["weixin","t_1000578832_xcx_1158_qgjdkxcx","xcx",""],1167:["direct","t_1000578828_xcx_1167_bqtz","xcx",""],1168:["weixin","t_1000578828_xcx_1168_qqllq","xcx",""]});var n=function(e){var n="";try{n=t.getStorageSync(e)}catch(t){}return n},i=function(e,n){try{t.setStorageSync(e,n)}catch(t){}},x=t.request,r=t.getSystemInfo,a=t.getNetworkType,c="";"weapp"===process.env.TARO_ENV?c="wx-app":"swan"===process.env.TARO_ENV?c="baidu-app":"tt"===process.env.TARO_ENV?c="toutiao-app":"alipay"===process.env.TARO_ENV?c="alipay-app":"rn"===process.env.TARO_ENV?c="rn-app":"h5"===process.env.TARO_ENV&&(c="h5-app");var _="__jda",s="__jdd",o="__jdv",p="__debugId__",d="__sysExtKey__",u="union_customerinfo",h=864e5,l=86400,v=1800,f="__refer",g="5YT%aC89$22OI@pQ",m=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},w=0;function y(t){t=t||"tr-"+w++,this.name=t,this.logCache=[],this.env=[],this.ext={},this.isReady=y.isWxDataReady,y.loggerList&&y.loggerList instanceof Array&&y.loggerList.push(this),y.isInitJda||(y.initJda(),y.isInitJda=!0)}y.loggerList=[],y.dependList={sysinfo:0,netType:0},y.isWxDataReady=!1,y.instance=!1,y.getInstance=function(){return y.instance||(y.instance=new y)},y.getMulInstance=function(t){return new y(t)},y.dataReady=function(t){if(!y.isWxDataReady){y.dependList[t]=1;for(var e in y.dependList)if(!y.dependList[e])return;y.isWxDataReady=!0;e=0;for(var n=y.loggerList.length;e<n;e++)y.loggerList[e].ready();delete y.loggerList}},y.pr=y.prototype,y.pr.ready=function(){this.isReady=!0;for(var t=this.logCache.length,e=0;e<t;e++)this.sendData.apply(this,this.logCache[e])},y.pr.sendData=function(t,e,n){var i;(i="pv"==e?this.initPvData(n):"cl"==e?this.initClickData(n):"cd"==e?this.initShoppingData(n):"od"==e?this.initOrderData(n):"sr"==e?this.initPageUnloadData(n):"ep"==e?this.initExposureData(n):n).tpc=t,i.report_ts=D()/1e3,i.token=y.md5(i.report_ts+g),i.data[0].typ=e,i.data[0].debugId=this.env[st]||"",this.request(i,"sr"==e||"cl"==e)},y.pr.send=function(t,e,n){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},y.pr.request=function(t,e){var n=!1,i=!!this.env[st];if(x({url:m(i)+"?std="+t.std,data:t,method:"POST",header:{"content-type":"application/json"},success:function(t){n=!0}}),e)for(var r=D()+100;D()<r||n;);},y.pr.exports=function(){var t=this;return{set:function(e){t.setData(e)},pv:function(e){t.lastPvTime&&D()-t.lastPvTime<100||(t.lastPvTime=D(),t.setData(e),t.setupPageview(!0),t.send("wx_app.000000","pv",e))},click:function(e){t.send("wx_app.000001","cl",e)},exposure:function(e){t.send("wx_app.000005","ep",e)},autoClick:function(e){var n,i=e.target.dataset,x=e.currentTarget.dataset;if(i&&i.eid?n=i:x&&x.eid&&(n=x),n){var r={eid:n.eid,elevel:n.elevel,eparam:n.eparam,pname:n.pname,pparam:n.pparam,target:n.target,event:e};t.send("wx_app.000001","cl",r)}},addToCart:function(e){t.send("wx_app.000002","cd",e)},order:function(e){t.send("wx_app.000003","od",e)},pageUnload:function(e){t.send("wx_app.000004","sr",e)},getSeries:function(){return t.env[L]||(t.setupPageview(),t.env[L]=!0),JSON.stringify(t.getSeriesData())},urlAddSeries:function(t){var e=(t||"").indexOf("#"),n="wxappSeries="+encodeURIComponent(this.getSeries());return e>-1?e===t.length-1?t+n:t+"&"+n:t+"#"+n},setMParam:function(e){return t.setMParam(e)},getJda:function(){return n(_)},getJdv:function(){return n(o)},getStorage:function(t){return n(t)},setStorage:function(t,e){return i(t,e)},setJdv:function(t){return t&&5===t.split("|").length&&i(o,t+"|"+D())}}},function(t){var e=0;function n(t){return x(i(r(t)))}function i(t){return c(_(a(t),8*t.length))}function x(t){for(var n,i=e?"0123456789ABCDEF":"0123456789abcdef",x="",r=0;r<t.length;r++)n=t.charCodeAt(r),x+=i.charAt(n>>>4&15)+i.charAt(15&n);return x}function r(t){for(var e,n,i="",x=-1;++x<t.length;)e=t.charCodeAt(x),n=x+1<t.length?t.charCodeAt(x+1):0,55296<=e&&e<=56319&&56320<=n&&n<=57343&&(e=65536+((1023&e)<<10)+(1023&n),x++),e<=127?i+=String.fromCharCode(e):e<=2047?i+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?i+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(i+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return i}function a(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 c(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e}function _(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,i=-271733879,x=-1732584194,r=271733878,a=0;a<t.length;a+=16){var c=n,_=i,s=x,l=r;i=u(i=u(i=u(i=u(i=d(i=d(i=d(i=d(i=p(i=p(i=p(i=p(i=o(i=o(i=o(i=o(i,x=o(x,r=o(r,n=o(n,i,x,r,t[a+0],7,-680876936),i,x,t[a+1],12,-389564586),n,i,t[a+2],17,606105819),r,n,t[a+3],22,-1044525330),x=o(x,r=o(r,n=o(n,i,x,r,t[a+4],7,-176418897),i,x,t[a+5],12,1200080426),n,i,t[a+6],17,-1473231341),r,n,t[a+7],22,-45705983),x=o(x,r=o(r,n=o(n,i,x,r,t[a+8],7,1770035416),i,x,t[a+9],12,-1958414417),n,i,t[a+10],17,-42063),r,n,t[a+11],22,-1990404162),x=o(x,r=o(r,n=o(n,i,x,r,t[a+12],7,1804603682),i,x,t[a+13],12,-40341101),n,i,t[a+14],17,-1502002290),r,n,t[a+15],22,1236535329),x=p(x,r=p(r,n=p(n,i,x,r,t[a+1],5,-165796510),i,x,t[a+6],9,-1069501632),n,i,t[a+11],14,643717713),r,n,t[a+0],20,-373897302),x=p(x,r=p(r,n=p(n,i,x,r,t[a+5],5,-701558691),i,x,t[a+10],9,38016083),n,i,t[a+15],14,-660478335),r,n,t[a+4],20,-405537848),x=p(x,r=p(r,n=p(n,i,x,r,t[a+9],5,568446438),i,x,t[a+14],9,-1019803690),n,i,t[a+3],14,-187363961),r,n,t[a+8],20,1163531501),x=p(x,r=p(r,n=p(n,i,x,r,t[a+13],5,-1444681467),i,x,t[a+2],9,-51403784),n,i,t[a+7],14,1735328473),r,n,t[a+12],20,-1926607734),x=d(x,r=d(r,n=d(n,i,x,r,t[a+5],4,-378558),i,x,t[a+8],11,-2022574463),n,i,t[a+11],16,1839030562),r,n,t[a+14],23,-35309556),x=d(x,r=d(r,n=d(n,i,x,r,t[a+1],4,-1530992060),i,x,t[a+4],11,1272893353),n,i,t[a+7],16,-155497632),r,n,t[a+10],23,-1094730640),x=d(x,r=d(r,n=d(n,i,x,r,t[a+13],4,681279174),i,x,t[a+0],11,-358537222),n,i,t[a+3],16,-722521979),r,n,t[a+6],23,76029189),x=d(x,r=d(r,n=d(n,i,x,r,t[a+9],4,-640364487),i,x,t[a+12],11,-421815835),n,i,t[a+15],16,530742520),r,n,t[a+2],23,-995338651),x=u(x,r=u(r,n=u(n,i,x,r,t[a+0],6,-198630844),i,x,t[a+7],10,1126891415),n,i,t[a+14],15,-1416354905),r,n,t[a+5],21,-57434055),x=u(x,r=u(r,n=u(n,i,x,r,t[a+12],6,1700485571),i,x,t[a+3],10,-1894986606),n,i,t[a+10],15,-1051523),r,n,t[a+1],21,-2054922799),x=u(x,r=u(r,n=u(n,i,x,r,t[a+8],6,1873313359),i,x,t[a+15],10,-30611744),n,i,t[a+6],15,-1560198380),r,n,t[a+13],21,1309151649),x=u(x,r=u(r,n=u(n,i,x,r,t[a+4],6,-145523070),i,x,t[a+11],10,-1120210379),n,i,t[a+2],15,718787259),r,n,t[a+9],21,-343485551),n=h(n,c),i=h(i,_),x=h(x,s),r=h(r,l)}return Array(n,i,x,r)}function s(t,e,n,i,x,r){return h((a=h(h(e,t),h(i,r)))<<(c=x)|a>>>32-c,n);var a,c}function o(t,e,n,i,x,r,a){return s(e&n|~e&i,t,e,x,r,a)}function p(t,e,n,i,x,r,a){return s(e&i|n&~i,t,e,x,r,a)}function d(t,e,n,i,x,r,a){return s(e^n^i,t,e,x,r,a)}function u(t,e,n,i,x,r,a){return s(n^(e|~i),t,e,x,r,a)}function h(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}y.md5=n}();var D=function(){return(new Date).getTime()},k=function(){return D()+""+parseInt(2147483647*Math.random())},P=function(t){return"[object Object]"=={}.toString.call(t)},C=function(t,e){if(P(t)&&P(e))for(var n in e)t[n]=e[n]},q=function(t){var e=[];if(P(t))for(var n in t)"m_param"!==n&&e.push(n+"="+t[n]);return e.join("&")},I=function(t){if(P(t))for(var e in t)return!1;return!0},R=0,j=R++,b=R++,S=R++,A=R++,z=R++,T=R++,U=R++,E=R++,O=R++,L=R++,J=R++,N=R++,M=R++,V=R++,W=R++,X=R++,$=R++,F=R++,K=R++,Y=R++,B=R++,H=R++,Q=R++,G=R++,Z=R++,tt=R++,et=R++,nt=R++,it=R++,xt=R++,rt=R++,at=R++,ct=R++,_t=R++,st=R++;y.pr.getData=function(t){for(var e={},n=0,i=t.length;n<i;n++){var x=t[n];e[x[0]]=this.env[x[1]]||""}return e};var ot=null;y.pr.getPname=function(t){return(t=t||{}).pname||this.env[Y]||this.env[M]||this.env[X]||""},y.pr.getPparam=function(t){return(t=t||{}).pparam||this.env[B]||this.env[V]||this.env[$]||""},y.pr.getUrl=function(){return this.env[M]||this.env[X]||""},y.pr.getUrlParam=function(){return this.env[V]||this.env[$]||""},y.pr.setupPageview=function(t){var x,r,a,c=this.env,d=D(),g=parseInt(d/1e3),m=n(_),w=n(s),C=n(o),R=n(p);c[J]=!0;try{var j=(mt=getCurrentPages())[mt.length-1];c[X]=j.route||j.__route__||"";var L=P(j.options)?j.options:{};c[$]=q(L)||"",c[F]=L,this.setMParam((this.env[W]||{}).m_param||L.m_param)}catch(t){}c[O]=!1,x=g,r=c,(a=(w||"").split(".")).length>1?r[O]=r[O]||1*a[1]+v<x:r[O]=!0;var N,M,V,K,Y,B,G,Z,tt,xt,rt,at,pt,dt,ut=function(t,n,i){var x=(t||"").split("|"),r="",a="",c="",_="",s=!0;x.length>=6&&n-x[5]<=h&&(r=x[1],a=x[2],c=x[3],_=x[4],s=!1);var o=I(i[W])?i[F]:i[W],p=[];if(ot&&e[ot]){var d=e[ot];p[0]=d[0],p[1]=encodeURIComponent(d[1]),p[2]=encodeURIComponent(d[2])||"none",p[3]=encodeURIComponent(d[3])||"-",ot=null}o&&o.utm_source&&(p[0]=encodeURIComponent(o.utm_source),p[1]=encodeURIComponent(o.utm_campaign||"")||a,p[2]=encodeURIComponent(o.utm_medium||"")||c,p[3]=encodeURIComponent(o.utm_term||"")||_,_=p[3],s=!0);var u=!1;p.length>0&&"direct"!=p[0]?u=(p[0]!==r||p[1]!==a||p[2]!==c)&&"referral"!==p[2]:p.length>0&&"direct"==p[0]&&("direct"===r||!r)&&(u=p[1]!==a||p[2]!==c||p[3]!==_);var l="";return u&&(r=p[0]||r,a=p[1]||a,c=p[2]||c,_=p[3]||_),(s||u)&&(l=[1,r||"direct",a||"-",c||"none",_||"-",n].join("|")),i[O]=i[O]||u,l}(C,d,c),ht=(xt=g,rt=c,at=t,pt=(w||"").split("."),dt=1,pt.length>1?(rt[O]=rt[O]||1*pt[1]+v<xt,dt=(rt[O]?1:at?1*pt[0]+1:1*pt[0])||1):rt[O]=!0,rt[T]=dt,dt+"."+xt),lt=(N=g,M=c,G=(m||"").split("."),Z=1,tt=1,G.length>5?(Z=G[0]||Z,V=G[1]||k(),K=G[2]||N,M[O]?(Y=G[4]||N,B=N,tt=1*G[5]+1||1):(Y=G[3]||N,B=G[4]||N,tt=1*G[5]||1)):(V=k(),K=Y=B=N,tt=1),M[ct]=Z,M[b]=V,M[S]=K,M[A]=Y,M[z]=B,M[U]=tt,[Z,V,K,Y,B,tt].join("."));i(s,ht),i(_,lt),ut&&i(o,ut),c[E]=ut||C,y.setAppData(),function(t){if(t[_t]&&t[_t].pv_sid&&t[_t].pv_seq){var e=1*t[_t].pv_sid,n=1*t[_t].pv_seq;e>99999999||(e>t[U]||e==t[U]&&n>=t[T])&&(t[U]=e,t[T]=n+1)}}(c);var vt,ft,gt=function(t,e,n){var i=I(n[W])?n[F]:n[W],x="",r="";if(i&&i.customerinfo)x=i.customerinfo,r=e;else{var a=t instanceof Array?t:[];2==a.length&&e-a[1]<l&&(x=a[0],r=a[1])}return n[it]=x,x?[x,r]:[]}(n(u),g,c);i(u,gt),vt=this.env,(ft=n("jdwcx")||n("jdzdm"))&&(ft.unionid&&(vt[et]=ft.unionid),ft.wxversion&&(vt[nt]=ft.wxversion));try{j=(mt=getCurrentPages())[mt.length-1];var mt,wt=P(j.options)?j.options:{},yt=decodeURIComponent(wt.scene),Dt=new RegExp("(^|&)"+p+"=([^&]*)(&|$)"),kt=yt.match(Dt),Pt=wt[p];null!=kt&&(Pt=kt[2]),Pt?(i(p,Pt),R=Pt):c[O]&&(i(p,""),R=""),c[st]=R}catch(t){}if(c[O])c[H]="",c[Q]="";else{var Ct=n(f);c[H]=Ct[0],c[Q]=Ct[1]}i(f,[this.getUrl(),this.getUrlParam()])},y.pr.initMulcommonData=function(){var t=y.instance&&y.instance.env||[],e={account:G,siteId:j,appid:Z,openid:tt,unionid:et};for(var n in e)this.env[e[n]]=this.env[e[n]]||t[e[n]]},y.pr.initPvData=function(t){this.pageLoadTime=D(),this.maxClickDeep=0,t=t||{};var e=this.baseEnv(),n=e.data[0];return n.page_id=this.env[K]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.sku=this.env[xt]||"",n.shp=this.env[rt]||"",n.tit=this.env[N]||"",n.ldt=this.env[at]||"",C(n.ext,t.ext),e},y.pr.initClickData=function(t){var e,n=this.baseEnv(),i=n.data[0];if(i.eid=t.eid||"",i.eparam=t.eparam||"",i.elevel=t.elevel||"",i.page_id=t.pageId||this.env[K]||"",i.pname=this.getPname(t),i.pparam=this.getPparam(t),i.tar=t.target||"",i.x=0,i.y=0,e=t.event,P(e)&&e.type&&e.target){var x=t.event,r=x.touches;if((!r||r.length<1)&&(r=x.changedTouches),r&&r.length>0){i.x=parseInt(r[0].pageX);var a=parseInt(r[0].pageY);i.y=a,a>this.maxClickDeep&&(this.maxClickDeep=a)}}return C(i.ext,t.ext),n},y.pr.initExposureData=y.pr.initClickData,y.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[K]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.sku_list=t.shoppingList?JSON.stringify(t.shoppingList):"",C(n.ext,t.ext),e},y.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[K]||"",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||"",C(n.ext,t.ext),e},y.pr.initPageUnloadData=function(t){var e=((D()-this.pageLoadTime)/1e3).toFixed(3),n=this.baseEnv(),i=n.data[0];return t=t||{},i.page_id=t.pageId||this.env[K]||"",i.pname=this.getPname(t),i.pparam=this.getPparam(t),i.alive_seconds=e,i.click_deep=this.maxClickDeep,C(i.ext,t.ext),n},function(){y.wxDat={};var t=y.wxDat;r({success:function(e){e&&(t.dvc=e.model,t.pixelRatio=(e.pixelRatio||"")+"",t.scr=parseInt(e.windowWidth)+"x"+parseInt(e.windowHeight),t.lang=e.language,t.wxver=e.version,t.sdkver=e.SDKVersion||"")},complete:function(){y.dataReady("sysinfo")}}),a({success:function(e){e&&(t.net=e.networkType)},complete:function(){y.dataReady("netType")}})}(),y.pr.setData=function(t){t=P(t)?t:{};var e=P(t.urlParam)?t.urlParam:{},i={skuid:[xt],shopid:[rt],title:[N],loadtime:[at],url:[M],urlParam:[V,q],pname:[Y],pparam:[B],pageId:[K]},x={account:[G],siteId:[j],appid:[Z],openid:[tt],unionid:[et]};this.ext={},this.env[W]=e,this.setMParam(e.m_param);for(var r in i){var a=i[r];this.env[a[0]]=t[r]?a[1]?a[1](t[r]):t[r]:"",delete t[r]}for(var r in x){a=x[r];this.env[a[0]]=t[r]?a[1]?a[1](t[r]):t[r]:this.env[a[0]]||"",delete t[r]}for(var r in t)"ext"!==r&&(this.ext[r]=t[r]);this.env[Z]||(this.env[Z]=n("appid"))},y.appDat={},y.setAppData=function(t){try{var e={},x=n(d);C(e,x),C(e,t);for(var r in e)y.appDat[r]=e[r];i(d,e)}catch(t){}},y.clearAppData=function(){y.appDat={},function(e){try{t.removeStorageSync(e)}catch(t){}}(d)},y.scene=null,y.setScene=function(t){y.scene=t,ot=t},y.pr.setMParam=function(t){try{var e=JSON.parse(t);this.env[_t]=P(e)?e:{}}catch(t){this.env[_t]={}}},y.pr.baseEnv=function(){n(s).split(".");this===y.instance?this.env[J]||this.setupPageview():this.initCommon||(this.initMulcommonData(),this.initCommon=!0);var t=this.env,e=y.wxDat,i={cli:c,std:t[j]||"WXAPP-JA2016-1",uuid:t[b]||"",scr:e.scr||"",dvc:e.dvc||"",lang:e.lang||"",appkey:t[nt]||"",appid:t[Z]||"",openid:t[tt]||"",unionid:t[et]||"",gender:e.gender||"",city:e.city||"",province:e.province||"",country:e.country||"",wxver:e.wxver||"",data:[]},x=[["realUrl",X],["realParam",$],["ref",H],["rpr",Q],["seq",T],["vts",U],["pin",G],["fst",S],["pst",A],["vct",z]],r=this.getData(x);return r.jsver="TR1.0.1",r.net=e.net||"",r.lat=e.lat||"",r.lon=e.lon||"",r.speed=e.speed||"",r.accuracy=e.accuracy||"",r.pixelRatio=e.pixelRatio||"",r.jdv=t[E]||"",r.customerInfo=t[it]||"",r.ctp=this.getUrl(),r.par=this.getUrlParam(),r.unpl=n("unpl")||"",r.scene=y.scene||"",r.sdkver=e.sdkver||"",r.ext={},r.std_param=y.appDat,C(r.ext,this.ext),C(r.ext,y.appDat),i.data.push(r),i},y.pr.getSeriesData=function(){var t=this.env,e={uuid:t[b]||"",std:t[j]||"WXAPP-JA2016-1",seq:t[T],vts:t[U]};return t[nt]&&(e.appkey=t[nt]),t[Z]&&(e.appid=t[Z]),t[st]&&(e.debugId=t[st]),e},y.initJda=function(){var t=n(_);if(!t){var e=D();t=[1,k(),e,e,e,0].join("."),i(_,t)}return t},module.exports={init:function(t){return y.getInstance().exports()},instance:function(t){return y.getMulInstance(t).exports()},usePlugin:function(t){if(t)try{pluginObj=requirePlugin(t)}catch(t){}},setAppData:function(t){y.setAppData(t)},clearAppData:function(){y.clearAppData()},setScene:function(t){y.setScene(t)}}}(Taro);
|
|
1
|
+
/* 2023-09-26 11:08:34 @issue to huangzhihua@jd.com Thanks */
|
|
2
|
+
var Taro=require("@tarojs/taro");!function(t){var e={};"weapp"===process.env.TARO_ENV&&(e={1e3:["direct","t_1000578828_xcx_1000_wxtd","xcx",""],1001:["direct","t_1000578828_xcx_1001_fxrk","xcx",""],1005:["weixin","t_1000578826_xcx_1005_fxss","xcx",""],1006:["weixin","t_1000578826_xcx_1006_fxss","xcx",""],1007:["weixin","t_1000578832_xcx_1007_drxxkp","xcx",""],1008:["weixin","t_1000578832_xcx_1008_qlxxkp","xcx",""],1010:["direct","t_1000578828_xcx_1010_scj","xcx",""],1011:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1012:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1013:["weixin","t_1000578833_xcx_1011_smewm","xcx",""],1014:["weixin","t_1000578827_xcx_1014_xcxmbxx","xcx",""],1017:["weixin","t_1000578829_xcx_1017_tyb","xcx",""],1019:["direct","t_1000578830_xcx_1019_qb","xcx",""],1020:["weixin","t_1000072662_xcx_1020_gzhjs","xcx",""],1022:["direct","t_1000578828_xcx_1022_zdrk","xcx",""],1023:["direct","t_1000578828_xcx_1023_zmtb","xcx",""],1024:["direct","t_1000578828_xcx_1024_xcxjs","xcx",""],1025:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1026:["weixin","t_1000578829_xcx_1026_fjxcx","xcx",""],1027:["weixin","t_1000578826_xcx_1027_dbss","xcx",""],1028:["direct","t_1000578836_xcx_1028_kqkb","xcx",""],1029:["direct","t_1000578836_xcx_1029_kqxq","xcx",""],1030:["weixin","t_1000578829_xcx_1030_zdhcs","xcx",""],1031:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1032:["weixin","t_1000578833_xcx_1025_smywm","xcx",""],1034:["weixin","t_1000578827_xcx_1034_zfwcxx","xcx",""],1035:["weixin","t_1000072662_xcx_1035_cdl","xcx",""],1036:["weixin","t_335139774_xcx_1036_appfxxx","xcx",""],1037:["weixin","t_1000578834_xcx_1037_xcxtz","xcx",""],1038:["weixin","t_1000578834_xcx_1038_xcxtz","xcx",""],1039:["weixin","t_1000578829_xcx_1039_yds","xcx",""],1042:["weixin","t_1000578826_xcx_1042_tjss","xcx",""],1043:["weixin","t_1000072662_xcx_1043_gzhxx","xcx",""],1044:["weixin","t_1000578832_xcx_1044_fxxxkp","xcx",""],1045:["weixin","t_1000578835_xcx_1045_pyq","xcx",""],1046:["weixin","t_1000578835_xcx_1046_xqy","xcx",""],1047:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1048:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1049:["weixin","t_1000578833_xcx_1047_smxcxm","xcx",""],1052:["direct","t_1000578836_xcx_1052_kqmdlb","xcx",""],1053:["weixin","t_1000578826_xcx_1053_sys","xcx",""],1054:["direct","t_1000578828_xcx_1054_dbss","xcx",""],1055:["weixin","t_1000578829_xcx_1055_h5hq","xcx",""],1056:["weixin","t_1000578829_xcx_1056_ylbf","xcx",""],1057:["direct","t_1000578830_xcx_1057_yxkxqy","xcx",""],1058:["weixin","t_1000072663_xcx_1058_gzhwz","xcx",""],1059:["weixin","t_1000578829_xcx_1059_yqy","xcx",""],1064:["weixin","t_1000578829_xcx_1064_wifilj","xcx",""],1067:["weixin","t_1000578835_xcx_1067_gzh","xcx",""],1068:["weixin","t_1000578835_xcx_1068_fjxcx","xcx",""],1069:["weixin","t_1000578829_xcx_1069_ydyy","xcx",""],1071:["direct","t_1000578830_xcx_1071_yxklby","xcx",""],1072:["weixin","t_1000578833_xcx_1072_ewmsk","xcx",""],1073:["weixin","t_1000578829_xcx_1073_kfxx","xcx",""],1074:["weixin","t_1000072663_xcx_1074_gzhxx","xcx",""],1077:["weixin","t_1000578829_xcx_1077_yzb","xcx",""],1078:["weixin","t_1000578829_xcx_1078_wifilj","xcx",""],1079:["weixin","t_1000578829_xcx_1079_yxzx","xcx",""],1081:["weixin","t_1000578829_xcx_1081_kfwzl","xcx",""],1082:["weixin","t_1000072663_xcx_1082_hhwzl","xcx",""],1084:["weixin","t_1000578835_xcx_1084_ysy","xcx",""],1088:["direct","t_1000578828_xcx_1088_hhxx","xcx",""],1089:["direct","t_1000578828_xcx_1089_ltkxl","xcx",""],1090:["direct","t_1000578828_xcx_1090_xcxcd","xcx",""],1091:["weixin","t_1000072663_xcx_1091_wzspkp","xcx",""],1092:["direct","t_1000578829_xcx_1092_csfwrk","xcx",""],1095:["weixin","t_1000578835_xcx_1095_xcxzj","xcx",""],1096:["direct","t_1000578828_xcx_1096_ltjl","xcx",""],1097:["weixin","t_1000578829_xcx_1097_zfqy","xcx",""],1099:["direct","t_1000578829_xcx_1099_cj","xcx",""],1100:["direct","t_1000578828_xcx_1100_hbfmxqy","xcx",""],1102:["weixin","t_1000072663_xcx_1102_fwyl","xcx",""],1103:["direct","t_1000578829_xcx_1103_fxwd","xcx",""],1104:["direct","t_1000578829_xcx_1104_xlwd","xcx",""],1106:["direct","t_1000578828_xcx_1106_xlss","xcx",""],1107:["direct","t_1000578828_xcx_1107_dyxx","xcx",""],1112:["direct","t_1000072660_17008_79","xcx",""],1113:["direct","t_1000578828_xcx_1113_azfyp","xcx",""],1114:["direct","t_1000578828_xcx_1114_azcbl","xcx",""],1119:["direct","t_1000578828_xcx_1119_qywxgzt","xcx",""],1120:["direct","t_1000578828_xcx_1120_qywxgrzl","xcx",""],1121:["weixin","t_1000578832_xcx_1121_qywxltjhk","xcx",""],1124:["weixin","t_1000578833_xcx_1124_smywym","xcx",""],1125:["weixin","t_1000578833_xcx_1124_smywym","xcx",""],1126:["weixin","t_1000578833_xcx_1124_smywym","xcx",""],1129:["weixin","t_1000578829_xcx_1129_pc","xcx",""],1131:["direct","t_1000578828_xcx_1131_fcdk","xcx",""],1133:["direct","t_1000578828_xcx_1133_yjsb","xcx",""],1135:["weixin","t_1000578829_xcx_1135_zcxtz","xcx",""],1150:["weixin","t_1000578833_xcx_1150_sspm","xcx",""],1152:["weixin","t_1000072663_xcx_1152_dyhspdkxcx","xcx",""],1153:["weixin","t_1000578833_xcx_1253_swjgy","xcx",""],1154:["weixin","t_1000578832_xcx_1154_pyqdy","xcx",""],1155:["weixin","t_1000578832_xcx_1155_pyqdytz","xcx",""],1157:["weixin","t_1000578832_xcx_1157_fqhhhk","xcx",""],1158:["weixin","t_1000578832_xcx_1158_qgjdkxcx","xcx",""],1167:["direct","t_1000578828_xcx_1167_bqtz","xcx",""],1168:["weixin","t_1000578828_xcx_1168_qqllq","xcx",""]});var n=function(e){var n="";try{n=t.getStorageSync(e)}catch(t){}return n},i=function(e,n){try{t.setStorageSync(e,n)}catch(t){}},x=t.request,r=t.getSystemInfo,a=t.getNetworkType,c="";"weapp"===process.env.TARO_ENV?c="wx-app":"swan"===process.env.TARO_ENV?c="baidu-app":"tt"===process.env.TARO_ENV?c="toutiao-app":"alipay"===process.env.TARO_ENV?c="alipay-app":"rn"===process.env.TARO_ENV?c="rn-app":"h5"===process.env.TARO_ENV&&(c="h5-app");var _="__jda",s="__jdd",o="__jdv",p="__debugId__",d="__sysExtKey__",u="union_customerinfo",h=864e5,l=86400,v=1800,f="__refer",g="5YT%aC89$22OI@pQ",m=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},w=0;function y(t){t=t||"tr-"+w++,this.name=t,this.logCache=[],this.env=[],this.ext={},this.isReady=y.isWxDataReady,y.loggerList&&y.loggerList instanceof Array&&y.loggerList.push(this),y.isInitJda||(y.initJda(),y.isInitJda=!0)}y.loggerList=[],y.dependList={sysinfo:0,netType:0},y.isWxDataReady=!1,y.instance=!1,y.getInstance=function(){return y.instance||(y.instance=new y)},y.getMulInstance=function(t){return new y(t)},y.dataReady=function(t){if(!y.isWxDataReady){y.dependList[t]=1;for(var e in y.dependList)if(!y.dependList[e])return;y.isWxDataReady=!0;e=0;for(var n=y.loggerList.length;e<n;e++)y.loggerList[e].ready();delete y.loggerList}},y.pr=y.prototype,y.pr.ready=function(){this.isReady=!0;for(var t=this.logCache.length,e=0;e<t;e++)this.sendData.apply(this,this.logCache[e])},y.pr.sendData=function(t,e,n){var i;(i="pv"==e?this.initPvData(n):"cl"==e?this.initClickData(n):"cd"==e?this.initShoppingData(n):"od"==e?this.initOrderData(n):"sr"==e?this.initPageUnloadData(n):"ep"==e?this.initExposureData(n):n).tpc=t,i.report_ts=D()/1e3,i.token=y.md5(i.report_ts+g),i.data[0].typ=e,i.data[0].debugId=this.env[st]||"",this.request(i,"sr"==e||"cl"==e)},y.pr.send=function(t,e,n){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},y.pr.request=function(t,e){var n=!1,i=!!this.env[st];if(x({url:m(i)+"?std="+t.std,data:t,method:"POST",header:{"content-type":"application/json"},success:function(t){n=!0}}),e)for(var r=D()+100;D()<r||n;);},y.pr.exports=function(){var t=this;return{set:function(e){t.setData(e)},pv:function(e){t.lastPvTime&&D()-t.lastPvTime<100||(t.lastPvTime=D(),t.setData(e),t.setupPageview(!0),t.send("wx_app.000000","pv",e))},click:function(e){t.send("wx_app.000001","cl",e)},exposure:function(e){t.send("wx_app.000005","ep",e)},autoClick:function(e){var n,i=e.target.dataset,x=e.currentTarget.dataset;if(i&&i.eid?n=i:x&&x.eid&&(n=x),n){var r={eid:n.eid,elevel:n.elevel,eparam:n.eparam,pname:n.pname,pparam:n.pparam,target:n.target,event:e};t.send("wx_app.000001","cl",r)}},addToCart:function(e){t.send("wx_app.000002","cd",e)},order:function(e){t.send("wx_app.000003","od",e)},pageUnload:function(e){t.send("wx_app.000004","sr",e)},getSeries:function(){return t.env[L]||(t.setupPageview(),t.env[L]=!0),JSON.stringify(t.getSeriesData())},urlAddSeries:function(t){var e=(t||"").indexOf("#"),n="wxappSeries="+encodeURIComponent(this.getSeries());return e>-1?e===t.length-1?t+n:t+"&"+n:t+"#"+n},setMParam:function(e){return t.setMParam(e)},getJda:function(){return n(_)},getJdv:function(){return n(o)},getStorage:function(t){return n(t)},setStorage:function(t,e){return i(t,e)},setJdv:function(t){return t&&5===t.split("|").length&&i(o,t+"|"+D())}}},function(t){var e=0;function n(t){return x(i(r(t)))}function i(t){return c(_(a(t),8*t.length))}function x(t){for(var n,i=e?"0123456789ABCDEF":"0123456789abcdef",x="",r=0;r<t.length;r++)n=t.charCodeAt(r),x+=i.charAt(n>>>4&15)+i.charAt(15&n);return x}function r(t){for(var e,n,i="",x=-1;++x<t.length;)e=t.charCodeAt(x),n=x+1<t.length?t.charCodeAt(x+1):0,55296<=e&&e<=56319&&56320<=n&&n<=57343&&(e=65536+((1023&e)<<10)+(1023&n),x++),e<=127?i+=String.fromCharCode(e):e<=2047?i+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?i+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(i+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return i}function a(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 c(t){for(var e="",n=0;n<32*t.length;n+=8)e+=String.fromCharCode(t[n>>5]>>>n%32&255);return e}function _(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var n=1732584193,i=-271733879,x=-1732584194,r=271733878,a=0;a<t.length;a+=16){var c=n,_=i,s=x,l=r;i=u(i=u(i=u(i=u(i=d(i=d(i=d(i=d(i=p(i=p(i=p(i=p(i=o(i=o(i=o(i=o(i,x=o(x,r=o(r,n=o(n,i,x,r,t[a+0],7,-680876936),i,x,t[a+1],12,-389564586),n,i,t[a+2],17,606105819),r,n,t[a+3],22,-1044525330),x=o(x,r=o(r,n=o(n,i,x,r,t[a+4],7,-176418897),i,x,t[a+5],12,1200080426),n,i,t[a+6],17,-1473231341),r,n,t[a+7],22,-45705983),x=o(x,r=o(r,n=o(n,i,x,r,t[a+8],7,1770035416),i,x,t[a+9],12,-1958414417),n,i,t[a+10],17,-42063),r,n,t[a+11],22,-1990404162),x=o(x,r=o(r,n=o(n,i,x,r,t[a+12],7,1804603682),i,x,t[a+13],12,-40341101),n,i,t[a+14],17,-1502002290),r,n,t[a+15],22,1236535329),x=p(x,r=p(r,n=p(n,i,x,r,t[a+1],5,-165796510),i,x,t[a+6],9,-1069501632),n,i,t[a+11],14,643717713),r,n,t[a+0],20,-373897302),x=p(x,r=p(r,n=p(n,i,x,r,t[a+5],5,-701558691),i,x,t[a+10],9,38016083),n,i,t[a+15],14,-660478335),r,n,t[a+4],20,-405537848),x=p(x,r=p(r,n=p(n,i,x,r,t[a+9],5,568446438),i,x,t[a+14],9,-1019803690),n,i,t[a+3],14,-187363961),r,n,t[a+8],20,1163531501),x=p(x,r=p(r,n=p(n,i,x,r,t[a+13],5,-1444681467),i,x,t[a+2],9,-51403784),n,i,t[a+7],14,1735328473),r,n,t[a+12],20,-1926607734),x=d(x,r=d(r,n=d(n,i,x,r,t[a+5],4,-378558),i,x,t[a+8],11,-2022574463),n,i,t[a+11],16,1839030562),r,n,t[a+14],23,-35309556),x=d(x,r=d(r,n=d(n,i,x,r,t[a+1],4,-1530992060),i,x,t[a+4],11,1272893353),n,i,t[a+7],16,-155497632),r,n,t[a+10],23,-1094730640),x=d(x,r=d(r,n=d(n,i,x,r,t[a+13],4,681279174),i,x,t[a+0],11,-358537222),n,i,t[a+3],16,-722521979),r,n,t[a+6],23,76029189),x=d(x,r=d(r,n=d(n,i,x,r,t[a+9],4,-640364487),i,x,t[a+12],11,-421815835),n,i,t[a+15],16,530742520),r,n,t[a+2],23,-995338651),x=u(x,r=u(r,n=u(n,i,x,r,t[a+0],6,-198630844),i,x,t[a+7],10,1126891415),n,i,t[a+14],15,-1416354905),r,n,t[a+5],21,-57434055),x=u(x,r=u(r,n=u(n,i,x,r,t[a+12],6,1700485571),i,x,t[a+3],10,-1894986606),n,i,t[a+10],15,-1051523),r,n,t[a+1],21,-2054922799),x=u(x,r=u(r,n=u(n,i,x,r,t[a+8],6,1873313359),i,x,t[a+15],10,-30611744),n,i,t[a+6],15,-1560198380),r,n,t[a+13],21,1309151649),x=u(x,r=u(r,n=u(n,i,x,r,t[a+4],6,-145523070),i,x,t[a+11],10,-1120210379),n,i,t[a+2],15,718787259),r,n,t[a+9],21,-343485551),n=h(n,c),i=h(i,_),x=h(x,s),r=h(r,l)}return Array(n,i,x,r)}function s(t,e,n,i,x,r){return h((a=h(h(e,t),h(i,r)))<<(c=x)|a>>>32-c,n);var a,c}function o(t,e,n,i,x,r,a){return s(e&n|~e&i,t,e,x,r,a)}function p(t,e,n,i,x,r,a){return s(e&i|n&~i,t,e,x,r,a)}function d(t,e,n,i,x,r,a){return s(e^n^i,t,e,x,r,a)}function u(t,e,n,i,x,r,a){return s(n^(e|~i),t,e,x,r,a)}function h(t,e){var n=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(n>>16)<<16|65535&n}y.md5=n}();var D=function(){return(new Date).getTime()},k=function(){return D()+""+parseInt(2147483647*Math.random())},P=function(t){return"[object Object]"=={}.toString.call(t)},C=function(t,e){if(P(t)&&P(e))for(var n in e)t[n]=e[n]},q=function(t){var e=[];if(P(t))for(var n in t)"m_param"!==n&&e.push(n+"="+t[n]);return e.join("&")},I=function(t){if(P(t))for(var e in t)return!1;return!0},R=0,j=R++,b=R++,S=R++,A=R++,z=R++,T=R++,U=R++,E=R++,O=R++,L=R++,J=R++,N=R++,M=R++,V=R++,W=R++,X=R++,$=R++,F=R++,K=R++,Y=R++,B=R++,H=R++,Q=R++,G=R++,Z=R++,tt=R++,et=R++,nt=R++,it=R++,xt=R++,rt=R++,at=R++,ct=R++,_t=R++,st=R++;y.pr.getData=function(t){for(var e={},n=0,i=t.length;n<i;n++){var x=t[n];e[x[0]]=this.env[x[1]]||""}return e};var ot=null;y.pr.getPname=function(t){return(t=t||{}).pname||this.env[Y]||this.env[M]||this.env[X]||""},y.pr.getPparam=function(t){return(t=t||{}).pparam||this.env[B]||this.env[V]||this.env[$]||""},y.pr.getUrl=function(){return this.env[M]||this.env[X]||""},y.pr.getUrlParam=function(){return this.env[V]||this.env[$]||""},y.pr.setupPageview=function(t){var x,r,a,c=this.env,d=D(),g=parseInt(d/1e3),m=n(_),w=n(s),C=n(o),R=n(p);c[J]=!0;try{var j=(mt=getCurrentPages())[mt.length-1];c[X]=j.route||j.__route__||"";var L=P(j.options)?j.options:{};c[$]=q(L)||"",c[F]=L,this.setMParam((this.env[W]||{}).m_param||L.m_param)}catch(t){}c[O]=!1,x=g,r=c,(a=(w||"").split(".")).length>1?r[O]=r[O]||1*a[1]+v<x:r[O]=!0;var N,M,V,K,Y,B,G,Z,tt,xt,rt,at,pt,dt,ut=function(t,n,i){var x=(t||"").split("|"),r="",a="",c="",_="",s=!0;x.length>=6&&n-x[5]<=h&&(r=x[1],a=x[2],c=x[3],_=x[4],s=!1);var o=I(i[W])?i[F]:i[W],p=[];if(ot&&e[ot]){var d=e[ot];p[0]=d[0],p[1]=encodeURIComponent(d[1]),p[2]=encodeURIComponent(d[2])||"none",p[3]=encodeURIComponent(d[3])||"-",ot=null}o&&o.utm_source&&(p[0]=encodeURIComponent(o.utm_source),p[1]=encodeURIComponent(o.utm_campaign||"")||a,p[2]=encodeURIComponent(o.utm_medium||"")||c,p[3]=encodeURIComponent(o.utm_term||"")||_,_=p[3],s=!0);var u=!1;p.length>0&&"direct"!=p[0]?u=(p[0]!==r||p[1]!==a||p[2]!==c)&&"referral"!==p[2]:p.length>0&&"direct"==p[0]&&("direct"===r||!r)&&(u=p[1]!==a||p[2]!==c||p[3]!==_);var l="";return u&&(r=p[0]||r,a=p[1]||a,c=p[2]||c,_=p[3]||_),(s||u)&&(l=[1,r||"direct",a||"-",c||"none",_||"-",n].join("|")),i[O]=i[O]||u,l}(C,d,c),ht=(xt=g,rt=c,at=t,pt=(w||"").split("."),dt=1,pt.length>1?(rt[O]=rt[O]||1*pt[1]+v<xt,dt=(rt[O]?1:at?1*pt[0]+1:1*pt[0])||1):rt[O]=!0,rt[T]=dt,dt+"."+xt),lt=(N=g,M=c,G=(m||"").split("."),Z=1,tt=1,G.length>5?(Z=G[0]||Z,V=G[1]||k(),K=G[2]||N,M[O]?(Y=G[4]||N,B=N,tt=1*G[5]+1||1):(Y=G[3]||N,B=G[4]||N,tt=1*G[5]||1)):(V=k(),K=Y=B=N,tt=1),M[ct]=Z,M[b]=V,M[S]=K,M[A]=Y,M[z]=B,M[U]=tt,[Z,V,K,Y,B,tt].join("."));i(s,ht),i(_,lt),ut&&i(o,ut),c[E]=ut||C,y.setAppData(),function(t){if(t[_t]&&t[_t].pv_sid&&t[_t].pv_seq){var e=1*t[_t].pv_sid,n=1*t[_t].pv_seq;e>99999999||(e>t[U]||e==t[U]&&n>=t[T])&&(t[U]=e,t[T]=n+1)}}(c);var vt,ft,gt=function(t,e,n){var i=I(n[W])?n[F]:n[W],x="",r="";if(i&&i.customerinfo)x=i.customerinfo,r=e;else{var a=t instanceof Array?t:[];2==a.length&&e-a[1]<l&&(x=a[0],r=a[1])}return n[it]=x,x?[x,r]:[]}(n(u),g,c);i(u,gt),vt=this.env,(ft=n("jdwcx")||n("jdzdm"))&&(ft.unionid&&(vt[et]=ft.unionid),ft.wxversion&&(vt[nt]=ft.wxversion));try{j=(mt=getCurrentPages())[mt.length-1];var mt,wt=P(j.options)?j.options:{},yt=decodeURIComponent(wt.scene),Dt=new RegExp("(^|&)"+p+"=([^&]*)(&|$)"),kt=yt.match(Dt),Pt=wt[p];null!=kt&&(Pt=kt[2]),Pt?(i(p,Pt),R=Pt):c[O]&&(i(p,""),R=""),c[st]=R}catch(t){}if(c[O])c[H]="",c[Q]="";else{var Ct=n(f);c[H]=Ct[0],c[Q]=Ct[1]}i(f,[this.getUrl(),this.getUrlParam()])},y.pr.initMulcommonData=function(){var t=y.instance&&y.instance.env||[],e={account:G,siteId:j,appid:Z,openid:tt,unionid:et};for(var n in e)this.env[e[n]]=this.env[e[n]]||t[e[n]]},y.pr.initPvData=function(t){this.pageLoadTime=D(),this.maxClickDeep=0,t=t||{};var e=this.baseEnv(),n=e.data[0];return n.page_id=this.env[K]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.sku=this.env[xt]||"",n.shp=this.env[rt]||"",n.tit=this.env[N]||"",n.ldt=this.env[at]||"",C(n.ext,t.ext),e},y.pr.initClickData=function(t){var e,n=this.baseEnv(),i=n.data[0];if(i.eid=t.eid||"",i.eparam=t.eparam||"",i.elevel=t.elevel||"",i.page_id=t.pageId||this.env[K]||"",i.pname=this.getPname(t),i.pparam=this.getPparam(t),i.tar=t.target||"",i.x=0,i.y=0,e=t.event,P(e)&&e.type&&e.target){var x=t.event,r=x.touches;if((!r||r.length<1)&&(r=x.changedTouches),r&&r.length>0){i.x=parseInt(r[0].pageX);var a=parseInt(r[0].pageY);i.y=a,a>this.maxClickDeep&&(this.maxClickDeep=a)}}return C(i.ext,t.ext),n},y.pr.initExposureData=y.pr.initClickData,y.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[K]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.sku_list=t.shoppingList?JSON.stringify(t.shoppingList):"",C(n.ext,t.ext),e},y.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[K]||"",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||"",C(n.ext,t.ext),e},y.pr.initPageUnloadData=function(t){var e=((D()-this.pageLoadTime)/1e3).toFixed(3),n=this.baseEnv(),i=n.data[0];return t=t||{},i.page_id=t.pageId||this.env[K]||"",i.pname=this.getPname(t),i.pparam=this.getPparam(t),i.alive_seconds=e,i.click_deep=this.maxClickDeep,C(i.ext,t.ext),n},function(){y.wxDat={};var t=y.wxDat;r({success:function(e){e&&(t.dvc=e.model,t.pixelRatio=(e.pixelRatio||"")+"",t.scr=parseInt(e.windowWidth)+"x"+parseInt(e.windowHeight),t.lang=e.language,t.wxver=e.version,t.sdkver=e.SDKVersion||"")},complete:function(){y.dataReady("sysinfo")}}),a({success:function(e){e&&(t.net=e.networkType)},complete:function(){y.dataReady("netType")}})}(),y.pr.setData=function(t){t=P(t)?t:{};var e=P(t.urlParam)?t.urlParam:{},i={skuid:[xt],shopid:[rt],title:[N],loadtime:[at],url:[M],urlParam:[V,q],pname:[Y],pparam:[B],pageId:[K]},x={account:[G],siteId:[j],appid:[Z],openid:[tt],unionid:[et]};this.ext={},this.env[W]=e,this.setMParam(e.m_param);for(var r in i){var a=i[r];this.env[a[0]]=t[r]?a[1]?a[1](t[r]):t[r]:"",delete t[r]}for(var r in x){a=x[r];this.env[a[0]]=t[r]?a[1]?a[1](t[r]):t[r]:this.env[a[0]]||"",delete t[r]}for(var r in t)"ext"!==r&&(this.ext[r]=t[r]);this.env[Z]||(this.env[Z]=n("appid"))},y.appDat={},y.setAppData=function(t){try{var e={},x=n(d);C(e,x),C(e,t);for(var r in e)y.appDat[r]=e[r];i(d,e)}catch(t){}},y.clearAppData=function(){y.appDat={},function(e){try{t.removeStorageSync(e)}catch(t){}}(d)},y.scene=null,y.setScene=function(t){y.scene=t,ot=t},y.pr.setMParam=function(t){try{var e=JSON.parse(t);this.env[_t]=P(e)?e:{}}catch(t){this.env[_t]={}}},y.pr.baseEnv=function(){this===y.instance?this.env[J]||this.setupPageview():this.initCommon||(this.initMulcommonData(),this.initCommon=!0);var t=this.env,e=y.wxDat,i={cli:c,std:t[j]||"WXAPP-JA2016-1",uuid:t[b]||"",scr:e.scr||"",dvc:e.dvc||"",lang:e.lang||"",appkey:t[nt]||"",appid:t[Z]||"",openid:t[tt]||"",unionid:t[et]||"",gender:e.gender||"",city:e.city||"",province:e.province||"",country:e.country||"",wxver:e.wxver||"",data:[]},x=[["realUrl",X],["realParam",$],["ref",H],["rpr",Q],["seq",T],["vts",U],["pin",G],["fst",S],["pst",A],["vct",z]],r=this.getData(x);return r.jsver="TR1.0.1",r.net=e.net||"",r.lat=e.lat||"",r.lon=e.lon||"",r.speed=e.speed||"",r.accuracy=e.accuracy||"",r.pixelRatio=e.pixelRatio||"",r.jdv=t[E]||"",r.customerInfo=t[it]||"",r.ctp=this.getUrl(),r.par=this.getUrlParam(),r.unpl=n("unpl")||"",r.scene=y.scene||"",r.sdkver=e.sdkver||"",r.ext={},r.std_param=y.appDat,C(r.ext,this.ext),C(r.ext,y.appDat),i.data.push(r),i},y.pr.getSeriesData=function(){var t=this.env,e={uuid:t[b]||"",std:t[j]||"WXAPP-JA2016-1",seq:t[T],vts:t[U]};return t[nt]&&(e.appkey=t[nt]),t[Z]&&(e.appid=t[Z]),t[st]&&(e.debugId=t[st]),e},y.initJda=function(){var t=n(_);if(!t){var e=D();t=[1,k(),e,e,e,0].join("."),i(_,t)}return t},module.exports={init:function(t){return y.getInstance().exports()},instance:function(t){return y.getMulInstance(t).exports()},usePlugin:function(t){if(t)try{pluginObj=requirePlugin(t)}catch(t){}},setAppData:function(t){y.setAppData(t)},clearAppData:function(){y.clearAppData()},setScene:function(t){y.setScene(t)}}}(Taro);
|