Showing
5 changed files
with
8 additions
and
6 deletions
@@ -6,7 +6,7 @@ | @@ -6,7 +6,7 @@ | ||
6 | 6 | ||
7 | const config = global.yoho.config; | 7 | const config = global.yoho.config; |
8 | 8 | ||
9 | -module.exports = class extends global.yoho.BaseModel{ | 9 | +module.exports = class extends global.yoho.BaseModel { |
10 | constructor(ctx) { | 10 | constructor(ctx) { |
11 | super(ctx); | 11 | super(ctx); |
12 | } | 12 | } |
@@ -4,7 +4,7 @@ | @@ -4,7 +4,7 @@ | ||
4 | 4 | ||
5 | 'use strict'; | 5 | 'use strict'; |
6 | module.exports = class extends global.yoho.BaseModel { | 6 | module.exports = class extends global.yoho.BaseModel { |
7 | - constructor(ctx) { | 7 | + constructor(ctx) { |
8 | super(ctx); | 8 | super(ctx); |
9 | } | 9 | } |
10 | 10 | ||
@@ -31,7 +31,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -31,7 +31,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
31 | * 添加咨询操作 | 31 | * 添加咨询操作 |
32 | */ | 32 | */ |
33 | createAsync(uid, pid, content) { | 33 | createAsync(uid, pid, content) { |
34 | - return get.post({data: { | 34 | + return this.post({data: { |
35 | method: 'h5.consult.add', | 35 | method: 'h5.consult.add', |
36 | product_id: pid, | 36 | product_id: pid, |
37 | content: content, | 37 | content: content, |
@@ -8,6 +8,8 @@ const co = Promise.coroutine; | @@ -8,6 +8,8 @@ const co = Promise.coroutine; | ||
8 | const _ = require('lodash'); | 8 | const _ = require('lodash'); |
9 | const Api = require('./shop-api'); | 9 | const Api = require('./shop-api'); |
10 | 10 | ||
11 | +const DEFAULT_IMG = '01091c21f2317a64f123f1649fbbccf7ba'; | ||
12 | + | ||
11 | module.exports = class extends global.yoho.BaseModel { | 13 | module.exports = class extends global.yoho.BaseModel { |
12 | constructor(ctx) { | 14 | constructor(ctx) { |
13 | super(ctx); | 15 | super(ctx); |
@@ -22,7 +24,7 @@ module.exports = class extends global.yoho.BaseModel { | @@ -22,7 +24,7 @@ module.exports = class extends global.yoho.BaseModel { | ||
22 | return null; | 24 | return null; |
23 | } | 25 | } |
24 | }); | 26 | }); |
25 | - }; | 27 | + } |
26 | 28 | ||
27 | queryShopByBrandIdAsync(sid, bid) { | 29 | queryShopByBrandIdAsync(sid, bid) { |
28 | return co(function * () { | 30 | return co(function * () { |
-
Please register or login to post a comment