Browse Source

改了些图片 新增入住评价页面

epass
mk 3 months ago
parent
commit
abba97bee1
  1. 3
      app.json
  2. 2
      components/navigationBar/navigationBar.js
  3. 24
      custom-tab-bar/index.js
  4. BIN
      images/banner/banner1.png
  5. BIN
      images/bg02.png
  6. BIN
      images/icon/nav_10.png
  7. BIN
      images/icon/nav_4.png
  8. BIN
      images/icon/nav_5.png
  9. BIN
      images/icon/nav_6.png
  10. BIN
      images/icon/nav_7.png
  11. BIN
      images/zixun.png
  12. 16
      pages/index/index.js
  13. 33
      pages/serve/serve.wxml
  14. 3
      pages/serve/serve.wxss
  15. 2
      subpages/OCRCard/pages/confirm/confirm.wxml
  16. 2
      subpages/OCRCard/pages/deposit/deposit.wxml
  17. 1
      subpages/index/checkInUser/checkInUser.js
  18. 2
      subpages/index/checkInUser/checkInUser.wxml
  19. 2
      subpages/index/renewalApplication/renewalApplication.wxml
  20. 104
      subpages/mine/checkInEvaluate/checkInEvaluate.js
  21. 9
      subpages/mine/checkInEvaluate/checkInEvaluate.json
  22. 25
      subpages/mine/checkInEvaluate/checkInEvaluate.wxml
  23. 12
      subpages/mine/checkInEvaluate/checkInEvaluate.wxss

3
app.json

