background.vue 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141
  1. <template>
  2. <view>
  3. <cu-custom bgColor="bg-gradual-blue" :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" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10006.jpg');height: 414upx;">
  82. <view class="padding-xl text-white">
  83. <view class="padding-xs text-xxl text-bold">
  84. 钢铁之翼
  85. </view>
  86. <view class="padding-xs text-lg">
  87. Only the guilty need fear me.
  88. </view>
  89. </view>
  90. </view>
  91. <!-- <view class="cu-bar bg-white margin-top">
  92. <view class="action">
  93. <text class="cuIcon-title text-blue"></text>视频背景
  94. </view>
  95. </view>
  96. <view class="bg-video bg-mask flex align-center" style="height: 422upx;">
  97. <video src="https://yz.lol.qq.com/v1/assets/videos/aatrox-splashvideo.webm" autoplay loop muted :show-play-btn="false"
  98. :controls="false" objectFit="cover"></video>
  99. <cover-view class="padding-xl text-white ">
  100. <cover-view class="padding-xs text-xxl text-bold">
  101. 暗裔剑魔
  102. </cover-view>
  103. <cover-view class="padding-xs">
  104. 我必须连同希望一起毁坏……
  105. </cover-view>
  106. </cover-view>
  107. </view> -->
  108. <view class="cu-bar bg-white margin-top">
  109. <view class="action">
  110. <text class="cuIcon-title text-blue"></text>透明背景(文字层)
  111. </view>
  112. </view>
  113. <view class="grid col-2">
  114. <view class="bg-img padding-bottom-xl" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10007.jpg');height: 207upx;">
  115. <view class="bg-shadeTop padding padding-bottom-xl">
  116. 上面开始
  117. </view>
  118. </view>
  119. <view class="bg-img padding-top-xl flex align-end" style="background-image: url('https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg');height: 207upx;">
  120. <view class="bg-shadeBottom padding padding-top-xl flex-sub">
  121. 下面开始
  122. </view>
  123. </view>
  124. </view>
  125. </view>
  126. </template>
  127. <script>
  128. export default {
  129. data() {
  130. return {
  131. ColorList: this.ColorList,
  132. };
  133. }
  134. }
  135. </script>
  136. <style>
  137. </style>