Browse Source

Merge branches 'dev' and 'master' of https://git.lotus-wallet.com/fmk/huixiang_app

 Conflicts:
	pubspec.lock
null_safety
fmk 4 years ago
parent
commit
b83840ce56
  1. 3
      lib/generated/intl/messages_en.dart
  2. 3
      lib/generated/intl/messages_zh_CN.dart
  3. 3
      lib/generated/intl/messages_zh_TW.dart
  4. 30
      lib/generated/l10n.dart
  5. 34
      lib/home/points_mall_page.dart
  6. 3
      lib/l10n/intl_en.arb
  7. 3
      lib/l10n/intl_zh_CN.arb
  8. 3
      lib/l10n/intl_zh_TW.arb
  9. 12
      lib/login/login_page.dart
  10. 304
      pubspec.lock
  11. 2
      pubspec.yaml

3
lib/generated/intl/messages_en.dart

@ -86,6 +86,7 @@ class MessageLookup extends MessageLookupByLibrary {
"bainianchuanjiao" : MessageLookupByLibrary.simpleMessage("百年川椒"), "bainianchuanjiao" : MessageLookupByLibrary.simpleMessage("百年川椒"),
"baiyinhuiyuan" : MessageLookupByLibrary.simpleMessage("白银会员"), "baiyinhuiyuan" : MessageLookupByLibrary.simpleMessage("白银会员"),
"banben" : m0, "banben" : m0,
"bangong" : MessageLookupByLibrary.simpleMessage("办公"),
"bangzhuyufankui" : MessageLookupByLibrary.simpleMessage("帮助与反馈"), "bangzhuyufankui" : MessageLookupByLibrary.simpleMessage("帮助与反馈"),
"beizhu" : MessageLookupByLibrary.simpleMessage("备注"), "beizhu" : MessageLookupByLibrary.simpleMessage("备注"),
"brand_yixinhuixiang" : MessageLookupByLibrary.simpleMessage("一心回乡"), "brand_yixinhuixiang" : MessageLookupByLibrary.simpleMessage("一心回乡"),
@ -322,6 +323,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shanglajiazai" : MessageLookupByLibrary.simpleMessage("上拉加载"), "shanglajiazai" : MessageLookupByLibrary.simpleMessage("上拉加载"),
"shangpinjifen" : m20, "shangpinjifen" : m20,
"shangpinxiangqing" : MessageLookupByLibrary.simpleMessage("商品详情"), "shangpinxiangqing" : MessageLookupByLibrary.simpleMessage("商品详情"),
"shenghuoyule" : MessageLookupByLibrary.simpleMessage("生活娱乐"),
"shenmijifendali" : MessageLookupByLibrary.simpleMessage("神秘积分大礼"), "shenmijifendali" : MessageLookupByLibrary.simpleMessage("神秘积分大礼"),
"shenqingtuikuan" : MessageLookupByLibrary.simpleMessage("申请退款"), "shenqingtuikuan" : MessageLookupByLibrary.simpleMessage("申请退款"),
"shezhi" : MessageLookupByLibrary.simpleMessage("设置"), "shezhi" : MessageLookupByLibrary.simpleMessage("设置"),
@ -399,6 +401,7 @@ class MessageLookup extends MessageLookupByLibrary {
"yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"), "yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"),
"yilingqu" : MessageLookupByLibrary.simpleMessage("已领取"), "yilingqu" : MessageLookupByLibrary.simpleMessage("已领取"),
"yingyeshijian" : m26, "yingyeshijian" : m26,
"yinshi" : MessageLookupByLibrary.simpleMessage("饮食"),
"yinsishengming" : MessageLookupByLibrary.simpleMessage("隐私声明"), "yinsishengming" : MessageLookupByLibrary.simpleMessage("隐私声明"),
"yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"), "yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"),
"yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "), "yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "),

3
lib/generated/intl/messages_zh_CN.dart

