|
@@ -60,6 +60,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
TextEditingController openBankNameController = TextEditingController();
|
|
TextEditingController openBankNameController = TextEditingController();
|
|
|
TextEditingController openBankPhoneController = TextEditingController();
|
|
TextEditingController openBankPhoneController = TextEditingController();
|
|
|
|
|
|
|
|
|
|
+ FocusNode bankCardFocusNode = FocusNode();
|
|
|
|
|
|
|
|
|
|
|
|
|
List < dynamic > goodsCateGoryList = [];
|
|
List < dynamic > goodsCateGoryList = [];
|
|
@@ -247,6 +248,20 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
receiptCompanyAddress = receiptCompanyAddressController.text;
|
|
receiptCompanyAddress = receiptCompanyAddressController.text;
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
|
|
|
+ bankCardFocusNode.addListener((){
|
|
|
|
|
+ if(!bankCardFocusNode.hasFocus){
|
|
|
|
|
+ if(bankCardController.text!=''){
|
|
|
|
|
+ getBankName(bankCardController.text).then((resp){
|
|
|
|
|
+ if(isNotError(context, resp) && this.mounted){
|
|
|
|
|
+ BankNameObj obj = BankNameObj.fromJson(resp.data);
|
|
|
|
|
+ setState(() {
|
|
|
|
|
+ bankNameController.text = obj.data;
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ });
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
@override
|
|
@@ -635,6 +650,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
SizedBox(
|
|
SizedBox(
|
|
|
width: ScreenUtil.getInstance().setWidth(500),
|
|
width: ScreenUtil.getInstance().setWidth(500),
|
|
|
child: TextField(
|
|
child: TextField(
|
|
|
|
|
+ focusNode: key == '银行卡号'?bankCardFocusNode:null,
|
|
|
controller: key == '银行卡号'?bankCardController:key=='银行名称'?bankNameController:openBankNameController,
|
|
controller: key == '银行卡号'?bankCardController:key=='银行名称'?bankNameController:openBankNameController,
|
|
|
keyboardType: keyboardType ? TextInputType.text : TextInputType.number,
|
|
keyboardType: keyboardType ? TextInputType.text : TextInputType.number,
|
|
|
textAlign: TextAlign.end,
|
|
textAlign: TextAlign.end,
|
|
@@ -643,7 +659,6 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
),
|
|
),
|
|
|
-
|
|
|
|
|
Icon(Icons.keyboard_arrow_right, color: Color.fromRGBO(199, 199, 204, 1), )
|
|
Icon(Icons.keyboard_arrow_right, color: Color.fromRGBO(199, 199, 204, 1), )
|
|
|
],
|
|
],
|
|
|
)
|
|
)
|
|
@@ -797,6 +812,7 @@ class _SendExpressPageState extends State < SendExpressPage > with AutomaticKeep
|
|
|
child: TextField(
|
|
child: TextField(
|
|
|
controller: openBankPhoneController,
|
|
controller: openBankPhoneController,
|
|
|
textAlign: TextAlign.end,
|
|
textAlign: TextAlign.end,
|
|
|
|
|
+ keyboardType: TextInputType.number,
|
|
|
decoration: InputDecoration(
|
|
decoration: InputDecoration(
|
|
|
border: InputBorder.none
|
|
border: InputBorder.none
|
|
|
),
|
|
),
|