Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
common-templete
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
汤强勇
common-templete
Commits
7b0415b1
Commit
7b0415b1
authored
Oct 30, 2018
by
汤强勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
ef38b147
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
33 deletions
+22
-33
config.index.js
config.index.js
+0
-17
index.vue
src/components/Sidebar/index.vue
+20
-14
index.js
src/router/index.js
+2
-2
No files found.
config.index.js
deleted
100644 → 0
View file @
ef38b147
module
.
exports
=
{
"preProduct"
:
{
"host"
:
"//10.0.16.179:8080"
,
"url"
:
"minapro"
,
"baseUrl"
:
"vue"
},
"product"
:
{
"host"
:
"//wxapp.hotwind.net"
,
"baseUrl"
:
"vue"
,
"url"
:
"minapro"
},
"devProduct"
:
{
"host"
:
"//wxapp.hotwind.net"
,
"baseUrl"
:
"vue"
,
"url"
:
"mina"
}
}
src/components/Sidebar/index.vue
View file @
7b0415b1
<
template
lang=
'pug'
>
.sidebar
.logo
img(':src'="logo")
.item('v-for'="item in menuList" ,':key'="item.id",'@click'='choseMenu(item)')
sidebar-item&attributes({
':icon':'item.ico',
':link':'item.link',
':type':'item.type',
':id':'item.id',
':name':'item.name',
':pid':'item.pid',
':grade':'item.grade',
':sort':'item.sort'
})
.sidebar-wrapper
.sidebar
.logo
img(':src'="logo")
.item('v-for'="item in menuList" ,':key'="item.id",'@click'='choseMenu(item)')
sidebar-item&attributes({
':icon':'item.ico',
':link':'item.link',
':type':'item.type',
':id':'item.id',
':name':'item.name',
':pid':'item.pid',
':grade':'item.grade',
':sort':'item.sort'
})
</
template
>
<
script
>
import
sidebarItem
from
'../sidebarItem'
...
...
@@ -50,6 +51,11 @@ export default {
}
</
script
>
<
style
lang=
"stylus"
scoped
>
.sidebar-wrapper
position
relative
width
70px
height
100px
display
inline-block
.sidebar
position
fixed
left
0
...
...
src/router/index.js
View file @
7b0415b1
...
...
@@ -20,13 +20,13 @@ export default new Router({
component
:
()
=>
import
(
/* web packChunkName: 'wxhome' */
'pages/home'
),
children
:
[
{
path
:
'
/
marketing'
,
path
:
'marketing'
,
name
:
'marketing'
,
component
:
()
=>
import
(
/* webpackChunkName: 'marketing' */
'pages/marketing-center'
)
},
{
path
:
'
/
addmarketing'
,
path
:
'addmarketing'
,
name
:
'addmarketing'
,
component
:
()
=>
import
(
/* webpackChunkName: 'wxlogin' */
'pages/addmarketing'
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment