index.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  3. <tm-menubars title="" :shadow="0" :showback="false"></tm-menubars>
  4. <view class="C1b1b1b pb-20">
  5. <view style="width: 90%;margin:0 auto;">
  6. <view>
  7. <tm-search @confirm="sosoFun" class="fl" v-model="soso" color="white" confirm-text=""></tm-search>
  8. <text class="quxiao fr" @click="goindex()">取消</text>
  9. </view>
  10. <view style="clear: both;"></view>
  11. <view v-if="sosotype==1">
  12. <text class="text-size-m fl mt-30">搜索记录</text>
  13. <view class="fr mt-30 qingchu">
  14. <text class="text-size-s fl">清空记录</text>
  15. <tm-badges :offset="[0,-5]" icon="icon-times"></tm-badges>
  16. </view>
  17. </view>
  18. <view v-if="sosotype==2">
  19. <tm-tabs align="left" class="qiehuan1" v-model="activeIndex" :list="list" range-key="title"></tm-tabs>
  20. <tm-tabs align="left" class="qiehuan2" color="white" v-model="activeIndex1" :list="list1" range-key="title"></tm-tabs>
  21. </view>
  22. <view style="clear: both;"></view>
  23. </view>
  24. </view>
  25. <!-- 列表 -->
  26. <tm-grouplist class="liebiao mt-40" v-if="sosotype==1">
  27. <tm-listitem v-for="item in libiaoList" @click="tiaozhuan(item.type)" :title="item.title" left-icon="" show-left-icon :show-right-icon="false">
  28. </tm-listitem>
  29. </tm-grouplist>
  30. <!-- 衣橱 -->
  31. <view class="zhuti">
  32. <tm-sheet class="yichu" v-if="sosotype==2" style="margin-bottom: 70px !important;">
  33. <view class="jihua">
  34. <view v-for="(item,index) in listdata" class="round-3 fl shadow-2 overflow pa-10 jihuaview" :class="[$tm.vx.state().tmVuetify.black ? 'black' : 'white']">
  35. <image class="logo" :src="item.image" mode="widthFix"></image>
  36. <view class="pa-10 text-size-s">
  37. <view class="text-overflow-2">
  38. <text>{{item.text}}</text>
  39. </view>
  40. <view class="mt-2 flex-between flex-center">
  41. <view class="touxiang mt-30">
  42. <image src="/static/img/7.png" mode="widthFix"></image>
  43. <text class="text-white text-size-m">可樂crys</text>
  44. </view>
  45. <view >
  46. <image class="remenzan" :src="dianzan1?'/static/img/29.png':'/static/img/9.png'" mode="widthFix"></image>
  47. </view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. <view style="clear: both;" class="more mt-40 pb-40 pt-40" @click="gengmore()">
  53. <image src="/static/img/30.png" mode="widthFix"></image>
  54. <text class="text-size-s">下拉加载更多~</text>
  55. </view>
  56. </tm-sheet>
  57. </view>
  58. <!-- 弹出层消息 -->
  59. <tm-message ref="toast"></tm-message>
  60. </view>
  61. </template>
  62. <script>
  63. import{myRequest} from '@/api/request.js'
  64. export default {
  65. data() {
  66. return {
  67. soso:'',
  68. libiaoList:[
  69. {title:'热门穿搭',type:'1'},
  70. {title:'商务搭配',type:'2'},
  71. {title:'朋克风',type:'3'},
  72. {title:'日常出勤',type:'4'},
  73. {title:'同学聚会',type:'5'},
  74. ],
  75. sosotype:1,
  76. list:[ '全部','用户','商品'],
  77. activeIndex:0,
  78. activeIndex1:0,
  79. list1:[ '综合','高级感','黑色','灰色'],
  80. listdata:[],
  81. dianzan1:true,
  82. sys:null
  83. };
  84. },
  85. onLoad() {
  86. },
  87. created() {
  88. this.sys = uni.getSystemInfoSync();
  89. this.randouh()
  90. },
  91. methods: {
  92. gengmore(){
  93. this.randouh()
  94. },
  95. goindex(){
  96. uni.navigateBack();
  97. },
  98. sosoFun(){
  99. console.log(this.soso)
  100. this.sosotype=2
  101. },
  102. randouh(){
  103. let list2 = [],that=this;
  104. for(let i=0;i<4;i++){
  105. list2.push({
  106. image:'../../static/img/25.png',
  107. text:'西装穿搭 | 韩系又A又飒休闲西装 高级感'
  108. })
  109. }
  110. this.listdata=this.listdata.concat(list2)
  111. console.log(this.listdata)
  112. },
  113. },
  114. }
  115. </script>
  116. <style lang="scss">
  117. /deep/ .tm-menubars .body{
  118. background-color: #1b1b1b !important;
  119. }
  120. /deep/ .icon-search{
  121. font-size: 23px !important;
  122. color: #8E8E93 !important;
  123. }
  124. /deep/ .tm-search{
  125. width: 86%;
  126. margin: 0 auto;
  127. background-color: #414141 !important;
  128. border-radius: 10px;
  129. }
  130. /deep/ .tm-search .grey-darken-5{
  131. background-color: #414141 !important;
  132. }
  133. .quxiao{color: #707070;line-height: 47px;}
  134. /deep/ .tm--badges--cm{border: 1px solid #303440 !important;
  135. background-color: #303440 !important;right: -7px !important;top: 6px !important;}
  136. /deep/ .tm--badges{display: inherit !important;}
  137. .qingchu{background: #303440;padding:5px 15px;border-radius: 20px;width: 62px;}
  138. /deep/ .liebiao .grey-darken-4.bk{background-color: #0D0D0D !important;}
  139. /deep/ .liebiao .py-24{padding-top: 15px;padding-bottom: 15px;}
  140. /deep/ .tm-grouplist{margin:0 10px !important;}
  141. /deep/ .qiehuan2 .tm-tabs-con-item-border{display: none;}
  142. /deep/ .qiehuan1 .text-primary{color: white !important;}
  143. /deep/ .qiehuan2 .tm-tabs-con-item-text{
  144. font-size: 14px;
  145. background: none !important;
  146. height: 28px;
  147. vertical-align: middle;
  148. line-height: 28px;
  149. border-radius: 20px;
  150. padding-left: 14px;
  151. padding-right: 14px;
  152. margin-top: 17%;
  153. }
  154. /deep/ .qiehuan2 .text-weight-b{
  155. font-size: 14px;
  156. background: #303440 !important;
  157. height: 28px;
  158. vertical-align: middle;
  159. line-height: 28px;
  160. border-radius: 20px;
  161. padding-left: 14px;
  162. padding-right: 14px;
  163. margin-top: 17%;
  164. color: white !important;
  165. }
  166. .jihua image{width: 30px;height: 30px;}
  167. .jihua{position: relative;}
  168. .jihua .a_1{position: absolute;top: 10%;}
  169. .jihuaview{width: 43%;margin: 7px;}
  170. .remenzan{width: 18px !important;margin-top: 10px;}
  171. .jihua .logo{width: 100%;}
  172. .touxiang image{width: 40px;margin-right: 10px;vertical-align: middle;}
  173. .yichu{padding: 0px !important;margin:0 !important}
  174. .more{text-align: center;}
  175. .more image{margin-right: 10px;vertical-align: middle;width: 30px;}
  176. </style>