<template>
  <div>
    <div v-if=" obj.a">
      <!-- 主 -->
      <div class="tit">
        <span>球队得分大小:{{home_team}}</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div v-for="(item,index) in data" v-if="item.odds_code == 'tbhb'">
            <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span
              class="odds" v-else
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${home_team}`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code == 'tbhs'"
          >
          <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${home_team}`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>

      <!-- 客 -->
      <div class="tit">
        <span>球队得分大小:{{guest_team}}</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div v-for="(item,index) in data" v-if="item.odds_code == 'tbgb'">
            <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${guest_team}`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code == 'tbgs'"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${guest_team}`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
    </div>
    <div v-if=" obj.b">
      <!-- 主 -->
      <div class="tit">
        <span>球队得分大小:{{home_team}}-上半场</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div v-for="(item,index) in data" v-if="item.odds_code == 'tbhb_h'">
            <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${home_team}-上半场`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code == 'tbhs_h'"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${home_team}-上半场`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
      <!-- 客 -->
      <div class="tit">
        <span>球队得分大小:{{guest_team}}-上半场</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div v-for="(item,index) in data" v-if="item.odds_code == 'tbgb_h'">
          <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>           
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${guest_team}-上半场`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code == 'tbgs_h'"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${guest_team}-上半场`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
    </div>

    <div v-if=" obj.c">
      <!-- 主队 -->
      <div class="tit">
        <span>球队得分大小:{{home_team}}-第一节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhb')  && item.odds_code.endsWith('_1')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
          </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${home_team}-第一节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhs')  && item.odds_code.endsWith('_1')"
          >
            <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${home_team}-第一节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
      <!-- 客队 -->
      <div class="tit">
        <span>球队得分大小:{{guest_team}}-第一节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgb')  && item.odds_code.endsWith('_1')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${guest_team}-第一节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgs')  && item.odds_code.endsWith('_1')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${guest_team}-第一节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
    </div>
    <div v-if=" obj.d">
      <!-- 主队 -->
      <div class="tit">
        <span>球队得分大小:{{home_team}}-第二节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhb')  && item.odds_code.endsWith('_2')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${home_team}-第二节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhs')  && item.odds_code.endsWith('_2')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${home_team}-第二节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
      <!-- 客队 -->
      <div class="tit">
        <span>球队得分大小:{{guest_team}}-第二节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgb')  && item.odds_code.endsWith('_2')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${guest_team}-第二节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgs')  && item.odds_code.endsWith('_2')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${guest_team}-第二节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
    </div>
    <div v-if=" obj.e">
      <!-- 主队 -->
      <div class="tit">
        <span>球队得分大小:{{home_team}}-第三节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhb')  && item.odds_code.endsWith('_3')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${home_team}-第三节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhs')  && item.odds_code.endsWith('_3')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${home_team}-第三节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
      <!-- 客队 -->
      <div class="tit">
        <span>球队得分大小:{{guest_team}}-第三节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgb')  && item.odds_code.endsWith('_3')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${guest_team}-第三节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgs')  && item.odds_code.endsWith('_3')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${guest_team}-第三节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
    </div>
    <div v-if=" obj.f">
      <!-- 主队 -->
      <div class="tit">
        <span>球队得分大小:{{home_team}}-第四节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhb')  && item.odds_code.endsWith('_4')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${home_team}-第四节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbhs')  && item.odds_code.endsWith('_4')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${home_team}-第四节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
      <!-- 客队 -->
      <div class="tit">
        <span>球队得分大小:{{guest_team}}-第四节</span>
      </div>
      <div class="playCode">
        <div class="home flex">
          <span class="teamName">大</span>
          <div
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgb')  && item.odds_code.endsWith('_4')"
          >
          <span class="condition">{{item.condition}}</span>
          <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'大',`球队得分大小:${guest_team}-第四节`)"
            >{{item.odds}}</span>
          </div>
        </div>
        <div class="guest flex">
          <span class="teamName">小</span>
          <div
            class="oddsBox"
            v-for="(item,index) in data"
            v-if="item.odds_code.startsWith('tbgs')  && item.odds_code.endsWith('_4')"
          >
          <span class="condition">{{item.condition}}</span>
            <span v-if="item.odds <= 0" class="odds">
              <img style="vertical-align:middle;width:0.2rem" src="@/assets/st-imges/mima.png" alt="">
            </span>
            <span v-else
              class="odds"
              :class="{chooseStyle:item.isTrue,rising:item.change == 'rising',falling:item.change == 'falling'}"
              @click="betMethod(index,item.id,'小',`球队得分大小:${guest_team}-第四节`)"
            >{{item.odds}}</span>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      title: "TB",
      andShow: "",
      guest_team: "", //客队名
      home_team: "", //主队名
      obj: "",
      match_id:'',
      data:[],
      limit:'',//投注数量
      lg_id:'',
      match_inf:{},
    };
  },
  /**
   * 页面初始化完成挂载
   */
  mounted() {
    this.andShow = this.$store.getters.getBallCode;
  },
  /***
   * 方法
   */
  methods: {
    //玩法分类
    playGrouping(data) {
      let obj = {};
      let betting = this.$store.getters.getBetting;
      data.forEach(e => {
         if(betting.length > 0){
          for(let i= 0; i< betting.length; i++){
            if(betting[i].title =="TB" && betting[i].data.length >0){
              for(let j = 0 ; j < betting[i].data.length ; j++ ){
                if(betting[i].data[j].mark == e.mark){
                  this.$set(e,'isTrue',true);
                  //betting[i].data.splice(j,1);
                }
              }
              break;
            }
          }
        }
        e.lg_id = this.lg_id;
        if (
          e.odds_code == 'tbhb' || e.odds_code == 'tbhs'|| e.odds_code == 'tbgb'|| e.odds_code == 'tbgs'
        ) {
          obj.a = true;
        } else if (e.odds_code.endsWith("_h")) {
          obj.b = true;
        } else if (e.odds_code.endsWith("_1")) {
          obj.c = true;
        } else if (e.odds_code.endsWith("_2")) {
          obj.d = true;
        } else if (e.odds_code.endsWith("_3")) {
          obj.e = true;
        } else if (e.odds_code.endsWith("_4")) {
          obj.f = true;
        }
      });
      this.obj = obj;
    },
    /*---------------------------------- */
    //玩法投注
    betMethod(index, id,name ,playName) {
       //调用投注公共方法
      let betting;
      let _this = this;
      let ballId = this.$store.getters.getBallCode;
      let bettingType = this.$store.getters.getBettingType;

      if(bettingType == 2){
        betting = this.$store.getters.getPassBetting;
        betting = betting == null ? []:betting;
        for(let e in betting){
          if(betting[e].title == this.title){
            for(let i in betting[e].data ){
              for(let j in this.data){
                if(betting[e].data[i].mark  == this.data[j].mark ){
                  this.$set(this.data[j], "isTrue", false); 
                  break
                }
              }
            }
          }
        }
      }else if(bettingType == 1){
        betting = this.$store.getters.getBetting;
      }
      if (this.data[index].isTrue) {
        this.$set(this.data[index], "isTrue", false);
      } else {
        this.$set(this.data[index], "isTrue", true);
      }
      let teamName ={
        home:this.home_team,
        guest:this.guest_team
      }
      this.$public.publicBetMethod(
        this.data,
        this.title,
        index,
        betting,
        teamName,
        playName,
        name,
        this.match_id,
        ballId,
        this.limit,
        bettingType,
        this.$store.getters.getActivity,
        this.match_inf,
        function(data,type) {
          if(type){
          _this.$dialog.toast({ mes: "亲，超出表格上限啦。", timeout: 2000 }); 
        }
         if(bettingType == 2){
            _this.$store.dispatch("SET_PASSBETTING", []);
            _this.$store.dispatch("SET_PASSBETTING", data);
          }else{
            _this.$store.dispatch("SET_BETTING", []);
            _this.$store.dispatch("SET_BETTING", data);
          }
        }
      );
    }
  },
  /**
   * 计算属性
   */
  computed: {
    getGameRatio() {
      return this.$store.getters.getGameRatio;
    },
    //获取投注数据
    getBetting(){
      if(this.$store.getters.getBettingType == 2){
        return this.$store.getters.getPassBetting;
      }else{
        return this.$store.getters.getBetting;
      }
    },
    //获取投注数据数量
    getLimit(){
      return this.$store.getters.getLimit
    }

  },
  /**
   * 监听器
   */
  watch: {
    getGameRatio(val) {
      this.lg_id = val.lg_id
      this.match_id = val.match_id;
      this.guest_team = val.guest_team;
      this.home_team = val.home_team;
      this.match_inf={
        match_process:val.match_process,
        match_ptime:val.match_ptime,
        match_score:val.match_score,
      }
      val.oddsData.forEach(e => {
        if (e[0].p_code == this.title) {
          this.data = e;
          this.playGrouping(this.data);
          //console.log("12", this.data);
        }
      });
    },
     //投注数据监听和处理
    getBetting(val){
      if(val.length > 0){
        let mark = this.$store.getters.getDeleteType;
        for(let i= 0; i < val.length; i++ ){
          if(val[i].title == this.title){
            for(let j = 0;j < this.data.length ;j++){
              if(this.data[j].mark == mark){
                this.$set(this.data[j],'isTrue',false)
                break;
              }
            }
            break;
          }
        }
        
      }else{
        for(let j = 0;j < this.data.length ;j++){
          if(this.data[j].isTrue){
            this.$set(this.data[j],'isTrue',false)
          }
        }
      }
    },
    //投注数量
    getLimit(val){
      this.limit = val
    }
  }
};
</script>
<style scoped>
.flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.tit {
  background: #cdcdcd;
  font-size: 0.14rem;
  padding: 0 0.1rem;
  height: 0.4rem;
  line-height: 0.4rem;
  color: #333;
}
.playCode,
.andCode {
  color: #333;
  display: flex;
  font-size: .14rem;
}
.playCode .home,
.playCode .guest {
  height: 0.4rem;
  line-height: 0.4rem;
  width: 50%;
  background: #fff;
  padding: 0 0 0 0.1rem;
}
.playCode .home {
  width: calc(50% - 1px);
  padding-right: 0.1rem;
  border-right: 1px solid #e4e4e4;
}
.oddsBox {
  margin-right: 0.1rem;
}
.odds {
  display: inline-block;
  height: 0.3rem;
  border: 1px solid #e4e4e4;
  width: 0.5rem;
  /* background: #fff; */
  text-align: center;
  line-height: 0.23rem;
  margin: 0.07rem auto 0.04rem;
  padding: 0.04rem;
}
.odds:hover {
  background: orange !important;
  color: #fff !important;
  border-color: orange !important;
  cursor: pointer;
}
.guest {
  padding-right: 0.1rem;
}
.home:hover,
.guest:hover {
  background: #fff5e9;
}
.draw {
  width: 20%;
  background: #fff;
  padding: 0 0.1rem;
  border-right: 1px solid #e4e4e4;
}
.condition {
  color: #f76649;
  font-weight: bold;
  margin-right: .1rem;
}
</style>