@conecli/cone-render 0.9.1-shop2.2 → 0.9.1-shop2.20
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/api/index.ts +1 -1
- package/dist/common/const.ts +1 -1
- package/dist/common/environmentType.ts +1 -0
- 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.ts +1 -0
- package/dist/common/jssdk.ts +1 -0
- package/dist/common/pageType.ts +1 -0
- package/dist/common/sgmCustomCode.ts +1 -0
- package/dist/common/token/index.h5.ts +1 -1
- package/dist/common/token/token.jd.ts +1 -1
- package/dist/common/token/token.ts +1 -1
- package/dist/common/wxappApi.jd.ts +1 -0
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CountDown/index.tsx +1 -1
- package/dist/components/base/CustomScrollView/index.jd.tsx +1 -0
- package/dist/components/base/CustomScrollView/index.module.scss +7 -0
- package/dist/components/base/CustomScrollView/index.tsx +1 -1
- package/dist/components/base/CustomVideo/index.tsx +1 -1
- package/dist/components/base/Dialog/index.module.scss +5 -0
- package/dist/components/base/Dialog/index.tsx +1 -1
- package/dist/components/base/Exposure/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.h5.tsx +1 -1
- package/dist/components/base/ExposureSmart/index.tsx +1 -1
- package/dist/components/base/ExposureSmart/reporter.tsx +1 -1
- package/dist/components/base/InOrOutViewObserver/index.tsx +1 -1
- 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/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +23 -20
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +17 -0
- package/dist/components/base/MobileCommonHeader/index.tsx +1 -0
- package/dist/components/base/NetworkDataError/const.ts +1 -1
- package/dist/components/base/NetworkDataError/index.module.scss +7 -0
- package/dist/components/base/NetworkDataError/index.tsx +1 -1
- package/dist/components/base/Price/Double/index.tsx +1 -1
- package/dist/components/base/Price/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +32 -2
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/index.tsx +1 -1
- package/dist/components/decorate/PlaceHolder/index.tsx +1 -1
- package/dist/components/floorItem.jd.tsx +1 -1
- package/dist/components/floorItem.tsx +1 -1
- package/dist/components/floorItem.weapp.tsx +1 -1
- package/dist/components/isv/Floor/index.tsx +1 -1
- package/dist/components/remoteFloorItem.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/interface/service.ts +1 -1
- package/dist/interface/utils.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.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.jdb.ts +1 -1
- package/dist/jumpEventReport/web.jdjch.ts +1 -1
- package/dist/jumpEventReport/web.jxwxapp.ts +1 -0
- package/dist/jumpEventReport/web.tjapp.ts +1 -0
- package/dist/jumpEventReport/web.tjm.ts +1 -0
- package/dist/jumpEventReport/web.wxapp.ts +1 -1
- package/dist/modules/ContainerFloorList/index.h5.module.scss +18 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +1 -1
- package/dist/open/api/device.ts +1 -1
- package/dist/open/api/environment.ts +1 -1
- package/dist/open/api/index.ts +1 -1
- package/dist/open/api/jump copy.ts +1 -1
- package/dist/open/api/request.ts +1 -1
- package/dist/open/api/shopMember.ts +1 -1
- package/dist/open/api/track.ts +1 -1
- package/dist/open/api/util.ts +1 -1
- package/dist/open/components/index.ts +1 -1
- package/dist/sass/app.h5.scss +49 -3
- package/dist/sass/base.scss +57 -0
- package/dist/service/fetchGateway.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/requestServer.ts +1 -1
- package/dist/utils/connectNativeJsBridge.ts +1 -1
- package/dist/utils/connectNativeJsBridge.weapp.ts +1 -1
- package/dist/utils/draExceptionAndProfile.ts +1 -1
- package/dist/utils/h5Utils.ts +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/jm-common.js +1 -1
- package/dist/utils/sgmCodeUtils.ts +1 -0
- package/dist/utils/taroRenderUtil.ts +1 -1
- package/dist/utils/utils.ts +1 -1
- package/package.json +1 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
package/dist/common/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
floorVideInfo: {},
|
|
3
2
|
public config: {
|
|
4
3
|
[key: string]: any
|
|
5
4
|
}
|
|
6
5
|
public lazyContainer: CommonInterFace.lazyContainer
|
|
7
6
|
this.config = {}
|
|
8
7
|
|
|
9
8
|
getLoginCookie(updateKey = 'wxapp') {
|
|
10
9
|
return new Promise((resolve) => {
|
|
11
10
|
console.log("开始获取更新wxapp中的cookie信息", updateKey)
|
|
12
11
|
if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
|
|
13
12
|
console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
|
|
14
13
|
resolve({
|
|
15
14
|
wqCookie: this.config.wqCookie,
|
|
16
15
|
wqCookieStr: this.config.wqCookieStr,
|
|
17
16
|
})
|
|
18
17
|
}else {
|
|
19
18
|
if (isPublishToWxapp) {
|
|
20
19
|
const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
|
|
21
20
|
if (getWxappCookieObj) {
|
|
22
21
|
const getCookieObj = getWxappCookieObj['_data']
|
|
23
22
|
const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
|
|
24
23
|
const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
|
|
25
24
|
this.info.loginState = true
|
|
26
25
|
this.info.userInfo.wqCookie = wqCookieStr
|
|
27
26
|
this.info.userInfo.wqVisitkey = visitkey
|
|
28
27
|
console.log('获取用户完整cookie信息', getCookieObj)
|
|
29
28
|
const getUserAddress = this.wxAppUserInfoInstance.getAddress()
|
|
30
29
|
console.log('获取微信用户地址信息', getUserAddress)
|
|
31
30
|
if (getUserAddress) {
|
|
32
31
|
this.info.pageInfo.address = getUserAddress?.areaId
|
|
33
32
|
this.info.pageInfo.addressCommaStr = this.info.pageInfo
|
|
34
33
|
.address
|
|
35
34
|
? this.info.pageInfo.address.replace(/_/g, ',')
|
|
36
35
|
: ''
|
|
37
36
|
this.info.pageInfo.un_area = this.info.pageInfo.address
|
|
38
37
|
Taro.eventCenter.trigger(
|
|
39
38
|
TaroEventType.USER_AREA_UPDATE,
|
|
40
39
|
this.info.pageInfo.address,
|
|
41
40
|
)
|
|
42
41
|
}
|
|
43
42
|
if(this.miniAppLogInstance){
|
|
44
43
|
this.miniAppLogInstance.set({
|
|
45
44
|
account: pin,
|
|
46
45
|
unionid: wq_unionid,
|
|
47
46
|
openid: wxapp_openid,
|
|
48
47
|
})
|
|
49
48
|
}
|
|
50
49
|
this.config.wqCookie = wqCookie
|
|
51
50
|
this.config.wqCookieStr = wqCookieStr
|
|
52
51
|
this.config.getWqCookieKey = updateKey
|
|
53
52
|
console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
|
|
54
53
|
resolve({
|
|
55
54
|
wqCookie,
|
|
56
55
|
wqCookieStr,
|
|
57
56
|
})
|
|
58
57
|
}else {
|
|
59
58
|
console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
|
|
60
59
|
resolve({
|
|
61
60
|
wqCookie: false,
|
|
62
61
|
wqCookieStr: false,
|
|
63
62
|
})
|
|
64
63
|
}
|
|
65
64
|
}else {
|
|
66
65
|
resolve({
|
|
67
66
|
wqCookie: false,
|
|
68
67
|
wqCookieStr: false,
|
|
69
68
|
})
|
|
70
69
|
}
|
|
71
70
|
}
|
|
72
71
|
})
|
|
73
72
|
}
|
|
74
73
|
return this.getLoginCookie()
|
|
74
|
+
import Taro from '@tarojs/taro'
|
|
75
75
|
floorVideInfo: {},
|
|
76
76
|
productVideInfo: {},
|
|
77
77
|
isVipShop: false,
|
|
78
78
|
isJdShowNativeImmersivePlayer: false,
|
|
79
79
|
pageIdxHeightInfo: {
|
|
80
80
|
list: []
|
|
81
81
|
},
|
|
82
82
|
jdBottomBarHeight: 0,
|
|
83
83
|
jdNativeHeaderHeight: 0,
|
|
84
84
|
openAppData: {}
|
|
85
85
|
public config: {
|
|
86
86
|
[key: string]: any
|
|
87
87
|
}
|
|
88
88
|
public lazyContainer: CommonInterFace.lazyContainer
|
|
89
89
|
public renderedIsvComponents: CommonInterFace.renderedIsvComponents
|
|
90
90
|
public loadJsSdkList: Array<any>
|
|
91
91
|
public loadJsSdkListCachePromise: any
|
|
92
92
|
this.config = {}
|
|
93
93
|
this.loadJsSdkList = []
|
|
94
94
|
this.loadJsSdkListCachePromise = {}
|
|
95
95
|
this.renderedIsvComponents = {}
|
|
96
96
|
|
|
97
97
|
taskTimeoutPromise(callBack, timeout = 2000){
|
|
98
98
|
return new Promise((resolve) => {
|
|
99
99
|
setTimeout(() => {
|
|
100
100
|
const getCallBackRes = typeof callBack === 'function' && callBack()
|
|
101
101
|
return resolve(getCallBackRes || false)
|
|
102
102
|
}, timeout)
|
|
103
103
|
})
|
|
104
104
|
}
|
|
105
105
|
removeJdAndroidRquestEventForTouchStart(){}
|
|
106
106
|
this.info.sysInfo['wifiVideoAutoPlay'] = false
|
|
107
107
|
checkStatusAndLogin(options = {}) {
|
|
108
108
|
|
|
109
109
|
checkJdStatusAndLogin(options){
|
|
110
110
|
return this.checkStatusAndLogin(options)
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
doLoginForJdPin(options = {}) {
|
|
114
114
|
return this.doLogin(options)
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
getLoginCookie(updateKey = 'wxapp') {
|
|
118
118
|
return new Promise((resolve) => {
|
|
119
119
|
console.log("开始获取更新wxapp中的cookie信息", updateKey)
|
|
120
120
|
if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
|
|
121
121
|
console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
|
|
122
122
|
resolve({
|
|
123
123
|
wqCookie: this.config.wqCookie,
|
|
124
124
|
wqCookieStr: this.config.wqCookieStr,
|
|
125
125
|
})
|
|
126
126
|
}else {
|
|
127
127
|
if (isPublishToWxapp) {
|
|
128
128
|
const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
|
|
129
129
|
if (getWxappCookieObj) {
|
|
130
130
|
const getCookieObj = getWxappCookieObj['_data']
|
|
131
131
|
const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
|
|
132
132
|
const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
|
|
133
133
|
this.info.loginState = true
|
|
134
134
|
this.info.userInfo.wqCookie = wqCookieStr
|
|
135
135
|
this.info.userInfo.wqVisitkey = visitkey
|
|
136
136
|
console.log('获取用户完整cookie信息', getCookieObj)
|
|
137
137
|
const getUserAddress = this.wxAppUserInfoInstance.getAddress()
|
|
138
138
|
console.log('获取微信用户地址信息', getUserAddress)
|
|
139
139
|
if (getUserAddress) {
|
|
140
140
|
this.info.pageInfo.address = getUserAddress?.areaId
|
|
141
141
|
this.info.pageInfo.addressCommaStr = this.info.pageInfo
|
|
142
142
|
.address
|
|
143
143
|
? this.info.pageInfo.address.replace(/_/g, ',')
|
|
144
144
|
: ''
|
|
145
145
|
this.info.pageInfo.un_area = this.info.pageInfo.address
|
|
146
146
|
Taro.eventCenter.trigger(
|
|
147
147
|
TaroEventType.USER_AREA_UPDATE,
|
|
148
148
|
this.info.pageInfo.address,
|
|
149
149
|
)
|
|
150
150
|
}
|
|
151
151
|
if(this.miniAppLogInstance){
|
|
152
152
|
this.miniAppLogInstance.set({
|
|
153
153
|
account: pin,
|
|
154
154
|
unionid: wq_unionid,
|
|
155
155
|
openid: wxapp_openid,
|
|
156
156
|
})
|
|
157
157
|
}
|
|
158
158
|
this.config.wqCookie = wqCookie
|
|
159
159
|
this.config.wqCookieStr = wqCookieStr
|
|
160
160
|
this.config.getWqCookieKey = updateKey
|
|
161
161
|
console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
|
|
162
162
|
resolve({
|
|
163
163
|
wqCookie,
|
|
164
164
|
wqCookieStr,
|
|
165
165
|
})
|
|
166
166
|
}else {
|
|
167
167
|
console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
|
|
168
168
|
resolve({
|
|
169
169
|
wqCookie: false,
|
|
170
170
|
wqCookieStr: false,
|
|
171
171
|
})
|
|
172
172
|
}
|
|
173
173
|
}else {
|
|
174
174
|
resolve({
|
|
175
175
|
wqCookie: false,
|
|
176
176
|
wqCookieStr: false,
|
|
177
177
|
})
|
|
178
178
|
}
|
|
179
179
|
}
|
|
180
180
|
})
|
|
181
181
|
}
|
|
182
182
|
return this.getLoginCookie()
|
|
183
183
|
|
|
184
184
|
getAddressCachePromise = () => {
|
|
185
185
|
return Promise.reject("该方法只在APP内适用")
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
getDynamicConfig(key: string){
|
|
189
189
|
console.warn('调用默认的 getDynamicConfig(),注意,此方法还未实现!')
|
|
190
190
|
return null
|
|
191
191
|
}
|
|
192
192
|
renderNextTickLoadSdk(){
|
|
193
193
|
console.warn("暂未实现 index.ts")
|
|
194
194
|
}
|
|
195
195
|
loadOtherSdk(){
|
|
196
196
|
console.warn("暂未实现 index.ts")
|
|
197
197
|
}
|
|
198
198
|
loadItemSdkPromise() {
|
|
199
199
|
console.warn('暂未实现 index.ts')
|
|
200
200
|
}
|