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
89981de2
Commit
89981de2
authored
Aug 17, 2020
by
zhengke
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/huangyuanyuan/electricitysheep
parents
a1a7d8ab
9fe93918
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
5 deletions
+32
-5
pintuanActive.vue
src/components/pintuan/pintuanActive.vue
+12
-2
memberPrice.vue
src/components/pintuan/pintuanPlugin/memberPrice.vue
+20
-3
No files found.
src/components/pintuan/pintuanActive.vue
View file @
89981de2
...
...
@@ -826,11 +826,21 @@
}
})
}
console
.
log
(
"this.addMsg.GroupList"
,
this
.
addMsg
.
GroupList
);
},
//获取会员价列表
getMemberList
(
memberList
)
{
console
.
log
(
"this.addMsg.member"
,
memberList
);
console
.
log
(
"memberList"
,
memberList
);
if
(
this
.
addMsg
.
GroupList
&&
this
.
addMsg
.
GroupList
.
length
>
0
)
{
this
.
addMsg
.
GroupList
.
forEach
(
item
=>
{
if
(
memberList
&&
memberList
.
length
>
0
)
{
memberList
.
forEach
(
subItem
=>
{
if
(
item
.
People_Num
==
subItem
.
People_Num
)
{
item
.
MemberpriceList
=
subItem
.
GradeMemberList
}
})
}
})
}
}
}
};
...
...
src/components/pintuan/pintuanPlugin/memberPrice.vue
View file @
89981de2
...
...
@@ -74,11 +74,27 @@
memberList
:
[],
//列表数据
};
},
watch
:
{
watch
:
{
'SpecificationPriceList'
:
{
immediate
:
true
,
handler
:
function
(
val
,
oldval
)
{
if
(
val
!=
oldval
)
{
this
.
memberChange
()
this
.
memberList
=
[];
if
(
this
.
SpecificationPriceList
&&
this
.
SpecificationPriceList
.
length
>
0
)
{
if
(
this
.
SpecificationPriceList
[
0
].
MemberpriceList
&&
this
.
SpecificationPriceList
[
0
]
.
MemberpriceList
.
length
>
0
)
{
this
.
SpecificationPriceList
.
forEach
(
item
=>
{
var
obj
=
{
People_Num
:
item
.
People_Num
,
GradeMemberList
:
item
.
MemberpriceList
,
};
this
.
memberList
.
push
(
obj
);
})
}
else
{
this
.
memberChange
();
}
}
}
}
},
...
...
@@ -144,4 +160,5 @@
this
.
getConfigMemberList
();
}
};
</
script
>
\ No newline at end of file
</
script
>
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