sort.vue 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  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. <view class="marketList" v-for="(tag,indexs) in marketList" :key="indexs">
  15. <view class="title">
  16. {{tag.name}}
  17. </view>
  18. </view>
  19. </view>
  20. </view>
  21. </view>
  22. </mobile-frame>
  23. </template>
  24. <script>
  25. export default {
  26. data() {
  27. return {
  28. active: '0',
  29. typeList: [ //商品分类
  30. {
  31. name: '休闲食品'
  32. },
  33. {
  34. name: '进口食品'
  35. },
  36. {
  37. name: '粮油调味'
  38. },
  39. {
  40. name: '酒饮冲调'
  41. },
  42. {
  43. name: '时令水果'
  44. },
  45. {
  46. name: '品质生鲜'
  47. },
  48. {
  49. name: '居家用品'
  50. },
  51. {
  52. name: '个护清洁'
  53. },
  54. {
  55. name: '3C产品'
  56. },
  57. {
  58. name: '母婴玩具'
  59. },
  60. {
  61. name: '服饰配件'
  62. },
  63. {
  64. name: '礼卡专区'
  65. },
  66. {
  67. name: '植物饮食'
  68. }
  69. ],
  70. marketList: [ //产品列表
  71. {
  72. name: '坚果炒货'
  73. },
  74. {
  75. name: '坚果炒货'
  76. }
  77. ]
  78. };
  79. },
  80. onShow: function() {},
  81. methods: {
  82. }
  83. }
  84. </script>
  85. <style lang="scss">
  86. .main {
  87. display: flex;
  88. flex-direction: column;
  89. width: 100vw;
  90. height: 100vh;
  91. .one {
  92. border-bottom: 1px solid var(--f85Color);
  93. padding: 2vw;
  94. input {
  95. padding: 2vw;
  96. background-color: var(--f1Color);
  97. font-size: var(--font14Size);
  98. border-radius: 5px;
  99. }
  100. }
  101. .two {
  102. position: relative;
  103. flex-grow: 1;
  104. display: flex;
  105. flex-direction: row;
  106. .two_1 {
  107. width: 25vw;
  108. height: 91vh;
  109. background-color: #FAFAFA;
  110. .list {
  111. text-align: center;
  112. padding: 2.5vw 0;
  113. border-bottom: 1px solid #ff0000;
  114. text {
  115. font-size: 14px;
  116. }
  117. }
  118. }
  119. .two_2 {
  120. width: 75vw;
  121. border: 1px solid #0000ff;
  122. // .marketList {
  123. // .title {
  124. // font-size: 16px;
  125. // margin: 0 0 2vw 0;
  126. // }
  127. // .market {
  128. // display: flex;
  129. // flex-direction: row;
  130. // justify-content: space-around;
  131. // flex-wrap: wrap;
  132. // .list {
  133. // text-align: center;
  134. // .image {
  135. // width: 10vw;
  136. // height: 10vw;
  137. // }
  138. // .name {
  139. // font-size: 14px;
  140. // }
  141. // }
  142. // }
  143. // }
  144. }
  145. }
  146. }
  147. </style>