Commit b31fc9da authored by Sandy's avatar Sandy

细节修改

parent f88230c5
...@@ -132,6 +132,7 @@ ...@@ -132,6 +132,7 @@
1952C2EF1CED93E90017E4D6 /* OrderListHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1952C2EE1CED93E90017E4D6 /* OrderListHeaderView.xib */; }; 1952C2EF1CED93E90017E4D6 /* OrderListHeaderView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1952C2EE1CED93E90017E4D6 /* OrderListHeaderView.xib */; };
1952C2F21CED95230017E4D6 /* OrderListFooterView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1952C2F11CED95230017E4D6 /* OrderListFooterView.m */; }; 1952C2F21CED95230017E4D6 /* OrderListFooterView.m in Sources */ = {isa = PBXBuildFile; fileRef = 1952C2F11CED95230017E4D6 /* OrderListFooterView.m */; };
1952C2F41CED952B0017E4D6 /* OrderListFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1952C2F31CED952B0017E4D6 /* OrderListFooterView.xib */; }; 1952C2F41CED952B0017E4D6 /* OrderListFooterView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 1952C2F31CED952B0017E4D6 /* OrderListFooterView.xib */; };
1952C2FA1CEDC6160017E4D6 /* JavenCustomerService.m in Sources */ = {isa = PBXBuildFile; fileRef = 1952C2F91CEDC6160017E4D6 /* JavenCustomerService.m */; };
19563C471CDAE60B00AFD0E0 /* MyBandCardViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 19563C461CDAE60B00AFD0E0 /* MyBandCardViewController.m */; }; 19563C471CDAE60B00AFD0E0 /* MyBandCardViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = 19563C461CDAE60B00AFD0E0 /* MyBandCardViewController.m */; };
19563C4A1CDAEA3800AFD0E0 /* MyBandBottomView.m in Sources */ = {isa = PBXBuildFile; fileRef = 19563C491CDAEA3800AFD0E0 /* MyBandBottomView.m */; }; 19563C4A1CDAEA3800AFD0E0 /* MyBandBottomView.m in Sources */ = {isa = PBXBuildFile; fileRef = 19563C491CDAEA3800AFD0E0 /* MyBandBottomView.m */; };
19563C4C1CDAEA4500AFD0E0 /* MyBandBottomView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 19563C4B1CDAEA4500AFD0E0 /* MyBandBottomView.xib */; }; 19563C4C1CDAEA4500AFD0E0 /* MyBandBottomView.xib in Resources */ = {isa = PBXBuildFile; fileRef = 19563C4B1CDAEA4500AFD0E0 /* MyBandBottomView.xib */; };
...@@ -569,6 +570,8 @@ ...@@ -569,6 +570,8 @@
1952C2F01CED95230017E4D6 /* OrderListFooterView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderListFooterView.h; sourceTree = "<group>"; }; 1952C2F01CED95230017E4D6 /* OrderListFooterView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = OrderListFooterView.h; sourceTree = "<group>"; };
1952C2F11CED95230017E4D6 /* OrderListFooterView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OrderListFooterView.m; sourceTree = "<group>"; }; 1952C2F11CED95230017E4D6 /* OrderListFooterView.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = OrderListFooterView.m; sourceTree = "<group>"; };
1952C2F31CED952B0017E4D6 /* OrderListFooterView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = OrderListFooterView.xib; sourceTree = "<group>"; }; 1952C2F31CED952B0017E4D6 /* OrderListFooterView.xib */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; path = OrderListFooterView.xib; sourceTree = "<group>"; };
1952C2F81CEDC6160017E4D6 /* JavenCustomerService.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = JavenCustomerService.h; sourceTree = "<group>"; };
1952C2F91CEDC6160017E4D6 /* JavenCustomerService.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = JavenCustomerService.m; sourceTree = "<group>"; };
19563C451CDAE60B00AFD0E0 /* MyBandCardViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyBandCardViewController.h; sourceTree = "<group>"; }; 19563C451CDAE60B00AFD0E0 /* MyBandCardViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyBandCardViewController.h; sourceTree = "<group>"; };
19563C461CDAE60B00AFD0E0 /* MyBandCardViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyBandCardViewController.m; sourceTree = "<group>"; }; 19563C461CDAE60B00AFD0E0 /* MyBandCardViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = MyBandCardViewController.m; sourceTree = "<group>"; };
19563C481CDAEA3800AFD0E0 /* MyBandBottomView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyBandBottomView.h; sourceTree = "<group>"; }; 19563C481CDAEA3800AFD0E0 /* MyBandBottomView.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = MyBandBottomView.h; sourceTree = "<group>"; };
...@@ -1314,10 +1317,10 @@ ...@@ -1314,10 +1317,10 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
199BC7AD1C9AD4FD00E4E0B8 /* Login */, 199BC7AD1C9AD4FD00E4E0B8 /* Login */,
199BC7931C9AA70C00E4E0B8 /* Massage */, 199BC7931C9AA70C00E4E0B8 /* Massage(消息) */,
199BC7971C9AA70C00E4E0B8 /* MIne */, 199BC7971C9AA70C00E4E0B8 /* MIne(我的) */,
199BC79B1C9AA70C00E4E0B8 /* Store */, 199BC79B1C9AA70C00E4E0B8 /* Store(商城 - 已隐藏) */,
19DCCA851C9A95E70072C3BF /* Home */, 19DCCA851C9A95E70072C3BF /* Home(我的) */,
); );
path = CodeClass; path = CodeClass;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -1331,6 +1334,54 @@ ...@@ -1331,6 +1334,54 @@
path = Application; path = Application;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
1952C2F51CEDB6730017E4D6 /* Home */ = {
isa = PBXGroup;
children = (
199BC79F1C9AA7DF00E4E0B8 /* HomeViewController.h */,
199BC7A01C9AA7DF00E4E0B8 /* HomeViewController.m */,
1929F18C1CA10C94000E9B26 /* HomeCollectionViewController.h */,
1929F18D1CA10C94000E9B26 /* HomeCollectionViewController.m */,
1921EF6E1CE5C0E900B0BC4A /* ShopWebViewController.h */,
1921EF6F1CE5C0E900B0BC4A /* ShopWebViewController.m */,
196944E21CEC7D500036E574 /* HomeAdViewController.h */,
196944E31CEC7D500036E574 /* HomeAdViewController.m */,
);
name = Home;
sourceTree = "<group>";
};
1952C2F61CEDB6830017E4D6 /* Home */ = {
isa = PBXGroup;
children = (
1929F18F1CA11472000E9B26 /* HomeCollectionViewCell.h */,
1929F1901CA11472000E9B26 /* HomeCollectionViewCell.m */,
1929F1911CA11472000E9B26 /* HomeCollectionViewCell.xib */,
1929F17A1CA0DD77000E9B26 /* HomeTopView.h */,
1929F17B1CA0DD77000E9B26 /* HomeTopView.m */,
1929F17D1CA0DE32000E9B26 /* HomeTopView.xib */,
1929F1821CA0EA64000E9B26 /* MoneyView.h */,
1929F1831CA0EA64000E9B26 /* MoneyView.m */,
1929F1851CA0EA74000E9B26 /* MoneyView.xib */,
1921EF6B1CE5987B00B0BC4A /* HomeCollectionFooterReusableView.h */,
1921EF6C1CE5987B00B0BC4A /* HomeCollectionFooterReusableView.m */,
);
name = Home;
sourceTree = "<group>";
};
1952C2F71CEDB6AB0017E4D6 /* Home */ = {
isa = PBXGroup;
children = (
196944DF1CEC75FA0036E574 /* JavenAdModel.h */,
196944E01CEC75FA0036E574 /* JavenAdModel.m */,
197BA6871CD865D1000E2087 /* JavencommissionAccountModel.h */,
197BA6881CD865D1000E2087 /* JavencommissionAccountModel.m */,
197BA6801CD851DB000E2087 /* JavenDetailReseller.h */,
197BA6811CD851DB000E2087 /* JavenDetailReseller.m */,
19DC6AFA1CBF867E0064A9FD /* JavenShopModel.h */,
19DC6AFB1CBF867E0064A9FD /* JavenShopModel.m */,
);
name = Home;
sourceTree = "<group>";
};
19563C421CDAE5D900AFD0E0 /* MyBandCard */ = { 19563C421CDAE5D900AFD0E0 /* MyBandCard */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
...@@ -1369,7 +1420,7 @@ ...@@ -1369,7 +1420,7 @@
path = MyBandCard; path = MyBandCard;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
1979752B1CA90D3900407E3F /* CommodityManagement */ = { 1979752B1CA90D3900407E3F /* CommodityManagement(商品管理) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
1979752C1CA90D6C00407E3F /* CommodityManagementViewController.h */, 1979752C1CA90D6C00407E3F /* CommodityManagementViewController.h */,
...@@ -1377,7 +1428,7 @@ ...@@ -1377,7 +1428,7 @@
197975431CAA2FAB00407E3F /* ManagementViewController.h */, 197975431CAA2FAB00407E3F /* ManagementViewController.h */,
197975441CAA2FAB00407E3F /* ManagementViewController.m */, 197975441CAA2FAB00407E3F /* ManagementViewController.m */,
); );
name = CommodityManagement; name = "CommodityManagement(商品管理)";
sourceTree = "<group>"; sourceTree = "<group>";
}; };
1979752F1CA90D8600407E3F /* CommodityManagement */ = { 1979752F1CA90D8600407E3F /* CommodityManagement */ = {
...@@ -1398,7 +1449,7 @@ ...@@ -1398,7 +1449,7 @@
name = CommodityManagement; name = CommodityManagement;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
1979754E1CAB6F4700407E3F /* Order */ = { 1979754E1CAB6F4700407E3F /* Order(订单) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
199B4D651CABBCA700451E0E /* OrderViewcontrollerSubviews */, 199B4D651CABBCA700451E0E /* OrderViewcontrollerSubviews */,
...@@ -1407,6 +1458,7 @@ ...@@ -1407,6 +1458,7 @@
199B4D661CABBCF600451E0E /* OrderDetailViewController.h */, 199B4D661CABBCF600451E0E /* OrderDetailViewController.h */,
199B4D671CABBCF600451E0E /* OrderDetailViewController.m */, 199B4D671CABBCF600451E0E /* OrderDetailViewController.m */,
); );
name = "Order(订单)";
path = Order; path = Order;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1419,7 +1471,7 @@ ...@@ -1419,7 +1471,7 @@
path = OrderViewcontrollerSubviews; path = OrderViewcontrollerSubviews;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
199B4D901CAE6F3500451E0E /* StoreManagerment */ = { 199B4D901CAE6F3500451E0E /* StoreManagerment(店铺管理) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
199B4D941CAE701F00451E0E /* StoreManagermentViewController.h */, 199B4D941CAE701F00451E0E /* StoreManagermentViewController.h */,
...@@ -1435,16 +1487,18 @@ ...@@ -1435,16 +1487,18 @@
1900A33F1CB6059000B2B7C4 /* introductionViewController.m */, 1900A33F1CB6059000B2B7C4 /* introductionViewController.m */,
1900A3401CB6059000B2B7C4 /* introductionViewController.xib */, 1900A3401CB6059000B2B7C4 /* introductionViewController.xib */,
); );
name = "StoreManagerment(店铺管理)";
path = StoreManagerment; path = StoreManagerment;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
199BC7931C9AA70C00E4E0B8 /* Massage */ = { 199BC7931C9AA70C00E4E0B8 /* Massage(消息) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
199BC7941C9AA70C00E4E0B8 /* Model */, 199BC7941C9AA70C00E4E0B8 /* Model */,
199BC7951C9AA70C00E4E0B8 /* View */, 199BC7951C9AA70C00E4E0B8 /* View */,
199BC7961C9AA70C00E4E0B8 /* ViewController */, 199BC7961C9AA70C00E4E0B8 /* ViewController */,
); );
name = "Massage(消息)";
path = Massage; path = Massage;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1474,13 +1528,14 @@ ...@@ -1474,13 +1528,14 @@
path = ViewController; path = ViewController;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
199BC7971C9AA70C00E4E0B8 /* MIne */ = { 199BC7971C9AA70C00E4E0B8 /* MIne(我的) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
199BC7981C9AA70C00E4E0B8 /* Model */, 199BC7981C9AA70C00E4E0B8 /* Model */,
199BC7991C9AA70C00E4E0B8 /* View */, 199BC7991C9AA70C00E4E0B8 /* View */,
199BC79A1C9AA70C00E4E0B8 /* ViewController */, 199BC79A1C9AA70C00E4E0B8 /* ViewController */,
); );
name = "MIne(我的)";
path = MIne; path = MIne;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1540,13 +1595,14 @@ ...@@ -1540,13 +1595,14 @@
path = ViewController; path = ViewController;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
199BC79B1C9AA70C00E4E0B8 /* Store */ = { 199BC79B1C9AA70C00E4E0B8 /* Store(商城 - 已隐藏) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
199BC79C1C9AA70C00E4E0B8 /* Model */, 199BC79C1C9AA70C00E4E0B8 /* Model */,
199BC79D1C9AA70C00E4E0B8 /* View */, 199BC79D1C9AA70C00E4E0B8 /* View */,
199BC79E1C9AA70C00E4E0B8 /* ViewController */, 199BC79E1C9AA70C00E4E0B8 /* ViewController */,
); );
name = "Store(商城 - 已隐藏)";
path = Store; path = Store;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1630,11 +1686,13 @@ ...@@ -1630,11 +1686,13 @@
194FB0E11CE472C40089A3D5 /* NavigationbarView.h */, 194FB0E11CE472C40089A3D5 /* NavigationbarView.h */,
194FB0E21CE472C40089A3D5 /* NavigationbarView.m */, 194FB0E21CE472C40089A3D5 /* NavigationbarView.m */,
194FB0E41CE472D20089A3D5 /* NavigationbarView.xib */, 194FB0E41CE472D20089A3D5 /* NavigationbarView.xib */,
1952C2F81CEDC6160017E4D6 /* JavenCustomerService.h */,
1952C2F91CEDC6160017E4D6 /* JavenCustomerService.m */,
); );
path = Global; path = Global;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
19ADD36B1CA3B88A00EE6E5A /* Commodity */ = { 19ADD36B1CA3B88A00EE6E5A /* Commodity(添加商品) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
19ADD36C1CA3B88A00EE6E5A /* CommodityListViewController.h */, 19ADD36C1CA3B88A00EE6E5A /* CommodityListViewController.h */,
...@@ -1650,6 +1708,7 @@ ...@@ -1650,6 +1708,7 @@
1912FD041CD090A6004CF976 /* MoreHotBrandViewController.h */, 1912FD041CD090A6004CF976 /* MoreHotBrandViewController.h */,
1912FD051CD090A6004CF976 /* MoreHotBrandViewController.m */, 1912FD051CD090A6004CF976 /* MoreHotBrandViewController.m */,
); );
name = "Commodity(添加商品)";
path = Commodity; path = Commodity;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1686,12 +1745,13 @@ ...@@ -1686,12 +1745,13 @@
path = Commodity; path = Commodity;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
19DC6B0C1CC0A9340064A9FD /* MyTeams */ = { 19DC6B0C1CC0A9340064A9FD /* MyTeams(我的团队) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
19DC6B0D1CC0AA7D0064A9FD /* MyTeamViewController.h */, 19DC6B0D1CC0AA7D0064A9FD /* MyTeamViewController.h */,
19DC6B0E1CC0AA7D0064A9FD /* MyTeamViewController.m */, 19DC6B0E1CC0AA7D0064A9FD /* MyTeamViewController.m */,
); );
name = "MyTeams(我的团队)";
path = MyTeams; path = MyTeams;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1749,7 +1809,7 @@ ...@@ -1749,7 +1809,7 @@
path = util; path = util;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
19DC6B2E1CC0D5190064A9FD /* CustomerManagement */ = { 19DC6B2E1CC0D5190064A9FD /* CustomerManagement(客户管理) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
19DC6B341CC0D5FF0064A9FD /* CustomerManagementViewController.h */, 19DC6B341CC0D5FF0064A9FD /* CustomerManagementViewController.h */,
...@@ -1757,6 +1817,7 @@ ...@@ -1757,6 +1817,7 @@
1929008D1CD1FFF800D226E7 /* CustomerViewController.h */, 1929008D1CD1FFF800D226E7 /* CustomerViewController.h */,
1929008E1CD1FFF800D226E7 /* CustomerViewController.m */, 1929008E1CD1FFF800D226E7 /* CustomerViewController.m */,
); );
name = "CustomerManagement(客户管理)";
path = CustomerManagement; path = CustomerManagement;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1787,13 +1848,14 @@ ...@@ -1787,13 +1848,14 @@
path = CustomerManagement; path = CustomerManagement;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
19DCCA851C9A95E70072C3BF /* Home */ = { 19DCCA851C9A95E70072C3BF /* Home(我的) */ = {
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
19DCCA861C9A95E70072C3BF /* Model */, 19DCCA861C9A95E70072C3BF /* Model */,
19DCCA871C9A95E70072C3BF /* View */, 19DCCA871C9A95E70072C3BF /* View */,
19DCCA881C9A95E70072C3BF /* ViewController */, 19DCCA881C9A95E70072C3BF /* ViewController */,
); );
name = "Home(我的)";
path = Home; path = Home;
sourceTree = "<group>"; sourceTree = "<group>";
}; };
...@@ -1804,14 +1866,7 @@ ...@@ -1804,14 +1866,7 @@
1900A3451CB6305100B2B7C4 /* CommodityManagement */, 1900A3451CB6305100B2B7C4 /* CommodityManagement */,
19DC6B301CC0D5330064A9FD /* CustomerManagement */, 19DC6B301CC0D5330064A9FD /* CustomerManagement */,
1929401B1CC8D9EF00E377EE /* InviteParterner */, 1929401B1CC8D9EF00E377EE /* InviteParterner */,
196944DF1CEC75FA0036E574 /* JavenAdModel.h */, 1952C2F71CEDB6AB0017E4D6 /* Home */,
196944E01CEC75FA0036E574 /* JavenAdModel.m */,
197BA6871CD865D1000E2087 /* JavencommissionAccountModel.h */,
197BA6881CD865D1000E2087 /* JavencommissionAccountModel.m */,
197BA6801CD851DB000E2087 /* JavenDetailReseller.h */,
197BA6811CD851DB000E2087 /* JavenDetailReseller.m */,
19DC6AFA1CBF867E0064A9FD /* JavenShopModel.h */,
19DC6AFB1CBF867E0064A9FD /* JavenShopModel.m */,
1912FCC71CCDC652004CF976 /* MyTeams */, 1912FCC71CCDC652004CF976 /* MyTeams */,
1900A3461CB6305100B2B7C4 /* Order */, 1900A3461CB6305100B2B7C4 /* Order */,
1900A3471CB6305100B2B7C4 /* Storemanagement */, 1900A3471CB6305100B2B7C4 /* Storemanagement */,
...@@ -1829,17 +1884,7 @@ ...@@ -1829,17 +1884,7 @@
191383361CAB961B005F6440 /* Order */, 191383361CAB961B005F6440 /* Order */,
1979752F1CA90D8600407E3F /* CommodityManagement */, 1979752F1CA90D8600407E3F /* CommodityManagement */,
19ADD3781CA4D38B00EE6E5A /* Commodity */, 19ADD3781CA4D38B00EE6E5A /* Commodity */,
1929F18F1CA11472000E9B26 /* HomeCollectionViewCell.h */, 1952C2F61CEDB6830017E4D6 /* Home */,
1929F1901CA11472000E9B26 /* HomeCollectionViewCell.m */,
1929F1911CA11472000E9B26 /* HomeCollectionViewCell.xib */,
1929F17A1CA0DD77000E9B26 /* HomeTopView.h */,
1929F17B1CA0DD77000E9B26 /* HomeTopView.m */,
1929F17D1CA0DE32000E9B26 /* HomeTopView.xib */,
1929F1821CA0EA64000E9B26 /* MoneyView.h */,
1929F1831CA0EA64000E9B26 /* MoneyView.m */,
1929F1851CA0EA74000E9B26 /* MoneyView.xib */,
1921EF6B1CE5987B00B0BC4A /* HomeCollectionFooterReusableView.h */,
1921EF6C1CE5987B00B0BC4A /* HomeCollectionFooterReusableView.m */,
); );
path = View; path = View;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -1848,20 +1893,13 @@ ...@@ -1848,20 +1893,13 @@
isa = PBXGroup; isa = PBXGroup;
children = ( children = (
192940191CC8D9D500E377EE /* InviteParterner */, 192940191CC8D9D500E377EE /* InviteParterner */,
19DC6B2E1CC0D5190064A9FD /* CustomerManagement */, 19DC6B2E1CC0D5190064A9FD /* CustomerManagement(客户管理) */,
19DC6B0C1CC0A9340064A9FD /* MyTeams */, 19DC6B0C1CC0A9340064A9FD /* MyTeams(我的团队) */,
199B4D901CAE6F3500451E0E /* StoreManagerment */, 199B4D901CAE6F3500451E0E /* StoreManagerment(店铺管理) */,
1979754E1CAB6F4700407E3F /* Order */, 1979754E1CAB6F4700407E3F /* Order(订单) */,
19ADD36B1CA3B88A00EE6E5A /* Commodity */, 19ADD36B1CA3B88A00EE6E5A /* Commodity(添加商品) */,
1979752B1CA90D3900407E3F /* CommodityManagement */, 1979752B1CA90D3900407E3F /* CommodityManagement(商品管理) */,
199BC79F1C9AA7DF00E4E0B8 /* HomeViewController.h */, 1952C2F51CEDB6730017E4D6 /* Home */,
199BC7A01C9AA7DF00E4E0B8 /* HomeViewController.m */,
1929F18C1CA10C94000E9B26 /* HomeCollectionViewController.h */,
1929F18D1CA10C94000E9B26 /* HomeCollectionViewController.m */,
1921EF6E1CE5C0E900B0BC4A /* ShopWebViewController.h */,
1921EF6F1CE5C0E900B0BC4A /* ShopWebViewController.m */,
196944E21CEC7D500036E574 /* HomeAdViewController.h */,
196944E31CEC7D500036E574 /* HomeAdViewController.m */,
); );
path = ViewController; path = ViewController;
sourceTree = "<group>"; sourceTree = "<group>";
...@@ -2541,6 +2579,7 @@ ...@@ -2541,6 +2579,7 @@
191383401CAB9DD4005F6440 /* OrderCellView.m in Sources */, 191383401CAB9DD4005F6440 /* OrderCellView.m in Sources */,
199BC7C71C9BA2A300E4E0B8 /* ResetPasswordViewController.m in Sources */, 199BC7C71C9BA2A300E4E0B8 /* ResetPasswordViewController.m in Sources */,
194FB0E31CE472C40089A3D5 /* NavigationbarView.m in Sources */, 194FB0E31CE472C40089A3D5 /* NavigationbarView.m in Sources */,
1952C2FA1CEDC6160017E4D6 /* JavenCustomerService.m in Sources */,
190A46771CE064A4006037CB /* JavenTicket.m in Sources */, 190A46771CE064A4006037CB /* JavenTicket.m in Sources */,
1912FD061CD090A6004CF976 /* MoreHotBrandViewController.m in Sources */, 1912FD061CD090A6004CF976 /* MoreHotBrandViewController.m in Sources */,
19DCCB5B1C9A9EB30072C3BF /* IBTAudioServicesManager.m in Sources */, 19DCCB5B1C9A9EB30072C3BF /* IBTAudioServicesManager.m in Sources */,
......
...@@ -68,6 +68,7 @@ ...@@ -68,6 +68,7 @@
switch (btn.tag) { switch (btn.tag) {
case 0: case 0:
{ {
//更多品牌
MoreHotBrandViewController *moreHotBrandVC = [[MoreHotBrandViewController alloc] init]; MoreHotBrandViewController *moreHotBrandVC = [[MoreHotBrandViewController alloc] init];
moreHotBrandVC.isShowNavigationBar = YES; moreHotBrandVC.isShowNavigationBar = YES;
moreHotBrandVC.arrItems = self.arrData[0]; moreHotBrandVC.arrItems = self.arrData[0];
...@@ -76,6 +77,7 @@ ...@@ -76,6 +77,7 @@
break; break;
case 1: case 1:
{ {
//更多标签
MoreHotTagViewController *moreHotTagVC = [[MoreHotTagViewController alloc] init]; MoreHotTagViewController *moreHotTagVC = [[MoreHotTagViewController alloc] init];
moreHotTagVC.arrItems = self.arrData[1]; moreHotTagVC.arrItems = self.arrData[1];
moreHotTagVC.isShowNavigationBar = YES; moreHotTagVC.isShowNavigationBar = YES;
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#import "CommodityDetailTopView.h" #import "CommodityDetailTopView.h"
#import "CommodityMutipleSelectBottomView.h" #import "CommodityMutipleSelectBottomView.h"
#import <WebKit/WebKit.h> #import <WebKit/WebKit.h>
#import "JavenCustomerService.h"
@interface CommodityDetailViewController ()<WKNavigationDelegate> @interface CommodityDetailViewController ()<WKNavigationDelegate>
@property (nonatomic, weak) WKWebView * webView; @property (nonatomic, weak) WKWebView * webView;
@property (nonatomic, strong) CommodityDetailBottomView *bottomView; @property (nonatomic, strong) CommodityDetailBottomView *bottomView;
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
kButtonAddAction(self.bottomView.buttonShare, shareAction); kButtonAddAction(self.bottomView.buttonShare, shareAction);
kButtonAddAction(self.topView.buttonBack, backAction); kButtonAddAction(self.topView.buttonBack, backAction);
kButtonAddAction(self.topView.buttonHome, homeAction); kButtonAddAction(self.topView.buttonHome, homeAction);
kButtonAddAction(self.bottomView.buttonPhone, startCustomerServices);
[self checkIsFavorite]; [self checkIsFavorite];
...@@ -89,6 +91,7 @@ ...@@ -89,6 +91,7 @@
[weakSelf checkIsFavorite]; [weakSelf checkIsFavorite];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
...@@ -152,21 +155,13 @@ ...@@ -152,21 +155,13 @@
[MBProgressHUD showHUDAddedTo:self.view animated:YES]; [MBProgressHUD showHUDAddedTo:self.view animated:YES];
} }
// 当内容开始返回时调用
- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation
{
}
// 页面加载完成之后调用 // 页面加载完成之后调用
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
{ {
self.bottomView.userInteractionEnabled = YES; self.bottomView.userInteractionEnabled = YES;
[MBProgressHUD hideHUDForView:self.view]; [MBProgressHUD hideHUDForView:self.view];
} }
// 页面加载失败时调用
- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation
{
}
- (void)shareAction - (void)shareAction
...@@ -187,23 +182,10 @@ ...@@ -187,23 +182,10 @@
} }
- (void)startCustomerServices {
//隐藏navigationbar [JavenCustomerService startCustomerServices:self];
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:YES];
}
#pragma mark - webView delegate
- (void)webViewDidStartLoad:(UIWebView *)webView {
[MBProgressHUD showHUDAddedTo:webView animated:YES];
} }
- (void)webViewDidFinishLoad:(UIWebView *)webView {
self.bottomView.userInteractionEnabled = YES;
[MBProgressHUD hideHUDForView:webView];
}
#pragma mark =========== lazy loading =========== #pragma mark =========== lazy loading ===========
- (CommodityDetailBottomView *)bottomView { - (CommodityDetailBottomView *)bottomView {
......
...@@ -92,12 +92,12 @@ ...@@ -92,12 +92,12 @@
@"fetchParts" : @[@"string"]}; @"fetchParts" : @[@"string"]};
WS(weakSelf) WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"goods/query2" parameters:myDictionary success:^(NSURLSessionDataTask *task, id responseObject) { [[HTTPCilent shareCilent] POST:@"goods/query2" parameters:myDictionary success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view];
for (NSDictionary *dic in responseObject[@"queryResult"]) { for (NSDictionary *dic in responseObject[@"queryResult"]) {
CommotityListModel *model = [CommotityListModel modelObjectWithDictionary:dic]; CommotityListModel *model = [CommotityListModel modelObjectWithDictionary:dic];
[weakSelf.arrItemDatas addObject:model]; [weakSelf.arrItemDatas addObject:model];
} }
[MBProgressHUD hideHUDForView:weakSelf.view];
[weakSelf.collectionView reloadData]; [weakSelf.collectionView reloadData];
[weakSelf.collectionView.mj_header endRefreshing]; [weakSelf.collectionView.mj_header endRefreshing];
if ([responseObject[@"queryResult"] count] < kPageSize) { if ([responseObject[@"queryResult"] count] < kPageSize) {
...@@ -106,6 +106,7 @@ ...@@ -106,6 +106,7 @@
[weakSelf.collectionView.mj_footer endRefreshing]; [weakSelf.collectionView.mj_footer endRefreshing];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
...@@ -241,6 +242,7 @@ ...@@ -241,6 +242,7 @@
detailVC.model = self.arrItemDatas[indexPath.row]; detailVC.model = self.arrItemDatas[indexPath.row];
CommodityListCollectionViewCell *cell = (CommodityListCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath]; CommodityListCollectionViewCell *cell = (CommodityListCollectionViewCell *)[collectionView cellForItemAtIndexPath:indexPath];
detailVC.image = cell.imageViewTop.image; detailVC.image = cell.imageViewTop.image;
detailVC.isShowNavigationBar = NO;
[self.navigationController pushViewController:detailVC animated:YES]; [self.navigationController pushViewController:detailVC animated:YES];
} }
......
...@@ -91,9 +91,10 @@ ...@@ -91,9 +91,10 @@
@"fetchParts" : [NSNull null]}; @"fetchParts" : [NSNull null]};
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
WS(weakSelf) WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"goods/query2" parameters:myDictionary success:^(NSURLSessionDataTask *task, id responseObject) { [[HTTPCilent shareCilent] POST:@"goods/query2" parameters:myDictionary success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view];
for (NSDictionary *dic in responseObject[@"queryResult"]) { for (NSDictionary *dic in responseObject[@"queryResult"]) {
CommotityListModel *model = [CommotityListModel modelObjectWithDictionary:dic]; CommotityListModel *model = [CommotityListModel modelObjectWithDictionary:dic];
...@@ -102,6 +103,7 @@ ...@@ -102,6 +103,7 @@
[weakSelf.collectionView reloadData]; [weakSelf.collectionView reloadData];
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
......
...@@ -223,6 +223,7 @@ ...@@ -223,6 +223,7 @@
[weakSelf.tableView reloadData]; [weakSelf.tableView reloadData];
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
} }
...@@ -327,11 +328,13 @@ ...@@ -327,11 +328,13 @@
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{ {
CommodityDetailViewController *detailVC = [[CommodityDetailViewController alloc] init]; CommodityDetailViewController *detailVC = [[CommodityDetailViewController alloc] init];
detailVC.model = self.arrItemDatas[indexPath.row]; detailVC.model = self.arrItemDatas[indexPath.row];
CommodityTableViewCell *cell = (CommodityTableViewCell *)[tableView cellForRowAtIndexPath:indexPath]; CommodityTableViewCell *cell = (CommodityTableViewCell *)[tableView cellForRowAtIndexPath:indexPath];
detailVC.image = cell.imgView.image; detailVC.image = cell.imgView.image;
detailVC.isShowNavigationBar = NO;
//跳转商品详情
[self.navigationController pushViewController:detailVC animated:YES]; [self.navigationController pushViewController:detailVC animated:YES];
} }
......
...@@ -68,8 +68,12 @@ ...@@ -68,8 +68,12 @@
} }
- (void)setUpData { - (void)setUpData {
WS(weakSelf) WS(weakSelf);
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
[[HTTPCilent shareCilent] POST:@"reseller/customer/query" parameters:[self getParams] success:^(NSURLSessionDataTask *task, id responseObject) { [[HTTPCilent shareCilent] POST:@"reseller/customer/query" parameters:[self getParams] success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view];
if ([responseObject[@"code"] isEqualToNumber:@0]) { if ([responseObject[@"code"] isEqualToNumber:@0]) {
NSMutableArray *arr = weakSelf.searchBar.isFirstResponder ? weakSelf.results : weakSelf.arrCellData; NSMutableArray *arr = weakSelf.searchBar.isFirstResponder ? weakSelf.results : weakSelf.arrCellData;
...@@ -77,8 +81,6 @@ ...@@ -77,8 +81,6 @@
JavenCustomer *customer = [JavenCustomer modelObjectWithDictionary:dic]; JavenCustomer *customer = [JavenCustomer modelObjectWithDictionary:dic];
[arr addObject:customer]; [arr addObject:customer];
} }
if ([responseObject[@"queryResult"] count] < kPageSize) { if ([responseObject[@"queryResult"] count] < kPageSize) {
[weakSelf.tableView.mj_footer endRefreshingWithNoMoreData]; [weakSelf.tableView.mj_footer endRefreshingWithNoMoreData];
}else{ }else{
...@@ -86,16 +88,18 @@ ...@@ -86,16 +88,18 @@
} }
[weakSelf.tableView reloadData]; [weakSelf.tableView reloadData];
}else{ }else{
[MBProgressHUD Javen_showError:responseObject[@"message"] onView:weakSelf.view delay:0.7 complete:nil];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
} }
- (NSDictionary *)getParams - (NSDictionary *)getParams
{ {
NSDictionary *params = @{@"defintion" : @{@"conditions" : @[@{@"operation" : @"domain equals", NSDictionary *searchParams = @{@"defintion" : @{@"conditions" : @[@{@"operation" : @"domain equals",
@"parameter" : @{@"operation" : @"string"}, @"parameter" : @{@"operation" : @"string"},
@"parameters" : @[[UserInfo shareInstance].domain]}, @"parameters" : @[[UserInfo shareInstance].domain]},
@{@"operation" : @"createInfo.time between", @{@"operation" : @"createInfo.time between",
...@@ -103,18 +107,37 @@ ...@@ -103,18 +107,37 @@
@"parameters" : @[self.customerCreateDate, [NSNull null]]}, @"parameters" : @[self.customerCreateDate, [NSNull null]]},
@{@"operation" : @"reseller uuid equals", @{@"operation" : @"reseller uuid equals",
@"parameter" : @{@"operation" : @"string"}, @"parameter" : @{@"operation" : @"string"},
@"parameters" : @[[UserInfo shareInstance].uuid]}, @"parameters" : @[[UserInfo shareInstance].uuid]}
@{@"operation" : @"mobilephone equals", ,
@{@"operation" : @"consumer mobilephone equals",
@"parameter" : @{@"operation" : @"string"},
@"parameters" : @[_phoneNo]}
],
@"orders" : @[@{@"field" : self.field,
@"direction" : self.direction}],
@"pageSize" : @(kPageSize),
@"page" : @(self.page),
@"probePages" : @0},
@"fetchParts" : @[@""]};
NSDictionary *params = @{@"defintion" : @{@"conditions" : @[@{@"operation" : @"domain equals",
@"parameter" : @{@"operation" : @"string"},
@"parameters" : @[[UserInfo shareInstance].domain]},
@{@"operation" : @"createInfo.time between",
@"parameter" : @{@"operation" : @"string"}, @"parameter" : @{@"operation" : @"string"},
@"parameters" : @[_phoneNo]}], @"parameters" : @[self.customerCreateDate, [NSNull null]]},
@{@"operation" : @"reseller uuid equals",
@"parameter" : @{@"operation" : @"string"},
@"parameters" : @[[UserInfo shareInstance].uuid]}
],
@"orders" : @[@{@"field" : self.field, @"orders" : @[@{@"field" : self.field,
@"direction" : self.direction}], @"direction" : self.direction}],
@"pageSize" : @(kPageSize), @"pageSize" : @(kPageSize),
@"page" : @(self.page), @"page" : @(self.page),
@"probePages" : @0}, @"probePages" : @0},
@"fetchParts" : @[@""]}; @"fetchParts" : @[@""]};
NSString *strJson = [params mj_JSONString];
return params; return self.searchBar.isFirstResponder ? searchParams : params;
} }
......
...@@ -54,16 +54,26 @@ ...@@ -54,16 +54,26 @@
} }
- (void)setUpData { - (void)setUpData {
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
WS(weakSelf) WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"order/query" parameters:[self getParams] success:^(NSURLSessionDataTask *task, id responseObject) { [[HTTPCilent shareCilent] POST:@"order/query" parameters:[self getParams] success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view];
if (kIsResponseSuccess(responseObject)) {
for (NSDictionary *dic in responseObject[@"queryResult"]) { for (NSDictionary *dic in responseObject[@"queryResult"]) {
JavenOrderModel *model = [JavenOrderModel modelObjectWithDictionary:dic]; JavenOrderModel *model = [JavenOrderModel modelObjectWithDictionary:dic];
[weakSelf.arrDatas addObject:model]; [weakSelf.arrDatas addObject:model];
} }
}else{
[MBProgressHUD Javen_showError:responseObject[@"message"] onView:weakSelf.view delay:0.7 complete:nil];
}
[weakSelf.tableView reloadData]; [weakSelf.tableView reloadData];
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
} }
......
...@@ -19,13 +19,14 @@ ...@@ -19,13 +19,14 @@
- (void)viewDidLoad { - (void)viewDidLoad {
[super viewDidLoad]; [super viewDidLoad];
WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kHeight - 64)]; WKWebView *webView = [[WKWebView alloc] initWithFrame:CGRectMake(0, 0, kWidth, kHeight - 64)];
[webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://www.baidu.com"]]]; [webView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:self.strUrl]]];
self.webView = webView; self.webView = webView;
webView.navigationDelegate = self; webView.navigationDelegate = self;
[self.view addSubview:webView]; [self.view addSubview:webView];
// Do any additional setup after loading the view from its nib. // Do any additional setup after loading the view from its nib.
} }
#pragma mark - wkwebview delegate
// 页面开始加载时调用 // 页面开始加载时调用
- (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation - (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation
...@@ -33,11 +34,7 @@ ...@@ -33,11 +34,7 @@
[MBProgressHUD showHUDAddedTo:self.view animated:YES]; [MBProgressHUD showHUDAddedTo:self.view animated:YES];
} }
// 当内容开始返回时调用
- (void)webView:(WKWebView *)webView didCommitNavigation:(WKNavigation *)navigation
{
}
// 页面加载完成之后调用 // 页面加载完成之后调用
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
{ {
...@@ -45,11 +42,7 @@ ...@@ -45,11 +42,7 @@
[MBProgressHUD hideHUDForView:self.view]; [MBProgressHUD hideHUDForView:self.view];
} }
// 页面加载失败时调用
- (void)webView:(WKWebView *)webView didFailProvisionalNavigation:(WKNavigation *)navigation
{
}
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
......
...@@ -8,7 +8,9 @@ ...@@ -8,7 +8,9 @@
#import "InvitePartnerViewController.h" #import "InvitePartnerViewController.h"
#import "SeeMoreViewController.h" #import "SeeMoreViewController.h"
@interface InvitePartnerViewController ()<UIWebViewDelegate> #import <WebKit/WebKit.h>
@interface InvitePartnerViewController ()<WKNavigationDelegate>
@property (weak, nonatomic) IBOutlet UIButton *btnInvite; @property (weak, nonatomic) IBOutlet UIButton *btnInvite;
@end @end
...@@ -26,25 +28,30 @@ ...@@ -26,25 +28,30 @@
- (void)setUpWebView { - (void)setUpWebView {
NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/visit.html", [UserInfo shareInstance].webShopBaseUrl]; NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/visit.html", [UserInfo shareInstance].webShopBaseUrl];
// NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:inviteWebUrl]];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl] cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:10]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl] cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:10];
UIWebView *webView = [UIWebView new]; WKWebView *webView = [WKWebView new];
webView.delegate = self; webView.navigationDelegate = self;
webView.backgroundColor = kBacroundColor; webView.backgroundColor = kBacroundColor;
[webView loadRequest:request]; [webView loadRequest:request];
[self.view addSubview:webView]; [self.view addSubview:webView];
webView.sd_layout.topSpaceToView(self.view, 0).leftSpaceToView(self.view, 0).rightSpaceToView(self.view, 0).bottomSpaceToView(self.btnInvite, 0); webView.sd_layout.topSpaceToView(self.view, 0).leftSpaceToView(self.view, 0).rightSpaceToView(self.view, 0).bottomSpaceToView(self.btnInvite, 0);
} }
#pragma mark =========== webView delegate =========== #pragma mark - wkwebview delegate
- (void)webViewDidStartLoad:(UIWebView *)webView {
[MBProgressHUD showHUDAddedTo:webView animated:YES]; // 页面开始加载时调用
- (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation
{
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
} }
- (void)webViewDidFinishLoad:(UIWebView *)webView { // 页面加载完成之后调用
[MBProgressHUD hideHUDForView:webView]; - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
{
[MBProgressHUD hideHUDForView:self.view];
} }
//查看更多
- (void)actionSeeMore { - (void)actionSeeMore {
SeeMoreViewController *seeMoreVC = [[SeeMoreViewController alloc] init]; SeeMoreViewController *seeMoreVC = [[SeeMoreViewController alloc] init];
seeMoreVC.isShowNavigationBar = YES; seeMoreVC.isShowNavigationBar = YES;
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
// //
#import "SeeMoreViewController.h" #import "SeeMoreViewController.h"
#import <WebKit/WebKit.h>
@interface SeeMoreViewController ()<UIWebViewDelegate> @interface SeeMoreViewController ()<WKNavigationDelegate>
@end @end
...@@ -22,8 +22,8 @@ ...@@ -22,8 +22,8 @@
NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/abcShare.html", [UserInfo shareInstance].webShopBaseUrl]; NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/abcShare.html", [UserInfo shareInstance].webShopBaseUrl];
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl] cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:10]; NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:inviteWebUrl] cachePolicy:NSURLRequestReloadRevalidatingCacheData timeoutInterval:10];
UIWebView *webView = [UIWebView new]; WKWebView *webView = [WKWebView new];
webView.delegate = self; webView.navigationDelegate = self;
[webView loadRequest:request]; [webView loadRequest:request];
[self.view addSubview:webView]; [self.view addSubview:webView];
webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
...@@ -32,14 +32,21 @@ ...@@ -32,14 +32,21 @@
} }
#pragma mark =========== webView delegate =========== #pragma mark - wkwebview delegate
- (void)webViewDidStartLoad:(UIWebView *)webView {
[MBProgressHUD showHUDAddedTo:webView animated:YES]; // 页面开始加载时调用
- (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation
{
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
} }
- (void)webViewDidFinishLoad:(UIWebView *)webView { // 页面加载完成之后调用
[MBProgressHUD hideHUDForView:webView]; - (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
{
[MBProgressHUD hideHUDForView:self.view];
} }
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
// Dispose of any resources that can be recreated. // Dispose of any resources that can be recreated.
......
...@@ -7,8 +7,9 @@ ...@@ -7,8 +7,9 @@
// //
#import "AgreementViewController.h" #import "AgreementViewController.h"
#import <WebKit/WebKit.h>
@interface AgreementViewController () @interface AgreementViewController ()<WKNavigationDelegate>
@end @end
...@@ -28,7 +29,6 @@ ...@@ -28,7 +29,6 @@
}]; }];
// Do any additional setup after loading the view from its nib.
} }
- (void)setUpWebView:(NSString *)url { - (void)setUpWebView:(NSString *)url {
...@@ -36,13 +36,28 @@ ...@@ -36,13 +36,28 @@
NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/visitorXy.html", url]; NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/visitorXy.html", url];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:inviteWebUrl]]; NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:inviteWebUrl]];
UIWebView *webView = [UIWebView new]; WKWebView *webView = [WKWebView new];
webView.navigationDelegate = self;
[webView loadRequest:request]; [webView loadRequest:request];
[self.view addSubview:webView]; [self.view addSubview:webView];
webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); 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); webView.sd_layout.topSpaceToView(self.view, 0).leftSpaceToView(self.view, 0).rightSpaceToView(self.view, 0).bottomSpaceToView(self.view, 0);
} }
// 页面开始加载时调用
- (void)webView:(WKWebView *)webView didStartProvisionalNavigation:(WKNavigation *)navigation
{
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
}
// 页面加载完成之后调用
- (void)webView:(WKWebView *)webView didFinishNavigation:(WKNavigation *)navigation
{
self.title = webView.title;
[MBProgressHUD hideHUDForView:self.view];
}
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
......
...@@ -55,6 +55,7 @@ ...@@ -55,6 +55,7 @@
[MBProgressHUD Javen_showError:responseObject[@"message"] onView:weakSelf.view delay:0.7 complete:nil]; [MBProgressHUD Javen_showError:responseObject[@"message"] onView:weakSelf.view delay:0.7 complete:nil];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
} }
...@@ -83,6 +84,7 @@ ...@@ -83,6 +84,7 @@
[self.tabBarController dismissViewControllerAnimated:YES completion:nil]; [self.tabBarController dismissViewControllerAnimated:YES completion:nil];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
......
...@@ -7,8 +7,8 @@ ...@@ -7,8 +7,8 @@
// //
#import "MyAcountHelfViewController.h" #import "MyAcountHelfViewController.h"
#import <WebKit/WebKit.h>
@interface MyAcountHelfViewController () @interface MyAcountHelfViewController ()<WKNavigationDelegate>
@end @end
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/helpVisit.html", [UserInfo shareInstance].webShopBaseUrl]; NSString *inviteWebUrl = [NSString stringWithFormat:@"%@Wap/helpVisit.html", [UserInfo shareInstance].webShopBaseUrl];
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:inviteWebUrl]]; NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:inviteWebUrl]];
UIWebView *webView = [UIWebView new]; WKWebView *webView = [WKWebView new];
[webView loadRequest:request]; [webView loadRequest:request];
[self.view addSubview:webView]; [self.view addSubview:webView];
webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0); webView.scrollView.contentInset = UIEdgeInsetsMake(0, 0, 0, 0);
......
...@@ -82,15 +82,19 @@ ...@@ -82,15 +82,19 @@
[MBProgressHUD Javen_showMessage:@"提交中…" onView:self.view]; [MBProgressHUD Javen_showMessage:@"提交中…" onView:self.view];
WS(weakSelf) WS(weakSelf)
[[HTTPCilent shareCilent] POST:@"reseller/save" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) { [[HTTPCilent shareCilent] POST:@"reseller/save" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
if ([responseObject[@"code"] isEqualToNumber:@0]) {
[MBProgressHUD hideHUDForView:weakSelf.view]; [MBProgressHUD hideHUDForView:weakSelf.view];
[MBProgressHUD Javen_showSuccess:@"设置成功!" onView:weakSelf.view delay:0.7 complete:^{
if ([responseObject[@"code"] isEqualToNumber:@0]) {
[MBProgressHUD Javen_showSuccess:@"设置成功!" onView:weakSelf.view delay:0.7 complete:^{
}];
}else{
[MBProgressHUD Javen_showSuccess:responseObject[@"message"] onView:weakSelf.view delay:0.7 complete:^{
}]; }];
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
} }
......
...@@ -120,7 +120,7 @@ ...@@ -120,7 +120,7 @@
[[HTTPCilent shareCilent] POST:@"reseller/save" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) { [[HTTPCilent shareCilent] POST:@"reseller/save" parameters:params success:^(NSURLSessionDataTask *task, id responseObject) {
[MBProgressHUD hideHUDForView:weakSelf.view]; [MBProgressHUD hideHUDForView:weakSelf.view];
if ([responseObject[@"code"] isEqualToNumber:@0]) { if (kIsResponseSuccess(responseObject)) {
[MBProgressHUD Javen_showSuccess:@"修改成功!" onView:weakSelf.view delay:0.7 complete:^{ [MBProgressHUD Javen_showSuccess:@"修改成功!" onView:weakSelf.view delay:0.7 complete:^{
[weakSelf popAction]; [weakSelf popAction];
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
} }
} failure:^(NSURLSessionDataTask *task, NSError *error) { } failure:^(NSURLSessionDataTask *task, NSError *error) {
[MBProgressHUD hideHUDForView:weakSelf.view];
}]; }];
} }
......
...@@ -49,9 +49,10 @@ ...@@ -49,9 +49,10 @@
[self setUpTableView]; [self setUpTableView];
[self setUpData]; [self setUpData];
self.noBillHistoryView = [NoBillHistoryView viewWithNibName:@"NoBillHistoryView"];
self.noBillHistoryView.hidden = YES;
[self.view addSubview:self.noBillHistoryView]; [self.view addSubview:self.noBillHistoryView];
[MBProgressHUD showHUDAddedTo:self.view animated:YES];
// Do any additional setup after loading the view from its nib. // Do any additional setup after loading the view from its nib.
} }
- (void)viewWillLayoutSubviews { - (void)viewWillLayoutSubviews {
...@@ -94,6 +95,12 @@ ...@@ -94,6 +95,12 @@
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone; self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;
self.tableView.frame = CGRectMake(0, 0, kWidth, kHeight - 64); self.tableView.frame = CGRectMake(0, 0, kWidth, kHeight - 64);
[self.view addSubview:self.tableView]; [self.view addSubview:self.tableView];
UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20, 0, kWidth, 40)];
label.text = @"如需查看更多记录,请联系客服";
label.textColor = kTextColorGray;
self.tableView.tableFooterView = label;
self.tableView.backgroundColor = kBacroundColor;
} }
...@@ -258,6 +265,13 @@ ...@@ -258,6 +265,13 @@
return _arrSortedMonths; return _arrSortedMonths;
} }
- (NoBillHistoryView *)noBillHistoryView {
if (!_noBillHistoryView) {
_noBillHistoryView = [NoBillHistoryView viewWithNibName:@"NoBillHistoryView"];
_noBillHistoryView.hidden = YES;
}
return _noBillHistoryView;
}
- (void)didReceiveMemoryWarning { - (void)didReceiveMemoryWarning {
[super didReceiveMemoryWarning]; [super didReceiveMemoryWarning];
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
#import "UITableView+Category.h" #import "UITableView+Category.h"
#import <SobotKit/SobotKit.h> #import <SobotKit/SobotKit.h>
#import "NavigationbarView.h" #import "NavigationbarView.h"
#import "JavenCustomerService.h"
#define kCellID @"cellId" #define kCellID @"cellId"
@interface MassageViewController ()<UITableViewDelegate, UITableViewDataSource> @interface MassageViewController ()<UITableViewDelegate, UITableViewDataSource>
...@@ -63,161 +63,7 @@ ...@@ -63,161 +63,7 @@
} }
- (void)startCustomerServices { - (void)startCustomerServices {
//企业编号,必填 [JavenCustomerService startCustomerServices:self];
UserInfo *resellerInfo = [UserInfo shareInstance];
NSString *sysNumber=@"1e5947ae875f4a11af054f153c9422ee";
//启动
ZCLibInitInfo *initInfo = [ZCLibInitInfo new];
initInfo.enterpriseId = sysNumber;
//用户id,用于标识用户,建议填写
initInfo.userId=resellerInfo.uuid;
initInfo.phone=resellerInfo.mobilephone;
initInfo.nickName=resellerInfo.name;
initInfo.email=@"unkown";
ZCKitInfo *uiInfo=[ZCKitInfo new];
uiInfo.info=initInfo;
[self customerUI:uiInfo];
[ZCSobot startZCChatView:uiInfo with:self
pageBlock:^(ZCUIChatController *object, ZCPageBlockType type) {
//点击返回
if(type==ZCPageBlockGoBack){
NSLog(@"点击了关闭按钮");
}
//页面UI初始化完成,可以获取UIView,自定义UI
if(type==ZCPageBlockLoadFinish){
// object.topView.backgroundColor = kSysWhite;
//
// object.titleLabel.textColor = [UIColor colorWithHexString:@"333333"];
//
// //banner 返回按钮
// object.backButton.tintColor = [UIColor colorWithHexString:@"333333"];
// [object.backButton setTitle:@"返回" forState:UIControlStateNormal];
// [object.backButton setTitleColor:[UIColor colorWithHexString:@"333333"] forState:UIControlStateNormal];
[object.backButton setImage:[UIImage imageNamed:@"bac"] forState:UIControlStateNormal];
// object.backButton.titleLabel.font = [UIFont systemFontOfSize:18];
//banner 标题
//[object.titleLabel setFont:[UIFont systemFontOfSize:30]];
//banner 底部View
//[object.topView setBackgroundColor:[UIColor greenColor]];
//输入框
//UITextView *tv=[object getChatTextView];
//[tv setBackgroundColor:[UIColor redColor]];
}
//messageLinkClick ,不重写,系统自己跳转,sdk内部不做任何处理
} messageLinkClick:nil];
}
-(void) customerUI:(ZCKitInfo *) kitInfo{
/**
* 自定义信息
*/
//顶部导航条标题文字 评价标题文字 系统相册标题文字 评价客服(立即结束 取消)按钮文字
// kitInfo.titleFont = [UIFont systemFontOfSize:30];
//返回按钮 输入框文字 评价客服是否有以下情况 label 文字 提价评价按钮
// kitInfo.listTitleFont = [UIFont systemFontOfSize:22];
//没有网络提醒的button 没有更多记录label的文字 语音输入的按钮文字 评价不满意(4个button)文字
//占位图片的lablel文字 语音输入时间label文字 语音tipLabel的文字 voiceButton标题文字
// kitInfo.listDetailFont = [UIFont systemFontOfSize:25];
//消息提醒 (转人工、客服接待等)
// kitInfo.listTimeFont = [UIFont systemFontOfSize:22];
//聊天气泡中的文字
// kitInfo.chatFont = [UIFont systemFontOfSize:22];
//聊天的背景颜色
// kitInfo.backgroundColor = [UIColor redColor];
//导航、客服气泡、线条的颜色
kitInfo.customBannerColor = kSysWhite;
//左边气泡的颜色
// kitInfo.leftChatColor = kCustomGreenColor;
//右边气泡的颜色
kitInfo.rightChatColor = kCustomGreenColor;
//底部bottom的背景颜色
kitInfo.backgroundBottomColor = kSysWhite;
//底部bottom的输入框线条背景颜色
//kitInfo.backgroundBottomLineColor = [UIColor redColor];
//提示气泡的背景颜色
// kitInfo.BgTipAirBubblesColor = [UIColor redColor];
//顶部文字的颜色
kitInfo.topViewTextColor = kTextColorDarkGray;
//提示气泡文字颜色
kitInfo.tipLayerTextColor = kTextColorDarkGray;
//左边气泡文字的颜色
kitInfo.leftChatTextColor = kTextColorDarkGray;
//右边气泡文字的颜色[注意:语音动画图片,需要单独替换]
// kitInfo.rightChatTextColor = [UIColor redColor];
//时间文字的颜色
// kitInfo.timeTextColor = [UIColor redColor];
//客服昵称颜色
// kitInfo.serviceNameTextColor = [UIColor redColor];
} }
......
...@@ -74,6 +74,7 @@ ...@@ -74,6 +74,7 @@
success(task, responseObject); success(task, responseObject);
} failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) { } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
[MBProgressHUD showMessage:@"网络错误,请检查网络!"];
CLog(@"GET请求失败!----->%@", [error localizedDescription]); CLog(@"GET请求失败!----->%@", [error localizedDescription]);
failure(task, error); failure(task, error);
}]; }];
......
//
// JavenCustomerService.h
// ALand
//
// Created by Z on 16/5/19.
// Copyright © 2016年 Z. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface JavenCustomerService : NSObject
+ (void)startCustomerServices:(UIViewController *)vc;
@end
//
// JavenCustomerService.m
// ALand
//
// Created by Z on 16/5/19.
// Copyright © 2016年 Z. All rights reserved.
//
#import "JavenCustomerService.h"
#import "ZCSobot.h"
@implementation JavenCustomerService
+ (void)startCustomerServices:(UIViewController *)vc {
//企业编号,必填
UserInfo *resellerInfo = [UserInfo shareInstance];
NSString *sysNumber=@"1e5947ae875f4a11af054f153c9422ee";
//启动
ZCLibInitInfo *initInfo = [ZCLibInitInfo new];
initInfo.enterpriseId = sysNumber;
//用户id,用于标识用户,建议填写
initInfo.userId=resellerInfo.uuid;
initInfo.phone=resellerInfo.mobilephone;
initInfo.nickName=resellerInfo.name;
initInfo.email=@"unkown";
ZCKitInfo *uiInfo=[ZCKitInfo new];
uiInfo.info=initInfo;
[self customerUI:uiInfo];
[ZCSobot startZCChatView:uiInfo with:vc
pageBlock:^(ZCUIChatController *object, ZCPageBlockType type) {
//点击返回
if(type==ZCPageBlockGoBack){
NSLog(@"点击了关闭按钮");
}
//页面UI初始化完成,可以获取UIView,自定义UI
if(type==ZCPageBlockLoadFinish){
// object.topView.backgroundColor = kSysWhite;
//
// object.titleLabel.textColor = [UIColor colorWithHexString:@"333333"];
//
// //banner 返回按钮
// object.backButton.tintColor = [UIColor colorWithHexString:@"333333"];
// [object.backButton setTitle:@"返回" forState:UIControlStateNormal];
// [object.backButton setTitleColor:[UIColor colorWithHexString:@"333333"] forState:UIControlStateNormal];
[object.backButton setImage:[UIImage imageNamed:@"bac"] forState:UIControlStateNormal];
// object.backButton.titleLabel.font = [UIFont systemFontOfSize:18];
//banner 标题
//[object.titleLabel setFont:[UIFont systemFontOfSize:30]];
//banner 底部View
//[object.topView setBackgroundColor:[UIColor greenColor]];
//输入框
//UITextView *tv=[object getChatTextView];
//[tv setBackgroundColor:[UIColor redColor]];
}
//messageLinkClick ,不重写,系统自己跳转,sdk内部不做任何处理
} messageLinkClick:nil];
}
+ (void)customerUI:(ZCKitInfo *) kitInfo{
/**
* 自定义信息
*/
//顶部导航条标题文字 评价标题文字 系统相册标题文字 评价客服(立即结束 取消)按钮文字
// kitInfo.titleFont = [UIFont systemFontOfSize:30];
//返回按钮 输入框文字 评价客服是否有以下情况 label 文字 提价评价按钮
// kitInfo.listTitleFont = [UIFont systemFontOfSize:22];
//没有网络提醒的button 没有更多记录label的文字 语音输入的按钮文字 评价不满意(4个button)文字
//占位图片的lablel文字 语音输入时间label文字 语音tipLabel的文字 voiceButton标题文字
// kitInfo.listDetailFont = [UIFont systemFontOfSize:25];
//消息提醒 (转人工、客服接待等)
// kitInfo.listTimeFont = [UIFont systemFontOfSize:22];
//聊天气泡中的文字
// kitInfo.chatFont = [UIFont systemFontOfSize:22];
//聊天的背景颜色
// kitInfo.backgroundColor = [UIColor redColor];
//导航、客服气泡、线条的颜色
kitInfo.customBannerColor = kSysWhite;
//左边气泡的颜色
// kitInfo.leftChatColor = kCustomGreenColor;
//右边气泡的颜色
kitInfo.rightChatColor = kCustomGreenColor;
//底部bottom的背景颜色
kitInfo.backgroundBottomColor = kSysWhite;
//底部bottom的输入框线条背景颜色
//kitInfo.backgroundBottomLineColor = [UIColor redColor];
//提示气泡的背景颜色
// kitInfo.BgTipAirBubblesColor = [UIColor redColor];
//顶部文字的颜色
kitInfo.topViewTextColor = kTextColorDarkGray;
//提示气泡文字颜色
kitInfo.tipLayerTextColor = kTextColorDarkGray;
//左边气泡文字的颜色
kitInfo.leftChatTextColor = kTextColorDarkGray;
//右边气泡文字的颜色[注意:语音动画图片,需要单独替换]
// kitInfo.rightChatTextColor = [UIColor redColor];
//时间文字的颜色
// kitInfo.timeTextColor = [UIColor redColor];
//客服昵称颜色
// kitInfo.serviceNameTextColor = [UIColor redColor];
}
@end
...@@ -7,12 +7,13 @@ ...@@ -7,12 +7,13 @@
// //
#import <UIKit/UIKit.h> #import <UIKit/UIKit.h>
typedef void (^ActionBlock)(void);
@interface ShareContentView : UIView @interface ShareContentView : UIView
@property (nonatomic, copy) NSString *title; @property (nonatomic, copy) NSString *title;
@property (nonatomic, copy) NSString *url; @property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *content; @property (nonatomic, copy) NSString *content;
@property (nonatomic, strong) UIImage *image; @property (nonatomic, strong) UIImage *image;
@property (nonatomic, copy) ActionBlock clickBlock;
......
...@@ -11,8 +11,9 @@ ...@@ -11,8 +11,9 @@
@implementation ShareContentView @implementation ShareContentView
//分享到微信朋友
- (IBAction)shareToWeiChatSession:(id)sender { - (IBAction)shareToWeiChatSession:(id)sender {
self.clickBlock();
[UMSocialData defaultData].extConfig.wechatSessionData.url = self.url; [UMSocialData defaultData].extConfig.wechatSessionData.url = self.url;
[UMSocialData defaultData].extConfig.wechatSessionData.title = self.title; [UMSocialData defaultData].extConfig.wechatSessionData.title = self.title;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:self.content image:self.image location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){ [[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatSession] content:self.content image:self.image location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){
...@@ -23,7 +24,9 @@ ...@@ -23,7 +24,9 @@
} }
//分享到微信朋友圈
- (IBAction)shareWxTimeLine:(id)sender { - (IBAction)shareWxTimeLine:(id)sender {
self.clickBlock();
[UMSocialData defaultData].extConfig.wechatTimelineData.url = self.url; [UMSocialData defaultData].extConfig.wechatTimelineData.url = self.url;
[UMSocialData defaultData].extConfig.wechatTimelineData.title = self.content; [UMSocialData defaultData].extConfig.wechatTimelineData.title = self.content;
[[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatTimeline] content:self.content image:self.image location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){ [[UMSocialDataService defaultDataService] postSNSWithTypes:@[UMShareToWechatTimeline] content:self.content image:self.image location:nil urlResource:nil presentedController:nil completion:^(UMSocialResponseEntity *response){
......
...@@ -35,11 +35,10 @@ ...@@ -35,11 +35,10 @@
WS(weakSelf) WS(weakSelf)
self.cover.tapAction = ^{ self.cover.tapAction = ^{
[UIView animateWithDuration:0.3 animations:^{ [weakSelf hide];
CLog(@"animate"); };
weakSelf.shareContentView.frame = CGRectMake(0, kHeight, kWidth, 140); self.shareContentView.clickBlock = ^{
}]; [weakSelf hide];
}; };
self.shareContentView.title = title; self.shareContentView.title = title;
...@@ -50,6 +49,15 @@ ...@@ -50,6 +49,15 @@
} }
- (void)hide
{
[self.cover hide];
[UIView animateWithDuration:0.3 animations:^{
self.shareContentView.frame = CGRectMake(0, kHeight, kWidth, 140);
}];
}
- (CoverShadowView *)cover - (CoverShadowView *)cover
{ {
if (!_cover) { if (!_cover) {
...@@ -70,6 +78,15 @@ ...@@ -70,6 +78,15 @@
return _shareContentView; return _shareContentView;
} }
/**
* 分享店铺
*
* @param title 标题
* @param shopDescription 描述
* @param url 链接
* @param image 图片
* @param imageUrl 图片链接(判断图片链接是否存在,不存在则禁止分享)
*/
- (void)shareShopWithTitle:(NSString *)title shopDescription:(NSString *)shopDescription url:(NSString *)url image:(UIImage *)image imageUrl:(NSString *)imageUrl - (void)shareShopWithTitle:(NSString *)title shopDescription:(NSString *)shopDescription url:(NSString *)url image:(UIImage *)image imageUrl:(NSString *)imageUrl
{ {
if (!title || title.length == 0) { if (!title || title.length == 0) {
...@@ -83,6 +100,7 @@ ...@@ -83,6 +100,7 @@
} }
} }
/** 邀请合伙人 */
- (void)invitePartner - (void)invitePartner
{ {
NSString *urlStr = [NSString stringWithFormat:@"%@ShopUser/gpregister/invitationCode/%@.html", [UserInfo shareInstance].webShopBaseUrl, [UserInfo shareInstance].invitationCode]; NSString *urlStr = [NSString stringWithFormat:@"%@ShopUser/gpregister/invitationCode/%@.html", [UserInfo shareInstance].webShopBaseUrl, [UserInfo shareInstance].invitationCode];
......
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