...
|
...
|
@@ -13,17 +13,15 @@ export default class DetailService { |
|
|
}
|
|
|
|
|
|
async getDetailWithProductSKN(product_skn) {
|
|
|
// //test
|
|
|
// product_skn = '51148345';
|
|
|
// this.api = new Request('http://dev-api.yohops.com:9999');
|
|
|
// //
|
|
|
|
|
|
return await this.api.get({
|
|
|
url: '',
|
|
|
body: {
|
|
|
method: 'app.product.goodDetail',
|
|
|
debug: 'XYZ',
|
|
|
product_skn
|
|
|
// debug: 'XYZ',
|
|
|
product_skn
|
|
|
}
|
|
|
})
|
|
|
.then((json) => {
|
...
|
...
|
@@ -35,17 +33,14 @@ export default class DetailService { |
|
|
}
|
|
|
|
|
|
async getSimilarListWithSKN(product_skn) {
|
|
|
|
|
|
// //test
|
|
|
// product_skn = '51148345';
|
|
|
// //
|
|
|
|
|
|
return await this.api.get({
|
|
|
url: '',
|
|
|
body: {
|
|
|
method: 'app.search.findLike',
|
|
|
limit: 20,
|
|
|
product_skn
|
|
|
limit: 20,
|
|
|
product_skn
|
|
|
}
|
|
|
})
|
|
|
.then((json) => {
|
...
|
...
|
@@ -62,7 +57,7 @@ export default class DetailService { |
|
|
url: '',
|
|
|
body: {
|
|
|
method: 'app.favorite.isFavoriteNew',
|
|
|
id,
|
|
|
id,
|
|
|
}
|
|
|
})
|
|
|
.then((json) => {
|
...
|
...
|
|