<template>
  <div class="water-test">
    <p>采集时间：2020-08-23 14:09:01</p>
    <div class="wrapper">
      <div v-for="item in list" :key="item.name">
        <img :src="require(`@/assets/images/${item.src}`)"/>
        <p>{{item.name}}</p>
        <p>{{item.value}}</p>
      </div>
    </div>
    <p>历史数据 >>></p>
  </div>
</template>

<script>
export default {
  name: 'WaterTest',
  data() {
    return {
      list: [
        {name: 'PH值', value: 7.76, src: 'icon1.png'},
        {name: '温度', value: '29.52℃', src: 'icon2.png'},
        {name: '溶氧量', value: '9.39mg/L', src: 'icon3.png'},
      ]
    }
  },
}
</script>

<style lang="stylus" scoped>
.water-test
  width 100%
  height 100%
  >p
    text-align center
    &:last-child
      color $edgeColor
  .wrapper
    display flex
    justify-content space-around
    margin 2rem 0
    >div
      text-align center
      flex 1
      &:first-child
        color #d63d41
      &:nth-child(2)
        color #f7d009
      &:last-child
        color #48b4e4
      img
        width 3rem
      p
        &:last-child
          font-size 1.3rem
          font-weight bold

</style>
