yinPinLieBiao.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198
  1. <template>
  2. <view class="box">
  3. <u-navbar :autoBack="true" title="音频列表" bgColor="rgba(255,255,255,0)" :placeholder="true" titleStyle="font-weight:bold;color:#121212"></u-navbar>
  4. <view class="box_search">
  5. <u-search v-model="val" bgColor="#ffffff" :showAction="false"></u-search>
  6. </view>
  7. <view class="box_tab">
  8. <u-tabs
  9. :duration="200"
  10. :list="listTab"
  11. :lineWidth="25"
  12. :lineHeight="12"
  13. lineColor="#4E7198"
  14. :lineColor="`url(${tabImg}) 100% 100%`"
  15. :activeStyle="{
  16. color: '#4E7198',
  17. fontSize: '34rpx'
  18. }"
  19. ></u-tabs>
  20. </view>
  21. <!-- 音乐 -->
  22. <view class="list-items_1-0" v-for="item in 3">
  23. <view class="group_2-0">
  24. <view class="image-wrapper_1-0">
  25. <image src="/static/image/sz.png"></image>
  26. <view class="box_str">
  27. <image style="width: 100%; height: 100%" src="/static/image/star.png"></image>
  28. </view>
  29. </view>
  30. </view>
  31. <view class="box_4-0">
  32. <view class="text_1-0">南音-御前清音</view>
  33. <view class="group_12-0">
  34. <view class="image-text_14-0">
  35. <uni-icons type="star-filled" color="#4e7198" size="20"></uni-icons>
  36. <text>1.5w</text>
  37. </view>
  38. <view class="image-text_15-0">
  39. <uni-icons type="heart-filled" color="#ca5642" size="20"></uni-icons>
  40. <text>1.5w</text>
  41. </view>
  42. </view>
  43. </view>
  44. </view>
  45. </view>
  46. </template>
  47. <script>
  48. export default {
  49. data() {
  50. return {
  51. val: '',
  52. tabImg: 'https://huli-app.wenlvti.net/app_static/minnanhun/image/tab.png',
  53. listTab: [
  54. {
  55. name: '经典歌曲',
  56. tabid: 1
  57. },
  58. {
  59. name: '热门歌曲',
  60. tabid: 2
  61. },
  62. {
  63. name: '流行歌曲',
  64. tabid: 3
  65. },
  66. {
  67. name: '80后音乐',
  68. tabid: 4
  69. }
  70. ]
  71. };
  72. },
  73. methods: {}
  74. };
  75. </script>
  76. <style>
  77. .box {
  78. height: auto;
  79. width: 100%;
  80. background-color: #f8f8f8;
  81. background-attachment: fixed;
  82. position: relative;
  83. display: flex;
  84. flex-direction: column;
  85. }
  86. /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
  87. padding: 0 40rpx !important;
  88. }
  89. /deep/.u-tabs__wrapper__nav__line.data-v-48634e29 {
  90. bottom: 16rpx !important;
  91. }
  92. /deep/.u-tabs__wrapper__nav__item.data-v-48634e29 {
  93. align-items: end !important;
  94. }
  95. /deep/.column-value.data-v-ddfcbb1c {
  96. border-radius: 25rpx 60rpx 0rpx 30rpx !important;
  97. }
  98. .box_search {
  99. z-index: 1;
  100. margin: 20rpx 32rpx 0 32rpx;
  101. }
  102. .box_tab {
  103. margin: 45rpx 32rpx 0 32rpx;
  104. }
  105. .list-items_1-0 {
  106. background-color: rgba(255, 255, 255, 1);
  107. border-radius: 10rpx;
  108. width: 686rpx;
  109. height: 174rpx;
  110. margin: 20rpx 32rpx 10rpx 32rpx;
  111. padding: 0 20rpx;
  112. flex-direction: row;
  113. display: flex;
  114. }
  115. .image-wrapper_1-0 {
  116. position: relative;
  117. background-color: rgba(0, 0, 0, 0.15);
  118. border-radius: NaNrpx;
  119. height: 174rpx;
  120. display: flex;
  121. flex-direction: column;
  122. width: 131rpx;
  123. }
  124. .box_4-0 {
  125. width: 210rpx;
  126. height: 100rpx;
  127. display: flex;
  128. flex-direction: column;
  129. justify-content: space-between;
  130. margin: 34rpx 0 0 27rpx;
  131. }
  132. .text_1-0 {
  133. height: 26rpx;
  134. color: rgba(49, 37, 32, 1);
  135. font-size: 28rpx;
  136. line-height: 28rpx;
  137. }
  138. .group_12-0 {
  139. width: 210rpx;
  140. height: 32rpx;
  141. margin-top: 42rpx;
  142. flex-direction: row;
  143. display: flex;
  144. justify-content: space-between;
  145. }
  146. .image-text_14-0 {
  147. width: 90rpx;
  148. height: 32rpx;
  149. flex-direction: row;
  150. display: flex;
  151. justify-content: space-between;
  152. }
  153. .text-group_2-0 {
  154. width: 50rpx;
  155. height: 19rpx;
  156. color: rgba(49, 37, 32, 1);
  157. font-size: 24rpx;
  158. line-height: 24rpx;
  159. margin-top: 6rpx;
  160. }
  161. .image-text_15-0 {
  162. width: 90rpx;
  163. height: 32rpx;
  164. flex-direction: row;
  165. display: flex;
  166. justify-content: space-between;
  167. }
  168. .text-group_3-0 {
  169. width: 50rpx;
  170. height: 19rpx;
  171. color: rgba(49, 37, 32, 1);
  172. font-size: 24rpx;
  173. line-height: 24rpx;
  174. margin-top: 6rpx;
  175. }
  176. .text_2-0 {
  177. width: 44rpx;
  178. height: 18rpx;
  179. overflow-wrap: break-word;
  180. color: rgba(102, 102, 102, 1);
  181. font-size: 24rpx;
  182. line-height: 24rpx;
  183. margin: 38rpx 21rpx 0 253rpx;
  184. }
  185. .box_str {
  186. position: absolute;
  187. top: 40rpx;
  188. left: 25rpx;
  189. width: 80rpx;
  190. height: 80rpx;
  191. }
  192. </style>