@@ -138,7 +138,19 @@ class _MyAppState extends State<MyApp> {
138138 width: double .infinity,
139139 ),
140140 margin: EdgeInsets .fromLTRB (40 , 5 , 40 , 5 ),
141- )
141+ ),
142+ new Container (
143+ child: SizedBox (
144+ child: new CustomButton (
145+ onPressed: () {
146+ getSMSCode ();
147+ },
148+ title: "获取验证码" ,
149+ ),
150+ width: double .infinity,
151+ ),
152+ margin: EdgeInsets .fromLTRB (40 , 5 , 40 , 5 ),
153+ ),
142154 ],
143155 mainAxisAlignment: MainAxisAlignment .start,
144156 ),
@@ -200,15 +212,18 @@ class _MyAppState extends State<MyApp> {
200212 });
201213 }
202214 /// 获取短信验证码
203- void getSMSCode (String phoneNum,{ String signId, String tempId} ){
215+ void getSMSCode (){
204216 setState (() {
205217 _loading = true ;
206218 });
207-
219+ String phoneNum = controllerPHone.text;
220+ if (phoneNum == null ){
221+ //TODO: 提示
222+ }
208223 jverify.checkVerifyEnable ().then ((map) {
209224 bool result = map[f_result_key];
210225 if (result) {
211- jverify.getSMSCode (phoneNum,signId,tempId ).then ((map) {
226+ jverify.getSMSCode (phoneNum: phoneNum ).then ((map) {
212227 print ("获取短信验证码:${map .toString ()}" );
213228 int code = map[f_code_key];
214229 String message = map[f_msg_key];
@@ -231,7 +246,6 @@ class _MyAppState extends State<MyApp> {
231246 setState (() {
232247 _loading = true ;
233248 });
234-
235249 jverify.checkVerifyEnable ().then ((map) {
236250 bool result = map[f_result_key];
237251 if (result) {
@@ -258,7 +272,6 @@ class _MyAppState extends State<MyApp> {
258272 setState (() {
259273 _loading = true ;
260274 });
261-
262275 jverify.checkVerifyEnable ().then ((map) {
263276 bool result = map[f_result_key];
264277 if (result) {
@@ -282,7 +295,7 @@ class _MyAppState extends State<MyApp> {
282295 uiConfig.navReturnImgPath = "return_bg" ;//图片必须存在
283296
284297 uiConfig.logoWidth = 100 ;
285- uiConfig.logoHeight = 100 ;
298+ uiConfig.logoHeight = 80 ;
286299 //uiConfig.logoOffsetX = isiOS ? 0 : null;//(screenWidth/2 - uiConfig.logoWidth/2).toInt();
287300 uiConfig.logoOffsetY = 10 ;
288301 uiConfig.logoVerticalLayoutItem = JVIOSLayoutItem .ItemSuper ;
@@ -301,6 +314,7 @@ class _MyAppState extends State<MyApp> {
301314 uiConfig.sloganVerticalLayoutItem = JVIOSLayoutItem .ItemNumber ;
302315 uiConfig.sloganTextColor = Colors .black.value;
303316 uiConfig.sloganTextSize = 15 ;
317+ // uiConfig.slogan
304318 //uiConfig.sloganHidden = 0;
305319
306320 uiConfig.logBtnWidth = 220 ;
@@ -336,7 +350,8 @@ class _MyAppState extends State<MyApp> {
336350 uiConfig.privacyTextSize = 13 ;
337351 //uiConfig.privacyWithBookTitleMark = true;
338352 //uiConfig.privacyTextCenterGravity = false;
339-
353+ uiConfig.authStatusBarStyle = JVIOSBarStyle .StatusBarStyleDarkContent ;
354+ uiConfig.privacyStatusBarStyle = JVIOSBarStyle .StatusBarStyleDefault ;
340355
341356 uiConfig.statusBarColorWithNav = true ;
342357 uiConfig.virtualButtonTransparent = true ;
@@ -508,4 +523,6 @@ class CustomButton extends StatelessWidget {
508523 padding: EdgeInsets .fromLTRB (10 , 5 , 10 , 5 ),
509524 );
510525 }
511- }
526+ }
527+
528+
0 commit comments