Commit 434187bd authored by xinzhedeai's avatar xinzhedeai

add: 商户列表接口条件查询

parent 8f230e94
......@@ -48,7 +48,7 @@
<div class="wrapper">
<!-- 商户头部信息 -->
<div class="header">
<van-search v-model="unitName" show-action placeholder="请输入商家关键词" @search="onSearch">
<van-search v-model="merName" show-action placeholder="请输入商家关键词" @search="onSearch">
<template #action>
<div @click="onSearch"></div>
</template>
......
......@@ -7,7 +7,7 @@ window.addEventListener('load', function () {
el: '#app',
data() {
return {
unitName: '',
merName: '',
value: '',
list: [],
loading: false,
......@@ -22,12 +22,14 @@ window.addEventListener('load', function () {
},
methods: {
onSearch() {
console.log('xxxx', this.unitName)
console.log('xxxx', this.merName)
this.getList()
},
viewDetail(itme) {
let param = {
merId: itme.id,
unitName: itme.unitName,
merName: itme.merName,
smallPlaceTypeName: itme.smallPlaceTypeName,
pageName: '_shanghu_list',
}
......@@ -51,6 +53,7 @@ window.addEventListener('load', function () {
pageNum: this.page++, // 每次请求增加下一页
pageSize: this.size,
sort: 'lawId,desc',
merName: this.merName || '',
},
},
(res) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment