sort.vue 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <template>
  2. <mobile-frame>
  3. <view class="main">
  4. <view class="one">
  5. <input type="text" placeholder="寻找您喜爱的商品" @tap="toCommon('pagesHome/market/search')" placeholder-class="placss">
  6. </view>
  7. <view class="two">
  8. <view class="two_1">
  9. <view class="list" v-for="(item,index) in typeList" :key="index">
  10. <text>{{item.name}}</text>
  11. </view>
  12. </view>
  13. <view class="two_2">
  14. 右侧商品
  15. </view>
  16. </view>
  17. </view>
  18. </mobile-frame>
  19. </template>
  20. <script>
  21. export default {
  22. data() {
  23. return {
  24. typeList: [ //商品分类
  25. {
  26. name: '休闲食品'
  27. },
  28. {
  29. name: '进口食品'
  30. },
  31. {
  32. name: '粮油调味'
  33. },
  34. {
  35. name: '酒饮冲调'
  36. },
  37. {
  38. name: '时令水果'
  39. },
  40. {
  41. name: '品质生鲜'
  42. },
  43. {
  44. name: '居家用品'
  45. },
  46. {
  47. name: '个护清洁'
  48. },
  49. {
  50. name: '3C产品'
  51. },
  52. {
  53. name: '母婴玩具'
  54. },
  55. {
  56. name: '服饰配件'
  57. },
  58. {
  59. name: '礼卡专区'
  60. },
  61. {
  62. name: '植物饮食'
  63. }
  64. ]
  65. };
  66. },
  67. onShow: function() {},
  68. methods: {
  69. }
  70. }
  71. </script>
  72. <style lang="scss">
  73. .main {
  74. display: flex;
  75. flex-direction: column;
  76. width: 100vw;
  77. height: 100vh;
  78. .one {
  79. border-bottom: 1px solid var(--f85Color);
  80. padding: 2vw;
  81. input {
  82. padding: 2vw;
  83. background-color: var(--f1Color);
  84. font-size: var(--font14Size);
  85. border-radius: 5px;
  86. }
  87. }
  88. .two {
  89. position: relative;
  90. flex-grow: 1;
  91. display: flex;
  92. flex-direction: row;
  93. .two_1 {
  94. width: 25vw;
  95. height: 91vh;
  96. background-color: #FAFAFA;
  97. .list {
  98. text-align: center;
  99. padding: 2.5vw 0;
  100. border-bottom: 1px solid #ff0000;
  101. text {
  102. font-size: 14px;
  103. }
  104. }
  105. }
  106. .two_2 {
  107. width: 75vw;
  108. border: 1px solid #0000ff;
  109. }
  110. }
  111. }
  112. </style>