5
添加账目信息:
<view class="pure-u-4-24">
<button type="primary" size="mini" bindtap="addWant"> + </button>
</view>
删除账目信息:
<view class="item">
<text>{{index + 1}}. {{item.Title}}</text>
<icon class="delete" type="cancel" size="15" bindtap="deleteIt" id="{{index}}"/>
</view>
并利用相关布局设计,来给界面、按钮进行相关设置:
/* pages/me/me.wxss */
.title{
color:#06b314;
font-size: 50rpx;
padding:20px 112px;
}
.container {
height: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: space-between;
padding: 20rpx 0;
box-sizing: border-box;
}
.pure-g {
width: 90%;
}
input {
border-bottom: 1px solid #ccc;
}
button {
color: #ccc;
}
.main-items {
margin-top: 30rpx;
}
.main-items .item{
display: block;
margin-top: 20rpx;
color: #666;
border-bottom: 1px dashed #888;
padding-bottom: 10rpx;
}
.main-items .delete{
float: right;
}


浙公网安备 33010602011771号