金诚优选前端代码
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

103 lines
2.2 KiB

  1. <template>
  2. <view>
  3. <lf-nav title="兑换记录" :showIcon="true" bgColor="#fff"></lf-nav>
  4. <view class="head">
  5. <u-search placeholder="搜你想要的" v-model="value" @custom="customClick"></u-search>
  6. </view>
  7. <view class="content">
  8. <view class="card" v-for="(item, index) in 2" :key="index">
  9. <view>
  10. <text class="lf-iconfont icon-Group- lf-font-30"></text>
  11. <text class="shop-name">精品超市</text>
  12. <text class="lf-iconfont icon-xiangyou lf-font-24"></text>
  13. </view>
  14. <view class="lf-flex lf-m-t-20">
  15. <image class="goods-img"></image>
  16. <view class="info">
  17. <view class="lf-font-26 lf-color-333 lf-line-2">爱他美较大婴儿配方奶粉较大配方奶粉较2段 </view>
  18. <view class="lf-row-between" style="line-height: 1;">
  19. <text class="lf-font-24 lf-color-777">1900g</text>
  20. <text class="lf-font-32 lf-color-primary lf-font-bold">385</text>
  21. </view>
  22. </view>
  23. </view>
  24. <view class="order-num">
  25. <text>兑换成功</text>
  26. <text style="color: #F63434;">删除订单</text>
  27. </view>
  28. </view>
  29. </view>
  30. <u-back-top :scrollTop="pageScrollTop"></u-back-top>
  31. </view>
  32. </template>
  33. <script>
  34. export default {
  35. data(){
  36. return {
  37. value: ''
  38. }
  39. },
  40. onLoad(){
  41. },
  42. methods: {
  43. customClick(event){
  44. console.log(event)
  45. }
  46. }
  47. }
  48. </script>
  49. <style>
  50. page{
  51. background-color: #F8F8F8;
  52. }
  53. </style>
  54. <style lang="scss" scoped="scoped">
  55. .head{
  56. padding: 30rpx 32rpx;
  57. background-color: #FFFFFF;
  58. }
  59. .content{
  60. padding: 30rpx 32rpx;
  61. .card{
  62. width: 686rpx;
  63. height: 323rpx;
  64. background: #FFFFFF;
  65. border-radius: 20rpx;
  66. padding: 30rpx;
  67. box-sizing: border-box;
  68. &:nth-child(n+2){
  69. margin-top: 20rpx;
  70. }
  71. .shop-name{
  72. font-size: 28rpx;
  73. color: #222222;
  74. font-weight: bold;
  75. margin: 0 15rpx;
  76. }
  77. .goods-img{
  78. width: 130rpx;
  79. height: 130rpx;
  80. border-radius: 5rpx;
  81. margin-right: 15rpx;
  82. background-color: #EEEEEE;
  83. }
  84. .info{
  85. width: 480rpx;
  86. height: 130rpx;
  87. display: flex;
  88. flex-direction: column;
  89. justify-content: space-between;
  90. }
  91. .order-num{
  92. font-size: 24rpx;
  93. color: #555555;
  94. display: flex;
  95. justify-content: space-between;
  96. margin-top: 28rpx;
  97. }
  98. }
  99. }
  100. </style>