瑶都万能墙
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.

69 lines
1.3 KiB

8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
  1. <template>
  2. <view class="page pageList">
  3. <navbar title="景点" leftClick @leftClick="$utils.navigateBack" />
  4. <view
  5. style="padding: 10rpx 30rpx;">
  6. <uv-search
  7. bgColor="#fff"
  8. @search="getData"
  9. :showAction="false"
  10. searchIconSize="30rpx"
  11. placeholder="请输入搜索关键字..."
  12. v-model="queryParams.title"></uv-search>
  13. </view>
  14. <view class="">
  15. <screenRen
  16. @clickItem="clickItem"/>
  17. </view>
  18. <view class="list">
  19. <scenicSpotItem
  20. :key="index"
  21. v-for="(item, index) in list"
  22. :item="item"
  23. @click="$utils.navigateTo('/pages_order/scenicSpot/scenicSpotDetail?id=' + item.id)"
  24. />
  25. </view>
  26. </view>
  27. </template>
  28. <script>
  29. import mixinsList from '@/mixins/list.js'
  30. import screenRen from '../components/screen/screenRen.vue'
  31. import scenicSpotItem from '../components/list/scenicSpot/scenicSpotItem.vue'
  32. export default {
  33. mixins: [mixinsList],
  34. components : {
  35. scenicSpotItem,
  36. screenRen,
  37. },
  38. data() {
  39. return {
  40. mixinsListApi : 'getScenicPage',
  41. }
  42. },
  43. methods: {
  44. clickItem(result){
  45. this.queryParams = {
  46. pageNo: 1,
  47. pageSize: 10,
  48. }
  49. result.forEach(n => {
  50. this.queryParams[n.name] = n.value
  51. })
  52. this.getData()
  53. },
  54. }
  55. }
  56. </script>
  57. <style scoped lang="scss">
  58. .page{
  59. .list{
  60. padding: 0 20rpx;
  61. }
  62. }
  63. </style>