index.vue 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. <template>
  2. <view :style="{ minHeight: sys.windowHeight + 'px' }"
  3. :class="[$tm.vx.state().tmVuetify.black ? 'black' : ' ']" class="bodycont">
  4. <tm-menubars ref="fenleig" title="分类" :shadow="0" :showback="true"></tm-menubars>
  5. <div class="cont" :style="{ height: (sys.windowHeight-80) + 'px' }">
  6. <tm-sheet black>
  7. <tm-sliderNav :style="{ height: (sys.windowHeight-80) + 'px' }" class="zuo fl" @change="change" :list="list" text color="red" ></tm-sliderNav>
  8. <view class="fr you" :style="{ height: (sys.windowHeight-80) + 'px' }">
  9. <view class="huadong">
  10. <view class="py-10 text-size-g dianz mingri text-align-center mt-40">
  11. <image src="/static/img/88.png" mode="widthFix"></image>
  12. <text class="text-white">精选推荐</text>
  13. </view>
  14. <view class="yiguicla mt-20 ml-20 fl" v-for="item in quanbuList" @click="yifu()">
  15. <image :src="item.src" mode="widthFix"></image>
  16. <view class="wenzi text-align-center text-size-m mt-8">{{item.text}}</view>
  17. </view>
  18. <view style="width:100%;height:40px;clear: both;"></view>
  19. </view>
  20. </view>
  21. <view style="clear: both;"></view>
  22. </tm-sheet>
  23. </div>
  24. <!-- 弹出层消息 -->
  25. <tm-message ref="toast"></tm-message>
  26. </view>
  27. </template>
  28. <script>
  29. import{myRequest} from '@/api/request.js'
  30. export default {
  31. data() {
  32. return {
  33. list:[
  34. {title:'配饰'},
  35. {title:'精选'},
  36. {title:'热门',},
  37. {title:'虚拟商品'},
  38. {title:'包袋'},
  39. {title:'彩妆',},
  40. {title:'护肤'},
  41. {title:'陪玩',}
  42. ],
  43. quanbuList:[{
  44. src:'/static/img/45.png',
  45. text:'NEO CITY 涂鸦',
  46. type:'手提包'
  47. },{
  48. src:'/static/img/46.png',
  49. text:'满印迷你标识',
  50. type:'围巾'
  51. },{
  52. src:'/static/img/47.png',
  53. text:'大号版型夹克',
  54. type:'新品'
  55. },{
  56. src:'/static/img/45.png',
  57. text:'NEO CITY 涂鸦',
  58. type:'手提包'
  59. },{
  60. src:'/static/img/46.png',
  61. text:'满印迷你标识',
  62. type:'围巾'
  63. },{
  64. src:'/static/img/47.png',
  65. text:'大号版型夹克',
  66. type:'新品'
  67. },{
  68. src:'/static/img/46.png',
  69. text:'满印迷你标识',
  70. type:'围巾'
  71. },{
  72. src:'/static/img/47.png',
  73. text:'大号版型夹克',
  74. type:'新品'
  75. },{
  76. src:'/static/img/45.png',
  77. text:'NEO CITY 涂鸦',
  78. type:'手提包'
  79. },{
  80. src:'/static/img/46.png',
  81. text:'满印迷你标识',
  82. type:'围巾'
  83. },{
  84. src:'/static/img/47.png',
  85. text:'大号版型夹克',
  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. };
  97. },
  98. onLoad() {
  99. },
  100. created() {
  101. this.sys = uni.getSystemInfoSync();
  102. },
  103. methods: {
  104. change(e){
  105. uni.$tm.toast(`您选中了:${e}`)
  106. }
  107. },
  108. }
  109. </script>
  110. <style lang="scss">
  111. /deep/ .tm-menubars .body{
  112. background-color: #1b1b1b !important;
  113. }
  114. // /deep/ .zhuti{padding: 10px 10px;}
  115. // page,.bodycont{height:100%;}
  116. /deep/ .cont{overflow: hidden;}
  117. /deep/ .kuang{margin:0 !important;padding: 0px !important;}
  118. /deep/ .zuo .grey-darken-4.bk{background-color:#0D0D0D !important;}
  119. /deep/ .zuo .uni-scroll-view-content{background-color:#0D0D0D !important;}
  120. /deep/ .cont .shadow-white-5{padding:0px !important;margin:0px !important}
  121. /deep/ .zuo .border-red-l-2.bk{border-left-color:#0178FD !important;}
  122. /deep/ .zuo .text-red,/deep/ .zuo .text-grey-darken-1{color: white !important;}
  123. .yiguicla image{width: 100%;display: block;margin: 0 auto;margin-top: 5px;border-radius: 10px;}
  124. .yiguicla{width: 45%;border-radius: 10px;position: relative;padding:0px !important;}
  125. .wenzi{position: absolute;bottom: 0px;background: #BCC2C7;color: white;width: 100%;
  126. height: 25px;border-radius: 0px 0px 10px 10px;}
  127. // /deep/ .zuo uni-scroll-view{height: calc(100% - 45px) !important;}
  128. .mingri image{width: 25px;margin-right: 12px;vertical-align: middle;}
  129. .mingri text{vertical-align: middle;}
  130. .you{width: calc(100% - 100px);overflow: auto;}
  131. .zuo{overflow: hidden;}
  132. </style>