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

72 lines
1.6 KiB

4 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
3 months ago
4 months ago
4 months ago
4 months ago
3 months ago
4 months ago
4 months ago
3 months ago
4 months ago
3 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 :key="index" v-for="(item, index) in list" :item="item"
  14. @click="$utils.navigateTo('/pages_order/gourmet/gourmetDetail?id=' + item.id)" />
  15. </view>
  16. </view>
  17. </template>
  18. <script>
  19. import mixinsList from '@/mixins/list.js'
  20. import screenSearch from '../components/screen/screenSearch.vue'
  21. import gourmetItem from '../components/list/gourmet/gourmetItem.vue'
  22. export default {
  23. mixins: [mixinsList],
  24. components: {
  25. gourmetItem,
  26. screenSearch,
  27. },
  28. data() {
  29. return {
  30. mixinsListApi: 'getStorePage',
  31. }
  32. },
  33. methods: {
  34. getDataThen(list) {
  35. list.forEach(n => {
  36. n.image = n.image ? n.image.split(',') : []
  37. })
  38. },
  39. clickItem(result) {
  40. this.queryParams = {
  41. pageNo: 1,
  42. pageSize: 10,
  43. }
  44. result.forEach(n => {
  45. this.queryParams[n.name] = n.value
  46. })
  47. this.getData()
  48. },
  49. }
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .page {
  54. padding-bottom: env(safe-area-inset-bottom);
  55. .list {
  56. padding: 0 20rpx;
  57. }
  58. }
  59. .top-bg{
  60. position: absolute;
  61. height: 500rpx;
  62. width: 100%;
  63. background: linear-gradient($uni-color, #fff);
  64. }
  65. </style>