diff options
Diffstat (limited to 'StoneIsland')
| -rw-r--r-- | StoneIsland/platforms/ios/StoneIsland.xcodeproj/project.xcworkspace/xcuserdata/jules.xcuserdatad/UserInterfaceState.xcuserstate | bin | 13540 -> 13291 bytes | |||
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/index.js | 2 | ||||
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/lib/products/ProductView.js | 2 | ||||
| -rw-r--r-- | StoneIsland/platforms/ios/www/js/sdk/_sdk.js | 16 | ||||
| -rw-r--r-- | StoneIsland/www/js/index.js | 2 | ||||
| -rw-r--r-- | StoneIsland/www/js/sdk/_sdk.js | 17 | ||||
| -rw-r--r-- | StoneIsland/www/js/sdk/cart.js | 1 |
7 files changed, 26 insertions, 14 deletions
diff --git a/StoneIsland/platforms/ios/StoneIsland.xcodeproj/project.xcworkspace/xcuserdata/jules.xcuserdatad/UserInterfaceState.xcuserstate b/StoneIsland/platforms/ios/StoneIsland.xcodeproj/project.xcworkspace/xcuserdata/jules.xcuserdatad/UserInterfaceState.xcuserstate Binary files differindex 12703a70..51158e5f 100644 --- a/StoneIsland/platforms/ios/StoneIsland.xcodeproj/project.xcworkspace/xcuserdata/jules.xcuserdatad/UserInterfaceState.xcuserstate +++ b/StoneIsland/platforms/ios/StoneIsland.xcodeproj/project.xcworkspace/xcuserdata/jules.xcuserdatad/UserInterfaceState.xcuserstate diff --git a/StoneIsland/platforms/ios/www/js/index.js b/StoneIsland/platforms/ios/www/js/index.js index 332e780d..e0b08351 100644 --- a/StoneIsland/platforms/ios/www/js/index.js +++ b/StoneIsland/platforms/ios/www/js/index.js @@ -5,7 +5,7 @@ var app = (function(){ app.bind() app.build() - sdk.init({ production: true }) + sdk.init({ env: "test" }) if (window.cordova) { document.addEventListener('deviceready', app.ready, false) diff --git a/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js b/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js index e87fa398..76527c8b 100644 --- a/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js +++ b/StoneIsland/platforms/ios/www/js/lib/products/ProductView.js @@ -44,7 +44,7 @@ var ProductView = View.extend({ load: function(data){ var name_partz = data['ModelNames'].split(' ') var num = name_partz.shift() - var title = name_parts.join(' ') + var title = name_partz.join(' ') var type = data['MicroCategory'].toUpperCase() var price = "$" + data['DiscountedPrice'] + ".00" var size = data['Sizes'][0] diff --git a/StoneIsland/platforms/ios/www/js/sdk/_sdk.js b/StoneIsland/platforms/ios/www/js/sdk/_sdk.js index a7ecf6d3..31fd96ca 100644 --- a/StoneIsland/platforms/ios/www/js/sdk/_sdk.js +++ b/StoneIsland/platforms/ios/www/js/sdk/_sdk.js @@ -1,11 +1,21 @@ var sdk = (function(){ var sdk = {} - var endpoint = "https://sandbox.api.yoox.biz/" + var endpoint = "https://secure.api.yoox.biz/" + // var endpoint = "http://api.yoox.biz/" sdk.init = function(opt){ - if (opt && opt.production) { - endpoint = "https://secure.api.yoox.biz/" + switch (opt.env) { + case 'test': + endpoint = "http://lvh.me:9090/" + break + default: + case 'development': + endpoint = "http://api.yoox.biz/" + break + case 'production': + endpoint = "https://secure.api.yoox.biz/" + break } } diff --git a/StoneIsland/www/js/index.js b/StoneIsland/www/js/index.js index a8c36ef1..e0b08351 100644 --- a/StoneIsland/www/js/index.js +++ b/StoneIsland/www/js/index.js @@ -5,7 +5,7 @@ var app = (function(){ app.bind() app.build() - sdk.init({ env: 'production' }) + sdk.init({ env: "test" }) if (window.cordova) { document.addEventListener('deviceready', app.ready, false) diff --git a/StoneIsland/www/js/sdk/_sdk.js b/StoneIsland/www/js/sdk/_sdk.js index dedcd5f0..a0250f77 100644 --- a/StoneIsland/www/js/sdk/_sdk.js +++ b/StoneIsland/www/js/sdk/_sdk.js @@ -1,19 +1,20 @@ var sdk = (function(){ var sdk = {} - var endpoint = "https://sandbox.api.yoox.biz/" + var endpoint = "https://secure.api.yoox.biz/" + // var endpoint = "http://api.yoox.biz/" sdk.init = function(opt){ switch (opt.env || "development") { - case "production": - endpoint = "https://secure.api.yoox.biz/" - break - case "test": - endpoint = "http://lvh.me:4567/" + case 'test': + endpoint = "http://lvh.me:9090/" break - case "development": default: - endpoint = "https://sandbox.api.yoox.biz/" + case 'development': + endpoint = "http://api.yoox.biz/" + break + case 'production': + endpoint = "https://secure.api.yoox.biz/" break } } diff --git a/StoneIsland/www/js/sdk/cart.js b/StoneIsland/www/js/sdk/cart.js index 9f9d81f1..9fb9b11f 100644 --- a/StoneIsland/www/js/sdk/cart.js +++ b/StoneIsland/www/js/sdk/cart.js @@ -13,6 +13,7 @@ sdk.cart = (function(){ "x-yoox-appname": auth.appname, "x-yoox-device": auth.device, }, + data: "{}", // data: opt.data, success: function(data){ console.log(data) |
