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
e8a7b9e2
Commit
e8a7b9e2
authored
Aug 21, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
166269ff
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
7 deletions
+24
-7
shareCategory.vue
src/components/Share/shareCategory.vue
+3
-4
templateEdit.vue
src/components/sallCenter/templateEdit.vue
+21
-3
No files found.
src/components/Share/shareCategory.vue
View file @
e8a7b9e2
...
@@ -16,11 +16,10 @@
...
@@ -16,11 +16,10 @@
@
click=
"msg.pageIndex=1,getList()"
>
</span>
@
click=
"msg.pageIndex=1,getList()"
>
</span>
</div>
</div>
<br>
<br>
<el-button
@
click=
"saveSort()"
size=
"small"
type=
"primary"
>
保存排序
</el-button>
<div
v-loading=
"loading"
flex=
"dir:left box:mean"
class=
"cat-list"
style=
"margin-top:20px;"
>
<div
v-loading=
"loading"
flex=
"dir:left box:mean"
class=
"cat-list"
style=
"margin-top:20px;"
>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
一级分类
</span>
<span>
一级分类
</span>
<el-button
@
click=
"saveSort()"
size=
"small"
type=
"primary"
style=
"float:right"
>
保存排序
</el-button>
</div>
</div>
<draggable
flex
v-model=
"dataFirst"
>
<draggable
flex
v-model=
"dataFirst"
>
<div
@
click=
"getChild(item,index)"
v-for=
"(item,index) in dataFirst"
<div
@
click=
"getChild(item,index)"
v-for=
"(item,index) in dataFirst"
...
@@ -53,7 +52,7 @@
...
@@ -53,7 +52,7 @@
</el-card>
</el-card>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
二级分类
</span>
<span>
二级分类
</span>
<el-button
@
click=
"saveSort()"
size=
"small"
type=
"primary"
style=
"float:right"
>
保存排序
</el-button>
</div>
</div>
<draggable
flex
v-model=
"dataSecond"
>
<draggable
flex
v-model=
"dataSecond"
>
<div
@
click=
"getSecond(item,index)"
v-for=
"(item,index) in dataSecond"
<div
@
click=
"getSecond(item,index)"
v-for=
"(item,index) in dataSecond"
...
@@ -86,7 +85,7 @@
...
@@ -86,7 +85,7 @@
</el-card>
</el-card>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<el-card
class=
"card-item-box"
shadow=
"never"
>
<div
slot=
"header"
class=
"clearfix"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
三级分类
</span>
<span>
三级分类
</span>
<el-button
@
click=
"saveSort()"
size=
"small"
type=
"primary"
style=
"float:right"
>
保存排序
</el-button>
</div>
</div>
<draggable
flex
v-model=
"dataThird"
>
<draggable
flex
v-model=
"dataThird"
>
<div
@
click=
"getThird(index)"
v-for=
"(item,index) in dataThird"
<div
@
click=
"getThird(index)"
v-for=
"(item,index) in dataThird"
...
...
src/components/sallCenter/templateEdit.vue
View file @
e8a7b9e2
...
@@ -280,6 +280,8 @@
...
@@ -280,6 +280,8 @@
@
comDelPlugin=
"comDelPlugin"
:index=
"index"
:dataLeng=
"dataList.length"
></imageText>
@
comDelPlugin=
"comDelPlugin"
:index=
"index"
:dataLeng=
"dataList.length"
></imageText>
<topic
v-if=
"item.Id=='topic'"
:topicData=
"item"
@
getSord=
"getSord"
@
comDelPlugin=
"comDelPlugin"
<topic
v-if=
"item.Id=='topic'"
:topicData=
"item"
@
getSord=
"getSord"
@
comDelPlugin=
"comDelPlugin"
:index=
"index"
:dataLeng=
"dataList.length"
></topic>
:index=
"index"
:dataLeng=
"dataList.length"
></topic>
<shopinfo
v-if=
"item.Id=='shop-info'"
:shopinfoData=
"item"
@
getSord=
"getSord"
@
comDelPlugin=
"comDelPlugin"
:index=
"index"
:dataLeng=
"dataList.length"
></shopinfo>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -386,6 +388,7 @@
...
@@ -386,6 +388,7 @@
import
quickNav
from
"../sallCenter/plugin/quick-nav.vue"
import
quickNav
from
"../sallCenter/plugin/quick-nav.vue"
import
imageText
from
"../sallCenter/plugin/image-text.vue"
import
imageText
from
"../sallCenter/plugin/image-text.vue"
import
topic
from
"../sallCenter/plugin/topic.vue"
import
topic
from
"../sallCenter/plugin/topic.vue"
import
shopinfo
from
"../sallCenter/plugin/shopinfo.vue"
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
import
ChooseImg
from
"@/components/global/ChooseImg.vue"
;
export
default
{
export
default
{
...
@@ -453,12 +456,13 @@
...
@@ -453,12 +456,13 @@
quickNav
,
quickNav
,
imageText
,
imageText
,
topic
,
topic
,
shopinfo
,
ChooseImg
ChooseImg
},
},
methods
:
{
methods
:
{
//选择图片
//选择图片
SelectId
(
msg
)
{
SelectId
(
msg
)
{
this
.
bgMsg
.
data
.
backgroundPicUrl
=
this
.
getIconLink
(
msg
.
url
);
this
.
bgMsg
.
data
.
backgroundPicUrl
=
this
.
getIconLink
(
msg
.
url
);
this
.
choicImg
=
false
;
this
.
choicImg
=
false
;
},
},
choose
(
num
,
position
)
{
choose
(
num
,
position
)
{
...
@@ -469,7 +473,7 @@
...
@@ -469,7 +473,7 @@
SetBgInfo
()
{
SetBgInfo
()
{
var
isExists
=
false
;
var
isExists
=
false
;
var
existsIndex
=
0
;
var
existsIndex
=
0
;
this
.
dataList
.
forEach
((
item
,
index
)
=>
{
this
.
dataList
.
forEach
((
item
,
index
)
=>
{
if
(
item
.
Id
==
"background"
)
{
if
(
item
.
Id
==
"background"
)
{
isExists
=
true
;
isExists
=
true
;
existsIndex
=
index
;
existsIndex
=
index
;
...
@@ -518,7 +522,6 @@
...
@@ -518,7 +522,6 @@
this
.
apipost
(
"/api/Tenant/GetPlugInList"
,
{},
res
=>
{
this
.
apipost
(
"/api/Tenant/GetPlugInList"
,
{},
res
=>
{
if
(
res
.
data
.
resultCode
==
1
)
{
if
(
res
.
data
.
resultCode
==
1
)
{
this
.
allComponents
=
res
.
data
.
data
;
this
.
allComponents
=
res
.
data
.
data
;
}
else
{
}
else
{
this
.
Info
(
res
.
data
.
message
);
this
.
Info
(
res
.
data
.
message
);
}
}
...
@@ -1235,6 +1238,21 @@
...
@@ -1235,6 +1238,21 @@
}
}
this
.
dataList
.
push
(
quickObj
);
this
.
dataList
.
push
(
quickObj
);
break
;
break
;
//门店用户信息
case
'shop-info'
:
let
shopInfoObj
=
{
Id
:
'shop-info'
,
isCked
:
false
,
data
:
{
headImg
:
""
,
//头像
headName
:
"赞羊小店"
,
//用户信息
headInfo
:
"赞美生活,样样满意"
,
//用户介绍
backgroundPicUrl
:
'https://viitto-1301420277.cos.ap-chengdu.myqcloud.com/Static/shopinfo.jpg'
,
//背景图片
backgroundColor
:
'#ffffff'
,
//背景颜色
}
};
this
.
dataList
.
push
(
shopInfoObj
);
break
;
}
}
},
},
//给子组件调用 重新排序上移下移
//给子组件调用 重新排序上移下移
...
...
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