@conecli/cone-render 0.9.1-shop2.3 → 0.9.1-shop2.30
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/assets/icon_blue_info.svg +1 -0
- 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/common.ts +1 -0
- 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/Base/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/debug/DebugLayout/index.module.scss +67 -0
- package/dist/components/debug/DebugLayout/index.tsx +1 -0
- package/dist/components/debug/DebugLayout/utils.ts +1 -0
- 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/colorSign.ts +1 -1
- package/dist/service/http/const.ts +1 -1
- package/dist/service/http/h5Http.ts +1 -0
- package/dist/service/http/index.h5.ts +1 -0
- package/dist/service/requestServer.h5.ts +1 -0
- 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
|
getAPPUseStraightCorner () {
|
|
108
108
|
return Promise.resolve(false)
|
|
109
109
|
}
|
|
110
110
|
checkStatusAndLogin(options = {}) {
|
|
111
111
|
|
|
112
112
|
checkJdStatusAndLogin(options){
|
|
113
113
|
return this.checkStatusAndLogin(options)
|
|
114
114
|
}
|
|
115
115
|
|
|
116
116
|
doLoginForJdPin(options = {}) {
|
|
117
117
|
return this.doLogin(options)
|
|
118
118
|
}
|
|
119
119
|
|
|
120
120
|
getLoginCookie(updateKey = 'wxapp') {
|
|
121
121
|
return new Promise((resolve) => {
|
|
122
122
|
console.log("开始获取更新wxapp中的cookie信息", updateKey)
|
|
123
123
|
if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
|
|
124
124
|
console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
|
|
125
125
|
resolve({
|
|
126
126
|
wqCookie: this.config.wqCookie,
|
|
127
127
|
wqCookieStr: this.config.wqCookieStr,
|
|
128
128
|
})
|
|
129
129
|
}else {
|
|
130
130
|
if (isPublishToWxapp) {
|
|
131
131
|
const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
|
|
132
132
|
if (getWxappCookieObj) {
|
|
133
133
|
const getCookieObj = getWxappCookieObj['_data']
|
|
134
134
|
const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
|
|
135
135
|
const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
|
|
136
136
|
this.info.loginState = true
|
|
137
137
|
this.info.userInfo.wqCookie = wqCookieStr
|
|
138
138
|
this.info.userInfo.wqVisitkey = visitkey
|
|
139
139
|
console.log('获取用户完整cookie信息', getCookieObj)
|
|
140
140
|
const getUserAddress = this.wxAppUserInfoInstance.getAddress()
|
|
141
141
|
console.log('获取微信用户地址信息', getUserAddress)
|
|
142
142
|
if (getUserAddress) {
|
|
143
143
|
this.info.pageInfo.address = getUserAddress?.areaId
|
|
144
144
|
this.info.pageInfo.addressCommaStr = this.info.pageInfo
|
|
145
145
|
.address
|
|
146
146
|
? this.info.pageInfo.address.replace(/_/g, ',')
|
|
147
147
|
: ''
|
|
148
148
|
this.info.pageInfo.un_area = this.info.pageInfo.address
|
|
149
149
|
Taro.eventCenter.trigger(
|
|
150
150
|
TaroEventType.USER_AREA_UPDATE,
|
|
151
151
|
this.info.pageInfo.address,
|
|
152
152
|
)
|
|
153
153
|
}
|
|
154
154
|
if(this.miniAppLogInstance){
|
|
155
155
|
this.miniAppLogInstance.set({
|
|
156
156
|
account: pin,
|
|
157
157
|
unionid: wq_unionid,
|
|
158
158
|
openid: wxapp_openid,
|
|
159
159
|
})
|
|
160
160
|
}
|
|
161
161
|
this.config.wqCookie = wqCookie
|
|
162
162
|
this.config.wqCookieStr = wqCookieStr
|
|
163
163
|
this.config.getWqCookieKey = updateKey
|
|
164
164
|
console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
|
|
165
165
|
resolve({
|
|
166
166
|
wqCookie,
|
|
167
167
|
wqCookieStr,
|
|
168
168
|
})
|
|
169
169
|
}else {
|
|
170
170
|
console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
|
|
171
171
|
resolve({
|
|
172
172
|
wqCookie: false,
|
|
173
173
|
wqCookieStr: false,
|
|
174
174
|
})
|
|
175
175
|
}
|
|
176
176
|
}else {
|
|
177
177
|
resolve({
|
|
178
178
|
wqCookie: false,
|
|
179
179
|
wqCookieStr: false,
|
|
180
180
|
})
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
183
|
})
|
|
184
184
|
}
|
|
185
185
|
return this.getLoginCookie()
|
|
186
186
|
|
|
187
187
|
getAddressCachePromise = () => {
|
|
188
188
|
return Promise.reject("该方法只在APP内适用")
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
getDynamicConfig(key: string){
|
|
192
192
|
console.warn('调用默认的 getDynamicConfig(),注意,此方法还未实现!')
|
|
193
193
|
return null
|
|
194
194
|
}
|
|
195
195
|
renderNextTickLoadSdk(){
|
|
196
196
|
console.warn("暂未实现 index.ts")
|
|
197
197
|
}
|
|
198
198
|
loadOtherSdk(){
|
|
199
199
|
console.warn("暂未实现 index.ts")
|
|
200
200
|
}
|
|
201
201
|
loadItemSdkPromise(jsInfo = {}) {
|
|
202
202
|
console.warn('暂未实现 index.ts')
|
|
203
203
|
}
|