background.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-luohu" :isBack="true">
  4. <block slot="backText">返回</block>
  5. <block slot="content">背景</block>
  6. </cu-custom>
  7. <view class="cu-bar bg-white solid-bottom">
  8. <view class="action">
  9. <text class='cuIcon-title text-blue'></text>深色背景
  10. </view>
  11. </view>
  12. <view class="grid col-3 padding-sm">
  13. <view class="padding-sm" v-for="(item,index) in ColorList" :key="index">
  14. <view class="padding radius text-center shadow-blur" :class="'bg-' + item.name">
  15. <view class="text-lg">{{item.title}}</view>
  16. <view class="margin-top-sm text-Abc">{{item.name}}</view>
  17. </view>
  18. </view>
  19. </view>
  20. <view class="cu-bar bg-white solid-bottom">
  21. <view class="action">
  22. <text class="cuIcon-title text-blue"></text>淡色背景
  23. </view>
  24. </view>
  25. <view class="grid col-3 bg-white padding-sm">
  26. <view class="padding-sm" v-for="(item,index) in ColorList" :key="index" v-if="index<12">
  27. <view class="padding radius text-center light" :class="'bg-' + item.name">
  28. <view class="text-lg">{{item.title}}</view>
  29. <view class="margin-top-sm text-Abc">{{item.name}}</view>
  30. </view>
  31. </view>
  32. </view>
  33. <view class="cu-bar bg-white solid-bottom margin-top">
  34. <view class="action">
  35. <text class="cuIcon-title text-blue"></text>渐变背景
  36. </view>
  37. </view>
  38. <view class="grid col-2 padding-sm">
  39. <view class="padding-sm">
  40. <view class="bg-gradual-red padding radius text-center shadow-blur">
  41. <view class="text-lg">魅红</view>
  42. <view class="margin-top-sm text-Abc">#f43f3b - #ec008c</view>
  43. </view>
  44. </view>
  45. <view class="padding-sm">
  46. <view class="bg-gradual-orange padding radius text-center shadow-blur">
  47. <view class="text-lg">鎏金</view>
  48. <view class="margin-top-sm text-Abc">#ff9700 - #ed1c24</view>
  49. </view>
  50. </view>
  51. <view class="padding-sm">
  52. <view class="bg-gradual-green padding radius text-center shadow-blur">
  53. <view class="text-lg">翠柳</view>
  54. <view class="margin-top-sm text-Abc">#39b54a - #8dc63f</view>
  55. </view>
  56. </view>
  57. <view class="padding-sm">
  58. <view class="bg-gradual-blue padding radius text-center shadow-blur">
  59. <view class="text-lg">靛青</view>
  60. <view class="margin-top-sm text-Abc">#0081ff - #1cbbb4</view>
  61. </view>
  62. </view>
  63. <view class="padding-sm">
  64. <view class="bg-gradual-purple padding radius text-center shadow-blur">
  65. <view class="text-lg">惑紫</view>
  66. <view class="margin-top-sm text-Abc">#9000ff - #5e00ff</view>
  67. </view>
  68. </view>
  69. <view class="padding-sm">
  70. <view class="bg-gradual-pink padding radius text-center shadow-blur">
  71. <view class="text-lg">霞彩</view>
  72. <view class="margin-top-sm text-Abc">#ec008c - #6739b6</view>
  73. </view>
  74. </view>
  75. </view>
  76. <view class="cu-bar bg-white margin-top">
  77. <view class="action">
  78. <text class="cuIcon-title text-blue"></text>图片背景
  79. </view>
  80. </view>
  81. <view class="bg-img bg-mask flex align-center"
  82. style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg');height: 414upx;">
  83. <view class="padding-xl text-white">
  84. <view class="padding-xs text-xxl text-bold">
  85. 钢铁之翼
  86. </view>
  87. <view class="padding-xs text-lg">
  88. Only the guilty need fear me.
  89. </view>
  90. </view>
  91. </view>
  92. <!-- <view class="cu-bar bg-white margin-top">
  93. <view class="action">
  94. <text class="cuIcon-title text-blue"></text>视频背景
  95. </view>
  96. </view>
  97. <view class="bg-video bg-mask flex align-center" style="height: 422upx;">
  98. <video src="https://yz.lol.qq.com/v1/assets/videos/aatrox-splashvideo.webm" autoplay loop muted :show-play-btn="false"
  99. :controls="false" objectFit="cover"></video>
  100. <cover-view class="padding-xl text-white ">
  101. <cover-view class="padding-xs text-xxl text-bold">
  102. 暗裔剑魔
  103. </cover-view>
  104. <cover-view class="padding-xs">
  105. 我必须连同希望一起毁坏……
  106. </cover-view>
  107. </cover-view>
  108. </view> -->
  109. <view class="cu-bar bg-white margin-top">
  110. <view class="action">
  111. <text class="cuIcon-title text-blue"></text>透明背景(文字层)
  112. </view>
  113. </view>
  114. <view class="grid col-2">
  115. <view class="bg-img padding-bottom-xl"
  116. style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10007.jpg');height: 207upx;">
  117. <view class="bg-shadeTop padding padding-bottom-xl">
  118. 上面开始
  119. </view>
  120. </view>
  121. <view class="bg-img padding-top-xl flex align-end"
  122. style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg');height: 207upx;">
  123. <view class="bg-shadeBottom padding padding-top-xl flex-sub">
  124. 下面开始
  125. </view>
  126. </view>
  127. </view>
  128. </view>
  129. </template>
  130. <script>
  131. export default {
  132. data() {
  133. return {
  134. ColorList: this.ColorList,
  135. };
  136. }
  137. }
  138. </script>
  139. <style>
  140. </style>