index.vue 1.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. <template>
  2. <view>
  3. <u-navbar leftIconSize="0" :placeholder="true" bgColor="#fff">
  4. <view class="u-nav-slot" slot="left">
  5. <text>兑换大厅</text>
  6. </view>
  7. </u-navbar>
  8. <view class="core">
  9. <view class="flex core-list">
  10. <navigator url="/pages/goods/detail" class="core-list-item" hover-class="navigator-hover">
  11. <view class="flex iamge-wrap">
  12. <image src="../../static/logo.png" mode="scaleToFill"></image>
  13. </view>
  14. <view class="title">Apple iMac 24英寸 4.5K屏 新款八核M1芯片(7核图形处理</view>
  15. <view class="bean">900</view>
  16. </navigator>
  17. <view class="core-list-item"></view>
  18. </view>
  19. </view>
  20. <custom-tab-bar :activeValue="'core'" />
  21. </view>
  22. </template>
  23. <script>
  24. import env from '../../config/env.js'
  25. import CustomTabBar from '../../components/custom-tab-bar/custom-tab-bar.vue'
  26. import $http from '@/utils/request.js'
  27. export default {
  28. components: {
  29. CustomTabBar,
  30. },
  31. data() {
  32. return {
  33. };
  34. },
  35. onShow() {
  36. },
  37. methods: {
  38. },
  39. }
  40. </script>
  41. <style lang="scss" scoped>
  42. </style>
  43. <style lang="scss" scoped>
  44. .core {
  45. margin: 20rpx 0;
  46. &-list {
  47. justify-content: space-around;
  48. flex-wrap: wrap;
  49. &-item {
  50. width: 320rpx;
  51. box-sizing: border-box;
  52. padding: 0 14rpx;
  53. background-color: #FFFFFF;
  54. padding-bottom: 24rpx;
  55. border-radius: 10rpx;
  56. margin-bottom: 40rpx;
  57. .iamge-wrap {
  58. image {
  59. width: 150rpx;
  60. height: 200rpx;
  61. padding: 50rpx 0;
  62. }
  63. }
  64. .title {
  65. font-size: 24rpx;
  66. line-height: 40rpx;
  67. overflow: hidden;
  68. text-overflow: ellipsis;
  69. display: -webkit-box;
  70. -webkit-box-orient: vertical;
  71. -webkit-line-clamp: 2;
  72. }
  73. .bean {
  74. font-size: 24rpx;
  75. color: #EB7009;
  76. }
  77. }
  78. &-item:last-child{
  79. padding: 0;
  80. }
  81. }
  82. }
  83. </style>