Browse Source

1、更新的弹窗

2、淘宝授权的修复
3、明细的空视图
tags/0.0.2+1
PH2 4 years ago
parent
commit
476392f42a
9 changed files with 117 additions and 278 deletions
  1. +1
    -1
      lib/pages/about_us_page/about_us_page.dart
  2. +5
    -1
      lib/pages/home_page/home_page.dart
  3. +15
    -3
      lib/pages/withdraw_page/withdraw_page.dart
  4. +2
    -2
      lib/widgets/goods_details/coupon/counpon_widget.dart
  5. +2
    -3
      lib/widgets/goods_details/evaluate/goods_details_evaluate_widget.dart
  6. +4
    -4
      lib/widgets/goods_details/footer/goods_details_footer_widget.dart
  7. +4
    -5
      lib/widgets/home/home_auth/home_auth.dart
  8. +84
    -259
      lib/widgets/wallet_bil_detail/wallet_bil_detail.dart
  9. +0
    -0
     

+ 1
- 1
lib/pages/about_us_page/about_us_page.dart View File

@@ -37,7 +37,7 @@ class __AboutUsPageContainerState extends State<_AboutUsPageContainer> {
/// 检查更新 /// 检查更新
void _onClickCheckUpdate() async{ void _onClickCheckUpdate() async{
Logger.log('点击了更新'); Logger.log('点击了更新');
// AppUpdateUtil.updateApp(context);
AppUpdateUtil.updateApp(context, needToast: true, mustShowDialog: true);
} }


/// 给个评价 /// 给个评价


+ 5
- 1
lib/pages/home_page/home_page.dart View File

@@ -34,10 +34,14 @@ class _HomePageState extends State<HomePage> {
Logger.error(error); Logger.error(error);
} }
Constants.isShowIntellectDialog = false; Constants.isShowIntellectDialog = false;
// AppUpdateUtil.updateApp(context);
AppUpdateUtil.updateApp(context);
TaobaoAuth.initAuth(context);

super.initState(); super.initState();
} }




@override @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
ScreenUtil.init(context, width: 750, height: 1334); ScreenUtil.init(context, width: 750, height: 1334);


+ 15
- 3
lib/pages/withdraw_page/withdraw_page.dart View File

@@ -51,7 +51,7 @@ class _WithdrawContainerState extends State<_WithdrawContainer> {


int _currentIndex = 0; int _currentIndex = 0;
TextEditingController _controller = TextEditingController(); TextEditingController _controller = TextEditingController();
bool _submitable = true;
bool _submitable = false;
bool _inputable = false; bool _inputable = false;


@override @override
@@ -363,6 +363,19 @@ class _WithdrawContainerState extends State<_WithdrawContainer> {
} }


