@@ -12,6 +12,11 @@ export default { | |||||
ymdhMins:y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length) + ' ' + h.substring(h.length-2,h.length) + ':' + min.substring(min.length-2,min.length) + ':' + second.substring(second.length-2,second.length), | ymdhMins:y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length) + ' ' + h.substring(h.length-2,h.length) + ':' + min.substring(min.length-2,min.length) + ':' + second.substring(second.length-2,second.length), | ||||
ymd:y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length) | ymd:y+"-"+m.substring(m.length-2,m.length)+"-"+d.substring(d.length-2,d.length) | ||||
}; | }; | ||||
}, | |||||
doHandleYear(obj) { | |||||
var myDate = obj? new Date(obj) : new Date(); | |||||
var tYear = myDate.getFullYear(); | |||||
return tYear; | |||||
} | } | ||||
} | } | ||||
@@ -209,7 +209,7 @@ | |||||
var postqueryData = {}; | var postqueryData = {}; | ||||
postqueryData.ArriveDate = todayTime.fmtDate().ymdhMins; | postqueryData.ArriveDate = todayTime.fmtDate().ymdhMins; | ||||
postqueryData.RegisterStatus = '1'; | postqueryData.RegisterStatus = '1'; | ||||
postqueryData.RegisterStatus =this.StuInfoFreshEntity.IsPoor; | |||||
postqueryData.IsPoor =this.StuInfoFreshEntity.IsPoor; | |||||
postqueryData.GetKeyStatus =this.StuInfoFreshEntity.GetKeyStatus; | postqueryData.GetKeyStatus =this.StuInfoFreshEntity.GetKeyStatus; | ||||
postqueryData.GetCardStatus =this.StuInfoFreshEntity.GetCardStatus; | postqueryData.GetCardStatus =this.StuInfoFreshEntity.GetCardStatus; | ||||
postqueryData.OtherPayFeeStatus =this.StuInfoFreshEntity.OtherPayFeeStatus; | postqueryData.OtherPayFeeStatus =this.StuInfoFreshEntity.OtherPayFeeStatus; | ||||
@@ -4,7 +4,7 @@ | |||||
<!-- 未完成 类名 sSec1Type2 图片 enter2-1 enter2-2 enter2-3 enter2-4 enter2-5--> | <!-- 未完成 类名 sSec1Type2 图片 enter2-1 enter2-2 enter2-3 enter2-4 enter2-5--> | ||||
<!-- 可以点击类名 sSec1Tap --> | <!-- 可以点击类名 sSec1Tap --> | ||||
<view class="ensHeader"> | <view class="ensHeader"> | ||||
<view class="ensTime">2020</view> | |||||
<view class="ensTime">{{ year }}</view> | |||||
<view class="ensHeadT">新生入校流程</view> | <view class="ensHeadT">新生入校流程</view> | ||||
</view> | </view> | ||||
<view class="ensSec1"> | <view class="ensSec1"> | ||||
@@ -120,6 +120,7 @@ | |||||
</template> | </template> | ||||
<script> | <script> | ||||
import todayTime from '@/common/js/todayTime.js'; | |||||
export default{ | export default{ | ||||
data() { | data() { | ||||
return { | return { | ||||
@@ -134,20 +135,29 @@ export default{ | |||||
StuInfoFreshEntity:{}, | StuInfoFreshEntity:{}, | ||||
StuInfoFreshFamilyList: [], | StuInfoFreshFamilyList: [], | ||||
StuInfoFreshEmergePeopleList: [] | StuInfoFreshEmergePeopleList: [] | ||||
} | |||||
}, | |||||
year:'', | |||||
ready:false, | |||||
} | } | ||||
}, | }, | ||||
onShow() { | onShow() { | ||||
this.init(); | |||||
if(this.ready){ | |||||
this.init(); | |||||
} | |||||
}, | }, | ||||
methods:{ | methods:{ | ||||
init() { | init() { | ||||
let _this = this; | let _this = this; | ||||
_this.userinfo = _this.GET_GLOBAL('loginUser'); //获取登录信息 | _this.userinfo = _this.GET_GLOBAL('loginUser'); //获取登录信息 | ||||
this.year = todayTime.doHandleYear() | |||||
_this.LOADING('加载数据中…'); | _this.LOADING('加载数据中…'); | ||||
_this.HTTP_GET('StuInfoFresh/stuInfoFreshEntity', _this.userinfo.account, '加载数据时出错').then(res => { | _this.HTTP_GET('StuInfoFresh/stuInfoFreshEntity', _this.userinfo.account, '加载数据时出错').then(res => { | ||||
this.ready = true | |||||
_this.HIDE_LOADING(); | _this.HIDE_LOADING(); | ||||
console.log(res); | console.log(res); | ||||
if(res.StuInfoFreshEntity == null){ | |||||
res.StuInfoFreshEntity = {} | |||||
} | |||||
_this.data = _this.COPY(res); | _this.data = _this.COPY(res); | ||||
if (this.data["StuInfoFreshFamilyList"].length && this.data["StuInfoFreshFamilyList"].length > 0) { | if (this.data["StuInfoFreshFamilyList"].length && this.data["StuInfoFreshFamilyList"].length > 0) { | ||||
_this.one = true | _this.one = true | ||||
@@ -219,10 +219,13 @@ export default { | |||||
if(!this.photo.length)array.push("[采集照片信息]:不能为空") | if(!this.photo.length)array.push("[采集照片信息]:不能为空") | ||||
// if(!this.queryData.RegionNo)array.push("[籍贯]:不能为空") | // if(!this.queryData.RegionNo)array.push("[籍贯]:不能为空") | ||||
// if(!this.queryData.FamilyAddress)array.push("[家庭住址]:不能为空") | // if(!this.queryData.FamilyAddress)array.push("[家庭住址]:不能为空") | ||||
if(!this.queryData.telephone)array.push("[联系电话]:不能为空") | |||||
if(!this.queryData.telephone||!/^(\+\d{2,3}\-)?\d{11}$/.test(this.queryData.telephone)){ | |||||
let str = this.queryData.telephone?"格式错误":"不能为空" | |||||
array.push("[联系电话]:" + str) | |||||
} | |||||
if(!this.queryData.StuInfoFreshFamilyEntities.length|| | if(!this.queryData.StuInfoFreshFamilyEntities.length|| | ||||
!this.queryData.StuInfoFreshFamilyEntities.every((item)=>{ | !this.queryData.StuInfoFreshFamilyEntities.every((item)=>{ | ||||
return item.Name&&(item.Relation||item.Relation===0)&&(item.Sex||item.Sex===0)&&(item.Age||item.Age===0)&&(item.Politicy||item.Politicy===0) | |||||
return item.Name&&(item.Relation||item.Relation===0)&&(item.Sex||item.Sex===0)&&/^[1-9]\d*$/.test(item.Age)&&(item.Politicy||item.Politicy===0) | |||||
}) | }) | ||||
)array.push("[家庭成员]:未完善") | )array.push("[家庭成员]:未完善") | ||||
// if(!this.queryData.StuInfoFreshEmergePeopleEntities.length|| | // if(!this.queryData.StuInfoFreshEmergePeopleEntities.length|| | ||||
@@ -158,7 +158,7 @@ export default { | |||||
if(!success){ | if(!success){ | ||||
return | return | ||||
} | } | ||||
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + success.appid + "&redirect_uri=" + encodeURIComponent('http://' + window.location.host + '/#/pages/weixinLogin') + "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; | |||||
window.location.href = "https://open.weixin.qq.com/connect/oauth2/authorize?appid=" + success.appid + "&redirect_uri=" + encodeURIComponent('http://' + window.location.host + '/#/pages/wxLogin') + "&response_type=code&scope=snsapi_userinfo&state=STATE#wechat_redirect"; | |||||
}) | }) | ||||
} | } | ||||
}, | }, | ||||