|
@ -1,6 +1,11 @@ |
|
|
// subpages/index/checkInUser/checkInUser.js
|
|
|
// subpages/index/checkInUser/checkInUser.js
|
|
|
import {bindIdCard} from "../../../api/user" |
|
|
import { |
|
|
import {selectMzGraduateInfo,eSignDownload} from "../../../api/index" |
|
|
bindIdCard |
|
|
|
|
|
} from "../../../api/user" |
|
|
|
|
|
import { |
|
|
|
|
|
selectMzGraduateInfo, |
|
|
|
|
|
eSignDownload |
|
|
|
|
|
} from "../../../api/index" |
|
|
const app = getApp() |
|
|
const app = getApp() |
|
|
Page({ |
|
|
Page({ |
|
|
|
|
|
|
|
@ -11,7 +16,8 @@ Page({ |
|
|
form: { |
|
|
form: { |
|
|
graduateName: '', |
|
|
graduateName: '', |
|
|
idCard: '', |
|
|
idCard: '', |
|
|
telephone:'' |
|
|
telephone: '', |
|
|
|
|
|
type: '' |
|
|
} |
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
@ -19,12 +25,16 @@ Page({ |
|
|
* 生命周期函数--监听页面加载 |
|
|
* 生命周期函数--监听页面加载 |
|
|
*/ |
|
|
*/ |
|
|
onLoad(options) { |
|
|
onLoad(options) { |
|
|
if(options.idCard){ |
|
|
console.log(options); |
|
|
|
|
|
if (options) { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
'form.idCard': options.idCard, |
|
|
'form.idCard': options.idCard, |
|
|
|
|
|
type: options.type || '' |
|
|
}) |
|
|
}) |
|
|
|
|
|
if(!options.type){ |
|
|
this.selectMzGraduateInfo() |
|
|
this.selectMzGraduateInfo() |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
@ -34,7 +44,6 @@ Page({ |
|
|
|
|
|
|
|
|
}, |
|
|
}, |
|
|
onRouteDone(e) { |
|
|
onRouteDone(e) { |
|
|
console.log(e); |
|
|
|
|
|
}, |
|
|
}, |
|
|
/** |
|
|
/** |
|
|
* 生命周期函数--监听页面显示 |
|
|
* 生命周期函数--监听页面显示 |
|
@ -95,10 +104,19 @@ Page({ |
|
|
}, |
|
|
}, |
|
|
submit() { |
|
|
submit() { |
|
|
// this.bindIdCard()
|
|
|
// this.bindIdCard()
|
|
|
selectMzGraduateInfo({idCard:this.data.form.idCard}).then(res=>{ |
|
|
if (this.data.type === 'out') { |
|
|
|
|
|
wx.navigateTo({ |
|
|
|
|
|
url: '/subpages/index/checkOutConfirm/index/index', |
|
|
|
|
|
}) |
|
|
|
|
|
return false |
|
|
|
|
|
} |
|
|
|
|
|
selectMzGraduateInfo({ |
|
|
|
|
|
idCard: this.data.form.idCard |
|
|
|
|
|
}).then(res => { |
|
|
console.log(res, '毕业生信息'); |
|
|
console.log(res, '毕业生信息'); |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
this.bindIdCard() |
|
|
this.bindIdCard() |
|
|
|
|
|
|
|
|
if (res.data.signType === 0 && res.data.contract) { |
|
|
if (res.data.signType === 0 && res.data.contract) { |
|
|
//线上支付去跳转签合同
|
|
|
//线上支付去跳转签合同
|
|
|
app.globalData.userInfo.chooseRoomId = res.data.chooseRecId |
|
|
app.globalData.userInfo.chooseRoomId = res.data.chooseRecId |
|
@ -118,18 +136,24 @@ Page({ |
|
|
}) |
|
|
}) |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
}).catch(err => { |
|
|
}).catch(err => { |
|
|
console.log(err); |
|
|
console.log(err); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
bindIdCard() { |
|
|
bindIdCard() { |
|
|
bindIdCard({idCard:this.data.form.idCard,name:this.data.form.graduateName}).then(res=>{ |
|
|
bindIdCard({ |
|
|
|
|
|
idCard: this.data.form.idCard, |
|
|
|
|
|
name: this.data.form.graduateName |
|
|
|
|
|
}).then(res => { |
|
|
console.log(res); |
|
|
console.log(res); |
|
|
}) |
|
|
}) |
|
|
}, |
|
|
}, |
|
|
selectMzGraduateInfo() { |
|
|
selectMzGraduateInfo() { |
|
|
selectMzGraduateInfo({idCard:this.data.form.idCard}).then(res=>{ |
|
|
selectMzGraduateInfo({ |
|
|
|
|
|
idCard: this.data.form.idCard |
|
|
|
|
|
}).then(res => { |
|
|
if (res.code === 200) { |
|
|
if (res.code === 200) { |
|
|
this.setData({ |
|
|
this.setData({ |
|
|
form: res.data |
|
|
form: res.data |
|
|