Commit 557d9b7f by 姜雷

修改用户卡片为有ID时传ID没有时传电话

parent 895e8963
...@@ -66,9 +66,14 @@ export default { ...@@ -66,9 +66,14 @@ export default {
console.log('in getAllData', this.showMoney); console.log('in getAllData', this.showMoney);
if (this.showMoney) { if (this.showMoney) {
fetchUserAccount({ const entity = this.customerId
customerId: this.customerId, ? {
}) customerId: this.customerId,
}
: {
customerPhone: this.customerPhone,
};
fetchUserAccount(entity)
.then(res => { .then(res => {
this.serviceList = res.data; this.serviceList = res.data;
}) })
......
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