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
17a37757
Commit
17a37757
authored
Aug 13, 2020
by
黄奎
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
9386d47a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
27 deletions
+13
-27
pintuanActive.vue
src/components/pintuan/pintuanActive.vue
+6
-6
groupPrice.vue
src/components/pintuan/pintuanPlugin/groupPrice.vue
+1
-1
groupStep.vue
src/components/pintuan/pintuanPlugin/groupStep.vue
+6
-20
No files found.
src/components/pintuan/pintuanActive.vue
View file @
17a37757
...
...
@@ -392,7 +392,7 @@
</el-card>
</el-tab-pane>
<el-tab-pane
label=
"阶梯团设置"
>
<groupStep
@
setNewVal=
"setNewVal"
:SpecList=
"TempSpecList"
:GroupPriceList=
"TempGroupPriceList"
<groupStep
v-if=
"TempSpecList&&TempSpecList.length>0"
@
setNewVal=
"setNewVal"
:SpecList=
"TempSpecList"
:GroupPriceList=
"TempGroupPriceList"
:SpecPriceList=
"TempSpecPriceList"
></groupStep>
</el-tab-pane>
<el-tab-pane
label=
"分销价设置"
>
...
...
@@ -529,7 +529,6 @@
GroupList
:[],
//阶梯价格
},
IsShowSpec
:
false
,
//是否显示规格
TempSpecList
:
[],
//规格列表
TempSpecPriceList
:
[],
//规格价格列表
TempGroupPriceList
:
[],
//阶梯团价
...
...
@@ -750,12 +749,13 @@
this
.
addMsg
.
App_share_pic
=
that
.
getIconLink
(
msg
[
0
].
url
);
this
.
imgDialog
=
false
;
},
//设置阶梯价格
setNewVal
(
val
){
console
.
log
(
"setNewVal"
,
val
);
this
.
TempGroupPriceList
=
val
;
this
.
addMsg
.
GroupList
=
val
;
this
.
shareGroup_list
=
val
;
var
tempObj
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
this
.
TempGroupPriceList
=
tempObj
;
this
.
addMsg
.
GroupList
=
tempObj
;
this
.
shareGroup_list
=
tempObj
;
},
//获取子组件规格
getSpecList
(
val
)
{
...
...
src/components/pintuan/pintuanPlugin/groupPrice.vue
View file @
17a37757
...
...
@@ -140,7 +140,7 @@
};
},
created
()
{
console
.
log
(
"attrGroups"
,
this
.
attrGroups
);
},
methods
:
{
...
...
src/components/pintuan/pintuanPlugin/groupStep.vue
View file @
17a37757
...
...
@@ -86,30 +86,15 @@
data
()
{
return
{
group_list
:
[]
,
new_attr_groups
:
[]
,
new_SpecPriceList
:
[]
,
group_list
:
this
.
GroupPriceList
,
new_attr_groups
:
this
.
SpecList
,
new_SpecPriceList
:
this
.
SpecPriceList
,
};
},
watch
:
{
'GroupPriceList'
:
{
handler
:
function
(
val
,
oldval
)
{
this
.
group_list
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
},
'SpecList'
:
{
handler
:
function
(
val
,
oldval
)
{
this
.
new_attr_groups
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
},
'SpecPriceList'
:
{
handler
:
function
(
val
,
oldval
)
{
this
.
new_SpecPriceList
=
JSON
.
parse
(
JSON
.
stringify
(
val
));
},
},
'group_list'
:{
handler
:
function
(
newV
al
)
{
this
.
$emit
(
'
getGroup'
,
newV
al
);
//params是传递的参数
handler
:
function
(
val
,
oldv
al
)
{
this
.
$emit
(
'
setNewVal'
,
v
al
);
//params是传递的参数
},
deep
:
true
}
...
...
@@ -165,6 +150,7 @@
this
.
new_SpecPriceList
.
forEach
(
item
=>
{
var
obj
=
{
AttrList
:
item
.
AttrList
,
SpecificationSort
:
item
.
SpecificationSort
,
PinTuanPrice
:
0
,
PinTuanStock
:
0
}
...
...
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