@conecli/cone-render 0.8.19-beta.0 → 0.8.19-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/dist/assets/networkError.png +0 -0
  2. package/dist/common/const.ts +1 -1
  3. package/dist/common/index.h5.ts +1 -1
  4. package/dist/common/index.jd.ts +1 -1
  5. package/dist/common/index.ts +1 -1
  6. package/dist/common/index.weapp.ts +1 -1
  7. package/dist/components/base/CustomVideo/index.tsx +1 -1
  8. package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
  9. package/dist/components/base/InViewRender/index.tsx +1 -1
  10. package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
  11. package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
  12. package/dist/components/base/NetworkDataError/const.ts +1 -1
  13. package/dist/components/base/NetworkDataError/index.module.scss +19 -14
  14. package/dist/components/base/NetworkDataError/index.tsx +1 -1
  15. package/dist/interface/component.ts +1 -1
  16. package/dist/interface/utils.ts +1 -1
  17. package/dist/jumpEventReport/index.h5.ts +1 -1
  18. package/dist/jumpEventReport/index.weapp.ts +1 -1
  19. package/dist/jumpEventReport/web.jdb.ts +1 -0
  20. package/dist/libs/taroAppReport.js +2 -4
  21. package/dist/open/api/index.ts +1 -1
  22. package/dist/service/http/bMallConst.ts +1 -0
  23. package/dist/service/http/const.ts +1 -0
  24. package/dist/service/http/http.ts +1 -0
  25. package/dist/service/http/httpInterceptors.jd.ts +1 -0
  26. package/dist/service/http/httpInterceptors.ts +1 -0
  27. package/dist/service/http/index.ts +1 -0
  28. package/dist/service/requestServer.ts +1 -0
  29. package/dist/utils/connectNativeJsBridge.ts +1 -1
  30. package/dist/utils/jm-common.js +1 -1
  31. package/dist/utils/utils.ts +1 -1
  32. package/package.json +1 -1
@@ -1 +1 @@
1
- import React, { useCallback, useEffect, useRef, useState } from 'react'
2
1
  const [componentShowState, setComponentShowState] = useState(false)
3
2
  const componentLazyRef = useRef<HTMLElement | null>(null)
4
3
  const componentShowStateRef = useRef(false)
5
4
  useEffect(() => {
6
5
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
7
6
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
8
7
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
9
8
  !componentShowStateRef.current && dealPageScrollInfo(res)
10
9
  })
11
10
 
12
11
  <View
13
12
  ref={componentLazyRef}
14
13
  className={classNames(
15
14
  imageStyle['d-app-lazy-image'],
16
15
  {
17
16
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
18
17
  },
19
18
  {
20
19
  [imageStyle['d-hide-image-error']]: imageErrState,
21
20
  },
22
21
  {
23
22
  [imageStyle['d-load-completed']]: loadSuccess,
24
23
  },
25
24
  {
26
25
  'd-imag-rendering-crisp-edges':
27
26
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
28
27
  imagRenderingSet,
29
28
  },
30
29
  'J_html5ImageBg',
31
30
  className,
32
31
  )}
33
32
  style={{
34
33
  ...style,
35
34
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
36
35
  >
37
36
  {(componentShowState || lazyLoad === false) && <img
38
37
  src={getQualityImage(
39
38
  imgSrc,
40
39
  taroJdBaseInfo.info.pageInfo.isVipShop
41
40
  ? NetWorkTypeQuality['perfect']
42
41
  : NetWorkTypeQuality[getNetWorkType],
43
42
  )}
44
43
  onLoad={imageLoad.bind(this, imgSrc)}
45
44
  onError={imageError}
46
45
  />}
47
46
  </View>
48
47
  ) : (
49
48
  <Image
50
49
  style={{
51
50
  ...style,
52
51
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
53
52
  }}
54
53
  className={classNames(
55
54
  imageStyle['d-lazy-image'],
56
55
  {
57
56
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
58
57
  },
59
58
  {
60
59
  [imageStyle['d-hide-image-error']]: imageErrState,
61
60
  },
62
61
  {
63
62
  [imageStyle['d-load-completed']]: loadSuccess,
64
63
  },
65
64
  {
66
65
  'd-imag-rendering-crisp-edges': imagRenderingSet,
67
66
  },
68
67
  className,
69
68
  )}
70
69
  src={getQualityImage(
71
70
  imgSrc,
72
71
  NetWorkTypeQuality[getNetWorkType],
73
72
  )}
74
73
  lazyLoad={lazyLoad}
75
74
  onError={imageError}
76
75
  onLoad={imageLoad.bind(this, imgSrc)}
77
76
  {...otherOption}
78
77
  />
79
78
  )
79
+ import React, { useCallback, useEffect, useRef, useState } from 'react'
80
80
  const [componentShowState, setComponentShowState] = useState(false)
81
81
  const componentLazyRef = useRef<HTMLElement | null>(null)
82
82
  const componentShowStateRef = useRef(false)
83
83
  useEffect(() => {
84
84
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
85
85
  !componentShowStateRef.current && dealPageScrollInfo(latestRes)
86
86
  Taro.eventCenter.on(TaroEventType.PAGE_SCROLL, (res) => {
87
87
  !componentShowStateRef.current && dealPageScrollInfo(res)
88
88
  })
89
89
 
90
90
  if (typeof displayHeight === 'undefined' || typeof offSetY === 'undefined') return
91
91
  <View
92
92
  ref={componentLazyRef}
93
93
  className={classNames(
94
94
  imageStyle['d-app-lazy-image'],
95
95
  {
96
96
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
97
97
  },
98
98
  {
99
99
  [imageStyle['d-hide-image-error']]: imageErrState,
100
100
  },
101
101
  {
102
102
  [imageStyle['d-load-completed']]: loadSuccess,
103
103
  },
104
104
  {
105
105
  'd-imag-rendering-crisp-edges':
106
106
  !taroJdBaseInfo.info.pageInfo.isVipShop &&
107
107
  imagRenderingSet,
108
108
  },
109
109
  'J_html5ImageBg',
110
110
  className,
111
111
  )}
112
112
  style={{
113
113
  ...style,
114
114
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
115
115
  >
116
116
  {(componentShowState || lazyLoad === false) && <img
117
117
  src={getQualityImage(
118
118
  imgSrc,
119
119
  taroJdBaseInfo.info.pageInfo.isVipShop
120
120
  ? NetWorkTypeQuality['perfect']
121
121
  : NetWorkTypeQuality[getNetWorkType],
122
122
  )}
123
123
  onLoad={imageLoad.bind(this, imgSrc)}
124
124
  onError={imageError}
125
125
  />}
126
126
  </View>
127
127
  ) : (
128
128
  <Image
129
129
  style={{
130
130
  ...style,
131
131
  ...changeStyleIncludeWidthAndHeightAndBgColor(),
132
132
  }}
133
133
  className={classNames(
134
134
  imageStyle['d-lazy-image'],
135
135
  {
136
136
  [imageStyle['d-lazy-sku-image']]: isSkuImage,
137
137
  },
138
138
  {
139
139
  [imageStyle['d-hide-image-error']]: imageErrState,
140
140
  },
141
141
  {
142
142
  [imageStyle['d-load-completed']]: loadSuccess,
143
143
  },
144
144
  {
145
145
  'd-imag-rendering-crisp-edges': imagRenderingSet,
146
146
  },
147
147
  className,
148
148
  )}
149
149
  src={getQualityImage(
150
150
  imgSrc,
151
151
  NetWorkTypeQuality[getNetWorkType],
152
152
  )}
153
153
  lazyLoad={lazyLoad}
154
154
  onError={imageError}
155
155
  onLoad={imageLoad.bind(this, imgSrc)}
156
156
  {...otherOption}
157
157
  />
158
158
  )
@@ -1 +1 @@
1
- import { NETWORK_DATA_TYPE } from '../../../common/const'
1
+ import { NETWORK_DATA_TYPE } from '../../../common/const'
@@ -14,26 +14,31 @@
14
14
  }
15
15
 
16
16
  .d-error-tip {
17
- padding: 24px 0 40px;
18
17
  font-size: 28px;
18
+ font-weight: bold;
19
19
  line-height: 28px;
20
- color: #cccccc;
20
+ color: #8C8C8C;
21
+ }
22
+ .d-error-sub-tip {
23
+ margin-top: 16px;
24
+ font-size: 24px;
25
+ line-height: 24px;
26
+ color: #8C8C8C;
21
27
  }
22
-
23
28
  .d-error-type {
24
- margin: 0 auto;
25
- width: 300px;
26
- height: 300px;
29
+ width: 320px;
30
+ height: 320px;
27
31
  background-size: contain;
28
32
  background-repeat: no-repeat;
29
33
  }
30
34
 
31
35
  .d-no-network {
32
- background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/183170/9/1300/33060/6088fed9E6fad2c89/ac0c00d4d90ce536.png');
36
+ // background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/219405/34/29129/32963/64892a0eF2c068392/86c3fcf9d980ff10.png');
37
+ background-image: url('../../../assets/networkError.png');
33
38
  }
34
39
 
35
40
  .d-data-error {
36
- background-image: url('https://img11.360buyimg.com/imagetools/jfs/t1/190994/19/325/42717/6088fed0Ec4b502d5/0e8de7593fb0d06c.png');
41
+ background-image: url('https://m.360buyimg.com/imagetools/jfs/t1/106708/34/36128/37234/64896f52Fed1530e0/7b403e068aae316c.png');
37
42
  }
38
43
 
39
44
  .d-no-data {
@@ -47,10 +52,13 @@
47
52
  }
48
53
 
49
54
  .d-opt-btn {
55
+ display: flex;
56
+ justify-content: center;
57
+ align-items: center;
58
+ width: 144px;
59
+ height: 56px;
60
+ margin-top: 32px;
50
61
  padding: 0;
51
- width: 160px;
52
- height: 64px;
53
- line-height: 64px;
54
62
  font-size: 24px;
55
63
  color: #fa2c19;
56
64
  border: 1PX solid #fa2c19;
@@ -70,7 +78,4 @@
70
78
  position: absolute;
71
79
  min-height: 500px;
72
80
  background: #f2f2f2;
73
- .d-error-tip {
74
- color: #999;
75
- }
76
81
  }
@@ -1 +1 @@
1
- import { Button, View } from '@tarojs/components'
2
1
  backgroundColorWhite,
2
+ import { Button, View } from '@tarojs/components'
3
3
  NetWorkErrorSubTip,
4
4
  subMessage,
5
5
  backgroundColorWhite,
6
6
  const useErrorTip = message != '' ? message : NetWorkErrorTip[netWorkDataType]
7
7
  const useErrorSubTip = subMessage? subMessage: NetWorkErrorSubTip[netWorkDataType]
8
8
  const latestRes = latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] || {}
9
9
  const maxHeight = latestRes.displayHeight || 546
10
10
  style={{maxHeight}}
11
11
  {useErrorSubTip? <View className={netWorkErrorStyle['d-error-sub-tip']}>{useErrorSubTip}</View>: null}
12
12
  <Button
13
13
  onClick={refershInitData}
14
14
  className={classNames(
15
15
  netWorkErrorStyle['d-opt-btn'],
16
16
  'd-button-no-border',
17
17
  )}
18
18
  plain
19
19
  size="mini"
20
20
  >
21
21
  重新加载
22
22
  </Button>
23
23
  )}
