chenyc
2022-07-18 98c1a01a3db90a5018dc165e5254c67b4bcf930d
style
2个文件已添加
1个文件已修改
869 ■■■■ 已修改文件
src/views/home/css/common.css 65 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/css/index.css 433 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/index.vue 371 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/views/home/css/common.css
New file
@@ -0,0 +1,65 @@
body * {
    box-sizing: border-box;
    flex-shrink: 0;
  }
  body {
    font-family: PingFangSC-Regular, Roboto, Helvetica Neue, Helvetica, Tahoma,
      Arial, PingFang SC-Light, Microsoft YaHei;
  }
  button {
    margin: 0;
    padding: 0;
    border: 1px solid transparent;
    outline: none;
    background-color: transparent;
  }
  button:active {
    opacity: 0.6;
  }
  .flex-col {
    display: flex;
    flex-direction: column;
  }
  .flex-row {
    display: flex;
    flex-direction: row;
  }
  .justify-start {
    display: flex;
    justify-content: flex-start;
  }
  .justify-center {
    display: flex;
    justify-content: center;
  }
  .justify-end {
    display: flex;
    justify-content: flex-end;
  }
  .justify-evenly {
    display: flex;
    justify-content: space-evenly;
  }
  .justify-around {
    display: flex;
    justify-content: space-around;
  }
  .justify-between {
    display: flex;
    justify-content: space-between;
  }
  .align-start {
    display: flex;
    align-items: flex-start;
  }
  .align-center {
    display: flex;
    align-items: center;
  }
  .align-end {
    display: flex;
    align-items: flex-end;
  }
