Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
0ede097e
Commit
0ede097e
authored
Jun 16, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 切换商户按钮的逻辑
parent
577a7bbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
3 deletions
+9
-3
change-store.vue
src/components/layout/components/change-store.vue
+9
-3
No files found.
src/components/layout/components/change-store.vue
View file @
0ede097e
<
template
>
<
template
>
<div
v-if=
"storeList.length >
1
"
>
<div
v-if=
"storeList.length >
0
"
>
<el-dropdown
@
command=
"onChangeStore"
>
<el-dropdown
v-if=
"storeList.length > 1"
@
command=
"onChangeStore"
>
<span
class=
"change-store-btn"
>
<span
class=
"change-store-btn"
>
{{
getActiveStoreName
}}
{{
getActiveStoreName
}}
<i
class=
"iconfont-hb3 iconxiajiantou change-store-icon"
></i>
<i
class=
"iconfont-hb3 iconxiajiantou change-store-icon"
></i>
...
@@ -20,6 +20,9 @@
...
@@ -20,6 +20,9 @@
</el-dropdown-item>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
<span
v-else
class=
"change-store-btn disabled"
>
{{
getActiveStoreName
}}
</span>
<el-dialog
:visible
.
sync=
"changeStore.show"
append-to-body
title=
"更改默认商户"
width=
"600px"
@
closed=
"onClosed"
>
<el-dialog
:visible
.
sync=
"changeStore.show"
append-to-body
title=
"更改默认商户"
width=
"600px"
@
closed=
"onClosed"
>
<div
class=
"change-store-title"
>
选择商户
</div>
<div
class=
"change-store-title"
>
选择商户
</div>
<el-select
class=
"change-store-selector"
v-model=
"changeStore.storeId"
>
<el-select
class=
"change-store-selector"
v-model=
"changeStore.storeId"
>
...
@@ -134,6 +137,9 @@ export default {
...
@@ -134,6 +137,9 @@ export default {
color
:
#303133
;
color
:
#303133
;
border-radius
:
4px
;
border-radius
:
4px
;
cursor
:
pointer
;
cursor
:
pointer
;
&.disabled
{
cursor
:
default
;
}
.change-store-icon
{
.change-store-icon
{
display
:
inline-block
;
display
:
inline-block
;
margin-left
:
5px
;
margin-left
:
5px
;
...
@@ -149,7 +155,7 @@ export default {
...
@@ -149,7 +155,7 @@ export default {
height
:
24px
;
height
:
24px
;
border-left
:
1px
solid
#dcdfe6
;
border-left
:
1px
solid
#dcdfe6
;
}
}
&
:hover
{
&
:
not
(
.disabled
)
:
hover
{
background
:
#f2f3f5
;
background
:
#f2f3f5
;
.change-store-icon
{
.change-store-icon
{
transform
:
rotateZ
(
180deg
);
transform
:
rotateZ
(
180deg
);
...
...
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