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

<template>
<view class="page pageList">
<navbar title="店铺" leftClick @leftClick="$utils.navigateBack" />
<view
style="padding: 10rpx 20rpx;">
<uv-search
bgColor="#fff"
@search="getData"
@custom="getData"
searchIconSize="30rpx"
placeholder="请输入搜索关键字..."
v-model="title"></uv-search>
</view>
<view class="">
<screenRen
@clickItem="clickItem"/>
</view>
<view class="list">
<gourmetItem
:key="index"
v-for="(item, index) in list"
:item="item"
@click="$utils.navigateTo('/pages_order/gourmet/gourmetDetail?id=' + item.id)"
/>
</view>
</view>
</template>
<script>
import mixinsList from '@/mixins/list.js'
import screenRen from '../components/screen/screenRen.vue'
import gourmetItem from '../components/list/gourmet/gourmetItem.vue'
export default {
mixins: [mixinsList],
components : {
gourmetItem,
screenRen,
},
data() {
return {
mixinsListApi : 'getStorePage',
}
},
methods: {
getDataThen(list){
list.forEach(n => {
n.image = n.image ? n.image.split(',') : []
})
},
clickItem(result){
this.queryParams = {
pageNo: 1,
pageSize: 10,
}
result.forEach(n => {
this.queryParams[n.name] = n.value
})
this.getData()
},
}
}
</script>
<style scoped lang="scss">
.page{
padding-bottom: env(safe-area-inset-bottom);
.list{
padding: 0 20rpx;
}
}
</style>