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
0938ab3f
Commit
0938ab3f
authored
May 07, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加
parent
95398f16
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
2096 additions
and
58 deletions
+2096
-58
choiceArea.vue
src/components/common/choiceArea.vue
+383
-0
goods.vue
src/components/sallCenter/plugin/goods.vue
+922
-0
rubik.vue
src/components/sallCenter/plugin/rubik.vue
+744
-55
templateEdit.vue
src/components/sallCenter/templateEdit.vue
+47
-3
No files found.
src/components/common/choiceArea.vue
0 → 100644
View file @
0938ab3f
This diff is collapsed.
Click to expand it.
src/components/sallCenter/plugin/goods.vue
0 → 100644
View file @
0938ab3f
This diff is collapsed.
Click to expand it.
src/components/sallCenter/plugin/rubik.vue
View file @
0938ab3f
This diff is collapsed.
Click to expand it.
src/components/sallCenter/templateEdit.vue
View file @
0938ab3f
...
...
@@ -196,6 +196,7 @@
<navigationIcon
v-if=
"item.Id=='nav'"
:navData=
"item"
@
getSord=
"getSord"
:index=
"index"
:dataLeng=
"dataList.length"
></navigationIcon>
<banner
v-if=
"item.Id=='banner'"
:banData=
"item"
@
getSord=
"getSord"
:index=
"index"
:dataLeng=
"dataList.length"
></banner>
<rubik
v-if=
"item.Id=='rubik'"
:rubData=
"item"
@
getSord=
"getSord"
:index=
"index"
:dataLeng=
"dataList.length"
></rubik>
<goods
v-if=
"item.Id=='goods'"
:goodData=
"item"
@
getSord=
"getSord"
:index=
"index"
:dataLeng=
"dataList.length"
></goods>
</div>
</div>
</div>
...
...
@@ -203,7 +204,7 @@
</div>
</div>
<div
class=
"tpEdit_btmMenu"
>
<el-button
type=
"primary"
size=
"small"
>
保存
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"getAllData()"
>
保存
</el-button>
</div>
</div>
</
template
>
...
...
@@ -212,6 +213,7 @@
import
navigationIcon
from
"../sallCenter/plugin/navigationIcon.vue"
import
banner
from
"../sallCenter/plugin/banner.vue"
import
rubik
from
"../sallCenter/plugin/rubik.vue"
import
goods
from
"../sallCenter/plugin/goods.vue"
export
default
{
data
()
{
return
{
...
...
@@ -228,7 +230,8 @@
search
,
navigationIcon
,
banner
,
rubik
rubik
,
goods
,
},
methods
:
{
//获取左侧菜单
...
...
@@ -283,7 +286,6 @@
}
}
this
.
dataList
.
push
(
navObj
);
console
.
log
(
this
.
dataList
,
'this.dataList'
);
break
;
case
'banner'
:
let
banObj
=
{
...
...
@@ -314,6 +316,44 @@
}
this
.
dataList
.
push
(
rubObj
);
break
;
case
'goods'
:
let
goodsObj
=
{
Id
:
'goods'
,
isCked
:
false
,
data
:{
showCat
:
false
,
catPosition
:
'top'
,
catStyle
:
1
,
catList
:
[],
list
:
[],
addGoodsType
:
0
,
goodsLength
:
10
,
listStyle
:
1
,
goodsCoverProportion
:
'1-1'
,
fill
:
1
,
goodsStyle
:
1
,
textStyle
:
1
,
showGoodsName
:
true
,
showGoodsPrice
:
true
,
showBuyBtn
:
true
,
buyBtn
:
'cart'
,
buyBtnStyle
:
1
,
buyBtnText
:
'购买'
,
buttonColor
:
'#ff4544'
,
showGoodsTag
:
false
,
customizeGoodsTag
:
false
,
goodsTagPicUrl
:
''
,
showImg
:
false
,
backgroundColor
:
'#fff'
,
backgroundPicUrl
:
''
,
position
:
5
,
mode
:
1
,
backgroundHeight
:
100
,
backgroundWidth
:
100
,
}
}
this
.
dataList
.
push
(
goodsObj
);
break
;
}
},
//给子组件调用 重新排序上移下移
...
...
@@ -339,6 +379,10 @@
x
.
isCked
=
false
;
})
item
.
isCked
=
true
;
},
//点击保存
getAllData
(){
console
.
log
(
this
.
dataList
,
'dataListtt'
);
}
},
mounted
()
{
...
...
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