24
24
  subMessage: '',
@@ -1 +1 @@
1
- import React from 'react'
2
1
  customErrorIsvFloorModule?: React.ReactElement | undefined
3
2
  containerIndex?: number
4
3
  containerData?: any
5
4
  shopTotalInfo?: any
6
5
  selectContainerFn?: Function
7
6
  selectContainerId?: string
8
7
  placeHolderPreContainerId?: string
9
8
  children?: any
10
9
  style?: {
11
10
  [key: string]: any
12
11
  };
13
12
  layoutLeftRightMargin?: number
14
13
  }
14
+ import React from 'react'
15
15
  subMessage?: string
16
16
  customErrorIsvFloorModule?: React.ReactElement | undefined
17
17
  containerIndex?: number
18
18
  containerData?: any
19
19
  shopTotalInfo?: any
20
20
  selectContainerFn?: Function
21
21
  selectContainerId?: string
22
22
  placeHolderPreContainerId?: string
23
23
  children?: any
24
24
  style?: {
25
25
  [key: string]: any
26
26
  };
27
27
  layoutLeftRightMargin?: number
28
28
  }
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
1
+ import Taro from '@tarojs/taro'
2
2
  offSetY?: number
3
3
  displayHeight?: number
4
4
  }
@@ -1 +1 @@
1
- import { isApp, getUrlQuery } from '../utils/jm-common'
1
+ import { isApp, getUrlQuery } from '../utils/jm-common'
@@ -1 +1 @@
1
- import Taro from '@tarojs/taro'
2
1
  console.log('京购商详页跳转:', this.jumpMiniPath.detail)
3
2
  if(global){
4
3
  if(global.miniAppLogInstance){
5
4
  }else{
6
5
  console.log('global.miniAppLogInstance为空!')
7
6
  }
8
7
  }else{
9
8
  console.log('global为空!')
10
9
  }
10
+ import Taro from '@tarojs/taro'
11
11
  console.log('京购商详页跳转:', this.jumpMiniPath.detail)
@@ -0,0 +1 @@
1
+ import { JdJumpJdApp } from './jdJumpJdApp'
2
  reportClick,
1
3
  reportToCart,
2
4
  routerInfo: {
3
5
  params: {},
4
6
  },
5
7
  nativeEvent: null,
6
8
  jumpConfig: {
7
9
  venderId: null,
8
10
  shopId: null,
9
11
  sourceValue: '',
10
12
  sourceType: 'App-H5',
11
13
  activityType: 'shopx',
12
14
  moduleId: 'none',
13
15
  entrance: 'none',
14
16
  },
15
17
  logPageParamStr: '',
16
18
  public logPageId: string
17
19
  public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig
18
20
  constructor(opt = {}) {
19
21
  console.log("jdb加载==========")
20
22
  super(opt)
21
23
  this.getConfig(opt)
22
24
  }
23
25
 
24
26
  jdJumpToProduct(skuParams, logEventInfo) {
25
27
  if(typeof skuParams !== 'object') {
26
28
  console.error('万商app跳转商品详情参数需要对象,详情请查看文档')
27
29
  return
28
30
  }
29
31
 
30
32
  let { skuId, bMallTag, skuUniformBizInfo } = skuParams
31
33
  skuId = skuId.toString().trim()
32
34
  this.jdNavigateToNative({
33
35
  category: 'jump',
34
36
  des: 'skudetail',
35
37
  param: {
36
38
  skuId: skuId,
37
39
  bMallTag: bMallTag,
38
40
  skuUniformBizInfo
39
41
  },
40
42
  logEventInfo,
41
43
  })
42
44
  }
