Commit 1a27bb74b4aa4e812081a52669fc5553a0e7bde0

Authored by wdn127929
1 parent 6a5f8142

客情相关UIOK

... ... @@ -142,6 +142,14 @@ class InvicationPageState extends State<InvicationPage>
String erroInfo = '';
bool _showOverlay = false;
List<String> memberList = [];
String memberShow = '会员状态未知';
int memberIndex;
List<String> styleList = []; //餐单类型
String styleShow = '';
int styleIndex;
MyTextSelectionControls _myExtendedMaterialTextSelectionControls =
MyTextSelectionControls();
... ... @@ -157,6 +165,8 @@ class InvicationPageState extends State<InvicationPage>
personNumList = Utils.getPersonNumList();
sexList = ['先生', '女士', '公司'];
memberList = ['会员', '非会员'];
styleList = ['生日宴', '普通聚餐'];
_nameNode.addListener(() {
if (_nameNode.hasFocus) {
showOverlay(context);
... ... @@ -1860,7 +1870,7 @@ class InvicationPageState extends State<InvicationPage>
//输入文本的样式
style: TextStyle(
fontSize: ScreenUtil().setSp(30),
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_353535),
controller: _baseIndoProvider.nameController,
focusNode: _nameNode,
... ... @@ -1925,30 +1935,98 @@ class InvicationPageState extends State<InvicationPage>
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28)),
]),
// Row(
// children: _baseIndoProvider.sexList.map((value) {
// return _callButton(
// onPress: () {
// for (var item in _baseIndoProvider.sexList) {
// item['select'] = false;
// if (item['title'] == value['title']) {
// item['select'] = true;
// if (oldSex != item['code']) {
// if (nameStr != null && nameStr != '') {
// _addNameSuffix(nameStr, item['title']);
// }
// if (nameStr != null && nameStr != '') {
// _showConfirmWidget(needSex: true);
// }
// }
// }
// }
// _baseIndoProvider.notifyListeners();
// },
// content: value['title'],
// hasLeftBorder: value['hasLeftBorder'],
// isSelect: value['select']);
// }).toList()),
),
HEmptyView(40),
InkWell(
onTap: () {
FocusScope.of(context)
.requestFocus(FocusNode()); //隐藏键盘
DialogUtil.showSelectCusmanDialog(
context, memberList, (value) async {
if (value != null) {
memberIndex = value.first;
memberShow = memberList[memberIndex];
setState(() {});
}
}, selecteds: [memberIndex ?? 0])
.then((value) {});
},
child: Row(children: [
Text(
memberShow,
style: TextStyle(
color: memberShow == '会员状态未知'
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
),
),
Image.asset(Utils.getImgPath('quan_down_f'),
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28)),
]),
)
],
))
: SizedBox(),
//餐单类型
enterMore
? Container(
margin: EdgeInsets.only(
// top: ScreenUtil().setWidth(40),
bottom: ScreenUtil().setWidth(40)),
height: ScreenUtil().setWidth(68),
padding: EdgeInsets.symmetric(
horizontal: ScreenUtil().setWidth(16)),
decoration: BoxDecoration(
borderRadius: BorderRadius.circular(
ScreenUtil().setWidth(12)),
// color: Colors.red,
border: Border.all(
width: ScreenUtil().setWidth(2),
color: MyColours.color_DBDBDB)),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Text(
'餐单类型',
//输入文本的样式
style: TextStyle(
fontSize: ScreenUtil().setSp(28),
color: MyColours.color_353535),
),
InkWell(
onTap: () {
FocusScope.of(context)
.requestFocus(FocusNode()); //隐藏键盘
DialogUtil.showSelectCusmanDialog(
context, styleList, (value) async {
if (value != null) {
styleIndex = value.first;
styleShow = styleList[styleIndex];
setState(() {});
}
}, selecteds: [styleIndex ?? 0])
.then((value) {});
},
child: Row(children: [
Text(
styleShow,
style: TextStyle(
color: MyColours.color_515151,
fontSize: ScreenUtil().setSp(28),
),
),
Image.asset(Utils.getImgPath('quan_down_f'),
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28)),
]),
)
],
))
... ...
... ... @@ -50,6 +50,10 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
UploadImageProvider _uploadImageProvider;
List<String> memberList = [];
String memberShow = '会员状态未知';
int memberIndex;
@override
void initState() {
// TODO: implement initState
... ... @@ -58,6 +62,7 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
wineSerialSub = App.sp.getInt("wineSerialSub") ?? 1;
sexList = ['先生', '女士', '公司'];
memberList = ['会员', '非会员'];
_initWineSerial();
WineManageSunModel wineManageModel = WineManageSunModel();
wineManageModel.wineSerialC.text =
... ... @@ -339,20 +344,53 @@ class _CreateStoreWinePageState extends State<CreateStoreWinePage> {
]),
),
HEmptyView(40),
Container(
width: w(100),
alignment: Alignment.centerRight,
child: Text(
'会员状态未知',
// '会员',
style: TextStyle(
color: true
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(32),
InkWell(
onTap: () {
FocusScope.of(context)
.requestFocus(FocusNode()); //隐藏键盘
DialogUtil.showSelectCusmanDialog(
context, memberList, (value) async {
if (value != null) {
memberIndex = value.first;
memberShow =
memberList[memberIndex];
setState(() {});
}
}, selecteds: [memberIndex ?? 0]).then(
(value) {});
},
child: Row(children: [
Text(
memberShow,
style: TextStyle(
color: memberShow == '会员状态未知'
? MyColours.color_999999
: MyColours.color_515151,
fontSize: ScreenUtil().setSp(32),
),
),
),
),
Image.asset(
Utils.getImgPath('quan_down_f'),
width: ScreenUtil().setWidth(28),
height: ScreenUtil().setWidth(28)),
]),
)
// Container(
// width: w(100),
// alignment: Alignment.centerRight,
// child: Text(
// '会员状态未知',
// // '会员',
// style: TextStyle(
// color: true
// ? MyColours.color_999999
// : MyColours.color_515151,
// fontSize: ScreenUtil().setSp(32),
// ),
// ),
// ),
],
)),
],
... ...