This commit is contained in:
huangge1199 2025-07-21 15:48:09 +08:00
parent 09f24fc328
commit 153fff0242
7 changed files with 88 additions and 21 deletions

View File

@ -0,0 +1,4 @@
.at-button--primary {
background: #88619a !important;
border-color: #88619a !important;
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 462 KiB

View File

@ -0,0 +1,8 @@
.globalFooter {
position: fixed;
bottom: 30px;
left: 0;
right: 0;
text-align: center;
color: #fff;
}

View File

@ -0,0 +1,13 @@
import { View } from "@tarojs/components";
import "./index.scss";
/**
*
*/
export default () => {
return (
<View className='globalFooter'>
</View>
);
};

View File

@ -0,0 +1,31 @@
.indexPage {
background-image: url('../../assets/headerBg.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
min-height: 100vh; // 保证全屏
padding: 20px;
.title {
// color: #fff;
padding-top: 48px;
margin-bottom: 24px;
text-align: center;
}
.subTitle {
// color: #fff;
margin-bottom: 48px;
}
.enterBtn {
width: 30vw;
min-width: 180px;
display: block;
margin: 0 auto;
text-align: center;
color: #fff;
border-radius: 999px;
padding: 20px 0;
}
}

View File

@ -1,23 +1,34 @@
import { Component, PropsWithChildren } from 'react'
import { View, Text } from '@tarojs/components'
import {View} from "@tarojs/components";
import {AtButton} from "taro-ui";
import Taro from "@tarojs/taro";
import "./index.scss";
import GlobalFooter from "../../components/GlobalFooter";
import "taro-ui/dist/style/components/button.scss" // 按需引入
import './index.scss'
export default class Index extends Component<PropsWithChildren> {
componentDidMount () { }
componentWillUnmount () { }
componentDidShow () { }
componentDidHide () { }
render () {
return (
<View className='index'>
<Text>Hello world!</Text>
/**
*
*/
export default () => {
return (
<View className="indexPage">
<View className="at-article__h1 title">MBTI </View>
<View className="at-article__h3 subTitle">
2
</View>
)
}
}
<AtButton
type="primary"
size="normal"
className="enterBtn"
circle
onClick={() => {
Taro.navigateTo({
url: "/pages/doQuestion/index",
});
}}
>
</AtButton>
<GlobalFooter />
</View>
);
};