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
0c42955f
Commit
0c42955f
authored
May 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面
parent
8b7106a1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
24 deletions
+29
-24
authorization.vue
src/components/sallCenter/authorization.vue
+29
-24
No files found.
src/components/sallCenter/authorization.vue
View file @
0c42955f
...
@@ -26,19 +26,22 @@
...
@@ -26,19 +26,22 @@
<div
class=
"Auth_imgList"
flex=
"main:center cross:center"
v-if=
"addMsg.imgUrl!=''"
>
<div
class=
"Auth_imgList"
flex=
"main:center cross:center"
v-if=
"addMsg.imgUrl!=''"
>
<img
:src=
"getIconLink(addMsg.imgUrl)"
alt=
""
>
<img
:src=
"getIconLink(addMsg.imgUrl)"
alt=
""
>
<el-button
type=
"danger"
v-if=
"addMsg.imgUrl!=''"
class=
"image-delete"
size=
"mini"
<el-button
type=
"danger"
v-if=
"addMsg.imgUrl!=''"
class=
"image-delete"
size=
"mini"
icon=
"el-icon-close"
@
click
.
stop=
"addMsg.imgUrl=''"
circle
></el-button>
icon=
"el-icon-close"
@
click
.
stop=
"addMsg.imgUrl=''"
circle
></el-button>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"热区"
>
<el-form-item
label=
"热区"
>
<choiceArea
:multiple=
"true"
:max=
"2"
:pic-url=
"addMsg.imgUrl==''?domainManager().ImageUrl+'/Static/auth-default.png':getIconLink(addMsg.imgUrl)"
mode=
'auth'
:hotspot-array=
"addMsg.hotspot"
<choiceArea
:multiple=
"true"
:max=
"2"
width=
"650px"
height=
"700px"
@
confirm=
"selectHotspot"
:is-link=
"false"
>
:pic-url=
"addMsg.imgUrl==''?domainManager().ImageUrl+'/Static/auth-default.png':getIconLink(addMsg.imgUrl)"
<el-button
size=
"mini"
>
划分热区
</el-button>
mode=
'auth'
:hotspot-array=
"addMsg.hotspot"
width=
"650px"
height=
"700px"
@
confirm=
"selectHotspot"
</choiceArea>
:is-link=
"false"
>
<div>
注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区
</div>
<el-button
size=
"mini"
>
划分热区
</el-button>
</choiceArea>
<div>
注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区
</div>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
</el-card>
</el-card>
<el-button
type=
"primary"
style=
"margin-top:20px;padding:9px 25px"
size=
"small"
@
click=
"saveMsg"
>
保存
</el-button>
<el-button
type=
"primary"
style=
"margin-top:20px;padding:9px 25px"
size=
"small"
@
click=
"saveMsg"
>
保存
</el-button>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -79,29 +82,28 @@
...
@@ -79,29 +82,28 @@
methods
:
{
methods
:
{
//保存
//保存
saveMsg
()
{
saveMsg
()
{
this
.
apipost
(
"/api/Tenant/SetMallMagic"
,
this
.
addMsg
,
res
=>
{
console
.
log
(
"this.addMsg"
,
this
.
addMsg
);
if
(
res
.
data
.
resultCode
==
1
)
{
// this.apipost("/api/Tenant/SetMallMagic", this.addMsg, res => {
this
.
getList
();
// if (res.data.resultCode == 1) {
this
.
clearInfo
();
// this.getList();
this
.
authorizaAdd
=
true
;
// this.clearInfo();
}
else
{
// this.authorizaAdd = true;
this
.
Info
(
res
.
data
.
message
);
// } else {
}
// this.Info(res.data.message);
})
// }
// })
},
},
//选择图片
//选择图片
SelectId
(
msg
)
{
SelectId
(
msg
)
{
this
.
addMsg
.
imgUrl
=
msg
.
url
;
this
.
addMsg
.
imgUrl
=
msg
.
url
;
this
.
choicImg
=
false
;
this
.
choicImg
=
false
;
},
},
// 热区选择(edit)
// 热区选择(edit)
selectHotspot
(
list
)
{
selectHotspot
(
list
)
{
this
.
addMsg
.
hotspot
=
list
;
this
.
addMsg
.
hotspot
=
list
;
},
},
},
},
mounted
()
{
mounted
()
{}
}
};
};
</
script
>
</
script
>
...
@@ -134,8 +136,8 @@
...
@@ -134,8 +136,8 @@
transform
:
scale
(
0.5
);
transform
:
scale
(
0.5
);
}
}
.authoriza
.Auth_imgList
{
.authoriza
.Auth_imgList
{
height
:
222px
;
height
:
222px
;
width
:
125px
;
width
:
125px
;
border
:
1px
solid
#e3e3e3
;
border
:
1px
solid
#e3e3e3
;
border-radius
:
2px
;
border-radius
:
2px
;
...
@@ -143,14 +145,17 @@
...
@@ -143,14 +145,17 @@
margin-bottom
:
10px
;
margin-bottom
:
10px
;
position
:
relative
;
position
:
relative
;
}
}
.authoriza
.Auth_imgList
img
{
.authoriza
.Auth_imgList
img
{
max-width
:
100%
;
max-width
:
100%
;
max-height
:
100%
;
max-height
:
100%
;
}
}
.authoriza
.image-delete
{
.authoriza
.image-delete
{
position
:
absolute
;
position
:
absolute
;
right
:
-8px
;
right
:
-8px
;
top
:
-8px
;
top
:
-8px
;
padding
:
4px
4px
;
padding
:
4px
4px
;
}
}
</
style
>
</
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