<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/cisnet_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
                class="touch"
                :src="item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgProduct"
                style="width:284px;height: 284px;margin: 0 32px 4px"
                @click="goToDetails(item, '/product/details')"
              >
                <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 v-show="showMore" 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({id:null, customerId:supplierObj.customerId}, '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" @click="dialogVisible = true">点击查看图片</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;{{ dict.label.business_status[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;{{ dict.label.company_type[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;{{ dict.label.industry_type[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===''?'active':''">
                  <span class="touch label" @click="setQuertType('')">默认排序</span>
                  <span v-if="query.type===''">
                    <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" @click="search">确 定</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
                class="touch"
                :src="item.imgSrc?imgSrcStart+'/productPic/'+item.imgSrc:defaultImgProduct"
                style="width:284px;height: 284px;margin: 0 32px 4px"
                @click="goToDetails(item, '/product/details')"
              >
                <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 />
    <el-dialog title="营业执照" :visible.sync="dialogVisible" :show-close="false" top="10vh">
      <el-image v-for="url in urls" :key="url" :src="url" lazy fit="contain" style="width: 100%" />
    </el-dialog>
  </div>
</template>
<script>
import default_product from '@/assets/home_images/default_product.png'
import default_businessLicense from '@/assets/home_images/businessLicense.jpg'
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'
import { HttpReq } from '@/api/common'

export default {
  components: { titleMenus, userLogin, languageSetting, homeFooter, inquiryView, floatInquiryView },
  dicts: ['industry_type', 'company_type', 'business_status', 'area_province'],
  data() {
    return {
      defaultImgProduct: default_product,
      imgSrcStart: process.env.VUE_APP_BASE_API,
      dialogVisible: false,
      showMore: true,
      page: 1,
      pageSize: 12,
      total: 0,
      query: {
        supplierId: '',
        type: '',
        sort: false
      },
      mapDom: null,
      tabIndex: '1',
      productList: [],
      supplierObj: {},
      throttle: null, // 节流器
      throttleTime: 300,
      urls: []
    }
  },
  mounted() {
    this.$nextTick(() => {
      this.query.supplierId = this.$route.params.id
      this.search()
    })
  },
  methods: {
    onDictReady(dict) {
      HttpReq.webClientApi.supplierDetails({
        customerId: this.$route.params.id
      }).then((res) => {
        this.supplierObj = res.data
        if (this.supplierObj.businessLicense) {
          this.urls = this.supplierObj.businessLicense.split(';').map(item => { return this.imgSrcStart + '/businessLicense/' + item })
        } else {
          this.urls = [default_businessLicense]
        }
        this.$refs.floatInquiryView.setOption({
          customerId: this.supplierObj.customerId,
          title: this.supplierObj.enterpriseName,
          location: this.dict.label.area_province[this.supplierObj.registeredAddressProvince]
        })
      })
    },
    search() {
      HttpReq.webClientApi.productGetHardwareList({
        page: this.page - 1,
        pageSize: this.pageSize,
        ...this.query
      }).then((res) => {
        this.showMore = true
        this.productList = res.data.hardwareList.data
        this.total = res.data.hardwareList.total
      })
    },
    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(this.supplierObj.enterpriseAddressLng, this.supplierObj.enterpriseAddressLat)
          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 */
      } else {
        this.search()
      }
    },
    setQuertType(type) {
      if (type === this.query.type) {
        this.query.sort = !this.query.sort
      } else {
        this.query.type = type
        this.query.sort = false
      }
      this.search()
    },
    // 点击询价
    inquiry(item, type) {
      this.$refs.inquiryView.initView(null, item.customerId, type, '9')
    },
    // 点击收藏
    storeShowcase(item, type) {
      HttpReq.webClientApi.collectProductOrSupplier({
        id: item.id,
        collect: !item.isStore,
        type: type
      }).then((res) => {
        item.isStore = !item.isStore
        this.$message.warning({
          message: res.msg
        })
      })
    },
    // 跳转到详情
    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')
        HttpReq.webClientApi.productGetHardwareList({
          page: 0,
          pageSize: 9999,
          ...this.query
        }).then((res) => {
          this.showMore = false
          this.productList = res.data.hardwareList.data
          this.total = res.data.hardwareList.total
        })
      }
    },
    loadData() {
      this.search()
    },
    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>
