<template>
  <div class="meta-spe-text">
    <span v-if="flgMsg">{{msg}}</span>
  </div>
</template>

<script>
  import {getEnumText, getInfoObject} from '@/common/utils/tool'
  export default {
    name: "meta-spe-text",
    data() {
      return {
        flgMsg: false,
        msg: '',
      }
    },
    mounted() {
      let info = getInfoObject();

      if (info.flgmsg == 1) {
        this.flgMsg = true
      } else {
        this.flgMsg = false
      }
      //暂用枚举存储提示文字信息
      this.msg = getEnumText('flgmsgtype', "0");
    }
  }
</script>

<style scoped>
  .meta-spe-text{
    color: red;
    padding: 0 10px;
    line-height: 5.5vh;
    background-color: #fff;
    border-radius: var(--van-cell-group-inset-border-radius);
}
</style>

