index.vue 634 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <template>
  2. <view class="content_search u-border-bottom">
  3. <view @tap="clickInput">
  4. <u-search placeholder="搜索" shape="square" :show-action="false" :bg-color="'#ffffff'" :disabled="true"></u-search>
  5. </view>
  6. </view>
  7. </template>
  8. <script>
  9. export default {
  10. props: {
  11. searchType: {
  12. type: Number,
  13. default() {
  14. return 0;
  15. }
  16. },
  17. },
  18. data() {
  19. return {
  20. };
  21. },
  22. methods: {
  23. clickInput() {
  24. this.$u.route({
  25. url:"pageD/search/search",
  26. params: {searchType: this.searchType}
  27. })
  28. }
  29. }
  30. };
  31. </script>
  32. <style lang="scss" scoped>
  33. .content_search {
  34. padding: 16rpx;
  35. background-color: #F6F7F8;
  36. }
  37. </style>