@conecli/cone-render 0.10.1-shop3.5 → 0.10.1-shop3.50
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/README.md +1 -1
- package/dist/common/accessibility.h5.ts +1 -0
- package/dist/common/accessibility.ts +0 -0
- package/dist/common/const.ts +1 -1
- package/dist/common/index.h5.ts +1 -1
- package/dist/common/index.jd.ts +1 -1
- package/dist/common/index.ts +1 -1
- package/dist/common/index.weapp.ts +1 -1
- package/dist/common/jdplayerSdk.weapp.tsx +1 -0
- package/dist/common/jssdk.ts +1 -1
- package/dist/common/jssdk.weapp.ts +1 -0
- package/dist/common/pageType.ts +1 -1
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.module.scss +126 -111
- package/dist/components/base/CommonFloorHead/index.tsx +1 -1
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index-back.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.weapp.tsx +1 -0
- package/dist/components/base/Dialog/index.module.scss +11 -0
- package/dist/components/base/InOrOutViewObserver/index.weapp.tsx +1 -0
- package/dist/components/base/InViewRender/index.tsx +1 -1
- package/dist/components/base/ItemViewExposureSmart/index.tsx +1 -1
- package/dist/components/base/LazyLayoutLoad/index.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.weapp.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +118 -72
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Base/index.module.scss +12 -0
- package/dist/components/base/Price/Base/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.module.scss +24 -0
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/debug/DebugLayout/index.module.scss +2 -2
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/interface/common.ts +1 -1
- package/dist/interface/component.ts +1 -1
- package/dist/interface/jumpEventReport.ts +1 -1
- package/dist/jumpEventReport/base.ts +1 -1
- package/dist/jumpEventReport/const.ts +1 -1
- package/dist/jumpEventReport/createReportFloorData.ts +1 -1
- package/dist/jumpEventReport/index.h5.ts +1 -1
- package/dist/jumpEventReport/index.jd.ts +1 -1
- package/dist/jumpEventReport/index.weapp.ts +1 -1
- package/dist/jumpEventReport/jdJumpJdApp.ts +1 -1
- package/dist/jumpEventReport/jumpUrlConfig/base.ts +1 -1
- package/dist/jumpEventReport/logEventConfig.h5.ts +1 -0
- package/dist/jumpEventReport/logEventConfig.ts +1 -1
- package/dist/jumpEventReport/web/report.ts +1 -1
- package/dist/jumpEventReport/web.base.ts +1 -1
- package/dist/jumpEventReport/web.jd.ts +1 -1
- package/dist/jumpEventReport/web.pc.ts +1 -1
- package/dist/jumpEventReport/web.tjm.ts +1 -1
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/language/en_US.json +231 -0
- package/dist/language/zh_CN.json +231 -0
- package/dist/language/zh_HK.json +231 -0
- package/dist/libs/taroAppReport.js +2 -2
- package/dist/modules/ContainerFloorList/index.h5.module.scss +66 -56
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/modules/DecorateContainerFloorList/index.weapp.tsx +1 -0
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/shopMember.weapp.ts +1 -0
- package/dist/open/api/util.ts +1 -1
- package/dist/open/index.ts +1 -1
- package/dist/sass/app.h5.scss +278 -224
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/fetchGateway.weapp.ts +1 -0
- package/dist/service/fetchJsonp.weapp.ts +1 -0
- package/dist/service/http/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -1
- package/dist/service/http/httpInterceptors.weapp.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/service/requestServer.weapp.ts +1 -0
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/h5Utils.ts +1 -1
- package/dist/utils/harmonyCallRouter.h5.ts +1 -0
- package/dist/utils/harmonyCallRouter.ts +0 -0
- package/dist/utils/index.h5.ts +1 -1
- package/dist/utils/index.ts +1 -1
- package/dist/utils/index.weapp.ts +1 -1
- package/dist/utils/jumpExtMapUtil.h5.ts +1 -0
- package/dist/utils/jumpExtMapUtil.ts +1 -0
- package/dist/utils/log.ts +1 -0
- package/dist/utils/{sColor.js → sColor.ts} +1 -1
- package/dist/utils/sColor.weapp.ts +1 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/common/address_api/address_api_v2.js +1 -0
- package/dist/wxapp/common/user_info.js +1 -1
- package/package.json +160 -141
- package/dist/jumpEventReport/web/wqshop.report.ts +0 -1
- package/dist/utils/priceUtils.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import global from '../common'
|
|
2
1
|
BUSINESS_TYPE,
|
|
3
2
|
SHOP_MENU_ID_TYPE,
|
|
4
3
|
SHOP_MENU_ID_NAME,
|
|
5
4
|
SECTION_HOME_TAB_TYPE,
|
|
6
5
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
7
6
|
objectToUrlEncode,
|
|
8
7
|
parseQueryUrlString,
|
|
9
8
|
filterUrlQueryData,
|
|
10
9
|
routerInfo: {
|
|
11
10
|
params: {},
|
|
12
11
|
},
|
|
13
12
|
nativeEvent: null,
|
|
14
13
|
jumpConfig: {
|
|
15
14
|
venderId: null,
|
|
16
15
|
shopId: null,
|
|
17
16
|
sourceValue: '',
|
|
18
17
|
sourceType: 'M-H5',
|
|
19
18
|
activityType: 'shopx',
|
|
20
19
|
moduleId: 'none',
|
|
21
20
|
entrance: 'none',
|
|
22
21
|
},
|
|
23
22
|
logPageParamStr: '',
|
|
24
23
|
public logPageId: string
|
|
25
24
|
public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig
|
|
26
25
|
getConfig(opt) {
|
|
27
26
|
return Object.assign(this, {}, defaultConfig, opt)
|
|
28
27
|
}
|
|
29
28
|
updateInfo(
|
|
30
29
|
routerInfo,
|
|
31
30
|
logPname = LogPnameInfo.HOME,
|
|
32
31
|
pageId = LogPageIdInfo.APP,
|
|
33
32
|
) {
|
|
34
33
|
this.routerInfo = routerInfo
|
|
35
34
|
this.logPname = logPname
|
|
36
35
|
this.jumpConfig = Object.assign(
|
|
37
36
|
{},
|
|
38
37
|
this.jumpConfig,
|
|
39
38
|
filterUrlQueryData(routerInfo?.params || {}),
|
|
40
39
|
)
|
|
41
40
|
this.logPageId = pageId
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
45
44
|
skuIds = skuIds.toString().trim()
|
|
46
45
|
const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds
|
|
47
46
|
let url = `${this.jumpWebUrl.pcDetail}${getSkuId}.html`
|
|
48
47
|
this.jdNavigateToNative(url, logEventInfo)
|
|
49
48
|
}
|
|
50
49
|
|
|
51
50
|
jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
|
|
52
51
|
const getSkuId = skuInfo?.skuId;
|
|
53
52
|
this.jdJumpToProduct(getSkuId, logEventInfo)
|
|
54
53
|
}
|
|
55
54
|
|
|
56
55
|
jdJumpToShopHome(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
|
|
57
56
|
const getInfo = Object.assign(
|
|
58
57
|
{},
|
|
59
58
|
{
|
|
60
59
|
shopId: global.info.queryInfo.shopId,
|
|
61
60
|
venderId: global.info.queryInfo.venderId,
|
|
62
61
|
},
|
|
63
62
|
shopInfo,
|
|
64
63
|
)
|
|
65
64
|
let url = `${this.jumpWebUrl.pages}/index-${global.info.queryInfo.shopId}.html`
|
|
66
65
|
this.jdNavigateToNative(url, {
|
|
67
66
|
...getInfo,
|
|
68
67
|
})
|
|
69
68
|
}
|
|
70
69
|
|
|
71
70
|
getPcSearchUrl = (cateId) => {
|
|
72
71
|
const flag = document.querySelector('#JSHOP_CHANNEL_FLAG')?.value
|
|
73
72
|
const appId =
|
|
74
73
|
document.querySelector('#J_AppId')?.value ||
|
|
75
74
|
document.querySelector('#pageInstance_appId')?.value
|
|
76
75
|
return flag === 'yao'
|
|
77
76
|
? this.jumpWebUrl.pages + '/view_shop_search-' + appId + '.html'
|
|
78
77
|
: this.jumpWebUrl.pages +
|
|
79
78
|
'/view_search-' +
|
|
80
79
|
appId +
|
|
81
80
|
'-' +
|
|
82
81
|
cateId +
|
|
83
82
|
'-99-1-20-1.html'
|
|
84
83
|
}
|
|
85
84
|
|
|
86
85
|
jdJumpToShopSearch(shopInfo) {
|
|
87
86
|
const getInfo = Object.assign(
|
|
88
87
|
{},
|
|
89
88
|
{
|
|
90
89
|
shopId: global.info.queryInfo.shopId,
|
|
91
90
|
venderId: global.info.queryInfo.venderId,
|
|
92
91
|
},
|
|
93
92
|
shopInfo,
|
|
94
93
|
)
|
|
95
94
|
const { categoryId } = getInfo
|
|
96
95
|
const url = `${this.getPcSearchUrl(categoryId)}`
|
|
97
96
|
this.jdJumpToWeb(url, getInfo)
|
|
98
97
|
}
|
|
99
98
|
|
|
100
99
|
jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
|
|
101
100
|
console.log('web.base.ts - jdJumpToTabAllProduct')
|
|
102
101
|
if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId
|
|
103
102
|
if (typeof venderId === 'undefined')
|
|
104
103
|
venderId = global.info.queryInfo.venderId
|
|
105
104
|
const url = `${this.jumpWebUrl.pages}/index-${shopId}.html`
|
|
106
105
|
this.jdJumpToWeb(url, logEventInfo)
|
|
107
106
|
}
|
|
108
107
|
|
|
109
108
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
110
109
|
const url = `${this.jumpWebUrl.couponSearch}?couponbatch=${couponId}&sceneval=2`
|
|
111
110
|
this.jdJumpToWeb(url, logEventInfo)
|
|
112
111
|
}
|
|
112
|
+
import global from '../common';
|
|
113
113
|
BUSINESS_TYPE,
|
|
114
114
|
SHOP_MENU_ID_TYPE,
|
|
115
115
|
SHOP_MENU_ID_NAME,
|
|
116
116
|
SECTION_HOME_TAB_TYPE,
|
|
117
117
|
SECTION_HOME_TAB_NAME_TYPE,
|
|
118
118
|
routerInfo: {
|
|
119
119
|
params: {},
|
|
120
120
|
},
|
|
121
121
|
nativeEvent: null,
|
|
122
122
|
jumpConfig: {
|
|
123
123
|
venderId: null,
|
|
124
124
|
shopId: null,
|
|
125
125
|
sourceValue: '',
|
|
126
126
|
sourceType: 'M-H5',
|
|
127
127
|
activityType: 'shopx',
|
|
128
128
|
moduleId: 'none',
|
|
129
129
|
entrance: 'none',
|
|
130
130
|
},
|
|
131
131
|
logPageParamStr: '',
|
|
132
132
|
public logPageId: string;
|
|
133
133
|
public jumpConfig: JumpEventReportInterFace.JumpH5ReportConfig;
|
|
134
134
|
getConfig(opt) {
|
|
135
135
|
return Object.assign(this, {}, defaultConfig, opt);
|
|
136
136
|
}
|
|
137
137
|
updateInfo(routerInfo, logPname = LogPnameInfo.HOME, pageId = LogPageIdInfo.APP) {
|
|
138
138
|
this.routerInfo = routerInfo;
|
|
139
139
|
this.logPname = logPname;
|
|
140
140
|
this.jumpConfig = Object.assign(
|
|
141
141
|
{},
|
|
142
142
|
this.jumpConfig,
|
|
143
143
|
filterUrlQueryData(routerInfo?.params || {}),
|
|
144
144
|
);
|
|
145
145
|
this.logPageId = pageId;
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
jdJumpToProduct(skuIds, logEventInfo) {
|
|
149
149
|
skuIds = skuIds.toString().trim();
|
|
150
150
|
const getSkuId = skuIds.indexOf(',') !== -1 ? skuIds.split(',')[0] : skuIds;
|
|
151
151
|
let url = `${this.jumpWebUrl.pcDetail}${getSkuId}.html`;
|
|
152
152
|
this.jdNavigateToNative(url, logEventInfo);
|
|
153
153
|
}
|
|
154
154
|
|
|
155
155
|
jdJumpSkuInfoToProduct(skuInfo: any = {}, logEventInfo) {
|
|
156
156
|
const getSkuId = skuInfo?.skuId;
|
|
157
157
|
this.jdJumpToProduct(getSkuId, logEventInfo);
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
jdJumpToShopHome(shopInfo: JumpEventReportInterFace.ShopIdsInfo = {}) {
|
|
161
161
|
const currentShopInfo = {
|
|
162
162
|
shopId: global.info.queryInfo.shopId,
|
|
163
163
|
venderId: global.info.queryInfo.venderId,
|
|
164
164
|
};
|
|
165
165
|
const restParams =
|
|
166
166
|
(shopInfo?.shopId && shopInfo.shopId !== currentShopInfo.shopId) ||
|
|
167
167
|
(shopInfo?.venderId && shopInfo.venderId !== currentShopInfo.venderId)
|
|
168
168
|
? {}
|
|
169
169
|
: currentShopInfo;
|
|
170
170
|
const getInfo = Object.assign({}, restParams, shopInfo);
|
|
171
171
|
let url = `${this.jumpWebUrl.pages}/index-${global.info.queryInfo.shopId}.html`;
|
|
172
172
|
this.jdNavigateToNative(url, {
|
|
173
173
|
...getInfo,
|
|
174
174
|
});
|
|
175
175
|
}
|
|
176
176
|
|
|
177
177
|
getPcSearchUrl = (cateId) => {
|
|
178
178
|
const flag = document.querySelector('#JSHOP_CHANNEL_FLAG')?.value;
|
|
179
179
|
const appId =
|
|
180
180
|
document.querySelector('#J_AppId')?.value ||
|
|
181
181
|
document.querySelector('#pageInstance_appId')?.value;
|
|
182
182
|
return flag === 'yao'
|
|
183
183
|
? this.jumpWebUrl.pages + '/view_shop_search-' + appId + '.html'
|
|
184
184
|
: this.jumpWebUrl.pages + '/view_search-' + appId + '-' + cateId + '-99-1-20-1.html';
|
|
185
185
|
};
|
|
186
186
|
|
|
187
187
|
jdJumpToShopSearch(shopInfo) {
|
|
188
188
|
const getInfo = Object.assign(
|
|
189
189
|
{},
|
|
190
190
|
{
|
|
191
191
|
shopId: global.info.queryInfo.shopId,
|
|
192
192
|
venderId: global.info.queryInfo.venderId,
|
|
193
193
|
},
|
|
194
194
|
shopInfo,
|
|
195
195
|
);
|
|
196
196
|
const { categoryId } = getInfo;
|
|
197
197
|
const url = `${this.getPcSearchUrl(categoryId)}`;
|
|
198
198
|
this.jdJumpToWeb(url, getInfo);
|
|
199
199
|
}
|
|
200
200
|
|
|
201
201
|
jdJumpToTabAllProduct(shopId, venderId, logEventInfo = {}) {
|
|
202
202
|
console.log('web.base.ts - jdJumpToTabAllProduct');
|
|
203
203
|
if (typeof shopId === 'undefined') shopId = global.info.queryInfo.shopId;
|
|
204
204
|
if (typeof venderId === 'undefined') venderId = global.info.queryInfo.venderId;
|
|
205
205
|
const url = `${this.jumpWebUrl.pages}/index-${shopId}.html`;
|
|
206
206
|
this.jdJumpToWeb(url, logEventInfo);
|
|
207
207
|
}
|
|
208
208
|
|
|
209
209
|
jdJumpToCouponSearchProductList(couponId, logEventInfo = {}) {
|
|
210
210
|
const url = `${this.jumpWebUrl.couponSearch}?couponbatch=${couponId}&sceneval=2`;
|
|
211
211
|
this.jdJumpToWeb(url, logEventInfo);
|
|
212
212
|
}
|