You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
< script setup >
/**
* name:
* user: sa0ChunLuyu
* date: 2022-04-19 14:58:23
*/
import {
ref
} from 'vue'
import config from '@/config.js'
const name = ref ( '' )
const toDev = ( ) => {
if ( name . value ) {
uni . navigateTo ( {
url : '/pages/dev/dev/dev?name=' + name . value
} )
} else {
uni . $lu . toast ( "多少输点东西行不行" )
}
}
< / script >
< template >
< view class = "home_wrapper" >
< view class = "home_logo_wrapper" >
< image src = "/static/logo.png" > < / image >
< / view >
< view class = "home_title_wrapper" > { { config . title } } < / view >
< view class = "home_dev_tool_wrapper" >
< uni -easyinput :clearable ="false" v-model ="name" placeholder="..." />
<view class="home_dev_tool_button_wrapper">
<button type="primary" @click="toDev()" > YO ! < / button >
< / view >
< / view >
< / view >
< / template >
< style scoped >
. home _dev _tool _button _wrapper {
margin - top : 10 rpx ;
}
. home _title _wrapper {
margin : 10 rpx 0 ;
}
. home _logo _wrapper {
width : 200 rpx ;
height : 200 rpx ;
margin : 0 auto ;
}
. home _logo _wrapper image {
width : 200 rpx ;
height : 200 rpx ;
}
. home _wrapper {
position : absolute ;
top : 50 % ;
left : 50 % ;
transform : translate ( - 50 % , - 50 % ) ;
text - align : center ;
}
< / style >