Browse Source

退房确认的时候如果没有身份证信息去信息确认,延租申请内容提示修改

epass
mk 1 month ago
parent
commit
f1c01e5a78
  1. 6
      app.json
  2. 21
      pages/index/index.js
  3. 4
      pages/serve/serve.wxml
  4. 18
      subpages/OCRCard/pages/OCR/OCR.js
  5. 6
      subpages/OCRCard/pages/index/index.js
  6. 4
      subpages/OCRCard/pages/index/index.wxml
  7. 40
      subpages/index/checkInUser/checkInUser.js
  8. 2
      subpages/index/checkInUser/checkInUser.wxml
  9. 5
      subpages/index/checkOutConfirm/index/index.js
  10. 2
      subpages/index/renewalApplication/renewalApplication.wxml
  11. 4
      utils/config.js

6
app.json

@ -82,11 +82,7 @@
"pagePath": "pages/index/index",
"iconPath": "images/icon/home.png"
},
{
"text": "消息",
"pagePath": "pages/message/message",
"iconPath": "images/icon/home.png"
},
{
"text": "服务",
"pagePath": "pages/serve/serve",

21
pages/index/index.js

@ -189,7 +189,7 @@ Page({
},
navigateTo(e){
if(wx.getStorageSync('token')){
if(e.currentTarget.dataset.url && e.currentTarget.dataset.url != '/subpages/OCRCard/pages/index/index'){
if(e.currentTarget.dataset.url && e.currentTarget.dataset.url != '/subpages/OCRCard/pages/index/index' && e.currentTarget.dataset.url != '/subpages/index/checkOutConfirm/index/index'){
if(e.currentTarget.dataset.url === '/pages/serve/serve'){
wx.switchTab({
url: '/pages/serve/serve',
@ -198,7 +198,7 @@ Page({
wx.navigateTo({
url: e.currentTarget.dataset.url,
})
}else if(e.currentTarget.dataset.url){
}else if(e.currentTarget.dataset.url === '/subpages/OCRCard/pages/index/index'){
if(!this.data.bindPhone){
if(this.data.userInfo.idCard){
wx.navigateTo({
@ -214,7 +214,22 @@ Page({
url: '/pages/register/register',
})
}
}else if(e.currentTarget.dataset.url === '/subpages/index/checkOutConfirm/index/index'){
if(!this.data.bindPhone){
if(this.data.userInfo.idCard){
wx.navigateTo({
url: `/subpages/index/checkOutConfirm/index/index`,
})
}else{
wx.navigateTo({
url: `/subpages/OCRCard/pages/index/index?type=out`,
})
}
}else{
wx.navigateTo({
url: '/pages/register/register',
})
}
}
}
}

4
pages/serve/serve.wxml

@ -21,10 +21,10 @@
<image src="../../images/icon/nav_10.png" class="icon-100" mode="" />
<view style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1 mt-14">延租申请</view>
</navigator>
<!-- <navigator url="/subpages/mine/checkInEvaluate/checkInEvaluate" class=" flex items-center flex-center-j flex-col" style="width: 25%;">
<navigator url="/subpages/mine/checkInEvaluate/checkInEvaluate" class=" flex items-center flex-center-j flex-col" style="width: 25%;">
<image src="../../images/icon/nav_3.png" class="icon-100" mode="" />
<text style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1 mt-14">居住评价</text>
</navigator> -->
</navigator>
</view>
</view>
<!-- <view class="card flex flex-col list">

18
subpages/OCRCard/pages/OCR/OCR.js

@ -26,13 +26,19 @@ import {
left: 24,
width: 666,
height: 464,
info:{}
info:{},
type:null
},
onLoad(opt) {
wx.setNavigationBarTitle({
title: this.data.title
})
this.initData()
if(opt.type){
this.setData({
type:opt.type
})
}
},
showTool() {
this.setData({
@ -215,12 +221,18 @@ import {
this.selectMzGraduateInfo(e.result.data.idcard_res)
}else{
wx.navigateTo({
url: `/subpages/index/checkInUser/checkInUser`,
url: `/subpages/index/checkInUser/checkInUser?type=${this.data.type}`,
})
}
},
selectMzGraduateInfo(data){
if(data){
if(this.data.type== 'out'){
wx.navigateTo({
url: `/subpages/index/checkInUser/checkInUser?type=${this.data.type}&idCard=${data.id.text || ''}`,
})
return
}
selectMzGraduateInfo({idCard:data.id.text}).then(res=>{
if(res.code === 200){
wx.navigateTo({
@ -231,7 +243,7 @@ import {
})
}else{
wx.navigateTo({
url: `/subpages/index/checkInUser/checkInUser`,
url: `/subpages/index/checkInUser/checkInUser?type=${this.data.type}`,
})
}

6
subpages/OCRCard/pages/index/index.js

@ -7,12 +7,18 @@ Page({
*/
data: {
scanAnimation: null,
type:null
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
if(options.type){
this.setData({
type:options.type
})
}
this.setData({
statusHeight: app.globalData.deviceInfo.statusHeight,
navigationHeight: app.globalData.deviceInfo.navigationHeight,

4
subpages/OCRCard/pages/index/index.wxml

@ -18,10 +18,10 @@
</view>
<view style="font-size: 28rpx;color: #666666;" class="mt-16">温馨提示:请先拍照或上传身份证照片进行身份识别。</view>
</view>
<navigator url="/subpages/OCRCard/pages/OCR/OCR" certificateType="idCard" opposite="{{false}}" class="ocr">
<navigator url="/subpages/OCRCard/pages/OCR/OCR?type={{type}}" certificateType="idCard" opposite="{{false}}" class="ocr">
<button hover-class="color" class="btn1" style="background-color:#0bb4b4">开始识别</button>
</navigator>
<navigator url="/subpages/index/checkInUser/checkInUser" certificateType="idCard" opposite="{{false}}" class="ocr">
<navigator url="/subpages/index/checkInUser/checkInUser?type={{type}}" certificateType="idCard" opposite="{{false}}" class="ocr">
<button hover-class="color" class="btn2" style="background-color:#0bb4b4;margin-top: 10rpx;" >手动输入</button>
</navigator>
</view>

40
subpages/index/checkInUser/checkInUser.js

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

2
subpages/index/checkInUser/checkInUser.wxml

@ -1,5 +1,5 @@
<!--subpages/index/checkInUser/checkInUser.wxml-->
<navigationBar title="入住办理" isSowArrow isShowBg="" titleAlign="center"></navigationBar>
<navigationBar title="信息确认" isSowArrow isShowBg="" titleAlign="center"></navigationBar>
<view class="cont">
<view class="header flex flex-sb flex-center-j " style="background-image:url(https://hrss.qingdao.gov.cn/mzjwj/1752628959782_37671749449508391_5648bg02.png);">
<view class="flex flex-col ">

5
subpages/index/checkOutConfirm/index/index.js

@ -131,11 +131,6 @@ console.log('area',scrollArea.node);
navigationHeight: app.globalData.deviceInfo.navigationHeight,
checkOutDate: `${year}-${month}-${day}`
})
this.setData({
})
},
getProcessingCheckOutInfo(){
getProcessingCheckOutInfo().then(res=>{

2
subpages/index/renewalApplication/renewalApplication.wxml

@ -5,7 +5,7 @@
<van-image width="72" height="72" src="/images/mine/md-restore.png" custom-class="cusImage" />
<view class="txt">
<view>温馨提示:</view>
<view class="des">您需要登“爱山东”APP搜索“青岛免租金住房”进入青岛市免租金住宿保障平台进行延租申请。</view>
<view class="des">您需要登“爱山东”APP搜索“青岛免租金住房”进入青岛市免租金住宿保障平台进行延租申请。</view>
</view>
</view>
<van-button slot="button" block type="primary" round color="linear-gradient(to right, #0DC6C6 , #46DBD5)" bind:tap="submit" custom-class="btn">

4
utils/config.js

@ -13,8 +13,8 @@ module.exports = {
};
function BASEURL() {
// return 'https://zsbz.qdcfy.com/mz-api'
return 'http://219.146.91.110:30801/mz-api'
return 'https://zsbz.qdcfy.com/mz-api'
// return 'http://219.146.91.110:30801/mz-api'
// return 'https://epmet-test.elinkservice.cn/api/'
}

Loading…
Cancel
Save