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
779f7819
Commit
779f7819
authored
May 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
b43798f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
46 additions
and
27 deletions
+46
-27
authorization.vue
src/components/sallCenter/authorization.vue
+46
-27
No files found.
src/components/sallCenter/authorization.vue
View file @
779f7819
...
@@ -8,8 +8,8 @@
...
@@ -8,8 +8,8 @@
<div
style=
"display:flex;"
flex=
"box:first"
>
<div
style=
"display:flex;"
flex=
"box:first"
>
<div
class=
"Auth_outside"
>
<div
class=
"Auth_outside"
>
<div
flex=
"dir:left main:center cross:center"
class=
"inside"
>
<div
flex=
"dir:left main:center cross:center"
class=
"inside"
>
<img
v-if=
"addMsg.
imgUrl!=''"
class=
"authPic"
:src=
"getIconLink(addMsg.img
Url)"
alt=
""
>
<img
v-if=
"addMsg.
AuthUrl!=''"
class=
"authPic"
:src=
"getIconLink(addMsg.Auth
Url)"
alt=
""
>
<img
v-else
class=
"authPic"
:src=
"getIconLink(addMsg.
img
Url)"
alt=
""
/>
<img
v-else
class=
"authPic"
:src=
"getIconLink(addMsg.
Auth
Url)"
alt=
""
/>
</div>
</div>
</div>
</div>
<div
class=
"Auth_right"
>
<div
class=
"Auth_right"
>
...
@@ -17,23 +17,22 @@
...
@@ -17,23 +17,22 @@
<div
slot=
"header"
>
设置
</div>
<div
slot=
"header"
>
设置
</div>
<el-form
label-width=
"100px"
>
<el-form
label-width=
"100px"
>
<el-form-item
label=
"是否开启"
>
<el-form-item
label=
"是否开启"
>
<el-switch
v-model=
"addMsg.
isOpen
"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
<el-switch
v-model=
"addMsg.
IsOpenAuth
"
:active-value=
"1"
:inactive-value=
"0"
></el-switch>
</el-form-item>
</el-form-item>
<el-form-item
label=
"上传图片"
>
<el-form-item
label=
"上传图片"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"推荐尺寸650*700"
placement=
"bottom"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"推荐尺寸650*700"
placement=
"bottom"
>
<el-button
size=
"mini"
@
click=
"choicImg=true"
>
选择文件
</el-button>
<el-button
size=
"mini"
@
click=
"choicImg=true"
>
选择文件
</el-button>
</el-tooltip>
</el-tooltip>
<div
class=
"Auth_imgList"
flex=
"main:center cross:center"
v-if=
"addMsg.
img
Url!=''"
>
<div
class=
"Auth_imgList"
flex=
"main:center cross:center"
v-if=
"addMsg.
Auth
Url!=''"
>
<img
:src=
"getIconLink(addMsg.
img
Url)"
alt=
""
>
<img
:src=
"getIconLink(addMsg.
Auth
Url)"
alt=
""
>
<el-button
type=
"danger"
v-if=
"addMsg.
img
Url!=''"
class=
"image-delete"
size=
"mini"
<el-button
type=
"danger"
v-if=
"addMsg.
Auth
Url!=''"
class=
"image-delete"
size=
"mini"
icon=
"el-icon-close"
@
click
.
stop=
"addMsg.
img
Url=''"
circle
></el-button>
icon=
"el-icon-close"
@
click
.
stop=
"addMsg.
Auth
Url=''"
circle
></el-button>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"热区"
>
<el-form-item
label=
"热区"
>
<choiceArea
ref=
"choiceArea"
:multiple=
"true"
:max=
"2"
<choiceArea
ref=
"choiceArea"
:multiple=
"true"
:max=
"2"
:pic-url=
"getIconLink(addMsg.AuthUrl)"
:pic-url=
"getIconLink(addMsg.imgUrl)"
mode=
'auth'
:hotspot-array=
"addMsg.AuthDataList"
width=
"650px"
height=
"700px"
mode=
'auth'
:hotspot-array=
"addMsg.hotspot"
width=
"650px"
height=
"700px"
@
confirm=
"selectHotspot"
@
confirm=
"selectHotspot"
:is-link=
"false"
>
:is-link=
"false"
>
<el-button
size=
"mini"
>
划分热区
</el-button>
<el-button
size=
"mini"
>
划分热区
</el-button>
</choiceArea>
</choiceArea>
<div>
注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区
</div>
<div>
注:需要划分两个热区:一个是登录按钮热区,一个是暂不登录按钮热区
</div>
...
@@ -66,9 +65,10 @@
...
@@ -66,9 +65,10 @@
Name
:
""
,
Name
:
""
,
},
},
addMsg
:
{
addMsg
:
{
isOpen
:
0
,
//是否开启
MallBaseId
:
0
,
imgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/auth-default.png'
,
//图片
IsOpenAuth
:
0
,
//是否开启
hotspot
:
[]
//热区
AuthUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/auth-default.png'
,
//图片
AuthDataList
:
[]
//热区
},
},
};
};
},
},
...
@@ -80,31 +80,50 @@
...
@@ -80,31 +80,50 @@
choiceArea
choiceArea
},
},
methods
:
{
methods
:
{
GetData
()
{
this
.
addMsg
.
MallBaseId
=
this
.
getLocalStorage
().
MallBaseId
;
this
.
apipost
(
"/api/Tenant/GetMiniPrograme"
,
{
MallBaseId
:
this
.
addMsg
.
MallBaseId
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
addMsg
.
IsOpenAuth
=
res
.
data
.
data
.
IsOpenAuth
;
if
(
res
.
data
.
data
.
AuthUrl
)
{
this
.
addMsg
.
AuthUrl
=
res
.
data
.
data
.
AuthUrl
;
}
if
(
res
.
data
.
data
.
AuthDataList
&&
res
.
data
.
data
.
AuthDataList
.
length
>
0
)
{
this
.
addMsg
.
AuthDataList
=
res
.
data
.
data
.
AuthDataList
;
}
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
//保存
//保存
saveMsg
()
{
saveMsg
()
{
console
.
log
(
"this.addMsg"
,
this
.
addMsg
);
this
.
apipost
(
"/api/Tenant/SetMiniProgramMallAuth"
,
this
.
addMsg
,
res
=>
{
// this.apipost("/api/Tenant/SetMallMagic", this.addMsg, res => {
if
(
res
.
data
.
resultCode
==
1
)
{
// if (res.data.resultCode == 1) {
this
.
GetData
();
// this.getList();
this
.
Success
(
res
.
data
.
message
);
// this.clearInfo();
}
else
{
// this.authorizaAdd = true;
this
.
Info
(
res
.
data
.
message
);
// } else {
}
// this.Info(res.data.message);
})
// }
// })
},
},
//选择图片
//选择图片
SelectId
(
msg
)
{
SelectId
(
msg
)
{
this
.
addMsg
.
img
Url
=
this
.
getIconLink
(
msg
.
url
);
this
.
addMsg
.
Auth
Url
=
this
.
getIconLink
(
msg
.
url
);
this
.
choicImg
=
false
;
this
.
choicImg
=
false
;
},
},
// 热区选择(edit)
// 热区选择(edit)
selectHotspot
(
list
)
{
selectHotspot
(
list
)
{
this
.
addMsg
.
hotspo
t
=
list
;
this
.
addMsg
.
AuthDataLis
t
=
list
;
this
.
$refs
.
choiceArea
.
clearAll
();
this
.
$refs
.
choiceArea
.
clearAll
();
},
},
},
},
mounted
()
{}
mounted
()
{
this
.
GetData
();
}
};
};
</
script
>
</
script
>
...
...
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