This commit is contained in:
kron
2025-09-27 16:11:47 +08:00
parent b75ab93af9
commit 9af2f5b887
3 changed files with 21 additions and 13 deletions

View File

@@ -74,6 +74,7 @@ watch(
<template> <template>
<view class="container"> <view class="container">
<image src="../static/donate.png" mode="widthFix" />
<text>感谢您对我们公益项目的支持</text> <text>感谢您对我们公益项目的支持</text>
<view class="amounts"> <view class="amounts">
<button <button
@@ -125,7 +126,12 @@ watch(
align-items: center; align-items: center;
transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out;
} }
.container > text:first-child { .container > image:first-child {
width: 200rpx;
position: absolute;
top: -114rpx;
}
.container > text:nth-child(2) {
font-weight: 500; font-weight: 500;
font-size: 28rpx; font-size: 28rpx;
color: #333333; color: #333333;
@@ -156,40 +162,40 @@ watch(
.amounts > button > text:last-child { .amounts > button > text:last-child {
font-size: 34rpx; font-size: 34rpx;
} }
.container > view:nth-child(3) { .container > view:nth-child(4) {
width: 100%; width: 100%;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: flex-start; justify-content: flex-start;
margin-top: 20rpx; margin-top: 20rpx;
} }
.container > view:nth-child(3) > view { .container > view:nth-child(4) > view {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin: 0 10rpx; margin: 0 10rpx;
border: 1rpx solid #e3e3e3; border: 1rpx solid #e3e3e3;
border-radius: 50%; border-radius: 50%;
} }
.container > view:nth-child(3) > image { .container > view:nth-child(4) > image {
width: 32rpx; width: 32rpx;
height: 32rpx; height: 32rpx;
margin: 0 10rpx; margin: 0 10rpx;
} }
.container > view:nth-child(3) > text { .container > view:nth-child(4) > text {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
margin: 20rpx 0; margin: 20rpx 0;
} }
.container > view:nth-child(4) { .container > view:nth-child(5) {
margin-bottom: 25rpx; margin-bottom: 25rpx;
} }
.container > view:nth-child(4) > view { .container > view:nth-child(5) > view {
width: 100%; width: 100%;
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
margin-bottom: 20rpx; margin-bottom: 20rpx;
} }
.container > view:nth-child(4) > view > text { .container > view:nth-child(5) > view > text {
font-size: 24rpx; font-size: 24rpx;
color: #333333; color: #333333;
width: 30%; width: 30%;
@@ -198,7 +204,7 @@ watch(
height: 60rpx; height: 60rpx;
line-height: 60rpx; line-height: 60rpx;
} }
.container > view:nth-child(4) > view > input { .container > view:nth-child(5) > view > input {
border-radius: 12rpx; border-radius: 12rpx;
border: 1rpx solid #fed848; border: 1rpx solid #fed848;
height: 40rpx; height: 40rpx;
@@ -206,9 +212,10 @@ watch(
padding: 10rpx 20rpx; padding: 10rpx 20rpx;
font-size: 30rpx; font-size: 30rpx;
margin-right: 10rpx; margin-right: 10rpx;
width: 55%;
} }
.container > view:nth-child(4) > view > textarea { .container > view:nth-child(5) > view > textarea {
width: 70%; width: 55%;
border-radius: 12rpx; border-radius: 12rpx;
border: 1rpx solid #fed848; border: 1rpx solid #fed848;
height: 100rpx; height: 100rpx;

View File

@@ -53,8 +53,7 @@ const props = defineProps({
position: relative; position: relative;
width: 75vw; width: 75vw;
margin-bottom: 15px; margin-bottom: 15px;
border-radius: 20px; border-radius: 30rpx;
overflow: hidden;
background: #fff; background: #fff;
} }
.container > view:first-child > image { .container > view:first-child > image {
@@ -62,5 +61,7 @@ const props = defineProps({
width: 100%; width: 100%;
z-index: -1; z-index: -1;
top: 0; top: 0;
border-top-left-radius: 30rpx;
border-top-right-radius: 30rpx;
} }
</style> </style>

BIN
src/static/donate.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB