|
@@ -194,7 +194,7 @@ Page({
|
|
|
return
|
|
return
|
|
|
}else{
|
|
}else{
|
|
|
let name = e.detail.name
|
|
let name = e.detail.name
|
|
|
- let cusId = this.data.id
|
|
|
|
|
|
|
+ let cusId = this.data.id?this.data.id:this.data.item.cusId
|
|
|
if (name == 'follow') {
|
|
if (name == 'follow') {
|
|
|
this.getCusFollowList(cusId)
|
|
this.getCusFollowList(cusId)
|
|
|
}
|
|
}
|
|
@@ -204,7 +204,7 @@ Page({
|
|
|
// this.getOrderOut(cusId, Constants.outType.sale)
|
|
// this.getOrderOut(cusId, Constants.outType.sale)
|
|
|
// } else {
|
|
// } else {
|
|
|
// this.getOrderList(cusId)
|
|
// this.getOrderList(cusId)
|
|
|
- // }
|
|
|
|
|
|
|
+ // }
|
|
|
this.getOrderList(cusId)
|
|
this.getOrderList(cusId)
|
|
|
}
|
|
}
|
|
|
// 收款
|
|
// 收款
|
|
@@ -232,7 +232,7 @@ Page({
|
|
|
this.setData({
|
|
this.setData({
|
|
|
activeCard: e.detail.name
|
|
activeCard: e.detail.name
|
|
|
})
|
|
})
|
|
|
- if (name == 'order') {
|
|
|
|
|
|
|
+ if (name == 'order') {
|
|
|
this.getOrderList(data.cusId)
|
|
this.getOrderList(data.cusId)
|
|
|
}
|
|
}
|
|
|
else if (name == 'order-out') {
|
|
else if (name == 'order-out') {
|