Przeglądaj źródła

Merge branch 'b_c' of http://git.izouma.com/panhui/mobileCyberGamesApp into b_c

xiongzhu 6 lat temu
rodzic
commit
9c7eb2708c

+ 1 - 1
ios/Flutter/flutter_export_environment.sh

@@ -7,4 +7,4 @@ export "FLUTTER_BUILD_DIR=build"
 export "SYMROOT=${SOURCE_ROOT}/../build/ios"
 export "FLUTTER_FRAMEWORK_DIR=/Users/drew/libs/flutter/bin/cache/artifacts/engine/ios-release"
 export "FLUTTER_BUILD_NAME=1.0.3"
-export "FLUTTER_BUILD_NUMBER=8"
+export "FLUTTER_BUILD_NUMBER=9"

+ 32 - 13
lib/pages/LoginSecond.dart

@@ -16,6 +16,7 @@ import '../model/UserInfo.dart';
 import '../widget/LinearButton.dart';
 import '../widget/Dialog.dart';
 import '../model/CustomerService.dart';
+import 'Rule.dart';
 
 class LoginSecond extends StatefulWidget {
   LoginSecond({Key key, this.phone, this.userId = 0}) : super(key: key);
@@ -137,18 +138,21 @@ class LoginSecondState extends State<LoginSecond> {
                                       counterStyle: TextStyle(color: BG_SUB_COLOR, fontSize: 0),
                                     ),
                                   )
