| | |
| | | } |
| | | } |
| | | }, |
| | | onLoad() { |
| | | this.getList() |
| | | onShow() { |
| | | this.pagination.page = 0 |
| | | this.list = [] |
| | | this.getList() |
| | | }, |
| | | onReachBottom() { |
| | | if (this.total > 10) { |
| | | this.getList() |
| | | } |
| | | const { |
| | | total, |
| | | list |
| | | } = this |
| | | if (list.length < total) { |
| | | this.getList() |
| | | } else { |
| | | this.showToast('暂无更多数据') |
| | | } |
| | | }, |
| | | methods: { |
| | | handleDetail(id) { |
| | |
| | | align-items: center; |
| | | justify-content: space-between; |
| | | .active { |
| | | border: 1rpx solid $uni-color-primary !important; |
| | | border: 2rpx solid $uni-color-primary !important; |
| | | color: $uni-color-primary !important; |
| | | } |
| | | .box_head_item { |
| | | width: 156rpx; |
| | | text-align: center; |
| | | height: 60rpx; |
| | | line-height: 60rpx; |
| | | box-sizing: border-box; |
| | | display: flex; |
| | | align-items: center; |
| | | justify-content: center; |
| | | border-radius: 30rpx; |
| | | border: 1rpx solid #999999; |
| | | border: 2rpx solid #999999; |
| | | font-size: 26rpx; |
| | | font-weight: 400; |
| | | color: #333333; |