k94314517
2024-09-29 2d2ac91d76af6ef4d755555c7623ee4e016a3066
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
<script setup>
import { ref, onMounted } from 'vue'
import dayjs from 'dayjs'
import UQRCode from 'uqrcodejs'
 
const initQrcode = () => {
  var qr = new UQRCode();
  // 设置二维码内容
  qr.data = "https://uqrcode.cn/doc";
  qr.size = 254;
  // 调用制作二维码方法
  qr.make();
  var canvas = document.getElementById("qrcode");
  var canvasContext = canvas.getContext("2d");
  qr.canvasContext = canvasContext;
  qr.drawCanvas();
}
onMounted(() => {
  initQrcode()
})
 
const weekMap = ['周日', '周一', '周二', '周三', '周四', '周五', '周六']
const newWeek = ref(weekMap[new Date().getDay()])
const newDate = ref(dayjs().format('YYYY-MM-DD'))
const newTime = ref(dayjs().format('HH:mm'))
setInterval(() => {
  newWeek.value = weekMap[new Date().getDay()]
  newDate.value = dayjs().format('YYYY-MM-DD')
  newTime.value = dayjs().format('HH:mm')
}, 1000)
</script>
<template>
  <div class="main_app">
    <div class="main_header">
      <img class="bg" src="@/assets/images/call/title@2x.png" alt="">
      <div class="title">安泰智慧物流园区-车辆叫号大屏</div>
      <div class="time_wrap">
        <div class="left">
          <div class="week">{{ newWeek }}</div>
          <div class="date">{{ newDate }}</div>
        </div>
        <div class="time">{{ newTime }}</div>
      </div>
    </div>
    <div class="main_content">
      <div class="list">
        <div class="line header">
          <div class="item no">序号</div>
          <div class="item">车牌号</div>
          <div class="item status">状态</div>
          <div class="item">停靠月台</div>
          <div class="item">时间</div>
        </div>
        <div class="line">
          <div class="item no">序号</div>
          <div class="item">车牌号</div>
          <div class="item">
            <div class="status underway">作业中</div>
          </div>
          <div class="item">停靠月台</div>
          <div class="item">时间</div>
        </div>
        <div class="line">
          <div class="item no">序号</div>
          <div class="item">车牌号</div>
          <div class="item">
            <div class="status call_ed">作业中</div>
          </div>
          <div class="item">停靠月台</div>
          <div class="item">时间</div>
        </div>
        <div class="line">
          <div class="item no">序号</div>
          <div class="item">车牌号</div>
          <div class="item">
            <div class="status padding">作业中</div>
          </div>
          <div class="item">停靠月台</div>
          <div class="item">时间</div>
        </div>
      </div>
      <div class="current">
        <div class="tip_wrap">
          <img src="@/assets/images/call/ic_left@2x.png" class="icon icon_l" alt="">
          <img src="@/assets/images/call/ic_right@2x.png" class="icon icon_r" alt="">
          <div class="empty">
            <div class="title">温馨提示</div>
            <div class="line">1、请司机根据叫号屏提示入园</div>
            <div class="line">2、未叫号车辆请耐心等待</div>
            <div class="line">3、请有序排队入园</div>
            <div class="line">4、装卸货结束禁止在园区逗留</div>
            <div class="line">5、请遵守园区安全规章制度</div>
          </div>
        </div>
        <div class="qrcode_wrap">
          <div class="qrcode">
            <canvas id="qrcode" width="254" height="254"></canvas>
          </div>
          <div class="title">请扫码签到</div>
        </div>
      </div>
    </div>
    <div class="main_footer">
      <img src="@/assets/images/call/ic_news@2x.png" class="icon" alt="">
      <div class="title">请根据队列提示信息,依次等候进场</div>
      <div class="icon"></div>
    </div>
  </div>
</template>
 
<style lang="scss" scoped>
.main_app {
  color: #fff;
  width: 100%;
  height: 100vh;
  background-color: #092030;
  position: relative;
  z-index: -2;
  display: flex;
  flex-direction: column;
 
  .main_header {
    width: 100%;
    height: 112px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 50px;
    .title {
      font-weight: 800;
      font-size: 48px;
    }
 
    .time_wrap {
      display: flex;
      align-items: center;
      .date {
        font-weight: 500;
        font-size: 20px;
        text-align: right;
      }
      .week {
        font-weight: 500;
        font-size: 20px;
        text-align: right;
      }
      .time {
        font-weight: 500;
        font-size: 50px;
        margin-left: 15px;
      }
    }
    .bg {
      position: absolute;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover;
      z-index: -1;
    }
  }
  .main_content{
    flex: 1;
    display: flex;
    padding: 30px 20px;
    position: relative;
    .list{
      flex: 5;
      margin-right: 20px;
      .line{
        display: flex;
        align-items: center;
        height: 100px;
        &:nth-of-type(2n){
          background: rgba(255,255,255,0);
        }
        &:nth-of-type(2n + 1){
          background: rgba(0,237,255,0.13);
        }
        .item{
          display: flex;
          justify-content: center;
          align-items: center;
          font-weight: 500;
          font-size: 36px;
          flex: 10;
          .status{
            width: 174px;
            height: 76px;
            border-radius: 8px;
            display: flex;
            justify-content: center;
            align-items: center;
          }
          .underway{
            background-color: #51b2ce;
          }
          .call_ed{
            background-color: #f2a43a;
          }
          .padding{
            background-color: #1c485a;
          }
        }
        .no{
          flex: 5;
        }
 
      }
      .header{
        font-size: bold;
        font-size: 40px;
        background: linear-gradient( 180deg, #00B5D1 0%, #003C57 100%) !important;
      }
    }
    .current{
      /* height: calc( 100vh - 192px ); */
      flex: 2;
      display: flex;
      flex-direction: column;
      .tip_wrap{
        margin-bottom: 20px;
        width: 100%;
        position: relative;
        flex-shrink: 0;
        flex: 1;
        .empty{
          padding: 30px 40px;
          font-weight: 500;
          font-size: 30px;
          .title{
            text-align: center;
            font-weight: bold;
            font-size: 36px;
            margin-bottom: 20px;
          }
          .line{
            margin-bottom: 10px;
          }
        }
        .icon{
          position: absolute;
          width: 52px;
          height: 52px;
        }
        .icon_l{
          left: 0;
          top: 0;
        }
        .icon_r{
          right: 0;
          bottom: 0;
        }
      }
      .qrcode_wrap{
        width: 100%;
        flex: 1;
        flex-shrink: 0;
        background-color: #51b2ce;
        padding: 36px 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        .qrcode{
          padding: 12px;
          background-color: #fff;
        }
        .title{
          margin-top: 20px;
          font-weight: bold;
          font-size: 38px;
          color: #111111;
        }
      }
    }
  }
  .main_footer{
    background-color: #1D8D9E;
    height: 80px;
    display: flex;
    align-items: center;
    padding: 0 50px;
    .icon{
      width: 52px;
      height: 52px;
    }
    .title{
      flex: 1;
      text-align: center;
      font-weight: 500;
      font-size: 37px;
    }
  }
 
}
</style>