Commit ce33fcfb by houweibin

wishListVC 跳转购物车

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