//
//  SeeMoreViewController.m
//  ALand
//
//  Created by Z on 16/5/11.
//  Copyright © 2016年 Z. All rights reserved.
//

#import "SeeMoreViewController.h"

@interface SeeMoreViewController ()<UIWebViewDelegate>

@end

@implementation SeeMoreViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.title = @"分销政策";
    
    NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/abcShare.html", [UserInfo shareInstance].webShopBaseUrl];
    
    NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl] cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:10];
    UIWebView *webView = [UIWebView new];
    webView.delegate = self;
    [webView loadRequest:request];
    [self.view addSubview:webView];
    webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
    webView.sd_layout.topSpaceToView(self.view, 0).leftSpaceToView(self.view, 0).rightSpaceToView(self.view, 0).bottomSpaceToView(self.view, 0);
    // Do any additional setup after loading the view.
}


#pragma mark =========== webView delegate ===========
- (void)webViewDidStartLoad:(UIWebView *)webView {
    [MBProgressHUD showHUDAddedTo:webView animated:YES];
}

- (void)webViewDidFinishLoad:(UIWebView *)webView {
    [MBProgressHUD hideHUDForView:webView];
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
