template-book-Search.vue 832 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <template>
  2. <view class="book-Search-content" @click="clickGoSearch">
  3. <view class="icon">
  4. <image class="image" src="../../../static/imgs/bookstore/img_search.png" mode="aspectFit"></image>
  5. </view>
  6. <view class="text">请输入名称</view>
  7. </view>
  8. </template>
  9. <script setup lang="ts">
  10. function clickGoSearch() {
  11. uni.navigateTo({
  12. url: '/pagesA/search/search'
  13. })
  14. }
  15. </script>
  16. <style lang="scss">
  17. .book-Search-content{
  18. display: flex;
  19. box-sizing: border-box;
  20. align-items: center;
  21. height: 80rpx;
  22. margin: 15px;
  23. border-radius: 35rpx;
  24. border: 2rpx solid #000000;
  25. background-color: #ffffff;
  26. .icon{
  27. margin: 0 30rpx;
  28. flex-shrink: 0;
  29. width: 53rpx;
  30. height: 53rpx;
  31. .image {
  32. width: 100%;
  33. height: 100%;
  34. }
  35. }
  36. .text{
  37. font-size: 18px;
  38. color: #8F8F8F;
  39. }
  40. }
  41. </style>