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

58 lines
1.1 KiB

4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 months ago
4 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="list">
  15. <gourmetItem
  16. :key="index"
  17. v-for="(item, index) in list"
  18. :item="item"
  19. @click="$utils.navigateTo('/pages_order/gourmet/gourmetDetail?id=' + item.id)"
  20. />
  21. </view>
  22. </view>
  23. </template>
  24. <script>
  25. import mixinsList from '@/mixins/list.js'
  26. import gourmetItem from '../components/list/gourmet/gourmetItem.vue'
  27. export default {
  28. mixins: [mixinsList],
  29. components : {
  30. gourmetItem,
  31. },
  32. data() {
  33. return {
  34. mixinsListApi : 'getStorePage',
  35. }
  36. },
  37. methods: {
  38. getDataThen(list){
  39. list.forEach(n => {
  40. n.image = n.image ? n.image.split(',') : []
  41. // n.details = n.details ? n.details.split(',') : []
  42. })
  43. },
  44. }
  45. }
  46. </script>
  47. <style scoped lang="scss">
  48. .page{
  49. .list{
  50. padding: 0 20rpx;
  51. }
  52. }
  53. </style>