-                                : InkWell(
-                                    child: Text('忘记密码?',
-                                        style: TextStyle(
-                                          color: Theme.of(context).primaryColor,
-                                        )),
-                                    onTap: () {
-                                      MyDialog.showDialog(context, '找回密码请联系客服',
-                                          textList: [
-                                            {'value': 'QQ:${_qq}', 'isImportant': false}
-                                          ],
-                                          title: '找回密码');
-                                    },
+                                : Container(
+                                    padding: EdgeInsetsDirectional.only(top: 10),
+                                    child: InkWell(
+                                      child: Text('忘记密码?',
+                                          style: TextStyle(
+                                            color: Theme.of(context).primaryColor,
+                                          )),
+                                      onTap: () {
+                                        MyDialog.showDialog(context, '找回密码请联系客服',
+                                            textList: [
+                                              {'value': 'QQ:${_qq}', 'isImportant': false}
+                                            ],
+                                            title: '找回密码');
+                                      },
+                                    ),
                                   ),
                             Container(
                               height: 52,
@@ -156,7 +160,8 @@ class LoginSecondState extends State<LoginSecond> {
                             LinearButton(
                               btntext: widget.userId == 0 ? '注册' : '登录',
                               onTapHomeMenu: () async {
-                                if (password == '') {
+                                print(password);
+                                if (password == '' || password == null) {
                                   Toast.show(context, '请输入密码', 1500, 'info');
                                 } else if (password != surePass && widget.userId == 0) {
                                   Toast.show(context, '两次密码输入不一致', 1500, 'info');
@@ -184,6 +189,20 @@ class LoginSecondState extends State<LoginSecond> {
                                 }
                               },
                             ),
+                            Container(
+                              padding: EdgeInsetsDirectional.only(top: 40),
+                              child: Center(
+                                child: InkWell(
+                                  child: Text('注册/登录即同意用户隐私协议', style: TextStyle(color: Theme.of(context).primaryColor, fontSize: 12)),
+                                  onTap: () {
+                                    Navigator.push(
+                                      context,
+                                      CupertinoPageRoute(builder: (context) => Rule()),
+                                    );
+                                  },
+                                ),
+                              ),
+                            ),
                           ],
                         ),
                       ),

+ 174 - 0
lib/pages/Rule.dart

@@ -0,0 +1,174 @@
+import 'package:flutter/material.dart';
+
+class Rule extends StatelessWidget {
+  @override
+  Widget build(BuildContext context) {
+    return Scaffold(
+        appBar: AppBar(
+          title: Text('用户注册及使用APP隐私协议'),
+        ),
+        backgroundColor: Color(0xFF2E3049),
+        body: SingleChildScrollView(
+          child: Container(
+            padding: EdgeInsets.all(20),
+            child: Column(
+              crossAxisAlignment: CrossAxisAlignment.start,
+              children: <Widget>[
+                Text(
+                  '在此特别提醒您(用户)在注册成为用户之前,请认真阅读本《用户协议》(以下简称“协议”),确保您充分理解本协议中各条款。请您审慎阅读并选择接受或不接受本协议。您的注册、登录、使用等行为将视为对本协议的接受,并同意接受本协议各项条款的约束。本协议约定本软件的开发者(简称开发者)与用户之间关于“龙电竞”软件服务(以下简称“服务“)的权利义务。“用户”是指注册、登录、使用本服务的个人。本协议可由开发者随时更新,更新后的协议条款一旦公布即代替原来的协议条款,恕不再另行通知,用户可在本APP中查阅最新版协议条款。在修改协议条款后,如果用户不接受修改后的条款,请立即停止使用“龙电竞”提供的服务,用户继续使用服务将被视为接受修改后的协议。',
+                  style: TextStyle(fontSize: 14, color: Color(0xFFD4504B)),
+                ),
+                Container(
+                  height: 15,
+                ),
+                Text(
+                  '一、账号注册',
+                  style: TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '1、用户在使用本服务前需要注册一个“龙电竞”账号。“龙电竞”账号应当使用手机号码绑定注册,请用户使用尚未与“龙电竞”账号绑定的手机号码,以及未被服务根据本协议封禁的手机号码注册“开发者”账号。服务可以根据用户需求或产品需要对账号注册和绑定的方式进行变更,而无须事先通知用户。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '2、用户完成注册即表明用户同意服务提取、公开及使用用户的信息,包括但不限于用户的名称、比赛记录、比赛结果(积分)、比赛视频等等。 ',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 15,
+                ),
+                Text(
+                  ' 二、游戏录屏',
+                  style: TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '1、为了比赛的公平性,“龙竞技”软件会对用户的游戏过程进行录屏,以核对用户的电竞结果本身是否真实有效。录屏的开始和结束都将明确的通知用户。 ',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '2、用户完成注册既表明同意软件对用户游戏过程进行录屏的行为,以及在录屏过程中存在的潜在泄露信息的风险。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '3、在录屏过程中请尽量不要打开其它有可能泄露用户隐私的软件。如果用户打开了有可能泄露用户隐私的软件,龙竞技承诺将不提取、记录、保留因为这一行为而可能泄露的任何信息,但是因为该视频有可能被公开,所以依然存在着一定风险。如果发生隐私泄露,开发者不承担任何责任。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 15,
+                ),
+                Text(
+                  '三、用户个人隐私信息保护',
+                  style: TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '1、如果开发者发现或收到他人举报或投诉用户违反本协议约定的,开发者有权不经通知随时对比赛结果进行审查、改判,并视情节轻重对违规账号处以包括但不限于警告、账号封禁 、设备封禁 、功能封禁 的处罚,且通知用户处理结果。 ',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '2、因违反用户协议被封禁的用户,可以自行与开发者联系。其中,被实施功能封禁的用户会在封禁期届满后自动恢复被封禁功能。被封禁用户可提交申诉,开发者将对申诉进行审查,并自行合理判断决定是否变更处罚措施。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '3、用户理解并同意,开发者有权依合理判断对违反有关法律法规或本协议规定的行为进行处罚,对违法违规的任何用户采取适当的法律行动,并依据法律法规保存有关信息向有关部门报告等,用户应承担由此而产生的一切法律责任。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '4、用户理解并同意,因用户违反本协议约定,导致或产生的任何第三方主张的任何索赔、要求或损失,包括合理的律师费,用户应当赔偿开发者与合作公司、关联公司,并使之免受损害。 ',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 15,
+                ),
+                Text(
+                  '四、用户公平比赛',
+                  style: TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '1、用户比赛指的是使用本软件进行的线上电竞比赛。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '2、用户不得在比赛中存在如使用外挂等恶意影响比赛结果的行为。 ',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '3、用户不得在昵称中使用违反法律规定的名称,比如淫秽色情、种族歧视、侮辱诽谤他人等等。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 15,
+                ),
+                Text(
+                  '五、其他',
+                  style: TextStyle(fontSize: 16, color: Colors.white, fontWeight: FontWeight.w600),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '1、开发者郑重提醒用户注意本协议中免除开发者责任和限制用户权利的条款,请用户仔细阅读,自主考虑风险。未成年人应在法定监护人的陪同下阅读本协议。 ',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '2、本协议的效力、解释及纠纷的解决,适用于中华人民共和国法律。若用户和开发者之间发生任何纠纷或争议,首先应友好协商解决,协商不成的,用户同意将纠纷或争议提交开发者住所地有管辖权的人民法院管辖。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 10,
+                ),
+                Text(
+                  '3、本协议的任何条款无论因何种原因无效或不具可执行性,其余条款仍有效,对双方具有约束力。',
+                  style: TextStyle(fontSize: 14, color: Colors.white),
+                ),
+                Container(
+                  height: 20,
+                ),
+                Text(
+                  '本《协议》版权由开发者所有,开发者保留一切对本《协议》解释的权利。',
+                  style: TextStyle(fontSize: 14, color: Color(0xFFD4504B)),
+                  textAlign: TextAlign.center,
+                )
+              ],
+            ),
+          ),
+        ));
+  }
+}

+ 1 - 1
pubspec.yaml

@@ -1,7 +1,7 @@
 name: wanna_battle
 description: A new Flutter project.
 
-version: 1.0.3+8
+version: 1.0.3+9
 
 environment:
   sdk: ">=2.1.0 <3.0.0"