<template>
  <view class="company-info-container">
    <img style="width: 100%;height: 400rpx;" :src="'http://192.168.10.15:8999' + list.logo" />
    <view class="section">
      <view class="label">公司简介</view>
      <view class="content">
        {{ list.name }}
      </view>
    </view>
    <view class="divider"></view>
    <view class="section">
      <view class="label">公司地址</view>
      <view class="content">{{ list.address }}</view>
    </view>
    <view class="section">
      <view class="label">联系电话</view>
      <view class="content">{{ list.phone }}</view>
    </view>
  </view>
</template>

<script>
import * as Api from '@/api/indexDeil'
import Empty from '@/components/empty'
export default {
  components: {
    Empty
  },
  data() {
    return {
      mtDetails: '',
      list: {},
    }
  },
  onLoad(options) {
    Api.listDetil({ storeId: options.storeId })
      .then(result => {
        console.log(result);
        this.mtDetails = result.data.storeInfo.mtDetails
        this.list = result.data.storeInfo
      })
  }
}
</script>

<style scoped>
.company-info-container {
  display: flex;
  flex-direction: column;
}

.section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20rpx;
}

.label {
  font-size: 32rpx;
  font-weight: bold;
  color: #333;
  min-width: 180rpx;
  text-align: center;
  border-right: 2rpx solid #ccc;
}

.content {
  margin-left: 20rpx;
  flex: 1;
  font-size: 14px;
  color: #666;
}

.divider {
  height: 2rpx;
  background-color: #ccc;
  margin: 30rpx 0;
}
</style>