|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159 |
- <template>
- <view>
- <view class="title">
- <image src="@/static/image/home1.png" mode="" style="width: 40rpx;height: 40rpx;margin-right: 8rpx;">
- </image>
- 寝室104
- </view>
- <view class="listTitlte">
- 已归寝
- </view>
- <view class="list">
- <view v-for="(item, index) in list" :key="index" class="item">
- <view class="right">
- <image src="@/static/image/test/test.png" mode="" style="width: 160rpx;height: 160rpx;"></image>
- <view class="des">
- <view class="top">
- <view class="status">
- 已归寝
- </view>
- <view class="name">
- 杨云
- </view>
- </view>
- <view class="depart">
- 系部:安环部
- </view>
- <view class="bottom">
- <view class="major">专业:环艺</view>
- <view class="class">班级:第二班</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="listTitlte">
- 未归寝
- </view>
- <view class="list">
- <view v-for="(item, index) in list" :key="index" class="item">
- <view class="right">
- <image src="@/static/image/test/test.png" mode="" style="width: 160rpx;height: 160rpx;"></image>
- <view class="des">
- <view class="top">
- <view class="status error">
- 未归寝
- </view>
- <view class="name">
- 杨云
- </view>
- </view>
- <view class="depart">
- 系部:安环部
- </view>
- <view class="bottom">
- <view class="major">专业:环艺</view>
- <view class="class">班级:第二班</view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
-
- <script>
- export default {
- data() {
- return {
- list: [{
- name: 1
- }, {
- name: 2
- }, {
- name: 3
- }],
- checkboxValue:[],
- }
- },
- methods: {
- }
- }
- </script>
-
- <style scoped lang="scss">
- .title {
- display: flex;
- color: #333333;
- padding: 26rpx;
- background: #fff;
- border-top: 1rpx solid rgba(0, 0, 0, 0.03);
- font-size: 30rpx;
- }
- .listTitlte{
- color: #777777;
- font-size:28rpx;
- padding:18rpx 30rpx;
- }
- .list {
- padding: 0 26rpx;
- margin-bottom: 16rpx;
- .item {
- display: flex;
- margin-bottom: 28rpx;
-
- &:last-child {
- margin-bottom: 0;
- }
-
- .right {
- padding: 30rpx;
- flex: 1;
- background-color: #fff;
- border-radius: 18rpx;
- display: flex;
-
- .des {
- flex: 1;
- padding-left: 24rpx;
- font-size: 26rpx;
- color: #333;
-
- .top {
- color: #333;
- font-size: 32rpx;
- display:flex;
- .status{
- display: inline-block;
- font-size: 26rpx;
- line-height: 1.5;
- background-color: #0FAF76;
- color: #fff;
- padding: 0 12rpx;
- border-radius: 8rpx;
- margin-right: 12rpx;
- }
- .status.error{
- background-color: #EF2D2D;
- }
- }
-
- .depart {
- margin-top: 28rpx;
- }
-
- .bottom {
- margin-top: 18rpx;
- display: flex;
- justify-content: space-between;
-
- .major {}
-
- .class {}
- }
- }
- }
- }
- }
- </style>
|