|
@@ -1,10 +1,31 @@
|
|
-import { View } from '@tarojs/components'
|
|
|
|
|
|
+import Taro from '@tarojs/taro'
|
|
|
|
+import { View, Video, Navigator, Button } from '@tarojs/components'
|
|
import React from 'react'
|
|
import React from 'react'
|
|
import './index.less'
|
|
import './index.less'
|
|
|
|
|
|
const Custom: React.FC = () => {
|
|
const Custom: React.FC = () => {
|
|
|
|
+ function clickCustom() {
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
return (
|
|
return (
|
|
- <View>Custom</View>
|
|
|
|
|
|
+ <View onClick={clickCustom}>
|
|
|
|
+ <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/h5/index'>
|
|
|
|
+ <Button>H5</Button>
|
|
|
|
+ </Navigator>
|
|
|
|
+
|
|
|
|
+ <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/miniWeb/index'>
|
|
|
|
+ <Button>半屏</Button>
|
|
|
|
+ </Navigator>
|
|
|
|
+
|
|
|
|
+ <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/webview/index'>
|
|
|
|
+ <Button>全屏</Button>
|
|
|
|
+ </Navigator>
|
|
|
|
+
|
|
|
|
+ <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/webview/index'>
|
|
|
|
+ <Video autoplay controls={false} loop src='https://xycdn.yishihui.com/ad/prod/video/material_AD_1700025739_1700025739924.mp4' />
|
|
|
|
+ </Navigator>
|
|
|
|
+ </View>
|
|
)
|
|
)
|
|
}
|
|
}
|
|
|
|
|