diff --git a/buyer/src/App.vue b/buyer/src/App.vue index 8130cf7de..7affed580 100644 --- a/buyer/src/App.vue +++ b/buyer/src/App.vue @@ -23,7 +23,9 @@ export default { storage.setItem("siteIcon", data.buyerSideIcon); this.$store.commit("SET_SITENAME", data.siteName); this.$store.commit("SET_LOGOIMG", data.buyerSideLogo); - window.document.title = data.siteName; + if (this.$route.meta.title === undefined) { + window.document.title = data.siteName; + } let link = document.querySelector("link[rel*='icon']") || document.createElement("link"); diff --git a/buyer/src/api/shopentry.js b/buyer/src/api/shopentry.js index 0e5fb90ef..18aefdc90 100644 --- a/buyer/src/api/shopentry.js +++ b/buyer/src/api/shopentry.js @@ -42,6 +42,15 @@ export function applyThird (params) { }) } +// 店铺信息(含评分) +export function getStoreById (id) { + return request({ + url: `/buyer/store/store/store/${id}`, + needToken: false, + method: Method.GET + }) +} + // 店铺详情 export function getDetailById (id) { return request({ diff --git a/buyer/src/components/Search.vue b/buyer/src/components/Search.vue index 96d6ffc42..ab96835f8 100644 --- a/buyer/src/components/Search.vue +++ b/buyer/src/components/Search.vue @@ -7,11 +7,24 @@ size="large" class="search-input" placeholder="输入你想查找的商品" + @focus="openPanel" + @input="queueSuggest" @keyup.enter="search" />
+
+ +