Commit 7b0415b1 by 汤强勇

调整

parent 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"
}
}
<template lang='pug'> <template lang='pug'>
.sidebar .sidebar-wrapper
.logo .sidebar
img(':src'="logo") .logo
.item('v-for'="item in menuList" ,':key'="item.id",'@click'='choseMenu(item)') img(':src'="logo")
sidebar-item&attributes({ .item('v-for'="item in menuList" ,':key'="item.id",'@click'='choseMenu(item)')
':icon':'item.ico', sidebar-item&attributes({
':link':'item.link', ':icon':'item.ico',
':type':'item.type', ':link':'item.link',
':id':'item.id', ':type':'item.type',
':name':'item.name', ':id':'item.id',
':pid':'item.pid', ':name':'item.name',
':grade':'item.grade', ':pid':'item.pid',
':sort':'item.sort' ':grade':'item.grade',
}) ':sort':'item.sort'
})
</template> </template>
<script> <script>
import sidebarItem from '../sidebarItem' import sidebarItem from '../sidebarItem'
...@@ -50,6 +51,11 @@ export default { ...@@ -50,6 +51,11 @@ export default {
} }
</script> </script>
<style lang="stylus" scoped> <style lang="stylus" scoped>
.sidebar-wrapper
position relative
width 70px
height 100px
display inline-block
.sidebar .sidebar
position fixed position fixed
left 0 left 0
......
...@@ -20,13 +20,13 @@ export default new Router({ ...@@ -20,13 +20,13 @@ export default new Router({
component: () => import(/* web packChunkName: 'wxhome' */ 'pages/home'), component: () => import(/* web packChunkName: 'wxhome' */ 'pages/home'),
children: [ children: [
{ {
path: '/marketing', path: 'marketing',
name: 'marketing', name: 'marketing',
component: () => component: () =>
import(/* webpackChunkName: 'marketing' */ 'pages/marketing-center') import(/* webpackChunkName: 'marketing' */ 'pages/marketing-center')
}, },
{ {
path: '/addmarketing', path: 'addmarketing',
name: 'addmarketing', name: 'addmarketing',
component: () => component: () =>
import(/* webpackChunkName: 'wxlogin' */ 'pages/addmarketing') import(/* webpackChunkName: 'wxlogin' */ 'pages/addmarketing')
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment