business.vue 2.14 KB
<!--
 * @Author: 前端 qianduan01@didihu.com.cn
 * @Date: 2022-10-25 10:12:26
 * @LastEditors: huyue
 * @LastEditTime: 2023-02-28 14:53:09
 * @FilePath: \dj-data-view\src\views\saas\business.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <div class='business-wrap flex'>
    <div class='business-data'>
      <business-view :businessNum='businessNum'></business-view>
    </div>

  </div>

</template>

<script>
import businessView from './businessView'

export default {
  components: {
    businessView
  },
  name: 'Business',
  data() {
    return {
      businessNum: {},
      categoryData: []


    }
  },
  mounted() {
    this.getMerchantNum()
  },
  methods: {
    toFixNum(val) {
      return (val * 100).toFixed(2) + '%'
    },
    getMerchantNum() {
      this.api.springbudAtion.getMerchantNum().then(res => {
        if (res.code == 0) {
          this.businessNum = res.data.dataList[0]
        }
      })
    }
  }
}
</script>

<style lang='scss' scoped>
.business-wrap {
  height: 6vh;
  margin-bottom: 0.98vh;
  margin-top: 0.98vh;

  .business-data {
    margin-right: 4px;
    width: 48vw;
    height: 100%;
  }

  .business-category {
    width: 13.06vw;
    height: 100%;
  }

  .timeConWrapper {
    //display: grid;
    //grid-template-columns: repeat(2, 1fr);
    display: flex;
    justify-content: space-between;
    width: 25vw;

    .business-border {
      height: 6.71vh;
      width: 10vw;
      padding: 0.4vh 1.11vw;
      box-sizing: border-box;
      background: #0b0e31;

      .business-title {
        font-weight: 400;
        font-size: 12px;
        color: #e8e8e8;
      }

      .business-number {
        font-weight: 700;
        font-size: 20px;
        line-height: 30px;
        color: #6578ff;
      }
    }

    .exhibitionTime {
      color: #e8e8e8;
      background: #0b0e31;
      height: 2.5vh;
      line-height: 2.7vh;
      width: 15vw;
      margin-bottom: 0.5vh;

      .time {
        margin-left: 0.5vw;
        color: #6578ff;
        font-weight: 700;
      }
    }
  }

}
</style>