
<view class="custom-input-container">
<span class="currency">¥</span>
<input class="uni-input" type="text" placeholder="请输入金额" />
</view>
<style lang="scss">
.custom-input-container {
position: relative;
}
.currency {
font-family: PingFang SC, PingFang SC;
font-weight: 600;
color: #3C9CFF;
margin-left: 19px;
position: absolute;
left: 10px;
top: 50%;
transform: translateY(-50%);
font-size: 18px;
pointer-events: none;
}
/deep/ .uni-input-placeholder {
color: #3C9CFF;
}
.uni-input {
font-family: PingFang SC, PingFang SC;
font-weight: 500;
font-size: 20px;
padding-left: 40px;
border: none;
width: 100%;
box-sizing: border-box;
outline: none;
margin: 14px;
width: 347px;
height: 70px;
background: rgba(60, 156, 255, 0.06);
border-radius: 8px 8px 8px 8px;
border: 2px solid #3C9CFF;
}
</style>