about.vue 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <!-- 关于作者 -->
  2. <template>
  3. <view class="about">
  4. <canvas canvas-id="bubble" :style="'width:' + width + 'px;height:' + height + 'px'" class="like-fx"></canvas>
  5. <like-fx ref="likeFx" :width="width" :height="height"></like-fx>
  6. <view class="titleZ text-center align-center">
  7. <text class="text-bold">关于作者</text>
  8. <view class="contentZ">
  9. <text class="text-xl">项目作者:是个刚做不久的菜鸟程序员~正在努力中,嘿嘿~</text>
  10. </view>
  11. </view>
  12. <view class="titleZ text-center align-center margin-top-xl">
  13. <text class="text-bold">有需求?有项目?</text>
  14. <view class="contentZ margin-top-lg">
  15. <text class="text-xl">可以一起学习,一起做简单的项目,从小白崛起吧!~</text>
  16. </view>
  17. </view>
  18. <ad :unit-id="adlist.bannerAd"></ad>
  19. <!-- 底部导航 -->
  20. <Tabbar :current-page="3" />
  21. </view>
  22. </template>
  23. <script>
  24. import Tabbar from "@/components/Tabbar/index.vue";
  25. export default {
  26. components: {
  27. Tabbar
  28. },
  29. data() {
  30. return {
  31. adlist:this.myad()[0],
  32. animation_timer: null, // 动画定时器
  33. width: 375,
  34. height: 1920
  35. }
  36. },
  37. onLoad() {
  38. this._startLikeAnimation();
  39. },
  40. methods: {
  41. _startLikeAnimation() {
  42. this.animation_timer = setInterval(() => {
  43. // this.$refs.likeFx.likeClick()
  44. }, 300)
  45. }
  46. }
  47. }
  48. </script>
  49. <style scoped>
  50. .titleZ{
  51. width: 750rpx;
  52. font-size: 52rpx;
  53. margin-top: 60rpx;
  54. }
  55. .contentZ{
  56. width: 650rpx;
  57. margin: 10rpx auto 0;
  58. text-align: left;
  59. }
  60. .about-bg {
  61. background-size: cover;
  62. width: 100vw;
  63. height: 100vh;
  64. justify-content: center;
  65. flex-direction: column;
  66. color: #fff;
  67. }
  68. .edit-fixed {
  69. position: fixed;
  70. width: 100%;
  71. bottom: 0;
  72. z-index: 1024;
  73. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
  74. }
  75. .detail-imgs image {
  76. width: 100%;
  77. float: left;
  78. /* height:400rpx; 不定高了*/
  79. border: 0;
  80. padding: 0;
  81. margin: 0
  82. }
  83. .share-img {
  84. position: fixed;
  85. padding: 10rpx;
  86. width: 100rpx;
  87. height: 100rpx;
  88. /* top: 680rpx; */
  89. bottom: 200rpx;
  90. right: 20rpx;
  91. z-index: 1024;
  92. opacity: 0.8;
  93. box-shadow: 0rpx 8rpx 30rpx 0rpx rgba(0, 0, 0, 0.3);
  94. border: none;
  95. }
  96. .about {
  97. margin: 0;
  98. width: 100%;
  99. height: 100vh;
  100. padding-top: 20%;
  101. color: #fff;
  102. background: linear-gradient(-120deg, #F15BB5, #9A5CE5, #01BEFF, #00F5D4);
  103. /* background: linear-gradient(-120deg, #0976ea, #c471f5, #f956b6, #ea7e0a); */
  104. background-size: 500% 500%;
  105. animation: gradientBG 15s ease infinite;
  106. }
  107. @keyframes gradientBG {
  108. 0% {
  109. background-position: 0% 50%;
  110. }
  111. 50% {
  112. background-position: 100% 50%;
  113. }
  114. 100% {
  115. background-position: 0% 50%;
  116. }
  117. }
  118. .container {
  119. width: 100%;
  120. position: absolute;
  121. text-align: center;
  122. }
  123. .like-fx {
  124. position: fixed;
  125. right: 0;
  126. z-index: 1024;
  127. pointer-events: none;
  128. /* background-color: red; */
  129. }
  130. </style>