AdvertisementBar.vue 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. <template>
  2. <view class="advertisement-bar-container" @click="go('/community-center/vip-center/vip-detail?type=2')">
  3. <image class="ad-text" src="../../../static/images/new-business/home/ad-text.png"></image>
  4. <image src="../../../static/images/new-business/home/lang-1.png" class="lang-1"></image>
  5. <image src="../../../static/images/new-business/home/lang-2.png" class="lang-2"></image>
  6. <view class="ad-info-wrapper">买<text class="price-text">399</text>元送<text class="price-text">980</text>元超级大礼包</view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. }
  12. </script>
  13. <style lang="less" scoped>
  14. @keyframes lang {
  15. 0% {
  16. opacity: 0;
  17. left: 268upx;
  18. }
  19. 100% {
  20. opacity: 1;
  21. left: 768upx;
  22. }
  23. }
  24. .advertisement-bar-container {
  25. position: relative;
  26. height: 164upx;
  27. background: url('../../../static/images/new-business/home/ad-bar.png') no-repeat;
  28. background-size: cover;
  29. margin: 26upx 0 24upx;
  30. overflow: hidden;
  31. .ad-text {
  32. position: absolute;
  33. left: 126upx;
  34. top: 29upx;
  35. width: 394upx;
  36. height: 60upx;
  37. }
  38. .ad-info-wrapper {
  39. font-size: 24upx;
  40. color: #222229;
  41. position: absolute;
  42. left: 161upx;
  43. top: 97upx;
  44. .price-text {
  45. font-size: 32upx;
  46. color: #FF5C14;
  47. }
  48. }
  49. .lang-1 {
  50. position: absolute;
  51. left: 468upx;
  52. top: -20upx;
  53. width: 196upx;
  54. height: 121upx;
  55. animation: lang 2s ease-in infinite;
  56. }
  57. .lang-2 {
  58. position: absolute;
  59. left: 536upx;
  60. top: -22upx;
  61. width: 207upx;
  62. height: 123upx;
  63. animation: lang 2s ease-in infinite 2s;
  64. }
  65. }
  66. </style>