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

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