From d12a8bdd8ab129e2cf443b3028c5de374cb26a0b Mon Sep 17 00:00:00 2001 From: SelfRidicule Date: Tue, 30 Jul 2024 17:43:32 +0800 Subject: [PATCH] 1 --- miniprogram/app.json | 3 +- .../pages/reportRepair/assign/again/again.js | 92 +++++++++ .../reportRepair/assign/again/again.json | 6 + .../reportRepair/assign/again/again.wxml | 78 +++++++ .../reportRepair/assign/again/again.wxss | 194 ++++++++++++++++++ .../reportRepair/assign/detail/detail.wxml | 2 +- .../reportRepair/assign/record/record.js | 8 + .../reportRepair/assign/record/record.wxml | 36 +++- 8 files changed, 409 insertions(+), 10 deletions(-) create mode 100644 miniprogram/pages/reportRepair/assign/again/again.js create mode 100644 miniprogram/pages/reportRepair/assign/again/again.json create mode 100644 miniprogram/pages/reportRepair/assign/again/again.wxml create mode 100644 miniprogram/pages/reportRepair/assign/again/again.wxss diff --git a/miniprogram/app.json b/miniprogram/app.json index 3f3a427..32abd11 100644 --- a/miniprogram/app.json +++ b/miniprogram/app.json @@ -82,7 +82,8 @@ "pages/reportRepair/assign/detail/detail", "pages/reportRepair/assign/feedback/feedback", "pages/reportRepair/assign/affirm/affirm", - "pages/reportRepair/assign/personList/personList" + "pages/reportRepair/assign/personList/personList", + "pages/reportRepair/assign/again/again" ], "window": { "backgroundTextStyle": "light", diff --git a/miniprogram/pages/reportRepair/assign/again/again.js b/miniprogram/pages/reportRepair/assign/again/again.js new file mode 100644 index 0000000..eb76774 --- /dev/null +++ b/miniprogram/pages/reportRepair/assign/again/again.js @@ -0,0 +1,92 @@ +const app = getApp() + +Page({ + + /** + * 页面的初始数据 + */ + data: { + IMG_NAME: app.IMG_NAME, + }, + + /** + * 生命周期函数--监听页面加载 + */ + onLoad(options) { + + }, + + back(){ + wx.navigateBack() + }, + + + // 确认损坏 + jumpAffirm(){ + wx.navigateTo({ + url: '/pages/reportRepair/assign/affirm/affirm', + }) + }, + + + // 提交反馈 + jumpFeedback(){ + wx.navigateTo({ + url: '/pages/reportRepair/assign/feedback/feedback', + }) + }, + + // 无效 + invalid(){ + wx.navigateBack() + }, + + /** + * 生命周期函数--监听页面初次渲染完成 + */ + onReady() { + + }, + + /** + * 生命周期函数--监听页面显示 + */ + onShow() { + + }, + + /** + * 生命周期函数--监听页面隐藏 + */ + onHide() { + + }, + + /** + * 生命周期函数--监听页面卸载 + */ + onUnload() { + + }, + + /** + * 页面相关事件处理函数--监听用户下拉动作 + */ + onPullDownRefresh() { + + }, + + /** + * 页面上拉触底事件的处理函数 + */ + onReachBottom() { + + }, + + /** + * 用户点击右上角分享 + */ + onShareAppMessage() { + + } +}) \ No newline at end of file diff --git a/miniprogram/pages/reportRepair/assign/again/again.json b/miniprogram/pages/reportRepair/assign/again/again.json new file mode 100644 index 0000000..02854d6 --- /dev/null +++ b/miniprogram/pages/reportRepair/assign/again/again.json @@ -0,0 +1,6 @@ +{ + "navigationStyle": "custom", + "usingComponents": { + "van-icon": "@vant/weapp/icon/index" + } +} \ No newline at end of file diff --git a/miniprogram/pages/reportRepair/assign/again/again.wxml b/miniprogram/pages/reportRepair/assign/again/again.wxml new file mode 100644 index 0000000..746d430 --- /dev/null +++ b/miniprogram/pages/reportRepair/assign/again/again.wxml @@ -0,0 +1,78 @@ + + + + + + + 返回 + + 重新派单 + + + + 派单处理 + + + + + + YG123081273812 + 空调 + 待审核 + + + + 报修信息 + + + 设备名称 + 320828282828320828282828320828282828320828282828v + + + 设备地址 + 302会议室 + + + 维修描述 + 电脑蓝屏 + + + 损坏凭证 + + + + + + 报修人 + 13652025563 + + + 报修时间 + 2024-06-10 23:59:59 + + + + + 反馈 + + + 反馈人员 + 王军 + + + 反馈描述 + 类型不一致 + + + + + 派单 + + + 请选择派单人员 + 王军 + + + + + \ No newline at end of file diff --git a/miniprogram/pages/reportRepair/assign/again/again.wxss b/miniprogram/pages/reportRepair/assign/again/again.wxss new file mode 100644 index 0000000..4ee75be --- /dev/null +++ b/miniprogram/pages/reportRepair/assign/again/again.wxss @@ -0,0 +1,194 @@ +.containerView.public { + background: none; +} + +.elHidden { + visibility: hidden; +} + +.selfLine { + height: 2rpx; + background: rgb(126, 126, 126, 0.2); +} + +.topHead { + position: relative; + height: 400rpx; + background: #2b2d3d; +} + +.topHead .navigatorView { + position: absolute; + left: 0; + top: 120rpx; + width: 100%; + box-sizing: border-box; + padding: 0 30rpx; + +} + +.topHead .navigatorView .backView { + display: flex; + justify-content: flex-start; + align-items: center; +} + +.topHead .navigatorView .backView .label { + color: white; + font-size: 28rpx; + line-height: 1; + margin-left: 8rpx; +} + +.topHead .navigatorView .title { + position: absolute; + top: 14rpx; + left: 50%; + transform: translateX(-50%); + + font-size: 32rpx; + color: #FFFFFF; + line-height: 1rpx; +} + +.topHead .contentView { + position: absolute; + left: 30rpx; + bottom: 100rpx; +} + +.topHead .contentView .label1 { + font-size: 28rpx; + color: white; + line-height: 1; +} + +.topHead .contentView .label2 { + font-size: 24rpx; + color: white; + line-height: 1; + margin-top: 20rpx; +} + +.mainView { + position: relative; + box-sizing: border-box; + + margin: -20rpx 20rpx 20rpx; + z-index: 999; +} + +.mainView .statusView { + box-sizing: border-box; + position: relative; + padding: 40rpx 30rpx; + background: white; + border-radius: 8rpx; + line-height: 1; +} + +.mainView .statusView .label { + font-size: 28rpx; + font-weight: bold; +} + + +.mainView .statusView .tag { + position: absolute; + right: 30rpx; + top: 50%; + transform: translateY(-50%); + background: #ee6f21; + color: white; + padding: 10rpx 20rpx; + border-radius: 6rpx; + font-size: 22rpx; +} + +.mainView .statusView .time { + margin-top: 20rpx; +} + +.mainView .statusView .leftImg { + position: absolute; + top: 26rpx; + left: 20rpx; + + width: 60rpx; + height: 60rpx; + border-radius: 8rpx; +} + +.mainView .reportView { + margin-top: 20rpx; + padding-bottom: 60rpx; + + border-radius: 8rpx; + background: white; +} + +.mainView .reportView .topTitle { + padding: 30rpx; + font-size: 28rpx; + font-weight: bold; +} + +.mainView .reportView .itemView { + display: flex; + justify-content: flex-start; + align-items: flex-start; + margin-top: 30rpx; + padding: 0 30rpx; + +} + +.mainView .reportView .itemView .label { + flex-shrink: 0; + width: 200rpx; + font-size: 30rpx; + color: gray; +} + +.mainView .reportView .itemView .content { + font-size: 30rpx; + word-break: break-all; +} + +.mainView .reportView .itemView .content .imgView { + width: 100rpx; + height: 100rpx; + margin-right: 10rpx; + margin-bottom: 10rpx; + display: inline-block; + vertical-align: middle; +} + +.bottomFixView { + position: fixed; + z-index: 999; + left: 0; + bottom: 0; + height: 140rpx; + width: 100vw; + border-top: 1rpx solid rgb(126, 126, 126, 0.2); + background: white; + + display: flex; + justify-content: flex-end; + align-items: center; +} + +.bottomFixView .btn { + box-sizing: border-box; + border-radius: 6rpx; + margin-right: 30rpx; + padding: 12rpx 24rpx; + + background: #579ff8; + font-size: 26rpx; + color: white; +} + +.bottomFixView .btn.red { + background: #ee6f21; +} diff --git a/miniprogram/pages/reportRepair/assign/detail/detail.wxml b/miniprogram/pages/reportRepair/assign/detail/detail.wxml index c8e604f..fe4f4ae 100644 --- a/miniprogram/pages/reportRepair/assign/detail/detail.wxml +++ b/miniprogram/pages/reportRepair/assign/detail/detail.wxml @@ -18,7 +18,7 @@ YG123081273812 空调 - 待审核 + 待派单 diff --git a/miniprogram/pages/reportRepair/assign/record/record.js b/miniprogram/pages/reportRepair/assign/record/record.js index 8e216f8..2adb9c9 100644 --- a/miniprogram/pages/reportRepair/assign/record/record.js +++ b/miniprogram/pages/reportRepair/assign/record/record.js @@ -323,12 +323,20 @@ Page({ }); }, + // 跳转-详情 jumpDetail(){ wx.navigateTo({ url: '/pages/reportRepair/assign/detail/detail', }) }, + // 跳转-重新分配 + jumpAgain(){ + wx.navigateTo({ + url: '/pages/reportRepair/assign/again/again', + }) + }, + /** * 生命周期函数--监听页面初次渲染完成 */ diff --git a/miniprogram/pages/reportRepair/assign/record/record.wxml b/miniprogram/pages/reportRepair/assign/record/record.wxml index 40e2ef5..ea578fd 100644 --- a/miniprogram/pages/reportRepair/assign/record/record.wxml +++ b/miniprogram/pages/reportRepair/assign/record/record.wxml @@ -1,7 +1,7 @@ - - + + 编号: T123123123 @@ -23,14 +23,34 @@ - - + + + 编号: T123123123 + + + + + 空调损坏 + 设备名称: 空调 + 设备地址: 301南楼 + + + + + 王军(18300011120) + 2024-01-01 12:12:00 + + + + 数据已全部加载 + - - + + + - - + +