Browse Source

添加邀请好友页面

tags/0.0.1
Weller 4 years ago
parent
commit
e6ae9a28c4
3 changed files with 75 additions and 6 deletions
  1. +2
    -2
      example/ios/Runner/AppDelegate.m
  2. +65
    -0
      lib/pages/invited_friends/invited_friends.dart
  3. +8
    -4
      lib/register.dart

+ 2
- 2
example/ios/Runner/AppDelegate.m View File

@@ -27,8 +27,8 @@
// 获取设置 // 获取设置
- (NSDictionary*)getSetting { - (NSDictionary*)getSetting {
return @{ return @{
// @"domain": @"http://120.76.175.204:8989"
@"domain": @"http://192.168.0.113:5000"
@"domain": @"http://inapi.izhyin.cn"
//@"domain": @"http://192.168.0.113:5000"
}; };
} }




+ 65
- 0
lib/pages/invited_friends/invited_friends.dart View File

@@ -0,0 +1,65 @@
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:zhiying_comm/zhiying_comm.dart';

// 邀请好友
class InvitedFriendsPage extends StatefulWidget {
final Map<String, dynamic> model;

const InvitedFriendsPage(this.model, {Key key}) : super(key: key);

@override
_InvitedFriendsPageState createState() => _InvitedFriendsPageState();
}

class _InvitedFriendsPageState extends State<InvitedFriendsPage> {
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: _createNav(),
);
}

// 导航栏
Widget _createNav() {
return CupertinoNavigationBar(
border: Border(
bottom: BorderSide(
width: 0.0, // One physical pixel.
style: BorderStyle.none,
),
),
backgroundColor: HexColor.fromHex('#ffffff'),
leading: Navigator.canPop(context)
? GestureDetector(
child: Container(
padding: EdgeInsets.zero,
child: Icon(
Icons.arrow_back_ios,
size: 20,
),
),
onTap: () {
if (Navigator.canPop(context)) {
Navigator.pop(context);
}
},
)
: Container(),
middle: Text(
'邀请好友',
style: TextStyle(
fontSize: 15,
color: HexColor.fromHex('#333333'),
),
),
trailing: Text(
'规则',
style: TextStyle(
fontSize: 15,
color: HexColor.fromHex('#333333'),
),
),
);
}
}

+ 8
- 4
lib/register.dart View File

@@ -11,6 +11,7 @@ import 'package:zhiying_base_widget/pages/setting_page/setting_page.dart';
import 'package:zhiying_base_widget/pages/sreach_result_page/sreach_result_page.dart'; import 'package:zhiying_base_widget/pages/sreach_result_page/sreach_result_page.dart';
import 'package:zhiying_base_widget/pages/wallet_page/wallet_page.dart'; import 'package:zhiying_base_widget/pages/wallet_page/wallet_page.dart';
import 'package:zhiying_base_widget/pages/webview/base_webview.dart'; import 'package:zhiying_base_widget/pages/webview/base_webview.dart';
import 'package:zhiying_base_widget/pages/invited_friends/invited_friends.dart';
import 'package:zhiying_base_widget/widgets/goods_details/footer/goods_details_footer_widget.dart'; import 'package:zhiying_base_widget/widgets/goods_details/footer/goods_details_footer_widget.dart';
import 'package:zhiying_base_widget/widgets/goods_details/price/goods_details_price_widget.dart'; import 'package:zhiying_base_widget/widgets/goods_details/price/goods_details_price_widget.dart';
import 'package:zhiying_base_widget/widgets/goods_details/slide_banner/goods_details_slide_banner_widget.dart'; import 'package:zhiying_base_widget/widgets/goods_details/slide_banner/goods_details_slide_banner_widget.dart';
@@ -80,17 +81,20 @@ class BaseWidgetRegister {
'pub.flutter.profile_settings', (model) => MineDetailPage()); 'pub.flutter.profile_settings', (model) => MineDetailPage());
PageFactory.regist('pub.flutter.settings', (model) => SettingPage(model)); PageFactory.regist('pub.flutter.settings', (model) => SettingPage(model));


PageFactory.regist('pub.flutter.my_orders', (model) => OrdersPage(model));
PageFactory.regist('pub.flutter.my_order', (model) => OrdersPage(model));
PageFactory.regist( PageFactory.regist(
'pub.flutter.account_security', (model) => SecurityPage(model)); 'pub.flutter.account_security', (model) => SecurityPage(model));
PageFactory.regist('pub.flutter.account_security_alipay', PageFactory.regist('pub.flutter.account_security_alipay',
(model) => SecurityBindAlipayPage(model));
(model) => SecurityBindAlipayPage(model));
// 登录密码 // 登录密码
PageFactory.regist('pub.flutter.account_security_password', PageFactory.regist('pub.flutter.account_security_password',
(model) => SecurityPassword(model));
(model) => SecurityPassword(model));
// 修改手机号 // 修改手机号
PageFactory.regist('pub.flutter.account_security_mobile', PageFactory.regist('pub.flutter.account_security_mobile',
(model) => SecurityMobile(model));
(model) => SecurityMobile(model));
// 邀请好友
PageFactory.regist('pub.flutter.invite_friends',
(model) => InvitedFriendsPage(model));
} }


// 注册控件 // 注册控件


Loading…
Cancel
Save