src/views/home/css/index.css
New file
@@ -0,0 +1,433 @@
.page {
    position: relative;
    width: 1440px;
    height: 920px;
    background-color: rgba(243, 246, 254, 1);
    overflow: hidden;
  }
  .box_7 {
    width: 1440px;
    height: 886px;
  }
  .header {
    height: 72px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 1px 3px 5px 0px rgba(233, 233, 233, 1);
    width: 1440px;
  }
  .box_8 {
    width: 1364px;
    height: 40px;
    margin: 16px 0 0 36px;
  }
  .image_1 {
    width: 102px;
    height: 40px;
  }
  .text_1 {
    width: 115px;
    height: 38px;
    display: inline-block;
    color: rgba(51, 51, 51, 1);
    font-size: 27px;
    letter-spacing: 1.6875px;
    font-family: PingFangSC-Medium;
    white-space: nowrap;
    line-height: 38px;
    text-align: left;
    margin: 1px 0 0 525px;
  }
  .text_2 {
    width: 36px;
    height: 38px;
    display: inline-block;
    color: rgba(255, 116, 114, 1);
    font-size: 27px;
    letter-spacing: 1.6875px;
    font-family: PingFangSC-Medium;
    white-space: nowrap;
    line-height: 38px;
    text-align: left;
    margin: 1px 0 0 586px;
  }
  .grid_3 {
    width: 1360px;
    height: 790px;
    flex-wrap: wrap;
    margin: 24px 0 0 40px;
  }
  .section_1 {
    height: 385px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 1px 2px 4px 0px rgba(201, 223, 246, 0.5);
    width: 670px;
    margin: 0 20px 20px 0;
  }
  .block_2 {
    width: 539px;
    height: 315px;
    margin: 35px 0 0 45px;
  }
  .image-wrapper_1 {
    z-index: 28;
    position: relative;
    width: 227px;
    height: 315px;
    border-radius: 4px;
    overflow: hidden;
    background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng105e855e48547de664df1d81f3a13e3f87ec4517208a338998c46a58f9f74774)
      100% no-repeat;
  }
  .image_2 {
    z-index: 29;
    position: absolute;
    left: 0;
    top: 0;
    width: 227px;
    height: 315px;
  }
  .group_6 {
    width: 277px;
    height: 147px;
    margin-top: 84px;
  }
  .text-wrapper_13 {
    width: 277px;
    height: 42px;
  }
  .text_3 {
    width: 77px;
    height: 42px;
    display: inline-block;
    color: rgba(119, 119, 119, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
  }
  .text_4 {
    width: 95px;
    height: 42px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Medium;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
  }
  .block_1 {
    width: 277px;
    height: 2px;
    background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPngc3dfe3234ccde964ffe168da1d8ce284992f4694b4c162c911b029ffa594b42b)
      100% no-repeat;
    margin-top: 30px;
  }
  .text-wrapper_14 {
    width: 277px;
    height: 48px;
    margin-top: 25px;
  }
  .text_5 {
    width: 108px;
    height: 42px;
    display: inline-block;
    color: rgba(119, 119, 119, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
    margin-top: 6px;
  }
  .text_6 {
    width: 131px;
    height: 47px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 40px;
    letter-spacing: 2.5px;
    font-family: DINAlternate-Bold;
    white-space: nowrap;
    line-height: 47px;
    text-align: left;
  }
  .section_4 {
    height: 385px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 1px 2px 4px 0px rgba(201, 223, 246, 0.5);
    margin-bottom: 20px;
    width: 670px;
  }
  .group_7 {
    width: 600px;
    height: 60px;
    margin: 21px 0 0 40px;
  }
  .text_7 {
    width: 205px;
    height: 42px;
    display: inline-block;
    color: rgba(51, 51, 51, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
    margin-top: 9px;
  }
  .box_2 {
    width: 60px;
    height: 60px;
  }
  .text-wrapper_15 {
    width: 373px;
    height: 140px;
    margin: 42px 0 122px 149px;
  }
  .text_8 {
    width: 373px;
    height: 140px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 120px;
    letter-spacing: 7.5px;
    font-family: DINAlternate-Bold;
    white-space: nowrap;
    line-height: 140px;
    text-align: center;
  }
  .section_5 {
    height: 385px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 1px 2px 4px 0px rgba(201, 223, 246, 0.5);
    width: 670px;
    margin: 0 20px 20px 0;
  }
  .box_9 {
    width: 498px;
    height: 284px;
    margin: 49px 0 0 86px;
  }
  .text-wrapper_16 {
    width: 498px;
    height: 47px;
  }
  .text_9 {
    width: 77px;
    height: 42px;
    display: inline-block;
    color: rgba(119, 119, 119, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
    margin-top: 3px;
  }
  .text_10 {
    width: 66px;
    height: 47px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 40px;
    letter-spacing: 2.5px;
    font-family: DINAlternate-Bold;
    white-space: nowrap;
    line-height: 47px;
    text-align: left;
  }
  .box_3 {
    width: 498px;
    height: 1px;
    background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng1ca95e12a3501f2e670de7c0c91df99f32447793ecff31fdb3de7069e28e3dad) -1px
      0px no-repeat;
    background-size: 500px 2px;
    margin-top: 32px;
  }
  .text-wrapper_17 {
    width: 498px;
    height: 47px;
    margin-top: 39px;
  }
  .text_11 {
    width: 171px;
    height: 42px;
    display: inline-block;
    color: rgba(119, 119, 119, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
    margin-top: 2px;
  }
  .text_12 {
    width: 99px;
    height: 47px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 40px;
    letter-spacing: 2.5px;
    font-family: DINAlternate-Bold;
    white-space: nowrap;
    line-height: 47px;
    text-align: left;
  }
  .box_4 {
    width: 498px;
    height: 1px;
    background: url(https://lanhu.oss-cn-beijing.aliyuncs.com/SketchPng1ca95e12a3501f2e670de7c0c91df99f32447793ecff31fdb3de7069e28e3dad) -1px
      0px no-repeat;
    background-size: 500px 2px;
    margin-top: 40px;
  }
  .text-wrapper_18 {
    width: 498px;
    height: 47px;
    margin-top: 30px;
  }
  .text_13 {
    width: 213px;
    height: 42px;
    display: inline-block;
    color: rgba(119, 119, 119, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
    margin-top: 3px;
  }
  .text_14 {
    width: 78px;
    height: 47px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 40px;
    letter-spacing: 2.5px;
    font-family: DINAlternate-Bold;
    white-space: nowrap;
    line-height: 47px;
    text-align: left;
  }
  .section_6 {
    height: 385px;
    border-radius: 10px;
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 1px 2px 4px 0px rgba(201, 223, 246, 0.5);
    margin-bottom: 20px;
    width: 670px;
  }
  .section_12 {
    width: 600px;
    height: 60px;
    margin: 21px 0 0 40px;
  }
  .text_15 {
    width: 202px;
    height: 42px;
    display: inline-block;
    color: rgba(51, 51, 51, 1);
    font-size: 30px;
    letter-spacing: 1.875px;
    font-family: AlibabaPuHuiTi-Regular;
    white-space: nowrap;
    line-height: 42px;
    text-align: left;
    margin-top: 9px;
  }
  .group_1 {
    width: 60px;
    height: 60px;
  }
  .section_13 {
    width: 374px;
    height: 149px;
    margin: 42px 0 113px 270px;
  }
  .text_16 {
    width: 131px;
    height: 140px;
    display: inline-block;
    color: rgba(118, 154, 255, 1);
    font-size: 120px;
    letter-spacing: 7.5px;
    font-family: DINAlternate-Bold;
    white-space: nowrap;
    line-height: 140px;
    text-align: center;
  }
  .image-wrapper_2 {
    width: 60px;
    height: 139px;
    margin-top: 10px;
  }
  .section_9 {
    width: 60px;
    height: 60px;
  }
  .section_10 {
    width: 60px;
    height: 60px;
    margin-top: 19px;
  }
src/views/home/index.vue
@@ -6,10 +6,10 @@
import { reactive, computed, toRefs, onMounted, ref, watch } from "vue"
import { sendPationCode, sendPationSet } from '../../samples/sockteStomp'
import { formatDate } from '@/utils/formatTime'
import logo from '@/assets/LOGO.png'
import state1 from '@/assets/state1.png'
import state2 from '@/assets/state2.png'
import state3 from '@/assets/state3.png'
import logo from '@/assets/LOGO.png'
export default {
    setup() {
@@ -87,10 +87,10 @@
            console.log(timer)
        }
        const state = reactive({
            logo:logo,
            state1:state1,
            state2:state2,
            state3:state3,
            logo:logo,
            dialogVisible: false,
            isActive: false,
            inputCode: "",
@@ -215,7 +215,7 @@
}
</script>
<template>
    <div class="home">
    <div class="page flex-col">
        <!-- 提醒刷卡 -->
        <audio src="https://dhcdn.leon056.com/hemo/autoselfsign/step1.mp3" ref="AudioRef0" id="eventAudio"></audio>
        <!-- 患者信息读取成功 -->
@@ -230,262 +230,117 @@
        <el-dialog title="提示" v-model="isLink" width="30%">
            <span>sockte连接失败正在重连。。。。。。</span>
        </el-dialog>
        <div>
            <el-row>
                <el-col :span="6">
                    <div class="imglogo">
                        <el-image :src="logo"  />
      <div class="box_7 flex-col justify-between">
        <div class="header flex-col">
          <div class="box_8 flex-row">
            <img
              class="image_1"
              referrerpolicy="no-referrer"
              :src="logo"
            />
            <el-input id="inputCode" style="width:50px"  @change="inputChabge" v-model="inputCode" ref="inputRef" placeholder="" />
            <span class="text_1">自助签到</span> <span class="text_2">{{clockNum}}</span>
          </div>
        </div>
        <div class="grid_3 flex-row">
          <div class="section_1 flex-col">
            <div class="block_2 flex-row justify-between">
              <div class="image-wrapper_1 flex-col">
                <img
                  class="image_2"
                  referrerpolicy="no-referrer"
                  :src="patientInfo.patientAvatarIcon"
                />
              </div>
              <div class="group_6 flex-col">
                <div class="text-wrapper_13 flex-row justify-between">
                  <span class="text_3">姓名:</span>
                  <span class="text_4">{{patientInfo.name}}</span>
                </div>
                <div class="block_1 flex-col"></div>
                <div class="text-wrapper_14 flex-row justify-between">
                  <span class="text_5">透析号:</span>
                  <span class="text_6">{{patientInfo.hemoCode}}</span>
                </div>
              </div>
            </div>
          </div>
          <div class="section_4 flex-col">
            <div class="group_7 flex-row justify-between">
              <span class="text_7">血压(mmHg):</span>
              <img
                v-if="xyjInfo.state === 2"
                class="group_1"
                referrerpolicy="no-referrer"
                :src="state1"
              />
              <img
               v-if="xyjInfo.state === 1"
                class="group_1"
                referrerpolicy="no-referrer"
                :src="state2"
              />
              <img
              v-if="xyjInfo.state === 0"
                class="group_1"
                referrerpolicy="no-referrer"
                :src="state3"
              />
            </div>
            <div class="text-wrapper_15 flex-row">
              <span class="text_8">{{ gao_ya }}/{{ di_ya }}</span>
            </div>
          </div>
          <div class="section_5 flex-col">
            <div class="box_9 flex-col">
              <div class="text-wrapper_16 flex-row justify-between">
                <span class="text_9">机号:</span>
                <span class="text_10">{{patientInfo.deviceCode}}</span>
              </div>
              <div class="box_3 flex-col"></div>
              <div class="text-wrapper_17 flex-row justify-between">
                <span class="text_11">干体重(kg):</span>
                <span class="text_12">{{ patientInfo.pureWeight }}</span>
              </div>
              <div class="box_4 flex-col"></div>
              <div class="text-wrapper_18 flex-row justify-between">
                <span class="text_13">目标脱水量(L):</span>
                <span class="text_14">{{aimTSL}}</span>
              </div>
            </div>
          </div>
          <div class="section_6 flex-col">
            <div class="section_12 flex-row justify-between">
              <span class="text_15">透前体重(kg):</span>
              <img
                v-if="weightInfo.state === 2"
                class="group_1"
                referrerpolicy="no-referrer"
                :src="state1"
              />
              <img
               v-if="weightInfo.state === 1"
                class="group_1"
                referrerpolicy="no-referrer"
                :src="state2"
              />
              <img
              v-if="weightInfo.state === 0"
                class="group_1"
                referrerpolicy="no-referrer"
                :src="state3"
              />
            </div>
            <div class="section_13 flex-row justify-between">
              <span class="text_16">{{ weightInfo.result }}</span>
            </div>
          </div>
        </div>
      </div>
                    </div>
                     
                </el-col>
                <el-col :span="2">
                    <el-input id="inputCode"  @change="inputChabge" v-model="inputCode" ref="inputRef" placeholder="" />
                </el-col>
                <el-col :span="8" class="titleText">
                    患者签到
                </el-col>
                <el-col class="clockNum" :span="8">{{clockNum}}</el-col>
            </el-row>
        </div>
        <el-row :gutter="30">
            <el-col :span="12" class="item">
                <div>
                    <el-row>
                        <el-col :span="10">
                            <div class="patimg">
                                <el-image style="width:200px;height:280px;" :src="patientInfo.patientAvatarIcon" />
                            </div>
                        </el-col>
                        <el-col :span="14">
                            <div class="chenlabe">
                                    <div class="chenlabel">
                                    <div class="chenlabe2">
                                        <el-row>
                                            <el-col class="lableClass" :span="12">
                                                姓名:
                                            </el-col>
                                            <el-col class="inputClasss" :span="12">
                                                {{patientInfo.name}}
                                            </el-col>
                                        </el-row>
                                    </div>
                                </div>
                                <div class="chenlabel" >
                                    <div class="chenlabe2">
                                        <el-row>
                                            <el-col class="lableClass" :span="12">
                                                透析号:
                                            </el-col>
                                            <el-col class="inputClasss" :span="12">
                                                {{patientInfo.hemoCode}}
                                            </el-col>
                                        </el-row>
                                    </div>
                                </div>
                            </div>
                        </el-col>
                    </el-row>
                </div>
            </el-col>
            <el-col :span="12" class="item">
                <div class="xyjCON">
                    <el-row class="xyclass">
                        <el-col :span="12" >血压(mmHg):</el-col>
                        <el-col :span="12" >
                            <div class="xyimg">
                                <el-image v-if="xyjInfo.state === 2" style="width: 60px; height: 60px" :src="state1"  />
                                <el-image v-if="xyjInfo.state === 1" style="width: 60px; height: 60px" :src="state2"  />
                                <el-image v-if="xyjInfo.state === 0" style="width: 60px; height: 60px" :src="state3"  />
                            </div>
                        </el-col>
                    </el-row>
                    <el-row>
                        <div class="xyjnumber">
                            {{ gao_ya }}/{{ di_ya }}
                        </div>
                    </el-row>
                </div>
            </el-col>
            <el-col :span="12" class="item">
                <div>
                    <div class="deviceInfo">
                        <el-row class="deviceInfoItem">
                            <el-col class="text" :span="12" >机号:</el-col>
                            <el-col class="value" :span="12" > {{patientInfo.deviceCode}}</el-col>
                        </el-row>
                        <el-row class="deviceInfoItem">
                            <el-col class="text" :span="12" >干体重(kg):</el-col>
                            <el-col class="value" :span="12" > {{ patientInfo.pureWeight }}</el-col>
                        </el-row>
                        <el-row class="deviceInfoItem">
                            <el-col class="text" :span="12" >目标脱水量(L):</el-col>
                            <el-col class="value" :span="12" > {{aimTSL}}</el-col>
                        </el-row>
                    </div>
                </div>
            </el-col>
            <el-col :span="12" class="item">
                <div class="xyjCON">
                    <el-row class="xyclass">
                        <el-col :span="12" >透前体重(kg):</el-col>
                        <el-col :span="12" >
                            <div class="xyimg">
                                <el-image v-if="weightInfo.state === 2" style="width: 60px; height: 60px" :src="state1"  />
                                <el-image v-if="weightInfo.state === 1" style="width: 60px; height: 60px" :src="state2"  />
                                <el-image v-if="weightInfo.state === 0" style="width: 60px; height: 60px" :src="state3"  />
                            </div>
                        </el-col>
                    </el-row>
                    <el-row>
                        <div class="xyjnumber">
                            {{ weightInfo.result }}
                        </div>
                    </el-row>
                </div>
            </el-col>
        </el-row>
    </div>
</template>
<style lang="scss">
.home{
background:  #F3F6FE;
}
.item{
    padding: 20px;
}
.item>div{
    background: #FFFFFF;
    box-shadow: 1px 2px 4px 0px rgba(201,223,246,0.5000);
    border-radius: 10px;
    height: 330px;
}
.chenlabe{
    padding-top: 15%;
}
.chenlabel{
    height: 50%;
    // background: #d9ecff;
}
.chenlabe2{
    padding-top: 10%;
    padding-left: 30px;
    .lableClass{
        height: 42px;
        font-size: 30px;
        font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
        font-weight: 400;
        color: #777777;
        line-height: 42px;
        letter-spacing: 1px;
    }
    .inputClasss{
        height: 42px;
        font-size: 30px;
        font-family: AlibabaPuHuiTi-Medium, AlibabaPuHuiTi;
        font-weight: 500;
        color: #769AFF;
        line-height: 42px;
        letter-spacing: 1px;
    }
}
.patimg{
    width: 227px;height: 315px;border-radius: 4px;
    padding-left: 13px;
    padding-top: 17px;
}
.xyclass{
    padding-top: 10px;
    padding-left: 10px;
    padding-right: 10px;
    font-size: 30px;
    font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
    font-weight: 400;
    color: #333333;
}
.xyimg{
    text-align: right;
}
.xyjnumber{
    width:100%;
    height: 100%;
    font-size: 120px;
    font-family: DINAlternate-Bold, DINAlternate;
    font-weight: bold;
    color: #769AFF;
    line-height: 100%;
    margin-top: 7%;
    text-align: center;
}
.xyjCON{
    height: 100%;
}
.deviceInfo{
    padding-top: 60px;
}
.deviceInfoItem{
    // background: #333333;
    height: 70px;
    width: 100%;
    line-height: 70px;
    // background: #769AFF;
    .text{
        padding-left: 50px;
        height: 42px;
        font-size: 30px;
        font-family: AlibabaPuHuiTi-Regular, AlibabaPuHuiTi;
        font-weight: 400;
        color: #777777;
        line-height: 42px;
        letter-spacing: 1px;
        text-align: right;
    }
    .value{
        text-align: center;
        height: 47px;
        font-size: 40px;
        font-family: DINAlternate-Bold, DINAlternate;
        font-weight: bold;
        color: #769AFF;
        line-height: 47px;
        letter-spacing: 2px;
    }
}
.titlerow{
    height: 72px;
    background: #FFFFFF;
    line-height: 72px;
    box-shadow: 1px 3px 5px 0px #E9E9E9;
}
.imglogo{
    padding-top: 10px;
   width: 102px;
   height: 40px;
//    background: #769AFF;
}
.titleText{
    text-align: center;
    height: 38px;
    font-size: 27px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #333333;
    line-height: 38px;
    letter-spacing: 1px;
}
.clockNum{
    width: 100%;
    height: 38px;
    font-size: 27px;
    font-family: PingFangSC-Medium, PingFang SC;
    font-weight: 500;
    color: #FF7472;
    line-height: 38px;
    letter-spacing: 1px;
    text-align:right;
    padding-right: 10px;
}
<style>
@import './css/common.css';
@import './css/index.css';
</style>