Browse Source

feat: 添加项目logo支持并调整样式

ShangHai_LongXiang
jiannibang 1 year ago
parent
commit
e0d879bc92
  1. 9
      src/components/PublicComponent/PublicComponent.vue

9
src/components/PublicComponent/PublicComponent.vue

@ -12,6 +12,7 @@
<Temperature /> <Temperature />
<Time></Time> <Time></Time>
<SearchBar v-if="path !== '/billboard'" /> <SearchBar v-if="path !== '/billboard'" />
<img v-if="config.projectLogo && config.projectLogo.length" :src="'./static/offline' + config.projectLogo[0]" class="mall-logo" alt="" srcset="" />
<Tabs /> <Tabs />
</template> </template>
@ -33,7 +34,7 @@ const Tabs = defineAsyncComponent(() => import('./Tabs.vue'))
const router = useRouter() const router = useRouter()
const store = useStore() const store = useStore()
const { shop, showSearch, language, path } = storeToRefs(store)
const { shop, showSearch, language, path, config } = storeToRefs(store)
const { resetClickNumber, setLogoutRef, addTotalClick } = useLogout() const { resetClickNumber, setLogoutRef, addTotalClick } = useLogout()
@ -85,6 +86,12 @@ watch(path, nxtPath => {
}) })
</script> </script>
<style> <style>
.mall-logo {
position: absolute;
height: 110px;
top: 32px;
left: 68px;
}
.box { .box {
position: absolute; position: absolute;
left: 0; left: 0;

Loading…
Cancel
Save