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
14d8a2fe
Commit
14d8a2fe
authored
May 27, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改问题
parent
78906110
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
3 deletions
+16
-3
imgCube.vue
src/components/StoreDesign/imgCube.vue
+15
-2
link.vue
src/components/sallCenter/plugin/link.vue
+1
-1
No files found.
src/components/StoreDesign/imgCube.vue
View file @
14d8a2fe
...
...
@@ -61,14 +61,14 @@
<img
:src=
"item.ImgUrl"
class=
"cube_blockImg"
alt=
""
>
</div>
</el-form-item>
<el-form-item
label=
"
模板
设置"
>
<el-form-item
label=
"
板块
设置"
>
<template
v-if=
"addMsg.MagicDataList.length==0"
>
<el-tag
type=
"danger"
>
请先选择样式
</el-tag>
</
template
>
<
template
v-else
>
<el-row
style=
"margin-bottom:15px;"
v-for=
"(subItem,subIndex) in addMsg.MagicDataList"
:key=
"subIndex"
>
<el-col
:span=
"4"
>
<el-tooltip
class=
"item"
effect=
"dark"
content=
"建议尺寸:750*360
"
placement=
"top"
>
<el-tooltip
class=
"item"
effect=
"dark"
:content=
"'建议尺寸:'+subItem.size
"
placement=
"top"
>
<el-button
size=
"mini"
@
click=
"choicImg=true,commonIndex=subIndex"
>
选择图片
</el-button>
</el-tooltip>
<div
class=
"customize-share-title"
>
...
...
@@ -151,34 +151,42 @@
//样式选择枚举
styleList
:
[{
Id
:
0
,
size
:[
'750*360'
],
Style
:
1
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-1.png'
},
{
Id
:
1
,
size
:[
'300*360'
,
'450*360'
],
Style
:
2
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-2.png'
},
{
Id
:
2
,
size
:[
'300*360'
,
'450*180'
,
'450*180'
],
Style
:
3
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-3.png'
},
{
Id
:
3
,
size
:[
'300*360'
,
'450*180'
,
'225*180'
,
'225*180'
],
Style
:
4
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube1-4.png'
},
{
Id
:
4
,
size
:[
'375*240'
,
'375*240'
],
Style
:
2
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube2-1.png'
},
{
Id
:
5
,
size
:[
'250*240'
,
'250*240'
,
'250*240'
],
Style
:
3
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube2-2.png'
},
{
Id
:
6
,
size
:[
'188*188'
,
'188*188'
,
'188*188'
,
'188*188'
],
Style
:
4
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube2-3.png'
},
{
Id
:
7
,
size
:[
'375*186'
,
'375*186'
,
'375*186'
,
'375*186'
],
Style
:
4
,
ImgUrl
:
this
.
domainManager
().
ImageUrl
+
'/Static/cube3-1.png'
}],
...
...
@@ -241,6 +249,7 @@
this
.
addMsg
.
Id
=
0
;
this
.
addMsg
.
Name
=
''
;
this
.
addMsg
.
Style
=
0
;
this
.
isActive
=
-
1
;
this
.
addMsg
.
MagicDataList
=
[];
this
.
defaultMsg
.
forEach
(
item
=>
{
item
.
Link
=
""
;
...
...
@@ -258,6 +267,7 @@
if
(
this
.
addMsg
.
MagicDataList
&&
this
.
addMsg
.
MagicDataList
.
length
>
0
)
{
this
.
addMsg
.
MagicDataList
.
forEach
((
item
,
index
)
=>
{
this
.
defaultMsg
[
index
]
=
item
;
item
.
size
=
this
.
styleList
[
this
.
addMsg
.
Style
].
size
[
index
]
});
}
this
.
imgCubeAdd
=
false
;
...
...
@@ -289,6 +299,9 @@
for
(
var
i
=
0
;
i
<
Style
;
i
++
)
{
this
.
addMsg
.
MagicDataList
.
push
(
this
.
defaultMsg
[
i
]);
}
this
.
addMsg
.
MagicDataList
.
forEach
((
x
,
index
)
=>
{
x
.
size
=
this
.
styleList
[
Id
].
size
[
index
]
})
},
//选择图片
SelectId
(
msg
)
{
...
...
src/components/sallCenter/plugin/link.vue
View file @
14d8a2fe
...
...
@@ -278,7 +278,7 @@
},
//选择图片
SelectId
(
msg
)
{
this
.
data
.
picUrl
=
msg
.
url
;
this
.
data
.
picUrl
=
this
.
getIconLink
(
msg
.
url
)
;
this
.
choicImg
=
false
;
},
//获取选择链接
...
...
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