详情小程序
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

176 lines
4.0 KiB

5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
  1. <template>
  2. <view style="padding: 30rpx 32rpx;">
  3. <!-- <view class="content"> -->
  4. <!-- float 方案 -->
  5. <!-- <view class="item" :class="{'max-item': item == 0}" v-for="item in 6">{{ item + 1 }}</view> -->
  6. <!-- flex 方案 -->
  7. <!-- <view class="lf-flex-wrap">
  8. <view class="flex"
  9. :style="{order: item + 1}"
  10. :class="{'flex-max': item == 0}"
  11. v-for="item in 6"
  12. >{{ item + 1 }}</view>
  13. </view> -->
  14. <!-- </view> -->
  15. <!-- <div class="box-wrapper">
  16. <div style="margin-top:0px" class="box"></div>
  17. <div class="box spe"></div>
  18. <div class="box spe"></div>
  19. <div class="box spe"></div>
  20. <div class="box spe"></div>
  21. <div class="box"></div>
  22. <div class="box"></div>
  23. <div class="box spe"></div>
  24. <div class="box spe"></div>
  25. </div> -->
  26. <lf-nav baColor="pink" :showIcon="true" :search="true" ></lf-nav>
  27. <lf-upload-image></lf-upload-image>
  28. <view style="height: 100rpx;"></view>
  29. <!-- <drag /> -->
  30. <view>111111</view>
  31. <lf-time-picker v-model="timeShow">
  32. <view @click="timeShow = true">点击此处打开时间选择组件</view>
  33. </lf-time-picker>
  34. <view style="height: 100rpx;">
  35. <text class="le lf-icon-xingxing-kong"></text>
  36. </view>
  37. <lf-rate allowHalf="true" :isFill="false"></lf-rate>
  38. <view v-for="item in 60" :key="item">{{ item }}</view>
  39. <view>欧耶</view>
  40. <lf-tabbar v-model="active" :animate="animate" :close-animate-on-raisede="false" @change="handleChange">
  41. <lf-tabbar-item v-for="item in tabbars"
  42. :key="item.name"
  43. :name="item.name"
  44. :icon="item.icon"
  45. :dot="item.dot"
  46. :info="item.info"
  47. :raisede="item.raisede"
  48. :style="{'width': 100 / tabbars.length +'%'}"
  49. icon-prefix="lf-icon">
  50. {{ item.text }}
  51. </lf-tabbar-item>
  52. </lf-tabbar>
  53. </view>
  54. </template>
  55. <style>
  56. page{
  57. background-color: #F6F6F6;
  58. }
  59. </style>
  60. <script>
  61. import lfNav from '@/components/lf-nav/lf-nav.vue'
  62. import lfUploadImage from "@/components/lf-uploadImage/lf-uploadImage.vue"
  63. import lfTimePicker from '@/components/lf-timePicker/lf-timePicker.vue'
  64. import lfRate from '@/components/lf-rate/lf-rate.vue'
  65. import drag from './drag.vue';
  66. import lfTabbarItem from "@/components/lf-tabbar/lf-tabbar-item.vue"
  67. import lfTabbar from "@/components/lf-tabbar/lf-tabbar.vue"
  68. export default {
  69. components: { lfUploadImage, drag, lfTimePicker, lfRate, lfNav, lfTabbar, lfTabbarItem },
  70. data(){
  71. return {
  72. timeShow: false,
  73. active: 'home',
  74. animate: 'rubberBand',
  75. tabbars: [
  76. {
  77. name: 'home',
  78. text: '首页',
  79. icon: 'jiantouxia'
  80. },
  81. {
  82. name: 'brand',
  83. text: '品牌',
  84. icon: 'jiantouxia'
  85. },
  86. {
  87. name: 'find',
  88. text: '发现',
  89. icon: 'jiantouxia'
  90. },
  91. {
  92. name: 'mine',
  93. text: '我的',
  94. icon: 'jiantouxia'
  95. }
  96. ]
  97. }
  98. },
  99. onLoad(){
  100. },
  101. methods: {
  102. handleChange (e) {
  103. console.log('change::', e)
  104. uni.showToast({
  105. title: e.name,
  106. icon: 'none'
  107. })
  108. }
  109. }
  110. }
  111. </script>
  112. <style lang="scss" scoped="scoped">
  113. .box{
  114. height: 123px;
  115. padding: 1em;
  116. margin-top: 1em;
  117. -moz-page-break-inside: avoid;
  118. -webkit-column-break-inside: avoid;
  119. break-inside: avoid;
  120. border: 1px solid #000;
  121. background: #909090;
  122. }
  123. .spe{
  124. height: 225px;
  125. }
  126. .box-wrapper{
  127. -moz-column-count:4; /* Firefox */
  128. -webkit-column-count:4; /* Safari 和 Chrome */
  129. column-count:4;
  130. -moz-column-gap: 1em;
  131. -webkit-column-gap: 1em;
  132. column-gap: 1em;
  133. }
  134. .content{
  135. width: 750rpx;
  136. height: max-content;
  137. background-color: #FFFFFF;
  138. box-sizing: border-box;
  139. padding: 27rpx;
  140. overflow: hidden;
  141. .flex{
  142. width: 222rpx;
  143. height: 222rpx;
  144. background-color: #DD6161;
  145. margin: 5rpx;
  146. }
  147. .flex-max{
  148. width: 454rpx;
  149. height: 454rpx;
  150. }
  151. /* float
  152. .item{
  153. width: 222rpx;
  154. height: 222rpx;
  155. background-color: #DD6161;
  156. float: left;
  157. margin: 5rpx;
  158. }
  159. .max-item{
  160. width: 454rpx;
  161. height: 453rpx;
  162. }
  163. */
  164. }
  165. </style>