@@ -118,6 +118,12 @@ | |||||
data) => { | data) => { | ||||
//console.log('datadata',data); | //console.log('datadata',data); | ||||
if (data) { | if (data) { | ||||
if(!data['StuInfoFreshEntity']) | |||||
{ | |||||
learun.layer.loading(false); | |||||
learun.layer.toast('未查询到新生数据,请确认是否为新生。'); | |||||
return; | |||||
} | |||||
//基本信息 | //基本信息 | ||||
for (var id in data['StuInfoFreshEntity']) { | for (var id in data['StuInfoFreshEntity']) { | ||||
var dom = $('#' + id)[0]; | var dom = $('#' + id)[0]; | ||||
@@ -260,7 +266,6 @@ | |||||
learun.layer.loading(false); | learun.layer.loading(false); | ||||
if (data) { | if (data) { | ||||
learun.layer.toast('保存成功'); | learun.layer.toast('保存成功'); | ||||
location.reload(); | |||||
} | } | ||||
}); | }); | ||||
@@ -226,7 +226,7 @@ | |||||
} | } | ||||
if (learun.storage.get('isUpdStu') === true) { | if (learun.storage.get('isUpdStu') === true) { | ||||
learun.storage.set('isUpdStu',null); | learun.storage.set('isUpdStu',null); | ||||
learun.nav.go({ path: 'login/IdCardLogin', title: '身份证登录', type: 'right' }); | |||||
learun.nav.go({ path: 'welcome', title: '完善信息', type: 'right' }); | |||||
//learun.nav.go({ path: 'my/modifypassword', isBack: false, isHead: true, title:'修改密码' }); | //learun.nav.go({ path: 'my/modifypassword', isBack: false, isHead: true, title:'修改密码' }); | ||||
} | } | ||||
var _html = ''; | var _html = ''; | ||||