<template>
  <div class="page-body">
    <div class="head-box">
      <div class="head-box-top">
        <div class="top-call" />
        <div class="top-call"><img src="@/assets/home_images/gemho_logo_b.png"></div>
        <div class="top-call"><title-menus ref="titleMenus" menu-index="2" style="padding-top: 15px" /></div>
        <div class="top-call"><user-login ref="userLogin" /></div>
        <div class="top-call"><language-setting ref="languageSetting" /></div>
      </div>
    </div>
    <div class="content-box">
      <div style="width: 88%;padding-left: 9%;">
        <div class="showcase">
          <el-breadcrumb separator-class="el-icon-arrow-right">
            <el-breadcrumb-item :to="{ path: '/home' }">首页</el-breadcrumb-item>
            <el-breadcrumb-item :to="{ path: this.$store.state.app.currentMenu.url }">{{ this.$store.state.app.currentMenu.name||'' }}</el-breadcrumb-item>
            <el-breadcrumb-item>供应商黄页</el-breadcrumb-item>
          </el-breadcrumb>
        </div>
        <div class="tab-box">
          <div class="tab-item touch" :class="tabIndex==='1'?'active':''" @click="tabChange('1')"><i class="el-icon-house el-icon--left" />首页</div>
          <div class="tab-item touch" :class="tabIndex==='2'?'active':''" @click="tabChange('2')"><i class="el-icon-shopping-bag-2 el-icon--left" />企业信息</div>
          <div class="tab-item touch" :class="tabIndex==='3'?'active':''" @click="tabChange('3')"><i class="el-icon-message el-icon--left" />供应产品</div>
        </div>
        <div v-show="tabIndex==='1'">
          <div class="page-title">产品</div>
          <!--产品展柜-->
          <div style="padding-top: 8px;width: 90%">
            <div v-for="(item,index) in productList" :key="'p_'+index" class="box-card">
              <img v-if="item.isGood" src="@/assets/home_images/recommend.png" class="stamp" title="推荐" style="top: 10px;right: 8px">
              <img v-if="item.isHot" src="@/assets/home_images/hot.png" class="stamp" title="热门" style="top: 0;left: 0">
              <el-image
                :src="item.imgSrc?imgSrcStart+'/img'+item.imgSrc:defaultImgProduct"
                :preview-src-list="item.imgSrcList.length?item.imgSrcList:[defaultImgProduct]"
                style="width:284px;height: 284px;margin: 0 32px 4px"
              >
                <div slot="placeholder" class="image-slot">加载中<span class="dot">...</span></div>
              </el-image>
              <el-row>
                <el-col :span="21">
                  <div class="title touch" :title="item.title" @click="goToDetails(item, '/product/details')">{{ item.title }}</div>
                </el-col>
                <el-col :span="3">
                  <img v-if="item.isStore" class="touch" src="@/assets/home_images/to_like_h.png" title="点击取消收藏" @click="storeShowcase(item, 'product')">
                  <img v-else class="touch" src="@/assets/home_images/to_like.png" title="点击收藏" @click="storeShowcase(item, 'product')">
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="24">
                  <div class="price">¥{{ item.minPrice }} - ¥{{ item.maxPrice }}</div>
                </el-col>
              </el-row>
            </div>
            <div style="padding: 15px 50px;text-align: right"><span class="more touch" title="点击查看更多..." @click="moreTo('product')">更多产品>></span></div>
          </div>
          <!--企业介绍-->
          <div class="line-title"><div class="title-point" /><span class="title-text">企业介绍</span></div>
          <div class="textarea-box">
            <p>&#12288;&#12288;{{ supplierObj.enterpriseIntroduction }}</p>
          </div>
          <div class="line-btn" style="padding: 42px 0;">
            <div class="btn-o" style="padding: 15px" @click="inquiry(supplierObj, 'supplier')">马上沟通</div>
          </div>
        </div>
        <div v-show="tabIndex==='2'">
          <el-row :gutter="30">
            <el-col :span="12">
              <div class="info-card">
                <h3>企业介绍</h3>
                <div class="info-card-textarea">
                  <p>&#12288;&#12288;{{ supplierObj.enterpriseIntroduction }}</p>
                </div>
              </div>
            </el-col>
            <el-col :span="12">
              <div class="info-card">
                <h3>联系方式</h3>
                <div style="padding-top:20px;color:#666;font-size:16px">联系人：{{ supplierObj.enterpriseContactPerson }}</div>
                <div style="padding-top:14px;color:#666;font-size:16px">联系电话：<span class="touch" style="color:#1C49F3" @click="inquiry(supplierObj, 'supplier')">获取电话号码</span></div>
                <div style="padding-top:4px;padding-left:80px;color:#999;font-size:14px">请留下您的电话号码</div>
                <div style="padding-top:10px;padding-bottom:6px;color:#666;font-size:16px">企业地图：</div>
                <div id="mapDom" class="map-box" />
              </div>
            </el-col>
          </el-row>
          <div class="info-card" style="margin-top: 30px;height: 230px">
            <div class="info-card-title"><div class="title-li" /><span>主营产品</span></div>
            <div class="info-card-line">{{ supplierObj.mainProductsIntroduction }}</div>
            <div class="info-card-title" style="margin-top: 12px"><div class="title-li" /><span>经营范围</span></div>
            <div class="info-card-line">{{ supplierObj.businessScope }}</div>
          </div>
          <div style="padding: 20px;margin-top: 30px">
            <div class="info-card-title"><div class="title-li" /><span>工商注册</span></div>
            <div class="grid-box">
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">企业名称</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.enterpriseName||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">营业执照</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;<span class="touch">点击查看图片</span></el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">统一社会信用代码</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.unifiedSocialCreditCode||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">纳税人识别号</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.taxpayerIdentificationNumber||'-' }}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">法定代表人</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.legalRepresentative||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">经营状态</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.businessStatus||'-' }}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">成立日期</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.establishmentDate||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">营业期限</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.operatingPeriod||'-' }}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">审核/年检日期</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.annualInspectionDate||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">企业类型</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.enterpriseType||'-' }}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">注册资本</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.registeredCapital||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">所属行业</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.industry||'-' }}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content"><div class="grid-label">注册地址</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.registeredAddressStreet||'-' }}</el-col>
                <el-col :span="5" class="grid-content"><div class="grid-label">登记机关</div></el-col>
                <el-col :span="7" class="grid-content">&#12288;{{ supplierObj.registrationAuthority||'-' }}</el-col>
              </el-row>
              <el-row>
                <el-col :span="5" class="grid-content">
                  <div class="grid-label" style="line-height: 154px">经营范围</div>
                </el-col>
                <el-col :span="19" class="grid-content">
                  <div style="padding: 8px 20px;line-height: 28px;height: 154px;overflow: auto;">
                    {{ supplierObj.businessScopeIntroduction||'-' }}
                  </div>
                </el-col>
              </el-row>
            </div>
          </div>
        </div>
        <div v-show="tabIndex==='3'">
          <div class="page-title">产品列表</div>
          <!--查询面板-->
          <div class="search-box">
            <el-row style="padding-top: 10px">
              <el-col :span="2">
                <div class="search-item" :class="query.type===undefined?'active':''">
                  <span class="touch label" @click="setQuertType()">默认排序</span>
                  <span v-if="query.type===undefined">
                    <i v-if="query.sort" class="el-icon-sort-up touch" />
                    <i v-else class="el-icon-sort-down touch" />
                  </span>
                </div>
              </el-col>
              <el-col :span="2">
                <div class="search-item" :class="query.type==='hot'?'active':''">
                  <span class="touch label" @click="setQuertType('hot')">人气排序</span>
                  <span v-if="query.type==='hot'">
                    <i v-if="query.sort" class="el-icon-sort-up touch" />
                    <i v-else class="el-icon-sort-down touch" />
                  </span>
                </div>
              </el-col>
              <el-col :span="2">
                <div class="search-item" :class="query.type==='time'?'active':''">
                  <span class="touch label" @click="setQuertType('time')">上架时间</span>
                  <span v-if="query.type==='time'">
                    <i v-if="query.sort" class="el-icon-sort-up touch" />
                    <i v-else class="el-icon-sort-down touch" />
                  </span>
                </div>
              </el-col>
              <el-col :span="18">
                <div class="search-item">
                  <span>产品价格区间</span>
                  <div style="position: absolute;top: 15px;left: 35%;">
                    <el-input v-model="query.minPrice" placeholder="请输入价格（元）" clearable style="width: 140px" />
                    ~
                    <el-input v-model="query.maxPrice" placeholder="请输入价格（元）" clearable style="width: 140px" />
                    <div class="btn touch">确 定</div>
                  </div>
                </div>
              </el-col>
            </el-row>
          </div>
          <!--硬件产品展柜-->
          <div style="padding-top: 6px">
            <div v-for="(item,index) in productList" :key="'p_'+index" class="box-card">
              <img v-if="item.isGood" src="@/assets/home_images/recommend.png" class="stamp" title="推荐" style="top: 10px;right: 8px">
              <img v-if="item.isHot" src="@/assets/home_images/hot.png" class="stamp" title="热门" style="top: 0;left: 0">
              <el-image
                :src="item.imgSrc?imgSrcStart+'/img'+item.imgSrc:defaultImgProduct"
                :preview-src-list="item.imgSrcList.length?item.imgSrcList:[defaultImgProduct]"
                style="width:284px;height: 284px;margin: 0 32px 4px"
              >
                <div slot="placeholder" class="image-slot">加载中<span class="dot">...</span></div>
              </el-image>
              <el-row>
                <el-col :span="21">
                  <div class="title touch" :title="item.title" @click="goToDetails(item, '/product/details')">{{ item.title }}</div>
                </el-col>
                <el-col :span="3">
                  <img v-if="item.isStore" class="touch" src="@/assets/home_images/to_like_h.png" title="点击取消收藏" @click="storeShowcase(item, 'product')">
                  <img v-else class="touch" src="@/assets/home_images/to_like.png" title="点击收藏" @click="storeShowcase(item, 'product')">
                </el-col>
              </el-row>
              <el-row>
                <el-col :span="24">
                  <div class="subTitle" :title="item.subTitle">{{ item.subTitle }}</div>
                </el-col>
              </el-row>
              <el-row style="margin-top: 6px">
                <el-col :span="3" style="padding-left: 20px">
                  <img src="@/assets/home_images/locate.png">
                </el-col>
                <el-col :span="13">
                  <div class="area">{{ item.area }}</div>
                </el-col>
                <el-col :span="8">
                  <div class="date">{{ item.date }}</div>
                </el-col>
              </el-row>
              <div class="line-btn" style="margin-top: 4px">
                <div class="btn-o" style="width: 150px;border-radius: 10px;box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);font-size:20px;" @click="inquiry(item, 'product')">询 价</div>
              </div>
            </div>
          </div>
          <div class="pagination">
            <el-pagination
              :hide-on-single-page="true"
              :background="true"
              :current-page.sync="page"
              :page-size="pageSize"
              :total="total"
              layout=" prev, pager, next"
              @current-change="pageChange"
            />
          </div>
        </div>
      </div>
    </div>
    <home-footer ref="homeFooter" />
    <inquiry-view ref="inquiryView" />
    <float-inquiry-view v-show="tabIndex==='1'" ref="floatInquiryView" />
    <el-backtop />
  </div>
