| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117 |
- <template>
- <div>
- <div class="tit">
- <span style="font-size:.3rem;color:#fff; font-weight: bold;">{{title}}</span>
- </div>
- <div v-if="noData">
- <NotOpend :title="this.info"/>
- </div>
- <div class="charBox">
- <div v-for="item in list" class="details">
- <div>
- <span>{{item.name_chinese}}</span>
- </div>
- <div class="matchDtls">
- <div>
- <span>{{item.home_team}}</span>
- <div>
- <span>{{item.match_date}}</span>
- </div>
- </div>
- <div>
- <span>{{item.guest_team}}</span>
- <div>
- <span>{{item.match_time}}</span>
- </div>
- </div>
- </div>
- </div>
- </div>
- </div>
- </template>
- <script>
- import NotOpend from "@/components/StNotOpend";
- export default {
- name:'',
- components:{NotOpend},
- data(){
- return{
- title:'特色赛事',
- list:'',
- noData: false,
- info: "暂无相关特色赛事",
- }
- },
- mounted() {
- this.$store.dispatch('GETSHOW',true);
- this.$http.get(this.$ports.home.highMatch).then(res =>{
- console.log('highMatch',res)
- if(res.data.status == 1 && res.data.data.matchData.length > 0){
-
- this.list = res.data.data.matchData;
- this.title = res.data.data.title;
- this.noData = false;
- this.$store.dispatch('GETSHOW',false);
- }else{
- this.noData = true;
- this.$store.dispatch('GETSHOW',false);
- }
- })
- },
- };
- </script>
- <style scoped lang="">
- .charBox {
- margin-top: 0.24rem;
- text-align: left;
- background: #f8f8f8;
- padding:0 0.3rem;
- margin: 0 auto;
- padding-top: 0.12rem;
- }
- .tit {
- padding: 0.24rem 0;
- padding:0 0.3rem;
- background: #a0a0a0;
- font-size: 0.32rem;
- line-height: 0.88rem;
- height: 0.88rem;
- color: #000000;
- }
- .details {
- padding: 0.25rem 0.31rem;
- background: #dcdcdc;
- border-radius: 0.08rem;
- margin-bottom: .2rem;
- }
- .details div span {
- font-size: 0.28rem;
- color: #F76649;
- }
- .matchDtls {
- margin-top: 0.12rem;
- }
- .matchDtls div {
- position: relative;
- display: flex;
- justify-content: space-between;
- align-items: center;
- }
- .matchDtls div span {
- color: #333333;
- font-size: 0.28rem;
- }
- .matchDtls div div span {
- font-size: 0.24rem;
- }
- .matchDtls i {
- display: inline-block;
- width: 0.08rem;
- height: 0.08rem;
- position: absolute;
- right: 0;
- top: 0;
- background: #000;
- }
- </style>
|