Widget _createSubmit(WithdrawModel model) { Widget _createSubmit(WithdrawModel model) {

String value = model.cashOutDashbordItems[_currentIndex].value;
try {
if (num.tryParse(value) != null && null != _bloc.withdrawDataModel && num.tryParse(value) < num.tryParse(_bloc.withdrawDataModel.finValue)) {
_submitable = true;
} else {
_submitable = false;
}
} catch (e, s) {
print(e);
print(s);
}

return GestureDetector( return GestureDetector(
onTap: () { onTap: () {
///提现 ///提现
@@ -424,8 +437,7 @@ class _WithdrawContainerState extends State<_WithdrawContainer> {
void _checkSubmit(String value) { void _checkSubmit(String value) {
try { try {
if (num.tryParse(value) != null && if (num.tryParse(value) != null &&
num.tryParse(value) <
num.tryParse(_bloc.withdrawDataModel.finValue)) {
num.tryParse(value) < num.tryParse(_bloc.withdrawDataModel.finValue)) {
_submitable = true; _submitable = true;
} else { } else {
_submitable = false; _submitable = false;


+ 2
- 2
lib/widgets/goods_details/coupon/counpon_widget.dart View File

@@ -72,8 +72,8 @@ class _CounponWidgetContainerState extends State<CounponWidgetContainer> {
return; return;
} }
if (model.provider== 'taobao') { if (model.provider== 'taobao') {
bool isAuth = await TaobaoAuth.isAuth();
if (!isAuth) {
// bool isAuth = await TaobaoAuth.isAuth();
if (!_user.isTBAuth) {
TaobaoAuth.auth(context); TaobaoAuth.auth(context);
return; return;
} }


+ 2
- 3
lib/widgets/goods_details/evaluate/goods_details_evaluate_widget.dart View File

@@ -34,13 +34,12 @@ class GoodsDetailsEvaluateWidget extends StatelessWidget {
return; return;
} }


bool isAuth = await TaobaoAuth.isAuth();
if (!isAuth) {
// bool isAuth = await TaobaoAuth.isAuth();
if (!_user.isTBAuth) {
TaobaoAuth.auth(context); TaobaoAuth.auth(context);
return; return;
} }
TradeResult result; TradeResult result;

if (!EmptyUtil.isEmpty(_modell?.comment_url)) { if (!EmptyUtil.isEmpty(_modell?.comment_url)) {
if (Platform.isAndroid) { if (Platform.isAndroid) {
result = await FlutterAlibc.openByUrl(url: _modell?.comment_url, backUrl: "alisdk://"); result = await FlutterAlibc.openByUrl(url: _modell?.comment_url, backUrl: "alisdk://");


+ 4
- 4
lib/widgets/goods_details/footer/goods_details_footer_widget.dart View File

@@ -112,8 +112,8 @@ class _GooddsDetailsFooterContainerState
return; return;
} }
if (shopType == 'taobao') { if (shopType == 'taobao') {
bool isAuth = await TaobaoAuth.isAuth();
if (!isAuth) {
// bool isAuth = await TaobaoAuth.isAuth();
if (!_user.isTBAuth) {
TaobaoAuth.auth(context); TaobaoAuth.auth(context);
return; return;
} }
@@ -145,8 +145,8 @@ class _GooddsDetailsFooterContainerState
return; return;
} }
if (shopType == 'taobao') { if (shopType == 'taobao') {
bool isAuth = await TaobaoAuth.isAuth();
if (!isAuth) {
// bool isAuth = await TaobaoAuth.isAuth();
if (!_user.isTBAuth) {
TaobaoAuth.auth(context); TaobaoAuth.auth(context);
return; return;
} }


+ 4
- 5
lib/widgets/home/home_auth/home_auth.dart View File

@@ -27,10 +27,9 @@ class _HomeAuthState extends State<HomeAuth> {


@override @override
void initState() { void initState() {
TaobaoAuth.isAuth().then((isAuth) {

setState(() => this._isAuth = isAuth);
});
// TaobaoAuth.isAuth().then((isAuth) {
// setState(() => this._isAuth = isAuth);
// });


super.initState(); super.initState();
} }
@@ -38,7 +37,7 @@ class _HomeAuthState extends State<HomeAuth> {
@override @override
void didChangeDependencies() { void didChangeDependencies() {
_user = Provider.of<UserInfoNotifier>(context).userInfo; _user = Provider.of<UserInfoNotifier>(context).userInfo;
_isAuth = _user.isTBAuth;
_isAuth = _user?.isTBAuth ?? false;
super.didChangeDependencies(); super.didChangeDependencies();
} }




+ 84
- 259
lib/widgets/wallet_bil_detail/wallet_bil_detail.dart View File

@@ -6,7 +6,6 @@ import 'package:intl/intl.dart';
import 'package:pull_to_refresh/pull_to_refresh.dart'; import 'package:pull_to_refresh/pull_to_refresh.dart';
import 'package:tab_indicator_styler/tab_indicator_styler.dart'; import 'package:tab_indicator_styler/tab_indicator_styler.dart';
import 'package:zhiying_base_widget/dialog/select_date_ym_dialog/select_date_ym_dialog.dart'; import 'package:zhiying_base_widget/dialog/select_date_ym_dialog/select_date_ym_dialog.dart';
import 'package:zhiying_base_widget/widgets/empty/empty_widget.dart';
import 'package:zhiying_base_widget/widgets/wallet/wallet_detail/wallet_detail_bloc.dart'; import 'package:zhiying_base_widget/widgets/wallet/wallet_detail/wallet_detail_bloc.dart';
import 'package:zhiying_base_widget/widgets/wallet_bil_detail/wallet_bil_detail_widget_bloc.dart'; import 'package:zhiying_base_widget/widgets/wallet_bil_detail/wallet_bil_detail_widget_bloc.dart';
import 'package:zhiying_comm/util/base_bloc.dart'; import 'package:zhiying_comm/util/base_bloc.dart';
@@ -27,8 +26,7 @@ class WalletBilDetail extends StatefulWidget {
_WalletBilDetailState createState() => _WalletBilDetailState(); _WalletBilDetailState createState() => _WalletBilDetailState();
} }


class _WalletBilDetailState extends State<WalletBilDetail>
with TickerProviderStateMixin, AutomaticKeepAliveClientMixin {
class _WalletBilDetailState extends State<WalletBilDetail> with TickerProviderStateMixin, AutomaticKeepAliveClientMixin {
WalletBilDetailWidgetBloc _bloc; WalletBilDetailWidgetBloc _bloc;


TabController _tabController; TabController _tabController;
@@ -37,8 +35,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
void initState() { void initState() {
_bloc = WalletBilDetailWidgetBloc(); _bloc = WalletBilDetailWidgetBloc();
_bloc.initStyleData(json.decode(widget.data['data'])); _bloc.initStyleData(json.decode(widget.data['data']));
_tabController =
TabController(length: _bloc.styleData.tabList.length, vsync: this);
_tabController = TabController(length: _bloc.styleData.tabList.length, vsync: this);
_bloc.loadInputData(_bloc.inPutCurrentPage, _bloc.inputShowDate); _bloc.loadInputData(_bloc.inPutCurrentPage, _bloc.inputShowDate);
_bloc.loadOutputData(_bloc.outPutCurrentPage, _bloc.outputShowDate); _bloc.loadOutputData(_bloc.outPutCurrentPage, _bloc.outputShowDate);


@@ -54,8 +51,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
AppBar( AppBar(
brightness: Brightness.light, brightness: Brightness.light,
backgroundColor:
HexColor.fromHex(_bloc.styleData.appBarBgColor),
backgroundColor: HexColor.fromHex(_bloc.styleData.appBarBgColor),
centerTitle: true, centerTitle: true,
leading: IconButton( leading: IconButton(
icon: Icon( icon: Icon(
@@ -68,10 +64,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
}), }),
title: Text( title: Text(
_bloc.styleData.appBarName ?? "", _bloc.styleData.appBarName ?? "",
style: TextStyle(
color: HexColor.fromHex(_bloc.styleData.appBarNameColor),
fontWeight: FontWeight.bold,
fontSize: 18),
style: TextStyle(color: HexColor.fromHex(_bloc.styleData.appBarNameColor), fontWeight: FontWeight.bold, fontSize: 18),
), ),
), ),
Container( Container(
@@ -88,22 +81,15 @@ class _WalletBilDetailState extends State<WalletBilDetail>
controller: _tabController, controller: _tabController,
tabs: _buildTabBarItem(), tabs: _buildTabBarItem(),
indicatorWeight: 9.5, indicatorWeight: 9.5,
labelStyle:
TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
unselectedLabelStyle:
TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
labelStyle: TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
unselectedLabelStyle: TextStyle(fontSize: 15, fontWeight: FontWeight.bold),
labelColor: HexColor.fromHex(_bloc.styleData.tabSeletedColor), labelColor: HexColor.fromHex(_bloc.styleData.tabSeletedColor),
unselectedLabelColor:
HexColor.fromHex(_bloc.styleData.tabNoSeletedColor),
indicatorColor:
HexColor.fromHex(_bloc.styleData.tabLineColor),
unselectedLabelColor: HexColor.fromHex(_bloc.styleData.tabNoSeletedColor),
indicatorColor: HexColor.fromHex(_bloc.styleData.tabLineColor),
indicatorSize: TabBarIndicatorSize.label, indicatorSize: TabBarIndicatorSize.label,
), ),
), ),
Expanded(
child: TabBarView(
controller: _tabController,
children: _buildTabViewPage()))
Expanded(child: TabBarView(controller: _tabController, children: _buildTabViewPage()))
], ],
), ),
)); ));
@@ -139,14 +125,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
}, },
child: Padding( child: Padding(
padding: const EdgeInsets.only(top: 8, bottom: 8), padding: const EdgeInsets.only(top: 8, bottom: 8),
child: Text(
tabList.type == "input"
? _bloc.inputShowDate
: _bloc.outputShowDate,
style: TextStyle(
fontSize: 28.sp,
color: HexColor.fromHex(_bloc.styleData.timeSelectColor),
fontWeight: FontWeight.bold))),
child: Text(tabList.type == "input" ? _bloc.inputShowDate : _bloc.outputShowDate,
style: TextStyle(fontSize: 28.sp, color: HexColor.fromHex(_bloc.styleData.timeSelectColor), fontWeight: FontWeight.bold))),
), ),
Icon( Icon(
Icons.arrow_drop_down, Icons.arrow_drop_down,
@@ -166,15 +146,11 @@ class _WalletBilDetailState extends State<WalletBilDetail>
if (tabList.type == 'input') { if (tabList.type == 'input') {
_bloc.inputSelectType = tabViewBtns[index].type; _bloc.inputSelectType = tabViewBtns[index].type;
_bloc.inPutCurrentPage = 1; _bloc.inPutCurrentPage = 1;
_bloc.loadInputData(
_bloc.inPutCurrentPage, _bloc.inputShowDate,
type: _bloc.inputSelectType);
_bloc.loadInputData(_bloc.inPutCurrentPage, _bloc.inputShowDate, type: _bloc.inputSelectType);
} else { } else {
_bloc.outputSelectType = tabViewBtns[index].type; _bloc.outputSelectType = tabViewBtns[index].type;
_bloc.outPutCurrentPage = 1; _bloc.outPutCurrentPage = 1;
_bloc.loadOutputData(
_bloc.outPutCurrentPage, _bloc.outputShowDate,
type: _bloc.outputSelectType);
_bloc.loadOutputData(_bloc.outPutCurrentPage, _bloc.outputShowDate, type: _bloc.outputSelectType);
} }
_bloc.refresh(); _bloc.refresh();
}, },
@@ -182,24 +158,16 @@ class _WalletBilDetailState extends State<WalletBilDetail>
child: Container( child: Container(
alignment: Alignment.center, alignment: Alignment.center,
margin: EdgeInsets.only(right: 12.5), margin: EdgeInsets.only(right: 12.5),
padding: EdgeInsets.only(
left: 16, right: 16, top: 2.5, bottom: 2.5),
padding: EdgeInsets.only(left: 16, right: 16, top: 2.5, bottom: 2.5),
decoration: BoxDecoration( decoration: BoxDecoration(
border: Border.all( border: Border.all(
color: HexColor.fromHex(
selectType == tabViewBtns[index].type
? _bloc.styleData.btnSelectedColor
: _bloc.styleData.btnNoSelectedColor),
color: HexColor.fromHex(selectType == tabViewBtns[index].type ? _bloc.styleData.btnSelectedColor : _bloc.styleData.btnNoSelectedColor),
), ),
borderRadius: BorderRadius.circular(50)), borderRadius: BorderRadius.circular(50)),
child: Text( child: Text(
tabViewBtns[index].name ?? "", tabViewBtns[index].name ?? "",
style: TextStyle( style: TextStyle(
fontSize: 11,
color: HexColor.fromHex(
selectType == tabViewBtns[index].type
? _bloc.styleData.btnSelectedColor
: _bloc.styleData.btnNoSelectedColor)),
fontSize: 11, color: HexColor.fromHex(selectType == tabViewBtns[index].type ? _bloc.styleData.btnSelectedColor : _bloc.styleData.btnNoSelectedColor)),
), ),
), ),
); );
@@ -210,11 +178,9 @@ class _WalletBilDetailState extends State<WalletBilDetail>
} }


_selectDate(TabList tabList) async { _selectDate(TabList tabList) async {
var result = await showDialog(
context: context, builder: (context) => SelectDateYMDialog());
var result = await showDialog(context: context, builder: (context) => SelectDateYMDialog());
if (result != null) { if (result != null) {
var dataTime = DateFormat('yyyy-MM').format(
DateTime(int.parse(result['year']), int.parse(result['month'])));
var dataTime = DateFormat('yyyy-MM').format(DateTime(int.parse(result['year']), int.parse(result['month'])));
if (tabList.type == "input") { if (tabList.type == "input") {
_bloc.inputShowDate = dataTime; _bloc.inputShowDate = dataTime;
_bloc.loadInputData(_bloc.inPutCurrentPage, _bloc.inputShowDate); _bloc.loadInputData(_bloc.inPutCurrentPage, _bloc.inputShowDate);
@@ -229,9 +195,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
_buildBottomItem(TabList tabList) { _buildBottomItem(TabList tabList) {
return ListView.builder( return ListView.builder(
shrinkWrap: true, shrinkWrap: true,
itemCount: tabList.type == 'input'
? _bloc.inputDataVM.length
: _bloc.outputDataVM.length,
itemCount: tabList.type == 'input' ? _bloc.inputDataVM.length : _bloc.outputDataVM.length,
itemBuilder: (context, index) { itemBuilder: (context, index) {
return _buildItem(context, index, tabList); return _buildItem(context, index, tabList);
}); });
@@ -243,11 +207,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
var modelItem = _bloc.inputDataVM[index]; var modelItem = _bloc.inputDataVM[index];
return Container( return Container(
margin: EdgeInsets.only(left: 12.5, right: 12.5, bottom: 4, top: 4), margin: EdgeInsets.only(left: 12.5, right: 12.5, bottom: 4, top: 4),
padding:
EdgeInsets.only(left: 25.w, right: 25.w, top: 20.h, bottom: 20.h),
decoration: BoxDecoration(
color: HexColor.fromHex("#FFFFFF"),
borderRadius: BorderRadius.circular(8)),
padding: EdgeInsets.only(left: 25.w, right: 25.w, top: 20.h, bottom: 20.h),
decoration: BoxDecoration(color: HexColor.fromHex("#FFFFFF"), borderRadius: BorderRadius.circular(8)),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Row( Row(
@@ -257,21 +218,13 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Container( Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4),
color: HexColor.fromHex("#FFFFF3F3"),
border: Border.all(
color: HexColor.fromHex(
inputItemStyle.typeNameColor))),
borderRadius: BorderRadius.circular(4), color: HexColor.fromHex("#FFFFF3F3"), border: Border.all(color: HexColor.fromHex(inputItemStyle.typeNameColor))),
child: Padding( child: Padding(
padding: const EdgeInsets.only(
left: 4, right: 4, top: 2, bottom: 2),
padding: const EdgeInsets.only(left: 4, right: 4, top: 2, bottom: 2),
child: Center( child: Center(
child: Text( child: Text(
modelItem['type'] ?? "", modelItem['type'] ?? "",
style: TextStyle(
color: HexColor.fromHex(
inputItemStyle.typeNameColor),
fontSize: 20.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.typeNameColor), fontSize: 20.sp),
), ),
), ),
), ),
@@ -291,16 +244,11 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
"+ ", "+ ",
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.amountColor)),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.amountColor)),
), ),
Text( Text(
"¥ " + modelItem['amount'], "¥ " + modelItem['amount'],
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.amountColor),
fontSize: 30.sp,
fontFamily: 'Din',
package: 'zhiying_base_widget'),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.amountColor), fontSize: 30.sp, fontFamily: 'Din', package: 'zhiying_base_widget'),
) )
], ],
) )
@@ -315,44 +263,33 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
inputItemStyle.orderIdText, inputItemStyle.orderIdText,
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['order_id'], modelItem['order_id'],
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 28.w, width: 28.w,
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
Clipboard.setData(
ClipboardData(text: modelItem['order_id']));
Clipboard.setData(ClipboardData(text: modelItem['order_id']));
Fluttertoast.showToast(msg: "已复制"); Fluttertoast.showToast(msg: "已复制");
}, },
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4),
color: HexColor.fromHex(inputItemStyle.copyBtnBgColor), color: HexColor.fromHex(inputItemStyle.copyBtnBgColor),
border: Border.all(
color:
HexColor.fromHex(inputItemStyle.contentColor))),
border: Border.all(color: HexColor.fromHex(inputItemStyle.contentColor), width: 0.5)),
child: Padding( child: Padding(
padding: EdgeInsets.only(
left: 16, right: 16, top: 1, bottom: 1),
padding: EdgeInsets.only(left: 16, right: 16, top: 1, bottom: 1),
child: Text( child: Text(
inputItemStyle.copyBtnText, inputItemStyle.copyBtnText,
style: TextStyle(
color:
HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
), ),
), ),
@@ -369,18 +306,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
inputItemStyle.orderTypeText, inputItemStyle.orderTypeText,
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['order_type'] ?? "", modelItem['order_type'] ?? "",
style: TextStyle(
color: HexColor.fromHex("#FF999999"),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex("#FF999999"), fontSize: 22.sp),
), ),
], ],
)), )),
@@ -389,9 +322,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
inputItemStyle.amountText + " ¥" + modelItem['amount'], inputItemStyle.amountText + " ¥" + modelItem['amount'],
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
], ],
)) ))
@@ -407,18 +338,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
inputItemStyle.timeText, inputItemStyle.timeText,
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['time'] ?? "", modelItem['time'] ?? "",
style: TextStyle(
color: HexColor.fromHex("#FF999999"),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex("#FF999999"), fontSize: 22.sp),
), ),
], ],
)), )),
@@ -426,13 +353,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Text( Text(
inputItemStyle.settleTimeText +
" " +
modelItem['settle_time'] ??
"",
style: TextStyle(
color: HexColor.fromHex(inputItemStyle.contentColor),
fontSize: 22.sp),
inputItemStyle.settleTimeText + " " + modelItem['settle_time'] ?? "",
style: TextStyle(color: HexColor.fromHex(inputItemStyle.contentColor), fontSize: 22.sp),
), ),
], ],
)) ))
@@ -448,11 +370,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
///消费返回的Item ///消费返回的Item
return Container( return Container(
margin: EdgeInsets.only(left: 12.5, right: 12.5, bottom: 4, top: 4), margin: EdgeInsets.only(left: 12.5, right: 12.5, bottom: 4, top: 4),
padding:
EdgeInsets.only(left: 25.w, right: 25.w, top: 20.h, bottom: 20.h),
decoration: BoxDecoration(
color: HexColor.fromHex("#FFFFFF"),
borderRadius: BorderRadius.circular(8)),
padding: EdgeInsets.only(left: 25.w, right: 25.w, top: 20.h, bottom: 20.h),
decoration: BoxDecoration(color: HexColor.fromHex("#FFFFFF"), borderRadius: BorderRadius.circular(8)),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Row( Row(
@@ -464,19 +383,13 @@ class _WalletBilDetailState extends State<WalletBilDetail>
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4),
color: HexColor.fromHex("#FFFFF3F3"), color: HexColor.fromHex("#FFFFF3F3"),
border: Border.all(
color: HexColor.fromHex(
outputItemStyle.typeNameColor))),
border: Border.all(color: HexColor.fromHex(outputItemStyle.typeNameColor))),
child: Padding( child: Padding(
padding: const EdgeInsets.only(
left: 4, right: 4, top: 2, bottom: 2),
padding: const EdgeInsets.only(left: 4, right: 4, top: 2, bottom: 2),
child: Center( child: Center(
child: Text( child: Text(
modelItem['type'] ?? "", modelItem['type'] ?? "",
style: TextStyle(
color: HexColor.fromHex(
outputItemStyle.typeNameColor),
fontSize: 20.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.typeNameColor), fontSize: 20.sp),
), ),
), ),
), ),
@@ -496,16 +409,11 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
"- ", "- ",
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.amountColor)),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.amountColor)),
), ),
Text( Text(
"¥ " + modelItem['amount'], "¥ " + modelItem['amount'],
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.amountColor),
fontSize: 30.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.amountColor), fontSize: 30.sp),
) )
], ],
) )
@@ -520,45 +428,33 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.orderIdText, outputItemStyle.orderIdText,
style: TextStyle(
color: HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['order_id'], modelItem['order_id'],
style: TextStyle(
color: HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 28.w, width: 28.w,
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
Clipboard.setData(
ClipboardData(text: modelItem['order_id']));
Clipboard.setData(ClipboardData(text: modelItem['order_id']));
Fluttertoast.showToast(msg: "已复制"); Fluttertoast.showToast(msg: "已复制");
}, },
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4),
color:
HexColor.fromHex(outputItemStyle.copyBtnBgColor),
border: Border.all(
color: HexColor.fromHex(
outputItemStyle.contentColor))),
color: HexColor.fromHex(outputItemStyle.copyBtnBgColor),
border: Border.all(color: HexColor.fromHex(outputItemStyle.contentColor),width: 0.5)),
child: Padding( child: Padding(
padding: EdgeInsets.only(
left: 16, right: 16, top: 1, bottom: 1),
padding: EdgeInsets.only(left: 16, right: 16, top: 1, bottom: 1),
child: Text( child: Text(
outputItemStyle.copyBtnText ?? "", outputItemStyle.copyBtnText ?? "",
style: TextStyle(
color: HexColor.fromHex(
outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
), ),
), ),
@@ -575,19 +471,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.consumeOrderTypeText, outputItemStyle.consumeOrderTypeText,
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['order_type'] ?? "", modelItem['order_type'] ?? "",
style: TextStyle(
color: HexColor.fromHex("#FF999999"),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex("#FF999999"), fontSize: 22.sp),
), ),
], ],
)), )),
@@ -595,13 +486,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.consumeAmountText +
" ¥" +
modelItem['amount'],
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
outputItemStyle.consumeAmountText + " ¥" + modelItem['amount'],
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
], ],
)) ))
@@ -617,19 +503,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.consumeTimeText, outputItemStyle.consumeTimeText,
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['time'] ?? "", modelItem['time'] ?? "",
style: TextStyle(
color: HexColor.fromHex("#FF999999"),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex("#FF999999"), fontSize: 22.sp),
), ),
], ],
)), )),
@@ -655,11 +536,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
} else if (modelItem['type'] == '提现') { } else if (modelItem['type'] == '提现') {
return Container( return Container(
margin: EdgeInsets.only(left: 12.5, right: 12.5, bottom: 4, top: 4), margin: EdgeInsets.only(left: 12.5, right: 12.5, bottom: 4, top: 4),
padding:
EdgeInsets.only(left: 25.w, right: 25.w, top: 20.h, bottom: 20.h),
decoration: BoxDecoration(
color: HexColor.fromHex("#FFFFFF"),
borderRadius: BorderRadius.circular(8)),
padding: EdgeInsets.only(left: 25.w, right: 25.w, top: 20.h, bottom: 20.h),
decoration: BoxDecoration(color: HexColor.fromHex("#FFFFFF"), borderRadius: BorderRadius.circular(8)),
child: Column( child: Column(
children: <Widget>[ children: <Widget>[
Row( Row(
@@ -671,19 +549,13 @@ class _WalletBilDetailState extends State<WalletBilDetail>
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4),
color: HexColor.fromHex("#FFFFF3F3"), color: HexColor.fromHex("#FFFFF3F3"),
border: Border.all(
color: HexColor.fromHex(
outputItemStyle.typeNameColor))),
border: Border.all(color: HexColor.fromHex(outputItemStyle.typeNameColor))),
child: Padding( child: Padding(
padding: const EdgeInsets.only(
left: 4, right: 4, top: 2, bottom: 2),
padding: const EdgeInsets.only(left: 4, right: 4, top: 2, bottom: 2),
child: Center( child: Center(
child: Text( child: Text(
modelItem['type'] ?? "", modelItem['type'] ?? "",
style: TextStyle(
color: HexColor.fromHex(
outputItemStyle.typeNameColor),
fontSize: 20.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.typeNameColor), fontSize: 20.sp),
), ),
), ),
), ),
@@ -703,16 +575,11 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
"- ", "- ",
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.amountColor)),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.amountColor)),
), ),
Text( Text(
"¥ " + modelItem['amount'], "¥ " + modelItem['amount'],
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.amountColor),
fontSize: 30.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.amountColor), fontSize: 30.sp),
) )
], ],
) )
@@ -727,45 +594,33 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.orderIdText, outputItemStyle.orderIdText,
style: TextStyle(
color: HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['order_id'], modelItem['order_id'],
style: TextStyle(
color: HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 28.w, width: 28.w,
), ),
GestureDetector( GestureDetector(
onTap: () { onTap: () {
Clipboard.setData(
ClipboardData(text: modelItem['order_id']));
Clipboard.setData(ClipboardData(text: modelItem['order_id']));
Fluttertoast.showToast(msg: "已复制"); Fluttertoast.showToast(msg: "已复制");
}, },
child: Container( child: Container(
decoration: BoxDecoration( decoration: BoxDecoration(
borderRadius: BorderRadius.circular(4), borderRadius: BorderRadius.circular(4),
color:
HexColor.fromHex(outputItemStyle.copyBtnBgColor),
border: Border.all(
color: HexColor.fromHex(
outputItemStyle.contentColor))),
color: HexColor.fromHex(outputItemStyle.copyBtnBgColor),
border: Border.all(color: HexColor.fromHex(outputItemStyle.contentColor), width: 0.5)),
child: Padding( child: Padding(
padding: EdgeInsets.only(
left: 16, right: 16, top: 1, bottom: 1),
padding: EdgeInsets.only(left: 16, right: 16, top: 1, bottom: 1),
child: Text( child: Text(
outputItemStyle.copyBtnText ?? "", outputItemStyle.copyBtnText ?? "",
style: TextStyle(
color: HexColor.fromHex(
outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
), ),
), ),
@@ -782,20 +637,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.withdrawAccountText, outputItemStyle.withdrawAccountText,
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['account'] ?? "", modelItem['account'] ?? "",
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
], ],
)), )),
@@ -803,21 +652,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.withdrawAmountText +
" ¥" +
modelItem['amount'],
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
outputItemStyle.withdrawAmountText + " ¥" + modelItem['amount'],
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
], ],
)) ))
], ],
), ),
SizedBox(
height: 4,
),
SizedBox(height: 4),
Row( Row(
children: <Widget>[ children: <Widget>[
Expanded( Expanded(
@@ -825,19 +667,14 @@ class _WalletBilDetailState extends State<WalletBilDetail>
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.withdrawTimeText, outputItemStyle.withdrawTimeText,
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
SizedBox( SizedBox(
width: 4, width: 4,
), ),
Text( Text(
modelItem['time'] ?? "", modelItem['time'] ?? "",
style: TextStyle(
color: HexColor.fromHex("#FF999999"),
fontSize: 22.sp),
style: TextStyle(color: HexColor.fromHex("#FF999999"), fontSize: 22.sp),
), ),
], ],
)), )),
@@ -845,14 +682,8 @@ class _WalletBilDetailState extends State<WalletBilDetail>
child: Row( child: Row(
children: <Widget>[ children: <Widget>[
Text( Text(
outputItemStyle.withdrawOrderStatusText +
" " +
modelItem['order_status'] ??
"",
style: TextStyle(
color:
HexColor.fromHex(outputItemStyle.contentColor),
fontSize: 22.sp),
outputItemStyle.withdrawOrderStatusText + " " + modelItem['order_status'] ?? "",
style: TextStyle(color: HexColor.fromHex(outputItemStyle.contentColor), fontSize: 22.sp),
), ),
], ],
)) ))
@@ -891,10 +722,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
onRefresh: () { onRefresh: () {
_bloc.inputRefresh(); _bloc.inputRefresh();
}, },
child: _bloc.inputDataVM == null ||
_bloc.inputDataVM.length == 0
? EmptyWidget()
: _buildBottomItem(item)),
child: EmptyUtil.isEmpty(_bloc.inputDataVM ) ? EmptyWidget() : _buildBottomItem(item)),
) )
], ],
), ),
@@ -922,10 +750,7 @@ class _WalletBilDetailState extends State<WalletBilDetail>
onRefresh: () { onRefresh: () {
_bloc.outputRefresh(); _bloc.outputRefresh();
}, },
child: _bloc.outputDataVM == null ||
_bloc.outputDataVM.length == 0
? EmptyWidget()
: _buildBottomItem(item)),
child: EmptyUtil.isEmpty(_bloc.outputDataVM) ? EmptyWidget() : _buildBottomItem(item)),
) )
], ],
), ),


+ 0
- 0
View File


Loading…
Cancel
Save