小说小程序前端代码仓库(小程序)
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.

58 lines
1.1 KiB

  1. <template>
  2. <view class="page">
  3. <navbar title="搜素" leftClick @leftClick="$utils.navigateBack" />
  4. <view class="search">
  5. <uv-search bgColor="#ffffff"
  6. placeholder="搜索"
  7. inputAlign="left"
  8. @search="handleSearch"
  9. v-model="keyword"
  10. @change="searchChange"
  11. showAction="false"></uv-search>
  12. </view>
  13. <view class="novel-list">
  14. <novel-item v-for="(item, index) in list"
  15. @click="navigateToDetail(item.id)"
  16. :key="index" :book="item" />
  17. </view>
  18. </view>
  19. </template>
  20. <script>
  21. import novelItem from '@/components/novel/novelItem.vue'
  22. import mixinsList from '@/mixins/list.js'
  23. export default {
  24. mixins: [mixinsList],
  25. components: {
  26. novelItem,
  27. },
  28. data() {
  29. return {
  30. mixinsListApi : 'getRecommendList',
  31. }
  32. },
  33. methods: {
  34. }
  35. }
  36. </script>
  37. <style scoped lang="scss">
  38. .search {
  39. background-color: #fff;
  40. border-radius: 40rpx;
  41. display: flex;
  42. padding: 20rpx;
  43. margin: 20rpx;
  44. :deep(.uv-search__content) {
  45. box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.1);
  46. }
  47. }
  48. .novel-list{
  49. padding: 20rpx;
  50. }
  51. </style>