...
|
...
|
@@ -234,10 +234,11 @@ class shoppingModel extends global.yoho.BaseModel { |
|
|
* @param uid int 用户uid
|
|
|
* @return see doc
|
|
|
*/
|
|
|
getValidCouponCount(uid) {
|
|
|
getValidCouponCount(params) {
|
|
|
let param = {
|
|
|
method: 'app.Shopping.countUsableCoupon',
|
|
|
uid
|
|
|
uid: params.uid,
|
|
|
delivery_way: params.delivery_way
|
|
|
};
|
|
|
|
|
|
return this.get({data: param});
|
...
|
...
|
@@ -268,7 +269,7 @@ class shoppingModel extends global.yoho.BaseModel { |
|
|
*/
|
|
|
useCoupon(uid, couponCode) {
|
|
|
let param = {
|
|
|
method: 'app.Shopping.useCoupon',
|
|
|
method: 'app.coupons.bindPCoupon',
|
|
|
coupon_code: couponCode,
|
|
|
uid
|
|
|
};
|
...
|
...
|
|