<template>
  <div class="storeInfo container">
    <div class="form-group">
      <div class="storeIns">
        <div class="sign">选择商家：</div>
        <div class="storeInList">
          <!--<div>-->
          <!--<a>-->
          <!--&lt;!&ndash;<img ng-src="{{storeIn.logoUrl || 'static/img/all/default.png'}}" alt="storeIn.storeName" title="{{storeIn.storeName}}">&ndash;&gt;-->
          <!--<img  src="/images/component/store.jpg" alt="" title=""/>-->
          <!--</a>-->
          <!--</div>-->
        </div>
        <!--<div class="storeInList" ng-if="storeIns.length == 0" style="font-size: 14px">-->
        <div class="storeInList" style="font-size: 14px">
          暂无商家信息
        </div>
      </div>
    </div>
    <div class="form-group" style="margin-bottom: 40px;">
      <div>
        <div style="font-size: 14px">
          <span>产品匹配：</span>

          <!--<input type="checkbox" ng-checked="!ignoreUMall" ng-click="toggleUMall()" ng-if="Storeexist && Umallexist">-->
          <!--<span ng-if="Umallexist">&nbsp;库存寄售</span>-->
          <!--<input type="checkbox" ng-checked="!ignoreStore" ng-click="toggleStore()" ng-if="Storeexist && Umallexist">-->
          <!--<span ng-if="Storeexist">&nbsp;店铺自营</span>-->
          <!--<span ng-if="storeIns.length==0">暂无可匹配的信息</span>-->
          <span>暂无可匹配的信息</span>
        </div>
      </div>
    </div>
    <div class="goodsList">
      <div class="goods-item">按商家列表</div>
      <table class="table">
        <thead>
          <tr class="height54">
            <th class="text-center" width="100">制造商型号</th>
            <th class="text-center" width="120">生产日期</th>
            <th class="text-center" width="80">包装方式</th>
            <th class="text-center" width="150">库存</th>
            <th class="text-center" width="80">数量</th>
            <th class="text-center" width="100">香港交货<span style="font-size: 12px;">($)</span></th>
            <th class="text-center" width="130">大陆交货<span style="font-size: 12px;">(￥)</span></th>
            <th class="text-center" width="120">交期</span></th>
            <th class="text-center" width="150">操作</th>
          </tr>
        </thead>
        <tbody class="text-center">
          <tr style="cursor: pointer;">
            <td>RT0805BRB0718K2L</td>
            <td>2017-4-17</td>
            <td>暂无包装方式</td>
            <td style="text-align: left;padding-left: 25px;">
              <div>
                <span>库存：</span>
                <span>xxx</span>
              </div>
              <div>
                <span>起拍：</span>
                <span>xxx</span>
              </div>
              <div>
                <span>倍数：</span>
                <span>xxx</span>
              </div>
            </td>
            <td>
              <div>
                <span>xxx</span>+
              </div>
            </td>
            <td>
              <div>
                <span>xxx</span>
              </div>
            </td>
            <td>
              <div>
                <span>xxx</span>
              </div>
            </td>
            <td>
              <div>
                <span>香港：</span>
                <span>xxx</span>-<span>xxx</span>
              </div>
            </td>
            <td>
              <button class="btn btn-buyNow">立即购买</button>
              <button class="btn btn-default">加入购物车</button>
            </td>
          </tr>
          <!--<tr>-->
            <!--<td colspan="10" class="text-center" style="line-height: 40px; font-size: 14px;"><i class="fa fa-smile-o fa-lg"></i> 暂无现货</td>-->
          <!--</tr>-->
        </tbody>
      </table>
    </div>
  </div>
</template>
<script>
  export default {
    name: 'StoreInfo',
    computed: {
      stores () {
        return this.$store.state.componentStore.Store
      },
      store () {
        console.log(this.stores.data)
        return this.stores.data
      }
    }
  }
</script>
<style scoped>
  .container .storeIns{
    margin-top: 20px;
    width: 1190px;
    height: 48px;
    line-height: 48px;
  }
  .container .storeIns .sign {
    display: table-cell;
    vertical-align: middle;
    font-size: 14px;
  }
  .container .storeIns .storeInList {
    display: table-cell;
  }
  .container .storeIn {
    width: 98px;
    height: 49px;
    line-height: 30px;
    float: left;
    border: 1px solid #ccc;
    text-align: center;
    vertical-align: middle;
    margin-right: 15px;
    cursor: pointer;
  }
  .container .storeIn-active {
    width: 98px;
    float: left;
    border: 1px solid #5078cb;
    text-align: center;
    vertical-align: middle;
    margin-right: 15px;
    cursor: pointer;
  }
  .container .storeIn a,.componentDetail .storeIn-active a {
    display: table-cell;
    height: 46px;
    width: 98px;
    text-align: center;
    vertical-align: middle;
  }
  .storeIn a>img,.storeIn-active a>img {
    max-width: 95px;
    max-height: 46px;
  }
  .container .goodsList {
    clear: both;
    font-size: 14px;
  }
  .container .goodsList .goods-item {
    height: 30px;
    width: 120px;
    background-color: #5078cb;
    color: #fff;
    text-align: center;
    vertical-align: middle;
    line-height: 30px;
  }
  .container .goodsList thead {
    background-color: #F7F7F7;
  }
  .container .goodsList tbody tr td{
    vertical-align: middle;
    text-align: center;
  }
  .container .goodsList .btn{
    border-radius: 4px;
    width: 80px;
    height: 30px;
    color: #214797;
    font-size: 14px;
    line-height: 14px;
    text-align: center;
    margin: 5px 0;
    padding: 0;
    user-select: none;
    background-image: none;
    border: 1px solid transparent;
    font-weight: 400;
  }
  .container .goodsList .btn-buyNow {
    color: #fff;
    background-color: #5078cb;
  }
  .container .goodsList .btn-default{
    background-color: #fff;
    border-color: #ccc;
  }
  .container .form-group input{
    vertical-align: sub;
  }
  .container .height54{
    height: 54px;
  }
  .container .height54 th{
    line-height: 54px;
    border-bottom: none;
    padding: 0;
  }
  .container .table tbody td{
    border-bottom: #ddd 1px solid;
    border-top: none;
  }
  .container .table tbody{
    border-left: #ddd 1px solid;
    border-right: #ddd 1px solid;
  }
  .container .table tbody td div{
    text-align: left;
    margin-left: 10%;
  }
  .container .table tbody tr:hover{
    background: #f5f5f5;
  }
  .container .table tbody tr:hover{
    background: #f5f5f5;
  }
</style>
