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

59 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="getData"
  9. @clear="getData"
  10. @custom="getData"
  11. v-model="queryParams.name"
  12. showAction="false"></uv-search>
  13. </view>
  14. <view class="novel-list">
  15. <novel-item v-for="(item, index) in list"
  16. @click="navigateToDetail(item.id)"
  17. :key="index" :book="item" />
  18. </view>
  19. </view>
  20. </template>
  21. <script>
  22. import novelItem from '@/components/novel/novelItem.vue'
  23. import mixinsList from '@/mixins/list.js'
  24. export default {
  25. mixins: [mixinsList],
  26. components: {
  27. novelItem,
  28. },
  29. data() {
  30. return {
  31. mixinsListApi : 'getRecommendList',
  32. }
  33. },
  34. methods: {
  35. }
  36. }
  37. </script>
  38. <style scoped lang="scss">
  39. .search {
  40. background-color: #fff;
  41. border-radius: 40rpx;
  42. display: flex;
  43. padding: 20rpx;
  44. margin: 20rpx;
  45. :deep(.uv-search__content) {
  46. box-shadow: 0 5rpx 15rpx rgba(0, 0, 0, 0.1);
  47. }
  48. }
  49. .novel-list{
  50. padding: 20rpx;
  51. }
  52. </style>