Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1
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
吴迪
gs1
Commits
01da4153
Commit
01da4153
authored
Sep 30, 2021
by
林家欣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 地方编码分支机构切图50%
parent
f0a3a282
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
237 additions
and
24 deletions
+237
-24
main.scss
src/assets/css/main.scss
+6
-2
footer.vue
src/components/layout/footer.vue
+2
-2
main.vue
src/components/main.vue
+7
-2
index.js
src/router/index.js
+19
-9
Branch.vue
src/views/Org/Branch.vue
+123
-0
index.vue
src/views/Org/index.vue
+33
-8
left.vue
src/views/comps/left.vue
+46
-0
vue.config.js
vue.config.js
+1
-1
No files found.
src/assets/css/main.scss
View file @
01da4153
...
@@ -3,4 +3,8 @@
...
@@ -3,4 +3,8 @@
@import
"./_style.scss"
;
@import
"./_style.scss"
;
@import
"./_icon.scss"
;
@import
"./_icon.scss"
;
@import
"./_mixin.scss"
;
@import
"./_mixin.scss"
;
@import
"./_base.scss"
;
@import
"./_base.scss"
;
\ No newline at end of file
@import
"../../../node_modules/bootstrap/scss/bootstrap"
;
// @import "../../../node_modules/bootstrap/scss/functions";
// @import "../../../node_modules/bootstrap/scss/variables";
//
@
import
"../../../node_modules/bootstrap/scss/mixins"
;
\ No newline at end of file
src/components/layout/footer.vue
View file @
01da4153
...
@@ -71,9 +71,8 @@ export default {
...
@@ -71,9 +71,8 @@ export default {
.foot
{
.foot
{
background
:
#fff
;
background
:
#fff
;
.foot-cate
{
.foot-cate
{
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
font-weight
:
500
;
color
:
#0
e2c6b
;
color
:
#0
E2C6B
;
font-size
:
16px
;
font-size
:
16px
;
margin-bottom
:
10px
;
margin-bottom
:
10px
;
margin-top
:
30px
;
margin-top
:
30px
;
...
@@ -98,6 +97,7 @@ export default {
...
@@ -98,6 +97,7 @@ export default {
.link
{
.link
{
div
{
div
{
line-height
:
30px
;
line-height
:
30px
;
color
:
#0E2C6B
;
}
}
}
}
.qrcode
{
.qrcode
{
...
...
src/components/main.vue
View file @
01da4153
<
template
>
<
template
>
<div>
<div>
<Header></Header>
<Header></Header>
<router-view></router-view>
<div
class=
"router-view"
>
<router-view></router-view>
</div>
<Footer></Footer>
<Footer></Footer>
</div>
</div>
</
template
>
</
template
>
...
@@ -27,5 +29,8 @@ export default {
...
@@ -27,5 +29,8 @@ export default {
};
};
</
script
>
</
script
>
<
style
lang=
"scss"
>
<
style
lang=
"scss"
scoped
>
.router-view
{
padding
:
20px
0
;
}
</
style
>
</
style
>
src/router/index.js
View file @
01da4153
...
@@ -6,7 +6,7 @@ Vue.use(VueRouter)
...
@@ -6,7 +6,7 @@ Vue.use(VueRouter)
// 解决首页路由跳转的时候同一个路由多次添加,未跳转完成就重复跳转
// 解决首页路由跳转的时候同一个路由多次添加,未跳转完成就重复跳转
const
routerPush
=
VueRouter
.
prototype
.
push
const
routerPush
=
VueRouter
.
prototype
.
push
VueRouter
.
prototype
.
push
=
function
push
(
to
)
{
VueRouter
.
prototype
.
push
=
function
push
(
to
)
{
return
routerPush
.
call
(
this
,
to
).
catch
(
err
=>
err
)
return
routerPush
.
call
(
this
,
to
).
catch
(
err
=>
err
)
}
}
...
@@ -29,22 +29,32 @@ const routes = [
...
@@ -29,22 +29,32 @@ const routes = [
meta
:
{
meta
:
{
name
:
"机构概况"
,
name
:
"机构概况"
,
},
},
component
:
()
=>
import
(
"@/views/Org/index"
)
component
:
()
=>
import
(
"@/views/Org/index"
),
children
:
[
{
path
:
"/Org/Branch"
,
name
:
"Branch"
,
meta
:
{
name
:
"地方编码分支机构"
,
},
component
:
()
=>
import
(
"@/views/Org/Branch.vue"
)
}
],
}
}
]
]
},
},
{
//
{
path
:
"/"
,
//
path: "/",
redirect
:
"/login"
//
redirect: "/login"
},
//
},
{
{
path
:
"*"
,
path
:
"*"
,
redirect
:
"/404"
redirect
:
"/404"
},
},
{
{
path
:
"/404"
,
path
:
"/404"
,
name
:
"404"
,
name
:
"404"
,
component
:()
=>
import
(
"@/views/User/404"
)
component
:
()
=>
import
(
"@/views/User/404"
)
},
},
{
{
path
:
"/login"
,
path
:
"/login"
,
...
...
src/views/Org/Branch.vue
0 → 100644
View file @
01da4153
<
template
>
<div
class=
"branch"
>
<div
class=
"cate-name"
>
地方编码分支机构
</div>
<div
class=
"alert alert-danger d-flex align-items-center"
role=
"alert"
>
<svg
xmlns=
"http://www.w3.org/2000/svg"
class=
"bi flex-shrink-0 me-2"
width=
"16"
height=
"19"
role=
"img"
aria-label=
"Danger:"
fill=
"currentColor"
viewBox=
"0 0 16 16"
>
<path
d=
"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z"
/>
</svg>
<div>
在地为下列市或直辖市或自治区的企业,办理条码申办及相关业务时,请联系以下编码分支机构:
</div>
</div>
<ul
class=
"nav nav-tabs"
id=
"myTab"
role=
"tablist"
>
<li
class=
"nav-item"
role=
"presentation"
>
<button
class=
"nav-link active"
id=
"home-tab"
data-bs-toggle=
"tab"
data-bs-target=
"#home"
type=
"button"
role=
"tab"
aria-controls=
"home"
aria-selected=
"true"
>
Home
</button>
</li>
<li
class=
"nav-item"
role=
"presentation"
>
<button
class=
"nav-link"
id=
"profile-tab"
data-bs-toggle=
"tab"
data-bs-target=
"#profile"
type=
"button"
role=
"tab"
aria-controls=
"profile"
aria-selected=
"false"
>
Profile
</button>
</li>
<li
class=
"nav-item"
role=
"presentation"
>
<button
class=
"nav-link"
id=
"contact-tab"
data-bs-toggle=
"tab"
data-bs-target=
"#contact"
type=
"button"
role=
"tab"
aria-controls=
"contact"
aria-selected=
"false"
>
Contact
</button>
</li>
</ul>
<div
class=
"tab-content"
id=
"myTabContent"
>
<div
class=
"tab-pane fade show active"
id=
"home"
role=
"tabpanel"
aria-labelledby=
"home-tab"
>
11
</div>
<div
class=
"tab-pane fade"
id=
"profile"
role=
"tabpanel"
aria-labelledby=
"profile-tab"
>
222
</div>
<div
class=
"tab-pane fade"
id=
"contact"
role=
"tabpanel"
aria-labelledby=
"contact-tab"
>
33
</div>
</div>
</div>
</
template
>
<
script
>
export
default
{
data
()
{
return
{};
},
created
()
{
console
.
log
(
this
.
$route
,
"this.$route"
);
},
};
</
script
>
<
style
lang=
"scss"
scoped
>
.branch
{
.cate-name
{
color
:
#454545
;
font-size
:
18px
;
}
.alert
{
margin
:
30px
0
20px
0
;
font-size
:
14px
;
}
.alert-danger
{
@include
alert-variant(#fef1ec,
none,
#f26335);
}
}
</
style
>
\ No newline at end of file
src/views/Org/index.vue
View file @
01da4153
<
template
>
<
template
>
<div>
<div
class=
"org container"
>
ORG
<nav
style=
"--bs-breadcrumb-divider: '>'"
aria-label=
"breadcrumb"
>
<ol
class=
"breadcrumb"
>
<li
class=
"breadcrumb-item"
><a
href=
"#"
>
首页
</a></li>
<li
class=
"breadcrumb-item"
><a
href=
"#"
>
机构概况
</a></li>
<li
class=
"breadcrumb-item active"
aria-current=
"page"
>
地方编码分支机构
</li>
</ol>
</nav>
<div
class=
"row"
>
<div
class=
"col-lg-3"
>
<left/>
</div>
<div
class=
"col-lg-9"
>
<router-view></router-view>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
<
script
>
<
script
>
import
left
from
'../comps/left.vue'
export
default
{
export
default
{
components
:
{
left
,
},
data
()
{
data
()
{
return
{
return
{};
}
},
},
created
()
{
created
()
{
console
.
log
(
this
.
$route
,
'this.$route'
);
console
.
log
(
this
.
$route
,
"this.$route"
);
},
},
}
}
;
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.org
{
.breadcrumb{
margin-bottom
:
20px
;
a{
color
:
#00799E
;
}
}
}
</
style
>
</
style
>
\ No newline at end of file
src/views/comps/left.vue
0 → 100644
View file @
01da4153
<
template
>
<div
class=
"left"
>
<div
class=
"list-group"
>
<a
href=
"#"
class=
"list-group-item list-group-item-action"
aria-current=
"true"
>
中心简介
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action"
>
中心领导
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action"
>
内设机构
</a>
<a
href=
"#"
class=
"list-group-item list-group-item-action"
>
质检中心/协会/杂志社/标委会/其他
</a
>
<a
class=
"list-group-item list-group-item-action active"
>
地方编码分支机构
</a
>
<a
class=
"list-group-item list-group-item-action"
>
国际物品编码组织(GS1)
</a
>
<a
class=
"list-group-item list-group-item-action"
>
国际物品编码组织(GS1)成员网站
</a
>
<a
class=
"list-group-item list-group-item-action"
>
质量管理体系
</a>
</div>
</div>
</
template
>
<
style
lang=
"scss"
scoped
>
.left
{
background
:
#fff
;
.list-group
{
border-radius
:
0
;
.list-group-item
{
border
:
0
;
font-size
:
14px
;
&.active
{
background
:
rgba
(
242
,
99
,
53
,
0.1
);
color
:
#f26335
;
border-right
:
3px
solid
#f26335
;
}
}
}
}
</
style
>
\ No newline at end of file
vue.config.js
View file @
01da4153
...
@@ -32,7 +32,7 @@ module.exports = {
...
@@ -32,7 +32,7 @@ module.exports = {
camelCase
:
true
,
camelCase
:
true
,
},
},
sass
:
{
sass
:
{
data
:
`@import "@/assets/css/
_style
.scss";`
data
:
`@import "@/assets/css/
main
.scss";`
}
}
}
}
},
},
...
...
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