jazz
2023-12-21 1fa546e22f9b913868cdeb5a84f3fc3c4f500ffb
src/components/xio_room_status_chg/index.vue
@@ -5,29 +5,37 @@
      <div class="btn_box flex flex-center">
        <div style="width: 100%;">
          <div class="line flex flex-ver flex-sb">
            <div class="btn_box_item flex flex-center white" @click="changeStatus('空闲')">
            <div class="btn_box_item flex flex-center white" @click="changeStatus('空闲', 0)">
              <div class="flex flex-ver">
                <img class="icon" src="../../assets/img/free.png">
                <div class="icon">
                  <img class="img" src="static/imgs/free.png">
                </div>
                <div class="tx">空闲</div>
              </div>
            </div>
            <div class="btn_box_item flex flex-center blue" @click="changeStatus('使用中')">
            <div class="btn_box_item flex flex-center blue" @click="changeStatus('使用中', 1)">
              <div class="flex flex-ver">
                <img class="icon" src="../../assets/img/using.png">
                <div class="icon">
                  <img class="img" src="static/imgs/using.png">
                </div>
                <div class="tx white">使用中</div>
              </div>
            </div>
          </div>
          <div class="line flex flex-ver flex-sb">
            <div class="btn_box_item flex flex-center yellow" @click="changeStatus('客人休息')">
            <div class="btn_box_item flex flex-center yellow" @click="changeStatus('客人休息', 2)">
              <div class="flex flex-ver">
                <img class="icon" src="../../assets/img/rest.png">
                <div class="icon">
                  <img class="img" src="static/imgs/rest.png">
                </div>
                <div class="tx">客人休息</div>
              </div>
            </div>
            <div class="btn_box_item flex flex-center gray" @click="changeStatus('通知打扫')">
            <div class="btn_box_item flex flex-center gray" @click="changeStatus('通知打扫', 3)">
              <div class="flex flex-ver">
                <img class="icon" src="../../assets/img/clear.png">
                <div class="icon">
                  <img class="img" src="static/imgs/clear.png">
                </div>
                <div class="tx">通知打扫</div>
              </div>
            </div>
@@ -57,8 +65,8 @@
      return
    },
    // 更换状态
    changeStatus(tx) {
      this.$emit('changeStatus', { statusTx: tx })
    changeStatus(tx, status) {
      this.$emit('changeStatus', { statusTx: tx, status: status * 1 })
    },
    // 显示弹窗
    showDialog() {
@@ -126,6 +134,10 @@
  display: block;
  margin-right: 17px;
}
.xio_room_status_chg_dialog .btn_box_item .icon .img {
  width: 100%;
  height: 100%;
}
.xio_room_status_chg_dialog .btn_box_item .tx {
  line-height: 37px;
  color: rgba(51,51,51,1);