Commit c5f800e7 authored by wdy's avatar wdy

商铺接口

parent 06b4ac74
......@@ -103,22 +103,22 @@
url: '/homePage/shop/detail/index?location=' + this.location + '&data=' + encodeURIComponent(data)
})
},
toSearch() {
console.log('点击搜索框')
const baseApi = this.baseApi;
this.$u.get('/shop/mobile/selectShopList?tenantId=' + this.tenantId + '&floor=' + this.floor +"&name=" + this.name)
.then(res => {
console.log('res', res);
let list = res;
for (const index in list) {
const item = list[index];
item.img = baseApi + '/file/getImgStream?idFile=' + item.img
item.position = item.floor + '-' + item.floorNumber
item.name = item.name
}
this.newList = list
})
},
// toSearch() {
// console.log('点击搜索框')
// const baseApi = this.baseApi;
// this.$u.get('/shop/mobile/selectShopList?tenantId=' + this.tenantId + '&floor=' + this.floor +"&name=" + this.name)
// .then(res => {
// console.log('res', res);
// let list = res;
// for (const index in list) {
// const item = list[index];
// item.img = baseApi + '/file/getImgStream?idFile=' + item.img
// item.position = item.floor + '-' + item.floorNumber
// item.name = item.name
// }
// this.newList = list
// })
// },
change(index) {
this.current = index;
console.log('tenantId', this.tenantId)
......
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