index.vue 3.7 KB

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