about.vue 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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. </view>
  20. </template>
  21. <script>
  22. export default {
  23. components: {
  24. },
  25. data() {
  26. return {
  27. adlist:this.myad()[0],
  28. animation_timer: null, // 动画定时器
  29. width: 375,
  30. height: 1920
  31. }
  32. },
  33. onLoad() {
  34. this._startLikeAnimation();
  35. },
  36. methods: {
  37. _startLikeAnimation() {
  38. this.animation_timer = setInterval(() => {
  39. // this.$refs.likeFx.likeClick()
  40. }, 300)
  41. }
  42. }
  43. }
  44. </script>
  45. <style scoped>
  46. .titleZ{
  47. width: 750rpx;
  48. font-size: 52rpx;
  49. margin-top: 60rpx;
  50. }
  51. .contentZ{
  52. width: 650rpx;
  53. margin: 10rpx auto 0;
  54. text-align: left;
  55. }
  56. .about-bg {
  57. background-size: cover;
  58. width: 100vw;
  59. height: 100vh;
  60. justify-content: center;
  61. flex-direction: column;
  62. color: #fff;
  63. }
  64. .edit-fixed {
  65. position: fixed;
  66. width: 100%;
  67. bottom: 0;
  68. z-index: 1024;
  69. box-shadow: 0 1rpx 6rpx rgba(0, 0, 0, 0.1);
  70. }
  71. .detail-imgs image {
  72. width: 100%;
  73. float: left;
  74. /* height:400rpx; 不定高了*/
  75. border: 0;
  76. padding: 0;
  77. margin: 0
  78. }
  79. .share-img {
  80. position: fixed;
  81. padding: 10rpx;
  82. width: 100rpx;
  83. height: 100rpx;
  84. /* top: 680rpx; */
  85. bottom: 200rpx;
  86. right: 20rpx;
  87. z-index: 1024;
  88. opacity: 0.8;
  89. box-shadow: 0rpx 8rpx 30rpx 0rpx rgba(0, 0, 0, 0.3);
  90. border: none;
  91. }
  92. .about {
  93. margin: 0;
  94. width: 100%;
  95. height: 100vh;
  96. padding-top: 20%;
  97. color: #fff;
  98. background: linear-gradient(-120deg, #F15BB5, #9A5CE5, #01BEFF, #00F5D4);
  99. /* background: linear-gradient(-120deg, #0976ea, #c471f5, #f956b6, #ea7e0a); */
  100. background-size: 500% 500%;
  101. animation: gradientBG 15s ease infinite;
  102. }
  103. @keyframes gradientBG {
  104. 0% {
  105. background-position: 0% 50%;
  106. }
  107. 50% {
  108. background-position: 100% 50%;
  109. }
  110. 100% {
  111. background-position: 0% 50%;
  112. }
  113. }
  114. .container {
  115. width: 100%;
  116. position: absolute;
  117. text-align: center;
  118. }
  119. .like-fx {
  120. position: fixed;
  121. right: 0;
  122. z-index: 1024;
  123. pointer-events: none;
  124. /* background-color: red; */
  125. }
  126. </style>