index.vue
1.35 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<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>