@conecli/cone-render 0.8.15-beta.13 → 0.8.15-beta.15
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro, { useRouter } from '@tarojs/taro'
|
|
2
1
|
floorData = {},
|
|
3
2
|
const rootDom = document.querySelector('#J_shopHomeRoot')
|
|
4
3
|
root: rootDom,
|
|
5
4
|
rootMargin: `0px 0px ${window.innerHeight}px 0px`,
|
|
6
5
|
useEffect(() => {
|
|
7
6
|
if(componentShowState === true){
|
|
8
7
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
9
8
|
console.log('向IOS原生发送通知请求ISV模块依赖JS文件:', bundleUrl)
|
|
10
9
|
nativePageRegisterMessage(
|
|
11
10
|
Message_Type.NATIVE_INJECT_JS_FILE,
|
|
12
11
|
{
|
|
13
12
|
data: {
|
|
14
13
|
"bundleUrl": [bundleUrl]
|
|
15
14
|
},
|
|
16
15
|
},
|
|
17
16
|
)
|
|
18
17
|
}
|
|
19
18
|
}
|
|
20
19
|
}, [componentShowState])
|
|
21
20
|
ref={ref}
|
|
21
|
+
import Taro, { useRouter } from '@tarojs/taro'
|
|
22
22
|
floorData = {},
|
|
23
23
|
const rootDom = document.querySelector('#J_shopHomeRoot')
|
|
24
24
|
root: rootDom,
|
|
25
25
|
rootMargin: `0px 0px ${window.innerHeight}px 0px`,
|
|
26
26
|
useEffect(() => {
|
|
27
27
|
if(componentShowState === true){
|
|
28
28
|
console.log('>>>>>>>>>>>>>>>>>>> 楼层【id=' + containerId + '】已经渲染!')
|
|
29
29
|
const modularPackResult = floorData?.floorExtInfo?.modularPackResult
|
|
30
30
|
console.log('>>>>>>>>>>>>>>>>>>> 向IOS原生发送通知请求ISV模块依赖JS文件:', bundleUrl)
|
|
31
31
|
nativePageRegisterMessage(
|
|
32
32
|
Message_Type.NATIVE_INJECT_JS_FILE,
|
|
33
33
|
{
|
|
34
34
|
data: {
|
|
35
35
|
"bundleUrl": [bundleUrl]
|
|
36
36
|
},
|
|
37
37
|
},
|
|
38
38
|
)
|
|
39
39
|
}
|
|
40
40
|
}
|
|
41
41
|
}, [componentShowState])
|
|
42
42
|
ref={ref}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import Taro from '@tarojs/taro'
|
|
2
1
|
console.log('==========> taroEventSendPageScrollInfo res:', options)
|
|
3
2
|
if(isJdApp && isH5AndJdShopView && isAndroidDevice){
|
|
4
3
|
setTimeout(() => {
|
|
5
4
|
nativePageRegisterMessage(
|
|
6
5
|
Message_Type.NATIVE_GET_SCROLL_TOP,
|
|
7
6
|
null,
|
|
8
7
|
)
|
|
9
8
|
}, 0)
|
|
10
9
|
}
|
|
10
|
+
import Taro from '@tarojs/taro'
|
|
11
11
|
console.log('>>>>>>>>>>>>>>>>>>> taroEventSendPageScrollInfo res:', options)
|
|
12
12
|
if(isJdApp && isH5AndJdShopView && isAndroidDevice){
|
|
13
13
|
setTimeout(() => {
|
|
14
14
|
nativePageRegisterMessage(
|
|
15
15
|
Message_Type.NATIVE_GET_SCROLL_TOP,
|
|
16
16
|
null,
|
|
17
17
|
)
|
|
18
18
|
}, 0)
|
|
19
19
|
}
|