43
45
  jdNavigateToNative(
44
46
  console.log("otherParams", otherParams)
45
47
  const paramsStr = JSON.stringify(otherParams)
46
48
  console.log(
47
49
  '跳转web jd open协议',
48
50
  `${url}?params=${paramsStr}`,
49
51
  )
50
52
  console.log('catch', e)
51
53
  clickEventLog(
52
54
  getConfig(opt = {}) {
53
55
  return Object.assign(this, {}, defaultConfig, opt)
54
56
  }
@@ -1,4 +1,2 @@
1
- /* eslint-disable */
2
- /* 2023-02-14 16:43:37 @issue to huangzhihua@jd.com Thanks */
3
- 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 x=function(e){var x="";try{x=t.getStorageSync(e)}catch(t){}return x},n=function(e,x){try{t.setStorageSync(e,x)}catch(t){}},i=t.request,c=t.getSystemInfo,r=t.getNetworkType,_="";"weapp"===process.env.TARO_ENV?_="wx-app":"swan"===process.env.TARO_ENV?_="baidu-app":"tt"===process.env.TARO_ENV?_="toutiao-app":"alipay"===process.env.TARO_ENV?_="alipay-app":"rn"===process.env.TARO_ENV?_="rn-app":"h5"===process.env.TARO_ENV&&(_="h5-app");var a="__jda",s="__jdd",p="__jdv",o="__debugId__",d="__sysExtKey__",u="union_customerinfo",v=864e5,h=86400,l=1800,f="__refer",g="5YT%aC89$22OI@pQ",m=function(t){var e="https://neptune.jd.com/log/m";try{var x=getApp({allowDefault:!0});x&&x.globalRequestUrl&&(e=x.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.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 x=y.loggerList.length;e<x;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,x){var n;(n="pv"==e?this.initPvData(x):"cl"==e?this.initClickData(x):"cd"==e?this.initShoppingData(x):"od"==e?this.initOrderData(x):"sr"==e?this.initPageUnloadData(x):"ep"==e?this.initExposureData(x):x).tpc=t,n.report_ts=D()/1e3,n.token=y.md5(n.report_ts+g),n.data[0].typ=e,n.data[0].debugId=this.env[it]||"",this.request(n,"sr"==e||"cl"==e)},y.pr.send=function(t,e,x){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},y.pr.request=function(t,e){var x=!1,n=!!this.env[it];if(i({url:m(n)+"?std="+t.std,data:t,method:"POST",header:{"content-type":"application/json"},success:function(t){x=!0}}),e)for(var c=D()+100;D()<c||x;);},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.env[L]||(t.setupPageview(),t.env[L]=!0),t.send("wx_app.000000","pv",e),t.env[L]=!1)},click:function(e){t.send("wx_app.000001","cl",e)},exposure:function(e){t.send("wx_app.000005","ep",e)},autoClick:function(e){var x,n=e.target.dataset,i=e.currentTarget.dataset;if(n&&n.eid?x=n:i&&i.eid&&(x=i),x){var c={eid:x.eid,elevel:x.elevel,eparam:x.eparam,pname:x.pname,pparam:x.pparam,target:x.target,event:e};t.send("wx_app.000001","cl",c)}},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("#"),x="wxappSeries="+encodeURIComponent(this.getSeries());return e>-1?e===t.length-1?t+x:t+"&"+x:t+"#"+x},setMParam:function(e){return t.setMParam(e)},getJda:function(){return x(a)},getJdv:function(){return x(p)},getStorage:function(t){return x(t)},setStorage:function(t,e){return n(t,e)},setJdv:function(t){return t&&5===t.split("|").length&&n(p,t+"|"+D())}}},function(t){var e=0;function x(t){return i(n(c(t)))}function n(t){return _(a(r(t),8*t.length))}function i(t){for(var x,n=e?"0123456789ABCDEF":"0123456789abcdef",i="",c=0;c<t.length;c++)x=t.charCodeAt(c),i+=n.charAt(x>>>4&15)+n.charAt(15&x);return i}function c(t){for(var e,x,n="",i=-1;++i<t.length;)e=t.charCodeAt(i),x=i+1<t.length?t.charCodeAt(i+1):0,55296<=e&&e<=56319&&56320<=x&&x<=57343&&(e=65536+((1023&e)<<10)+(1023&x),i++),e<=127?n+=String.fromCharCode(e):e<=2047?n+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function r(t){var e,x=Array(t.length>>2);for(e=0;e<x.length;e++)x[e]=0;for(e=0;e<8*t.length;e+=8)x[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return x}function _(t){for(var e="",x=0;x<32*t.length;x+=8)e+=String.fromCharCode(t[x>>5]>>>x%32&255);return e}function a(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var x=1732584193,n=-271733879,i=-1732584194,c=271733878,r=0;r<t.length;r+=16){var _=x,a=n,s=i,h=c;n=u(n=u(n=u(n=u(n=d(n=d(n=d(n=d(n=o(n=o(n=o(n=o(n=p(n=p(n=p(n=p(n,i=p(i,c=p(c,x=p(x,n,i,c,t[r+0],7,-680876936),n,i,t[r+1],12,-389564586),x,n,t[r+2],17,606105819),c,x,t[r+3],22,-1044525330),i=p(i,c=p(c,x=p(x,n,i,c,t[r+4],7,-176418897),n,i,t[r+5],12,1200080426),x,n,t[r+6],17,-1473231341),c,x,t[r+7],22,-45705983),i=p(i,c=p(c,x=p(x,n,i,c,t[r+8],7,1770035416),n,i,t[r+9],12,-1958414417),x,n,t[r+10],17,-42063),c,x,t[r+11],22,-1990404162),i=p(i,c=p(c,x=p(x,n,i,c,t[r+12],7,1804603682),n,i,t[r+13],12,-40341101),x,n,t[r+14],17,-1502002290),c,x,t[r+15],22,1236535329),i=o(i,c=o(c,x=o(x,n,i,c,t[r+1],5,-165796510),n,i,t[r+6],9,-1069501632),x,n,t[r+11],14,643717713),c,x,t[r+0],20,-373897302),i=o(i,c=o(c,x=o(x,n,i,c,t[r+5],5,-701558691),n,i,t[r+10],9,38016083),x,n,t[r+15],14,-660478335),c,x,t[r+4],20,-405537848),i=o(i,c=o(c,x=o(x,n,i,c,t[r+9],5,568446438),n,i,t[r+14],9,-1019803690),x,n,t[r+3],14,-187363961),c,x,t[r+8],20,1163531501),i=o(i,c=o(c,x=o(x,n,i,c,t[r+13],5,-1444681467),n,i,t[r+2],9,-51403784),x,n,t[r+7],14,1735328473),c,x,t[r+12],20,-1926607734),i=d(i,c=d(c,x=d(x,n,i,c,t[r+5],4,-378558),n,i,t[r+8],11,-2022574463),x,n,t[r+11],16,1839030562),c,x,t[r+14],23,-35309556),i=d(i,c=d(c,x=d(x,n,i,c,t[r+1],4,-1530992060),n,i,t[r+4],11,1272893353),x,n,t[r+7],16,-155497632),c,x,t[r+10],23,-1094730640),i=d(i,c=d(c,x=d(x,n,i,c,t[r+13],4,681279174),n,i,t[r+0],11,-358537222),x,n,t[r+3],16,-722521979),c,x,t[r+6],23,76029189),i=d(i,c=d(c,x=d(x,n,i,c,t[r+9],4,-640364487),n,i,t[r+12],11,-421815835),x,n,t[r+15],16,530742520),c,x,t[r+2],23,-995338651),i=u(i,c=u(c,x=u(x,n,i,c,t[r+0],6,-198630844),n,i,t[r+7],10,1126891415),x,n,t[r+14],15,-1416354905),c,x,t[r+5],21,-57434055),i=u(i,c=u(c,x=u(x,n,i,c,t[r+12],6,1700485571),n,i,t[r+3],10,-1894986606),x,n,t[r+10],15,-1051523),c,x,t[r+1],21,-2054922799),i=u(i,c=u(c,x=u(x,n,i,c,t[r+8],6,1873313359),n,i,t[r+15],10,-30611744),x,n,t[r+6],15,-1560198380),c,x,t[r+13],21,1309151649),i=u(i,c=u(c,x=u(x,n,i,c,t[r+4],6,-145523070),n,i,t[r+11],10,-1120210379),x,n,t[r+2],15,718787259),c,x,t[r+9],21,-343485551),x=v(x,_),n=v(n,a),i=v(i,s),c=v(c,h)}return Array(x,n,i,c)}function s(t,e,x,n,i,c){return v((r=v(v(e,t),v(n,c)))<<(_=i)|r>>>32-_,x);var r,_}function p(t,e,x,n,i,c,r){return s(e&x|~e&n,t,e,i,c,r)}function o(t,e,x,n,i,c,r){return s(e&n|x&~n,t,e,i,c,r)}function d(t,e,x,n,i,c,r){return s(e^x^n,t,e,i,c,r)}function u(t,e,x,n,i,c,r){return s(x^(e|~n),t,e,i,c,r)}function v(t,e){var x=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(x>>16)<<16|65535&x}y.md5=x}();var D=function(){return(new Date).getTime()},k=function(){return D()+""+parseInt(2147483647*Math.random())},C=function(t){return"[object Object]"=={}.toString.call(t)},j=function(t,e){if(C(t)&&C(e))for(var x in e)t[x]=e[x]},q=function(t){var e=[];if(C(t))for(var x in t)"m_param"!==x&&e.push(x+"="+t[x]);return e.join("&")},R=0,b=R++,S=R++,A=R++,I=R++,z=R++,P=R++,T=R++,E=R++,O=R++,L=R++,U=R++,J=R++,N=R++,V=R++,W=R++,M=R++,X=R++,$=R++,B=R++,F=R++,K=R++,Y=R++,G=R++,H=R++,Q=R++,Z=R++,tt=R++,et=R++,xt=R++,nt=R++,it=R++;y.pr.getData=function(t){for(var e={},x=0,n=t.length;x<n;x++){var i=t[x];e[i[0]]=this.env[i[1]]||""}return e};var ct=null;y.pr.setupPageview=function(){var t,i,c,r=this.env,_=D(),d=parseInt(_/1e3),g=function(t){if(C(t))for(var e in t)return!1;return!0}(r[V]),m=x(a),w=x(s),j=x(p),R=x(o);if(!r[J]||g)try{var b=(ht=getCurrentPages())[ht.length-1];if(r[J]=r[J]||b.route||b.__route__||"",g){var L=C(b.options)?b.options:{};r[N]=q(L),r[V]=L,this.setMParam(L.m_param)}}catch(t){}y.setAppData(),r[O]=!1,t=d,i=r,(c=(w||"").split(".")).length>1?i[O]=i[O]||1*c[1]+l<t:i[O]=!0;var U,W,M,X,F,K,Y,Z,tt,et,rt,_t,at,st=function(t,x,n){var i=(t||"").split("|"),c="",r="",_="",a="",s=!0;i.length>=6&&x-i[5]<=v&&(c=i[1],r=i[2],_=i[3],a=i[4],s=!1);var p=n[V],o=[];if(ct&&e[ct]){var d=e[ct];o[0]=d[0],o[1]=encodeURIComponent(d[1]),o[2]=encodeURIComponent(d[2])||"none",o[3]=encodeURIComponent(d[3])||"-",ct=null}p&&p.utm_source&&(o[0]=encodeURIComponent(p.utm_source),o[1]=encodeURIComponent(p.utm_campaign||"")||r,o[2]=encodeURIComponent(p.utm_medium||"")||_,o[3]=encodeURIComponent(p.utm_term||"")||a,a=o[3],s=!0);var u=!1;o.length>0&&"direct"!=o[0]?u=(o[0]!==c||o[1]!==r||o[2]!==_)&&"referral"!==o[2]:o.length>0&&"direct"==o[0]&&("direct"===c||!c)&&(u=o[1]!==r||o[2]!==_||o[3]!==a);var h="";return u&&(c=o[0]||c,r=o[1]||r,_=o[2]||_,a=o[3]||a),(s||u)&&(h=[1,c||"direct",r||"-",_||"none",a||"-",x].join("|")),n[O]=n[O]||u,h}(j,_,r),pt=(et=d,rt=r,_t=(w||"").split("."),at=1,_t.length>1?(rt[O]=rt[O]||1*_t[1]+l<et,at=(rt[O]?1:1*_t[0]+1)||1):rt[O]=!0,rt[P]=at),ot=(U=d,W=r,Y=(m||"").split("."),Z=1,tt=1,Y.length>5?(Z=Y[0]||Z,M=Y[1]||k(),X=Y[2]||U,W[O]?(F=Y[4]||U,K=U,tt=1*Y[5]+1||1):(F=Y[3]||U,K=Y[4]||U,tt=1*Y[5]||1)):(M=k(),X=F=K=U,tt=1),W[xt]=Z,W[S]=M,W[A]=X,W[I]=F,W[z]=K,W[T]=tt,[Z,M,X,F,K,tt].join("."));!function(t){if(t[nt]&&t[nt].pv_sid&&t[nt].pv_seq){var e=1*t[nt].pv_sid,x=1*t[nt].pv_seq;e>99999999||(e>t[T]||e==t[T]&&x>=t[P])&&(t[T]=e,t[P]=x+1)}}(r),st&&n(p,st),pt=[r[P],d].join("."),ot=[r[xt],r[S],r[A],r[I],r[z],r[T]].join("."),n(s,pt),n(a,ot);var dt,ut,vt=function(t,e,x){var n=x[V],i="",c="";if(n&&n.customerinfo)i=n.customerinfo,c=e;else{var r=t instanceof Array?t:[];2==r.length&&e-r[1]<h&&(i=r[0],c=r[1])}return x[Q]=i,i?[i,c]:[]}(x(u),d,r);n(u,vt),r[E]=st||j,dt=this.env,(ut=x("jdwcx")||x("jdzdm"))&&(ut.unionid&&(dt[G]=ut.unionid),ut.wxversion&&(dt[H]=ut.wxversion));try{b=(ht=getCurrentPages())[ht.length-1],L=C(b.options)?b.options:{};var ht,lt,ft=decodeURIComponent(L.scene),gt=new RegExp("(^|&)"+o+"=([^&]*)(&|$)"),mt=ft.match(gt);null!=mt&&(lt=mt[2]),lt&&"DBG"===lt.substring(0,3)?(n(o,lt),R=lt):r[O]&&(n(o,""),R=""),r[it]=R}catch(t){}if(r[O])r[$]="",r[B]="";else{var wt=x(f);r[$]=wt[0],r[B]=wt[1]}n(f,[r[J],r[N]])},y.pr.initPvData=function(t){this.pageLoadTime=D(),this.maxClickDeep=0,t=t||{};var e=this.baseEnv(),x=e.data[0];return x.page_id=this.env[W]||"",x.pname=this.env[M]||this.env[J]||"",x.pparam=this.env[X]||this.env[N]||"",x.sku=this.env[Z]||"",x.shp=this.env[tt]||"",x.tit=this.env[U]||"",x.ldt=this.env[et]||"",j(x.ext,t.ext),e},y.pr.initClickData=function(t){var e,x=this.baseEnv(),n=x.data[0];if(n.eid=t.eid||"",n.eparam=t.eparam||"",n.elevel=t.elevel||"",n.page_id=t.pageId||this.env[W]||"",n.pname=t.pname||this.env[M]||this.env[J]||"",n.pparam=t.pparam||this.env[X]||this.env[N]||"",n.tar=t.target||"",n.x=0,n.y=0,e=t.event,C(e)&&e.type&&e.target){var i=t.event,c=i.touches;if((!c||c.length<1)&&(c=i.changedTouches),c&&c.length>0){n.x=parseInt(c[0].pageX);var r=parseInt(c[0].pageY);n.y=r,r>this.maxClickDeep&&(this.maxClickDeep=r)}}return j(n.ext,t.ext),x},y.pr.initExposureData=y.pr.initClickData,y.pr.initShoppingData=function(t){var e=this.baseEnv(),x=e.data[0];return x.eid=t.eid||"",x.eparam=t.eparam||"",x.elevel=t.elevel||"",x.page_id=t.pageId||this.env[W]||"",x.pname=t.pname||this.env[M]||this.env[J]||"",x.pparam=t.pparam||this.env[X]||this.env[N]||"",x.sku_list=t.shoppingList?JSON.stringify(t.shoppingList):"",j(x.ext,t.ext),e},y.pr.initOrderData=function(t){var e=this.baseEnv(),x=e.data[0];return x.eid=t.eid||"",x.eparam=t.eparam||"",x.elevel=t.elevel||"",x.page_id=t.pageId||this.env[W]||"",x.pname=t.pname||this.env[M]||this.env[J]||"",x.pparam=t.pparam||this.env[X]||this.env[N]||"",x.sku_list=t.orderList?JSON.stringify(t.orderList):"",x.order_total_fee=t.total||0,x.sale_ord_id=t.orderid||"",j(x.ext,t.ext),e},y.pr.initPageUnloadData=function(t){var e=((D()-this.pageLoadTime)/1e3).toFixed(3),x=this.baseEnv(),n=x.data[0];return t=t||{},n.page_id=t.pageId||this.env[W]||"",n.pname=t.pname||this.env[M]||this.env[J]||"",n.pparam=t.pparam||this.env[X]||this.env[N]||"",n.alive_seconds=e,n.click_deep=this.maxClickDeep,j(n.ext,t.ext),x},function(){y.wxDat={};var t=y.wxDat;c({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")}}),r({success:function(e){e&&(t.net=e.networkType)},complete:function(){y.dataReady("netType")}})}(),y.pr.setData=function(t){var e={skuid:[Z],shopid:[tt],title:[U],loadtime:[et],url:[J],urlParam:[N,q],pageId:[W],pname:[M],pparam:[X]},n={account:[F],siteId:[b],appid:[K],openid:[Y],unionid:[G]},i=(t=C(t)?t:{},C(t.urlParam)?t.urlParam:{});this.ext={},this.env[V]=i,this.setMParam(i.m_param);for(var c in e){var r=e[c];this.env[r[0]]=t[c]?r[1]?r[1](t[c]):t[c]:"",delete t[c]}for(var c in n){r=n[c];this.env[r[0]]=t[c]?r[1]?r[1](t[c]):t[c]:this.env[r[0]]||"",delete t[c]}for(var c in t)"ext"!==c&&(this.ext[c]=t[c]);this.env[K]||(this.env[K]=x("appid"))},y.appDat={},y.setAppData=function(t){var e={},i=x(d);j(e,i),j(e,t);for(var c in e)y.appDat[c]=e[c];n(d,e)},y.clearAppData=function(){y.appDat={},function(e){try{t.removeStorageSync(e)}catch(t){}}(d)},y.scene=null,y.setScene=function(t){y.scene=t,ct=t},y.pr.setMParam=function(t){try{var e=JSON.parse(t);this.env[nt]=C(e)?e:{}}catch(t){this.env[nt]={}}},y.pr.baseEnv=function(){var t=this.env,e=y.wxDat,n={cli:_,std:t[b]||"WXAPP-JA2016-1",uuid:t[S]||"",scr:e.scr||"",dvc:e.dvc||"",lang:e.lang||"",appkey:t[H]||"",appid:t[K]||"",openid:t[Y]||"",unionid:t[G]||"",gender:e.gender||"",city:e.city||"",province:e.province||"",country:e.country||"",wxver:e.wxver||"",data:[]},i=[["ctp",J],["par",N],["ref",$],["rpr",B],["seq",P],["vts",T],["pin",F],["fst",A],["pst",I],["vct",z]],c=this.getData(i);return c.jsver="TR1.0.0",c.net=e.net||"",c.lat=e.lat||"",c.lon=e.lon||"",c.speed=e.speed||"",c.accuracy=e.accuracy||"",c.pixelRatio=e.pixelRatio||"",c.jdv=t[E]||"",c.customerInfo=t[Q]||"",c.unpl=x("unpl")||"",c.scene=y.scene||"",c.sdkver=e.sdkver||"",c.ext={},j(c.ext,this.ext),j(c.ext,y.appDat),n.data.push(c),n},y.pr.getSeriesData=function(){var t=this.env,e={uuid:t[S]||"",std:t[b]||"WXAPP-JA2016-1",seq:t[P],vts:t[T]};return t[H]&&(e.appkey=t[H]),t[K]&&(e.appid=t[K]),t[it]&&(e.debugId=t[it]),e},y.initJda=function(){var t=x(a);if(!t){var e=D();t=[1,k(),e,e,e,0].join("."),n(a,t)}return t},module.exports={init:function(t){return y.getInstance().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);
4
- /* eslint-disable no-new */
1
+ /* 2023-06-05 11:19:38 @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 x=function(e){var x="";try{x=t.getStorageSync(e)}catch(t){}return x},n=function(e,x){try{t.setStorageSync(e,x)}catch(t){}},i=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",p="__jdv",o="__debugId__",d="__sysExtKey__",u="union_customerinfo",h=864e5,l=86400,v=1800,g="__refer",f="5YT%aC89$22OI@pQ",m=function(t){var e="https://neptune.jd.com/log/m";try{var x=getApp({allowDefault:!0});x&&x.globalRequestUrl&&(e=x.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.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 x=y.loggerList.length;e<x;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,x){var n;(n="pv"==e?this.initPvData(x):"cl"==e?this.initClickData(x):"cd"==e?this.initShoppingData(x):"od"==e?this.initOrderData(x):"sr"==e?this.initPageUnloadData(x):"ep"==e?this.initExposureData(x):x).tpc=t,n.report_ts=D()/1e3,n.token=y.md5(n.report_ts+f),n.data[0].typ=e,n.data[0].debugId=this.env[_t]||"",this.request(n,"sr"==e||"cl"==e)},y.pr.send=function(t,e,x){this.isReady?this.sendData.apply(this,arguments):this.logCache.push(arguments)},y.pr.request=function(t,e){var x=!1,n=!!this.env[_t];if(i({url:m(n)+"?std="+t.std,data:t,method:"POST",header:{"content-type":"application/json"},success:function(t){x=!0}}),e)for(var r=D()+100;D()<r||x;);},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 x,n=e.target.dataset,i=e.currentTarget.dataset;if(n&&n.eid?x=n:i&&i.eid&&(x=i),x){var r={eid:x.eid,elevel:x.elevel,eparam:x.eparam,pname:x.pname,pparam:x.pparam,target:x.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[U]||(t.setupPageview(),t.env[U]=!0),JSON.stringify(t.getSeriesData())},urlAddSeries:function(t){var e=(t||"").indexOf("#"),x="wxappSeries="+encodeURIComponent(this.getSeries());return e>-1?e===t.length-1?t+x:t+"&"+x:t+"#"+x},setMParam:function(e){return t.setMParam(e)},getJda:function(){return x(_)},getJdv:function(){return x(p)},getStorage:function(t){return x(t)},setStorage:function(t,e){return n(t,e)},setJdv:function(t){return t&&5===t.split("|").length&&n(p,t+"|"+D())}}},function(t){var e=0;function x(t){return i(n(r(t)))}function n(t){return c(_(a(t),8*t.length))}function i(t){for(var x,n=e?"0123456789ABCDEF":"0123456789abcdef",i="",r=0;r<t.length;r++)x=t.charCodeAt(r),i+=n.charAt(x>>>4&15)+n.charAt(15&x);return i}function r(t){for(var e,x,n="",i=-1;++i<t.length;)e=t.charCodeAt(i),x=i+1<t.length?t.charCodeAt(i+1):0,55296<=e&&e<=56319&&56320<=x&&x<=57343&&(e=65536+((1023&e)<<10)+(1023&x),i++),e<=127?n+=String.fromCharCode(e):e<=2047?n+=String.fromCharCode(192|e>>>6&31,128|63&e):e<=65535?n+=String.fromCharCode(224|e>>>12&15,128|e>>>6&63,128|63&e):e<=2097151&&(n+=String.fromCharCode(240|e>>>18&7,128|e>>>12&63,128|e>>>6&63,128|63&e));return n}function a(t){var e,x=Array(t.length>>2);for(e=0;e<x.length;e++)x[e]=0;for(e=0;e<8*t.length;e+=8)x[e>>5]|=(255&t.charCodeAt(e/8))<<e%32;return x}function c(t){for(var e="",x=0;x<32*t.length;x+=8)e+=String.fromCharCode(t[x>>5]>>>x%32&255);return e}function _(t,e){t[e>>5]|=128<<e%32,t[14+(e+64>>>9<<4)]=e;for(var x=1732584193,n=-271733879,i=-1732584194,r=271733878,a=0;a<t.length;a+=16){var c=x,_=n,s=i,l=r;n=u(n=u(n=u(n=u(n=d(n=d(n=d(n=d(n=o(n=o(n=o(n=o(n=p(n=p(n=p(n=p(n,i=p(i,r=p(r,x=p(x,n,i,r,t[a+0],7,-680876936),n,i,t[a+1],12,-389564586),x,n,t[a+2],17,606105819),r,x,t[a+3],22,-1044525330),i=p(i,r=p(r,x=p(x,n,i,r,t[a+4],7,-176418897),n,i,t[a+5],12,1200080426),x,n,t[a+6],17,-1473231341),r,x,t[a+7],22,-45705983),i=p(i,r=p(r,x=p(x,n,i,r,t[a+8],7,1770035416),n,i,t[a+9],12,-1958414417),x,n,t[a+10],17,-42063),r,x,t[a+11],22,-1990404162),i=p(i,r=p(r,x=p(x,n,i,r,t[a+12],7,1804603682),n,i,t[a+13],12,-40341101),x,n,t[a+14],17,-1502002290),r,x,t[a+15],22,1236535329),i=o(i,r=o(r,x=o(x,n,i,r,t[a+1],5,-165796510),n,i,t[a+6],9,-1069501632),x,n,t[a+11],14,643717713),r,x,t[a+0],20,-373897302),i=o(i,r=o(r,x=o(x,n,i,r,t[a+5],5,-701558691),n,i,t[a+10],9,38016083),x,n,t[a+15],14,-660478335),r,x,t[a+4],20,-405537848),i=o(i,r=o(r,x=o(x,n,i,r,t[a+9],5,568446438),n,i,t[a+14],9,-1019803690),x,n,t[a+3],14,-187363961),r,x,t[a+8],20,1163531501),i=o(i,r=o(r,x=o(x,n,i,r,t[a+13],5,-1444681467),n,i,t[a+2],9,-51403784),x,n,t[a+7],14,1735328473),r,x,t[a+12],20,-1926607734),i=d(i,r=d(r,x=d(x,n,i,r,t[a+5],4,-378558),n,i,t[a+8],11,-2022574463),x,n,t[a+11],16,1839030562),r,x,t[a+14],23,-35309556),i=d(i,r=d(r,x=d(x,n,i,r,t[a+1],4,-1530992060),n,i,t[a+4],11,1272893353),x,n,t[a+7],16,-155497632),r,x,t[a+10],23,-1094730640),i=d(i,r=d(r,x=d(x,n,i,r,t[a+13],4,681279174),n,i,t[a+0],11,-358537222),x,n,t[a+3],16,-722521979),r,x,t[a+6],23,76029189),i=d(i,r=d(r,x=d(x,n,i,r,t[a+9],4,-640364487),n,i,t[a+12],11,-421815835),x,n,t[a+15],16,530742520),r,x,t[a+2],23,-995338651),i=u(i,r=u(r,x=u(x,n,i,r,t[a+0],6,-198630844),n,i,t[a+7],10,1126891415),x,n,t[a+14],15,-1416354905),r,x,t[a+5],21,-57434055),i=u(i,r=u(r,x=u(x,n,i,r,t[a+12],6,1700485571),n,i,t[a+3],10,-1894986606),x,n,t[a+10],15,-1051523),r,x,t[a+1],21,-2054922799),i=u(i,r=u(r,x=u(x,n,i,r,t[a+8],6,1873313359),n,i,t[a+15],10,-30611744),x,n,t[a+6],15,-1560198380),r,x,t[a+13],21,1309151649),i=u(i,r=u(r,x=u(x,n,i,r,t[a+4],6,-145523070),n,i,t[a+11],10,-1120210379),x,n,t[a+2],15,718787259),r,x,t[a+9],21,-343485551),x=h(x,c),n=h(n,_),i=h(i,s),r=h(r,l)}return Array(x,n,i,r)}function s(t,e,x,n,i,r){return h((a=h(h(e,t),h(n,r)))<<(c=i)|a>>>32-c,x);var a,c}function p(t,e,x,n,i,r,a){return s(e&x|~e&n,t,e,i,r,a)}function o(t,e,x,n,i,r,a){return s(e&n|x&~n,t,e,i,r,a)}function d(t,e,x,n,i,r,a){return s(e^x^n,t,e,i,r,a)}function u(t,e,x,n,i,r,a){return s(x^(e|~n),t,e,i,r,a)}function h(t,e){var x=(65535&t)+(65535&e);return(t>>16)+(e>>16)+(x>>16)<<16|65535&x}y.md5=x}();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 x in e)t[x]=e[x]},q=function(t){var e=[];if(P(t))for(var x in t)"m_param"!==x&&e.push(x+"="+t[x]);return e.join("&")},R=0,b=R++,j=R++,S=R++,A=R++,I=R++,z=R++,T=R++,E=R++,O=R++,U=R++,L=R++,J=R++,N=R++,V=R++,W=R++,M=R++,X=R++,$=R++,B=R++,F=R++,K=R++,Y=R++,G=R++,H=R++,Q=R++,Z=R++,tt=R++,et=R++,xt=R++,nt=R++,it=R++,rt=R++,at=R++,ct=R++,_t=R++;y.pr.getData=function(t){for(var e={},x=0,n=t.length;x<n;x++){var i=t[x];e[i[0]]=this.env[i[1]]||""}return e};var st=null;y.pr.getPname=function(t){return t=t||{},this.env[M]||t.pname||this.env[F]||this.env[N]||""},y.pr.getPparam=function(t){return t=t||{},this.env[X]||t.pparam||this.env[K]||this.env[V]||""},y.pr.getUrl=function(){return this.env[N]||this.env[M]||""},y.pr.getUrlParam=function(){return this.env[V]||this.env[X]||""},y.pr.setupPageview=function(t){var i,r,a,c=this.env,d=D(),f=parseInt(d/1e3),m=x(_),w=x(s),C=x(p),R=x(o);c[L]=!0;try{var b=(ft=getCurrentPages())[ft.length-1];c[M]=b.route||b.__route__||"";var U=P(b.options)?b.options:{};c[X]=q(U)||"",c[$]=U,this.setMParam(U.m_param||(this.env[W]||{}).m_param)}catch(t){}c[O]=!1,i=f,r=c,(a=(w||"").split(".")).length>1?r[O]=r[O]||1*a[1]+v<i:r[O]=!0;var J,N,V,B,F,K,H,Q,Z,nt,it,rt,pt,ot,dt=function(t,x,n){var i=(t||"").split("|"),r="",a="",c="",_="",s=!0;i.length>=6&&x-i[5]<=h&&(r=i[1],a=i[2],c=i[3],_=i[4],s=!1);var p=n[$],o=[];if(st&&e[st]){var d=e[st];o[0]=d[0],o[1]=encodeURIComponent(d[1]),o[2]=encodeURIComponent(d[2])||"none",o[3]=encodeURIComponent(d[3])||"-",st=null}p&&p.utm_source&&(o[0]=encodeURIComponent(p.utm_source),o[1]=encodeURIComponent(p.utm_campaign||"")||a,o[2]=encodeURIComponent(p.utm_medium||"")||c,o[3]=encodeURIComponent(p.utm_term||"")||_,_=o[3],s=!0);var u=!1;o.length>0&&"direct"!=o[0]?u=(o[0]!==r||o[1]!==a||o[2]!==c)&&"referral"!==o[2]:o.length>0&&"direct"==o[0]&&("direct"===r||!r)&&(u=o[1]!==a||o[2]!==c||o[3]!==_);var l="";return u&&(r=o[0]||r,a=o[1]||a,c=o[2]||c,_=o[3]||_),(s||u)&&(l=[1,r||"direct",a||"-",c||"none",_||"-",x].join("|")),n[O]=n[O]||u,l}(C,d,c),ut=(nt=f,it=c,rt=t,pt=(w||"").split("."),ot=1,pt.length>1?(it[O]=it[O]||1*pt[1]+v<nt,ot=(it[O]?1:rt?1*pt[0]+1:1*pt[0])||1):it[O]=!0,it[z]=ot,ot+"."+nt),ht=(J=f,N=c,H=(m||"").split("."),Q=1,Z=1,H.length>5?(Q=H[0]||Q,V=H[1]||k(),B=H[2]||J,N[O]?(F=H[4]||J,K=J,Z=1*H[5]+1||1):(F=H[3]||J,K=H[4]||J,Z=1*H[5]||1)):(V=k(),B=F=K=J,Z=1),N[at]=Q,N[j]=V,N[S]=B,N[A]=F,N[I]=K,N[T]=Z,[Q,V,B,F,K,Z].join("."));n(s,ut),n(_,ht),dt&&n(p,dt),c[E]=dt||C,y.setAppData(),function(t){if(t[ct]&&t[ct].pv_sid&&t[ct].pv_seq){var e=1*t[ct].pv_sid,x=1*t[ct].pv_seq;e>99999999||(e>t[T]||e==t[T]&&x>=t[z])&&(t[T]=e,t[z]=x+1)}}(c);var lt,vt,gt=function(t,e,x){var n=x[$],i="",r="";if(n&&n.customerinfo)i=n.customerinfo,r=e;else{var a=t instanceof Array?t:[];2==a.length&&e-a[1]<l&&(i=a[0],r=a[1])}return x[xt]=i,i?[i,r]:[]}(x(u),f,c);n(u,gt),lt=this.env,(vt=x("jdwcx")||x("jdzdm"))&&(vt.unionid&&(lt[tt]=vt.unionid),vt.wxversion&&(lt[et]=vt.wxversion));try{b=(ft=getCurrentPages())[ft.length-1],U=P(b.options)?b.options:{};var ft,mt,wt=decodeURIComponent(U.scene),yt=new RegExp("(^|&)"+o+"=([^&]*)(&|$)"),Dt=wt.match(yt);null!=Dt&&(mt=Dt[2]),mt&&"DBG"===mt.substring(0,3)?(n(o,mt),R=mt):c[O]&&(n(o,""),R=""),c[_t]=R}catch(t){}if(c[O])c[Y]="",c[G]="";else{var kt=x(g);c[Y]=kt[0],c[G]=kt[1]}n(g,[this.getPname(),this.getPparam()])},y.pr.initPvData=function(t){this.pageLoadTime=D(),this.maxClickDeep=0,t=t||{};var e=this.baseEnv(),x=e.data[0];return x.page_id=this.env[B]||"",x.pname=this.getPname(t),x.pparam=this.getPparam(t),x.sku=this.env[nt]||"",x.shp=this.env[it]||"",x.tit=this.env[J]||"",x.ldt=this.env[rt]||"",C(x.ext,t.ext),e},y.pr.initClickData=function(t){var e,x=this.baseEnv(),n=x.data[0];if(n.eid=t.eid||"",n.eparam=t.eparam||"",n.elevel=t.elevel||"",n.page_id=t.pageId||this.env[B]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.tar=t.target||"",n.x=0,n.y=0,e=t.event,P(e)&&e.type&&e.target){var i=t.event,r=i.touches;if((!r||r.length<1)&&(r=i.changedTouches),r&&r.length>0){n.x=parseInt(r[0].pageX);var a=parseInt(r[0].pageY);n.y=a,a>this.maxClickDeep&&(this.maxClickDeep=a)}}return C(n.ext,t.ext),x},y.pr.initExposureData=y.pr.initClickData,y.pr.initShoppingData=function(t){var e=this.baseEnv(),x=e.data[0];return x.eid=t.eid||"",x.eparam=t.eparam||"",x.elevel=t.elevel||"",x.page_id=t.pageId||this.env[B]||"",x.pname=this.getPname(t),x.pparam=this.getPparam(t),x.sku_list=t.shoppingList?JSON.stringify(t.shoppingList):"",C(x.ext,t.ext),e},y.pr.initOrderData=function(t){var e=this.baseEnv(),x=e.data[0];return x.eid=t.eid||"",x.eparam=t.eparam||"",x.elevel=t.elevel||"",x.page_id=t.pageId||this.env[B]||"",x.pname=this.getPname(t),x.pparam=this.getPparam(t),x.sku_list=t.orderList?JSON.stringify(t.orderList):"",x.order_total_fee=t.total||0,x.sale_ord_id=t.orderid||"",C(x.ext,t.ext),e},y.pr.initPageUnloadData=function(t){var e=((D()-this.pageLoadTime)/1e3).toFixed(3),x=this.baseEnv(),n=x.data[0];return t=t||{},n.page_id=t.pageId||this.env[B]||"",n.pname=this.getPname(t),n.pparam=this.getPparam(t),n.alive_seconds=e,n.click_deep=this.maxClickDeep,C(n.ext,t.ext),x},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:{},n={skuid:[nt],shopid:[it],title:[J],loadtime:[rt],url:[N],urlParam:[V,q],pname:[F],pparam:[K],pageId:[B]},i={account:[H],siteId:[b],appid:[Q],openid:[Z],unionid:[tt]};this.ext={},this.env[W]=e,this.setMParam(e.m_param);for(var r in n){var a=n[r];this.env[a[0]]=t[r]?a[1]?a[1](t[r]):t[r]:"",delete t[r]}for(var r in i){a=i[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[Q]||(this.env[Q]=x("appid"))},y.appDat={},y.setAppData=function(t){try{var e={},i=x(d);C(e,i),C(e,t);for(var r in e)y.appDat[r]=e[r];n(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,st=t},y.pr.setMParam=function(t){try{var e=JSON.parse(t);this.env[ct]=P(e)?e:{}}catch(t){this.env[ct]={}}},y.pr.baseEnv=function(){var t=x(s).split(".");(!this.env[L]||t&&2===t.length&&+t[0]!==this.env[z])&&this.setupPageview();var e=this.env,n=y.wxDat,i={cli:c,std:e[b]||"WXAPP-JA2016-1",uuid:e[j]||"",scr:n.scr||"",dvc:n.dvc||"",lang:n.lang||"",appkey:e[et]||"",appid:e[Q]||"",openid:e[Z]||"",unionid:e[tt]||"",gender:n.gender||"",city:n.city||"",province:n.province||"",country:n.country||"",wxver:n.wxver||"",data:[]},r=[["ref",Y],["rpr",G],["seq",z],["vts",T],["pin",H],["fst",S],["pst",A],["vct",I]],a=this.getData(r);return a.jsver="TR1.0.0",a.net=n.net||"",a.lat=n.lat||"",a.lon=n.lon||"",a.speed=n.speed||"",a.accuracy=n.accuracy||"",a.pixelRatio=n.pixelRatio||"",a.jdv=e[E]||"",a.customerInfo=e[xt]||"",a.ctp=this.getUrl(),a.par=this.getUrlParam(),a.unpl=x("unpl")||"",a.scene=y.scene||"",a.sdkver=n.sdkver||"",a.ext={},a.std_param=y.appDat,C(a.ext,this.ext),C(a.ext,y.appDat),i.data.push(a),i},y.pr.getSeriesData=function(){var t=this.env,e={uuid:t[j]||"",std:t[b]||"WXAPP-JA2016-1",seq:t[z],vts:t[T]};return t[et]&&(e.appkey=t[et]),t[Q]&&(e.appid=t[Q]),t[_t]&&(e.debugId=t[_t]),e},y.initJda=function(){var t=x(_);if(!t){var e=D();t=[1,k(),e,e,e,0].join("."),n(_,t)}return t},module.exports={init:function(t){return y.getInstance().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 +1 @@
1
- import * as device from './device'
1
+ import * as device from './device'
@@ -0,0 +1 @@
1
+ const userInfo =
2
  (window.WebViewCommon && window.WebViewCommon.getUserInfo()) || {}
1
3
  buId: userInfo.buId,
2
4
  process.env.NODE_ENV === 'development'
3
5
  ? {
4
6
  apolloId: '48ee955b0fb04d19b9f9fe8cb73d387f',
5
7
  apolloSecret: '0d9c76ee66b0487da4e17d3cf1d7af7a',
6
8
  }
7
9
  : {
8
10
  apolloId: '80c46fd06e4442998609d9f6a4ab96f0',
9
11
  apolloSecret: 'f36bef08bcba4683b409732095793fb2',
10
12
  }
11
13
  if (typeof window.crypto === 'object') {
12
14
  if (typeof (window.crypto as any).randomUUID === 'function') {
13
15
  return (window.crypto as any).randomUUID()
14
16
  }
15
17
  if (
16
18
  typeof (window.crypto as any).getRandomValues === 'function' &&
17
19
  typeof Uint8Array === 'function'
18
20
  ) {
19
21
  const callback = (c) => {
20
22
  const num = Number(c)
21
23
  return (
22
24
  num ^
23
25
  ((window.crypto as any).getRandomValues(new Uint8Array(1))[0] &
24
26
  (15 >> (num / 4)))
25
27
  ).toString(16)
26
28
  }
27
29
  return ([1e7] + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, callback)
28
30
  }
29
31
  }
30
32
  let timestamp = new Date().getTime()
31
33
  let perforNow =
32
34
  (typeof window.performance !== 'undefined' &&
33
35
  window.performance.now &&
34
36
  window.performance.now() * 1000) ||
35
37
  0
36
38
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
37
39
  let random = Math.random() * 16
38
40
  if (timestamp > 0) {
39
41
  random = (timestamp + random) % 16 | 0
40
42
  timestamp = Math.floor(timestamp / 16)
41
43
  } else {
42
44
  random = (perforNow + random) % 16 | 0
43
45
  perforNow = Math.floor(perforNow / 16)
44
46
  }
45
47
  return (c === 'x' ? random : (random & 0x3) | 0x8).toString(16)
46
48
  })
47
49
  let params = {
48
50
  uniformBizInfo: {
49
51
  tenantId: 1024,
50
52
  ua: 1,
51
53
  buId: commonParam.buId || 377,
52
54
  bMallTag: bMallTag,
53
55
  },
54
56
  commonParam: {
55
57
  pid: 100,
56
58
  verticalCode: 'cn_retail_bmall',
57
59
  ua: 1,
58
60
  language: 'zh',
59
61
  },
60
62
  operations: [{ TheSkus: [{ Id: skuId, num: num || 1 }] }],
61
63
  apolloId: APOLLO.apolloId,
62
64
  apolloSecret: APOLLO.apolloSecret,
63
65
  client: 'H5',
64
66
  verticalTag: 'cn_retail_bmall',
65
67
  carttype: bMallTag == 1 ? 21 : 22,
66
68
  bMallTag: bMallTag,
67
69
  traceId: getUuid(),
68
70
  noResponse: true,
69
71
  }
70
72
  if (skuUuid) {
71
73
  params.operations[0].TheSkus[0].skuUuid = skuUuid
72
74
  }
73
75
  if (window?.siteTransResult?.gridInfoList) {
74
76
  params = {
75
77
  ...params,
76
78
  cartLocationList: [
77
79
  {
78
80
  gridInfos:
79
81
  window?.siteTransResult?.gridInfoList &&
80
82
  JSON.parse(window?.siteTransResult?.gridInfoList),
81
83
  areaIdSet:
82
84
  window?.siteTransResult?.area &&
83
85
  window?.siteTransResult?.area?.split('-'),
84
86
  },
85
87
  ],
86
88
  }
87
89
  }
88
90
  return params
@@ -0,0 +1 @@
1
+ export const HttpStatus = {
2
  SUCCESS: 200,
1
3
  CREATED: 201,
2
4
  ACCEPTED: 202,
3
5
  CLIENT_ERROR: 400,
4
6
  AUTHENTICATE: 401,
5
7
  FORBIDDEN: 403,
6
8
  NOT_FOUND: 404,
7
9
  SERVER_ERROR: 500,
8
10
  BAD_GATEWAY: 502,
9
11
  SERVICE_UNAVAILABLE: 503,
10
12
  GATEWAY_TIMEOUT: 504
11
13
  [HttpStatus.NOT_FOUND]: "请求资源不存在",
12
14
  [HttpStatus.BAD_GATEWAY]: "服务端异常,请稍后重试",
13
15
  [HttpStatus.FORBIDDEN]: "没有权限访问",
14
16
  [HttpStatus.AUTHENTICATE]: "需要鉴权",
15
17
  [HttpStatus.SUCCESS]: "成功"
16
18
  "getPagePreview"
17
19
  "getShopHomeFloorInfo",
18
20
  "getShopCategory",
19
21
  "getShopNavigationCategory",
20
22
  "receiveShopCoupon",
21
23
  "getShopHomePromotionWebPage",
22
24
  "shopGuessYouLike",
23
25
  "addRemind",
24
26
  "cancelRemind",
25
27
  "getVipDetail",
26
28
  "shopDetail",
27
29
  "address_queryAddress",
28
30
  "shopMemberSprintJoinActivity",
29
31
  "shopMemberSprintReceivePrize"