@conecli/cone-render 0.8.38 → 0.8.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/README.md +7 -1
- 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/common/wxappApi.ts +1 -1
- package/dist/components/ErrorBoundary.tsx +1 -1
- package/dist/components/base/CommonFloorHead/index.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/LazyLayoutLoad/index.weapp.tsx +1 -1
- package/dist/components/base/LazyLoadImage/const.ts +1 -1
- package/dist/components/base/LazyLoadImage/index.h5.module.scss +20 -20
- package/dist/components/base/LazyLoadImage/index.h5.tsx +1 -1
- package/dist/components/base/MobileCommonHeader/index.module.scss +9 -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 +4 -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/base/Skeleton/index.tsx +1 -1
- package/dist/components/decorate/DecorateFloorModule/index.module.scss +21 -2
- package/dist/components/decorate/DecorateFloorModule/index.tsx +1 -1
- package/dist/components/decorate/EmptyFloorModule/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 -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 +17 -1
- package/dist/modules/ContainerFloorList/index.h5.tsx +1 -1
- package/dist/modules/ContainerFloorList/index.tsx +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/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 +39 -3
- package/dist/sass/base.scss +12 -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 -0
- package/dist/utils/utils.ts +1 -1
- package/dist/wxapp/api/helper.js +1 -0
- package/dist/wxapp/components/launch-app/index.js +1 -0
- package/dist/wxapp/components/launch-app/index.json +5 -0
- package/dist/wxapp/components/launch-app/index.wxml +0 -0
- package/dist/wxapp/components/launch-app/index.wxss +0 -0
- package/dist/wxapp/components/subscribe-guider/helper.js +1 -0
- package/dist/wxapp/components/subscribe-guider/index.js +1 -0
- package/dist/wxapp/components/subscribe-guider/index.json +5 -0
- package/dist/wxapp/components/subscribe-guider/index.wxml +0 -0
- package/dist/wxapp/components/subscribe-guider/index.wxss +0 -0
- package/package.json +2 -1
- package/dist/components/base/Skeleton/old.tsx +0 -1
- package/dist/customHooks/useDocumentVisibilitychange.ts +0 -1
package/dist/common/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
public config: {
|
|
3
2
|
[key: string]: any
|
|
4
3
|
}
|
|
5
4
|
public lazyContainer: CommonInterFace.lazyContainer
|
|
6
5
|
this.config = {}
|
|
7
6
|
|
|
8
7
|
getLoginCookie(updateKey = 'wxapp') {
|
|
9
8
|
return new Promise((resolve) => {
|
|
10
9
|
console.log("开始获取更新wxapp中的cookie信息", updateKey)
|
|
11
10
|
if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
|
|
12
11
|
console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
|
|
13
12
|
resolve({
|
|
14
13
|
wqCookie: this.config.wqCookie,
|
|
15
14
|
wqCookieStr: this.config.wqCookieStr,
|
|
16
15
|
})
|
|
17
16
|
}else {
|
|
18
17
|
if (isPublishToWxapp) {
|
|
19
18
|
const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
|
|
20
19
|
if (getWxappCookieObj) {
|
|
21
20
|
const getCookieObj = getWxappCookieObj['_data']
|
|
22
21
|
const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
|
|
23
22
|
const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
|
|
24
23
|
this.info.loginState = true
|
|
25
24
|
this.info.userInfo.wqCookie = wqCookieStr
|
|
26
25
|
this.info.userInfo.wqVisitkey = visitkey
|
|
27
26
|
console.log('获取用户完整cookie信息', getCookieObj)
|
|
28
27
|
const getUserAddress = this.wxAppUserInfoInstance.getAddress()
|
|
29
28
|
console.log('获取微信用户地址信息', getUserAddress)
|
|
30
29
|
if (getUserAddress) {
|
|
31
30
|
this.info.pageInfo.address = getUserAddress?.areaId
|
|
32
31
|
this.info.pageInfo.addressCommaStr = this.info.pageInfo
|
|
33
32
|
.address
|
|
34
33
|
? this.info.pageInfo.address.replace(/_/g, ',')
|
|
35
34
|
: ''
|
|
36
35
|
this.info.pageInfo.un_area = this.info.pageInfo.address
|
|
37
36
|
Taro.eventCenter.trigger(
|
|
38
37
|
TaroEventType.USER_AREA_UPDATE,
|
|
39
38
|
this.info.pageInfo.address,
|
|
40
39
|
)
|
|
41
40
|
}
|
|
42
41
|
if(this.miniAppLogInstance){
|
|
43
42
|
this.miniAppLogInstance.set({
|
|
44
43
|
account: pin,
|
|
45
44
|
unionid: wq_unionid,
|
|
46
45
|
openid: wxapp_openid,
|
|
47
46
|
})
|
|
48
47
|
}
|
|
49
48
|
this.config.wqCookie = wqCookie
|
|
50
49
|
this.config.wqCookieStr = wqCookieStr
|
|
51
50
|
this.config.getWqCookieKey = updateKey
|
|
52
51
|
console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
|
|
53
52
|
resolve({
|
|
54
53
|
wqCookie,
|
|
55
54
|
wqCookieStr,
|
|
56
55
|
})
|
|
57
56
|
}else {
|
|
58
57
|
console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
|
|
59
58
|
resolve({
|
|
60
59
|
wqCookie: false,
|
|
61
60
|
wqCookieStr: false,
|
|
62
61
|
})
|
|
63
62
|
}
|
|
64
63
|
}else {
|
|
65
64
|
resolve({
|
|
66
65
|
wqCookie: false,
|
|
67
66
|
wqCookieStr: false,
|
|
68
67
|
})
|
|
69
68
|
}
|
|
70
69
|
}
|
|
71
70
|
})
|
|
72
71
|
}
|
|
73
72
|
return this.getLoginCookie()
|
|
73
|
+
import Taro from '@tarojs/taro'
|
|
74
74
|
floorVideInfo: {},
|
|
75
75
|
productVideInfo: {},
|
|
76
76
|
isVipShop: false,
|
|
77
77
|
isJdShowNativeImmersivePlayer: false,
|
|
78
78
|
pageIdxHeightInfo: {
|
|
79
79
|
list: []
|
|
80
80
|
},
|
|
81
81
|
jdBottomBarHeight: 0,
|
|
82
82
|
jdNativeHeaderHeight: 0,
|
|
83
83
|
openAppData: {}
|
|
84
84
|
public config: {
|
|
85
85
|
[key: string]: any
|
|
86
86
|
}
|
|
87
87
|
public lazyContainer: CommonInterFace.lazyContainer
|
|
88
88
|
public renderedIsvComponents: CommonInterFace.renderedIsvComponents
|
|
89
89
|
this.config = {}
|
|
90
90
|
this.renderedIsvComponents = {}
|
|
91
91
|
|
|
92
92
|
taskTimeoutPromise(callBack, timeout = 2000){
|
|
93
93
|
return new Promise((resolve) => {
|
|
94
94
|
setTimeout(() => {
|
|
95
95
|
const getCallBackRes = typeof callBack === 'function' && callBack()
|
|
96
96
|
return resolve(getCallBackRes || false)
|
|
97
97
|
}, timeout)
|
|
98
98
|
})
|
|
99
99
|
}
|
|
100
100
|
removeJdAndroidRquestEventForTouchStart(){}
|
|
101
101
|
this.info.sysInfo['wifiVideoAutoPlay'] = false
|
|
102
102
|
checkStatusAndLogin(options = {}) {
|
|
103
103
|
|
|
104
104
|
checkJdStatusAndLogin(options){
|
|
105
105
|
return this.checkStatusAndLogin(options)
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
doLoginForJdPin(options = {}) {
|
|
109
109
|
return this.doLogin(options)
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
getLoginCookie(updateKey = 'wxapp') {
|
|
113
113
|
return new Promise((resolve) => {
|
|
114
114
|
console.log("开始获取更新wxapp中的cookie信息", updateKey)
|
|
115
115
|
if(this.config.wqCookie && this.config.wqCookieStr && this.config.getWqCookieKey === updateKey){
|
|
116
116
|
console.log("已有存储wxapp中的cookie信息,直接返回",this.config)
|
|
117
117
|
resolve({
|
|
118
118
|
wqCookie: this.config.wqCookie,
|
|
119
119
|
wqCookieStr: this.config.wqCookieStr,
|
|
120
120
|
})
|
|
121
121
|
}else {
|
|
122
122
|
if (isPublishToWxapp) {
|
|
123
123
|
const getWxappCookieObj = getTaroStorageKeyValue('cookies') || null
|
|
124
124
|
if (getWxappCookieObj) {
|
|
125
125
|
const getCookieObj = getWxappCookieObj['_data']
|
|
126
126
|
const { wqCookie, wqCookieStr } = getWxAppCookieStr(getCookieObj)
|
|
127
127
|
const { pin = '', visitkey = '-1', wq_unionid = '', wxapp_openid = '' } = wqCookie
|
|
128
128
|
this.info.loginState = true
|
|
129
129
|
this.info.userInfo.wqCookie = wqCookieStr
|
|
130
130
|
this.info.userInfo.wqVisitkey = visitkey
|
|
131
131
|
console.log('获取用户完整cookie信息', getCookieObj)
|
|
132
132
|
const getUserAddress = this.wxAppUserInfoInstance.getAddress()
|
|
133
133
|
console.log('获取微信用户地址信息', getUserAddress)
|
|
134
134
|
if (getUserAddress) {
|
|
135
135
|
this.info.pageInfo.address = getUserAddress?.areaId
|
|
136
136
|
this.info.pageInfo.addressCommaStr = this.info.pageInfo
|
|
137
137
|
.address
|
|
138
138
|
? this.info.pageInfo.address.replace(/_/g, ',')
|
|
139
139
|
: ''
|
|
140
140
|
this.info.pageInfo.un_area = this.info.pageInfo.address
|
|
141
141
|
Taro.eventCenter.trigger(
|
|
142
142
|
TaroEventType.USER_AREA_UPDATE,
|
|
143
143
|
this.info.pageInfo.address,
|
|
144
144
|
)
|
|
145
145
|
}
|
|
146
146
|
if(this.miniAppLogInstance){
|
|
147
147
|
this.miniAppLogInstance.set({
|
|
148
148
|
account: pin,
|
|
149
149
|
unionid: wq_unionid,
|
|
150
150
|
openid: wxapp_openid,
|
|
151
151
|
})
|
|
152
152
|
}
|
|
153
153
|
this.config.wqCookie = wqCookie
|
|
154
154
|
this.config.wqCookieStr = wqCookieStr
|
|
155
155
|
this.config.getWqCookieKey = updateKey
|
|
156
156
|
console.log("解析wxapp中的cookie信息成功,返回后存储",this.config)
|
|
157
157
|
resolve({
|
|
158
158
|
wqCookie,
|
|
159
159
|
wqCookieStr,
|
|
160
160
|
})
|
|
161
161
|
}else {
|
|
162
162
|
console.log("解析wxapp中的cookie信息异常,返回异常结果",this.config)
|
|
163
163
|
resolve({
|
|
164
164
|
wqCookie: false,
|
|
165
165
|
wqCookieStr: false,
|
|
166
166
|
})
|
|
167
167
|
}
|
|
168
168
|
}else {
|
|
169
169
|
resolve({
|
|
170
170
|
wqCookie: false,
|
|
171
171
|
wqCookieStr: false,
|
|
172
172
|
})
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
})
|
|
176
176
|
}
|
|
177
177
|
return this.getLoginCookie()
|
|
178
178
|
|
|
179
179
|
getAddressCachePromise = () => {
|
|
180
180
|
return Promise.reject("该方法只在APP内适用")
|
|
181
181
|
}
|