|
@@ -3,12 +3,15 @@ import { View, Video, Navigator, Button, FunctionalPageNavigator } from '@tarojs
|
|
|
import React from 'react'
|
|
|
import './index.less'
|
|
|
|
|
|
-const Custom: React.FC = () => {
|
|
|
+const Custom: React.FC = (props) => {
|
|
|
function clickCustom() {
|
|
|
-
|
|
|
+ console.log(props)
|
|
|
}
|
|
|
|
|
|
+ const customWidth = props.width || 100
|
|
|
+
|
|
|
useReady(async () => {
|
|
|
+ // console.log(ctx.$scope.data.props)
|
|
|
// Taro.getSetting({
|
|
|
// success(res) {
|
|
|
// console.log('getSetting', res)
|
|
@@ -25,8 +28,8 @@ const Custom: React.FC = () => {
|
|
|
// }
|
|
|
// })
|
|
|
|
|
|
- const systemInfo = await Taro.getNetworkType()
|
|
|
- console.log(systemInfo)
|
|
|
+ // const systemInfo = await Taro.getNetworkType()
|
|
|
+ // console.log(systemInfo)
|
|
|
|
|
|
// Taro.login({
|
|
|
// success(res) {
|
|
@@ -62,22 +65,24 @@ const Custom: React.FC = () => {
|
|
|
|
|
|
return (
|
|
|
<View onClick={clickCustom}>
|
|
|
- <Navigator url='plugin-private://wx58cb402db1e94bb7/pages/h5/index'>
|
|
|
+ <View>{customWidth}</View>
|
|
|
+ <View>123</View>
|
|
|
+ {/*a <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/h5/index'>
|
|
|
<Button>H5</Button>
|
|
|
</Navigator>
|
|
|
|
|
|
- <Navigator url='plugin-private://wx58cb402db1e94bb7/pages/miniWeb/index'>
|
|
|
+ <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/miniWeb/index'>
|
|
|
<Button>半屏</Button>
|
|
|
</Navigator>
|
|
|
|
|
|
- <Navigator url='plugin-private://wx58cb402db1e94bb7/pages/webview/index'>
|
|
|
+ <Navigator url='plugin-private://wxf7261ed54f2e450e/pages/webview/index'>
|
|
|
<Button>全屏</Button>
|
|
|
- </Navigator>
|
|
|
+ </Navigator> */}
|
|
|
|
|
|
- {/* <Navigator url='plugin-private://wx58cb402db1e94bb7/pages/webview/index'>
|
|
|
+ {/* <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> */}
|
|
|
- <Button onClick={clickPayment}>支付</Button>
|
|
|
+ {/* <Button onClick={clickPayment}>支付</Button> */}
|
|
|
{/* <FunctionalPageNavigator
|
|
|
name="loginAndGetUserInfo"
|
|
|
version="develop"
|