index.vue 1.35 KB
<template>
  <div>
  <div @touchmove.stop.prevent class="box">
      <div class="btn_box">
          <div @click="link(1)" class="btn">

          </div>
          <div @click="link(2)" class="btn">

          </div>
          <div class="text">

          </div>
      </div>
      <div class="bottom_box">
          <div class="bottom_backg">

          </div>
      </div>

  </div>
  </div>
</template>

<script>
  export default {
    name: 'index',
    data () {
      return {

      }
    },
    created(){

    },
    methods: {
        link(index){
            var items;
            if(index==1){
                items={
                    "title": "线上赛事",
                    "type": "29",
                    "shop_type": "",
                    "to": "0"
                }
            }else if(index==2){
                items={
                    "title": "线下赛事",
                    "type": "30",
                    "shop_type": "{\"id\":\"3\",\"title\":\"\\u7ebf\\u4e0b\\u8d5b\\u4e8b\"}",
                    "to": this.getParams(this.mode).shop.apiAddress + "/html/sports-china/1/#/",
                }
            }
            this.$parent.gotoDetail(items)

        }
    }
  }
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style rel="stylesheet/less" lang="less" scoped>
    @import "./index";
</style>