Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-web-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
lanbaoming
jiedao-web-master
Commits
403f7b36
Commit
403f7b36
authored
Jun 26, 2024
by
lanbaoming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2024-06-26提交
parent
7f82bd13
Changes
6
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
237 additions
and
151 deletions
+237
-151
.env.dev
.env.dev
+2
-1
.env.development
.env.development
+2
-1
index.vue
src/components/RightPanel/index.vue
+12
-8
Navbar.vue
src/layout/components/Navbar.vue
+36
-23
index.vue
src/layout/components/Sidebar/index.vue
+9
-6
delivery.vue
src/views/jiedao/profile/delivery.vue
+176
-112
No files found.
.env.dev
View file @
403f7b36
...
...
@@ -2,6 +2,7 @@
NODE_ENV = 'development'
# base api
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
#VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
VUE_APP_BASE_API = 'http://127.0.0.1:48080'
VUE_APP_HOME_API = 'https://www.groupage.cn'
\ No newline at end of file
.env.development
View file @
403f7b36
...
...
@@ -3,6 +3,7 @@ ENV = 'development'
NODE_ENV = 'development'
# base api
VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
#VUE_APP_BASE_API = 'https://api.jd.jdshangmen.com'
VUE_APP_BASE_API = 'http://127.0.0.1:48080'
VUE_APP_HOME_API = 'https://www.groupage.cn'
src/components/RightPanel/index.vue
View file @
403f7b36
<
template
>
<div
ref=
"rightPanel"
:class=
"
{
show:show
}" class="rightPanel-container">
<div
ref=
"rightPanel"
:class=
"
{
show: show
}" class="rightPanel-container">
<div
class=
"rightPanel-background"
/>
<div
class=
"rightPanel"
>
<div
class=
"handle-button"
:style=
"
{'top':buttonTop+'px','background-color':theme}" @click="show=!show">
<i
:class=
"show?'el-icon-close':'el-icon-setting'"
/>
<div
class=
"handle-button"
:style=
"
{ top: buttonTop + 'px', 'background-color': theme }"
@click="show = !show"
>
<i
:class=
"show ? 'el-icon-close' : 'el-icon-setting'"
/>
</div>
<div
class=
"rightPanel-items"
>
<slot
/>
...
...
@@ -90,8 +94,8 @@ export default {
top
:
0
;
left
:
0
;
opacity
:
0
;
transition
:
opacity
.3s
cubic-bezier
(
.7
,
.3
,
.1
,
1
);
background
:
rgba
(
0
,
0
,
0
,
.2
);
transition
:
opacity
0
.3s
cubic-bezier
(
0
.7
,
0
.3
,
0
.1
,
1
);
background
:
rgba
(
0
,
0
,
0
,
0
.2
);
z-index
:
-1
;
}
...
...
@@ -102,15 +106,15 @@ export default {
position
:
fixed
;
top
:
0
;
right
:
0
;
box-shadow
:
0px
0px
15px
0px
rgba
(
0
,
0
,
0
,
.05
);
transition
:
all
.25s
cubic-bezier
(
.7
,
.3
,
.1
,
1
);
box-shadow
:
0px
0px
15px
0px
rgba
(
0
,
0
,
0
,
0
.05
);
transition
:
all
0
.25s
cubic-bezier
(
0
.7
,
0
.3
,
0
.1
,
1
);
transform
:
translate
(
100%
);
background
:
#fff
;
z-index
:
40000
;
}
.show
{
transition
:
all
.3s
cubic-bezier
(
.7
,
.3
,
.1
,
1
);
transition
:
all
0
.3s
cubic-bezier
(
0
.7
,
0
.3
,
0
.1
,
1
);
.rightPanel-background
{
z-index
:
20000
;
...
...
src/layout/components/Navbar.vue
View file @
403f7b36
<
template
>
<div
class=
"navbar"
>
<hamburger
id=
"hamburger-container"
:is-active=
"sidebar.opened"
class=
"hamburger-container"
@
toggleClick=
"toggleSideBar"
/>
<hamburger
id=
"hamburger-container"
:is-active=
"sidebar.opened"
class=
"hamburger-container"
@
toggleClick=
"toggleSideBar"
/>
<breadcrumb
id=
"breadcrumb-container"
class=
"breadcrumb-container"
/>
<div
class=
"right-menu"
>
<template
v-if=
"device
!==
'mobile'"
>
<template
v-if=
"device
!==
'mobile'"
>
<search
id=
"header-search"
class=
"right-menu-item"
/>
<error-log
class=
"errLog-container right-menu-item hover-effect"
/>
<screenfull
id=
"screenfull"
class=
"right-menu-item hover-effect"
/>
<el-tooltip
:content=
"$t('navbar.size')"
effect=
"dark"
placement=
"bottom"
>
<el-tooltip
:content=
"$t('navbar.size')"
effect=
"dark"
placement=
"bottom"
>
<size-select
id=
"size-select"
class=
"right-menu-item hover-effect"
/>
</el-tooltip>
<lang-select
class=
"right-menu-item hover-effect"
/>
</
template
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<el-dropdown
class=
"avatar-container right-menu-item hover-effect"
trigger=
"click"
>
<div
class=
"avatar-wrapper"
>
<img
:src=
"avatar
+
'?imageView2/1/w/80/h/80'"
class=
"user-avatar"
>
<img
:src=
"avatar
+
'?imageView2/1/w/80/h/80'"
class=
"user-avatar"
>
<i
class=
"el-icon-caret-bottom"
/>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<router-link
to=
"/profile/index"
>
<el-dropdown-item>
{{ $t(
'navbar.profile'
) }}
{{ $t(
"navbar.profile"
) }}
</el-dropdown-item>
</router-link>
<router-link
to=
"/"
>
<el-dropdown-item>
{{ $t(
'navbar.dashboard'
) }}
{{ $t(
"navbar.dashboard"
) }}
</el-dropdown-item>
</router-link>
<a
target=
"_blank"
href=
"https://github.com/PanJiaChen/vue-element-admin/"
>
<a
target=
"_blank"
href=
"https://github.com/PanJiaChen/vue-element-admin/"
>
<el-dropdown-item>
{{ $t(
'navbar.github'
) }}
{{ $t(
"navbar.github"
) }}
</el-dropdown-item>
</a>
<a
target=
"_blank"
href=
"https://panjiachen.github.io/vue-element-admin-site/#/"
>
<a
target=
"_blank"
href=
"https://panjiachen.github.io/vue-element-admin-site/#/"
>
<el-dropdown-item>
Docs
</el-dropdown-item>
</a>
<el-dropdown-item
divided
@
click.native=
"logout"
>
<span
style=
"display:
block;"
>
{{ $t('navbar.logOut'
) }}
</span>
<span
style=
"display:
block"
>
{{ $t("navbar.logOut"
) }}
</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
...
...
@@ -74,11 +91,7 @@ export default {
Search
},
computed
:
{
...
mapGetters
([
'
sidebar
'
,
'
avatar
'
,
'
device
'
])
...
mapGetters
([
'
sidebar
'
,
'
avatar
'
,
'
device
'
])
},
methods
:
{
toggleSideBar
()
{
...
...
@@ -98,18 +111,18 @@ export default {
overflow
:
hidden
;
position
:
relative
;
background
:
#fff
;
box-shadow
:
0
1px
4px
rgba
(
0
,
21
,
41
,
.
08
);
box-shadow
:
0
1px
4px
rgba
(
0
,
21
,
41
,
0
.08
);
.hamburger-container
{
line-height
:
46px
;
height
:
100%
;
float
:
left
;
cursor
:
pointer
;
transition
:
background
.3s
;
-webkit-tap-highlight-color
:transparent
;
transition
:
background
0
.3s
;
-webkit-tap-highlight-color
:
transparent
;
&
:hover
{
background
:
rgba
(
0
,
0
,
0
,
.025
)
background
:
rgba
(
0
,
0
,
0
,
0
.025
);
}
}
...
...
@@ -141,10 +154,10 @@ export default {
&
.hover-effect
{
cursor
:
pointer
;
transition
:
background
.3s
;
transition
:
background
0
.3s
;
&
:hover
{
background
:
rgba
(
0
,
0
,
0
,
.025
)
background
:
rgba
(
0
,
0
,
0
,
0
.025
);
}
}
}
...
...
src/layout/components/Sidebar/index.vue
View file @
403f7b36
<
template
>
<div
:class=
"
{
'has-logo':showLogo
}">
<div
:class=
"
{
'has-logo': showLogo
}">
<logo
v-if=
"showLogo"
:collapse=
"isCollapse"
/>
<el-scrollbar
wrap-class=
"scrollbar-wrapper"
>
<el-menu
...
...
@@ -12,7 +12,12 @@
:collapse-transition=
"false"
mode=
"vertical"
>
<sidebar-item
v-for=
"route in permission_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
<sidebar-item
v-for=
"route in permission_routes"
:key=
"route.path"
:item=
"route"
:base-path=
"route.path"
/>
</el-menu>
</el-scrollbar>
</div>
...
...
@@ -20,6 +25,7 @@
<
script
>
import
{
mapGetters
}
from
'
vuex
'
import
Logo
from
'
./Logo
'
import
SidebarItem
from
'
./SidebarItem
'
import
variables
from
'
@/styles/variables.scss
'
...
...
@@ -27,10 +33,7 @@ import variables from '@/styles/variables.scss'
export
default
{
components
:
{
SidebarItem
,
Logo
},
computed
:
{
...
mapGetters
([
'
permission_routes
'
,
'
sidebar
'
]),
...
mapGetters
([
'
permission_routes
'
,
'
sidebar
'
]),
activeMenu
()
{
const
route
=
this
.
$route
const
{
meta
,
path
}
=
route
...
...
src/views/jiedao/profile/delivery.vue
View file @
403f7b36
This diff is collapsed.
Click to expand it.
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