写一下wxml
<!--item.wxml--<view class="page">
<view class="section">
<view class="section__title">标题</view><input bindinput="bindTitleInput" placeholder="内容" value="{{title}}" /></view><view class="section"><view class="section__title">类型</view><radio-group class="radio-group" bindchange="radioChange"><label class="radio"><radio class="radio" value="income" checked="true"/>收入</label><label class="radio"><radio class="radio" value="cost"/>支出</label></radio-group></view><view class="section"><view class="section__title">金额</view><input bindinput="bindAccountInput" type="number" placeholder="请输入数字"/></view><button class="button" type="primary">添加</button></view>
还有wxss
.page {
min-height: 100%;
flex: 1;
background-color: #FBF8FE;
font-size: 45rpx;
font-family: -apple-system-font,Helvetica Neue,Helvetica,sans-serif;
overflow: hidden;
}
.page input{
padding: 10rpx 45rpx;
background-color: #fff;
}
.section{
margin:35rpx 0;
}
.section_gap{
padding: 0 41rpx;
}
浙公网安备 33010602011771号