Commit 67c4bb9a by lee

fix bug,fix address back

parent 64e9aca2
...@@ -226,6 +226,10 @@ ...@@ -226,6 +226,10 @@
[self kwm_onClickSizeBtn]; [self kwm_onClickSizeBtn];
return; return;
} }
if(buyNow) {
[self addShopWithVariantId:self.variant.identifier quantity:self.count variant:self.variant buyNow:YES callback:^(BOOL _){}];
return;
}
__weak KWMNewProductVC *this = self; __weak KWMNewProductVC *this = self;
// TODO: this // TODO: this
NSArray<KWMShopCartModel *> *items = [[KWMShoppingCart sharedInstance] items]; NSArray<KWMShopCartModel *> *items = [[KWMShoppingCart sharedInstance] items];
......
...@@ -275,7 +275,14 @@ ...@@ -275,7 +275,14 @@
} }
-(void)kwm_cancel{ -(void)kwm_cancel{
[[self navigationController] popViewControllerAnimated:YES]; KWMBeforePayVC *vc = (KWMBeforePayVC *)self.delegate;
if (vc.address) {
[[self navigationController] popViewControllerAnimated:YES];
}else{
NSArray *vcs = [[self navigationController] viewControllers];
id top = [vcs objectAtIndex:vcs.count - 3];
[[self navigationController] popToViewController:top animated:YES];
}
} }
-(BOOL) navigationShouldPopOnBackButton { -(BOOL) navigationShouldPopOnBackButton {
......
...@@ -76,6 +76,8 @@ ...@@ -76,6 +76,8 @@
#define WishList_API_DOMAIN @"test.cemarose.com" #define WishList_API_DOMAIN @"test.cemarose.com"
#define Pay_API_DOMAIN @"liang.tofnews.com" #define Pay_API_DOMAIN @"liang.tofnews.com"
// Chris Test
#define Pay_API_DOMAIN @"chris.tofnews.com"
//Shopify对应的key(测试用) //Shopify对应的key(测试用)
#define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com" #define Shopify_SHOP_DOMAIN @"cemarose-test.myshopify.com"
...@@ -91,10 +93,8 @@ ...@@ -91,10 +93,8 @@
#define WishList_API_DOMAIN @"apps.cemarose.com" #define WishList_API_DOMAIN @"apps.cemarose.com"
// Chris Test
#define Pay_API_DOMAIN @"chris.tofnews.com"
// Production // Production
//#define Pay_API_DOMAIN @"alipay.cemarose.com" #define Pay_API_DOMAIN @"alipay.cemarose.com"
//Shopify对应的key(正式) //Shopify对应的key(正式)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment