index.vue 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218
  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">
  5. <tm-search v-model="soso" color="white" confirm-text="">
  6. <!-- <template #right>
  7. <view class="xiangji">
  8. <image src="/static/img/xiangji.png" mode="widthFix"></image>
  9. </view>
  10. </template> -->
  11. </tm-search>
  12. <view class="dingwei">
  13. <image class="touxiang" style="vertical-align: middle;" src="/static/img/41.png" mode="widthFix"></image>
  14. <text style="vertical-align: middle;" class="text-size-m mr-20">“我”的衣橱</text>
  15. <image @click="qiehuanFun" style="vertical-align: middle;" src="/static/img/42.png" mode="widthFix"></image>
  16. <text @click="qiehuanFun" style="vertical-align: middle;" class="text-size-m">切换</text>
  17. </view>
  18. </view>
  19. <!-- 推荐 -->
  20. <view class="zhuti">
  21. <div>
  22. <tm-sheet class="lunbo1 fl">
  23. <view class="flex-between flex-center">
  24. <view class="tuijian">
  25. <text class="text-white text-size-lg">校园穿搭</text>
  26. </view>
  27. <view >
  28. <text class="text-size-s C929297">详情</text>
  29. </view>
  30. </view>
  31. <view class="flex-between flex-center mt-20 pa-8" style="border-radius: 4px;" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  32. <view class="tuijiantp">
  33. <image style="vertical-align: middle;" src="/static/img/43.png" mode="widthFix"></image>
  34. </view>
  35. <view class="tuijiantp">
  36. <image class="fr" style="vertical-align: middle;" src="/static/img/44.png" mode="widthFix"></image>
  37. </view>
  38. </view>
  39. </tm-sheet>
  40. <tm-sheet class="lunbo1 fr">
  41. <view class="flex-between flex-center">
  42. <view class="tuijian">
  43. <text class="text-white text-size-lg">日常出勤</text>
  44. </view>
  45. <view >
  46. <text class="text-size-s C929297">详情</text>
  47. </view>
  48. </view>
  49. <view class="flex-between flex-center mt-20 pa-8" style="border-radius: 4px;" :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']">
  50. <view class="tuijiantp">
  51. <image style="vertical-align: middle;" src="/static/img/43.png" mode="widthFix"></image>
  52. </view>
  53. <view class="tuijiantp">
  54. <image class="fr" style="vertical-align: middle;" src="/static/img/44.png" mode="widthFix"></image>
  55. </view>
  56. </view>
  57. </tm-sheet>
  58. <view style="clear: both;"></view>
  59. </div>
  60. <!-- 衣橱 -->
  61. <tm-sheet class="yichu" style="margin-bottom: 70px !important;">
  62. <tm-tabs class="C1b1b1b qiehuan" color="white" align="split" v-model="activeIndex" :list="list" range-key="title"></tm-tabs>
  63. <view class="yiguicla black pa-6 ma-4 fl" v-for="item in quanbuList" @click="yifu()">
  64. <image :src="item.src" mode="widthFix"></image>
  65. <view class="text-align-center text-size-m mt-8">{{item.text}}</view>
  66. <view class="text-align-center text-size-m mt-6 mb-6">{{item.type}}</view>
  67. </view>
  68. <view style="clear: both;" class="more ma-30 pt-40" @click="gengmore()">
  69. <image src="/static/img/30.png" mode="widthFix"></image>
  70. <text class="text-size-s">下拉加载更多~</text>
  71. </view>
  72. </tm-sheet>
  73. </view>
  74. </view>
  75. </template>
  76. <script>
  77. export default {
  78. data() {
  79. return {
  80. soso:'',
  81. activeIndex:0,
  82. list:[ '全部','上衣','裤子','鞋子','配饰'],
  83. quanbuList:[{
  84. src:'/static/img/45.png',
  85. text:'NEO CITY 涂鸦',
  86. type:'手提包'
  87. },{
  88. src:'/static/img/46.png',
  89. text:'满印迷你标识',
  90. type:'围巾'
  91. },{
  92. src:'/static/img/47.png',
  93. text:'大号版型夹克',
  94. type:'新品'
  95. },{
  96. src:'/static/img/45.png',
  97. text:'NEO CITY 涂鸦',
  98. type:'手提包'
  99. },{
  100. src:'/static/img/46.png',
  101. text:'满印迷你标识',
  102. type:'围巾'
  103. },{
  104. src:'/static/img/47.png',
  105. text:'大号版型夹克',
  106. type:'新品'
  107. }]
  108. };
  109. },
  110. onLoad() {
  111. },
  112. created() {
  113. this.sys = uni.getSystemInfoSync();
  114. },
  115. methods: {
  116. yifu(){
  117. uni.navigateTo({
  118. url: "/pages/yifu/index",
  119. })
  120. },
  121. qiehuanFun(){
  122. uni.navigateTo({
  123. url: "/pages/qiehuan/index",
  124. })
  125. },
  126. randouh(){
  127. let list2 = [],that=this;
  128. for(let i=0;i<6;i++){
  129. list2.push({
  130. src:'/static/img/47.png',
  131. text:'大号版型夹克',
  132. type:'新品'
  133. })
  134. }
  135. this.quanbuList=this.quanbuList.concat(list2)
  136. console.log(this.quanbuList)
  137. },
  138. gengmore(){
  139. this.randouh()
  140. },
  141. change(e){
  142. uni.$tm.toast(`你选中了${e}`);
  143. },
  144. changece(e){
  145. uni.$tm.toast(`您选中了:${e}`)
  146. },
  147. dapei(item){
  148. console.log(item)
  149. },
  150. xiangqing(item){
  151. console.log(item)
  152. },
  153. ruku(){
  154. uni.navigateTo({
  155. url: "/pages/putstorage/index",
  156. })
  157. }
  158. },
  159. }
  160. </script>
  161. <style lang="scss">
  162. /deep/ uni-scroll-view{
  163. height: auto !important;
  164. }
  165. /deep/ .tm-menubars .body{
  166. background-color: #1b1b1b !important;
  167. }
  168. .shangright{
  169. padding: 10px;
  170. }
  171. //
  172. .xiangji image{
  173. width: 30px;
  174. height: 22px;
  175. }
  176. .suosou image{
  177. width: 40px;
  178. }
  179. /deep/ .icon-search{
  180. font-size: 23px !important;
  181. color: #8E8E93 !important;
  182. }
  183. /deep/ .tm-search{
  184. width: 94%;
  185. margin: 0 auto;
  186. background-color: #414141 !important;
  187. border-radius: 10px;
  188. }
  189. /deep/ .tm-search .grey-darken-5{
  190. background-color: #414141 !important;
  191. }
  192. .dingwei{width: 92%;margin: 0 auto;margin-top: 20px;padding-bottom: 20px;}
  193. .dingwei image{width: 25px;margin-right: 10px; }
  194. .dingwei .touxiang{width: 50px;margin-right: 3px; }
  195. /deep/ .lunbo1{margin:0 !important;padding: 4px !important;margin-top: 5px !important;width: 46.6% !important;}
  196. .tuijiantp{width: 100%;}
  197. .tuijiantp image{width: 97% !important;}
  198. .yichu{margin:0 !important;padding: 4px !important;margin-top: 10px !important;}
  199. /deep/ .qiehuan .text-white{
  200. font-size: 14px;
  201. background: #303440;
  202. height: 28px;
  203. vertical-align: middle;
  204. line-height: 28px;
  205. border-radius: 20px;
  206. padding-left: 14px;
  207. padding-right: 14px;
  208. margin-top: 17%;
  209. }
  210. /deep/ .qiehuan .tm-tabs-con-item-border{display: none;}
  211. .yiguicla image{width: 95%;display: block;margin: 0 auto;margin-top: 5px;}
  212. .yiguicla{width: 30%;border-radius: 10px;}
  213. .more{text-align: center;}
  214. .more image{margin-right: 10px;vertical-align: middle;width: 30px;}
  215. </style>