index.vue 764 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <template>
  2. <view class="container">
  3. <uni-search-bar class="uni-mt-10" radius="100" placeholder="一直不显示" clearButton="none" cancelButton="none" @confirm="search" />
  4. <text>分类</text>
  5. <text>推荐</text>
  6. <text>悬浮购物车</text>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. data() {
  12. return {};
  13. },
  14. methods: {
  15. search (e) {
  16. console.log(e);
  17. }
  18. }
  19. }
  20. </script>
  21. <style lang="scss" scope>
  22. .search-result {
  23. padding-top: 10px;
  24. padding-bottom: 20px;
  25. text-align: center;
  26. }
  27. .search-result-text {
  28. text-align: center;
  29. font-size: 14px;
  30. color:#666;
  31. }
  32. .example-body {
  33. /* #ifndef APP-NVUE */
  34. display: block;
  35. /* #endif */
  36. padding: 0px;
  37. }
  38. .uni-mt-10 {
  39. margin-top: 20px;
  40. }
  41. </style>