Authored by htoooth

fix

... ... @@ -6,7 +6,7 @@
const config = global.yoho.config;
module.exports = class extends global.yoho.BaseModel{
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
... ...
/**
* Created by TaoHuang on 2016/10/28.
*/
module.exports = class extends global.yoho.BaseModel{
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
}
... ...
... ... @@ -6,7 +6,7 @@
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx)
super(ctx);
}
/**
... ...
... ... @@ -4,7 +4,7 @@
'use strict';
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
constructor(ctx) {
super(ctx);
}
... ... @@ -31,7 +31,7 @@ module.exports = class extends global.yoho.BaseModel {
* 添加咨询操作
*/
createAsync(uid, pid, content) {
return get.post({data: {
return this.post({data: {
method: 'h5.consult.add',
product_id: pid,
content: content,
... ...
... ... @@ -8,6 +8,8 @@ const co = Promise.coroutine;
const _ = require('lodash');
const Api = require('./shop-api');
const DEFAULT_IMG = '01091c21f2317a64f123f1649fbbccf7ba';
module.exports = class extends global.yoho.BaseModel {
constructor(ctx) {
super(ctx);
... ... @@ -22,7 +24,7 @@ module.exports = class extends global.yoho.BaseModel {
return null;
}
});
};
}
queryShopByBrandIdAsync(sid, bid) {
return co(function * () {
... ...