公寓小程序端前端代码
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.
 

98 lines
1.8 KiB

// subpages/index/checkInWait/checkInWait.js
import {selectMzGraduateInfo} from "../../../api/index"
Page({
/**
* 页面的初始数据
*/
data: {
idCard:''
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if(options.idCard){
this.setData({
idCard:options.idCard
})
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
submit(){
selectMzGraduateInfo({idCard:this.data.idCard}).then(res=>{
if(res.code === 200){
// 线上签订合同跳转信息确认
if(res.data.signType === 0){
wx.navigateTo({
url: '/pages/webView/webView',
})
}else if(res.data.signType === 1){
// 线下签订
wx.navigateTo({
url: '/subpages/OCRCard/pages/deposit/deposit',
})
}else{
// 没有合同信息
wx.showToast({
title: '合同准备中,请稍后...',
icon:'none'
})
}
}
}).catch(err=>{
console.log(err);
})
}
})