628d45e780484f87168c06784a6b9705d82887d4.svn-base 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. <template lang="">
  2. <div @click="leagueBetting()" class = "rollingBtn ">
  3. <p>{{this.ballName}}</p>
  4. <div class='row center' >
  5. <span>{{this.index}}</span>
  6. </div>
  7. </div>
  8. </template>
  9. <script>
  10. import '../css/index.css';
  11. export default {
  12. props: ["name",'index','id','type','gameCode','ballName'],
  13. data() {
  14. return {
  15. };
  16. },
  17. methods:{
  18. leagueBetting:function(){
  19. if(this.type=='Roll'){
  20. this.$store.dispatch('GETACTIVITY',this.id);//将活动类别存入vuex里面
  21. this.$store.dispatch('GET_BALL_ID',this.id);
  22. this.$router.push({ path: '/StRollBallpage', query:{ titleNumber: e }});
  23. }else{
  24. this.$router.push({path:'/StLeagueBetting',query:{ id:this.index,gameCode:this.gameCode,name:this.name,number: 0 ,home:true}});
  25. }
  26. }
  27. }
  28. };
  29. </script>
  30. <style scoped>
  31. .rollingBtn {
  32. width: 100%;
  33. display: flex;
  34. align-items: center;
  35. margin: 0 auto;
  36. position: relative;
  37. font-size: 0.3rem;
  38. }
  39. .rollingBtn>p {
  40. width: 90%;
  41. height: 0.7rem;
  42. background:linear-gradient(to bottom,#DDDDDD,#cccccc);
  43. text-align: center;
  44. line-height: .7rem;
  45. font-size: 0.3rem;
  46. font-weight: bold;
  47. border-radius: .08rem 0 0 .08rem;
  48. color: #666666;
  49. border:none;
  50. }
  51. .yd-btn-block {
  52. margin-top: 0;
  53. }
  54. .rollingBtn>div {
  55. position: absolute;
  56. right: 0;
  57. top: 0;
  58. width: 10%;
  59. height: 0.7rem;
  60. line-height: 0.7rem;
  61. background:linear-gradient( to top,#ddd,#ccc);
  62. border-radius: 0px 0.08rem 0.08rem 0px;
  63. color: #666666;
  64. }
  65. .rollingBtn div i {
  66. display: inline-block;
  67. width: 0.08rem;
  68. height: 0.08rem;
  69. background: #f5f5f5;
  70. vertical-align: middle;
  71. }
  72. </style>