|
|
|
import 'dart:convert';
|
|
|
|
|
|
|
|
import 'package:flutter/material.dart';
|
|
|
|
import 'package:flutter_screenutil/flutter_screenutil.dart';
|
|
|
|
import 'package:fluwx/fluwx.dart';
|
|
|
|
import 'package:one_key/constant/state.dart';
|
|
|
|
import 'package:one_key/models/sms_info.dart';
|
|
|
|
import 'package:one_key/models/store_info.dart';
|
|
|
|
import 'package:one_key/models/user.dart';
|
|
|
|
import 'package:one_key/models/version.dart';
|
|
|
|
import 'package:one_key/provider/create_store_model.dart';
|
|
|
|
import 'package:one_key/provider/my_model.dart';
|
|
...
|
...
|
@@ -47,7 +50,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
|
|
|
|
controller = ScrollController(initialScrollOffset: 0.0);
|
|
|
|
WidgetsBinding.instance.addObserver(this);
|
|
|
|
Utils.changeStatusColor(color: MyColours.color_199095);
|
|
|
|
Utils.changeStatusColor(color: MyColours.color_438E93);
|
|
|
|
Utils.getCurrVersion().then((version) {
|
|
|
|
setState(() {
|
|
|
|
cur_version = "v" + version;
|
|
...
|
...
|
@@ -64,7 +67,7 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
checkUpdate();
|
|
|
|
});
|
|
|
|
EventBus().on('changeStatusColor', (arg) {
|
|
|
|
Utils.changeStatusColor(color: MyColours.color_199095);
|
|
|
|
Utils.changeStatusColor(color: MyColours.color_438E93);
|
|
|
|
});
|
|
|
|
EventBus().on('refreshMySms', (arg) {
|
|
|
|
_getSmsInfo(context);
|
|
...
|
...
|
@@ -136,18 +139,19 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
myModel = Provider.of<MyModel>(context, listen: true);
|
|
|
|
createStoreModel = Provider.of<CreateStoreModel>(context, listen: false);
|
|
|
|
return Scaffold(
|
|
|
|
appBar: AppBar(
|
|
|
|
backgroundColor: MyColours.color_199095, //把appbar的背景色改成透明
|
|
|
|
elevation: 0, //appbar的阴影
|
|
|
|
centerTitle: true, // 标题居中
|
|
|
|
title: Text(
|
|
|
|
'一键订',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_fefefe,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
fontWeight: FontWeight.normal,
|
|
|
|
decoration: TextDecoration.none),
|
|
|
|
)),
|
|
|
|
backgroundColor: MyColours.color_F8F9FD,
|
|
|
|
// appBar: AppBar(
|
|
|
|
// backgroundColor: MyColours.color_438E93, //把appbar的背景色改成透明
|
|
|
|
// elevation: 0, //appbar的阴影
|
|
|
|
// centerTitle: true, // 标题居中
|
|
|
|
// title: Text(
|
|
|
|
// '一键订',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_fefefe,
|
|
|
|
// fontSize: ScreenUtil().setSp(34),
|
|
|
|
// fontWeight: FontWeight.normal,
|
|
|
|
// decoration: TextDecoration.none),
|
|
|
|
// )),
|
|
|
|
body: NestedScrollView(
|
|
|
|
// controller: _scrollViewController,
|
|
|
|
headerSliverBuilder: (BuildContext context, bool innerBoxIsScrolled) {
|
|
...
|
...
|
@@ -155,105 +159,316 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
SliverAppBar(
|
|
|
|
pinned: false,
|
|
|
|
floating: false,
|
|
|
|
expandedHeight: ScreenUtil().setWidth(260 + 40),
|
|
|
|
backgroundColor: MyColours.color_F8F9FD,
|
|
|
|
expandedHeight: ScreenUtil().setWidth(154 * 2 + 33 * 2 + 72 + 50),
|
|
|
|
flexibleSpace: FlexibleSpaceBar(
|
|
|
|
collapseMode: CollapseMode.pin,
|
|
|
|
background: Consumer<UserModel>(builder:
|
|
|
|
(BuildContext context, UserModel model, Widget child) {
|
|
|
|
return Stack(
|
|
|
|
clipBehavior: Clip.none,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(260 + 30),
|
|
|
|
height: ScreenUtil().setHeight(154 * 2 + 33 * 2 + 50),
|
|
|
|
alignment: Alignment.centerLeft,
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
color: MyColours.color_438E93,
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.only(
|
|
|
|
left: ScreenUtil().setWidth(24 * 2),
|
|
|
|
right: ScreenUtil().setWidth(24 * 2),
|
|
|
|
top: ScreenUtil().setWidth(60 * 2 + 50),
|
|
|
|
),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Stack(clipBehavior: Clip.none, children: [
|
|
|
|
Container(
|
|
|
|
width: ScreenUtil().setWidth(48 * 2),
|
|
|
|
height: ScreenUtil().setWidth(48 * 2),
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(48)),
|
|
|
|
child: Image.asset(
|
|
|
|
Utils.getImgPath('base_tx_bg'),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(48 * 2),
|
|
|
|
height:
|
|
|
|
ScreenUtil().setWidth(48 * 2),
|
|
|
|
))),
|
|
|
|
Positioned(
|
|
|
|
top: ScreenUtil().setWidth(2 * 2),
|
|
|
|
left: ScreenUtil().setWidth(4 * 2),
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil().setWidth(40 * 2),
|
|
|
|
height: ScreenUtil().setWidth(40 * 2),
|
|
|
|
// margin: EdgeInsets.only(
|
|
|
|
// right: ScreenUtil().setWidth(24),
|
|
|
|
// ),
|
|
|
|
child: ClipRRect(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(40)),
|
|
|
|
child: model.user.sellerimage ==
|
|
|
|
null ||
|
|
|
|
model.user.sellerimage == ''
|
|
|
|
? Image.asset(
|
|
|
|
Utils.getImgPath(
|
|
|
|
'base_tx_mr'),
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(40 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(40 * 2),
|
|
|
|
)
|
|
|
|
: Image.network(
|
|
|
|
model.user.sellerimage,
|
|
|
|
fit: BoxFit.cover,
|
|
|
|
width: ScreenUtil()
|
|
|
|
.setWidth(40 * 2),
|
|
|
|
height: ScreenUtil()
|
|
|
|
.setWidth(40 * 2),
|
|
|
|
),
|
|
|
|
)))
|
|
|
|
]),
|
|
|
|
HEmptyView(22),
|
|
|
|
Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
Container(
|
|
|
|
child: Text(
|
|
|
|
model.user.sellername,
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(28)),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(14),
|
|
|
|
Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal:
|
|
|
|
ScreenUtil().setWidth(8),
|
|
|
|
vertical: ScreenUtil().setWidth(4)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(6))),
|
|
|
|
child: Text(
|
|
|
|
model.user.account +
|
|
|
|
" " +
|
|
|
|
model.user.role_name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(16)),
|
|
|
|
)),
|
|
|
|
// VEmptyView(20),
|
|
|
|
// InkWell(
|
|
|
|
// onTap: () {
|
|
|
|
// // print(myModel.integralSunModel);
|
|
|
|
// NavigatorUtil.goMyIntegralPage(context,
|
|
|
|
// sunModel: myModel.integralSunModel);
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setWidth(48),
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(20),
|
|
|
|
// vertical: ScreenUtil().setWidth(8)),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// borderRadius: BorderRadius.circular(
|
|
|
|
// ScreenUtil().setWidth(24)),
|
|
|
|
// border: Border.all(
|
|
|
|
// width: ScreenUtil().setWidth(2),
|
|
|
|
// color: Color.fromRGBO(
|
|
|
|
// 255, 255, 255, 0.2)),
|
|
|
|
// color: Color.fromRGBO(
|
|
|
|
// 255, 255, 255, 0.1)),
|
|
|
|
// child: Text(
|
|
|
|
// '积分${myModel.integralSunModel != null && myModel.integralSunModel.myIntegral != null ? myModel.integralSunModel?.myIntegral : '0'}',
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(22)),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
RoundButton(
|
|
|
|
text: '切换店铺',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_ffffff,
|
|
|
|
width: ScreenUtil().setWidth(68 * 2),
|
|
|
|
height: ScreenUtil().setWidth(25 * 2),
|
|
|
|
fontSize: 24,
|
|
|
|
isBold: false,
|
|
|
|
textColor:
|
|
|
|
App.sp.getBool("accountLogin") ?? false
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_438E93,
|
|
|
|
radius: ScreenUtil().setWidth(34),
|
|
|
|
onPressed: () {
|
|
|
|
if (App.sp.getBool("accountLogin") ??
|
|
|
|
false) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
print(createStoreModel.storeInfo);
|
|
|
|
createStoreModel.storeInfo = StoreInfo();
|
|
|
|
NavigatorUtil.goIfNeedCreateStorePage(
|
|
|
|
context,
|
|
|
|
changeStatus: true);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
])),
|
|
|
|
),
|
|
|
|
Padding(
|
|
|
|
padding:
|
|
|
|
EdgeInsets.only(left: ScreenUtil().setWidth(30)),
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: [
|
|
|
|
VEmptyView(58),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(50),
|
|
|
|
child: Text(
|
|
|
|
model.user.sellername,
|
|
|
|
maxLines: 1,
|
|
|
|
overflow: TextOverflow.ellipsis,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(36)),
|
|
|
|
Positioned(
|
|
|
|
left: ScreenUtil().setWidth(24 * 2),
|
|
|
|
bottom: ScreenUtil().setWidth(72),
|
|
|
|
child: Container(
|
|
|
|
width: ScreenUtil.screenWidthDp -
|
|
|
|
ScreenUtil().setWidth(24 * 2) * 2,
|
|
|
|
height: ScreenUtil().setWidth(72 * 2),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
boxShadow: [
|
|
|
|
BoxShadow(
|
|
|
|
color: Color.fromRGBO(0, 0, 0, 0.4),
|
|
|
|
offset: Offset(0, ScreenUtil().setWidth(8)),
|
|
|
|
spreadRadius: ScreenUtil().setWidth(2),
|
|
|
|
blurRadius: ScreenUtil().setWidth(34))
|
|
|
|
],
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(14))),
|
|
|
|
child: Row(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'3555',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'月订单量',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_BFC4D4,
|
|
|
|
fontSize: ScreenUtil().setSp(20)),
|
|
|
|
),
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
VEmptyView(30),
|
|
|
|
Container(
|
|
|
|
height: ScreenUtil().setWidth(40),
|
|
|
|
child: Text(
|
|
|
|
model.user.account +
|
|
|
|
" | " +
|
|
|
|
model.user.role_name,
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(30)),
|
|
|
|
)),
|
|
|
|
VEmptyView(20),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
// print(myModel.integralSunModel);
|
|
|
|
NavigatorUtil.goMyIntegralPage(context,
|
|
|
|
sunModel: myModel.integralSunModel);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setWidth(48),
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(20),
|
|
|
|
vertical: ScreenUtil().setWidth(8)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(24)),
|
|
|
|
border: Border.all(
|
|
|
|
width: ScreenUtil().setWidth(2),
|
|
|
|
color:
|
|
|
|
Color.fromRGBO(255, 255, 255, 0.2)),
|
|
|
|
color: Color.fromRGBO(255, 255, 255, 0.1)),
|
|
|
|
child: Text(
|
|
|
|
'积分${myModel.integralSunModel != null && myModel.integralSunModel.myIntegral != null ? myModel.integralSunModel?.myIntegral : '0'}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
fontSize: ScreenUtil().setSp(22)),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
Positioned(
|
|
|
|
right: ScreenUtil().setWidth(40),
|
|
|
|
bottom: ScreenUtil().setWidth(116),
|
|
|
|
child: RoundButton(
|
|
|
|
text: '切换店铺',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_ffffff,
|
|
|
|
width: ScreenUtil().setWidth(150),
|
|
|
|
height: ScreenUtil().setWidth(56),
|
|
|
|
fontSize: 28,
|
|
|
|
isBold: false,
|
|
|
|
textColor: App.sp.getBool("accountLogin") ?? false
|
|
|
|
? MyColours.color_999999
|
|
|
|
: MyColours.color_199095,
|
|
|
|
radius: ScreenUtil().setWidth(20),
|
|
|
|
onPressed: () {
|
|
|
|
if (App.sp.getBool("accountLogin") ?? false) {
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
|
|
|
|
print(createStoreModel.storeInfo);
|
|
|
|
createStoreModel.storeInfo = StoreInfo();
|
|
|
|
NavigatorUtil.goIfNeedCreateStorePage(context,
|
|
|
|
changeStatus: true);
|
|
|
|
},
|
|
|
|
)),
|
|
|
|
Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
myModel.smsInfo.isNotEmpty
|
|
|
|
? '${myModel.smsInfo}'
|
|
|
|
: '0',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'条',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize: ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
RoundButton(
|
|
|
|
text: '充值短信',
|
|
|
|
gradientStart: MyColours.color_438E93,
|
|
|
|
gradientEnd: MyColours.color_438E93,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
width: ScreenUtil().setWidth(48 * 2),
|
|
|
|
height: ScreenUtil().setWidth(18 * 2),
|
|
|
|
fontSize: 20,
|
|
|
|
isBold: false,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {
|
|
|
|
NavigatorUtil.goSmsManagePage(context,
|
|
|
|
smsInfoData: smsInfoData);
|
|
|
|
})
|
|
|
|
],
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
ScreenUtil().setWidth(2),
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goMyIntegralPage(context,
|
|
|
|
sunModel: myModel.integralSunModel);
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.center,
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
children: [
|
|
|
|
Text(
|
|
|
|
'${myModel.integralSunModel != null && myModel.integralSunModel.myIntegral != null ? myModel.integralSunModel?.myIntegral : '0'}',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(40)),
|
|
|
|
),
|
|
|
|
Text(
|
|
|
|
'个',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(22)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
RoundButton(
|
|
|
|
text: '积分兑换',
|
|
|
|
gradientStart: MyColours.color_BFC4D4,
|
|
|
|
gradientEnd: MyColours.color_BFC4D4,
|
|
|
|
borderColor: MyColours.color_BFC4D4,
|
|
|
|
width: ScreenUtil().setWidth(48 * 2),
|
|
|
|
height: ScreenUtil().setWidth(18 * 2),
|
|
|
|
fontSize: 20,
|
|
|
|
isBold: false,
|
|
|
|
textColor: MyColours.color_ffffff,
|
|
|
|
radius: ScreenUtil().setWidth(8),
|
|
|
|
onPressed: () {})
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
))
|
|
|
|
],
|
|
|
|
);
|
|
|
|
}),
|
|
...
|
...
|
@@ -263,393 +478,1038 @@ class MyPageState extends State<MyPage> with WidgetsBindingObserver { |
|
|
|
}, body: Consumer<UserModel>(
|
|
|
|
builder: (BuildContext context, UserModel model, Widget child) {
|
|
|
|
UserModel userModel = Provider.of<UserModel>(context, listen: false);
|
|
|
|
return MediaQuery.removePadding(
|
|
|
|
context: context,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
children: <Widget>[
|
|
|
|
// Stack(
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setHeight(200),
|
|
|
|
// alignment: Alignment.centerLeft,
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// ),
|
|
|
|
// Padding(
|
|
|
|
// padding:
|
|
|
|
// EdgeInsets.only(left: ScreenUtil().setWidth(40)),
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(38),
|
|
|
|
// Text(
|
|
|
|
// model.user.sellername,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(36)),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(38),
|
|
|
|
// Text(
|
|
|
|
// model.user.account +
|
|
|
|
// " | " +
|
|
|
|
// model.user.role_name,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(30)),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "线上券创建",
|
|
|
|
content: '',
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goCouponPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
// MyItem(
|
|
|
|
// title: "联系人",
|
|
|
|
// content: '',
|
|
|
|
// callback: () {
|
|
|
|
// // Utils.goMiniProgramZm(context, "setting/sms");
|
|
|
|
// NavigatorUtil.goMyContantPage(
|
|
|
|
// context,
|
|
|
|
// );
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
userModel.user.role_name == '管理员' ||
|
|
|
|
userModel.user.role_name == '店长'
|
|
|
|
? MyItem(
|
|
|
|
title: "全店客情",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
// Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
NavigatorUtil.goStoreCustomerPage(context);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
: SizedBox(),
|
|
|
|
MyItem(
|
|
|
|
title: "我的客情",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
// Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
NavigatorUtil.goMyCustomerPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "个人信息",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goBaseInfoPage(
|
|
|
|
context, FromPage.FromPageMyPage);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "店铺信息",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goStoreBaseInfoPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "桌位管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goMyTableManagerHomePage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "短信管理",
|
|
|
|
content:
|
|
|
|
myModel.smsInfo.isNotEmpty ? '剩余${myModel.smsInfo}条' : '',
|
|
|
|
callback: () {
|
|
|
|
// Utils.goMiniProgramZm(context, "setting/sms");
|
|
|
|
NavigatorUtil.goSmsManagePage(context,
|
|
|
|
smsInfoData: smsInfoData);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
|
|
|
|
MyItem(
|
|
|
|
title: "照片管理",
|
|
|
|
content: "",
|
|
|
|
callback: () async {
|
|
|
|
// Map temp =
|
|
|
|
await NavigatorUtil.goPhotoManagerSelectTablePage(
|
|
|
|
context, "", DateTime.now().millisecondsSinceEpoch, "1",
|
|
|
|
canChoose: true,
|
|
|
|
object: null,
|
|
|
|
fromPage: "tablePhoto",
|
|
|
|
tid: '');
|
|
|
|
// if (temp != null && temp['tid'] != '') {
|
|
|
|
// // print(temp['tid']);
|
|
|
|
// // print(temp['tname']);
|
|
|
|
// // tname = temp['tname'];
|
|
|
|
// // tid = temp['tid'];
|
|
|
|
// // _getTablePhoto(context, temp['tid'], showLoading: true);
|
|
|
|
// }
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
|
|
|
|
MyItem(
|
|
|
|
title: "员工管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goPersonnelManagePage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "菜单管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goMenuManagePage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
|
|
|
|
MyItem(
|
|
|
|
title: "包间类型",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goRoomTypeManagePage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "包间类型置满管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
// Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
NavigatorUtil.goStoreTypeFillManagePage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "可订时段管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goBookTimeSetPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "接单时间管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goReceiveOrdersTimeSetPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "常用备注管理",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goRemarkManagerPage(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
MyItem(
|
|
|
|
title: "联系客服",
|
|
|
|
content: "09:00~21:00",
|
|
|
|
callback: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "帮助与反馈",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
Utils.goHelp(context);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(double.infinity, ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3),
|
|
|
|
GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
if (newVersion) {
|
|
|
|
UpdateModelMy updateModel = new UpdateModelMy();
|
|
|
|
updateModel.showUpdateDialog(context, _version);
|
|
|
|
} else {
|
|
|
|
Utils.showToast("当前已是最新版本");
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
width: double.infinity,
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
alignment: Alignment.center,
|
|
|
|
child: Row(
|
|
|
|
children: <Widget>[
|
|
|
|
Text(
|
|
|
|
"版本更新",
|
|
|
|
return Container(
|
|
|
|
color: MyColours.color_F8F9FD,
|
|
|
|
padding:
|
|
|
|
EdgeInsets.symmetric(horizontal: ScreenUtil().setWidth(24)),
|
|
|
|
child: MediaQuery.removePadding(
|
|
|
|
context: context,
|
|
|
|
child: SingleChildScrollView(
|
|
|
|
child: Column(
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
children: <Widget>[
|
|
|
|
// Stack(
|
|
|
|
// children: [
|
|
|
|
// Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setHeight(200),
|
|
|
|
// alignment: Alignment.centerLeft,
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// ),
|
|
|
|
// Padding(
|
|
|
|
// padding:
|
|
|
|
// EdgeInsets.only(left: ScreenUtil().setWidth(40)),
|
|
|
|
// child: Column(
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.start,
|
|
|
|
// children: [
|
|
|
|
// VEmptyView(38),
|
|
|
|
// Text(
|
|
|
|
// model.user.sellername,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(36)),
|
|
|
|
// ),
|
|
|
|
// VEmptyView(38),
|
|
|
|
// Text(
|
|
|
|
// model.user.account +
|
|
|
|
// " | " +
|
|
|
|
// model.user.role_name,
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// fontSize: ScreenUtil().setSp(30)),
|
|
|
|
// ),
|
|
|
|
// ],
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// VEmptyView(40),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
'我的内容',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(30),
|
|
|
|
color: MyColours.color_353535),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
newVersion
|
|
|
|
? Container(
|
|
|
|
// width: ScreenUtil().setWidth(120),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_E14553,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(
|
|
|
|
ScreenUtil().setWidth(6))),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(8)),
|
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
"发现新版本",
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(19 * 2)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(14))),
|
|
|
|
child: Row(
|
|
|
|
mainAxisAlignment: MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goBaseInfoPage(
|
|
|
|
context, FromPage.FromPageMyPage);
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('grxx'),
|
|
|
|
width: ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'个人信息',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(24),
|
|
|
|
color: MyColours.color_ffffff),
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goMyCustomerPage(context);
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('wdkq'),
|
|
|
|
width: ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)
|
|
|
|
: Text(
|
|
|
|
cur_version,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(28),
|
|
|
|
color: MyColours.color_666666),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arr_right_gray.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
MyItem(
|
|
|
|
title: "隐私政策",
|
|
|
|
content: "",
|
|
|
|
callback: () {
|
|
|
|
NavigatorUtil.goWebPage(context, '隐私政策', "zc", need: true);
|
|
|
|
},
|
|
|
|
),
|
|
|
|
MyDivider(
|
|
|
|
double.infinity,
|
|
|
|
ScreenUtil().setHeight(1),
|
|
|
|
color: MyColours.color_f3f3f3,
|
|
|
|
),
|
|
|
|
VEmptyView(40),
|
|
|
|
Consumer<UserModel>(
|
|
|
|
builder:
|
|
|
|
(BuildContext context, UserModel model, Widget child) {
|
|
|
|
return GestureDetector(
|
|
|
|
onTap: () {
|
|
|
|
model.showLoginOutDialog(context);
|
|
|
|
},
|
|
|
|
child: Container(
|
|
|
|
height: ScreenUtil().setHeight(122),
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
child: Center(
|
|
|
|
child: Row(
|
|
|
|
mainAxisSize: MainAxisSize.min,
|
|
|
|
crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
children: <Widget>[
|
|
|
|
Image.asset(
|
|
|
|
"assets/icon_exist.png",
|
|
|
|
width: ScreenUtil().setWidth(30),
|
|
|
|
height: ScreenUtil().setWidth(30),
|
|
|
|
),
|
|
|
|
HEmptyView(18),
|
|
|
|
Text("退出登录",
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_199095,
|
|
|
|
fontSize: ScreenUtil().setSp(34),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'我的客情',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goCouponPage(context);
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('yhq'),
|
|
|
|
width: ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'优惠券',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goRemarkManagerPage(context);
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('cybz'),
|
|
|
|
width: ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'常用备注',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
);
|
|
|
|
},
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)));
|
|
|
|
)),
|
|
|
|
VEmptyView(20),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
'店铺相关',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(19 * 2)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(14))),
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (userModel.user.role_name == '收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'客户经理') {
|
|
|
|
} else {
|
|
|
|
Map image = await NavigatorUtil
|
|
|
|
.goStoreBaseInfoPage(context);
|
|
|
|
print(image['image']);
|
|
|
|
UserModel userModel =
|
|
|
|
Provider.of<UserModel>(context,
|
|
|
|
listen: false);
|
|
|
|
User user = userModel.user;
|
|
|
|
user.sellerimage = image['image'];
|
|
|
|
await App.sp.setString('user',
|
|
|
|
json.encode(user.toJson()));
|
|
|
|
print(userModel.user);
|
|
|
|
setState(() {});
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'客户经理'
|
|
|
|
? Utils.getImgPath('dpxx_un')
|
|
|
|
: Utils.getImgPath('dpxx'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'店铺信息',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (userModel.user.role_name == '收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'客户经理') {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goStoreCustomerPage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'客户经理'
|
|
|
|
? Utils.getImgPath('qdkq_un')
|
|
|
|
: Utils.getImgPath('qdkq'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'全店客情',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员') {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goMyTableManagerHomePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员'
|
|
|
|
? Utils.getImgPath('zwgl_un')
|
|
|
|
: Utils.getImgPath('zwgl'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'桌位管理',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () async {
|
|
|
|
if (userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员') {
|
|
|
|
} else {
|
|
|
|
// Map temp =
|
|
|
|
await NavigatorUtil
|
|
|
|
.goPhotoManagerSelectTablePage(
|
|
|
|
context,
|
|
|
|
"",
|
|
|
|
DateTime.now()
|
|
|
|
.millisecondsSinceEpoch,
|
|
|
|
"1",
|
|
|
|
canChoose: true,
|
|
|
|
object: null,
|
|
|
|
fromPage: "tablePhoto",
|
|
|
|
tid: '');
|
|
|
|
// if (temp != null && temp['tid'] != '') {
|
|
|
|
// // print(temp['tid']);
|
|
|
|
// // print(temp['tname']);
|
|
|
|
// // tname = temp['tname'];
|
|
|
|
// // tid = temp['tid'];
|
|
|
|
// // _getTablePhoto(context, temp['tid'], showLoading: true)
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员'
|
|
|
|
? Utils.getImgPath('zwzp_un')
|
|
|
|
: Utils.getImgPath('zwzp'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'桌位照片',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
),
|
|
|
|
VEmptyView(60),
|
|
|
|
Row(
|
|
|
|
mainAxisAlignment:
|
|
|
|
MainAxisAlignment.spaceEvenly,
|
|
|
|
children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员') {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goPersonnelManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员'
|
|
|
|
? Utils.getImgPath('yggl_un')
|
|
|
|
: Utils.getImgPath('yggl'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'员工管理',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员') {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goMenuManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员'
|
|
|
|
? Utils.getImgPath('cdgl_un')
|
|
|
|
: Utils.getImgPath('cdgl'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'菜单管理',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员') {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil.goRoomTypeManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员'
|
|
|
|
? Utils.getImgPath('bjlx_un')
|
|
|
|
: Utils.getImgPath('bjlx'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'包间类型',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'服务员') {
|
|
|
|
} else {
|
|
|
|
NavigatorUtil
|
|
|
|
.goStoreTypeFillManagePage(
|
|
|
|
context);
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Column(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
userModel.user.role_name ==
|
|
|
|
'收银员' ||
|
|
|
|
userModel
|
|
|
|
.user.role_name ==
|
|
|
|
'服务员'
|
|
|
|
? Utils.getImgPath('bjzm_un')
|
|
|
|
: Utils.getImgPath('bjzm'),
|
|
|
|
width:
|
|
|
|
ScreenUtil().setWidth(32 * 2),
|
|
|
|
),
|
|
|
|
VEmptyView(8),
|
|
|
|
Text(
|
|
|
|
'包间置满',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setWidth(20)),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))
|
|
|
|
],
|
|
|
|
)
|
|
|
|
],
|
|
|
|
))),
|
|
|
|
|
|
|
|
VEmptyView(20),
|
|
|
|
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
vertical: ScreenUtil().setWidth(16)),
|
|
|
|
child: Text(
|
|
|
|
'其他设置',
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil().setSp(32),
|
|
|
|
color: MyColours.color_515151),
|
|
|
|
)),
|
|
|
|
Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(12 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(20)),
|
|
|
|
child: Container(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil().setWidth(18 * 2),
|
|
|
|
vertical: ScreenUtil().setWidth(18 * 2)),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_ffffff,
|
|
|
|
borderRadius: BorderRadius.circular(
|
|
|
|
ScreenUtil().setWidth(14))),
|
|
|
|
child: Column(children: [
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
Utils.goPhone("400-000-9690");
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('lxkf'),
|
|
|
|
width: ScreenUtil().setWidth(28 * 2),
|
|
|
|
),
|
|
|
|
HEmptyView(26),
|
|
|
|
Text(
|
|
|
|
'联系客服',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(28)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Text(
|
|
|
|
'400 000 9690',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_999999,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(24)),
|
|
|
|
),
|
|
|
|
HEmptyView(14),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arrow_right_new.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(48),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
NavigatorUtil.goWebPage(
|
|
|
|
context, '隐私政策', "zc",
|
|
|
|
need: true);
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('yszc'),
|
|
|
|
width: ScreenUtil().setWidth(28 * 2),
|
|
|
|
),
|
|
|
|
HEmptyView(26),
|
|
|
|
Text(
|
|
|
|
'隐私政策',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(28)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arrow_right_new.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(48),
|
|
|
|
InkWell(
|
|
|
|
onTap: () {
|
|
|
|
if (newVersion) {
|
|
|
|
UpdateModelMy updateModel =
|
|
|
|
new UpdateModelMy();
|
|
|
|
updateModel.showUpdateDialog(
|
|
|
|
context, _version);
|
|
|
|
} else {
|
|
|
|
Utils.showToast("当前已是最新版本");
|
|
|
|
}
|
|
|
|
},
|
|
|
|
child: Row(
|
|
|
|
children: [
|
|
|
|
Image.asset(
|
|
|
|
Utils.getImgPath('bbsj'),
|
|
|
|
width: ScreenUtil().setWidth(28 * 2),
|
|
|
|
),
|
|
|
|
HEmptyView(26),
|
|
|
|
Text(
|
|
|
|
'版本升级',
|
|
|
|
style: TextStyle(
|
|
|
|
color: MyColours.color_515151,
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setWidth(28)),
|
|
|
|
),
|
|
|
|
Spacer(),
|
|
|
|
newVersion
|
|
|
|
? Container(
|
|
|
|
// width: ScreenUtil().setWidth(120),
|
|
|
|
height: ScreenUtil().setWidth(34),
|
|
|
|
decoration: BoxDecoration(
|
|
|
|
color: MyColours.color_E14553,
|
|
|
|
borderRadius: BorderRadius.all(
|
|
|
|
Radius.circular(ScreenUtil()
|
|
|
|
.setWidth(6))),
|
|
|
|
),
|
|
|
|
child: Padding(
|
|
|
|
padding: EdgeInsets.symmetric(
|
|
|
|
horizontal: ScreenUtil()
|
|
|
|
.setWidth(8)),
|
|
|
|
child: Center(
|
|
|
|
child: Text(
|
|
|
|
"发现新版本",
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize: ScreenUtil()
|
|
|
|
.setSp(24),
|
|
|
|
color: MyColours
|
|
|
|
.color_ffffff),
|
|
|
|
),
|
|
|
|
)),
|
|
|
|
)
|
|
|
|
: Text(
|
|
|
|
cur_version,
|
|
|
|
style: TextStyle(
|
|
|
|
fontSize:
|
|
|
|
ScreenUtil().setSp(28),
|
|
|
|
color:
|
|
|
|
MyColours.color_999999),
|
|
|
|
),
|
|
|
|
HEmptyView(20),
|
|
|
|
Image.asset(
|
|
|
|
"assets/arrow_right_new.png",
|
|
|
|
width: ScreenUtil().setWidth(14),
|
|
|
|
height: ScreenUtil().setWidth(22),
|
|
|
|
)
|
|
|
|
],
|
|
|
|
)),
|
|
|
|
VEmptyView(48),
|
|
|
|
Consumer<UserModel>(
|
|
|
|
builder: (BuildContext context, UserModel model,
|
|
|
|
Widget child) {
|
|
|
|
return RoundButton(
|
|
|
|
text: '退出登录',
|
|
|
|
gradientStart: MyColours.color_ffffff,
|
|
|
|
gradientEnd: MyColours.color_ffffff,
|
|
|
|
borderColor: MyColours.color_438E93,
|
|
|
|
// width: ScreenUtil().setWidth(38 * 2),
|
|
|
|
height: ScreenUtil().setWidth(38 * 2),
|
|
|
|
fontSize: 32,
|
|
|
|
isBold: false,
|
|
|
|
textColor: MyColours.color_438E93,
|
|
|
|
radius: ScreenUtil().setWidth(10),
|
|
|
|
onPressed: () {
|
|
|
|
model.showLoginOutDialog(context);
|
|
|
|
});
|
|
|
|
},
|
|
|
|
)
|
|
|
|
]))),
|
|
|
|
|
|
|
|
// MyItem(
|
|
|
|
// title: "线上券创建",
|
|
|
|
// content: '',
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goCouponPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// // MyItem(
|
|
|
|
// // title: "联系人",
|
|
|
|
// // content: '',
|
|
|
|
// // callback: () {
|
|
|
|
// // // Utils.goMiniProgramZm(context, "setting/sms");
|
|
|
|
// // NavigatorUtil.goMyContantPage(
|
|
|
|
// // context,
|
|
|
|
// // );
|
|
|
|
// // },
|
|
|
|
// // ),
|
|
|
|
// userModel.user.role_name == '管理员' ||
|
|
|
|
// userModel.user.role_name == '店长'
|
|
|
|
// ? MyItem(
|
|
|
|
// title: "全店客情",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// // Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
// NavigatorUtil.goStoreCustomerPage(context);
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
// : SizedBox(),
|
|
|
|
// MyItem(
|
|
|
|
// title: "我的客情",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// // Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
// NavigatorUtil.goMyCustomerPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// VEmptyView(40),
|
|
|
|
// MyItem(
|
|
|
|
// title: "个人信息",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goBaseInfoPage(
|
|
|
|
// context, FromPage.FromPageMyPage);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "店铺信息",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goStoreBaseInfoPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "桌位管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goMyTableManagerHomePage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "短信管理",
|
|
|
|
// content: myModel.smsInfo.isNotEmpty
|
|
|
|
// ? '剩余${myModel.smsInfo}条'
|
|
|
|
// : '',
|
|
|
|
// callback: () {
|
|
|
|
// // Utils.goMiniProgramZm(context, "setting/sms");
|
|
|
|
// NavigatorUtil.goSmsManagePage(context,
|
|
|
|
// smsInfoData: smsInfoData);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyItem(
|
|
|
|
// title: "照片管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () async {
|
|
|
|
// // Map temp =
|
|
|
|
// await NavigatorUtil.goPhotoManagerSelectTablePage(
|
|
|
|
// context,
|
|
|
|
// "",
|
|
|
|
// DateTime.now().millisecondsSinceEpoch,
|
|
|
|
// "1",
|
|
|
|
// canChoose: true,
|
|
|
|
// object: null,
|
|
|
|
// fromPage: "tablePhoto",
|
|
|
|
// tid: '');
|
|
|
|
// // if (temp != null && temp['tid'] != '') {
|
|
|
|
// // // print(temp['tid']);
|
|
|
|
// // // print(temp['tname']);
|
|
|
|
// // // tname = temp['tname'];
|
|
|
|
// // // tid = temp['tid'];
|
|
|
|
// // // _getTablePhoto(context, temp['tid'], showLoading: true);
|
|
|
|
// // }
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyItem(
|
|
|
|
// title: "员工管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goPersonnelManagePage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "菜单管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goMenuManagePage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
|
|
|
|
// MyItem(
|
|
|
|
// title: "包间类型",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goRoomTypeManagePage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "包间类型置满管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// // Utils.goMiniProgramZm(context, "roomtype/roomtype");
|
|
|
|
// NavigatorUtil.goStoreTypeFillManagePage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "可订时段管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goBookTimeSetPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "接单时间管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goReceiveOrdersTimeSetPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "常用备注管理",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goRemarkManagerPage(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// VEmptyView(40),
|
|
|
|
// MyItem(
|
|
|
|
// title: "联系客服",
|
|
|
|
// content: "09:00~21:00",
|
|
|
|
// callback: () {
|
|
|
|
// Utils.goPhone("400-000-9690");
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "帮助与反馈",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// Utils.goHelp(context);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(double.infinity, ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3),
|
|
|
|
// GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// if (newVersion) {
|
|
|
|
// UpdateModelMy updateModel = new UpdateModelMy();
|
|
|
|
// updateModel.showUpdateDialog(context, _version);
|
|
|
|
// } else {
|
|
|
|
// Utils.showToast("当前已是最新版本");
|
|
|
|
// }
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// width: double.infinity,
|
|
|
|
// height: ScreenUtil().setHeight(122),
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal: ScreenUtil().setWidth(40)),
|
|
|
|
// alignment: Alignment.center,
|
|
|
|
// child: Row(
|
|
|
|
// children: <Widget>[
|
|
|
|
// Text(
|
|
|
|
// "版本更新",
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(30),
|
|
|
|
// color: MyColours.color_353535),
|
|
|
|
// ),
|
|
|
|
// Spacer(),
|
|
|
|
// newVersion
|
|
|
|
// ? Container(
|
|
|
|
// // width: ScreenUtil().setWidth(120),
|
|
|
|
// height: ScreenUtil().setWidth(34),
|
|
|
|
// decoration: BoxDecoration(
|
|
|
|
// color: MyColours.color_E14553,
|
|
|
|
// borderRadius: BorderRadius.all(
|
|
|
|
// Radius.circular(
|
|
|
|
// ScreenUtil().setWidth(6))),
|
|
|
|
// ),
|
|
|
|
// child: Padding(
|
|
|
|
// padding: EdgeInsets.symmetric(
|
|
|
|
// horizontal:
|
|
|
|
// ScreenUtil().setWidth(8)),
|
|
|
|
// child: Center(
|
|
|
|
// child: Text(
|
|
|
|
// "发现新版本",
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize:
|
|
|
|
// ScreenUtil().setSp(24),
|
|
|
|
// color: MyColours.color_ffffff),
|
|
|
|
// ),
|
|
|
|
// )),
|
|
|
|
// )
|
|
|
|
// : Text(
|
|
|
|
// cur_version,
|
|
|
|
// style: TextStyle(
|
|
|
|
// fontSize: ScreenUtil().setSp(28),
|
|
|
|
// color: MyColours.color_666666),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(20),
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/arr_right_gray.png",
|
|
|
|
// width: ScreenUtil().setWidth(14),
|
|
|
|
// height: ScreenUtil().setWidth(22),
|
|
|
|
// )
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// MyItem(
|
|
|
|
// title: "隐私政策",
|
|
|
|
// content: "",
|
|
|
|
// callback: () {
|
|
|
|
// NavigatorUtil.goWebPage(context, '隐私政策', "zc",
|
|
|
|
// need: true);
|
|
|
|
// },
|
|
|
|
// ),
|
|
|
|
// MyDivider(
|
|
|
|
// double.infinity,
|
|
|
|
// ScreenUtil().setHeight(1),
|
|
|
|
// color: MyColours.color_f3f3f3,
|
|
|
|
// ),
|
|
|
|
// VEmptyView(40),
|
|
|
|
// Consumer<UserModel>(
|
|
|
|
// builder: (BuildContext context, UserModel model,
|
|
|
|
// Widget child) {
|
|
|
|
// return GestureDetector(
|
|
|
|
// onTap: () {
|
|
|
|
// model.showLoginOutDialog(context);
|
|
|
|
// },
|
|
|
|
// child: Container(
|
|
|
|
// height: ScreenUtil().setHeight(122),
|
|
|
|
// color: MyColours.color_ffffff,
|
|
|
|
// child: Center(
|
|
|
|
// child: Row(
|
|
|
|
// mainAxisSize: MainAxisSize.min,
|
|
|
|
// crossAxisAlignment: CrossAxisAlignment.center,
|
|
|
|
// children: <Widget>[
|
|
|
|
// Image.asset(
|
|
|
|
// "assets/icon_exist.png",
|
|
|
|
// width: ScreenUtil().setWidth(30),
|
|
|
|
// height: ScreenUtil().setWidth(30),
|
|
|
|
// ),
|
|
|
|
// HEmptyView(18),
|
|
|
|
// Text("退出登录",
|
|
|
|
// style: TextStyle(
|
|
|
|
// color: MyColours.color_199095,
|
|
|
|
// fontSize: ScreenUtil().setSp(34),
|
|
|
|
// ))
|
|
|
|
// ],
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// ),
|
|
|
|
// );
|
|
|
|
// },
|
|
|
|
// )
|
|
|
|
],
|
|
|
|
))));
|
|
|
|
})),
|
|
|
|
);
|
|
|
|
}
|
...
|
...
|
|