Browse Source

乱七八糟改一些

epass
mk 2 months ago
parent
commit
c14e88a349
  1. 2
      pages/index/index.wxml
  2. 5
      pages/register/register.js
  3. 3
      pages/register/register.wxml
  4. 3
      subpages/index/renewalApplication/renewalApplication.wxml
  5. 3
      subpages/mine/checkInEvaluate/checkInEvaluate.js
  6. 9
      subpages/mine/checkInRecord/checkInRecord.js
  7. 6
      subpages/mine/evaluate/evaluate.js
  8. 2
      subpages/mine/evaluate/evaluate.wxml

2
pages/index/index.wxml

@ -14,7 +14,7 @@
</view> </view>
<view class="bg-white pt-40"> <view class="bg-white pt-40">
<view class="card tip flex" bind:tap="toMessage"> <view class="card tip flex" bind:tap="toMessage" wx:if="{{messageList.length!==0}}">
<image src="../../images/icon/tip.png" class="icon-36" alt="Image" /> <image src="../../images/icon/tip.png" class="icon-36" alt="Image" />
<view class="ellipsis">{{messageList[0].title || ''}}</view> <view class="ellipsis">{{messageList[0].title || ''}}</view>
</view> </view>

5
pages/register/register.js

@ -74,5 +74,10 @@ Page({
}) })
} }
}) })
},
back(){
wx.switchTab({
url: '/pages/index/index',
})
} }
}) })

3
pages/register/register.wxml

@ -2,5 +2,6 @@
<image src="../../images/register.png" mode="" style="width: 100vw;height: 100vh;"/> <image src="../../images/register.png" mode="" style="width: 100vw;height: 100vh;"/>
<view class="flex flex-col btn-box"> <view class="flex flex-col btn-box">
<view style="text-align:center;">为了更好地服务,我们需要获取您的手机号</view> <view style="text-align:center;">为了更好地服务,我们需要获取您的手机号</view>
<van-button round size="large" color="#1cc6c5" style="margin-top: 20rpx;padding-top: 10rpx;padding-bottom: 10rpx;" bind:getphonenumber="getphonenumber" open-type="getPhoneNumber">获取手机号</van-button> <van-button round size="large" color="#1cc6c5" style="margin-top: 20rpx;padding-top: 10rpx;padding-bottom: 10rpx;" bind:getphonenumber="getphonenumber" open-type="getPhoneNumber">同意</van-button>
<van-button round size="large" color="" style="margin-top: 20rpx;padding-top: 10rpx;padding-bottom: 10rpx;" bind:click="back" >不同意</van-button>
</view> </view>

3
subpages/index/renewalApplication/renewalApplication.wxml

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

3
subpages/mine/checkInEvaluate/checkInEvaluate.js

@ -97,8 +97,9 @@ Page({
} }
}, },
toEvaluate(e){ toEvaluate(e){
console.log(e);
wx.navigateTo({ wx.navigateTo({
url: `/subpages/mine/evaluate/evaluate?id=${e.currentTarget.dataset.item.checkInRecId}`, url: `/subpages/mine/evaluate/evaluate?id=${e.currentTarget.dataset.item.checkInRecId}&obj=${JSON.stringify({apartmentName:e.currentTarget.dataset.item.apartmentName,buildingName:e.currentTarget.dataset.item.buildingName,buildingName:e.currentTarget.dataset.item.buildingName,roomType:e.currentTarget.dataset.item.roomType,unitName:e.currentTarget.dataset.item.unitName,checkInRecId:e.currentTarget.dataset.item.checkInRecId,houseName:e.currentTarget.dataset.item.houseName})}`,
}) })
} }
}) })

9
subpages/mine/checkInRecord/checkInRecord.js

@ -72,6 +72,15 @@ Page({
} }
chooseRoomRec(parm).then(res=>{ chooseRoomRec(parm).then(res=>{
if(res.code === 200){ if(res.code === 200){
// res.data.list.forEach(item=>{
// item.inDate = item.inDate.substr(0,10)
// item.outDate = item.inDate.substr(0,10)
// })
res.data.forEach(item=>{
item.inDate = item.inDate.substr(0,10)
item.outDate = item.outDate.substr(0,10)
})
this.setData({ this.setData({
list:this.data.list.concat(res.data) list:this.data.list.concat(res.data)
}) })

6
subpages/mine/evaluate/evaluate.js

@ -24,13 +24,17 @@ Page({
onLoad(options) { onLoad(options) {
if (options.id) { if (options.id) {
this.getInfo(options.id) this.getInfo(options.id)
console.log(options.obj);
this.setData({
info:JSON.parse(options.obj)
})
} }
}, },
getInfo(id){ getInfo(id){
evaluateInfo(id).then(res=>{ evaluateInfo(id).then(res=>{
if(res.code === 200){ if(res.code === 200){
this.setData({ this.setData({
info:res.data // info:res.data
}) })
} }
}) })

2
subpages/mine/evaluate/evaluate.wxml

@ -5,7 +5,7 @@
<view class="font-bold"> <view class="font-bold">
{{info.apartmentName}} {{info.apartmentName}}
</view> </view>
<view>{{info.buildingName}}-{{info.unitName}}-{{info.houseName}}-{{info.roomTypeName}}</view> <view>{{info.buildingName}}-{{info.unitName}}-{{info.houseName}}-{{info.roomType}}</view>
<view class="text-26 mt-24" style="color:#ee962c;">{{info.houseTypeName}}</view> <view class="text-26 mt-24" style="color:#ee962c;">{{info.houseTypeName}}</view>
</view> </view>
</view> </view>

Loading…
Cancel
Save