goods_cate.vue 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  1. <template>
  2. <view class='productSort'>
  3. <!-- <view class='header acea-row row-center-wrapper'>-->
  4. <!-- <view class='acea-row row-between-wrapper input'>-->
  5. <!-- <text class='iconfont icon-sousuo'></text>-->
  6. <!-- <input type='text' placeholder='点击搜索商品信息' @confirm="searchSubmitValue" confirm-type='search' name="search"-->
  7. <!-- placeholder-class='placeholder'></input>-->
  8. <!-- </view>-->
  9. <!-- </view>-->
  10. <!-- <view class='aside' :style="{bottom: tabbarH + 'px',height: height + 'rpx'}">-->
  11. <!-- <scroll-view scroll-y="true" scroll-with-animation='true' style="height: 100%;">-->
  12. <!-- <view class='item acea-row row-center-wrapper' :class='index==navActive?"on":""' v-for="(item,index) in productList"-->
  13. <!-- :key="index" @click='tap(index,"b"+index)'><text>{{item.name}}</text></view>-->
  14. <!-- </scroll-view>-->
  15. <!-- -->
  16. <!-- </view>-->
  17. <!-- <view class='conter'>-->
  18. <!-- <scroll-view scroll-y="true" :scroll-into-view="toView" :style='"height:"+height+"rpx;margin-top: 96rpx;"' @scroll="scroll"-->
  19. <!-- scroll-with-animation='true'>-->
  20. <!-- <block v-for="(item,index) in productList" :key="index">-->
  21. <!-- -->
  22. <!-- <view class='listw' :id="'b'+index">-->
  23. <!-- <view class='title acea-row row-center-wrapper'>-->
  24. <!-- <view class='line'></view>-->
  25. <!-- <view class='name'>{{item.name}}</view>-->
  26. <!-- <view class='line'></view>-->
  27. <!-- </view>-->
  28. <!-- <view class='list acea-row'>-->
  29. <!-- <block v-for="(itemn,indexn) in item.child" :key="indexn">-->
  30. <!-- <navigator hover-class='none' :url='"/pages/goods_list/index?cid="+itemn.id+"&title="+itemn.name' class='item acea-row row-column row-middle'>-->
  31. <!-- &lt;!&ndash; <view class='picture' :style="{'background-color':itemn.extra?'none':'#f7f7f7'}">-->
  32. <!-- <image :src='itemn.extra'></image>-->
  33. <!-- </view> &ndash;&gt;-->
  34. <!-- <view class='name line1'>{{itemn.name}}</view>-->
  35. <!-- </navigator>-->
  36. <!-- </block>-->
  37. <!-- </view>-->
  38. <!-- </view>-->
  39. <!-- </block>-->
  40. <!-- <view :style='"height:"+(height-300)+"rpx;"' v-if="number<15"></view>-->
  41. <!-- </scroll-view>-->
  42. <!-- </view>-->
  43. </view>
  44. </template>
  45. <script>
  46. </script>
  47. <style scoped lang="scss">
  48. .productSort .header {
  49. width: 100%;
  50. height: 96rpx;
  51. background-color: #fff;
  52. position: fixed;
  53. left: 0;
  54. right: 0;
  55. top: 0;
  56. z-index: 9;
  57. border-bottom: 1rpx solid #f5f5f5;
  58. }
  59. .productSort .header .input {
  60. width: 700rpx;
  61. height: 60rpx;
  62. background-color: #f5f5f5;
  63. border-radius: 50rpx;
  64. box-sizing: border-box;
  65. padding: 0 25rpx;
  66. }
  67. .productSort .header .input .iconfont {
  68. font-size: 26rpx;
  69. color: #555;
  70. }
  71. .productSort .header .input .placeholder {
  72. color: #999;
  73. }
  74. .productSort .header .input input {
  75. font-size: 26rpx;
  76. height: 100%;
  77. width: 597rpx;
  78. }
  79. .productSort .aside {
  80. position: fixed;
  81. width: 180rpx;
  82. left: 0;
  83. top:0;
  84. background-color: #f7f7f7;
  85. overflow-y: scroll;
  86. overflow-x: hidden;
  87. height: auto;
  88. margin-top: 96rpx;
  89. }
  90. .productSort .aside .item {
  91. height: 100rpx;
  92. width: 100%;
  93. font-size: 26rpx;
  94. color: #424242;
  95. }
  96. .productSort .aside .item.on {
  97. background-color: #fff;
  98. border-left: 4rpx solid #fc4141;
  99. width: 100%;
  100. text-align: center;
  101. color: #fc4141;
  102. font-weight: bold;
  103. }
  104. .productSort .conter {
  105. margin: 96rpx 0 0 180rpx;
  106. padding: 0 14rpx;
  107. background-color: #fff;
  108. }
  109. .productSort .conter .listw {
  110. padding-top: 20rpx;
  111. }
  112. .productSort .conter .listw .title {
  113. height: 90rpx;
  114. }
  115. .productSort .conter .listw .title .line {
  116. width: 100rpx;
  117. height: 2rpx;
  118. background-color: #f0f0f0;
  119. }
  120. .productSort .conter .listw .title .name {
  121. font-size: 28rpx;
  122. color: #333;
  123. margin: 0 30rpx;
  124. font-weight: bold;
  125. }
  126. .productSort .conter .list {
  127. flex-wrap: wrap;
  128. }
  129. .productSort .conter .list .item {
  130. width: 177rpx;
  131. margin-top: 26rpx;
  132. }
  133. .productSort .conter .list .item .picture {
  134. width: 120rpx;
  135. height: 120rpx;
  136. border-radius: 50%;
  137. }
  138. .productSort .conter .list .item .picture image {
  139. width: 100%;
  140. height: 100%;
  141. border-radius: 50%;
  142. div{
  143. background-color: #f7f7f7;
  144. }
  145. }
  146. .productSort .conter .list .item .name {
  147. font-size: 24rpx;
  148. color: #333;
  149. height: 56rpx;
  150. line-height: 56rpx;
  151. width: 120rpx;
  152. text-align: center;
  153. }
  154. </style>