|
@ -2,13 +2,23 @@ |
|
|
<div class="head"> |
|
|
<div class="head"> |
|
|
<img @click="jumUrl('/')" alt class="logo-img" src="@/assets/logo.png" style="cursor: pointer" /> |
|
|
<img @click="jumUrl('/')" alt class="logo-img" src="@/assets/logo.png" style="cursor: pointer" /> |
|
|
<div class="li-box"> |
|
|
<div class="li-box"> |
|
|
<a-dropdown :disabled="item.children.length > 0 ? false : true" :key="a" class="list-down" v-for="(item, a) in list"> |
|
|
<a-dropdown |
|
|
|
|
|
:disabled="item.children.length > 0 ? false : true" |
|
|
|
|
|
:key="a" |
|
|
|
|
|
class="list-down" |
|
|
|
|
|
v-for="(item, a) in list" |
|
|
|
|
|
> |
|
|
<a @click="jumUrl(item.url)" class="ant-dropdown-link"> |
|
|
<a @click="jumUrl(item.url)" class="ant-dropdown-link"> |
|
|
{{ item.name }} |
|
|
{{ item.name }} |
|
|
<a-icon type="down" v-show="item.children.length > 0" /> |
|
|
<a-icon type="down" v-show="item.children.length > 0" /> |
|
|
</a> |
|
|
</a> |
|
|
<a-menu slot="overlay"> |
|
|
<a-menu slot="overlay"> |
|
|
<a-menu-item :key="b" style="text-align: center" v-for="(con, b) in item.children"> |
|
|
<a-menu-item |
|
|
|
|
|
:key="b" |
|
|
|
|
|
class="px-6 py-3" |
|
|
|
|
|
style="text-align: center" |
|
|
|
|
|
v-for="(con, b) in item.children" |
|
|
|
|
|
> |
|
|
<a @click="jumUrl(con.url)">{{ con.title }}</a> |
|
|
<a @click="jumUrl(con.url)">{{ con.title }}</a> |
|
|
</a-menu-item> |
|
|
</a-menu-item> |
|
|
</a-menu> |
|
|
</a-menu> |
|
@ -19,7 +29,12 @@ |
|
|
<template slot="title"> |
|
|
<template slot="title"> |
|
|
<span>点击查看购物车!</span> |
|
|
<span>点击查看购物车!</span> |
|
|
</template> |
|
|
</template> |
|
|
<a-icon @click="$router.push('/Cart')" class="icon-head baseColor" style="right: 100px" type="shopping-cart" /> |
|
|
<a-icon |
|
|
|
|
|
@click="$router.push('/Cart')" |
|
|
|
|
|
class="icon-head baseColor" |
|
|
|
|
|
style="right: 100px" |
|
|
|
|
|
type="shopping-cart" |
|
|
|
|
|
/> |
|
|
</a-tooltip> |
|
|
</a-tooltip> |
|
|
<router-link tag="span" to="/login"> |
|
|
<router-link tag="span" to="/login"> |
|
|
<a-icon class="icon-head" style="right: 50px" type="user" /> |
|
|
<a-icon class="icon-head" style="right: 50px" type="user" /> |
|
|