index.vue 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. <view @click="search">
  12. <u-search :show-action="true" :animation="true"></u-search>
  13. </view>
  14. </view>
  15. <view class="content-one" v-for="(item,index) in datalist" :key="index">
  16. <view class="content-one-view">
  17. </view>
  18. <view class="content-one-text">获得奖励:2元</view>
  19. <view class="content-two">
  20. <view class="">
  21. 轮胎型号
  22. </view>
  23. <view class="">
  24. SAILUN 12R22.5 18PR S838
  25. </view>
  26. </view>
  27. <view class="content-two">
  28. <view class="">
  29. 轮胎型号
  30. </view>
  31. <view class="">
  32. SAILUN 12R22.5 18PR S838
  33. </view>
  34. </view>
  35. <view class="content-two">
  36. <view class="">
  37. 轮胎型号
  38. </view>
  39. <view class="">
  40. SAILUN 12R22.5 18PR S838
  41. </view>
  42. </view>
  43. <view class="content-two">
  44. <view class="">
  45. 轮胎型号
  46. </view>
  47. <view class="">
  48. SAILUN 12R22.5 18PR S838
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </template>
  54. <script>
  55. export default {
  56. data() {
  57. return {
  58. datalist: [
  59. {},
  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: 20px;
  142. margin: 0 auto;
  143. margin-top: 50rpx;
  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; justify-content: space-between;
  170. font-size: 24rpx;
  171. color: #6A6A6A;
  172. margin-top: 25rpx;
  173. margin-left: 30rpx;
  174. margin-right: 30rpx;
  175. }
  176. </style>