|
...
|
...
|
@@ -480,37 +480,57 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
myModel.reserveTotal,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'个',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'月订单量',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_BFC4D4,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goMonthOrderPage(
|
|
|
|
context,
|
|
|
|
DateTime.now().year.toString(),
|
|
|
|
DateTime.now().month.toString(),
|
|
|
|
uid: Provider.of<UserModel>(context,
|
|
|
|
listen: false)
|
|
|
|
.user
|
|
|
|
.openid);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: r(20)),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
myModel.reserveTotal,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'个',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color:
|
|
|
|
MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'月订单量',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_BFC4D4,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
...
|
...
|
@@ -523,62 +543,71 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
smsInfoData: smsInfoData);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: r(20)),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
myModel.smsInfo.isNotEmpty
|
|
|
|
? '${myModel.smsInfo}'
|
|
|
|
: '0',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(40)),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
myModel.smsInfo.isNotEmpty
|
|
|
|
? '${myModel.smsInfo}'
|
|
|
|
: '0',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color:
|
|
|
|
MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'条',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color:
|
|
|
|
MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'条',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
VEmptyView(8),
|
|
|
|
RoundButton(
|
|
|
|
text: '充值短信',
|
|
|
|
gradientStart:
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
gradientEnd: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
borderColor: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(48 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(18 * 2),
|
|
|
|
fontSize: 20,
|
|
|
|
isBold: true,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '充值短信')) {
|
|
|
|
NavigatorUtil.goSmsManagePage(
|
|
|
|
context,
|
|
|
|
smsInfoData: smsInfoData);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
RoundButton(
|
|
|
|
text: '充值短信',
|
|
|
|
gradientStart: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
gradientEnd: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
borderColor: !Utils.getAuthority(
|
|
|
|
context, '充值短信')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
width: ScreenUtil().setWidth(48 * 2),
|
|
|
|
height: ScreenUtil().setWidth(18 * 2),
|
|
|
|
fontSize: 20,
|
|
|
|
isBold: true,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {
|
|
|
|
if (Utils.getAuthority(
|
|
|
|
context, '充值短信')) {
|
|
|
|
NavigatorUtil.goSmsManagePage(
|
|
|
|
context,
|
|
|
|
smsInfoData: smsInfoData);
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
))),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
...
|
...
|
@@ -589,8 +618,9 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
onTap: () {
|
|
|
|
// NavigatorUtil.goMyIntegralPage(context,
|
|
|
|
// sunModel: myModel.integralSunModel);
|
|
|
|
print('fffff');
|
|
|
|
if (outDay != '' &&
|
|
|
|
!Utils.getAuthority(context, '有效期')) {
|
|
|
|
Utils.getAuthority(context, '有效期')) {
|
|
|
|
if (outDay == '0') {
|
|
|
|
DialogUtil
|
|
|
|
.cupertinoAlertSellerHasEdateDialog(
|
|
...
|
...
|
@@ -598,8 +628,8 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
lCallback: () {
|
|
|
|
NavigatorUtil.goHomePage(context,
|
|
|
|
initialIndex: 4);
|
|
|
|
// NavigatorUtil.goHomePage(context,
|
|
|
|
// initialIndex: 4);
|
|
|
|
},
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
...
|
...
|
@@ -622,91 +652,104 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: r(20)),
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
outDay,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: outDay != '' &&
|
|
|
|
int.parse(outDay) <= 7
|
|
|
|
? MyColours.color_E34D59
|
|
|
|
: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(40)),
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
outDay,
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: outDay != '' &&
|
|
|
|
int.parse(outDay) <=
|
|
|
|
7
|
|
|
|
? MyColours.color_E34D59
|
|
|
|
: MyColours
|
|
|
|
.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'天',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color:
|
|
|
|
MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'天',
|
|
|
|
style: TextStyle(
|
|
|
|
fontWeight: FontWeight.bold,
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
VEmptyView(8),
|
|
|
|
RoundButton(
|
|
|
|
text: '有效期',
|
|
|
|
gradientStart:
|
|
|
|
!Utils.getAuthority(
|
|
|
|
context, '有效期')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
gradientEnd: !Utils.getAuthority(
|
|
|
|
context, '有效期')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
borderColor: !Utils.getAuthority(
|
|
|
|
context, '有效期')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(48 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(18 * 2),
|
|
|
|
fontSize: 20,
|
|
|
|
isBold: true,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {
|
|
|
|
if (outDay != '' &&
|
|
|
|
Utils.getAuthority(
|
|
|
|
context, '有效期')) {
|
|
|
|
if (outDay == '0') {
|
|
|
|
DialogUtil
|
|
|
|
.cupertinoAlertSellerHasEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
lCallback: () {
|
|
|
|
NavigatorUtil
|
|
|
|
.goHomePage(context,
|
|
|
|
initialIndex:
|
|
|
|
4);
|
|
|
|
},
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
DialogUtil
|
|
|
|
.cupertinoAlertSellerEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
content:
|
|
|
|
DateUtil.formatDate(
|
|
|
|
edate,
|
|
|
|
format:
|
|
|
|
DateFormats.full,
|
|
|
|
),
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
RoundButton(
|
|
|
|
text: '有效期',
|
|
|
|
gradientStart: !Utils.getAuthority(
|
|
|
|
context, '有效期')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
gradientEnd: !Utils.getAuthority(
|
|
|
|
context, '有效期')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
borderColor: !Utils.getAuthority(
|
|
|
|
context, '有效期')
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
width: ScreenUtil().setWidth(48 * 2),
|
|
|
|
height: ScreenUtil().setWidth(18 * 2),
|
|
|
|
fontSize: 20,
|
|
|
|
isBold: true,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {
|
|
|
|
if (outDay != '' &&
|
|
|
|
Utils.getAuthority(
|
|
|
|
context, '有效期')) {
|
|
|
|
if (outDay == '0') {
|
|
|
|
DialogUtil
|
|
|
|
.cupertinoAlertSellerHasEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
lCallback: () {
|
|
|
|
NavigatorUtil.goHomePage(
|
|
|
|
context,
|
|
|
|
initialIndex: 4);
|
|
|
|
},
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
} else {
|
|
|
|
DialogUtil
|
|
|
|
.cupertinoAlertSellerEdateDialog(
|
|
|
|
context,
|
|
|
|
title: '温馨提示',
|
|
|
|
isBold: true,
|
|
|
|
content: DateUtil.formatDate(
|
|
|
|
edate,
|
|
|
|
format: DateFormats.full,
|
|
|
|
),
|
|
|
|
rCallback: () {
|
|
|
|
//立即续费
|
|
|
|
},
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
],
|
|
|
|
))
|
|
|
|
)))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
...
|
...
|
|