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 u-text-center" >
< view class = "home_logo_wrapper" >
< u -image width = "200rpx" height = "200rpx" src = "/static/logo.png" > < / u - i m a g e >
< / view >
< view class = "home_title_wrapper" > { { config . title } } < / view >
< view class = "home_dev_tool_wrapper" >
< u -input v-model ="name" :border="true" placeholder="..." />
<view class="home_dev_tool_button_wrapper">
<u-button size="mini" @click="toDev()" > YO ! < / u -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 _wrapper {
position : absolute ;
top : 50 % ;
left : 50 % ;
transform : translate ( - 50 % , - 50 % ) ;
}
< / style >