Search.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <template>
  2. <view class="search-box" @click="goPage('/pagesT/search/index')">
  3. <view class="search-in" :style="{ textAlign: modelData.textStyle, borderRadius: modelData.boxStyle === 3 ? '80rpx' : modelData.boxStyle === 2 ? '10rpx' : '0' }">
  4. <text class="ibonfont ibonsousuo1 primary-color"></text>
  5. <text>{{ modelData.tipText }}</text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. props: {
  12. fixed: {
  13. type: Boolean,
  14. default: false
  15. },
  16. modelData: {
  17. type: Object,
  18. default: () => {
  19. return {
  20. tipText: '请输入关键词',
  21. boxStyle: '1',
  22. textStyle: 'center'
  23. };
  24. }
  25. }
  26. }
  27. };
  28. </script>
  29. <style lang="scss">
  30. .search-box {
  31. padding: 20upx 0;
  32. .search-in {
  33. background: #fff;
  34. width: 710upx;
  35. margin: 0 auto;
  36. height: 70upx;
  37. line-height: 70upx;
  38. font-size: 24upx;
  39. color: #999;
  40. font-weight: 300;
  41. padding: 0 20upx;
  42. border-radius: 10upx;
  43. .ibonfont {
  44. vertical-align: middle;
  45. margin-right: 10upx;
  46. }
  47. }
  48. }
  49. .nav-center {
  50. padding: 16upx 0;
  51. color: #9c9c9c;
  52. text-align: left;
  53. .like-input {
  54. width: 540upx;
  55. /* #ifdef APP-PLUS||H5 */
  56. margin: 0 auto;
  57. /* #endif */
  58. /* #ifdef MP */
  59. margin-left: 10upx;
  60. /* #endif */
  61. background: #fff;
  62. height: 56upx;
  63. line-height: 56upx;
  64. border-radius: 56upx;
  65. font-size: 20upx;
  66. .icon-sousuo {
  67. font-size: 24upx;
  68. padding-left: 23upx;
  69. padding-right: 13upx;
  70. vertical-align: middle;
  71. }
  72. span {
  73. font-weight: 300;
  74. vertical-align: middle;
  75. }
  76. }
  77. }
  78. </style>