艺易修小程序24.08.21
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

174 lines
3.7 KiB

6 months ago
  1. <template>
  2. <view class="repairList reserveSpace">
  3. <view class="tab">
  4. <uv-tabs :list="list" lineWidth="60" lineHeight="10" @click="selectTag"></uv-tabs>
  5. </view>
  6. <view class="repairList-main">
  7. <view v-for="item in 10" class="repairItem">
  8. <view class="repairMain">
  9. <!-- <view class="userName">用户名</view> -->
  10. <view class="build">
  11. <view>
  12. <text style="margin-right: 10rpx;">楼栋:楼栋1</text>
  13. <text>室号:A1001</text>
  14. </view>
  15. <text style="font-size: 26rpx;">2024-12-12</text>
  16. </view>
  17. <view class="desc">
  18. 近期我所在的学生宿舍楼X栋XXX室遇到了一个亟需解决的问题特此提交报修申请具体故障为宿舍内卫生间水龙头出现持续滴漏现象已持续多日不仅造成了水资源的浪费还影响了寝室的日常使用和休息环境夜间滴水声尤为明显干扰了同学们的睡眠质量我们初步检查未能自行解决判断可能是内部密封件老化或松动所致为尽快恢复宿舍正常生活环境恳请学校后勤部门能尽快安排专业维修人员前来检查并修复我们将积极配合维修工作确保宿舍设施尽快恢复正常使用感谢学校对我们学习生活环境的关心与支持
  19. </view>
  20. <view class="repairImages">
  21. <view v-for="(item,index) in urls" :key="index" class="image-item">
  22. <image @click="viewImageAsList(index)" :src="item" mode="widthFix"></image>
  23. </view>
  24. </view>
  25. <view class="btns">
  26. <view @click="toReject" class="btn">驳回</view>
  27. <view @click="toFinish" class="btn">结单</view>
  28. </view>
  29. </view>
  30. </view>
  31. </view>
  32. </view>
  33. </template>
  34. <script>
  35. export default {
  36. data() {
  37. return {
  38. urls: [
  39. 'http://www.mxqih.top:666/logo.png',
  40. 'http://www.mxqih.top:666/logo.png',
  41. 'http://www.mxqih.top:666/logo.png'
  42. ],
  43. list: [{
  44. name: '待完成',
  45. }, {
  46. name: '已完成',
  47. }],
  48. current: 0,
  49. currentIndex : 0
  50. }
  51. },
  52. methods: {
  53. //跳转驳回
  54. toReject() {
  55. uni.navigateTo({
  56. url: '/pages/reject/reject'
  57. })
  58. },
  59. //跳转结单页面
  60. toFinish() {
  61. uni.navigateTo({
  62. url: '/pages/finish/finish'
  63. })
  64. },
  65. //查看图片
  66. viewImageAsList(index) {
  67. this.currentIndex = index
  68. this.$utils.previewImage({
  69. current: this.currentIndex,
  70. urls: this.urls
  71. })
  72. },
  73. //选择了顶部的标签
  74. selectTag(tag){
  75. console.log(tag);
  76. }
  77. }
  78. }
  79. </script>
  80. <style scoped>
  81. .repairList{
  82. background: #f8f8f8;
  83. }
  84. .tab{
  85. display: flex;
  86. align-items: center;
  87. height: 80rpx;
  88. background: white;
  89. margin-bottom: 20rpx;
  90. }
  91. .repairList-main {
  92. min-height: 100vh;
  93. }
  94. .repairItem {
  95. display: flex;
  96. background: white;
  97. width: 96%;
  98. margin: 0rpx auto;
  99. border-radius: 20rpx;
  100. margin-bottom: 20rpx;
  101. }
  102. .repairMain {
  103. width: 100%;
  104. box-sizing: border-box;
  105. padding-left: 20rpx;
  106. }
  107. /*
  108. .userName {
  109. font-size: 32rpx;
  110. margin: 10rpx 0rpx;
  111. } */
  112. .build {
  113. display: flex;
  114. justify-content: space-between;
  115. font-size: 28rpx;
  116. margin: 20rpx 0rpx;
  117. }
  118. .desc {
  119. height: 200rpx;
  120. overflow-y: scroll;
  121. margin-bottom: 20rpx;
  122. }
  123. .repairImages {
  124. display: flex;
  125. flex-wrap: wrap;
  126. margin: 10rpx 0rpx;
  127. }
  128. .image-item {
  129. width: 24%;
  130. margin-left: 1%;
  131. height: 180rpx;
  132. overflow: hidden;
  133. }
  134. .image-item image {
  135. width: 100%;
  136. }
  137. .btns {
  138. margin: 20rpx 0rpx;
  139. display: flex;
  140. justify-content: flex-end;
  141. }
  142. .btn {
  143. width: 200rpx;
  144. height: 50rpx;
  145. display: flex;
  146. align-items: center;
  147. justify-content: center;
  148. border-radius: 50rpx;
  149. margin-left: 15rpx;
  150. font-size: 30rpx;
  151. color: white;
  152. background: #f9ae3d;
  153. }
  154. .btn:nth-child(2) {
  155. background: #3c9cff;
  156. }
  157. </style>