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

75 lines
1.4 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
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="店铺" leftClick @leftClick="$utils.navigateBack" />
  4. <view
  5. style="padding: 10rpx 20rpx;">
  6. <uv-search
  7. bgColor="#fff"
  8. @search="getData"
  9. @custom="getData"
  10. searchIconSize="30rpx"
  11. placeholder="请输入搜索关键字..."
  12. v-model="title"></uv-search>
  13. </view>
  14. <view class="">
  15. <screenRen
  16. @clickItem="clickItem"/>
  17. </view>
  18. <view class="list">
  19. <gourmetItem
  20. :key="index"
  21. v-for="(item, index) in list"
  22. :item="item"
  23. @click="$utils.navigateTo('/pages_order/gourmet/gourmetDetail?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 gourmetItem from '../components/list/gourmet/gourmetItem.vue'
  32. export default {
  33. mixins: [mixinsList],
  34. components : {
  35. gourmetItem,
  36. screenRen,
  37. },
  38. data() {
  39. return {
  40. mixinsListApi : 'getStorePage',
  41. }
  42. },
  43. methods: {
  44. getDataThen(list){
  45. list.forEach(n => {
  46. n.image = n.image ? n.image.split(',') : []
  47. })
  48. },
  49. clickItem(result){
  50. this.queryParams = {
  51. pageNo: 1,
  52. pageSize: 10,
  53. }
  54. result.forEach(n => {
  55. this.queryParams[n.name] = n.value
  56. })
  57. this.getData()
  58. },
  59. }
  60. }
  61. </script>
  62. <style scoped lang="scss">
  63. .page{
  64. padding-bottom: env(safe-area-inset-bottom);
  65. .list{
  66. padding: 0 20rpx;
  67. }
  68. }
  69. </style>