<!--企业信息-->
<template>
  <view class="assemble">
    <view style="height: 30rpx;"></view>

    <view class="section_1">
      <image class="pic" :src="$util.img(dataInfo.cover)" mode="aspectFit"></image>
    </view>

    <view class="title_section">基本信息</view>

    <view class="section_2">
      <view class="item">
        <view class="title">企业名称</view>
        <view class="content">{{dataInfo.enterprise_name}}</view>
      </view>

      <view class="item">
        <view class="title">企业简称</view>
        <view class="content">{{dataInfo.enterprise_abbreviation}}</view>
      </view>

      <view class="item">
        <view class="title">企业电话</view>
        <view class="content">{{dataInfo.phone}}</view>
      </view>

      <view class="item">
        <view class="title">所属行业</view>
        <view class="content">{{dataInfo.profession}}</view>
      </view>


      <view class="item">
        <view class="title">企业网址</view>
        <view class="content">{{dataInfo.website}}</view>
      </view>

      <view class="item">
        <view class="title">成立时间</view>
        <view class="content">{{dataInfo.establishment_time}}</view>
      </view>
    </view>

    <view class="title_section">企业介绍</view>

    <view class="section_3">
      <view class="html" v-html="dataInfo.
content"></view>
    </view>


  </view>
</template>

<script>
import memberApi from '@/api/member.js';

	export default {
		data() {
			return {
        dataInfo:{},//企业信息
			}
		},
    onShow(){
		  this.init()
    },
		methods: {
		  //初始化
      async init(){
        await this.getEnterpriseInformation()
      },

      //获取企业信息
      async getEnterpriseInformation(){
        let data = {}
        let res = await memberApi.getEnterpriseInformation(data)
        if(res.code != 1){
          uni.showToast({
            title: res.msg,
            icon: 'none'
          })
          return
        }

        this.dataInfo = res.data
        console.log(123,this.dataInfo)
      },

		}
	}
</script>

<style lang="less" scoped>
	.assemble{
		width: 100%;
		min-height: 100vh;
		background: #333333;
    color: #fff;
	}

  .section_1{
    .pic{
      width: 100%;
      height: 300rpx;
    }
  }

  .title_section{
    padding: 20rpx 40rpx;
    color: #fff;
    font-size: 24rpx;
  }

  .section_2{
    background-color: #434544;
    display: flex;
    flex-direction: column;
    .item{
      padding: 40rpx;
      padding-left: 40rpx;
      display: flex;
      gap: 30rpx;
    }
  }

  .section_3{
    padding: 20rpx 22rpx;
    padding-bottom: 250rpx;
    .html{
      color: #fff;
    }
  }
</style>
