jazz
2023-12-05 aeb317703c9c82edb7c4c7ecc5985eef62864c7c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!--room-list.vue-->
<template>
  <div class="page">
    <div class="page_header flex flex-ver">
      <div class="left flex flex-ver" @click="back">
        <img class="page_logo_1" src="../../assets/img/logo_1.png">
        <img class="page_logo_2" src="../../assets/img/logo_2.png">
      </div>
      <div class="right flex-1 flex flex-jcfe flex-ver">
        <div class="page_date">
          <div class="page_week">{{ timeObj.week }}</div>
          <div class="page_day">{{ timeObj.date }}</div>
        </div>
        <div class="page_time">{{ timeObj.timeMin }}</div>
        <!-- <div class="page_time">{{ timeObj.time }}</div> -->
      </div>
    </div>
    <div class="page_container">
      <div class="list_container flex flex-col">
        <div class="list_container__title">请选择房间</div>
        <div class="list_block flex-1">
          <div class="list flex flex-ver flex-wrap">
            <!-- act -->
            <div v-for="(item, index) in list" :key="index" class="list__item flex flex-center" @click="selectRoom()">VIP诊疗室-1</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
 
<script>
// import Login from '../utils/jun_login.js'
 
export default {
  name: 'RoomList',
  components: {},
  inject: ['noop'],
  data() {
    return {
      list: ['', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', '', ''],
      timeObj: {}// week:星期,date:年月日,timeMin:时分,time:时分秒,timeStamp:时间戳
    }
  },
  computed: {
 
  },
  mounted() {
    console.log('roomList mounted')
    this.init()
  },
  destroyed() {
 
  },
  methods: {
    init() {
      this.countGetTime(this, 'timeObj', 'list')
    },
    // 返回
    back() {
      this.stopCountGetTime('list')
      this.stopPollingAjaxFn('list')
      this.$router.go(-1)
    },
    selectRoom(item = {}) {
      this.$router.push({
        path: `./detail?id=${item.id || ''}`
      })
    }
  }
}
</script>
 
<style scoped>
.list_container {
  width: 100%;
  height: 100%;
  background-color: #fff;
  border-radius: 10px;
}
.list_container__title {
  line-height: 56px;
  color: rgba(16,16,16,1);
  font-size: 40px;
  text-align: center;
  font-family: PingFangSC-medium;
  padding: 27px 0;
  /* font-weight: bold; */
}
.list_block {
  /* padding-right: 66px; */
  margin-bottom: 50px;
  overflow: auto;
}
.list_block .list {
 
}
.list_block .list .list__item {
  padding: 40px 30px;
  border-radius: 100px;
  background-color: rgba(229,238,253,1);
  color: rgba(0,0,0,1);
  font-size: 40px;
  text-align: center;
  font-family: Roboto;
  line-height: 1;
  margin-left: 48px;
  margin-bottom: 30px;
}
.list_block .list .list__item.act {
  background-color: #5980FF;
  color: #fff;
}
</style>