feat: 会员中心 hgcloud 主题初始化 + drone 部署步骤
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
- 解压官方默认主题 default_yfMBA.tar.gz 到 clientarea/hgcloud/ - .gitignore 排除压缩包和临时解压目录 - drone 新增步骤: 同步 hgcloud 到 /clientarea/template/pc/
This commit is contained in:
38
clientarea/hgcloud/components/asideMenu/aliAsideMenu.js
Normal file
38
clientarea/hgcloud/components/asideMenu/aliAsideMenu.js
Normal file
@@ -0,0 +1,38 @@
|
||||
// css 样式依赖common.css
|
||||
const aliAsideMenu = {
|
||||
template: ` <el-aside width="220px">
|
||||
<img class="ali-logo" :src="logo"></img>
|
||||
<div class="menu-list-top">
|
||||
<div class="menu-item" :class="item.id === menuActiveId ? 'menu-active':''" v-for="item in menu1" :key="item.id" @click="toPage(item)">
|
||||
<img :src="item.icon" class="item-img">
|
||||
<span class="item-text">{{item.text}}</span>
|
||||
</div>
|
||||
</div>
|
||||
</el-aside>`,
|
||||
data() {
|
||||
return {
|
||||
activeId: 1,
|
||||
menu1: [
|
||||
{ icon: `${url}/img/common/menu1.png`, text: lang.menu_1, url: "./index.htm", id: 1 },
|
||||
{ icon: `${url}/img/common/menu2.png`, text: lang.menu_4, url: "./account.htm", id: 2 },
|
||||
],
|
||||
logo:`${url}/img/ali/logo.png`
|
||||
}
|
||||
},
|
||||
created() {
|
||||
console.log(location.href);
|
||||
|
||||
},
|
||||
methods: {
|
||||
// 页面跳转
|
||||
toPage(e) {
|
||||
location.href = e.url
|
||||
},
|
||||
},
|
||||
props: {
|
||||
menuActiveId: {
|
||||
type: Number,
|
||||
default: 1
|
||||
}
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user