修改日历

This commit is contained in:
筱野
2025-10-11 21:36:12 +08:00
parent 6dc4c57e5b
commit f7ebe5471c
11 changed files with 43 additions and 29 deletions

View File

@@ -1,8 +0,0 @@
export default definePageConfig({
navigationBarTitleText: '约球规则',
navigationBarBackgroundColor: '#ffffff',
navigationBarTextStyle: 'black',
backgroundColor: '#f5f5f5',
enablePullDownRefresh: false,
disableScroll: false
})

View File

@@ -1,245 +0,0 @@
// 条款页面样式
.terms_page {
width: 100%;
height: 100vh;
position: relative;
overflow: hidden;
display: flex;
flex-direction: column;
background: #FAFAFA;
box-sizing: border-box;
}
// 状态栏样式
.status_bar {
position: absolute;
top: 21px;
left: 0;
right: 0;
height: 33px;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 16px;
z-index: 10;
.time {
color: #000000;
font-family: 'SF Pro';
font-weight: 590;
font-size: 17px;
line-height: 22px;
}
.status_icons {
display: flex;
align-items: center;
gap: 7px;
.signal_icon,
.wifi_icon,
.battery_icon {
width: 20px;
height: 12px;
background: #000000;
border-radius: 2px;
opacity: 0.8;
}
.signal_icon {
width: 19px;
height: 12px;
}
.wifi_icon {
width: 17px;
height: 12px;
}
.battery_icon {
width: 27px;
height: 13px;
border: 1px solid rgba(0, 0, 0, 0.35);
background: #000000;
border-radius: 4px;
position: relative;
&::after {
content: '';
position: absolute;
right: -3px;
top: 4px;
width: 1px;
height: 4px;
background: rgba(0, 0, 0, 0.4);
border-radius: 0 1px 1px 0;
}
}
}
}
// 导航栏样式
.navigation_bar {
position: absolute;
top: 54px;
left: 0;
right: 0;
height: 44px;
background: #FFFFFF;
border-radius: 44px 44px 0 0;
z-index: 10;
display: flex;
align-items: center;
padding: 0 10px;
.nav_content {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
.back_button {
width: 32px;
height: 32px;
display: flex;
align-items: center;
justify-content: center;
cursor: pointer;
.back_icon {
width: 8px;
height: 16px;
background: #000000;
position: relative;
&::before {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 2px;
background: #000000;
transform: translateY(-50%) rotate(45deg);
}
&::after {
content: '';
position: absolute;
top: 50%;
left: 0;
width: 100%;
height: 2px;
background: #000000;
transform: translateY(-50%) rotate(-45deg);
}
}
}
.page_title {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 18px;
color: #000000;
text-align: center;
}
.nav_placeholder {
width: 32px;
}
}
}
// 主要内容区域
.main_content {
position: relative;
z-index: 5;
flex: 1;
box-sizing: border-box;
overflow-y: auto;
// 条款标题
.terms_title {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 20px;
line-height: 1.6em;
text-align: center;
color: #000000;
margin-bottom: 24px;
}
// 条款简介
.terms_intro {
font-family: 'PingFang SC';
font-weight: 600;
font-size: 14px;
line-height: 1.43em;
color: #000000;
margin-bottom: 24px;
}
// 条款详细内容
.terms_content {
font-family: 'PingFang SC';
font-weight: 400;
font-size: 14px;
line-height: 1.43em;
color: #000000;
margin-bottom: 40px;
white-space: pre-line;
padding: 0px 24px;
.terms_first_line,
span.terms_first_line {
font-weight: 500;
display: block;
margin-bottom: 16px;
}
}
// 底部按钮
.bottom_actions {
margin-bottom: 40px;
.agree_button {
width: 100%;
height: 52px;
background: #07C160;
border: none;
border-radius: 16px;
color: #FFFFFF;
font-size: 16px;
font-weight: 600;
font-family: 'PingFang SC';
cursor: pointer;
transition: all 0.3s ease;
&::after {
border: none;
}
&:active {
opacity: 0.8;
}
}
}
}
// 底部指示器
.home_indicator {
position: absolute;
bottom: 21px;
left: 50%;
transform: translateX(-50%);
width: 140px;
height: 5px;
background: #000000;
border-radius: 2.5px;
z-index: 10;
}

View File

@@ -1,40 +0,0 @@
import React, { useEffect } from 'react';
import { View, ScrollView } from '@tarojs/components';
import './index.scss';
const footballRules: React.FC = () => {
// 获取页面参数
const [termsContent, setTermsContent] = React.useState('');
useEffect(() => {
setTermsContent(`<span class="terms_first_line">欢迎使用本平台(以下简称"本平台")的微信绑定服务。为保障您的权益,请您务必仔细阅读并理解以下协议内容。</span>
一、绑定服务说明
1. 本平台提供微信账号绑定服务,用户可通过微信快捷登录方式使用平台功能。
2. 绑定微信账号后,用户可使用微信登录、微信支付、微信分享等功能。
3. 本平台承诺保护用户微信账号信息安全,不会泄露给第三方。`)
}, [])
return (
<View className="terms_page">
{/* 主要内容 */}
<ScrollView className="main_content" scrollY>
{/* 条款标题 */}
<View className="terms_title">
</View>
{/* 条款详细内容 */}
<View
className="terms_content"
dangerouslySetInnerHTML={{ __html: termsContent }}
/>
</ScrollView>
</View>
);
};
export default footballRules;

View File

@@ -7,7 +7,7 @@
bottom: 0;
left: 0;
right: 0;
z-index: 9999;
z-index: 99;
}
}
.publish-ball {
@@ -233,7 +233,7 @@
flex-direction: column;
align-items: center;
justify-content: center;
z-index: 9999;
z-index: 99;
.loading-spinner {
width: 40px;

View File

@@ -591,12 +591,11 @@ useEffect(() => {
const handleAnyInputFocus = (item: FormFieldConfig, e: any) => {
const { prop } = item
if (prop === 'title') {
return
if (prop === 'descriptionInfo') {
setShouldReactToKeyboard(true)
}
setShouldReactToKeyboard(true)
}
const handleAnyInputBlur = (item: FormFieldConfig, e: any) => {
const handleAnyInputBlur = () => {
setShouldReactToKeyboard(false)
}
return (
@@ -680,7 +679,7 @@ useEffect(() => {
activityType === 'individual' && (
<Text className={styles['submit-tip']}>
<Text className={styles['link']} onClick={() => Taro.navigateTo({url: '/publish_pages/publishBall/footballRules/index'})}></Text>
<Text className={styles['link']} onClick={() => Taro.navigateTo({url: '/publish_pages/footballRules/index'})}></Text>
</Text>
)
}