Commit c5f800e7 authored by wdy's avatar wdy

商铺接口

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