17 changed files with 317 additions and 125 deletions
@ -0,0 +1,106 @@ |
|||
// pages/noData/noData.js
|
|||
|
|||
import {selectMzGraduateInfo } from "../../api/index" |
|||
const app = getApp() |
|||
Page({ |
|||
|
|||
/** |
|||
* 页面的初始数据 |
|||
*/ |
|||
data: { |
|||
msg:'暂无信息', |
|||
idCard:'' |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面加载 |
|||
*/ |
|||
onLoad(options) { |
|||
if(options){ |
|||
this.setData({ |
|||
msg:options.msg, |
|||
idCard:options.idCard, |
|||
statusHeight: app.globalData.deviceInfo.statusHeight, |
|||
navigationHeight: app.globalData.deviceInfo.navigationHeight, |
|||
}) |
|||
this.selectMzGraduateInfo() |
|||
} |
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面初次渲染完成 |
|||
*/ |
|||
onReady() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面显示 |
|||
*/ |
|||
onShow() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面隐藏 |
|||
*/ |
|||
onHide() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 生命周期函数--监听页面卸载 |
|||
*/ |
|||
onUnload() { |
|||
|
|||
}, |
|||
back(){ |
|||
wx.switchTab({ |
|||
url: '/pages/index/index', |
|||
}) |
|||
}, |
|||
/** |
|||
* 页面相关事件处理函数--监听用户下拉动作 |
|||
*/ |
|||
onPullDownRefresh() { |
|||
this.selectMzGraduateInfo() |
|||
wx.stopPullDownRefresh(); |
|||
}, |
|||
selectMzGraduateInfo(){ |
|||
console.log(this.data.idCard); |
|||
selectMzGraduateInfo({idCard:this.data.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') |
|||
wx.navigateTo({ |
|||
url: '/pages/webView/webView?url=' + encodeURIComponent(res.data.contract), |
|||
}) |
|||
}else{ |
|||
wx.showToast({ |
|||
title: '暂无合同签订', |
|||
icon:'none' |
|||
}) |
|||
} |
|||
}).catch(err=>{ |
|||
wx.showToast({ |
|||
title: '暂无合同签订', |
|||
icon:'none' |
|||
}) |
|||
}) |
|||
}, |
|||
/** |
|||
* 页面上拉触底事件的处理函数 |
|||
*/ |
|||
onReachBottom() { |
|||
|
|||
}, |
|||
|
|||
/** |
|||
* 用户点击右上角分享 |
|||
*/ |
|||
onShareAppMessage() { |
|||
|
|||
} |
|||
}) |
@ -0,0 +1,8 @@ |
|||
{ |
|||
"usingComponents": { |
|||
"van-empty": "@vant/weapp/empty/index" |
|||
}, |
|||
"navigationBarTitleText": "入住办理", |
|||
"enablePullDownRefresh": true, |
|||
"navigationStyle": "custom" |
|||
} |
@ -0,0 +1,10 @@ |
|||
<view > |
|||
<image src="../../images/back.png" class="back" bind:tap="back" style=" top: {{statusHeight}}px;width: 50rpx;height: 50rpx;" bindtap="back" mode="" /> |
|||
<view class="navigation" style="height: {{navigationHeight}}px; top: {{statusHeight}}px;line-height: {{navigationHeight}}px;"> |
|||
入住办理 |
|||
</view> |
|||
</view> |
|||
|
|||
<view style="margin-top: 200rpx;"> |
|||
<van-empty description="{{msg}}" cost/> |
|||
</view> |
@ -0,0 +1,20 @@ |
|||
/* pages/noData/noData.wxss */ |
|||
.navigation { |
|||
display: flex; |
|||
align-items: center; |
|||
color: #333333; |
|||
font-size: 32rpx; |
|||
z-index: 100; |
|||
position: fixed; |
|||
left: 50%; |
|||
transform: translateX(-60rpx); |
|||
} |
|||
.back { |
|||
width: 30rpx; |
|||
height: 30rpx; |
|||
margin-left: 20rpx; |
|||
margin-top: 20rpx; |
|||
border-radius: 0rpx; |
|||
z-index: 101; |
|||
position: fixed; |
|||
} |
Loading…
Reference in new issue