Commit 9fe93918 authored by 黄奎's avatar 黄奎

页面修改

parent 02dadd7b
......@@ -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
}
})
}
})
}
}
}
};
......
......@@ -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>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment