You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
122 lines
3.2 KiB
122 lines
3.2 KiB
// subpages/index/checkInWait/checkInWait.js
|
|
import {selectMzGraduateInfo,eSignDownload} from "../../../api/index"
|
|
const app = getApp()
|
|
Page({
|
|
|
|
/**
|
|
* 页面的初始数据
|
|
*/
|
|
data: {
|
|
idCard:'',
|
|
info:{}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面加载
|
|
*/
|
|
onLoad(options) {
|
|
if(options.idCard){
|
|
this.setData({
|
|
idCard:options.idCard
|
|
})
|
|
}
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面初次渲染完成
|
|
*/
|
|
onReady() {
|
|
|
|
},
|
|
|
|
|
|
/**
|
|
* 生命周期函数--监听页面显示
|
|
*/
|
|
onShow() {
|
|
// if(this.data.info){
|
|
// const pamars = {
|
|
// bizId:this.data.info.chooseRecId ||'',
|
|
// signType:1
|
|
// }
|
|
// eSignDownload(pamars).then(res=>{
|
|
// if(res.data.code === 0){
|
|
// wx.navigateTo({
|
|
// url: '/subpages/OCRCard/pages/deposit/deposit',
|
|
// })
|
|
// }
|
|
// })
|
|
// }
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面隐藏
|
|
*/
|
|
onHide() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 生命周期函数--监听页面卸载
|
|
*/
|
|
onUnload() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面相关事件处理函数--监听用户下拉动作
|
|
*/
|
|
onPullDownRefresh() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 页面上拉触底事件的处理函数
|
|
*/
|
|
onReachBottom() {
|
|
|
|
},
|
|
|
|
/**
|
|
* 用户点击右上角分享
|
|
*/
|
|
onShareAppMessage() {
|
|
|
|
},
|
|
|
|
submit(){
|
|
selectMzGraduateInfo({idCard:this.data.idCard}).then(res=>{
|
|
if(res.code === 200){
|
|
this.setData({
|
|
info:res.data
|
|
})
|
|
// wx.navigateTo({
|
|
// url: '/pages/webView/webView?url=' + encodeURIComponent('https://smlh5.esign.cn/mesign/guide?context=ocdfblk7G6&flowId=0eb621c0d73d4d218f5ae9b357a91821&organ=false&appId=7439066638&linkSource=1&bizType=1&tsign_source_type=SIGN_LINK_XUANYUAN&tsign_source_detail=16R2mv%2F27h2Y5CkM9bwhboJgEfaR5q9nLW1M2TKOt%2FsnmaDbpS23d%2FYDkRZo47IgfpkLUByBPb9sP4eZvvz00wnj4Wshq%2B%2F3XgAN8xrJ7u%2BLr1f%2Fc9JAccKV839CDqMhELJXjp6kV5WYnH3Fvcm6wfNCwqHwSeMCsqO7xbinP4ECLnKbmG3FrVaZVUrg7ts7YVDNLiFo2n3CXJN4k1BOiR8YCSSRmtQyaT0SvncLKKhL2fYTDY2XjiLahYSqNo6Rc'),
|
|
// })
|
|
// 线上签订合同跳转信息确认
|
|
if(res.data.signType === 0 && res.data.contract){
|
|
app.globalData.userInfo.chooseRoomId = res.data.chooseRecId
|
|
console.log(res.data.contract,'链接》》》》');
|
|
res.data.contract = res.data.contract.replace('https://h5.esign.cn','https://hxm5112004501.h5.esign.cn')
|
|
wx.navigateTo({
|
|
url: '/pages/webView/webView?url=' + encodeURIComponent(res.data.contract),
|
|
})
|
|
}else if(res.data.signType === 1){
|
|
// 线下签订
|
|
wx.switchTab({
|
|
url: '/pages/noData/noData?msg=暂无合同签订&idCard=' + this.data.idCard,
|
|
})
|
|
}else{
|
|
// 没有合同信息
|
|
wx.showToast({
|
|
title: '合同准备中,请稍后...',
|
|
icon:'none'
|
|
})
|
|
}
|
|
|
|
}
|
|
}).catch(err=>{
|
|
console.log(err);
|
|
})
|
|
}
|
|
})
|