@ -86,6 +86,7 @@ class MessageLookup extends MessageLookupByLibrary {
"bainianchuanjiao" : MessageLookupByLibrary.simpleMessage("百年川椒"), "bainianchuanjiao" : MessageLookupByLibrary.simpleMessage("百年川椒"),
"baiyinhuiyuan" : MessageLookupByLibrary.simpleMessage("白银会员"), "baiyinhuiyuan" : MessageLookupByLibrary.simpleMessage("白银会员"),
"banben" : m0, "banben" : m0,
"bangong" : MessageLookupByLibrary.simpleMessage("办公"),
"bangzhuyufankui" : MessageLookupByLibrary.simpleMessage("帮助与反馈"), "bangzhuyufankui" : MessageLookupByLibrary.simpleMessage("帮助与反馈"),
"beizhu" : MessageLookupByLibrary.simpleMessage("备注"), "beizhu" : MessageLookupByLibrary.simpleMessage("备注"),
"brand_yixinhuixiang" : MessageLookupByLibrary.simpleMessage("一心回乡"), "brand_yixinhuixiang" : MessageLookupByLibrary.simpleMessage("一心回乡"),
@ -321,6 +322,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shanglajiazai" : MessageLookupByLibrary.simpleMessage("上拉加载"), "shanglajiazai" : MessageLookupByLibrary.simpleMessage("上拉加载"),
"shangpinjifen" : m20, "shangpinjifen" : m20,
"shangpinxiangqing" : MessageLookupByLibrary.simpleMessage("商品详情"), "shangpinxiangqing" : MessageLookupByLibrary.simpleMessage("商品详情"),
"shenghuoyule" : MessageLookupByLibrary.simpleMessage("生活娱乐"),
"shenmijifendali" : MessageLookupByLibrary.simpleMessage("神秘积分大礼"), "shenmijifendali" : MessageLookupByLibrary.simpleMessage("神秘积分大礼"),
"shenqingtuikuan" : MessageLookupByLibrary.simpleMessage("申请退款"), "shenqingtuikuan" : MessageLookupByLibrary.simpleMessage("申请退款"),
"shezhi" : MessageLookupByLibrary.simpleMessage("设置"), "shezhi" : MessageLookupByLibrary.simpleMessage("设置"),
@ -398,6 +400,7 @@ class MessageLookup extends MessageLookupByLibrary {
"yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"), "yikexiao" : MessageLookupByLibrary.simpleMessage("已核销"),
"yilingqu" : MessageLookupByLibrary.simpleMessage("已领取"), "yilingqu" : MessageLookupByLibrary.simpleMessage("已领取"),
"yingyeshijian" : m26, "yingyeshijian" : m26,
"yinshi" : MessageLookupByLibrary.simpleMessage("饮食"),
"yinsishengming" : MessageLookupByLibrary.simpleMessage("隐私声明"), "yinsishengming" : MessageLookupByLibrary.simpleMessage("隐私声明"),
"yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"), "yiqiandao" : MessageLookupByLibrary.simpleMessage("已签到"),
"yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "), "yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "),

3
lib/generated/intl/messages_zh_TW.dart