</template>
<script>
import default_product from '@/assets/home_images/default_product.png'
import default_project from '@/assets/home_images/default_project.png'
import default_system from '@/assets/home_images/default_system.png'
import titleMenus from '../components/titleMenusV2'
import userLogin from '../components/userLoginV2'
import languageSetting from '../components/languageSettingV2'
import homeFooter from '../components/homeFooter'
import inquiryView from '../components/inquiryView'
import floatInquiryView from '../components/floatInquiryView'

export default {
  components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, floatInquiryView },
  dicts: [],
  data() {
    return {
      defaultImgProduct: default_product,
      defaultImgProject: default_project,
      defaultImgSystem: default_system,
      imgSrcStart: process.env.VUE_APP_BASE_API,
      page: 1,
      pageSize: 10,
      total: 33,
      query: {
        keyword: '',
        area: undefined,
        type: undefined,
        sort: false
      },
      mapDom: null,
      tabIndex: '1',
      productList: [
        {
          isGood: true,
          isHot: false,
          isStore: false,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: true,
          isHot: true,
          isStore: true,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: false,
          isHot: true,
          isStore: false,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: false,
          isHot: false,
          isStore: true,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: false,
          isHot: true,
          isStore: false,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: false,
          isHot: false,
          isStore: false,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: true,
          isHot: false,
          isStore: false,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }, {
          isGood: false,
          isHot: false,
          isStore: false,
          title: 'wiwo1002热能工程压力变送器',
          subTitle: '乐清市柳市艾普乐传感器厂',
          area: '北京',
          date: '2023-06-12',
          minPrice: '0.35',
          maxPrice: '300',
          imgSrc: '',
          imgSrcList: []
        }
      ],
      supplierObj: {
        annualInspectionDate: '', // 审核日期
        businessLicense: '', // 营业执照的照片名称
        businessScope: '温度传感器 热电偶传感器 流量计 报做仪 pt100热电阳 压力变送器 气体检测仪 氟化氢检测仪', // 经营范围
        businessScopeIntroduction: '光学分析仪器、温度测量仪表、温度计、红外测温仪、环境监测专用仪器仪表、自动气象监测仪器、\n' +
          '扬尘噪声监测系统，气体报警仪、土壤情监测系统、太阳能农林防控设备、实验设备、物联网传感器\n' +
          '电子产品的技术研发、生产及组装，教学仪器、办公自动化设备、计算机软硬件、通讯设备、电子\n' +
          '设备及配件、五金产品、金属制品、机械设备、玻璃制品的销售:计算机领域内技术开发、技术咨询、\n' +
          '技术转让、技术服务:电气工程技术的开发、转让:技术推广服务、环境空气质量检测服务、食品检测\n' +
          '服务:经营进出口业务。 (依法须经批准的项目，经相关部门批准后方可开展经营活动)', // 业务范围介绍
        businessStatus: '', // 经营状态
        enterpriseAddress: '青岛路150-3号', // 企业地址
        enterpriseContactPerson: '王先生', // 企业联系人
        enterpriseContactPersonPhone: '', // 企业联系人手机号
        enterpriseEmail: '', // 企业邮箱
        enterpriseIntroduction: '威海品合数字矿山技术有限公司(以下简称晶合) ，成立于2012年，位于美丽的海滨城市山东威海。经过多年的专业深耕与创新发展晶合被评为高新技术企业双软企业、入库于帆企业，现已成为国内优秀的智悬矿山及应急管理等领域的解决方案提供商。\n' +
          '        晶合重视技术开发与创新，研发人员占公司总人数35%以上，中高级工程师占比15%以上。公司多次承担、参与国家及省部级科技项目，建立了都发工厂山) 安全监测工程技术研究中心。先后荣获中国岩石力学与工程学会科学技术奖一等奖、山东省科学技术奖、山东省地质勘查资源开发科学技术奖、中国煤M工业学会科学技术奖等多个科技笑项，多项产品获很具有国际领先水平的科技成果鉴定。作为专法致力于知矿山、地灾监测及应急管理领域的行业，最合拥有完整的研发、生产、销售、售后体系，建立了S0901、ISO45001、S014001等管理体系，严格把控产品质量，与中国织业、中国有、中矿集团、山东黄金集团、魏桥集团等建立了长期的业务合作关系。在国际市场方面，产品远销澳大利亚、俄罗斯南非、印尼等十多个国家地区，已形成稳定的国际销售网络，晶合的“矿山之是”品牌受到了国内外客户的广泛认可。\n' +
          '         面向未来，晶合格继练重承“以技术为核心，以质量为保证”的理念，空记“为矿山安全保驾护航” 的使命，有该明务，精益求，追或卓越，打造品所先讲的科技创新型企业。', // 企业介绍
        enterpriseName: '佛山英沃传感器科技有限公司', // 企业名称
        enterpriseType: '', // 企业类型
        establishmentDate: '2023 01-01', // 成立日期
        industry: '', // 所属行业
        legalRepresentative: '', // 法定代表人
        mainProductsIntroduction: '多功能网络电力仪表， 电流互感器， 电气火灾监控装置', // 主营产品介绍
        operatingPeriod: '', // 经营期限
        registeredAddressArea: '', // 注册地址-区
        registeredAddressCity: '', // 注册地址-市
        registeredAddressProvince: '', // 注册地址-省
        registeredAddressStreet: '江苏省淮安市', // 注册地址-街道
        registeredCapital: '', // 注册资本
        registrationAuthority: '', // 登记机关
        supplierLevel: '1', // 供应商级别
        taxpayerIdentificationNumber: '', // 纳税人识别号
        unifiedSocialCreditCode: '', // 统一社会信用代码
        isGood: true
      },
      throttle: null, // 节流器
      throttleTime: 300
    }
  },
  mounted() {
    this.$nextTick(() => {

    })
  },
  methods: {
    onDictReady(dict) {},
    tabChange(tabIndex) {
      if (this.tabIndex === tabIndex) {
        return
      }
      this.tabIndex = tabIndex
      if (this.tabIndex === '2') {
        /* eslint-disable */
        if(!this.mapDom){
          this.mapDom = new BMapGL.Map('mapDom')
          this.mapDom.enableScrollWheelZoom(true)
          this.mapDom.addControl(new BMapGL.ScaleControl())
          this.mapDom.addControl(new BMapGL.ZoomControl())
          const point = new BMapGL.Point(116.404, 39.915)
          this.mapDom.centerAndZoom(point, 16)
          this.mapDom.addOverlay(new BMapGL.Marker(point))
          this.mapDom.addOverlay(new BMapGL.Label(this.supplierObj.enterpriseAddress, {
            position: point,
            offset: new BMapGL.Size(-40, 8)
          }));
        }else {
          this.mapDom.resize()
        }
        /* eslint-enable */
      }
    },
    setQuertType(type) {
      if (type === this.query.type) {
        this.query.sort = !this.query.sort
      } else {
        this.query.type = type
        this.query.sort = false
      }
    },
    // 点击询价
    inquiry(item, type) {
      console.log(item, type)
      this.$refs.inquiryView.initView(item.id, type)
    },
    // 点击收藏
    storeShowcase(item, type) {
      item.isStore = !item.isStore
      this.$message.warning({
        message: `您${item.isStore ? '' : '已取消'}收藏了该产品！`
      })
      console.log(item, type)
    },
    // 跳转到详情
    goToDetails(item, path) {
      if (item) {
        this.$router.push({ path: `${path}/${item.id || 123}` })
      } else {
        this.$router.push({ path: `${path}` })
      }
    },
    pageChange(e) {
      this.page = e
      this.loadData()
    },
    // 点击更多
    moreTo(type) {
      if (type === 'product') {
        this.tabChange('3')
      }
    },
    loadData() {

    },
    goTop() {
      document.body.scrollTop = 0
      document.documentElement.scrollTop = 0
    }
  }
}
</script>
<style rel="stylesheet/scss" lang="scss" scoped>
::-webkit-scrollbar {
  width : 0;
  height: 0;
}
.touch {
  cursor:pointer;
}
.clear {
  clear: both
}
.inline-block {
  display: inline-block;
}
.ellipsis {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 2;
  text-overflow: ellipsis;
}
.showcase {
  padding: 1px 0;
  font-size: 20px;
  font-family: Source Han Sans CN;
  font-weight: 400;
}
.pagination {
  margin-top: 23px;
  text-align: center;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  >>>.el-pagination.is-background .el-pager li {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    color: #000000;
    border: 1px solid #e5e5ea;
  }
  /* 激活后的样式 */
  >>>.el-pagination.is-background .el-pager li:not(.disabled).active {
    background-color: #ffffff;
    color: #0366ed;
    border: 1px solid #0366ed;
    text-align: center;
  }
  /* 修改左右箭头样式 */
  >>>.el-pagination .btn-next .el-icon, >>>.el-pagination .btn-prev .el-icon {
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    background-color: #fff;
    color: #e5e5ea;
    border: 1px solid #e5e5ea;
  }
  >>>.el-pager {
    height: 35.5px !important;
  }
  >>>.number, >>>.el-icon {
    height: 35.5px !important;
    line-height: 35.5px !important;
  }
}
.head-box {
  width: 100vw;
  top: 0;
  position: fixed;
  background: none repeat scroll 0 0 white;
  z-index: 999;
  box-shadow: 0px 3px 7px 0px rgba(0,0,0,0.2);
  .head-box-top {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    .top-call {
      height: 80px;
      padding-top: 15px;
    }
  }
}
.page-title {
  margin-top: 20px;
  padding: 0 20px;
  font-size: 28px;
  font-weight: bolder;
  color: #333333;
}
.tab-box {
  margin: 20px 0;
  width: 100%;
  display: flex;
  justify-content: flex-start;
  border-bottom: 2px solid rgba(3,66,171,0.2);
  .tab-item {
    width: 120px;
    padding-top: 10px;
    padding-bottom: 8px;
    text-align: center;
    font-size: 14px;
    color: #666;
  }
  .active {
    background: rgba(183,210,248,0.25);
    color: #1961C5;
    border-bottom: 3px solid rgba(3,66,171,0.8);
  }
}
.content-box {
  min-height: 70vh;
  margin-top: 94px;
  font-family: Source Han Sans CN;
  user-select: none;
  .box-card {
    display: inline-block;
    position: relative;
    margin: 12px;
    padding: 10px 0;
    width: 350px;
    background: #FFFFFF;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 1px 2px 8px 0 rgba(0,0,0,0.12);
    border-radius: 10px;
    .line-text {
      width: 100%;
      text-align: center;
      padding: 5px;
      font-size: 18px;
      font-weight: bolder;
      opacity: 0.85;
    }
    .line-text:hover {
      opacity: 1;
    }
    .float-title {
      width: 344px;
      position: absolute;
      padding: 5px;
      top: 200px;
      left: 2px;
      text-align: center;
      font-weight: 600;
      color: #fff;
      background: rgba(0,0,0,0.6);
      opacity: 0.9;
    }
    .float-title:hover {
      opacity: 1;
    }
    .title {
      width: 305px;
      padding: 2px 20px;
      font-size: 18px;
      color: #333333;
      overflow:hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      -o-text-overflow:ellipsis;
    }
    .title:hover {
      font-weight: 600;
    }
    .subTitle {
      width: 260px;
      padding: 2px 20px;
      font-size: 15px;
      color: #1961C5;
      overflow:hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
      -o-text-overflow:ellipsis;
    }
    .area {
      padding: 2px 0;
      font-size: 17px;
      color: #666666;
    }
    .date {
      padding: 2px 10px;
      font-size: 17px;
      color: #999999;
    }
    .stamp {
      border-style: none;
      position: absolute;
      z-index: 99;
    }
    .price {
      padding: 10px;
      text-align: center;
      color: #F60B0B;
      font-size: 26px;
    }
  }
  .more {
    font-size: 18px;
    font-weight: 600;
    color: #0457C7;
    opacity: 0.7;
  }
  .more:hover {
    opacity: 1;
  }
  .line-title {
    padding: 6px 0;
    position: relative;
    border-bottom: 3px solid #0457C7;
    font-size: 24px;
    color: #333333;
    .title-point {
      width: 8px;
      height: 21px;
      position: absolute;
      top: 9px;
      background: #0457c7;
    }
    .title-text {
      padding-left: 14px;
      font-weight: 600;
    }
    .title-line{
      width: 100%;
      position: absolute;
      bottom: -7px;
      border-bottom: 2px solid #1961C5;
      opacity: 0.35
    }
  }
  .textarea-box {
    color: #333;
    font-size: 16px;
    line-height: 28px;
  }
  .info-card {
    display: inline-block;
    position: relative;
    padding: 20px;
    width: 100%;
    height: 350px;
    border: 1px solid rgba(0,0,0,0.12);
    box-shadow: 1px 2px 8px 0 rgba(0,0,0,0.12);
    border-radius: 10px;
    .info-card-line {
      color: #666;
      font-size: 20px;
      padding: 10px 0;
    }
    .info-card-textarea {
      color: #333;
      font-size: 15px;
      line-height: 28px;
      height: 270px;
      overflow: auto;
    }
    .map-box {
      width: 100%;
      height: 160px;
      overflow: hidden;
      margin: 0;
      font-family: "微软雅黑";
      border: 1px solid rgba(0, 0, 0, 0.12);
    }
    h3 {
      font-size: 22px;
      margin: 0;
      color: #1961C5;
    }
  }
  .info-card-title {
    position: relative;
    font-size: 22px;
    font-weight: bold;
    margin: 0;
    color: #1961C5;
    .title-li {
      position: absolute;
      width: 8px;
      height: 20px;
      top: 3px;
      background: #0457C7
    }
    span {
      padding-left: 14px;
    }
  }
}
.search-box {
  padding-top: 12px;
  width: 100%;
  font-family: Source Han Sans CN;
  font-weight: 400;
  color: #666666;
  user-select: none;
  .search-item {
    width: 100%;
    height: 38px;
    display: inline-block;
    padding: 8px 20px;
    background: #F7F7F7;
    border: 1px solid rgba(0,0,0,0.12);
    overflow:hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    -o-text-overflow:ellipsis;
    .label:hover {
      font-weight: 600;
    }
    .btn {
      width: 74px;
      padding: 3px;
      margin-left: 12px;
      display: inline-block;
      background: #1961C5;
      border-radius: 6px;
      color: white;
      text-align: center;
      opacity: 0.7;
    }
    .btn:hover {
      opacity: 1;
    }
  }
  .area-title {
    height: 62px;
    background: #F7F7F7;
    border: 1px solid rgba(0,0,0,0.12);
    text-align: center;
    line-height: 60px;
  }
  .area_item {
    height: 30px;
    padding: 6px 12px;
    display: inline-block;
  }
  .area_item:hover {
    font-weight: 600;
  }
  .active {
    color: #1961C5;
  }
  .search-tools {
    width: 100%;
    .btn{
      width: 76%;
      height: 38px;
      border: 2px solid #1961C5;
      border-radius: 8px;
      background: #1961C5;
      font-family: Source Han Sans CN;
      font-weight: 400;
      font-size: 21px;
      color: #ffffff;
      opacity: 0.7;
    }
    .btn:hover {
      opacity: 1;
    }
    >>>.el-input__inner {
      height: 38px;
      border: 2px solid #1961C5;
      border-radius: 8px;
      font-family: Source Han Sans CN;
      font-weight: 400;
      font-size: 18px;
      color: #333333;
      opacity: 0.7;
    }
    >>>.el-input__inner:hover {
      opacity: 1;
    }
  }
  .search-keyword {
    padding: 5px 0;
    font-family: Source Han Sans CN;
    font-weight: 400;
    font-size: 14px;
    text-align: left;
    .label {
      padding: 1px 15px 1px;
      color: #333333;
      cursor:pointer;
      user-select: none;
    }
    .label:hover {
      color: #1961C5;
    }
  }
}
.line-btn {
  display: flex;
  justify-content: center;
  font-family: Source Han Sans CN;
  font-weight: 400;
  .btn-o {
    margin: 0 25px;
    width: 360px;
    padding: 6px 10px;
    background: #F7601A;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid transparent;
    font-size: 22px;
    color: #FFFFFF;
    cursor:pointer;
    user-select: none;
  }
  .btn-o:hover {
    border: 1px solid rgba(30, 144, 255, 0.8);
    color: #1482f0;
  }
  .btn-l {
    margin: 0 25px;
    width: 360px;
    padding: 10px;
    background: #1961C5;
    box-shadow: 0 3px 6px 0 rgba(0,0,0,0.2);
    text-align: center;
    border: 1px solid transparent;
    font-size: 22px;
    color: #FFFFFF;
    cursor:pointer;
    user-select: none;
  }
  .btn-l:hover {
    border: 1px solid rgba(0,0,0,0.3);
    color: #F7601A;
  }
  .btn-b {
    margin: 0 10px;
    width: 168px;
    padding: 6px;
    background: #EFF6FF;
    border: 1px solid transparent;
    box-shadow: 0 1px 2px 0 rgba(0,0,0,0.2);
    text-align: center;
    font-size: 20px;
    color: #1961C5;
    cursor:pointer;
    user-select: none;
  }
  .btn-b:hover {
    border: 1px solid rgba(30, 144, 255, 0.9);
  }
  .active {
    color: #FFFFFF;
    font-weight: 400;
    background: #1961C5;
  }
}
.grid-box {
  padding-top: 20px;
  .grid-content {
    border: 1px solid #ACC9F2;
    padding: 0;
    line-height: 60px;
    font-size: 19px;
    color: #666;
    span {
      color: #0C37F1;
    }
    span:hover {
      font-weight: bold;
    }
  }
  .grid-label {
    background: #F6FAFF;
    padding: 0 26px;
  }
}
</style>
