Commit ce33fcfb by houweibin

wishListVC 跳转购物车

parent 827cd36c
...@@ -77,8 +77,8 @@ ...@@ -77,8 +77,8 @@
-(void)setVariant:(BUYProductVariant *)variant{ -(void)setVariant:(BUYProductVariant *)variant{
_variant = variant; _variant = variant;
if(_variant){ if(variant){
self.lbPrice.text = _variant.price.stringValue; self.lbPrice.text = variant.price.priceValueFormatted;
} }
} }
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#import "KWMImageUtil.h" #import "KWMImageUtil.h"
#import "KWMStringUtil.h" #import "KWMStringUtil.h"
#import "KWMShopCartModel.h" #import "KWMShopCartModel.h"
#import "KWMShopCartVC.h"
@interface KWMWishListVC () @interface KWMWishListVC ()
...@@ -41,6 +42,11 @@ ...@@ -41,6 +42,11 @@
[self.navigationController setNavigationBarHidden:NO]; [self.navigationController setNavigationBarHidden:NO];
} }
- (IBAction)onClickComplete:(id)sender{
KWMShopCartVC *ShopCartVC = (KWMShopCartVC *)[KWMBaseVC findControllerBy:[KWMShopCartVC kwmTag] fromStoryboard:@"ShopCart"];
[self.navigationController pushViewController:ShopCartVC animated:YES];
}
- (void)initView{ - (void)initView{
self.title = @"我喜欢的"; self.title = @"我喜欢的";
[self.tbvWish registerNib:[UINib nibWithNibName:NSStringFromClass([KWMWishCell class]) bundle:nil] forCellReuseIdentifier:NSStringFromClass([KWMWishCell class])]; [self.tbvWish registerNib:[UINib nibWithNibName:NSStringFromClass([KWMWishCell class]) bundle:nil] forCellReuseIdentifier:NSStringFromClass([KWMWishCell class])];
......
...@@ -585,6 +585,9 @@ ...@@ -585,6 +585,9 @@
<state key="normal" title="结算"> <state key="normal" title="结算">
<color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/> <color key="titleColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
</state> </state>
<connections>
<action selector="onClickComplete:" destination="fOt-KO-9Ov" eventType="touchUpInside" id="fYb-h4-MUt"/>
</connections>
</button> </button>
<view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b66-L6-qYh" userLabel="line"> <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="b66-L6-qYh" userLabel="line">
<rect key="frame" x="0.0" y="0.0" width="375" height="1"/> <rect key="frame" x="0.0" y="0.0" width="375" height="1"/>
......
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