@ -25,7 +25,8 @@
"pages": [ "pages": [
"editUser/editUser", "editUser/editUser",
"checkInRecord/checkInRecord", "checkInRecord/checkInRecord",
"evaluate/evaluate" "evaluate/evaluate",
"checkInEvaluate/checkInEvaluate"
] ]
}, },
{ {

2
components/navigationBar/navigationBar.js

@ -6,7 +6,7 @@ Component({
properties: { properties: {
title: { title: {
type: String, type: String,
value: "续期提醒", value: "延租提醒",
}, },
backgroundImage: { backgroundImage: {
type: String, type: String,

24
custom-tab-bar/index.js

@ -16,12 +16,12 @@ Component({
selectedIconPath: "/images/icon/home-a.png", selectedIconPath: "/images/icon/home-a.png",
text: "首页", text: "首页",
}, },
{ // {
pagePath: "/pages/message/message", // pagePath: "/pages/message/message",
iconPath: "/images/icon/message.png", // iconPath: "/images/icon/message.png",
selectedIconPath: "/images/icon/message-a.png", // selectedIconPath: "/images/icon/message-a.png",
text: "消息", // text: "消息",
}, // },
{ {
pagePath: "/pages/serve/serve", pagePath: "/pages/serve/serve",
iconPath: "/images/icon/serve.png", iconPath: "/images/icon/serve.png",
@ -30,12 +30,12 @@ Component({
text: "服务", text: "服务",
}, },
{ // {
pagePath: "/pages/life/life", // pagePath: "/pages/life/life",
iconPath: "/images/icon/life.png", // iconPath: "/images/icon/life.png",
selectedIconPath: "/images/icon/life-a.png", // selectedIconPath: "/images/icon/life-a.png",
text: "生活圈" // text: "生活圈"
}, // },
{ {
pagePath: "/pages/mine/mine", pagePath: "/pages/mine/mine",
iconPath: "/images/icon/mine.png", iconPath: "/images/icon/mine.png",

BIN
images/banner/banner1.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 88 KiB

BIN
images/bg02.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 197 KiB

BIN
images/icon/nav_10.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

BIN
images/icon/nav_4.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.6 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

BIN
images/icon/nav_5.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

BIN
images/icon/nav_6.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 2.9 KiB

BIN
images/icon/nav_7.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

BIN
images/zixun.png

Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

16
pages/index/index.js

@ -18,6 +18,7 @@ Page({
duration: 1000, duration: 1000,
navList: [{ navList: [{
name: "政策资讯", name: "政策资讯",
url:"/subpages/index/policy/index/index"
}, },
{ {
name: "入住办理", name: "入住办理",
@ -28,12 +29,10 @@ Page({
url: "/subpages/index/checkOutConfirm/index/index", url: "/subpages/index/checkOutConfirm/index/index",
}, },
{ {
name: "续期申请", name: "延租申请",
url: "/subpages/index/renewalApplication/renewalApplication", url: "/subpages/index/renewalApplication/renewalApplication",
}, },
{
name: "续期合同",
},
{ {
name: "报修", name: "报修",
url: "/subpages/eventAdd/add/add", url: "/subpages/eventAdd/add/add",
@ -45,6 +44,10 @@ Page({
{ {
name: "生活圈", name: "生活圈",
}, },
{
name: "更多",
url:'/pages/serve/serve'
},
], ],
searchValue: "", searchValue: "",
policyList:[],//政策列表 policyList:[],//政策列表
@ -151,6 +154,11 @@ Page({
}, },
navigateTo(e){ navigateTo(e){
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'){
if(e.currentTarget.dataset.url === '/pages/serve/serve'){
wx.switchTab({
url: '/pages/serve/serve',
})
}
wx.navigateTo({ wx.navigateTo({
url: e.currentTarget.dataset.url, url: e.currentTarget.dataset.url,
}) })

33
pages/serve/serve.wxml

@ -9,26 +9,26 @@
<view class="card header-card"> <view class="card header-card">
<view style="font-size: 36rpx;margin-bottom:52rpx;">居住服务</view> <view style="font-size: 36rpx;margin-bottom:52rpx;">居住服务</view>
<view class="flex flex-sa" style="gap: 30rpx;"> <view class="flex flex-sa" style="gap: 30rpx;">
<view class=" flex items-center flex-center-j flex-col" style="width: 25%;"> <navigator url="/subpages/OCRCard/pages/index/index" class=" flex items-center flex-center-j flex-col" style="width: 25%;">
<image src="../../images/icon/nav_1.png" class="icon-100" mode="" /> <image src="../../images/icon/nav_1.png" class="icon-100" mode="" />
<view style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1">入住办理</view> <view style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1 mt-14">入住办理</view>
</view> </navigator>
<view class=" flex items-center flex-center-j flex-col" style="width: 25%;"> <navigator url="/subpages/index/checkOutConfirm/index/index" class=" flex items-center flex-center-j flex-col" style="width: 25%;">
<image src="../../images/icon/nav_2.png" class="icon-100" mode="" /> <image src="../../images/icon/nav_2.png" class="icon-100" mode="" />
<text style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1">退房确认</text> <text style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1 mt-14">退房确认</text>
</view> </navigator>
<view class=" flex items-center flex-center-j flex-col" style="width: 25%;"> <navigator url="/subpages/index/renewalApplication/renewalApplication" class=" flex items-center flex-center-j flex-col" style="width: 25%;">
<image src="../../images/icon/nav_4.png" class="icon-100" mode="" /> <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">延租申请</view> <view style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1 mt-14">延租申请</view>
</view> </navigator>
<view 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="" /> <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">居住评价</text> <text style="font-size:28rpx;color:#ffffff;font-weight: 600;" class="flex items-center flex-1 mt-14">居住评价</text>
</view> </navigator>
</view> </view>
</view> </view>
<view class="card flex flex-col list"> <view class="card flex flex-col list">
<view class="title">其他服务</view> <view class="title">报修报事</view>
<view class="card flex items-center"> <view class="card flex items-center">
<image src="../../images/icon/333.png" class="icon-80 mr-30" mode=""/> <image src="../../images/icon/333.png" class="icon-80 mr-30" mode=""/>
<view class="flex-1 text-30">故障报修</view> <view class="flex-1 text-30">故障报修</view>
@ -39,10 +39,13 @@
<view class="flex-1 text-30">报事儿</view> <view class="flex-1 text-30">报事儿</view>
<van-button color="#ecf6ff" round custom-style="color:#999999" size="small ">去处理</van-button> <van-button color="#ecf6ff" round custom-style="color:#999999" size="small ">去处理</van-button>
</view> </view>
</view>
<!-- <view class="card flex flex-col list">
<view class="title">共享空间</view>
<view class="card flex items-center"> <view class="card flex items-center">
<image src="../../images/icon/555.png" class="icon-80 mr-30" mode=""/> <image src="../../images/icon/555.png" class="icon-80 mr-30" mode=""/>
<view class="flex-1 text-30">共享空间</view> <view class="flex-1 text-30">共享空间</view>
<van-button color="#ecf6ff" round custom-style="color:#999999" size="small ">去处理</van-button> <van-button color="#ecf6ff" round custom-style="color:#999999" size="small ">去处理</van-button>
</view> </view>
</view> </view> -->
</view> </view>

3
pages/serve/serve.wxss

@ -24,9 +24,10 @@
margin: 0 auto; margin: 0 auto;
top: 25px; top: 25px;
color: #ffffff; color: #ffffff;
padding-bottom:66rpx ;
} }
.list{ .list{
width: calc(100vw - 40rpx); width: calc(100vw - 40rpx);
margin: 80rpx auto 0; margin: 32rpx auto 0;
background: linear-gradient(180deg, rgba(227,244,255,1) 0%,rgba(245,249,252,1) 100%); background: linear-gradient(180deg, rgba(227,244,255,1) 0%,rgba(245,249,252,1) 100%);
} }

2
subpages/OCRCard/pages/confirm/confirm.wxml

@ -1,7 +1,7 @@
<!--subpages/OCRCard/pages/confirm/confirm.wxml--> <!--subpages/OCRCard/pages/confirm/confirm.wxml-->
<navigationBar title="入住办理" isSowArrow isShowBg="" titleAlign="center"></navigationBar> <navigationBar title="入住办理" isSowArrow isShowBg="" titleAlign="center"></navigationBar>
<view class="cont"> <view class="cont">
<view class="header flex flex-sb flex-center-j " style="background-image:url(/images/bg02.png);"> <view class="header flex flex-sb flex-center-j " style="background-image:url(http://219.146.91.110:30801/mzjzf/1749449508391_5648bg02.png);">
<view class="flex flex-col "> <view class="flex flex-col ">
<view class="tit">身份信息</view> <view class="tit">身份信息</view>
<view class="des">请您确认您的身份信息</view> <view class="des">请您确认您的身份信息</view>

2
subpages/OCRCard/pages/deposit/deposit.wxml

@ -22,7 +22,7 @@
确定支付 确定支付
</van-button> </van-button>
</view> </view>
<van-popup show="{{ show }}" round bind:close="onClose" custom-style="background-image: url('../../../OCRCard/image/bg1.png')"> <van-popup show="{{ show }}" round bind:close="onClose" custom-style="background-image: url(http://219.146.91.110:30801/mzjzf/1749449618476_1821bg1.png)">
<view class="diag flex flex-y flex-center-j items-center"> <view class="diag flex flex-y flex-center-j items-center">
<van-image width="94" height="94" src="/subpages/OCRCard/image/icon02.png" /> <van-image width="94" height="94" src="/subpages/OCRCard/image/icon02.png" />
<view wx:if="{{status==1}}" class=" flex flex-y flex-center-j items-center"> <view wx:if="{{status==1}}" class=" flex flex-y flex-center-j items-center">

1
subpages/index/checkInUser/checkInUser.js

@ -40,7 +40,6 @@ Page({
* 生命周期函数--监听页面显示 * 生命周期函数--监听页面显示
*/ */
onShow() { onShow() {
if(this.data.form){ if(this.data.form){
const pamars = { const pamars = {
bizId:this.data.form.chooseRecId || '', bizId:this.data.form.chooseRecId || '',

2
subpages/index/checkInUser/checkInUser.wxml

@ -1,7 +1,7 @@
<!--subpages/index/checkInUser/checkInUser.wxml--> <!--subpages/index/checkInUser/checkInUser.wxml-->
<navigationBar title="入住办理" isSowArrow isShowBg="" titleAlign="center"></navigationBar> <navigationBar title="入住办理" isSowArrow isShowBg="" titleAlign="center"></navigationBar>
<view class="cont"> <view class="cont">
<view class="header flex flex-sb flex-center-j " style="background-image:url(/images/bg02.png);"> <view class="header flex flex-sb flex-center-j " style="background-image:url(http://219.146.91.110:30801/mzjzf/1749449508391_5648bg02.png);">
<view class="flex flex-col "> <view class="flex flex-col ">
<view class="tit">身份信息</view> <view class="tit">身份信息</view>
<view class="des">请您确认您的身份信息</view> <view class="des">请您确认您的身份信息</view>

2
subpages/index/renewalApplication/renewalApplication.wxml

@ -1,5 +1,5 @@
<view class="cont"> <view class="cont">
<navigationBar title="续期申请" isSowArrow isShowBg backgroundImage="/images/bg.png" height="200px" titleAlign="center"></navigationBar> <navigationBar title="延租申请" isSowArrow isShowBg backgroundImage="/images/bg.png" height="200px" titleAlign="center"></navigationBar>
<view class="tip-cont"> <view class="tip-cont">
<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" />

104
subpages/mine/checkInEvaluate/checkInEvaluate.js

@ -0,0 +1,104 @@
import {chooseRoomRec} from '../../../api/index'
Page({
/**
* 页面的初始数据
*/
data: {
list:[]
},
/**
* 生命周期函数--监听页面加载
*/
onLoad(options) {
this.getList()
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady() {
},
/**
* 生命周期函数--监听页面显示
*/
onShow() {
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide() {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload() {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh() {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom() {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage() {
},
getList(){
let parm = {
flag:1,
pageSize:10,
pageNo:1
}
chooseRoomRec(parm).then(res=>{
if(res.code === 200){
this.setData({
list:this.data.list.concat(res.data)
})
}
}).catch(err=>{
wx.showToast({
title: err.msg,
duration:2000,
icon:'none'
})
})
},
scrolltolower(){
if (this.data.list.length < this.data.total) {
this.setData({
pageNo: this.data.pageNo + 1
})
this.getList()
}else{
wx.showToast({
icon:'none',
title:'没有更多了'
})
}
},
toEvaluate(e){
wx.navigateTo({
url: `/subpages/mine/evaluate/evaluate?id=${e.currentTarget.dataset.item.checkInRecId}`,
})
}
})

9
subpages/mine/checkInEvaluate/checkInEvaluate.json

@ -0,0 +1,9 @@
{
"usingComponents": {
"no-data":"../../../components/noData/nodata",
"van-divider": "@vant/weapp/divider/index",
"van-button": "@vant/weapp/button/index",
"van-rate": "@vant/weapp/rate/index"
},
"navigationBarTitleText": "入住评价"
}

25
subpages/mine/checkInEvaluate/checkInEvaluate.wxml

@ -0,0 +1,25 @@
<scroll-view scroll-y class="scroll-view" bindscrolltolower="scrolltolower" wx:if="{{list.length>0}}">
<view class="card " wx:key="index" wx:for="{{list}}">
<view class="item flex">
<image src="{{item.imageUrl}}" style="width: 200rpx;height:152rpx;margin-right: 16rpx;border-radius: 10rpx;" mode="" />
<view class="flex flex-col flex-1">
<view class="flex flex-sb">
<view class="name font-bold">{{item.apartmentName}}</view>
<view class="status text-28" style="color:{{item.status === '1'?'#ee952f':item.status === '4'?'#1cc9cd':item.status === '5'?'#181c18':''}}">{{item.status === '1'?'入住办理中':item.status === '4'?'入住中':item.status === '5'?'已退房':''}}</view>
</view>
<view style="margin-bottom: 22rpx;">{{item.buildingName}}-{{item.unitName}}-{{item.houseName}}-{{item.roomType}}</view>
<view class="date">{{item.inDate}}至{{item.outDate}}</view>
</view>
</view>
<van-divider dashed />
<view class="flex flex-sb px-20">
<view class="doc" wx:if="{{item.contractUrl}}">
青岛免租金租房合同.docx
</view>
<van-button round plain size="small" bind:click="toEvaluate" wx:if="{{(item.status === '4' || item.status === '5' || item.status === '6') && item.evaluateLevel === null}}" data-item="{{item}}">去评价</van-button>
<van-rate wx:if="{{item.evaluateLevel}}" value="{{ item.evaluateLevel }}" disabled="{{true}}" size="{{ 25 }}" color="#13c2c2" void-icon="star" void-color="#eee"/>
</view>
</view>
</scroll-view>
<no-data isShow="{{list.length === 0 || !list}}"></no-data>

12
subpages/mine/checkInEvaluate/checkInEvaluate.wxss

@ -0,0 +1,12 @@
/* subpages/mine/checkInRecord/checkInRecord.wxss */
.name{
font-size: 36rpx;
}
.date{
font-size: 26rpx;
color: #737373;
}
.doc{
color: #08b3b3;
font-size: 20rpx;
}
Loading…
Cancel
Save