diff --git a/pages/index/index.js b/pages/index/index.js index e9a90d5..d9e3987 100644 --- a/pages/index/index.js +++ b/pages/index/index.js @@ -76,7 +76,6 @@ Page({ selectMzGraduateInfo(obj){ selectMzGraduateInfo({idCard:obj.idCard}).then(res=>{ 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') @@ -216,6 +215,19 @@ Page({ wx.switchTab({ url: '/pages/serve/serve', }) + } + if(e.currentTarget.dataset.url === '/subpages/goOut/goOut/goOut'){ + if(this.data.userInfo.graduateId){ + wx.navigateTo({ + url: '/subpages/goOut/goOut/goOut', + }) + }else{ + wx.showToast({ + title: '未绑定入住信息', + icon:'none' + }) + return + } } wx.navigateTo({ url: e.currentTarget.dataset.url, diff --git a/subpages/goOut/goOut/goOut.wxml b/subpages/goOut/goOut/goOut.wxml index e53972a..448a6b1 100644 --- a/subpages/goOut/goOut/goOut.wxml +++ b/subpages/goOut/goOut/goOut.wxml @@ -22,9 +22,9 @@ - + - +