WelfareBar.vue 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <template>
  2. <view class="welfare-bar-container">
  3. <view class="item" @click="empty()">
  4. <view class="item-title">签到赚钱</view>
  5. </view>
  6. <view class="item" @click="empty()">
  7. <view class="item-title">天降福利</view>
  8. </view>
  9. <view class="item" @click="empty()">
  10. <view class="item-title">新人免单</view>
  11. </view>
  12. <view class="item" @click="empty()">
  13. <view class="item-title">限时秒杀</view>
  14. </view>
  15. <view class="item" @click="empty()">
  16. <view class="item-title">省钱团购</view>
  17. </view>
  18. <tui-toast ref="toast"></tui-toast>
  19. </view>
  20. </template>
  21. <script>
  22. export default {
  23. data() {
  24. return {
  25. startAnimation1: false,
  26. startAnimation2: false
  27. }
  28. },
  29. mounted() {
  30. this.startAnimation1 = true
  31. this.startAnimation2 = true
  32. }
  33. }
  34. </script>
  35. <style lang="less" scoped>
  36. @keyframes one-animate {
  37. 0% {
  38. bottom: -100upx;
  39. }
  40. 100% {}
  41. }
  42. @keyframes breath {
  43. 0% {
  44. opacity: 0;
  45. }
  46. 50% {
  47. opacity: 1;
  48. }
  49. 100% {
  50. opacity: 0;
  51. }
  52. }
  53. .welfare-bar-container {
  54. display: flex;
  55. align-items: center;
  56. justify-content: space-between;
  57. .item {
  58. position: relative;
  59. width: 127upx;
  60. height: 140upx;
  61. border-radius: 10upx;
  62. overflow: hidden;
  63. .item-title {
  64. color: #222229;
  65. font-size: 28upx;
  66. font-weight: 500;
  67. margin-top: 18upx;
  68. margin-left: 10upx;
  69. }
  70. &:nth-child(1) {
  71. border: 1upx solid #f0527c;
  72. background: url('../../../static/images/new-business/home/tab-png1.png') center/cover no-repeat;
  73. }
  74. &:nth-child(2) {
  75. border: 1upx solid #fdd15e;
  76. background: url('../../../static/images/new-business/home/tab-png2.png') center/cover no-repeat;
  77. }
  78. &:nth-child(3) {
  79. border: 1upx solid #fb5546;
  80. background: url('../../../static/images/new-business/home/tab-png3.png') center/cover no-repeat;
  81. }
  82. &:nth-child(4) {
  83. border: 1upx solid #ee4775;
  84. background: url('../../../static/images/new-business/home/tab-png4.png') center/cover no-repeat;
  85. }
  86. &:nth-child(5) {
  87. border: 1upx solid #fdd262;
  88. background: url('../../../static/images/new-business/home/tab-png5.png') center/cover no-repeat;
  89. }
  90. }
  91. }
  92. </style>