summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/sdk
diff options
context:
space:
mode:
authorRene Ae <aehtyb@gmail.com>2015-12-11 03:05:10 -0600
committerRene Ae <aehtyb@gmail.com>2015-12-11 03:05:10 -0600
commitb1775dd32d1e0113eba81cfdb9a5626295eebc4e (patch)
tree19a2f4ea004d11037e494e863a39ac834d364429 /StoneIsland/platforms/ios/www/js/sdk
parent3442b2821d30dd1ca6c6db1ba089ae3f5c95a758 (diff)
parent053473394e6e0990c68a924adbb7c7d75f35973d (diff)
Merge branch 'android' of https://github.com/okfocus/stone-island into android
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/sdk')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/sdk/_sdk.js2
-rwxr-xr-xStoneIsland/platforms/ios/www/js/sdk/product.js10
2 files changed, 11 insertions, 1 deletions
diff --git a/StoneIsland/platforms/ios/www/js/sdk/_sdk.js b/StoneIsland/platforms/ios/www/js/sdk/_sdk.js
index b7880e50..017df015 100755
--- a/StoneIsland/platforms/ios/www/js/sdk/_sdk.js
+++ b/StoneIsland/platforms/ios/www/js/sdk/_sdk.js
@@ -26,7 +26,7 @@ var sdk = (function(){
}
sdk.image = function(code, size){
- return "http://cdn.yoox.biz/" + code.substr(0,2) + "/" + code.substr(0,8) + "_" + size + ".jpg"
+ return "http://cdn.yoox.biz/" + code.substr(0,2) + "/" + code + "_" + size + ".jpg"
}
$.ajaxSetup({
diff --git a/StoneIsland/platforms/ios/www/js/sdk/product.js b/StoneIsland/platforms/ios/www/js/sdk/product.js
index 55f1940a..7c12e7d7 100755
--- a/StoneIsland/platforms/ios/www/js/sdk/product.js
+++ b/StoneIsland/platforms/ios/www/js/sdk/product.js
@@ -3,6 +3,16 @@ sdk.product = (function(){
var default_gallery = 31617
+ product.all = function(opt){
+ return $.ajax({
+ method: "GET",
+ url: sdk.path("Search.API/1.2", "search.json"),
+ data: { format: "full", productsPerPage: 100 },
+ success: opt.success,
+ error: opt.error,
+ })
+ }
+
product.collection = function(opt){
return $.ajax({
method: "GET",