@conecli/cone-render 0.8.15-beta.25 → 0.8.15-beta.26
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 from '@tarojs/taro'
|
|
2
1
|
console.log('>>>>>>>>>>>>>>>>>>> render taroEventSendPageScrollInfo origin time:', Date.now(), 'res:', options)
|
|
3
2
|
if(options){
|
|
4
3
|
latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] = options
|
|
5
4
|
}
|
|
6
5
|
console.log('>>>>>>>>>>>>>>>>>>> nativePageLoadFinish trigger!', Date.now())
|
|
7
6
|
if(isJdApp && isH5AndJdShopView && isAndroidDevice){
|
|
8
7
|
setTimeout(() => {
|
|
9
8
|
console.log('>>>>>>>>>>>>>>>>>>> 给Android发[Message_Type.NATIVE_GET_SCROLL_TOP]消息了')
|
|
10
9
|
nativePageGetScrollTop(() => {
|
|
11
10
|
console.log('>>>>>>>>>>>>>>>>>>> 给Android发[Message_Type.NATIVE_GET_SCROLL_TOP]消息调用成功!')
|
|
12
11
|
})
|
|
13
12
|
}, 100)
|
|
14
13
|
}
|
|
14
|
+
import Taro from '@tarojs/taro'
|
|
15
15
|
console.log('>>>>>>>>>>>>>>>>>>> render taroEventSendPageScrollInfo origin time:', Date.now(), 'res:', options)
|
|
16
16
|
if(options){
|
|
17
17
|
latestFromNativeMsgStorage[TaroEventType.PAGE_SCROLL] = options
|
|
18
18
|
}
|
|
19
19
|
console.log('>>>>>>>>>>>>>>>>>>> nativePageLoadFinish trigger!', Date.now())
|
|
20
20
|
if(isJdApp && isH5AndJdShopView && isAndroidDevice){
|
|
21
21
|
setTimeout(() => {
|
|
22
22
|
console.log('>>>>>>>>>>>>>>>>>>> 给Android发[Message_Type.NATIVE_GET_SCROLL_TOP]消息了')
|
|
23
23
|
nativePageGetScrollTop((res) => {
|
|
24
24
|
console.log('>>>>>>>>>>>>>>>>>>> 给Android发[Message_Type.NATIVE_GET_SCROLL_TOP]消息调用成功!', res)
|
|
25
25
|
console.log('>>>>>>>>>>>>>>>>>>> 给Android发[Message_Type.NATIVE_GET_SCROLL_TOP]消息调用成功String!', JSON.stringify(res))
|
|
26
26
|
})
|
|
27
27
|
}, 0)
|
|
28
28
|
}
|