<template>
  <div class="sell" style="padding: 1em;height:auto">
      <div class="col-sm-12" style="height: auto;padding-left: 4%;margin:2%">
      <span class="pf-title">收费</span>
    </div>
    <div id="sell_left" style="width:100%">
      <div class="col-sm-3">
        <img src="../../../static/NewManageHome/图层4.png"  style="padding-left:2vw">
      </div>
     <div class="col-sm-9" style="text-align:center">

         <span class="text-2" style="margin-left:1em">当年总售气量(万方)</span>
       <span style="margin-left:1em" class="s1">{{year}}</span><br/>
      </div>
            <div class="col-sm-3">
        <img src="../../../static/NewManageHome/图层5.png"  style="padding-left:2vw">
      </div>
     <div class="col-sm-9" style="text-align:center">

         <span class="text-2" style="margin-left:1em">昨日总售气量(万方)</span>
       <span style="margin-left:1em" class="s2">{{day}}</span> <br/>
      </div>
      <!-- <table>
        <tr>
          <td class="td1" rowspan="2"><img src="../../../static/NewManageHome/图层4.png"  style="width: 36px"></td>
          <td ><nobr><span style="margin-left:1em" class="s1">{{year}}万</span></nobr></td>
        </tr>
        <tr>
          <td style="">
          <nobr></nobr><br/>&nbsp;<nobr></nobr>
          </td>
        </tr>
        <tr>
          <td class="td1"  rowspan="2" ><img src="../../../static/NewManageHome/图层5.png" style="width: 34px"></td>

          <td >&nbsp;<span class="s2" style="margin-left:1em">{{day}}万</span></td>
        </tr>
        <tr>

        <td>
          <nobr><span class="text-2" style="margin-left:1em">昨日总售气量<br/></span></nobr>
        </td>
        </tr>
      </table> -->
    </div>

    <!--</div>-->
  </div>
</template>

<script>
  import {HttpResetClass} from 'vue-client'
  export default {
    name: 'sellEcharts',

    ready(){
         let http = new HttpResetClass()
      http.load('post','api/af-revenue/sql/getSellSum',{data:{}}, {rejectMsg: null, resolveMsg: null}).then((res)=>{
          this.year =  (res.data[0].gas_year/10000).toFixed(2)
          this.day =  (res.data[0].gas_day/10000).toFixed(2)
        })
    },
    data() {
      return {
     year:0,
     day:0
      }
    }
  }
</script>

<style scoped>
  @media screen and (max-width: 1920px) {
    .text-1 {
      font-family: pFMedium;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #b8cee4;
    }
    .text-2 {
      font-family: pFBold;
      font-size: 16px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #b8cee4;
    }

    .s1 {
      font-family: tRENDS;
      font-size: 28px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #00f6ff;
    }

    .s2 {
      font-family: tRENDS;
      font-size: 28px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #ffc21f;
    }

    .label {
      margin-left: 6%;
      font-size: 1.85rem;
      float: left;
      color: #fff;
      height: 8%;
    }

    table {
      width: 100%;
      height: 100%;
    }

    td {
      /*width: 94px;*/
      text-align: center;
      /*height: 120px;*/
      font-size: 1.4rem;
      padding-left: 6%;
      width: 70%;
      height: 50%;
      color: #ffffff;
    }

    .td1 {
      width: 33%;
    }

    #sell_left {
      height: 90%;
      width: 45%;
    }
  }
  @media screen and (max-width: 1440px) {
    .text-1 {
      font-family: pFMedium;
      font-size: 12px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #b8cee4;
    }
    .text-2 {
      font-family: pFBold;
      font-size: 12px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #b8cee4;
    }

    .s1 {
      font-family: tRENDS;
      font-size: 20px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #00f6ff;
    }

    .s2 {
      font-family: tRENDS;
      font-size: 20px;
      font-weight: normal;
      font-stretch: normal;
      line-height: 35px;
      letter-spacing: 0px;
      color: #ffc21f;
    }

    .label {
      margin-left: 6%;
      font-size: 1.85rem;
      float: left;
      color: #fff;
      height: 8%;
    }

    table {
      width: 100%;
      height: 100%;
    }

    td {
      /*width: 94px;*/
      text-align: center;
      /*height: 120px;*/
      font-size: 1.4rem;
      padding-left: 6%;
      width: 70%;
      height: 50%;
      color: #ffffff;
    }

    .td1 {
      width: 33%;
    }

    #sell_left {
      height: 90%;
      width: 45%;
    }
  }
</style>
