Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ElectricitySheep
Project
Project
Details
Activity
Releases
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
黄媛媛
ElectricitySheep
Commits
7cae5089
Commit
7cae5089
authored
Apr 30, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增页面
parent
67bc466d
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
1057 additions
and
705 deletions
+1057
-705
labelBar.vue
src/components/StoreDesign/labelBar.vue
+1
-1
userCenter.vue
src/components/StoreDesign/userCenter.vue
+1051
-701
chooseMeun.vue
src/components/common/chooseMeun.vue
+3
-1
minimenu.vue
src/components/system/minimenu.vue
+2
-2
No files found.
src/components/StoreDesign/labelBar.vue
View file @
7cae5089
...
...
@@ -314,7 +314,7 @@
}
}
return
{
//是否
线下
链接弹窗
//是否
显示
链接弹窗
isShowLink
:
false
,
mallMsg
:
{
MallBaseId
:
0
,
...
...
src/components/StoreDesign/userCenter.vue
View file @
7cae5089
<
style
>
.User_Main
{
.User_Main
{
display
:
flex
;
margin-top
:
10px
;
margin-top
:
10px
;
}
.UserCenter
.User_mobile
{
.UserCenter
.User_mobile
{
width
:
400px
;
height
:
740px
;
padding
:
35px
11px
;
...
...
@@ -15,14 +16,16 @@
float
:
left
;
margin-right
:
1rem
;
}
.UserCenter
.mobile_Header
{
.UserCenter
.mobile_Header
{
width
:
378px
;
height
:
64px
;
position
:
relative
;
text-align
:
center
;
background
:
url('../../assets/img/head.png')
}
.UserCenter
.mobile_Header
div
{
.UserCenter
.mobile_Header
div
{
position
:
absolute
;
text-align
:
center
;
width
:
378px
;
...
...
@@ -31,15 +34,17 @@
height
:
64px
;
line-height
:
88px
;
}
.UserCenter
.mobile_showbox
{
.UserCenter
.mobile_showbox
{
height
:
606px
;
width
:
375px
;
overflow
:
auto
;
font-size
:
12px
;
}
.UserCenter
.mb_topBox
{
width
:
100%
;
height
:
150px
;
.UserCenter
.mb_topBox
{
width
:
100%
;
height
:
150px
;
background
:
#F5F7F9
;
background-repeat
:
no-repeat
;
background-size
:
cover
;
...
...
@@ -47,13 +52,15 @@
display
:
flex
;
justify-content
:
center
;
flex-direction
:
column
;
font-size
:
12px
;
font-size
:
12px
;
}
.UserCenter
.mb_header
{
.UserCenter
.mb_header
{
display
:
flex
;
align-items
:
center
;
}
.UserCenter
.mobole_head
{
.UserCenter
.mobole_head
{
width
:
40px
;
height
:
40px
;
-webkit-border-radius
:
50%
;
...
...
@@ -63,26 +70,30 @@
background
:
#E3E3E3
;
margin-left
:
20px
;
}
.UserCenter
.mb_header
span
{
margin-left
:
10px
;
color
:
#fff
;
.UserCenter
.mb_header
span
{
margin-left
:
10px
;
color
:
#fff
;
}
.UserCenter
.mobile_footBox
{
.UserCenter
.mobile_footBox
{
position
:
relative
;
background-color
:
#f7f7f7
;
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
}
.UserCenter
.foot-box-item
{
.UserCenter
.foot-box-item
{
height
:
64px
;
color
:
#666666
;
font-size
:
13px
;
width
:
50%
;
display
:
flex
;
justify-content
:
center
;
justify-content
:
center
;
}
.UserCenter
.userAppimage
{
.UserCenter
.userAppimage
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
20px
;
...
...
@@ -90,15 +101,18 @@
border-radius
:
0%
;
margin-top
:
33px
;
}
.UserCenter
.foot-box-info
{
padding-top
:
8px
;
margin-left
:
8.5px
;
text-align
:
center
;
}
.UserCenter
.foot-box-num
{
font-size
:
16px
;
margin-bottom
:
6px
;
}
.UserCenter
.foot-box-line
{
position
:
absolute
;
height
:
20px
;
...
...
@@ -108,13 +122,15 @@
left
:
50%
;
margin-left
:
-1px
;
}
.UserCenter
.userAccount_box
{
width
:
100%
;
height
:
60px
;
background-color
:
#f7f7f7
;
padding
:
0
8px
8px
;
}
.UserCenter
.userAccount_box
>
div
{
.UserCenter
.userAccount_box
>
div
{
background-color
:
#fff
;
border-radius
:
4px
;
padding
:
8px
0
;
...
...
@@ -122,7 +138,8 @@
display
:
flex
;
flex-direction
:
row
;
}
.UserCenter
.accountList
{
.UserCenter
.accountList
{
padding
:
5px
0px
;
border-right
:
1px
solid
rgb
(
226
,
226
,
226
);
display
:
flex
;
...
...
@@ -131,89 +148,105 @@
flex-direction
:
column
;
flex-grow
:
1
;
}
.UserCenter
.accountList
:last-child
{
.UserCenter
.accountList
:last-child
{
border-right
:
0
;
}
.UserCenter
.accountListImg
{
.UserCenter
.accountListImg
{
width
:
10px
;
height
:
10px
;
border-radius
:
0%
;
display
:
inline-block
;
margin-right
:
5px
;
margin-right
:
5px
;
}
.UserCenter
.Account_score
{
.UserCenter
.Account_score
{
color
:
rgb
(
255
,
187
,
67
);
margin-bottom
:
5px
;
margin-bottom
:
5px
;
}
.UserCenter
.AccountOrder_box
{
.UserCenter
.AccountOrder_box
{
width
:
100%
;
background-color
:
#f7f7f7
;
padding
:
0
8px
1px
;
margin-bottom
:
8px
;
}
.UserCenter
.AccountOrder_box
>
div
{
.UserCenter
.AccountOrder_box
>
div
{
background-color
:
#fff
;
border-radius
:
8px
;
height
:
100%
;
}
.UserCenter
.AccountOrder_Top
{
padding
:
10px
;
.UserCenter
.AccountOrder_Top
{
padding
:
10px
;
display
:
flex
;
align-items
:
center
;
justify-content
:
space-between
;
}
.UserCenter
.Account_bTM
{
.UserCenter
.Account_bTM
{
display
:
flex
;
margin
:
10px
0px
;
padding-bottom
:
10px
;
flex-direction
:
row
;
}
.UserCenter
.Account_bTMList
{
.UserCenter
.Account_bTMList
{
display
:
flex
;
flex-grow
:
1
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
}
.UserCenter
.Account_btmimg
{
.UserCenter
.Account_btmimg
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
30px
;
height
:
30px
;
border-radius
:
0%
;
}
.UserCenter
.mobile-menus-box
{
width
:
100%
;
background-color
:
#f7f7f7
;
padding
:
0
8px
;
}
.UserCenter
.mobile-menus-box
>
div
{
background-color
:
#fff
;
border-radius
:
8px
;
height
:
100%
;
}
.UserCenter
.mobile-menus-box
.mobile-menu-title
{
padding
:
10px
16px
;
font-size
:
14px
;
border-bottom-left-radius
:
0
;
border-bottom-right-radius
:
0
;
}
.UserCenter
.mobile_menu_inner
{
.UserCenter
.mobile_menu_inner
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.UserCenter
.mobile_menuList
{
.UserCenter
.mobile_menuList
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
width
:
25%
;
margin-bottom
:
18px
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
width
:
25%
;
margin-bottom
:
18px
;
}
.UserCenter
.mobile_menuList
:last-child
{
margin-bottom
:
0
;
.UserCenter
.mobile_menuList
:last-child
{
margin-bottom
:
0
;
}
.UserCenter
.mobile_menu_image
{
.UserCenter
.mobile_menu_image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
25px
;
...
...
@@ -221,27 +254,32 @@
border-radius
:
0%
;
margin-bottom
:
8px
;
}
.UserCenter
.mobile_showbox
::-webkit-scrollbar
{
width
:
1px
;
}
.UserCenter
.mobile_tableDiv
{
.UserCenter
.mobile_tableDiv
{
display
:
flex
;
flex-direction
:
column
;
}
.UserCenter
.mobile_tableDivList
{
.UserCenter
.mobile_tableDivList
{
display
:
flex
;
padding
:
8px
16px
;
align-items
:
center
;
flex-direction
:
row
;
}
.UserCenter
.User_rightContent
{
width
:
100%
;
height
:
740px
;
overflow-y
:
scroll
;
.UserCenter
.User_rightContent
{
width
:
100%
;
height
:
740px
;
overflow-y
:
scroll
;
}
.UserCenter
.User_rightTop
{
margin-bottom
:
20px
;
min-width
:
500px
;
.UserCenter
.User_rightTop
{
margin-bottom
:
20px
;
min-width
:
500px
;
border
:
1px
solid
#EBEEF5
;
background-color
:
#FFF
;
color
:
#303133
;
...
...
@@ -250,30 +288,36 @@
border-top-left-radius
:
3px
;
border-top-right-radius
:
3px
;
}
.UserCenter
.User_rightTop_header
{
.UserCenter
.User_rightTop_header
{
padding
:
18px
20px
;
border-bottom
:
1px
solid
#EBEEF5
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
}
.UserCenter
.User_topBtm
{
padding
:
20px
;
padding-right
:
30%
;
.UserCenter
.User_topBtm
{
padding
:
20px
;
padding-right
:
30%
;
}
.UserCenter
.userCommonimg
{
.UserCenter
.userCommonimg
{
width
:
80px
;
height
:
80px
;
border-radius
:
0%
;
}
.UserCenter
.userCommonimg
img
{
width
:
100%
;
height
:
100%
;
.UserCenter
.userCommonimg
img
{
width
:
100%
;
height
:
100%
;
}
.UserCenter
.CollectDiv
{
.UserCenter
.CollectDiv
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.UserCenter
.ColeectList
{
.UserCenter
.ColeectList
{
display
:
flex
;
height
:
80px
;
padding-top
:
10px
;
...
...
@@ -287,22 +331,26 @@
justify-content
:
center
;
flex-direction
:
column
;
}
.UserCenter
.ColeectImgList
{
.UserCenter
.ColeectImgList
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
30px
;
height
:
30px
;
}
.UserCenter
.AccountImgList
{
.UserCenter
.AccountImgList
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
21px
;
height
:
21px
;
}
.UserCenter
.LastMenuDiv
{
.UserCenter
.LastMenuDiv
{
border
:
1px
solid
#eeeeee
;
background
:
#F6F8F9
;
}
.UserCenter
.menu-add
{
text-align
:
right
;
background
:
#ffffff
;
...
...
@@ -310,7 +358,8 @@
line-height
:
40px
;
padding-right
:
10px
;
}
.UserCenter
.Lastmenu_item
{
.UserCenter
.Lastmenu_item
{
cursor
:
move
;
background-color
:
#fff
;
margin
:
5px
0
;
...
...
@@ -318,36 +367,43 @@
align-items
:
center
;
justify-content
:
center
;
}
.UserCenter
.LastMenu_image
{
.UserCenter
.LastMenu_image
{
background-size
:
cover
;
background-position
:
center
center
;
width
:
25px
;
height
:
25px
;
}
.UserCenter
.LastMenuFirst
{
margin
:
0
10px
;
.UserCenter
.LastMenuFirst
{
margin
:
0
10px
;
flex-grow
:
0
;
}
.UserCenter
.LastMenu_Second
{
.UserCenter
.LastMenu_Second
{
flex-grow
:
1
;
}
.UserCenter
.LastMenu_Third
{
.UserCenter
.LastMenu_Third
{
display
:
flex
;
flex-grow
:
0
;
width
:
94px
;
margin
:
5px
0px
;
}
.mb_headerOther
{
.mb_headerOther
{
display
:
flex
;
align-items
:
center
;
justify-content
:
center
;
flex-direction
:
column
;
color
:
#fff
;
color
:
#fff
;
}
.UserUpImg
img
{
width
:
80px
;
height
:
80px
;
.UserUpImg
img
{
width
:
80px
;
height
:
80px
;
}
</
style
>
<
template
>
<div
class=
"UserCenter"
>
...
...
@@ -358,66 +414,66 @@
<div>
用户中心
</div>
</div>
<div
class=
"mobile_showbox"
>
<div
class=
"mb_topBox"
:style=
"
{backgroundImage:'url('+ msg.default
Img + ')'}">
<div
class=
"mb_header"
v-if=
"msg.headerPosition
==1"
>
<div
class=
"mb_topBox"
:style=
"
{backgroundImage:'url('+ postMsg.DefaultBg
Img + ')'}">
<div
class=
"mb_header"
v-if=
"postMsg.HeadStyle
==1"
>
<div
class=
"mobole_head"
></div>
<span>
用户昵称
</span>
</div>
<div
class=
"mb_headerOther"
v-if=
"msg.headerPosition
==2"
>
<div
class=
"mb_headerOther"
v-if=
"postMsg.HeadStyle
==2"
>
<div
style=
"margin-left:0;"
class=
"mobole_head"
></div>
<span>
用户昵称
</span>
</div>
</div>
<div
class=
"mobile_footBox"
v-if=
"msg.isShowCollectBar==1
"
>
<div
class=
"foot-box-item"
v-for=
"(item,index) in msg.CollectArr
"
:key=
"index"
>
<div
class=
"userAppimage"
:style=
"
{backgroundImage:'url('+ item.image
+ ')'}">
</div>
<div
class=
"mobile_footBox"
v-if=
"postMsg.IsShowFavorite==0
"
>
<div
class=
"foot-box-item"
v-for=
"(item,index) in postMsg.FavoriteFootMenuList
"
:key=
"index"
>
<div
class=
"userAppimage"
:style=
"
{backgroundImage:'url('+ item.MenuIcon
+ ')'}">
</div>
<div
class=
"foot-box-info"
>
<div
class=
"foot-box-num"
>
0
</div>
<div>
{{
item
.
n
ame
}}
</div>
<div>
{{
item
.
MenuN
ame
}}
</div>
</div>
</div>
<div
class=
"foot-box-line"
></div>
</div>
<div
class=
"userAccount_box"
v-if=
"msg.isShowStatus==1
"
>
<div
class=
"userAccount_box"
v-if=
"postMsg.IsShowAccountNav==0
"
>
<div>
<div
class=
"accountList"
v-for=
"(item,index) in msg.MyAccoun
t"
:key=
"index"
>
<div
class=
"accountList"
v-for=
"(item,index) in postMsg.AccountMenuLis
t"
:key=
"index"
>
<div
class=
"Account_score"
>
0
</div>
<div>
<img
class=
"accountListImg"
:src=
"item.image"
>
{{
item
.
n
ame
}}
<img
class=
"accountListImg"
:src=
"item.MenuIcon"
>
{{
item
.
MenuN
ame
}}
</div>
</div>
</div>
</div>
<div
class=
"AccountOrder_box"
v-if=
"msg.isShowOrder==1
"
>
<div
class=
"AccountOrder_box"
v-if=
"postMsg.IsShowOrderNav==0
"
>
<div>
<div
class=
"AccountOrder_Top"
>
<div>
我的订单
</div>
<div
style=
"color: rgb(153, 153, 153);"
>
查看更多>
</div>
</div>
<div
class=
"Account_bTM"
>
<div
class=
"Account_bTMList"
v-for=
"(item,index) in msg.OrderArr
"
:key=
"index"
>
<div
class=
"Account_btmimg"
:style=
"
{backgroundImage:'url('+ item.image
+ ')'}">
</div>
<div
style=
"margin-top:5px;"
>
{{
item
.
n
ame
}}
</div>
<div
class=
"Account_bTMList"
v-for=
"(item,index) in postMsg.OrderMenuList
"
:key=
"index"
>
<div
class=
"Account_btmimg"
:style=
"
{backgroundImage:'url('+ item.MenuIcon
+ ')'}">
</div>
<div
style=
"margin-top:5px;"
>
{{
item
.
MenuN
ame
}}
</div>
</div>
</div>
</div>
</div>
<div
class=
"mobile-menus-box"
v-if=
"msg.menuStatus==1
"
>
<template
v-if=
"msg.menuStyle==2
"
>
<div
class=
"mobile-menu-title"
>
{{
msg
.
menu
Title
}}
</div>
<div
class=
"mobile-menus-box"
v-if=
"postMsg.IsShowMenuNav==0
"
>
<template
v-if=
"postMsg.MenuNavStyle==1
"
>
<div
class=
"mobile-menu-title"
>
{{
postMsg
.
MenuNav
Title
}}
</div>
<div
class=
"mobile_menu_inner"
>
<div
class=
"mobile_menuList"
v-for=
"(item,index) in msg.menuArr
"
:key=
"index"
>
<div
class=
"mobile_menu_image"
:style=
"
{backgroundImage:'url('+ item.image
+ ')'}">
</div>
<div
class=
"vue-line-clamp"
>
{{
item
.
n
ame
}}
</div>
<div
class=
"mobile_menuList"
v-for=
"(item,index) in postMsg.SelfMenuList
"
:key=
"index"
>
<div
class=
"mobile_menu_image"
:style=
"
{backgroundImage:'url('+ item.MenuIcon
+ ')'}">
</div>
<div
class=
"vue-line-clamp"
>
{{
item
.
MenuN
ame
}}
</div>
</div>
</div>
</
template
>
<
template
v-else
>
<div
class=
"mobile_tableDiv"
>
<div
class=
"mobile-menu-title"
>
{{
msg
.
menu
Title
}}
</div>
<div
class=
"mobile_tableDivList"
v-for=
"(item,index) in msg.menuArr
"
:key=
"index"
>
<div
class=
"mobile_menu_image"
:style=
"
{backgroundImage:'url('+ item.image
+ ')'}">
</div>
<div
class=
"vue-line-clamp"
style=
"margin-left:10px;"
>
{{
item
.
n
ame
}}
</div>
<div
class=
"mobile-menu-title"
>
{{
postMsg
.
MenuNav
Title
}}
</div>
<div
class=
"mobile_tableDivList"
v-for=
"(item,index) in postMsg.SelfMenuList
"
:key=
"index"
>
<div
class=
"mobile_menu_image"
:style=
"
{backgroundImage:'url('+ item.MenuIcon
+ ')'}">
</div>
<div
class=
"vue-line-clamp"
style=
"margin-left:10px;"
>
{{
item
.
MenuN
ame
}}
</div>
</div>
</div>
</
template
>
...
...
@@ -436,7 +492,7 @@
</el-tooltip>
</div>
<div
class=
"userCommonimg"
>
<img
v-if=
"msg.defaultImg"
:src=
"msg.default
Img"
alt=
""
/>
<img
v-if=
"postMsg.DefaultBgImg"
:src=
"postMsg.DefaultBg
Img"
alt=
""
/>
<img
v-else
src=
"../../assets/img/default.png"
alt=
""
/>
</div>
</el-form-item>
...
...
@@ -447,7 +503,7 @@
</el-tooltip>
</div>
<div
class=
"userCommonimg"
>
<img
v-if=
"msg.averageUser"
:src=
"msg.averageUser
"
alt=
""
/>
<img
v-if=
"postMsg.MemberBgImg"
:src=
"postMsg.MemberBgImg
"
alt=
""
/>
<img
v-else
src=
"../../assets/img/default.png"
alt=
""
/>
</div>
</el-form-item>
...
...
@@ -458,12 +514,12 @@
</el-tooltip>
</div>
<div
class=
"userCommonimg"
>
<img
v-if=
"msg.memberCenter"
:src=
"msg.memberCenter
"
alt=
""
/>
<img
v-if=
"postMsg.VipBgImg"
:src=
"postMsg.VipBgImg
"
alt=
""
/>
<img
v-else
src=
"../../assets/img/default.png"
alt=
""
/>
</div>
</el-form-item>
<el-form-item
label=
"头像样式"
size=
"small"
>
<el-radio-group
v-model=
"msg.headerPosition
"
>
<el-radio-group
v-model=
"postMsg.HeadStyle
"
>
<el-radio
:label=
"1"
>
头像靠左
</el-radio>
<el-radio
:label=
"2"
>
头像居中
</el-radio>
<!-- <el-radio :label="3">头像内嵌</el-radio> -->
...
...
@@ -476,13 +532,14 @@
<div
class=
"User_rightTop_header"
>
收藏足迹栏
</div>
<el-form
label-width=
"150px"
style=
"padding:20px;"
>
<el-form-item
label=
"收藏足迹栏显示状态"
size=
"small"
>
<el-switch
v-model=
"msg.isShowCollectBar"
:active-value=
"1"
:inactive-value=
"0
"
></el-switch>
<el-switch
v-model=
"postMsg.IsShowFavorite"
:active-value=
"0"
:inactive-value=
"1
"
></el-switch>
</el-form-item>
<el-form-item
label=
"收藏足迹栏"
size=
"small"
>
<div
class=
"CollectDiv"
>
<div
class=
"ColeectList"
v-for=
"(item,index) in msg.CollectArr"
:key=
"index"
@
click=
"upDateMsg(item,1)"
>
<div
class=
"ColeectImgList"
:style=
"{backgroundImage:'url('+ item.image + ')'}"
></div>
<div>
{{item.name}}
</div>
<div
class=
"ColeectList"
v-for=
"(item,index) in postMsg.FavoriteFootMenuList"
:key=
"index"
@
click=
"upDateMsg(item,1)"
>
<div
class=
"ColeectImgList"
:style=
"{backgroundImage:'url('+ item.MenuIcon + ')'}"
></div>
<div>
{{item.MenuName}}
</div>
</div>
</div>
</el-form-item>
...
...
@@ -492,13 +549,14 @@
<div
class=
"User_rightTop_header"
>
订单栏设置
</div>
<el-form
label-width=
"150px"
style=
"padding:20px;"
>
<el-form-item
label=
"订单栏显示状态"
size=
"small"
>
<el-switch
v-model=
"msg.isShowOrder"
:active-value=
"1"
:inactive-value=
"0
"
></el-switch>
<el-switch
v-model=
"postMsg.IsShowOrderNav"
:active-value=
"0"
:inactive-value=
"1
"
></el-switch>
</el-form-item>
<el-form-item
label=
"订单栏"
size=
"small"
>
<div
class=
"CollectDiv"
>
<div
class=
"ColeectList"
v-for=
"(item,index) in msg.OrderArr"
:key=
"index"
@
click=
"upDateMsg(item,2)"
>
<div
class=
"ColeectImgList"
:style=
"{backgroundImage:'url('+ item.image + ')'}"
></div>
<div>
{{item.name}}
</div>
<div
class=
"ColeectList"
v-for=
"(item,index) in postMsg.OrderMenuList"
:key=
"index"
@
click=
"upDateMsg(item,2)"
>
<div
class=
"ColeectImgList"
:style=
"{backgroundImage:'url('+ item.MenuIcon + ')'}"
></div>
<div>
{{item.MenuName}}
</div>
</div>
</div>
</el-form-item>
...
...
@@ -508,13 +566,14 @@
<div
class=
"User_rightTop_header"
>
账户栏设置
</div>
<el-form
label-width=
"150px"
style=
"padding:20px;"
>
<el-form-item
label=
"显示状态"
size=
"small"
>
<el-switch
v-model=
"msg.isShowStatus"
:active-value=
"1"
:inactive-value=
"0
"
></el-switch>
<el-switch
v-model=
"postMsg.IsShowAccountNav"
:active-value=
"0"
:inactive-value=
"1
"
></el-switch>
</el-form-item>
<el-form-item
label=
"订单栏"
size=
"small"
>
<div
class=
"CollectDiv"
>
<div
class=
"ColeectList"
v-for=
"(item,index) in msg.MyAccount"
:key=
"index"
@
click=
"upDateMsg(item,3)"
>
<div
class=
"AccountImgList"
:style=
"{backgroundImage:'url('+ item.image + ')'}"
></div>
<div>
{{item.name}}
</div>
<div
class=
"ColeectList"
v-for=
"(item,index) in postMsg.AccountMenuList"
:key=
"index"
@
click=
"upDateMsg(item,3)"
>
<div
class=
"AccountImgList"
:style=
"{backgroundImage:'url('+ item.MenuIcon + ')'}"
></div>
<div>
{{item.MenuName}}
</div>
</div>
</div>
</el-form-item>
...
...
@@ -524,33 +583,35 @@
<div
class=
"User_rightTop_header"
>
菜单栏设置
</div>
<el-form
label-width=
"150px"
style=
"padding:20px;"
>
<el-form-item
label=
"菜单栏显示状态"
size=
"small"
>
<el-switch
v-model=
"msg.menuStatus"
:active-value=
"1"
:inactive-value=
"0
"
></el-switch>
<el-switch
v-model=
"postMsg.IsShowMenuNav"
:active-value=
"0"
:inactive-value=
"1
"
></el-switch>
</el-form-item>
<el-form-item
label=
"菜单栏标题"
size=
"small"
>
<el-input
type=
"text"
size=
"small"
v-model=
"msg.menuTitle
"
></el-input>
<el-input
type=
"text"
size=
"small"
v-model=
"postMsg.MenuNavTitle"
maxlength=
"10
"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单栏样式"
size=
"small"
>
<el-radio-group
v-model=
"msg.menu
Style"
>
<el-radio
:label=
"1
"
>
列表形式
</el-radio>
<el-radio
:label=
"2
"
>
九宫格形式
</el-radio>
<el-radio-group
v-model=
"postMsg.MenuNav
Style"
>
<el-radio
:label=
"0
"
>
列表形式
</el-radio>
<el-radio
:label=
"1
"
>
九宫格形式
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"菜单栏"
size=
"small"
>
<div
class=
"LastMenuDiv"
>
<div
class=
"menu-add"
>
<el-button
plain
size=
"mini
"
>
添加
</el-button>
<el-button
plain
size=
"mini"
@
click=
"isShowLink=true
"
>
添加
</el-button>
</div>
<div
class=
"Lastmenu_item"
v-for=
"(item,index) in msg.menuArr"
:key=
"index"
@
click=
"upDateMsg(item,4)
"
>
<div
class=
"Lastmenu_item"
v-for=
"(item,index) in postMsg.SelfMenuList"
:key=
"index
"
>
<div
class=
"LastMenuFirst"
>
<div
class=
"LastMenu_image"
:style=
"{backgroundImage:'url('+ item.image
+ ')'}"
></div>
<div
class=
"LastMenu_image"
:style=
"{backgroundImage:'url('+ item.MenuIcon
+ ')'}"
></div>
</div>
<div
class=
"LastMenu_Second"
>
{{item.n
ame}}
</div>
<div
class=
"LastMenu_Second"
>
{{item.MenuN
ame}}
</div>
<div
class=
"LastMenu_Third"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"编辑"
placement=
"top-start"
>
<el-button
circle
type=
"primary"
size=
"mini"
icon=
"el-icon-edit"
></el-button>
<el-button
circle
type=
"primary"
size=
"mini"
icon=
"el-icon-edit"
@
click=
"upDateMsg(item,4)"
>
</el-button>
</el-tooltip>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"删除"
placement=
"top-start"
>
<el-button
circle
type=
"danger"
size=
"mini"
icon=
"el-icon-delete"
></el-button>
<el-button
circle
type=
"danger"
size=
"mini"
icon=
"el-icon-delete"
@
click=
"deleteItem(index,item)"
>
</el-button>
</el-tooltip>
</div>
</div>
...
...
@@ -558,6 +619,8 @@
</el-form-item>
</el-form>
</div>
<el-button
size=
"small"
type=
"primary"
@
click=
"SetMiniUserCenterConfig()"
>
保存
</el-button>
<el-button
size=
"small"
@
click=
"resetInfo()"
>
恢复默认
</el-button>
</div>
</div>
...
...
@@ -565,9 +628,10 @@
<el-dialog
:title=
"commonEditTitle"
:visible
.
sync=
"isShowDialog"
width=
"450px"
>
<el-form
label-width=
"120px"
>
<el-form-item
label=
"名称"
>
<el-input
type=
"text"
:disabled=
"EditIndex==1||EditIndex==2"
v-model=
"modifyMsg.name"
size=
"small"
class=
"w200"
maxlength=
"100"
/>
<el-input
type=
"text"
:disabled=
"EditIndex==1||EditIndex==2"
v-model=
"modifyMsg.name"
size=
"small"
class=
"w200"
maxlength=
"100"
/>
</el-form-item>
<el-form-item
label=
"图标"
>
<el-form-item
label=
"图标"
>
<div>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"SuggestSize"
placement=
"top-start"
>
<el-button
size=
"small"
>
选择文件
</el-button>
...
...
@@ -584,148 +648,434 @@
<el-button
size=
"small"
type=
"primary"
@
click=
"updateInfo()"
>
提交
</el-button>
</span>
</el-dialog>
<el-dialog
title=
"选择链接"
:visible
.
sync=
"isShowLink"
width=
"800px"
>
<chooseMeun
ref=
"chooseMeun"
>
</chooseMeun>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"isShowLink=false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"danger"
@
click=
"getMenu()"
>
确 定
</el-button>
</span>
</el-dialog>
</div>
</template>
<
script
>
import
chooseMeun
from
"../common/chooseMeun.vue"
;
export
default
{
data
()
{
return
{
commonEditTitle
:
''
,
isShowDialog
:
false
,
SuggestSize
:
''
,
EditIndex
:
1
,
msg
:{
//是否显示链接弹窗
isShowLink
:
false
,
commonEditTitle
:
''
,
isShowDialog
:
false
,
SuggestSize
:
''
,
EditIndex
:
1
,
defaultMsg
:
{
//背景图片
defaultImg
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_default.jpg'
,
defaultImg
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_default.jpg'
,
//普通用户图标
averageUser
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_default.jpg'
,
MemberBgImg
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_default.jpg'
,
//会员中心背景图
memberCenter
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_cardmember-0.png'
,
VipBgImg
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_cardmember-0.png'
,
//头像样式
headerPosition
:
1
,
HeadStyle
:
1
,
//收藏足迹栏显示状态
isShowCollectBar
:
1
,
//收藏足迹栏
CollectArr
:[{
name
:
'我的收藏'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_favorite.png'
},{
name
:
'我的足迹'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_foot.png'
}],
IsShowFavorite
:
0
,
//收藏夹默认图片
FavoriteIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_favorite.png'
,
//足迹默认图片
FootIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_foot.png'
,
//订单栏显示状态
isShowOrder
:
1
,
//订单栏
OrderArr
:[{
name
:
'待付款'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-0.png'
},{
name
:
'待发货'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-1.png'
},{
name
:
'待收货'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-2.png'
},{
name
:
'待评价'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-3.png'
},{
name
:
'售后'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-4.png'
}],
IsShowOrderNav
:
0
,
//待付款
OrderNoPayIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-0.png'
,
//待发货
OrderNoSendIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-1.png'
,
//待收货
OrderNoReciveIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-2.png'
,
//待评价
OrderNoPingJiaIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-3.png'
,
//售后
OrderBeforeSalesIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-4.png'
,
//显示状态
isShowStatus
:
1
,
//我的账户
MyAccount
:[{
name
:
'积分'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_integral.png'
},{
name
:
'余额'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_balance.png'
},{
name
:
'优惠券'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_coupon.png'
},{
name
:
'卡券'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_card.png'
}],
IsShowAccountNav
:
0
,
//积分
IntegralIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_integral.png'
,
//余额
BalanceIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_balance.png'
,
//优惠券
CouponIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_coupon.png'
,
//卡券
CardIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_card.png'
,
//菜单栏显示状态
menuStatus
:
1
,
IsShowMenuNav
:
0
,
//菜单栏标题
menuTitle
:
''
,
MenuNavTitle
:
''
,
//菜单栏样式
menuStyle
:
2
,
menuArr
:[{
name
:
'全部订单'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-all.png'
},{
name
:
'我的订单'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order.png'
},{
name
:
'客服'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_service.png'
},{
name
:
'分销中心'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_sharecenter.png'
},{
name
:
'我的卡券'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_usercard.png'
},{
name
:
'我的优惠券'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_usercoupons.png'
},{
name
:
'领券中心'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_coupons.png'
},{
name
:
'积分明细'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_score.png'
},{
name
:
'商城管理'
,
image
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_setting.png'
}]
MenuNavStyle
:
0
,
//全部订单
AllOrderIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order-all.png'
,
//我的订单
MyOrderIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_order.png'
,
//客服
CustomerServiceIcon
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_service.png'
,
//分销中心
user_sharecenter
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_sharecenter.png'
,
//我的卡券
user_usercard
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_usercard.png'
,
//我的优惠券
user_usercoupons
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_usercoupons.png'
,
//领券中心
user_coupons
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_coupons.png'
,
//积分明细
user_score
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_score.png'
,
//商城管理
user_setting
:
this
.
domainManager
().
ImageUrl
+
'/Static/user_setting.png'
,
},
modifyMsg
:
{
name
:
''
,
image
:
''
},
//用户中心配置
userCenterMsg
:
{
MenuList
:
[],
//菜单列表
},
postMsg
:
{
MallBaseId
:
0
,
DefaultBgImg
:
""
,
//会员中心默认背景
MemberBgImg
:
""
,
//会员中心普通用户背景
VipBgImg
:
""
,
//会员中心Vip背景
HeadStyle
:
0
,
//会员中心头像样式类型(1-头像靠左,2-头像居中,3-头像内嵌)
HeadStyleStr
:
""
,
//会员中心头像样式字符串
IsShowFavorite
:
0
,
//是否显示收藏夹(0-显示,1-不显示)
IsShowOrderNav
:
0
,
//是否显示订单栏(0-显示,1-不显示)
IsShowAccountNav
:
0
,
//是否显示账户栏(0-显示,1-不显示)
IsShowMenuNav
:
0
,
//是否显示菜单栏(0-显示,1-不显示)
MenuNavTitle
:
""
,
//菜单栏标题
MenuNavStyle
:
0
,
//菜单栏样式(0-列表,1-九宫格)
FavoriteFootMenuList
:
[],
//收藏足迹菜单
OrderMenuList
:
[],
//订单菜单
AccountMenuList
:
[],
//账号菜单
SelfMenuList
:
[],
//自定义菜单
},
modifyMsg
:{
name
:
''
,
image
:
''
}
};
},
components
:
{
chooseMeun
},
created
()
{
this
.
getMenuList
();
},
methods
:
{
getMenu
()
{
//调用子组件方法
var
obj
=
this
.
$refs
.
chooseMeun
.
getChooseMenu
();
this
.
postMsg
.
SelfMenuList
.
push
({
DetailId
:
0
,
MallBaseId
:
0
,
MenuType
:
4
,
MenuName
:
obj
.
PageName
,
MenuIcon
:
""
,
MenuUrl
:
obj
.
PageUrl
});
this
.
isShowLink
=
false
;
},
//修改确定
updateInfo
()
{
this
.
isShowDialog
=
false
;
updateInfo
()
{
this
.
isShowDialog
=
false
;
},
//修改方法
upDateMsg
(
item
,
index
)
{
this
.
isShowDialog
=
true
;
this
.
EditIndex
=
index
;
switch
(
index
)
{
upDateMsg
(
item
,
index
)
{
this
.
isShowDialog
=
true
;
this
.
EditIndex
=
index
;
switch
(
index
)
{
case
1
:
this
.
commonEditTitle
=
'收藏栏编辑'
;
this
.
SuggestSize
=
'建议尺寸:40*40'
;
this
.
commonEditTitle
=
'收藏栏编辑'
;
this
.
SuggestSize
=
'建议尺寸:40*40'
;
break
;
case
2
:
this
.
commonEditTitle
=
'订单栏编辑'
;
this
.
SuggestSize
=
'建议尺寸:60*60'
;
this
.
commonEditTitle
=
'订单栏编辑'
;
this
.
SuggestSize
=
'建议尺寸:60*60'
;
break
;
case
3
:
this
.
commonEditTitle
=
'我的账户编辑'
;
this
.
SuggestSize
=
'建议尺寸:26*26'
;
this
.
commonEditTitle
=
'我的账户编辑'
;
this
.
SuggestSize
=
'建议尺寸:26*26'
;
break
;
case
4
:
this
.
commonEditTitle
=
'订单栏编辑'
;
this
.
SuggestSize
=
'建议尺寸:50*50'
;
this
.
commonEditTitle
=
'订单栏编辑'
;
this
.
SuggestSize
=
'建议尺寸:50*50'
;
break
;
}
this
.
modifyMsg
.
name
=
item
.
MenuName
;
this
.
modifyMsg
.
image
=
item
.
MenuIcon
;
},
//获取用户中心配置
getUserCenterConfig
()
{
this
.
apipost
(
"/api/Tenant/GetUserCenterConfig"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
var
jsonData
=
res
.
data
.
data
;
if
(
jsonData
.
DefaultBgImg
)
{
this
.
postMsg
.
DefaultBgImg
=
jsonData
.
DefaultBgImg
;
}
else
{
this
.
postMsg
.
DefaultBgImg
=
this
.
defaultMsg
.
defaultImg
;
}
if
(
jsonData
.
MemberBgImg
)
{
this
.
postMsg
.
MemberBgImg
=
jsonData
.
MemberBgImg
;
}
else
{
this
.
postMsg
.
MemberBgImg
=
this
.
defaultMsg
.
MemberBgImg
;
}
if
(
jsonData
.
VipBgImg
)
{
this
.
postMsg
.
VipBgImg
=
jsonData
.
VipBgImg
;
}
else
{
this
.
postMsg
.
VipBgImg
=
this
.
defaultMsg
.
VipBgImg
;
}
if
(
jsonData
.
HeadStyle
)
{
this
.
postMsg
.
HeadStyle
=
jsonData
.
HeadStyle
;
}
else
{
this
.
postMsg
.
HeadStyle
=
this
.
defaultMsg
.
HeadStyle
;
}
if
(
jsonData
.
IsShowFavorite
)
{
this
.
postMsg
.
IsShowFavorite
=
jsonData
.
IsShowFavorite
;
}
else
{
this
.
postMsg
.
IsShowFavorite
=
this
.
defaultMsg
.
IsShowFavorite
;
}
if
(
jsonData
.
IsShowOrderNav
)
{
this
.
postMsg
.
IsShowOrderNav
=
jsonData
.
IsShowOrderNav
;
}
else
{
this
.
postMsg
.
IsShowOrderNav
=
this
.
defaultMsg
.
IsShowOrderNav
;
}
if
(
jsonData
.
IsShowAccountNav
)
{
this
.
postMsg
.
IsShowAccountNav
=
jsonData
.
IsShowAccountNav
;
}
else
{
this
.
postMsg
.
IsShowAccountNav
=
this
.
defaultMsg
.
IsShowAccountNav
;
}
if
(
jsonData
.
IsShowMenuNav
)
{
this
.
postMsg
.
IsShowMenuNav
=
jsonData
.
IsShowMenuNav
;
}
else
{
this
.
postMsg
.
IsShowMenuNav
=
this
.
defaultMsg
.
IsShowMenuNav
;
}
if
(
jsonData
.
MenuNavTitle
)
{
this
.
postMsg
.
MenuNavTitle
=
jsonData
.
MenuNavTitle
;
}
else
{
this
.
postMsg
.
MenuNavTitle
=
this
.
defaultMsg
.
MenuNavTitle
;
}
if
(
jsonData
.
MenuNavStyle
)
{
this
.
postMsg
.
MenuNavStyle
=
jsonData
.
MenuNavStyle
;
}
else
{
this
.
postMsg
.
MenuNavStyle
=
this
.
defaultMsg
.
MenuNavStyle
;
}
//收藏足迹栏
if
(
jsonData
.
FavoriteFootMenuList
)
{
this
.
postMsg
.
FavoriteFootMenuList
=
jsonData
.
FavoriteFootMenuList
;
}
else
{
this
.
userCenterMsg
.
MenuList
.
forEach
(
item
=>
{
if
(
item
.
PageTypeId
==
1
)
{
item
.
SubMenuList
.
forEach
(
subItem
=>
{
if
(
subItem
.
PageName
==
"我的收藏"
||
subItem
.
PageName
==
"我的足迹"
)
{
var
dObj
=
{
DetailId
:
0
,
MallBaseId
:
0
,
MenuType
:
item
.
PageTypeId
,
MenuName
:
subItem
.
PageName
,
MenuIcon
:
""
,
MenuUrl
:
subItem
.
PageUrl
};
if
(
subItem
.
PageName
==
"我的收藏"
)
{
dObj
.
MenuIcon
=
this
.
defaultMsg
.
FavoriteIcon
;
}
if
(
subItem
.
PageName
==
"我的足迹"
)
{
dObj
.
MenuIcon
=
this
.
defaultMsg
.
FootIcon
;
}
this
.
postMsg
.
FavoriteFootMenuList
.
push
(
dObj
);
}
})
}
})
}
//订单栏
if
(
jsonData
.
OrderMenuList
)
{
this
.
postMsg
.
OrderMenuList
=
jsonData
.
OrderMenuList
;
}
else
{
this
.
userCenterMsg
.
MenuList
.
forEach
(
item
=>
{
if
(
item
.
PageTypeId
==
3
)
{
item
.
SubMenuList
.
forEach
(
subItem
=>
{
if
(
subItem
.
PageName
==
"待付款"
||
subItem
.
PageName
==
"待发货"
||
subItem
.
PageName
==
"待收货"
||
subItem
.
PageName
==
"待评价"
||
subItem
.
PageName
==
"售后"
)
{
var
dObj
=
{
DetailId
:
0
,
MallBaseId
:
0
,
MenuType
:
item
.
PageTypeId
,
MenuName
:
subItem
.
PageName
,
MenuIcon
:
""
,
MenuUrl
:
subItem
.
PageUrl
};
switch
(
subItem
.
PageName
)
{
case
"待付款"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
OrderNoPayIcon
;
break
;
case
"待发货"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
OrderNoSendIcon
;
break
;
case
"待收货"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
OrderNoReciveIcon
;
break
;
case
"待评价"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
OrderNoPingJiaIcon
;
break
;
case
"售后"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
OrderBeforeSalesIcon
;
break
;
}
this
.
postMsg
.
OrderMenuList
.
push
(
dObj
);
}
})
}
})
}
//账户栏
if
(
jsonData
.
AccountMenuList
)
{
this
.
postMsg
.
AccountMenuList
=
jsonData
.
AccountMenuList
;
}
else
{
this
.
userCenterMsg
.
MenuList
.
forEach
(
item
=>
{
if
(
item
.
PageTypeId
==
2
)
{
item
.
SubMenuList
.
forEach
(
subItem
=>
{
if
(
subItem
.
PageName
==
"积分明细"
||
subItem
.
PageName
==
"余额记录"
||
subItem
.
PageName
==
"我的优惠券"
||
subItem
.
PageName
==
"我的卡卷"
)
{
var
dObj
=
{
DetailId
:
0
,
MallBaseId
:
0
,
MenuType
:
item
.
PageTypeId
,
MenuName
:
subItem
.
PageName
,
MenuIcon
:
""
,
MenuUrl
:
subItem
.
PageUrl
};
switch
(
subItem
.
PageName
)
{
case
"积分明细"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
IntegralIcon
;
break
;
case
"余额记录"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
BalanceIcon
;
break
;
case
"我的优惠券"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
CouponIcon
;
break
;
case
"我的卡卷"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
CardIcon
;
break
;
}
this
.
postMsg
.
AccountMenuList
.
push
(
dObj
);
}
})
}
})
}
//其它菜单栏
if
(
jsonData
.
SelfMenuList
)
{
this
.
postMsg
.
SelfMenuList
=
jsonData
.
SelfMenuList
;
}
else
{
this
.
userCenterMsg
.
MenuList
.
forEach
(
item
=>
{
if
(
item
.
PageTypeId
>
0
)
{
item
.
SubMenuList
.
forEach
(
subItem
=>
{
if
(
subItem
.
PageName
==
"全部订单"
||
subItem
.
PageName
==
"我的订单"
||
subItem
.
PageName
==
"客服"
||
subItem
.
PageName
==
"分销中心"
||
subItem
.
PageName
==
"我的卡券"
||
subItem
.
PageName
==
"我的优惠券"
||
subItem
.
PageName
==
"领券中心"
||
subItem
.
PageName
==
"积分明细"
||
subItem
.
PageName
==
"商城管理"
)
{
var
dObj
=
{
DetailId
:
0
,
MallBaseId
:
0
,
MenuType
:
4
,
MenuName
:
subItem
.
PageName
,
MenuIcon
:
""
,
MenuUrl
:
subItem
.
PageUrl
};
switch
(
subItem
.
PageName
)
{
case
"全部订单"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
AllOrderIcon
;
break
;
case
"我的订单"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
MyOrderIcon
;
break
;
case
"客服"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
CustomerServiceIcon
;
break
;
case
"分销中心"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
user_sharecenter
;
break
;
case
"我的卡券"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
user_usercard
;
break
;
case
"我的优惠券"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
user_usercoupons
;
break
;
case
"领券中心"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
user_coupons
;
break
;
case
"积分明细"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
user_score
;
break
;
case
"商城管理"
:
dObj
.
MenuIcon
=
this
.
defaultMsg
.
user_setting
;
break
;
}
this
.
postMsg
.
SelfMenuList
.
push
(
dObj
);
}
})
}
this
.
modifyMsg
.
name
=
item
.
name
;
this
.
modifyMsg
.
image
=
item
.
image
;
})
}
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
mounted
()
{
getMenuList
()
{
this
.
apipost
(
"/api/Tenant/GetMiniprogramPageListExt"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
userCenterMsg
.
MenuList
=
res
.
data
.
data
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
SetMiniUserCenterConfig
()
{
this
.
apipost
(
"/api/Tenant/SetMiniUserCenterConfig"
,
this
.
postMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getUserCenterConfig
();
this
.
Success
(
res
.
data
.
message
);
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
deleteItem
(
index
,
item
)
{
var
that
=
this
;
that
.
Confirm
(
"是否删除此菜单?"
,
function
()
{
if
(
item
.
DetailId
>
0
)
{
that
.
apipost
(
"/api/Tenant/RemoveMiniUserCenterMenu"
,
{
DetailId
:
item
.
DetailId
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{}
else
{
that
.
Info
(
res
.
data
.
message
);
}
})
}
that
.
postMsg
.
SelfMenuList
.
splice
(
index
,
1
);
});
},
resetInfo
()
{
}
},
mounted
()
{
this
.
getUserCenterConfig
();
}
};
...
...
src/components/common/chooseMeun.vue
View file @
7cae5089
...
...
@@ -42,7 +42,8 @@
var
obj
=
{
PageUrl
:
""
,
IsParameter
:
0
,
ParameterValue
:
""
ParameterValue
:
""
,
PageName
:
""
};
if
(
this
.
dataList
&&
this
.
dataList
.
length
>
0
)
{
this
.
dataList
.
forEach
(
item
=>
{
...
...
@@ -52,6 +53,7 @@
obj
.
PageUrl
=
subItem
.
PageUrl
;
obj
.
IsParameter
=
subItem
.
IsParameter
;
obj
.
ParameterValue
=
subItem
.
ParameterValue
;
obj
.
PageName
=
subItem
.
PageName
;
}
})
}
...
...
src/components/system/minimenu.vue
View file @
7cae5089
...
...
@@ -29,7 +29,7 @@
<div
class=
"query-box"
>
名称:
<el-input
type=
"text"
style=
"width:234px;"
size=
"small"
v-model=
"msg.PageName"
clearable
@
keyup
.
enter
.
native=
"msg.pageIndex=1,getPageList()"
></el-input>
等级
:
<el-select
style=
"width:234px;"
size=
"small"
v-model=
"msg.QPageType"
>
类型
:
<el-select
style=
"width:234px;"
size=
"small"
v-model=
"msg.QPageType"
>
<el-option
label=
"全部"
:key=
"0"
:value=
"0"
></el-option>
<el-option
v-for=
"item in pageType"
:key=
"item.Id"
:value=
"item.Id"
:label=
"item.Name"
></el-option>
</el-select>
...
...
@@ -84,7 +84,7 @@
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"25"
v-model=
"addMsg.PageName"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单连接"
prop=
"MenuUrl"
>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"
25
"
v-model=
"addMsg.PageUrl"
></el-input>
<el-input
type=
"text"
style=
"width:234px"
size=
"small"
maxlength=
"
100
"
v-model=
"addMsg.PageUrl"
></el-input>
</el-form-item>
<el-form-item
label=
"菜单类型"
>
<el-select
style=
"width:234px;"
size=
"small"
v-model=
"addMsg.PageType"
>
...
...
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