@ -86,6 +86,7 @@ class MessageLookup extends MessageLookupByLibrary {
"bainianchuanjiao" : MessageLookupByLibrary.simpleMessage("百年川椒"), "bainianchuanjiao" : MessageLookupByLibrary.simpleMessage("百年川椒"),
"baiyinhuiyuan" : MessageLookupByLibrary.simpleMessage("白銀會員"), "baiyinhuiyuan" : MessageLookupByLibrary.simpleMessage("白銀會員"),
"banben" : m0, "banben" : m0,
"bangong" : MessageLookupByLibrary.simpleMessage("辦公"),
"bangzhuyufankui" : MessageLookupByLibrary.simpleMessage("幫助與反饋"), "bangzhuyufankui" : MessageLookupByLibrary.simpleMessage("幫助與反饋"),
"beizhu" : MessageLookupByLibrary.simpleMessage("備注"), "beizhu" : MessageLookupByLibrary.simpleMessage("備注"),
"brand_yixinhuixiang" : MessageLookupByLibrary.simpleMessage("一心回鄉"), "brand_yixinhuixiang" : MessageLookupByLibrary.simpleMessage("一心回鄉"),
@ -321,6 +322,7 @@ class MessageLookup extends MessageLookupByLibrary {
"shanglajiazai" : MessageLookupByLibrary.simpleMessage("上拉加載"), "shanglajiazai" : MessageLookupByLibrary.simpleMessage("上拉加載"),
"shangpinjifen" : m20, "shangpinjifen" : m20,
"shangpinxiangqing" : MessageLookupByLibrary.simpleMessage("商品詳情"), "shangpinxiangqing" : MessageLookupByLibrary.simpleMessage("商品詳情"),
"shenghuoyule" : MessageLookupByLibrary.simpleMessage("生活娛樂"),
"shenmijifendali" : MessageLookupByLibrary.simpleMessage("神秘積分大禮"), "shenmijifendali" : MessageLookupByLibrary.simpleMessage("神秘積分大禮"),
"shenqingtuikuan" : MessageLookupByLibrary.simpleMessage("申請退款"), "shenqingtuikuan" : MessageLookupByLibrary.simpleMessage("申請退款"),
"shezhi" : MessageLookupByLibrary.simpleMessage("設置"), "shezhi" : MessageLookupByLibrary.simpleMessage("設置"),
@ -398,6 +400,7 @@ class MessageLookup extends MessageLookupByLibrary {
"yikexiao" : MessageLookupByLibrary.simpleMessage("已核銷"), "yikexiao" : MessageLookupByLibrary.simpleMessage("已核銷"),
"yilingqu" : MessageLookupByLibrary.simpleMessage("已領取"), "yilingqu" : MessageLookupByLibrary.simpleMessage("已領取"),
"yingyeshijian" : m26, "yingyeshijian" : m26,
"yinshi" : MessageLookupByLibrary.simpleMessage("飲食"),
"yinsishengming" : MessageLookupByLibrary.simpleMessage("隱私聲明"), "yinsishengming" : MessageLookupByLibrary.simpleMessage("隱私聲明"),
"yiqiandao" : MessageLookupByLibrary.simpleMessage("已簽到"), "yiqiandao" : MessageLookupByLibrary.simpleMessage("已簽到"),
"yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "), "yiquxiao" : MessageLookupByLibrary.simpleMessage(" 已取消 "),

30
lib/generated/l10n.dart

@ -3725,6 +3725,36 @@ class S {
); );
} }
/// ``
String get yinshi {
return Intl.message(
'饮食',
name: 'yinshi',
desc: '',
args: [],
);
}
/// ``
String get shenghuoyule {
return Intl.message(
'生活娱乐',
name: 'shenghuoyule',
desc: '',
args: [],
);
}
/// ``
String get bangong {
return Intl.message(
'办公',
name: 'bangong',
desc: '',
args: [],
);
}
/// `使` /// `使`
String get privacy_policy4 { String get privacy_policy4 {
return Intl.message( return Intl.message(

34
lib/home/points_mall_page.dart

@ -183,34 +183,25 @@ class _PointsMallPage extends State<PointsMallPage>
alignment: Alignment.centerLeft, alignment: Alignment.centerLeft,
child: DefaultTabController( child: DefaultTabController(
length: 4, length: 4,
child:Stack( child: TabBar(
children: [
Padding(padding: EdgeInsets.only(top: 39),child:Divider(
// indent: 0.0,
thickness:1.5,
color: Color(0xffE6E6E6),
)),
TabBar(
isScrollable: true, // isScrollable: true, //
indicatorColor: Color(0xff39B54A), indicatorColor: Color(0xff39B54A),
labelColor: Color(0xff32A060), labelColor: Color(0xff32A060),
labelStyle: TextStyle(fontSize: 14), labelStyle: TextStyle(fontSize: 14,fontWeight: FontWeight.bold),
unselectedLabelStyle: TextStyle( unselectedLabelStyle: TextStyle(
fontSize: 14, fontSize: 14,
fontWeight: FontWeight.normal, fontWeight: FontWeight.w400,
), ),
// controller: tabController, // controller: tabController,
// //
unselectedLabelColor: Color(0xff262626), unselectedLabelColor: Color(0xff4D4D4D),
indicatorSize: TabBarIndicatorSize.label, indicatorSize: TabBarIndicatorSize.label,
// //
tabs: <Widget>[ tabs: <Widget>[
Tab(text: "全部"), Tab(text: S.current.quanbu),
Tab(text: "饮食"), Tab(text: S.current.yinshi),
Tab(text: "生活娱乐"), Tab(text: S.current.shenghuoyule),
Tab(text: "办公"), Tab(text: S.current.bangong),
],
),
], ],
), ),
), ),
@ -320,7 +311,7 @@ class _PointsMallPage extends State<PointsMallPage>
), ),
Container( Container(
margin: margin:
EdgeInsets.only(left: 12.w, right: 12.w, bottom: 10.h, top: 10.h), EdgeInsets.only(left: 12.w, right: 12.w, top: 10.h),
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.start, crossAxisAlignment: CrossAxisAlignment.start,
@ -329,8 +320,8 @@ class _PointsMallPage extends State<PointsMallPage>
goods.name, goods.name,
overflow: TextOverflow.ellipsis, overflow: TextOverflow.ellipsis,
style: TextStyle( style: TextStyle(
color: Colors.black, color: Color(0xff353535),
fontWeight: FontWeight.bold, fontWeight: FontWeight.w600,
fontSize: 16.sp, fontSize: 16.sp,
), ),
), ),
@ -338,7 +329,7 @@ class _PointsMallPage extends State<PointsMallPage>
height: 8.h, height: 8.h,
), ),
Container( Container(
height: 34.h, height: 30.h,
child: Text( child: Text(
goods.description, goods.description,
maxLines: 2, maxLines: 2,
@ -474,6 +465,7 @@ class _PointsMallPage extends State<PointsMallPage>
), ),
Container( Container(
margin: EdgeInsets.only(left: 15), margin: EdgeInsets.only(left: 15),
height: 50.h,
child: Column( child: Column(
mainAxisAlignment: MainAxisAlignment.spaceEvenly, mainAxisAlignment: MainAxisAlignment.spaceEvenly,
crossAxisAlignment: CrossAxisAlignment.end, crossAxisAlignment: CrossAxisAlignment.end,

3
lib/l10n/intl_en.arb

@ -386,6 +386,9 @@
"youkedenglu": "游客登录", "youkedenglu": "游客登录",
"yishouquan": "已授权", "yishouquan": "已授权",
"qingshuruchongzhijine": "请输入充值金额", "qingshuruchongzhijine": "请输入充值金额",
"yinshi": "饮食",
"shenghuoyule": "生活娱乐",
"bangong": "办公",

3
lib/l10n/intl_zh_CN.arb

@ -387,6 +387,9 @@
"youkedenglu": "游客登录", "youkedenglu": "游客登录",
"yishouquan": "已授权", "yishouquan": "已授权",
"qingshuruchongzhijine": "请输入充值金额", "qingshuruchongzhijine": "请输入充值金额",
"yinshi": "饮食",
"shenghuoyule": "生活娱乐",
"bangong": "办公",

3
lib/l10n/intl_zh_TW.arb

@ -379,6 +379,9 @@
"youkedenglu": "遊客登錄", "youkedenglu": "遊客登錄",
"yishouquan": "已授權", "yishouquan": "已授權",
"qingshuruchongzhijine": "請輸入充值金額", "qingshuruchongzhijine": "請輸入充值金額",
"yinshi": "飲食",
"shenghuoyule": "生活娛樂",
"bangong": "辦公",
"privacy_policy4": "并使用本機號碼登錄" "privacy_policy4": "并使用本機號碼登錄"

12
lib/login/login_page.dart

@ -17,7 +17,7 @@ import 'package:flutter/services.dart';
import 'package:huixiang/generated/l10n.dart'; import 'package:huixiang/generated/l10n.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart'; import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:dio/dio.dart'; import 'package:dio/dio.dart';
import 'package:photo_view/photo_view.dart'; // import 'package:photo_view/photo_view.dart';
import 'package:shared_preferences/shared_preferences.dart'; import 'package:shared_preferences/shared_preferences.dart';
class LoginPage extends StatefulWidget { class LoginPage extends StatefulWidget {
@ -390,11 +390,11 @@ class _MyLoginPageState extends State<LoginPage> with TickerProviderStateMixin {
child: Stack( child: Stack(
alignment: Alignment.center, alignment: Alignment.center,
children: [ children: [
PhotoView( // PhotoView(
imageProvider: AssetImage("assets/image/laoban.png"), // imageProvider: AssetImage("assets/image/laoban.png"),
initialScale: Platform.isAndroid ? 1.02 : 1.2, // initialScale: Platform.isAndroid ? 1.02 : 1.2,
basePosition: alignmentProgress, // basePosition: alignmentProgress,
), // ),
Positioned( Positioned(
top: 54.h, top: 54.h,
left: 28.w, left: 28.w,

304
pubspec.lock

File diff suppressed because it is too large Load Diff

2
pubspec.yaml

@ -87,7 +87,7 @@ dependencies:
cached_network_image: ^2.0.0 cached_network_image: ^2.0.0
flutter_html: ^1.3.0 #2.1.0 flutter_html: ^1.3.0 #2.1.0
photo_view: ^0.11.1 # photo_view: ^0.11.1
chewie: ^0.12.2 chewie: ^0.12.2
video_player: ^1.0.1 video_player: ^1.0.1

Loading…
Cancel
Save