index.vue 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190
  1. <template>
  2. <!-- 奖励明细页面 -->
  3. <view class="header">
  4. <view class="header-one">
  5. 库存总量:<text>999</text>
  6. </view>
  7. <view class="content">
  8. <u-tabs style="width: 500rpx;" bg-color="#0095ff" inactive-color="#FFFFFF" active-color="#fff" :list="list"
  9. :is-scroll="false" :current="current" @change="change"></u-tabs>
  10. <u-select style=" color: #fff;" v-model="showBrand" :list="brandList"></u-select>
  11. <u-calendar style=" color: #fff;" v-model="showDate" :mode="mode"></u-calendar>
  12. <view @click="search">
  13. <u-search :show-action="true" :animation="true"></u-search>
  14. </view>
  15. </view>
  16. <view class="content-one" v-for="(item,index) in datalist" :key="index">
  17. <view class="content-one-view">
  18. </view>
  19. <view class="content-one-text">获得奖励:2元</view>
  20. <view class="content-two">
  21. <view class="">
  22. 轮胎型号
  23. </view>
  24. <view class="">
  25. SAILUN 12R22.5 18PR S838
  26. </view>
  27. </view>
  28. <view class="content-two">
  29. <view class="">
  30. 轮胎型号
  31. </view>
  32. <view class="">
  33. SAILUN 12R22.5 18PR S838
  34. </view>
  35. </view>
  36. <view class="content-two">
  37. <view class="">
  38. 轮胎型号
  39. </view>
  40. <view class="">
  41. SAILUN 12R22.5 18PR S838
  42. </view>
  43. </view>
  44. <view class="content-two">
  45. <view class="">
  46. 轮胎型号
  47. </view>
  48. <view class="">
  49. SAILUN 12R22.5 18PR S838
  50. </view>
  51. </view>
  52. </view>
  53. </view>
  54. </template>
  55. <script>
  56. export default {
  57. data() {
  58. return {
  59. datalist: [{},
  60. {}
  61. ],
  62. list: [{
  63. name: '全部'
  64. }, {
  65. name: '品牌'
  66. }, {
  67. name: '时间',
  68. }],
  69. itemList: [{
  70. head: "赛轮 12R22.5 18PR S838",
  71. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  72. open: true,
  73. disabled: true
  74. }, {
  75. head: "赛轮 12R22.5 18PR S838",
  76. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  77. open: false,
  78. }, {
  79. head: "赛轮 12R22.5 18PR S838",
  80. body: "12R22.5 152/149K 18PR S838 LBGSL 0L",
  81. open: false,
  82. }],
  83. brandList: [{
  84. value: '1',
  85. label: '赛轮'
  86. },
  87. {
  88. value: '2',
  89. label: '黑鹰'
  90. }
  91. ],
  92. current: 0,
  93. showBrand: false,
  94. showDate: false,
  95. mode: 'date'
  96. };
  97. },
  98. methods: {
  99. search() {
  100. this.$u.route({
  101. url: 'pages/me/search/index',
  102. })
  103. },
  104. change(index) {
  105. this.current = index;
  106. if (this.current == 1) {
  107. this.showBrand = true
  108. } else if (this.current == 2) {
  109. this.showDate = true
  110. }
  111. }
  112. }
  113. }
  114. </script>
  115. <style lang="scss" scoped>
  116. .header {
  117. height: 400rpx;
  118. width: 100%;
  119. background: #0094FE;
  120. color: #fff;
  121. font-size: 28rpx;
  122. }
  123. .header-one {
  124. text-align: center;
  125. padding-top: 40rpx;
  126. }
  127. .header-one>text {
  128. font-size: 52rpx;
  129. }
  130. .content {
  131. display: flex;
  132. justify-content: space-between;
  133. width: 700rpx;
  134. margin-top: 80rpx;
  135. }
  136. .content-one {
  137. width: 690rpx;
  138. height: 305rpx;
  139. background: #FFFFFF;
  140. box-shadow: 0px 0px 24px 0px rgba(101, 176, 249, 0.41);
  141. border-radius: 20rpx;
  142. margin: 0 auto;
  143. margin-top: 30rpx;
  144. }
  145. .content-one-view {
  146. width: 6rpx;
  147. height: 30rpx;
  148. background: #0292FD;
  149. position: relative;
  150. top: 20rpx;
  151. left: 30rpx;
  152. }
  153. .content-one-text {
  154. position: relative;
  155. top: -8rpx;
  156. left: 60rpx;
  157. font-size: 24rpx;
  158. font-weight: bold;
  159. color: #000;
  160. }
  161. .content-one-time {
  162. position: relative;
  163. top: -40rpx;
  164. left: 530rpx;
  165. font-size: 13rpx;
  166. color: #626262;
  167. }
  168. .content-two {
  169. display: flex;
  170. justify-content: space-between;
  171. font-size: 24rpx;
  172. color: #6A6A6A;
  173. margin-top: 25rpx;
  174. margin-left: 30rpx;
  175. margin-right: 30rpx;
  176. }
  177. </style>