|
@@ -81,15 +81,28 @@ Component({ |
|
@@ -81,15 +81,28 @@ Component({ |
|
81
|
if(sc.seller_user){
|
81
|
if(sc.seller_user){
|
|
82
|
cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname)
|
82
|
cause.uname=(sc.seller_user.nick_name||sc.seller_user.nickname)
|
|
83
|
}
|
83
|
}
|
|
84
|
- App.Reserve.SetReserveStatus({
|
|
|
|
85
|
- rid:this.data.bookInfo.id,
|
|
|
|
86
|
- status:4,
|
|
|
|
87
|
- cause:JSON.stringify(cause),
|
|
|
|
88
|
- }).then(()=>{
|
|
|
|
89
|
- this.hide()
|
|
|
|
90
|
- this.triggerEvent('reserveCancel',{hasCancel:true});
|
|
|
|
91
|
- //this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
92
|
- })
|
84
|
+ if(1==this.data.bookInfo.type){
|
|
|
|
85
|
+ App.Customer.SetReserveStatus({
|
|
|
|
86
|
+ rid:this.data.bookInfo.id,
|
|
|
|
87
|
+ status:4,
|
|
|
|
88
|
+ cause:JSON.stringify(cause),
|
|
|
|
89
|
+ }).then(()=>{
|
|
|
|
90
|
+ this.hide()
|
|
|
|
91
|
+ this.triggerEvent('reserveCancel',{hasCancel:true});
|
|
|
|
92
|
+ //this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
93
|
+ })
|
|
|
|
94
|
+ }else{
|
|
|
|
95
|
+ App.Reserve.SetReserveStatus({
|
|
|
|
96
|
+ rid:this.data.bookInfo.id,
|
|
|
|
97
|
+ status:4,
|
|
|
|
98
|
+ cause:JSON.stringify(cause),
|
|
|
|
99
|
+ }).then(()=>{
|
|
|
|
100
|
+ this.hide()
|
|
|
|
101
|
+ this.triggerEvent('reserveCancel',{hasCancel:true});
|
|
|
|
102
|
+ //this.getDetail(this.data.bookInfo.id,true);
|
|
|
|
103
|
+ })
|
|
|
|
104
|
+ }
|
|
|
|
105
|
+
|
|
93
|
}
|
106
|
}
|
|
94
|
}
|
107
|
}
|
|
95
|
}) |
108
|
}) |