| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677 |
- <template lang="">
- <div @click="leagueBetting()" class = "rollingBtn ">
- <p>{{this.ballName}}</p>
- <div class='row center' >
- <span>{{this.index}}</span>
- </div>
- </div>
- </template>
- <script>
- import '../css/index.css';
-
- export default {
- props: ["name",'index','id','type','gameCode','ballName'],
- data() {
- return {
- };
- },
- methods:{
- leagueBetting:function(){
- if(this.type=='Roll'){
- this.$store.dispatch('GETACTIVITY',this.id);//将活动类别存入vuex里面
- this.$store.dispatch('GET_BALL_ID',this.id);
- this.$router.push({ path: '/StRollBallpage', query:{ titleNumber: e }});
- }else{
- this.$router.push({path:'/StLeagueBetting',query:{ id:this.index,gameCode:this.gameCode,name:this.name,number: 0 ,home:true}});
-
- }
- }
- }
-
- };
- </script>
- <style scoped>
- .rollingBtn {
- width: 100%;
- display: flex;
- align-items: center;
- margin: 0 auto;
- position: relative;
- font-size: 0.3rem;
-
- }
- .rollingBtn>p {
- width: 90%;
- height: 0.7rem;
- background:linear-gradient(to bottom,#DDDDDD,#cccccc);
- text-align: center;
- line-height: .7rem;
- font-size: 0.3rem;
- font-weight: bold;
- border-radius: .08rem 0 0 .08rem;
- color: #666666;
- border:none;
- }
- .yd-btn-block {
- margin-top: 0;
- }
- .rollingBtn>div {
- position: absolute;
- right: 0;
- top: 0;
- width: 10%;
- height: 0.7rem;
- line-height: 0.7rem;
- background:linear-gradient( to top,#ddd,#ccc);
- border-radius: 0px 0.08rem 0.08rem 0px;
- color: #666666;
- }
- .rollingBtn div i {
- display: inline-block;
- width: 0.08rem;
- height: 0.08rem;
- background: #f5f5f5;
- vertical-align: middle;
- }
- </style>
|