style: 性别选择按钮样式
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
All checks were successful
git提交控制 AiDA WEB-Node.js main 分支构建部署 / build (20.19.0) (push) Has been skipped
This commit is contained in:
@@ -23,7 +23,7 @@ import FooterNavigation from '@/components/FooterNavigation.vue'
|
|||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import { showToast } from 'vant'
|
import { showToast } from 'vant'
|
||||||
import {useUserInfoStore} from '@/stores'
|
import { useUserInfoStore } from '@/stores'
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
const userInfoStore = useUserInfoStore()
|
const userInfoStore = useUserInfoStore()
|
||||||
|
|
||||||
@@ -33,8 +33,11 @@ const options = ref<any[]>([
|
|||||||
])
|
])
|
||||||
|
|
||||||
const handleSelect = (value: string) => {
|
const handleSelect = (value: string) => {
|
||||||
if (value === 'male') {// 男性开发中
|
if (value === 'male') {
|
||||||
return showToast(`This feature is currently under development. Please select the 'Female' option for now.`)
|
// 男性开发中
|
||||||
|
return showToast(
|
||||||
|
`This feature is currently under development. Please select the 'Female' option for now.`
|
||||||
|
)
|
||||||
}
|
}
|
||||||
const generateParams = userInfoStore.getGenerateParams()
|
const generateParams = userInfoStore.getGenerateParams()
|
||||||
generateParams.sex = value
|
generateParams.sex = value
|
||||||
@@ -71,13 +74,24 @@ const handleSelect = (value: string) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
.option {
|
.option {
|
||||||
// flex: 1;
|
// frosted glass style
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-family: 'satoshiRegular';
|
font-family: 'satoshiRegular';
|
||||||
font-size: 4.8rem;
|
font-size: 4.8rem;
|
||||||
width: 29.7rem;
|
width: 29.7rem;
|
||||||
height: 8.3rem;
|
height: 8.3rem;
|
||||||
border: .2rem solid #fff;
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border-radius: .2rem;
|
||||||
|
background: rgba(255, 255, 255, 0.06);
|
||||||
|
border: 0.2rem solid #fff;
|
||||||
|
backdrop-filter: blur(95px);
|
||||||
|
-webkit-backdrop-filter: blur(95px);
|
||||||
|
-moz-backdrop-filter: blur(95px);
|
||||||
|
background-clip: padding-box;
|
||||||
|
box-shadow: 0 4px 18px rgba(0, 0, 0, 0.25);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user