|
|
'use strict';
|
|
|
|
|
|
const api = global.yoho.API;
|
|
|
class cartCountModel extends global.yoho.BaseModel {
|
|
|
constructor(ctx) {
|
|
|
super(ctx);
|
|
|
}
|
|
|
|
|
|
const cartCount = (uid, shoppingKey) => {
|
|
|
cartCount(uid, shoppingKey) {
|
|
|
let params = {
|
|
|
method: 'app.Shopping.count'
|
|
|
};
|
...
|
...
|
@@ -23,11 +26,12 @@ const cartCount = (uid, shoppingKey) => { |
|
|
});
|
|
|
}
|
|
|
|
|
|
return api.get('', params).then((result) => {
|
|
|
return this.get({
|
|
|
data: params
|
|
|
}).then((result) => {
|
|
|
return result;
|
|
|
});
|
|
|
};
|
|
|
}
|
|
|
}
|
|
|
|
|
|
module.exports = {
|
|
|
cartCount
|
|
|
}; |
|
|
module.exports = cartCountModel; |
...
|
...
|
|