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