Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sensorConsult
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
zhanglw
sensorConsult
Commits
4b71f8d9
Commit
4b71f8d9
authored
Jul 04, 2023
by
zhanglw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
个人中心首页
parent
b063ee42
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
486 additions
and
2 deletions
+486
-2
mark_pro.png
src/assets/home_images/mark_pro.png
+0
-0
mark_sup.png
src/assets/home_images/mark_sup.png
+0
-0
routers.js
src/router/routers.js
+8
-0
userLogin.vue
src/views/homepage/components/userLogin.vue
+1
-1
userLoginV2.vue
src/views/homepage/components/userLoginV2.vue
+1
-1
userMenus.vue
src/views/homepage/components/userMenus.vue
+86
-0
index.vue
src/views/homepage/console/index.vue
+390
-0
No files found.
src/assets/home_images/mark_pro.png
0 → 100644
View file @
4b71f8d9
500 Bytes
src/assets/home_images/mark_sup.png
0 → 100644
View file @
4b71f8d9
747 Bytes
src/router/routers.js
View file @
4b71f8d9
...
...
@@ -148,6 +148,14 @@ export const constantRouterMap = [
},
hidden
:
true
},
{
path
:
'
/console
'
,
meta
:
{
title
:
'
个人中心
'
,
noCache
:
true
},
component
:
(
resolve
)
=>
{
return
require
([
'
@/views/homepage/console/index
'
],
resolve
)
},
hidden
:
true
},
{
path
:
'
/backstage
'
,
component
:
Layout
,
...
...
src/views/homepage/components/userLogin.vue
View file @
4b71f8d9
...
...
@@ -8,7 +8,7 @@
<i
class=
"el-icon-caret-bottom"
/>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<router-link
to=
"/
hom
e"
>
<router-link
to=
"/
consol
e"
>
<el-dropdown-item>
个人中心
</el-dropdown-item>
...
...
src/views/homepage/components/userLoginV2.vue
View file @
4b71f8d9
...
...
@@ -8,7 +8,7 @@
<i
class=
"el-icon-caret-bottom"
/>
</div>
<el-dropdown-menu
slot=
"dropdown"
>
<router-link
to=
"/
hom
e"
>
<router-link
to=
"/
consol
e"
>
<el-dropdown-item>
个人中心
</el-dropdown-item>
...
...
src/views/homepage/components/userMenus.vue
0 → 100644
View file @
4b71f8d9
<
template
>
<div
class=
"vertical-menu-box"
>
<div
class=
"vertical-menu-title"
>
<img
src=
"@/assets/home_images/mark_sup.png"
>
<span>
供应
</span>
</div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='1'?'active':''"
@
click=
"menuClick('/home')"
>
产品管理
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='2'?'active':''"
@
click=
"menuClick('/home')"
>
被询价记录
</span></div>
<el-divider
/>
<div
class=
"vertical-menu-title"
>
<img
src=
"@/assets/home_images/mark_pro.png"
>
<span>
供应
</span>
</div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='3'?'active':''"
@
click=
"menuClick('/home')"
>
收藏的产品
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='4'?'active':''"
@
click=
"menuClick('/home')"
>
收藏的供应商
</span></div>
<div
class=
"vertical-menu-label touch"
><span
:class=
"menuIndex==='5'?'active':''"
@
click=
"menuClick('/home')"
>
询价记录
</span></div>
</div>
</
template
>
<
script
>
export
default
{
props
:
{
menuIndex
:
{
type
:
String
,
default
:
'
0
'
}
},
data
()
{
return
{
currentMenuObj
:
null
}
},
mounted
()
{
this
.
$nextTick
(()
=>
{})
},
methods
:
{
menuClick
(
path
)
{
this
.
$router
.
push
({
path
:
path
})
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.touch
{
cursor
:pointer
;
}
.vertical-menu-box
{
padding-top
:
20px
;
padding-left
:
14px
;
width
:
100%
;
height
:
66vh
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.12
);
box-shadow
:
1px
2px
8px
0
rgba
(
0
,
0
,
0
,
0
.12
);
border-radius
:
10px
;
.vertical-menu-label
{
padding
:
12px
28px
;
font-size
:
16px
;
color
:
black
;
span
{
opacity
:
0
.8
;
}
span
:hover
{
opacity
:
1
;
}
.active
{
color
:
#0342AB
;
}
}
.vertical-menu-title
{
position
:
relative
;
margin
:
10px
0
;
font-size
:
20px
;
font-weight
:
bold
;
color
:
#191919
;
line-height
:
42px
;
img
{
position
:
absolute
;
top
:
9px
;
width
:
24px
;
height
:
24px
;
}
span
{
padding
:
0
28px
;
}
}
}
</
style
>
src/views/homepage/console/index.vue
0 → 100644
View file @
4b71f8d9
<
template
>
<div
class=
"page-body"
>
<div
class=
"head-box"
>
<div
class=
"head-box-top"
>
<div
class=
"top-call"
/>
<div
class=
"top-call"
><img
src=
"@/assets/home_images/gemho_logo_b.png"
></div>
<div
class=
"top-call"
><title-menus
ref=
"titleMenus"
menu-index=
"99"
style=
"padding-top: 15px"
/></div>
<div
class=
"top-call"
><user-login
ref=
"userLogin"
/></div>
<div
class=
"top-call"
><language-setting
ref=
"languageSetting"
/></div>
</div>
</div>
<div
class=
"content-box"
>
<div
style=
"width: 88%;padding-left: 9%;"
>
<el-row
:gutter=
"20"
style=
"padding-top: 10px"
>
<el-col
:span=
"3"
>
<user-menus
menu-index=
"99"
/>
</el-col>
<el-col
:span=
"21"
style=
"padding: 10px 20px"
>
<div
class=
"user-info-box"
>
<div
class=
"user-info-avatar touch"
@
click=
"uploadAvatar"
>
<img
:src=
"user.avatarName ? baseApi + '/avatar/' + user.avatarName : Avatar"
class=
"user-avatar"
>
</div>
<div
class=
"user-info-content"
>
<div
class=
"user-info-text"
style=
"padding-top:5px"
>
用户名:
<span>
{{
userObj
.
userName
}}
</span></div>
<div
class=
"user-info-text"
>
企业名称:
<span>
{{
userObj
.
enterpriseName
}}
</span></div>
<div
class=
"user-info-text"
>
供应商状态:
<span
style=
"color: #0D8BF7"
>
{{
userObj
.
status
}}
</span></div>
<div
class=
"line-btn"
>
<div
class=
"user-info-btn touch"
>
信息修改
</div>
<div
class=
"user-info-btn touch"
@
click=
"$refs.pass.dialog = true"
>
密码修改
</div>
</div>
</div>
</div>
</el-col>
</el-row>
</div>
</div>
<home-footer
ref=
"homeFooter"
/>
<inquiry-view
ref=
"inquiryView"
/>
<el-backtop
/>
<updatePass
ref=
"pass"
/>
<myUpload
v-model=
"uploadVisible"
:headers=
"headers"
:url=
"updateAvatarApi"
@
crop-success=
"cropUploadSuccess"
/>
</div>
</
template
>
<
script
>
import
default_product
from
'
@/assets/home_images/default_product.png
'
import
Avatar
from
'
@/assets/images/avatar.png
'
import
titleMenus
from
'
../components/titleMenusV2
'
import
userLogin
from
'
../components/userLoginV2
'
import
languageSetting
from
'
../components/languageSettingV2
'
import
homeFooter
from
'
../components/homeFooter
'
import
inquiryView
from
'
../components/inquiryView
'
import
userMenus
from
'
../components/userMenus
'
import
{
mapGetters
}
from
'
vuex
'
import
myUpload
from
'
vue-image-crop-upload
'
import
updatePass
from
'
../../system/user/center/updatePass
'
import
{
getToken
}
from
'
@/utils/auth
'
export
default
{
components
:
{
titleMenus
,
userLogin
,
languageSetting
,
homeFooter
,
inquiryView
,
userMenus
,
myUpload
,
updatePass
},
dicts
:
[],
data
()
{
return
{
Avatar
:
Avatar
,
defaultImgProduct
:
default_product
,
headers
:
{
'
Authorization
'
:
getToken
()
},
imgSrcStart
:
process
.
env
.
VUE_APP_BASE_API
,
page
:
1
,
pageSize
:
16
,
total
:
0
,
userObj
:
{
userName
:
'
546586856
'
,
enterpriseName
:
'
企业名称:佛山英沃传感科技有限公司
'
,
status
:
'
审核已通过
'
},
uploadVisible
:
false
,
throttle
:
null
,
// 节流器
throttleTime
:
300
}
},
computed
:
{
...
mapGetters
([
'
user
'
,
'
updateAvatarApi
'
,
'
baseApi
'
])
},
mounted
()
{
this
.
$nextTick
(()
=>
{
})
},
methods
:
{
onDictReady
(
dict
)
{},
// 点击询价
inquiry
(
item
,
type
)
{
console
.
log
(
item
,
type
)
this
.
$refs
.
inquiryView
.
initView
(
item
.
id
,
type
)
},
uploadAvatar
()
{
this
.
uploadVisible
=
!
this
.
uploadVisible
},
cropUploadSuccess
()
{
location
.
reload
()
},
// 跳转到详情
goToDetails
(
item
,
type
)
{
console
.
log
(
item
,
type
)
},
pageChange
(
e
)
{
this
.
page
=
e
this
.
loadData
()
},
loadData
()
{
},
goTop
()
{
document
.
body
.
scrollTop
=
0
document
.
documentElement
.
scrollTop
=
0
}
}
}
</
script
>
<
style
rel=
"stylesheet/scss"
lang=
"scss"
scoped
>
.touch
{
cursor
:pointer
;
}
.clear
{
clear
:
both
}
.inline-block
{
display
:
inline-block
;
}
.ellipsis
{
// 多行溢出省略号
display
:
-
webkit-box
;
-webkit-box-orient
:
vertical
;
overflow
:
hidden
;
-webkit-line-clamp
:
2
;
text-overflow
:
ellipsis
;
}
.pagination
{
margin-top
:
23px
;
text-align
:
center
;
padding
:
10px
;
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
>>>
.el-pagination.is-background
.el-pager
li
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#000000
;
border
:
1px
solid
#e5e5ea
;
}
/* 激活后的样式 */
>>>
.el-pagination.is-background
.el-pager
li
:not
(
.disabled
)
.active
{
background-color
:
#ffffff
;
color
:
#0366ed
;
border
:
1px
solid
#0366ed
;
text-align
:
center
;
}
/* 修改左右箭头样式 */
>>>
.el-pagination
.btn-next
.el-icon
,
>>>
.el-pagination
.btn-prev
.el-icon
{
font-style
:
normal
;
font-weight
:
400
;
font-size
:
14px
;
text-align
:
center
;
background-color
:
#fff
;
color
:
#e5e5ea
;
border
:
1px
solid
#e5e5ea
;
}
>>>
.el-pager
{
height
:
35
.5px
!
important
;
}
>>>
.number
,
>>>
.el-icon
{
height
:
35
.5px
!
important
;
line-height
:
35
.5px
!
important
;
}
}
.head-box
{
width
:
100vw
;
top
:
0
;
position
:
fixed
;
background
:
none
repeat
scroll
0
0
white
;
z-index
:
999
;
box-shadow
:
0px
3px
7px
0px
rgba
(
0
,
0
,
0
,
0
.2
);
.head-box-top
{
display
:
flex
;
justify-content
:
space-evenly
;
align-items
:
center
;
.top-call
{
height
:
80px
;
padding-top
:
15px
;
}
}
}
.content-box
{
min-height
:
70vh
;
margin-top
:
94px
;
font-family
:
Source
Han
Sans
CN
;
user-select
:
none
;
.page-title
{
margin-top
:
20px
;
padding
:
0
20px
;
font-size
:
26px
;
font-weight
:
bold
;
color
:
#333333
;
}
.box-card
{
display
:
inline-block
;
position
:
relative
;
margin
:
12px
;
padding
:
10px
0
;
width
:
350px
;
background
:
#FFFFFF
;
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.12
);
box-shadow
:
1px
2px
8px
0
rgba
(
0
,
0
,
0
,
0
.12
);
border-radius
:
10px
;
.line-text
{
width
:
100%
;
text-align
:
center
;
padding
:
5px
;
font-size
:
18px
;
font-weight
:
bolder
;
opacity
:
0
.85
;
}
.line-text
:hover
{
opacity
:
1
;
}
.float-title
{
width
:
344px
;
position
:
absolute
;
padding
:
5px
;
top
:
200px
;
left
:
2px
;
text-align
:
center
;
font-weight
:
600
;
color
:
#fff
;
background
:
rgba
(
0
,
0
,
0
,
0
.6
);
opacity
:
0
.9
;
}
.float-title
:hover
{
opacity
:
1
;
}
.title
{
width
:
305px
;
padding
:
2px
20px
;
font-size
:
18px
;
color
:
#333333
;
overflow
:hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:ellipsis
;
}
.title
:hover
{
font-weight
:
600
;
}
.subTitle
{
width
:
260px
;
padding
:
2px
20px
;
font-size
:
15px
;
color
:
#1961C5
;
overflow
:hidden
;
white-space
:
nowrap
;
text-overflow
:
ellipsis
;
-o-text-overflow
:ellipsis
;
}
.area
{
padding
:
2px
0
;
font-size
:
17px
;
color
:
#666666
;
}
.date
{
padding
:
2px
10px
;
font-size
:
17px
;
color
:
#999999
;
}
.stamp
{
border-style
:
none
;
position
:
absolute
;
z-index
:
99
;
}
}
}
.line-btn
{
display
:
flex
;
justify-content
:
center
;
font-family
:
Source
Han
Sans
CN
;
font-weight
:
400
;
.btn-o
{
margin
:
0
25px
;
width
:
360px
;
padding
:
6px
10px
;
background
:
#F7601A
;
box-shadow
:
0
3px
6px
0
rgba
(
0
,
0
,
0
,
0
.2
);
text-align
:
center
;
border
:
1px
solid
transparent
;
font-size
:
22px
;
color
:
#FFFFFF
;
cursor
:pointer
;
user-select
:
none
;
}
.btn-o
:hover
{
border
:
1px
solid
rgba
(
30
,
144
,
255
,
0
.8
);
color
:
#1482f0
;
}
.btn-l
{
margin
:
0
25px
;
width
:
360px
;
padding
:
10px
;
background
:
#1961C5
;
box-shadow
:
0
3px
6px
0
rgba
(
0
,
0
,
0
,
0
.2
);
text-align
:
center
;
border
:
1px
solid
transparent
;
font-size
:
22px
;
color
:
#FFFFFF
;
cursor
:pointer
;
user-select
:
none
;
}
.btn-l
:hover
{
border
:
1px
solid
rgba
(
0
,
0
,
0
,
0
.3
);
color
:
#F7601A
;
}
.btn-b
{
margin
:
0
10px
;
width
:
168px
;
padding
:
6px
;
background
:
#EFF6FF
;
border
:
1px
solid
transparent
;
box-shadow
:
0
1px
2px
0
rgba
(
0
,
0
,
0
,
0
.2
);
text-align
:
center
;
font-size
:
20px
;
color
:
#1961C5
;
cursor
:pointer
;
user-select
:
none
;
}
.btn-b
:hover
{
border
:
1px
solid
rgba
(
30
,
144
,
255
,
0
.9
);
}
.active
{
color
:
#FFFFFF
;
font-weight
:
400
;
background
:
#1961C5
;
}
}
.user-info-box
{
display
:
flex
;
width
:
720px
;
height
:
174px
;
margin
:
160px
auto
;
.user-info-avatar
{
img
{
width
:
174px
;
height
:
174px
;
}
}
.user-info-content
{
height
:
174px
;
padding
:
0
50px
;
.user-info-text
{
padding
:
10px
;
font-size
:
18px
;
}
}
.user-info-btn
{
margin
:
16px
;
padding
:
8px
;
width
:
146px
;
background
:
#EFF6FF
;
border
:
1px
solid
transparent
;
border-radius
:
10px
;
text-align
:
center
;
color
:
#1961C5
;
}
.user-info-btn
:hover
{
border
:
1px
solid
rgba
(
30
,
144
,
255
,
0
.9
);
color
:
#0D8BF7
;
}
}
</
style
>
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