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