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
82d24547
Commit
82d24547
authored
Apr 23, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
20f83abc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
60 additions
and
28 deletions
+60
-28
Index.vue
src/components/Index.vue
+60
-28
No files found.
src/components/Index.vue
View file @
82d24547
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
<el-table-column
prop=
"address"
label=
"操作"
>
<el-table-column
prop=
"address"
label=
"操作"
>
<
template
slot-scope=
"scope"
>
<
template
slot-scope=
"scope"
>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"EditMall(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"EditMall(scope.row)"
>
编辑
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"
upCopyRight=true
"
>
版权
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"
GetCopyRight(scope.row)
"
>
版权
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"RemmoveMall(scope.row)"
>
禁用
</el-button>
<el-button
size=
"mini"
type=
"info"
plain
@
click=
"RemmoveMall(scope.row)"
>
禁用
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -252,30 +252,30 @@
...
@@ -252,30 +252,30 @@
<el-dialog
title=
"修改版权"
:visible
.
sync=
"upCopyRight"
width=
"500px"
>
<el-dialog
title=
"修改版权"
:visible
.
sync=
"upCopyRight"
width=
"500px"
>
<el-form
:model=
"copyRightMsg"
ref=
"copyRightMsg"
label-width=
"150px"
>
<el-form
:model=
"copyRightMsg"
ref=
"copyRightMsg"
label-width=
"150px"
>
<el-form-item
label=
"底部版权文字"
>
<el-form-item
label=
"底部版权文字"
>
<el-input
type=
"text"
style=
"width:250px"
size=
"small"
maxlength=
"100"
v-model=
"copyRightMsg.
Name
"
>
<el-input
type=
"text"
style=
"width:250px"
size=
"small"
maxlength=
"100"
v-model=
"copyRightMsg.
CopyRightWord
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
<el-form-item
label=
"底部版权图标"
>
<el-form-item
label=
"底部版权图标"
>
<div>
<div>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"建议尺寸:160*50"
placement=
"top-start"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"建议尺寸:160*50"
placement=
"top-start"
>
<el-upload
class=
"avatar-uploader"
action=
""
accept=
"image/jpeg,image/gif,image/png,image/bmp"
<el-upload
class=
"avatar-uploader"
action=
""
accept=
"image/jpeg,image/gif,image/png,image/bmp"
:show-file-list=
"false"
:http-request=
"UploadImage"
>
:show-file-list=
"false"
:http-request=
"UploadImage"
>
<el-button
size=
"small"
>
选择图片
</el-button>
<el-button
size=
"small"
>
选择图片
</el-button>
</el-upload>
</el-upload>
</el-tooltip>
</el-tooltip>
</div>
</div>
<div
class=
"indexApp_image"
>
<div
class=
"indexApp_image"
>
<img
v-if=
"copyRightMsg.img"
:src=
"copyRightMsg.img"
alt=
""
/>
<img
v-if=
"copyRightMsg.CopyRightImg"
:src=
"copyRightMsg.CopyRightImg"
alt=
""
/>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
label=
"底部版权链接"
>
<el-form-item
label=
"底部版权链接"
>
<el-input
type=
"password"
style=
"width:250px"
size=
"small"
maxlength=
"25"
v-model=
"copyRightMsg.Url
"
>
<el-input
style=
"width:250px"
size=
"small"
maxlength=
"25"
v-model=
"copyRightMsg.CopyRightLink
"
>
</el-input>
</el-input>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"upCopyRight = false"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"upCopyRight = false"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"
upPassWord
()"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"
UpdateCopyRight
()"
>
确 定
</el-button>
</span>
</span>
</el-dialog>
</el-dialog>
...
@@ -410,7 +410,7 @@
...
@@ -410,7 +410,7 @@
val
:
''
,
val
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
upDatePwd
:
false
,
upDatePwd
:
false
,
upCopyRight
:
false
,
upCopyRight
:
false
,
addMsg
:
{},
addMsg
:
{},
qMsg
:
{
qMsg
:
{
pageIndex
:
1
,
pageIndex
:
1
,
...
@@ -433,10 +433,11 @@
...
@@ -433,10 +433,11 @@
Password2
:
''
Password2
:
''
},
},
//修改版权MSG
//修改版权MSG
copyRightMsg
:{
copyRightMsg
:
{
Name
:
''
,
MallBaseId
:
0
,
//小程序Id
img
:
''
,
CopyRightWord
:
''
,
//版权文字
Url
:
''
CopyRightImg
:
''
,
//版权图片
CopyRightLink
:
''
,
//版权链接
},
},
rules
:
{
rules
:
{
name
:
[{
name
:
[{
...
@@ -661,13 +662,40 @@
...
@@ -661,13 +662,40 @@
})
})
},
},
//选择图片
//选择图片
UploadImage
(
file
){
UploadImage
(
file
)
{
this
.
UploadFileToTencent
(
this
.
FileType
().
UserImg
,
file
.
file
,
res
=>
{
this
.
UploadFileToTencent
(
this
.
FileType
().
UserImg
,
file
.
file
,
res
=>
{
if
(
res
.
resultCode
==
1
)
{
if
(
res
.
resultCode
==
1
)
{
this
.
copyRightMsg
.
i
mg
=
res
.
FileUrl
;
this
.
copyRightMsg
.
CopyRightI
mg
=
res
.
FileUrl
;
}
}
})
})
}
},
//版权信息
GetCopyRight
(
item
)
{
this
.
upCopyRight
=
true
;
this
.
copyRightMsg
.
MallBaseId
=
item
.
MallBaseId
;
this
.
apipost
(
"/api/Tenant/GetMiniPrograme"
,
{
MallBaseId
:
item
.
MallBaseId
,
},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
copyRightMsg
.
CopyRightWord
=
res
.
data
.
data
.
CopyRightWord
;
this
.
copyRightMsg
.
CopyRightImg
=
res
.
data
.
data
.
CopyRightImg
;
this
.
copyRightMsg
.
CopyRightLink
=
res
.
data
.
data
.
CopyRightLink
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
//修改版权
UpdateCopyRight
()
{
this
.
apipost
(
"/api/Tenant/SetMiniProgrameCopyRight"
,
this
.
copyRightMsg
,
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
getMiniPrograme
();
this
.
upCopyRight
=
false
;
}
else
{
this
.
Info
(
res
.
data
.
message
);
}
})
},
},
},
mounted
()
{
mounted
()
{
this
.
init
();
this
.
init
();
...
@@ -850,11 +878,15 @@
...
@@ -850,11 +878,15 @@
display
:
flex
;
display
:
flex
;
justify-content
:
space-between
;
justify-content
:
space-between
;
}
}
.indexApp_image
{
width
:
160px
;
.indexApp_image
{
height
:
50px
;
width
:
160px
;
height
:
50px
;
}
}
.indexApp_image
img
{
width
:
100%
;
height
:
100%
;
.indexApp_image
img
{
width
:
100%
;
height
:
100%
;
}
}
</
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